{ "schemaVersion": "0.1.0", "readme": "", "modules": [ { "kind": "javascript-module", "path": "./index.js", "declarations": [], "exports": [ { "kind": "js", "name": "isSameDate", "declaration": { "name": "isSameDate", "module": "./src/utils/isSameDate.js" } }, { "kind": "js", "name": "LionCalendar", "declaration": { "name": "LionCalendar", "module": "./src/LionCalendar.js" } } ] }, { "kind": "javascript-module", "path": "./lion-calendar.js", "declarations": [], "exports": [ { "kind": "custom-element-definition", "name": "lion-calendar", "declaration": { "name": "LionCalendar", "module": "./src/LionCalendar.js" } } ] }, { "kind": "javascript-module", "path": "./test-helpers.js", "declarations": [], "exports": [ { "kind": "js", "name": "CalendarObject", "declaration": { "name": "CalendarObject", "module": "./test-helpers/CalendarObject.js" } }, { "kind": "js", "name": "DayObject", "declaration": { "name": "DayObject", "module": "./test-helpers/DayObject.js" } }, { "kind": "js", "name": "weekdayNames", "declaration": { "name": "weekdayNames", "module": "./test-helpers/weekdayNames.js" } } ] }, { "kind": "javascript-module", "path": "./src/LionCalendar.js", "declarations": [ { "kind": "class", "name": "LionCalendar", "events": [ { "name": "user-selected-date-changed", "type": { "text": "CustomEvent" } } ], "mixins": [ { "name": "LocalizeMixin", "package": "@lion/localize" } ], "superclass": { "name": "LitElement", "package": "@lion/core" }, "members": [ { "kind": "field", "name": "localizeNamespaces", "static": true, "privacy": "public" }, { "kind": "field", "name": "minDate", "privacy": "public", "default": "new Date(0)" }, { "kind": "field", "name": "maxDate", "privacy": "public", "default": "new Date(8640000000000000)" }, { "kind": "field", "name": "disableDates", "privacy": "public" }, { "kind": "field", "name": "selectedDate", "privacy": "public" }, { "kind": "field", "name": "centralDate", "privacy": "public", "type": { "text": "Date" }, "default": "this.__today" }, { "kind": "field", "name": "firstDayOfWeek", "privacy": "public", "default": "0" }, { "kind": "field", "name": "weekdayHeaderNotation", "privacy": "public", "default": "'short'" }, { "kind": "field", "name": "locale", "privacy": "public", "default": "''" }, { "kind": "field", "name": "__focusedDate", "privacy": "public", "type": { "text": "Date | null" }, "default": "null" }, { "kind": "field", "name": "__data", "privacy": "public", "type": { "text": "{months: Month[]}" }, "default": "{ months: [] }" }, { "kind": "field", "name": "focusedDate", "privacy": "public" }, { "kind": "method", "name": "goToNextMonth", "privacy": "public" }, { "kind": "method", "name": "goToPreviousMonth", "privacy": "public" }, { "kind": "method", "name": "goToNextYear", "privacy": "public" }, { "kind": "method", "name": "goToPreviousYear", "privacy": "public" }, { "kind": "method", "name": "focusDate", "privacy": "public", "parameters": [ { "name": "date", "type": { "text": "Date" } } ] }, { "kind": "method", "name": "focusCentralDate", "privacy": "public" }, { "kind": "method", "name": "focusSelectedDate", "privacy": "public" }, { "kind": "method", "name": "requestUpdateInternal", "privacy": "public", "parameters": [ { "name": "name", "type": { "text": "string" } }, { "name": "oldValue", "type": { "text": "?" } } ] }, { "kind": "method", "name": "__calculateInitialCentralDate", "privacy": "public" }, { "kind": "method", "name": "__renderMonthNavigation", "privacy": "public", "parameters": [ { "name": "month", "type": { "text": "string" } }, { "name": "year", "type": { "text": "number" } } ] }, { "kind": "method", "name": "__renderYearNavigation", "privacy": "public", "parameters": [ { "name": "month", "type": { "text": "string" } }, { "name": "year", "type": { "text": "number" } } ] }, { "kind": "method", "name": "__renderNavigation", "privacy": "public" }, { "kind": "method", "name": "__renderData", "privacy": "public" }, { "kind": "method", "name": "__getPreviousDisabled", "privacy": "public", "parameters": [ { "name": "type", "type": { "text": "string" } }, { "name": "previousMonth", "type": { "text": "string" } }, { "name": "previousYear", "type": { "text": "number" } } ] }, { "kind": "method", "name": "__getNextDisabled", "privacy": "public", "parameters": [ { "name": "type", "type": { "text": "string" } }, { "name": "nextMonth", "type": { "text": "string" } }, { "name": "nextYear", "type": { "text": "number" } } ] }, { "kind": "method", "name": "__renderPreviousButton", "privacy": "public", "parameters": [ { "name": "type", "type": { "text": "string" } }, { "name": "previousMonth", "type": { "text": "string" } }, { "name": "previousYear", "type": { "text": "number" } } ] }, { "kind": "method", "name": "__renderNextButton", "privacy": "public", "parameters": [ { "name": "type", "type": { "text": "string" } }, { "name": "nextMonth", "type": { "text": "string" } }, { "name": "nextYear", "type": { "text": "number" } } ] }, { "kind": "method", "name": "__getNavigationLabel", "privacy": "public", "parameters": [ { "name": "mode", "type": { "text": "string" } }, { "name": "type", "type": { "text": "string" } }, { "name": "month", "type": { "text": "string" } }, { "name": "year", "type": { "text": "number" } } ] }, { "kind": "method", "name": "__coreDayPreprocessor", "privacy": "public", "parameters": [ { "name": "_day", "type": { "text": "Day" } }, { "name": "param1", "type": { "text": "*" } } ] }, { "kind": "method", "name": "__createData", "privacy": "public", "parameters": [ { "name": "options", "type": { "text": "Day" }, "optional": true } ] }, { "kind": "method", "name": "__disableDatesChanged", "privacy": "public" }, { "kind": "method", "name": "__dateSelectedByUser", "privacy": "public", "parameters": [ { "name": "selectedDate", "type": { "text": "Date" } } ] }, { "kind": "method", "name": "__centralDateChanged", "privacy": "public" }, { "kind": "method", "name": "__focusedDateChanged", "privacy": "public" }, { "kind": "method", "name": "__ensureValidCentralDate", "privacy": "public" }, { "kind": "method", "name": "__isEnabledDate", "privacy": "public", "parameters": [ { "name": "date", "type": { "text": "Date" } } ] }, { "kind": "method", "name": "__findBestEnabledDateFor", "privacy": "public", "parameters": [ { "name": "date", "type": { "text": "Date" } }, { "name": "opts", "type": { "text": "Object" } }, { "name": "opts.mode", "type": { "text": "String" }, "description": "Find best date in `future/past/both`", "optional": true } ] }, { "kind": "method", "name": "__clickDateDelegation", "privacy": "public", "parameters": [ { "name": "ev", "type": { "text": "Event" } } ] }, { "kind": "method", "name": "__focusDateDelegation", "privacy": "public" }, { "kind": "method", "name": "__blurDateDelegation", "privacy": "public" }, { "kind": "method", "name": "__keyboardNavigationEvent", "privacy": "public", "parameters": [ { "name": "ev", "type": { "text": "KeyboardEvent" } } ] }, { "kind": "method", "name": "__modifyDate", "privacy": "public", "parameters": [ { "name": "modify", "type": { "text": "number" } }, { "name": "opts", "type": { "text": "Object" } }, { "name": "opts.dateType", "type": { "text": "string" } }, { "name": "opts.type", "type": { "text": "string" } }, { "name": "opts.mode", "type": { "text": "string" } } ] }, { "kind": "method", "name": "__getLocale", "privacy": "public" } ], "tagName": "lion-calendar" } ], "exports": [ { "kind": "js", "name": "LionCalendar", "declaration": { "name": "LionCalendar", "module": "./src/LionCalendar.js" } } ] }, { "kind": "javascript-module", "path": "./src/calendarStyle.js", "declarations": [ { "kind": "variable", "name": "calendarStyle" } ], "exports": [ { "kind": "js", "name": "calendarStyle", "declaration": { "name": "calendarStyle", "module": "./src/calendarStyle.js" } } ] }, { "kind": "javascript-module", "path": "./test-helpers/CalendarObject.js", "declarations": [ { "kind": "class", "name": "CalendarObject", "members": [ { "kind": "field", "name": "rootEl", "privacy": "public" }, { "kind": "field", "name": "headerEl", "privacy": "public" }, { "kind": "field", "name": "yearHeadingEl", "privacy": "public" }, { "kind": "field", "name": "monthHeadingEl", "privacy": "public" }, { "kind": "field", "name": "nextYearButtonEl", "privacy": "public" }, { "kind": "field", "name": "previousYearButtonEl", "privacy": "public" }, { "kind": "field", "name": "nextMonthButtonEl", "privacy": "public" }, { "kind": "field", "name": "previousMonthButtonEl", "privacy": "public" }, { "kind": "field", "name": "gridEl", "privacy": "public" }, { "kind": "field", "name": "weekdayHeaderEls", "privacy": "public" }, { "kind": "field", "name": "dayEls", "privacy": "public" }, { "kind": "field", "name": "previousMonthDayEls", "privacy": "public" }, { "kind": "field", "name": "nextMonthDayEls", "privacy": "public" }, { "kind": "field", "name": "dayObjs", "privacy": "public" }, { "kind": "field", "name": "previousMonthDayObjs", "privacy": "public" }, { "kind": "field", "name": "nextMonthDayObjs", "privacy": "public" }, { "kind": "method", "name": "getDayEl", "privacy": "public", "parameters": [ { "name": "monthDayNumber", "type": { "text": "number" } } ] }, { "kind": "method", "name": "getDayObj", "privacy": "public", "parameters": [ { "name": "monthDayNumber", "type": { "text": "number" } } ] }, { "kind": "field", "name": "selectedDayObj", "privacy": "public" }, { "kind": "field", "name": "centralDayObj", "privacy": "public" }, { "kind": "field", "name": "focusedDayObj", "privacy": "public" }, { "kind": "method", "name": "checkForAllDayObjs", "privacy": "public", "parameters": [ { "name": "condition", "type": { "text": "function" }, "description": ": condition that should apply for \"filter\" days\nExample: \"(dayObj) => dayObj.selected\"" }, { "name": "filter", "type": { "text": "number[]|function" }, "description": "month day numbers for which condition should apply.\n- Example 1: \"[15, 20]\"\n- Example 2: \"(dayNumber) => dayNumber === 15\" (1 based ,not zero based)", "optional": true } ] }, { "kind": "field", "name": "activeMonth", "privacy": "public" }, { "kind": "field", "name": "activeYear", "privacy": "public" } ] } ], "exports": [ { "kind": "js", "name": "CalendarObject", "declaration": { "name": "CalendarObject", "module": "./test-helpers/CalendarObject.js" } } ] }, { "kind": "javascript-module", "path": "./test-helpers/DayObject.js", "declarations": [ { "kind": "class", "name": "DayObject", "members": [ { "kind": "field", "name": "calendarShadowRoot", "privacy": "public" }, { "kind": "field", "name": "cellEl", "privacy": "public" }, { "kind": "field", "name": "buttonEl", "privacy": "public" }, { "kind": "field", "name": "isDisabled", "privacy": "public" }, { "kind": "field", "name": "isSelected", "privacy": "public" }, { "kind": "field", "name": "isToday", "privacy": "public" }, { "kind": "field", "name": "isCentral", "privacy": "public" }, { "kind": "field", "name": "isFocused", "privacy": "public" }, { "kind": "field", "name": "monthday", "privacy": "public" }, { "kind": "field", "name": "weekdayNameShort", "privacy": "public" }, { "kind": "field", "name": "weekdayNameLong", "privacy": "public" }, { "kind": "field", "name": "cellIndex", "privacy": "public" } ] } ], "exports": [ { "kind": "js", "name": "DayObject", "declaration": { "name": "DayObject", "module": "./test-helpers/DayObject.js" } } ] }, { "kind": "javascript-module", "path": "./test-helpers/weekdayNames.js", "declarations": [ { "kind": "variable", "name": "weekdayNames" } ], "exports": [ { "kind": "js", "name": "weekdayNames", "declaration": { "name": "weekdayNames", "module": "./test-helpers/weekdayNames.js" } } ] }, { "kind": "javascript-module", "path": "./test/demos.screenshots-test.js", "declarations": [], "exports": [] }, { "kind": "javascript-module", "path": "./types/day.d.ts", "declarations": [], "exports": [] }, { "kind": "javascript-module", "path": "./translations/bg.js", "declarations": [], "exports": [ { "kind": "js", "name": "default", "declaration": { "module": "./translations/bg.js" } } ] }, { "kind": "javascript-module", "path": "./translations/cs.js", "declarations": [], "exports": [ { "kind": "js", "name": "default", "declaration": { "module": "./translations/cs.js" } } ] }, { "kind": "javascript-module", "path": "./translations/de.js", "declarations": [], "exports": [ { "kind": "js", "name": "default", "declaration": { "module": "./translations/de.js" } } ] }, { "kind": "javascript-module", "path": "./translations/en.js", "declarations": [], "exports": [ { "kind": "js", "name": "default", "declaration": { "module": "./translations/en.js" } } ] }, { "kind": "javascript-module", "path": "./translations/es.js", "declarations": [], "exports": [ { "kind": "js", "name": "default", "declaration": { "module": "./translations/es.js" } } ] }, { "kind": "javascript-module", "path": "./translations/fr.js", "declarations": [], "exports": [ { "kind": "js", "name": "default", "declaration": { "module": "./translations/fr.js" } } ] }, { "kind": "javascript-module", "path": "./translations/hu.js", "declarations": [], "exports": [ { "kind": "js", "name": "default", "declaration": { "module": "./translations/hu.js" } } ] }, { "kind": "javascript-module", "path": "./translations/it.js", "declarations": [], "exports": [ { "kind": "js", "name": "default", "declaration": { "module": "./translations/it.js" } } ] }, { "kind": "javascript-module", "path": "./translations/nl.js", "declarations": [], "exports": [ { "kind": "js", "name": "default", "declaration": { "module": "./translations/nl.js" } } ] }, { "kind": "javascript-module", "path": "./translations/pl.js", "declarations": [], "exports": [ { "kind": "js", "name": "default", "declaration": { "module": "./translations/pl.js" } } ] }, { "kind": "javascript-module", "path": "./translations/ro.js", "declarations": [], "exports": [ { "kind": "js", "name": "default", "declaration": { "module": "./translations/ro.js" } } ] }, { "kind": "javascript-module", "path": "./translations/ru.js", "declarations": [], "exports": [ { "kind": "js", "name": "default", "declaration": { "module": "./translations/ru.js" } } ] }, { "kind": "javascript-module", "path": "./translations/sk.js", "declarations": [], "exports": [ { "kind": "js", "name": "default", "declaration": { "module": "./translations/sk.js" } } ] }, { "kind": "javascript-module", "path": "./translations/uk.js", "declarations": [], "exports": [ { "kind": "js", "name": "default", "declaration": { "module": "./translations/uk.js" } } ] }, { "kind": "javascript-module", "path": "./translations/zh.js", "declarations": [], "exports": [ { "kind": "js", "name": "default", "declaration": { "module": "./translations/zh.js" } } ] }, { "kind": "javascript-module", "path": "./src/utils/createDay.js", "declarations": [ { "kind": "function", "name": "createDay", "return": { "type": { "text": "Day" } }, "parameters": [ { "name": "date,", "type": { "text": "Date" } }, { "name": "date", "default": "new Date()" } ] } ], "exports": [ { "kind": "js", "name": "createDay", "declaration": { "name": "createDay", "module": "./src/utils/createDay.js" } } ] }, { "kind": "javascript-module", "path": "./src/utils/createMonth.js", "declarations": [ { "kind": "function", "name": "createMonth", "return": { "type": { "text": "Month" } }, "parameters": [ { "name": "date", "type": { "text": "Date" } }, { "name": "opts", "type": { "text": "Object" } }, { "name": "opts.firstDayOfWeek", "type": { "text": "number" }, "optional": true } ] } ], "exports": [ { "kind": "js", "name": "createMonth", "declaration": { "name": "createMonth", "module": "./src/utils/createMonth.js" } } ] }, { "kind": "javascript-module", "path": "./src/utils/createMultipleMonth.js", "declarations": [ { "kind": "function", "name": "createMultipleMonth", "return": { "type": { "text": "{months: Month[]}" } }, "parameters": [ { "name": "date", "type": { "text": "Date" } } ] } ], "exports": [ { "kind": "js", "name": "createMultipleMonth", "declaration": { "name": "createMultipleMonth", "module": "./src/utils/createMultipleMonth.js" } } ] }, { "kind": "javascript-module", "path": "./src/utils/createWeek.js", "declarations": [ { "kind": "function", "name": "createWeek", "return": { "type": { "text": "Week" } }, "parameters": [ { "name": "date", "type": { "text": "Date" } }, { "name": "opts", "type": { "text": "Object" } }, { "name": "opts.firstDayOfWeek", "type": { "text": "number" }, "optional": true } ] } ], "exports": [ { "kind": "js", "name": "createWeek", "declaration": { "name": "createWeek", "module": "./src/utils/createWeek.js" } } ] }, { "kind": "javascript-module", "path": "./src/utils/dataTemplate.js", "declarations": [ { "kind": "function", "name": "dataTemplate", "parameters": [ { "name": "data", "type": { "text": "{months: {weeks: {days: Day[]}[]}[]}" } }, { "name": "opts", "type": { "text": "{ weekdaysShort: string[], weekdays: string[], monthsLabels?: string[], dayTemplate?: (day: TemplateResult }" } } ] } ], "exports": [ { "kind": "js", "name": "dataTemplate", "declaration": { "name": "dataTemplate", "module": "./src/utils/dataTemplate.js" } } ] }, { "kind": "javascript-module", "path": "./src/utils/dayTemplate.js", "declarations": [ { "kind": "function", "name": "dayTemplate", "parameters": [ { "name": "day", "type": { "text": "Day" } }, { "name": "opts", "type": { "text": "{ weekdays: string[], monthsLabels?: string[] }" } } ] } ], "exports": [ { "kind": "js", "name": "dayTemplate", "declaration": { "name": "dayTemplate", "module": "./src/utils/dayTemplate.js" } } ] }, { "kind": "javascript-module", "path": "./src/utils/getFirstDayNextMonth.js", "declarations": [ { "kind": "function", "name": "getFirstDayNextMonth", "description": "Gives the first day of the next month", "return": { "type": { "text": "Date" } }, "parameters": [ { "name": "date", "type": { "text": "Date" } } ] } ], "exports": [ { "kind": "js", "name": "getFirstDayNextMonth", "declaration": { "name": "getFirstDayNextMonth", "module": "./src/utils/getFirstDayNextMonth.js" } } ] }, { "kind": "javascript-module", "path": "./src/utils/getLastDayPreviousMonth.js", "declarations": [ { "kind": "function", "name": "getLastDayPreviousMonth", "description": "Gives the last day of the previous month", "return": { "type": { "text": "Date" } }, "parameters": [ { "name": "date", "type": { "text": "Date" } } ] } ], "exports": [ { "kind": "js", "name": "getLastDayPreviousMonth", "declaration": { "name": "getLastDayPreviousMonth", "module": "./src/utils/getLastDayPreviousMonth.js" } } ] }, { "kind": "javascript-module", "path": "./src/utils/isSameDate.js", "declarations": [ { "kind": "function", "name": "isSameDate", "description": "Compares if two days are the same", "return": { "type": { "text": "boolean" } }, "parameters": [ { "name": "day1", "type": { "text": "Date" } }, { "name": "day2", "type": { "text": "Date" } } ] } ], "exports": [ { "kind": "js", "name": "isSameDate", "declaration": { "name": "isSameDate", "module": "./src/utils/isSameDate.js" } } ] }, { "kind": "javascript-module", "path": "./test/utils/snapshots/monthTemplate_en-GB_Sunday_2018-12.js", "declarations": [], "exports": [ { "kind": "js", "name": "default", "declaration": { "module": "./test/utils/snapshots/monthTemplate_en-GB_Sunday_2018-12.js" } } ] } ] }