lion/packages/calendar/custom-elements.json
2021-02-15 18:07:33 +01:00

1487 lines
36 KiB
JSON

{
"schemaVersion": "experimental",
"readme": "",
"modules": [
{
"kind": "javascript-module",
"path": "./index.js",
"declarations": [],
"exports": [
{
"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": {
"type": "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": {
"type": "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": {
"type": "Date | null"
},
"default": "null"
},
{
"kind": "field",
"name": "__data",
"privacy": "public",
"type": {
"type": "{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": {
"type": "Date"
}
}
]
},
{
"kind": "method",
"name": "focusCentralDate",
"privacy": "public"
},
{
"kind": "method",
"name": "focusSelectedDate",
"privacy": "public"
},
{
"kind": "method",
"name": "requestUpdateInternal",
"privacy": "public",
"parameters": [
{
"name": "name",
"type": {
"type": "string"
}
},
{
"name": "oldValue",
"type": {
"type": "?"
}
}
]
},
{
"kind": "method",
"name": "__calculateInitialCentralDate",
"privacy": "public"
},
{
"kind": "method",
"name": "__renderMonthNavigation",
"privacy": "public",
"parameters": [
{
"name": "month",
"type": {
"type": "string"
}
},
{
"name": "year",
"type": {
"type": "number"
}
}
]
},
{
"kind": "method",
"name": "__renderYearNavigation",
"privacy": "public",
"parameters": [
{
"name": "month",
"type": {
"type": "string"
}
},
{
"name": "year",
"type": {
"type": "number"
}
}
]
},
{
"kind": "method",
"name": "__renderNavigation",
"privacy": "public"
},
{
"kind": "method",
"name": "__renderData",
"privacy": "public"
},
{
"kind": "method",
"name": "__getPreviousDisabled",
"privacy": "public",
"parameters": [
{
"name": "type",
"type": {
"type": "string"
}
},
{
"name": "previousMonth",
"type": {
"type": "string"
}
},
{
"name": "previousYear",
"type": {
"type": "number"
}
}
]
},
{
"kind": "method",
"name": "__getNextDisabled",
"privacy": "public",
"parameters": [
{
"name": "type",
"type": {
"type": "string"
}
},
{
"name": "nextMonth",
"type": {
"type": "string"
}
},
{
"name": "nextYear",
"type": {
"type": "number"
}
}
]
},
{
"kind": "method",
"name": "__renderPreviousButton",
"privacy": "public",
"parameters": [
{
"name": "type",
"type": {
"type": "string"
}
},
{
"name": "previousMonth",
"type": {
"type": "string"
}
},
{
"name": "previousYear",
"type": {
"type": "number"
}
}
]
},
{
"kind": "method",
"name": "__renderNextButton",
"privacy": "public",
"parameters": [
{
"name": "type",
"type": {
"type": "string"
}
},
{
"name": "nextMonth",
"type": {
"type": "string"
}
},
{
"name": "nextYear",
"type": {
"type": "number"
}
}
]
},
{
"kind": "method",
"name": "__getNavigationLabel",
"privacy": "public",
"parameters": [
{
"name": "mode",
"type": {
"type": "string"
}
},
{
"name": "type",
"type": {
"type": "string"
}
},
{
"name": "month",
"type": {
"type": "string"
}
},
{
"name": "year",
"type": {
"type": "number"
}
}
]
},
{
"kind": "method",
"name": "__coreDayPreprocessor",
"privacy": "public",
"parameters": [
{
"name": "_day",
"type": {
"type": "Day"
}
},
{
"name": "param1",
"type": {
"type": "*"
}
}
]
},
{
"kind": "method",
"name": "__createData",
"privacy": "public",
"parameters": [
{
"name": "options",
"type": {
"type": "Day"
},
"optional": true
}
]
},
{
"kind": "method",
"name": "__disableDatesChanged",
"privacy": "public"
},
{
"kind": "method",
"name": "__dateSelectedByUser",
"privacy": "public",
"parameters": [
{
"name": "selectedDate",
"type": {
"type": "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": {
"type": "Date"
}
}
]
},
{
"kind": "method",
"name": "__findBestEnabledDateFor",
"privacy": "public",
"parameters": [
{
"name": "date",
"type": {
"type": "Date"
}
},
{
"name": "opts",
"type": {
"type": "Object"
}
},
{
"name": "opts.mode",
"type": {
"type": "String"
},
"description": "Find best date in `future/past/both`",
"optional": true
}
]
},
{
"kind": "method",
"name": "__clickDateDelegation",
"privacy": "public",
"parameters": [
{
"name": "ev",
"type": {
"type": "Event"
}
}
]
},
{
"kind": "method",
"name": "__focusDateDelegation",
"privacy": "public"
},
{
"kind": "method",
"name": "__blurDateDelegation",
"privacy": "public"
},
{
"kind": "method",
"name": "__keyboardNavigationEvent",
"privacy": "public",
"parameters": [
{
"name": "ev",
"type": {
"type": "KeyboardEvent"
}
}
]
},
{
"kind": "method",
"name": "__modifyDate",
"privacy": "public",
"parameters": [
{
"name": "modify",
"type": {
"type": "number"
}
},
{
"name": "opts",
"type": {
"type": "Object"
}
},
{
"name": "opts.dateType",
"type": {
"type": "string"
}
},
{
"name": "opts.type",
"type": {
"type": "string"
}
},
{
"name": "opts.mode",
"type": {
"type": "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/demos.screenshots-test.js",
"declarations": [],
"exports": []
},
{
"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": {
"type": "number"
}
}
]
},
{
"kind": "method",
"name": "getDayObj",
"privacy": "public",
"parameters": [
{
"name": "monthDayNumber",
"type": {
"type": "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": {
"type": "function"
},
"description": ": condition that should apply for \"filter\" days\nExample: \"(dayObj) => dayObj.selected\""
},
{
"name": "filter",
"type": {
"type": "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": "./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": "./types/day.d.ts",
"declarations": [],
"exports": []
},
{
"kind": "javascript-module",
"path": "./src/utils/createDay.js",
"declarations": [
{
"kind": "function",
"name": "createDay",
"return": {
"type": {
"type": "Day"
}
},
"parameters": [
{
"name": "date,",
"type": {
"type": "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": {
"type": "Month"
}
},
"parameters": [
{
"name": "date",
"type": {
"type": "Date"
}
},
{
"name": "opts",
"type": {
"type": "Object"
}
},
{
"name": "opts.firstDayOfWeek",
"type": {
"type": "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": {
"type": "{months: Month[]}"
}
},
"parameters": [
{
"name": "date",
"type": {
"type": "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": {
"type": "Week"
}
},
"parameters": [
{
"name": "date",
"type": {
"type": "Date"
}
},
{
"name": "opts",
"type": {
"type": "Object"
}
},
{
"name": "opts.firstDayOfWeek",
"type": {
"type": "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": {
"type": "{months: {weeks: {days: Day[]}[]}[]}"
}
},
{
"name": "opts",
"type": {
"type": "{ 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": {
"type": "Day"
}
},
{
"name": "opts",
"type": {
"type": "{ 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": {
"type": "Date"
}
},
"parameters": [
{
"name": "date",
"type": {
"type": "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": {
"type": "Date"
}
},
"parameters": [
{
"name": "date",
"type": {
"type": "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": {
"type": "boolean"
}
},
"parameters": [
{
"name": "day1",
"type": {
"type": "Date"
}
},
{
"name": "day2",
"type": {
"type": "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"
}
}
]
}
]
}