diff --git a/packages/accordion/custom-elements.json b/packages/accordion/custom-elements.json new file mode 100644 index 000000000..3395dcd99 --- /dev/null +++ b/packages/accordion/custom-elements.json @@ -0,0 +1,152 @@ +{ + "schemaVersion": "experimental", + "readme": "", + "modules": [ + { + "kind": "javascript-module", + "path": "./index.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "LionAccordion", + "declaration": { + "name": "LionAccordion", + "module": "./src/LionAccordion.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./lion-accordion.js", + "declarations": [], + "exports": [ + { + "kind": "custom-element-definition", + "name": "lion-accordion", + "declaration": { + "name": "LionAccordion", + "module": "./src/LionAccordion.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/LionAccordion.js", + "declarations": [ + { + "kind": "class", + "name": "LionAccordion", + "superclass": { + "name": "LitElement", + "package": "@lion/core" + }, + "attributes": [ + { + "name": "focusedIndex", + "fieldName": "focusedIndex" + }, + { + "name": "expanded", + "fieldName": "expanded" + } + ], + "members": [ + { + "kind": "field", + "name": "focusedIndex", + "privacy": "public" + }, + { + "kind": "field", + "name": "expanded", + "privacy": "public" + }, + { + "kind": "method", + "name": "__setupSlots", + "privacy": "public" + }, + { + "kind": "method", + "name": "__setupStore", + "privacy": "public" + }, + { + "kind": "method", + "name": "__cleanStore", + "privacy": "public" + }, + { + "kind": "method", + "name": "__createInvokerClickHandler", + "privacy": "public", + "parameters": [ + { + "name": "index", + "type": { + "type": "number" + } + } + ] + }, + { + "kind": "method", + "name": "__handleInvokerKeydown", + "privacy": "public", + "parameters": [ + { + "name": "e", + "type": { + "type": "Event" + } + } + ] + }, + { + "kind": "field", + "name": "_pairCount", + "privacy": "public" + }, + { + "kind": "method", + "name": "__updateFocused", + "privacy": "public" + }, + { + "kind": "method", + "name": "__updateExpanded", + "privacy": "public" + }, + { + "kind": "method", + "name": "__toggleExpanded", + "privacy": "public", + "parameters": [ + { + "name": "value", + "type": { + "type": "number" + } + } + ] + } + ], + "tagName": "lion-accordion" + } + ], + "exports": [ + { + "kind": "js", + "name": "LionAccordion", + "declaration": { + "name": "LionAccordion", + "module": "./src/LionAccordion.js" + } + } + ] + } + ] +} diff --git a/packages/accordion/package.json b/packages/accordion/package.json index cc68af4c7..b3bc5d325 100644 --- a/packages/accordion/package.json +++ b/packages/accordion/package.json @@ -23,6 +23,7 @@ "types" ], "scripts": { + "custom-elements-manifest": "custom-elements-manifest analyze --exclude 'docs/**/*'", "debug": "cd ../../ && npm run debug -- --group accordion", "debug:firefox": "cd ../../ && npm run debug:firefox -- --group accordion", "debug:webkit": "cd ../../ && npm run debug:webkit -- --group accordion", @@ -43,8 +44,12 @@ "publishConfig": { "access": "public" }, +<<<<<<< HEAD "exports": { ".": "./index.js", "./lion-accordion": "./lion-accordion.js" } +======= + "customElementsManifest": "custom-elements.json" +>>>>>>> d8595b90... docs: add custom elements manifest } diff --git a/packages/ajax/custom-elements.json b/packages/ajax/custom-elements.json new file mode 100644 index 000000000..82f717d48 --- /dev/null +++ b/packages/ajax/custom-elements.json @@ -0,0 +1,498 @@ +{ + "schemaVersion": "experimental", + "readme": "", + "modules": [ + { + "kind": "javascript-module", + "path": "./index.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "ajax", + "declaration": { + "name": "ajax", + "module": "./src/ajax.js" + } + }, + { + "kind": "js", + "name": "setAjax", + "declaration": { + "name": "setAjax", + "module": "./src/ajax.js" + } + }, + { + "kind": "js", + "name": "AjaxClass", + "declaration": { + "name": "AjaxClass", + "module": "./src/AjaxClass.js" + } + }, + { + "kind": "js", + "name": "cancelInterceptorFactory", + "declaration": { + "name": "cancelInterceptorFactory", + "module": "./src/interceptors.js" + } + }, + { + "kind": "js", + "name": "cancelPreviousOnNewRequestInterceptorFactory", + "declaration": { + "name": "cancelPreviousOnNewRequestInterceptorFactory", + "module": "./src/interceptors.js" + } + }, + { + "kind": "js", + "name": "addAcceptLanguageHeaderInterceptorFactory", + "declaration": { + "name": "addAcceptLanguageHeaderInterceptorFactory", + "module": "./src/interceptors.js" + } + }, + { + "kind": "js", + "name": "jsonPrefixTransformerFactory", + "declaration": { + "name": "jsonPrefixTransformerFactory", + "module": "./src/transformers.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/AjaxClass.js", + "declarations": [ + { + "kind": "class", + "name": "AjaxClass", + "members": [ + { + "kind": "field", + "name": "options", + "privacy": "public" + }, + { + "kind": "method", + "name": "request", + "privacy": "public", + "description": "Dispatches a request", + "return": { + "type": { + "type": "?" + } + }, + "parameters": [ + { + "name": "url", + "type": { + "type": "string" + } + }, + { + "name": "config", + "type": { + "type": "{[key:string]: ?}" + }, + "description": "the config specific for this request", + "optional": true + } + ] + }, + { + "kind": "method", + "name": "cancel", + "privacy": "public", + "parameters": [ + { + "name": "msg", + "type": { + "type": "string" + } + } + ] + }, + { + "kind": "method", + "name": "get", + "privacy": "public", + "description": "Dispatches a {@link AxiosRequestConfig} with method 'get' predefined", + "return": { + "type": { + "type": "?" + } + }, + "parameters": [ + { + "name": "url", + "type": { + "type": "string" + }, + "description": "the endpoint location" + }, + { + "name": "config", + "type": { + "type": "{[key:string]: ?}" + }, + "description": "the config specific for this request", + "optional": true + } + ] + }, + { + "kind": "method", + "name": "delete", + "privacy": "public", + "description": "Dispatches a {@link AxiosRequestConfig} with method 'delete' predefined", + "return": { + "type": { + "type": "?" + } + }, + "parameters": [ + { + "name": "url", + "type": { + "type": "string" + }, + "description": "the endpoint location" + }, + { + "name": "config", + "type": { + "type": "{[key:string]: ?}" + }, + "description": "the config specific for this request", + "optional": true + } + ] + }, + { + "kind": "method", + "name": "head", + "privacy": "public", + "description": "Dispatches a {@link AxiosRequestConfig} with method 'head' predefined", + "return": { + "type": { + "type": "?" + } + }, + "parameters": [ + { + "name": "url", + "type": { + "type": "string" + }, + "description": "the endpoint location" + }, + { + "name": "config", + "type": { + "type": "{[key:string]: ?}" + }, + "description": "the config specific for this request", + "optional": true + } + ] + }, + { + "kind": "method", + "name": "post", + "privacy": "public", + "description": "Dispatches a {@link AxiosRequestConfig} with method 'post' predefined", + "return": { + "type": { + "type": "?" + } + }, + "parameters": [ + { + "name": "url", + "type": { + "type": "string" + }, + "description": "the endpoint location" + }, + { + "name": "data", + "type": { + "type": "Object" + }, + "description": "the data to be sent to the endpoint", + "optional": true + }, + { + "name": "config", + "type": { + "type": "{[key:string]: ?}" + }, + "description": "the config specific for this request", + "optional": true + } + ] + }, + { + "kind": "method", + "name": "put", + "privacy": "public", + "description": "Dispatches a {@link AxiosRequestConfig} with method 'put' predefined", + "return": { + "type": { + "type": "?" + } + }, + "parameters": [ + { + "name": "url", + "type": { + "type": "string" + }, + "description": "the endpoint location" + }, + { + "name": "data", + "type": { + "type": "Object" + }, + "description": "the data to be sent to the endpoint", + "optional": true + }, + { + "name": "config", + "type": { + "type": "{[key:string]: ?}" + }, + "description": "the config specific for this request", + "optional": true + } + ] + }, + { + "kind": "method", + "name": "patch", + "privacy": "public", + "description": "Dispatches a {@link AxiosRequestConfig} with method 'patch' predefined", + "return": { + "type": { + "type": "?" + } + }, + "parameters": [ + { + "name": "url", + "type": { + "type": "string" + }, + "description": "the endpoint location" + }, + { + "name": "data", + "type": { + "type": "Object" + }, + "description": "the data to be sent to the endpoint", + "optional": true + }, + { + "name": "config", + "type": { + "type": "Object" + }, + "description": "the config specific for this request.", + "optional": true + } + ] + }, + { + "kind": "method", + "name": "__setupInterceptors", + "privacy": "public" + }, + { + "kind": "method", + "name": "__setupTransformers", + "privacy": "public", + "parameters": [ + { + "name": "config", + "type": { + "type": "{[key:string]: ?}" + } + } + ] + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "AjaxClass", + "declaration": { + "name": "AjaxClass", + "module": "./src/AjaxClass.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/ajax.js", + "declarations": [ + { + "kind": "variable", + "name": "ajax" + }, + { + "kind": "function", + "name": "setAjax", + "description": "setAjax allows the Application Developer to override the globally used instance of {@link:ajax}.\nAll interactions with {@link:ajax} after the call to setAjax will use this new instance\n(so make sure to call this method before dependant code using {@link:ajax} is ran and this\nmethod is not called by any of your (indirect) dependencies.)", + "parameters": [ + { + "name": "newAjax", + "type": { + "type": "AjaxClass" + }, + "description": "the globally used instance of {@link:ajax}." + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "ajax", + "declaration": { + "name": "ajax", + "module": "./src/ajax.js" + } + }, + { + "kind": "js", + "name": "setAjax", + "declaration": { + "name": "setAjax", + "module": "./src/ajax.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/interceptors.js", + "declarations": [ + { + "kind": "function", + "name": "addAcceptLanguageHeaderInterceptorFactory", + "return": { + "type": { + "type": "(config: {[key:string]: ?}) => {[key:string]: ?}" + } + }, + "parameters": [ + { + "name": "lang", + "type": { + "type": "string" + }, + "optional": true + } + ] + }, + { + "kind": "function", + "name": "cancelInterceptorFactory", + "return": { + "type": { + "type": "(config: {[key:string]: ?}) => {[key:string]: ?}" + } + }, + "parameters": [ + { + "name": "ajaxInstance", + "type": { + "type": "AjaxClass" + } + } + ] + }, + { + "kind": "function", + "name": "cancelPreviousOnNewRequestInterceptorFactory", + "return": { + "type": { + "type": "(config: {[key:string]: ?}) => {[key:string]: ?}" + } + } + } + ], + "exports": [ + { + "kind": "js", + "name": "addAcceptLanguageHeaderInterceptorFactory", + "declaration": { + "name": "addAcceptLanguageHeaderInterceptorFactory", + "module": "./src/interceptors.js" + } + }, + { + "kind": "js", + "name": "cancelInterceptorFactory", + "declaration": { + "name": "cancelInterceptorFactory", + "module": "./src/interceptors.js" + } + }, + { + "kind": "js", + "name": "cancelPreviousOnNewRequestInterceptorFactory", + "declaration": { + "name": "cancelPreviousOnNewRequestInterceptorFactory", + "module": "./src/interceptors.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/transformers.js", + "declarations": [ + { + "kind": "function", + "name": "jsonPrefixTransformerFactory", + "parameters": [ + { + "name": "prefix", + "type": { + "type": "string" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "jsonPrefixTransformerFactory", + "declaration": { + "name": "jsonPrefixTransformerFactory", + "module": "./src/transformers.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/assets/data.json", + "declarations": [], + "exports": [] + } + ] +} diff --git a/packages/ajax/package.json b/packages/ajax/package.json index 96f5079b5..01eaab8df 100644 --- a/packages/ajax/package.json +++ b/packages/ajax/package.json @@ -23,6 +23,7 @@ "types" ], "scripts": { + "custom-elements-manifest": "custom-elements-manifest analyze --exclude 'docs/**/*'", "debug": "cd ../../ && npm run debug -- --group ajax", "debug:firefox": "cd ../../ && npm run debug:firefox -- --group ajax", "debug:webkit": "cd ../../ && npm run debug:webkit -- --group ajax", @@ -39,5 +40,6 @@ "publishConfig": { "access": "public" }, - "exports": "./index.js" + "exports": "./index.js", + "customElementsManifest": "custom-elements.json" } diff --git a/packages/button/custom-elements.json b/packages/button/custom-elements.json new file mode 100644 index 000000000..99a974be9 --- /dev/null +++ b/packages/button/custom-elements.json @@ -0,0 +1,229 @@ +{ + "schemaVersion": "experimental", + "readme": "", + "modules": [ + { + "kind": "javascript-module", + "path": "./index.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "LionButton", + "declaration": { + "name": "LionButton", + "module": "./src/LionButton.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./lion-button.js", + "declarations": [], + "exports": [ + { + "kind": "custom-element-definition", + "name": "lion-button", + "declaration": { + "name": "LionButton", + "module": "./src/LionButton.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/LionButton.js", + "declarations": [ + { + "kind": "class", + "name": "LionButton", + "mixins": [ + { + "name": "DisabledWithTabIndexMixin", + "package": "@lion/core" + }, + { + "name": "SlotMixin", + "package": "@lion/core" + } + ], + "superclass": { + "name": "LitElement", + "package": "@lion/core" + }, + "attributes": [ + { + "name": "role", + "fieldName": "role" + }, + { + "name": "active", + "fieldName": "active" + }, + { + "name": "type", + "fieldName": "type" + } + ], + "members": [ + { + "kind": "field", + "name": "role", + "privacy": "public", + "default": "'button'" + }, + { + "kind": "field", + "name": "active", + "privacy": "public", + "default": "false" + }, + { + "kind": "field", + "name": "type", + "privacy": "public", + "default": "'submit'" + }, + { + "kind": "method", + "name": "_beforeTemplate", + "privacy": "public" + }, + { + "kind": "method", + "name": "_afterTemplate", + "privacy": "public" + }, + { + "kind": "field", + "name": "_nativeButtonNode", + "privacy": "public" + }, + { + "kind": "field", + "name": "slots", + "privacy": "public" + }, + { + "kind": "method", + "name": "__clickDelegationHandler", + "privacy": "public", + "description": "Delegate click, by flashing a native button as a direct child\nof the form, and firing click on this button. This will fire the form submit\nwithout side effects caused by the click bubbling back up to lion-button.", + "parameters": [ + { + "name": "ev", + "type": { + "type": "Event" + } + } + ] + }, + { + "kind": "method", + "name": "__setupDelegationInConstructor", + "privacy": "public" + }, + { + "kind": "method", + "name": "__setupEvents", + "privacy": "public" + }, + { + "kind": "method", + "name": "__teardownEvents", + "privacy": "public" + }, + { + "kind": "method", + "name": "__mousedownHandler", + "privacy": "public" + }, + { + "kind": "method", + "name": "__keydownHandler", + "privacy": "public", + "parameters": [ + { + "name": "e", + "type": { + "type": "KeyboardEvent" + } + } + ] + }, + { + "kind": "method", + "name": "__keyupHandler", + "privacy": "public", + "parameters": [ + { + "name": "e", + "type": { + "type": "KeyboardEvent" + } + } + ] + }, + { + "kind": "method", + "name": "__preventEventLeakage", + "privacy": "public", + "description": "Prevents that someone who listens outside or on form catches the click event", + "parameters": [ + { + "name": "e", + "type": { + "type": "Event" + } + } + ] + }, + { + "kind": "method", + "name": "__setupSubmitAndResetHelperOnConnected", + "privacy": "public" + }, + { + "kind": "method", + "name": "__teardownSubmitAndResetHelperOnDisconnected", + "privacy": "public" + } + ], + "tagName": "lion-button" + } + ], + "exports": [ + { + "kind": "js", + "name": "LionButton", + "declaration": { + "name": "LionButton", + "module": "./src/LionButton.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./test/demos.screenshots-test.js", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "./docs/assets/icon.svg.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./docs/assets/icon.svg.js" + } + } + ] + } + ] +} diff --git a/packages/button/package.json b/packages/button/package.json index 372e4831d..60db805c3 100644 --- a/packages/button/package.json +++ b/packages/button/package.json @@ -23,6 +23,7 @@ "types" ], "scripts": { + "custom-elements-manifest": "custom-elements-manifest analyze --exclude 'docs/**/*'", "debug": "cd ../../ && npm run debug -- --group button", "debug:firefox": "cd ../../ && npm run debug:firefox -- --group button", "debug:webkit": "cd ../../ && npm run debug:webkit -- --group button", @@ -46,5 +47,6 @@ "exports": { ".": "./index.js", "./lion-button": "./lion-button.js" - } + }, + "customElementsManifest": "custom-elements.json" } diff --git a/packages/calendar/custom-elements.json b/packages/calendar/custom-elements.json new file mode 100644 index 000000000..fe2b0003b --- /dev/null +++ b/packages/calendar/custom-elements.json @@ -0,0 +1,1487 @@ +{ + "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" + } + } + ] + } + ] +} diff --git a/packages/calendar/package.json b/packages/calendar/package.json index f88834fac..c3d460077 100644 --- a/packages/calendar/package.json +++ b/packages/calendar/package.json @@ -23,6 +23,7 @@ "types" ], "scripts": { + "custom-elements-manifest": "custom-elements-manifest analyze --exclude 'docs/**/*'", "debug": "cd ../../ && npm run debug -- --group calendar", "debug:firefox": "cd ../../ && npm run debug:firefox -- --group calendar", "debug:webkit": "cd ../../ && npm run debug:webkit -- --group calendar", @@ -48,5 +49,6 @@ ".": "./index.js", "./lion-calendar": "./lion-calendar.js", "./test-helpers": "./test-helpers.js" - } + }, + "customElementsManifest": "custom-elements.json" } diff --git a/packages/checkbox-group/custom-elements.json b/packages/checkbox-group/custom-elements.json new file mode 100644 index 000000000..f01dad064 --- /dev/null +++ b/packages/checkbox-group/custom-elements.json @@ -0,0 +1,255 @@ +{ + "schemaVersion": "experimental", + "readme": "", + "modules": [ + { + "kind": "javascript-module", + "path": "./index.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "LionCheckboxGroup", + "declaration": { + "name": "LionCheckboxGroup", + "module": "./src/LionCheckboxGroup.js" + } + }, + { + "kind": "js", + "name": "LionCheckboxIndeterminate", + "declaration": { + "name": "LionCheckboxIndeterminate", + "module": "./src/LionCheckboxIndeterminate.js" + } + }, + { + "kind": "js", + "name": "LionCheckbox", + "declaration": { + "name": "LionCheckbox", + "module": "./src/LionCheckbox.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./lion-checkbox-group.js", + "declarations": [], + "exports": [ + { + "kind": "custom-element-definition", + "name": "lion-checkbox-group", + "declaration": { + "name": "LionCheckboxGroup", + "module": "./src/LionCheckboxGroup.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./lion-checkbox-indeterminate.js", + "declarations": [], + "exports": [ + { + "kind": "custom-element-definition", + "name": "lion-checkbox-indeterminate", + "declaration": { + "name": "LionCheckboxIndeterminate", + "module": "./src/LionCheckboxIndeterminate.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./lion-checkbox.js", + "declarations": [], + "exports": [ + { + "kind": "custom-element-definition", + "name": "lion-checkbox", + "declaration": { + "name": "LionCheckbox", + "module": "./src/LionCheckbox.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/LionCheckbox.js", + "declarations": [ + { + "kind": "class", + "name": "LionCheckbox", + "mixins": [ + { + "name": "ChoiceInputMixin", + "package": "@lion/form-core" + } + ], + "superclass": { + "name": "LionInput", + "package": "@lion/input" + }, + "members": [ + { + "kind": "method", + "name": "connectedCallback", + "privacy": "public" + } + ], + "tagName": "lion-checkbox" + } + ], + "exports": [ + { + "kind": "js", + "name": "LionCheckbox", + "declaration": { + "name": "LionCheckbox", + "module": "./src/LionCheckbox.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/LionCheckboxGroup.js", + "declarations": [ + { + "kind": "class", + "name": "LionCheckboxGroup", + "mixins": [ + { + "name": "ChoiceGroupMixin", + "package": "@lion/form-core" + }, + { + "name": "FormGroupMixin", + "package": "@lion/form-core" + } + ], + "superclass": { + "name": "LitElement", + "package": "@lion/core" + }, + "tagName": "lion-checkbox-group" + } + ], + "exports": [ + { + "kind": "js", + "name": "LionCheckboxGroup", + "declaration": { + "name": "LionCheckboxGroup", + "module": "./src/LionCheckboxGroup.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/LionCheckboxIndeterminate.js", + "declarations": [ + { + "kind": "class", + "name": "LionCheckboxIndeterminate", + "superclass": { + "name": "LionCheckbox", + "module": "/src/src/LionCheckbox.js" + }, + "attributes": [ + { + "name": "indeterminate", + "fieldName": "indeterminate" + } + ], + "members": [ + { + "kind": "field", + "name": "indeterminate", + "privacy": "public", + "default": "false" + }, + { + "kind": "field", + "name": "_checkboxGroupNode", + "privacy": "public" + }, + { + "kind": "field", + "name": "_subCheckboxes", + "privacy": "public" + }, + { + "kind": "method", + "name": "_setOwnCheckedState", + "privacy": "public" + }, + { + "kind": "method", + "name": "__onModelValueChanged", + "privacy": "public", + "parameters": [ + { + "name": "ev", + "type": { + "type": "Event" + } + } + ] + }, + { + "kind": "method", + "name": "_afterTemplate", + "privacy": "public" + }, + { + "kind": "method", + "name": "_onRequestToAddFormElement", + "privacy": "public" + }, + { + "kind": "method", + "name": "connectedCallback", + "privacy": "public" + }, + { + "kind": "method", + "name": "disconnectedCallback", + "privacy": "public" + }, + { + "kind": "method", + "name": "updated", + "privacy": "public", + "parameters": [ + { + "name": "changedProperties", + "type": { + "type": "PropertyValues " + } + } + ] + } + ], + "tagName": "lion-checkbox-indeterminate" + } + ], + "exports": [ + { + "kind": "js", + "name": "LionCheckboxIndeterminate", + "declaration": { + "name": "LionCheckboxIndeterminate", + "module": "./src/LionCheckboxIndeterminate.js" + } + } + ] + } + ] +} diff --git a/packages/checkbox-group/package.json b/packages/checkbox-group/package.json index a0b4c5094..1e70599ce 100644 --- a/packages/checkbox-group/package.json +++ b/packages/checkbox-group/package.json @@ -23,6 +23,7 @@ "types" ], "scripts": { + "custom-elements-manifest": "custom-elements-manifest analyze --exclude 'docs/**/*'", "debug": "cd ../../ && npm run debug -- --group checkbox-group", "debug:firefox": "cd ../../ && npm run debug:firefox -- --group checkbox-group", "debug:webkit": "cd ../../ && npm run debug:webkit -- --group checkbox-group", @@ -52,5 +53,6 @@ "./lion-checkbox": "./lion-checkbox.js", "./lion-checkbox-group": "./lion-checkbox-group.js", "./lion-checkbox-indeterminate": "./lion-checkbox-indeterminate.js" - } + }, + "customElementsManifest": "custom-elements.json" } diff --git a/packages/collapsible/custom-elements.json b/packages/collapsible/custom-elements.json new file mode 100644 index 000000000..11ab7819f --- /dev/null +++ b/packages/collapsible/custom-elements.json @@ -0,0 +1,423 @@ +{ + "schemaVersion": "experimental", + "readme": "", + "modules": [ + { + "kind": "javascript-module", + "path": "./index.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "LionCollapsible", + "declaration": { + "name": "LionCollapsible", + "module": "./src/LionCollapsible.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./lion-collapsible.js", + "declarations": [], + "exports": [ + { + "kind": "custom-element-definition", + "name": "lion-collapsible", + "declaration": { + "name": "LionCollapsible", + "module": "./src/LionCollapsible.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./demo/CustomCollapsible.js", + "declarations": [ + { + "kind": "class", + "name": "CustomCollapsible", + "superclass": { + "name": "LionCollapsible", + "module": "/demo/src/LionCollapsible.js" + }, + "attributes": [ + { + "name": "transitioning", + "fieldName": "transitioning" + }, + { + "name": "opened", + "fieldName": "opened", + "inheritedFrom": { + "name": "LionCollapsible", + "module": "./src/LionCollapsible.js" + } + } + ], + "members": [ + { + "kind": "field", + "name": "transitioning", + "privacy": "public", + "default": "false" + }, + { + "kind": "method", + "name": "connectedCallback", + "privacy": "public" + }, + { + "kind": "method", + "name": "toggle", + "privacy": "public", + "description": "Wait until transition is finished." + }, + { + "kind": "method", + "name": "_showAnimation", + "privacy": "public", + "description": "Trigger show animation and wait for transition to be finished.", + "parameters": [ + { + "name": "options", + "type": { + "type": "Object" + }, + "description": "element node and its options" + }, + { + "name": "options.contentNode", + "type": { + "type": "HTMLElement" + } + } + ] + }, + { + "kind": "method", + "name": "_hideAnimation", + "privacy": "public", + "description": "Trigger hide animation and wait for transition to be finished.", + "parameters": [ + { + "name": "options", + "type": { + "type": "Object" + }, + "description": "element node and its options" + }, + { + "name": "options.contentNode", + "type": { + "type": "HTMLElement" + } + } + ] + }, + { + "kind": "method", + "name": "_waitForTransition", + "privacy": "public", + "description": "Wait until the transition event is finished.", + "return": { + "type": { + "type": "Promise" + } + }, + "parameters": [ + { + "name": "options", + "type": { + "type": "Object" + }, + "description": "element node and its options" + }, + { + "name": "options.contentNode", + "type": { + "type": "HTMLElement" + } + } + ] + }, + { + "kind": "method", + "name": "__calculateHeight", + "privacy": "private", + "description": "Calculate total content height after collapsible opens", + "parameters": [ + { + "name": "contentNode", + "type": { + "type": "HTMLElement" + }, + "description": "content node" + } + ] + }, + { + "kind": "field", + "name": "opened", + "privacy": "public", + "default": "false", + "inheritedFrom": { + "name": "LionCollapsible", + "module": "./src/LionCollapsible.js" + } + }, + { + "kind": "method", + "name": "show", + "privacy": "public", + "description": "Show extra content.", + "inheritedFrom": { + "name": "LionCollapsible", + "module": "./src/LionCollapsible.js" + } + }, + { + "kind": "method", + "name": "hide", + "privacy": "public", + "description": "Hide extra content.", + "inheritedFrom": { + "name": "LionCollapsible", + "module": "./src/LionCollapsible.js" + } + }, + { + "kind": "field", + "name": "_invokerNode", + "privacy": "public", + "inheritedFrom": { + "name": "LionCollapsible", + "module": "./src/LionCollapsible.js" + } + }, + { + "kind": "field", + "name": "_contentNode", + "privacy": "public", + "inheritedFrom": { + "name": "LionCollapsible", + "module": "./src/LionCollapsible.js" + } + }, + { + "kind": "field", + "name": "_contentHeight", + "privacy": "public", + "inheritedFrom": { + "name": "LionCollapsible", + "module": "./src/LionCollapsible.js" + } + }, + { + "kind": "method", + "name": "__openedChanged", + "privacy": "private", + "description": "Update content slot size and fire `opened-changed` event", + "inheritedFrom": { + "name": "LionCollapsible", + "module": "./src/LionCollapsible.js" + } + }, + { + "kind": "method", + "name": "__updateContentSize", + "privacy": "private", + "description": "Toggle extra content visibility on state change.", + "inheritedFrom": { + "name": "LionCollapsible", + "module": "./src/LionCollapsible.js" + } + }, + { + "kind": "method", + "name": "__setDefaultState", + "privacy": "private", + "description": "Set default state for content based on `opened` attr", + "inheritedFrom": { + "name": "LionCollapsible", + "module": "./src/LionCollapsible.js" + } + } + ], + "tagName": "custom-collapsible", + "events": [ + { + "name": "opened-changed", + "type": { + "type": "CustomEvent" + }, + "inheritedFrom": { + "name": "LionCollapsible", + "module": "./src/LionCollapsible.js" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "CustomCollapsible", + "declaration": { + "name": "CustomCollapsible", + "module": "./demo/CustomCollapsible.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./demo/applyDemoCollapsibleStyles.js", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "./demo/custom-collapsible.js", + "declarations": [], + "exports": [ + { + "kind": "custom-element-definition", + "name": "custom-collapsible", + "declaration": { + "name": "CustomCollapsible", + "module": "./demo/CustomCollapsible.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/LionCollapsible.js", + "declarations": [ + { + "kind": "class", + "name": "LionCollapsible", + "events": [ + { + "name": "opened-changed", + "type": { + "type": "CustomEvent" + } + } + ], + "superclass": { + "name": "LitElement", + "package": "@lion/core" + }, + "attributes": [ + { + "name": "opened", + "fieldName": "opened" + } + ], + "members": [ + { + "kind": "field", + "name": "opened", + "privacy": "public", + "default": "false" + }, + { + "kind": "method", + "name": "show", + "privacy": "public", + "description": "Show extra content." + }, + { + "kind": "method", + "name": "hide", + "privacy": "public", + "description": "Hide extra content." + }, + { + "kind": "method", + "name": "toggle", + "privacy": "public", + "description": "Toggle the current(opened/closed) state." + }, + { + "kind": "method", + "name": "_showAnimation", + "privacy": "protected", + "description": "Show animation implementation in sub-classer.", + "parameters": [ + { + "name": "opts", + "type": { + "type": "Object" + } + } + ] + }, + { + "kind": "method", + "name": "_hideAnimation", + "privacy": "protected", + "description": "Hide animation implementation in sub-classer.", + "parameters": [ + { + "name": "opts", + "type": { + "type": "Object" + } + } + ] + }, + { + "kind": "field", + "name": "_invokerNode", + "privacy": "public" + }, + { + "kind": "field", + "name": "_contentNode", + "privacy": "public" + }, + { + "kind": "field", + "name": "_contentHeight", + "privacy": "public" + }, + { + "kind": "method", + "name": "__openedChanged", + "privacy": "private", + "description": "Update content slot size and fire `opened-changed` event" + }, + { + "kind": "method", + "name": "__updateContentSize", + "privacy": "private", + "description": "Toggle extra content visibility on state change." + }, + { + "kind": "method", + "name": "__setDefaultState", + "privacy": "private", + "description": "Set default state for content based on `opened` attr" + } + ], + "tagName": "lion-collapsible" + } + ], + "exports": [ + { + "kind": "js", + "name": "LionCollapsible", + "declaration": { + "name": "LionCollapsible", + "module": "./src/LionCollapsible.js" + } + } + ] + } + ] +} diff --git a/packages/collapsible/package.json b/packages/collapsible/package.json index 1f8c11f04..d95d4cc6d 100644 --- a/packages/collapsible/package.json +++ b/packages/collapsible/package.json @@ -23,6 +23,7 @@ "types" ], "scripts": { + "custom-elements-manifest": "custom-elements-manifest analyze --exclude 'docs/**/*'", "debug": "cd ../../ && npm run debug -- --group collapsible", "debug:firefox": "cd ../../ && npm run debug:firefox -- --group collapsible", "debug:webkit": "cd ../../ && npm run debug:webkit -- --group collapsible", @@ -49,5 +50,6 @@ "exports": { ".": "./index.js", "./lion-collapsible": "./lion-collapsible.js" - } + }, + "customElementsManifest": "custom-elements.json" } diff --git a/packages/combobox/custom-elements.json b/packages/combobox/custom-elements.json new file mode 100644 index 000000000..098256c59 --- /dev/null +++ b/packages/combobox/custom-elements.json @@ -0,0 +1,3954 @@ +{ + "schemaVersion": "experimental", + "readme": "", + "modules": [ + { + "kind": "javascript-module", + "path": "./index.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "LionCombobox", + "declaration": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./lion-combobox.js", + "declarations": [], + "exports": [ + { + "kind": "custom-element-definition", + "name": "lion-combobox", + "declaration": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/LinkMixin.js", + "declarations": [ + { + "kind": "variable", + "name": "LinkMixin" + } + ], + "exports": [ + { + "kind": "js", + "name": "LinkMixin", + "declaration": { + "name": "LinkMixin", + "module": "./docs/LinkMixin.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/demo-selection-display.js", + "declarations": [ + { + "kind": "class", + "name": "DemoSelectionDisplay", + "superclass": { + "name": "LitElement", + "package": "@lion/core" + }, + "attributes": [ + { + "name": "comboboxElement", + "fieldName": "comboboxElement" + }, + { + "name": "removeChipOnNextBackspace", + "fieldName": "removeChipOnNextBackspace" + }, + { + "name": "selectedElements", + "fieldName": "selectedElements" + } + ], + "members": [ + { + "kind": "field", + "name": "comboboxElement", + "privacy": "public" + }, + { + "kind": "field", + "name": "removeChipOnNextBackspace", + "privacy": "public" + }, + { + "kind": "field", + "name": "selectedElements", + "privacy": "public", + "default": "[]" + }, + { + "kind": "field", + "name": "_inputNode", + "privacy": "public" + }, + { + "kind": "method", + "name": "_computeSelectedElements", + "privacy": "public" + }, + { + "kind": "field", + "name": "multipleChoice", + "privacy": "public" + }, + { + "kind": "method", + "name": "onComboboxElementUpdated", + "privacy": "public", + "parameters": [ + { + "name": "changedProperties", + "type": { + "type": "PropertyValues " + } + } + ] + }, + { + "kind": "method", + "name": "__reorderChips", + "privacy": "public", + "description": "Whenever selectedElements are updated, makes sure that latest added elements\nare shown latest, and deleted elements respect existing order of chips." + }, + { + "kind": "method", + "name": "_selectedElementTemplate", + "privacy": "public", + "parameters": [ + { + "name": "option", + "type": { + "type": "LionOption" + } + }, + { + "name": "highlight", + "type": { + "type": "boolean" + } + } + ] + }, + { + "kind": "method", + "name": "_selectedElementsTemplate", + "privacy": "public" + }, + { + "kind": "method", + "name": "__textboxOnKeyup", + "privacy": "public", + "parameters": [ + { + "name": "ev", + "type": { + "type": "{ key: string; }" + } + } + ] + }, + { + "kind": "method", + "name": "__restoreBackspace", + "privacy": "public" + } + ], + "tagName": "demo-selection-display" + } + ], + "exports": [ + { + "kind": "js", + "name": "DemoSelectionDisplay", + "declaration": { + "name": "DemoSelectionDisplay", + "module": "./docs/demo-selection-display.js" + } + }, + { + "kind": "custom-element-definition", + "name": "demo-selection-display", + "declaration": { + "name": "DemoSelectionDisplay", + "module": "./docs/demo-selection-display.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/lazyRender.js", + "declarations": [ + { + "kind": "variable", + "name": "lazyRender", + "description": "In order to speed up the first meaningful paint, use this directive\non content that is:\n- (visually) hidden\n- out of the page flow (having position: 'absolute|fixed')\n\nA good practice would be to use it in overlays,\nFor hidden tab panels, collapsible content etc. it's also useful" + } + ], + "exports": [ + { + "kind": "js", + "name": "lazyRender", + "declaration": { + "name": "lazyRender", + "module": "./docs/lazyRender.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/levenshtein.js", + "declarations": [ + { + "kind": "function", + "name": "default", + "parameters": [ + { + "name": "a" + }, + { + "name": "b" + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "name": "default", + "module": "./docs/levenshtein.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/LionCombobox.js", + "declarations": [ + { + "kind": "class", + "name": "LionCombobox", + "mixins": [ + { + "name": "OverlayMixin", + "package": "@lion/overlays" + } + ], + "superclass": { + "name": "LionListbox", + "package": "@lion/listbox" + }, + "attributes": [ + { + "name": "autocomplete", + "fieldName": "autocomplete" + }, + { + "name": "match-mode", + "fieldName": "matchMode" + }, + { + "name": "show-all-on-empty", + "fieldName": "showAllOnEmpty" + }, + { + "name": "__shouldAutocompleteNextUpdate", + "fieldName": "__shouldAutocompleteNextUpdate" + } + ], + "members": [ + { + "kind": "field", + "name": "autocomplete", + "privacy": "public", + "type": { + "type": "'none'|'list'|'inline'|'both'" + }, + "description": "When \"list\", will filter listbox suggestions based on textbox value.\nWhen \"both\", an inline completion string will be added to the textbox as well.", + "default": "'both'" + }, + { + "kind": "field", + "name": "matchMode", + "privacy": "public", + "type": { + "type": "'begin'|'all'" + }, + "description": "When typing in the textbox, will by default be set on 'begin',\nonly matching the beginning part in suggestion list.\n=> 'a' will match 'apple' from ['apple', 'pear', 'citrus'].\nWhen set to 'all', will match middle of the word as well\n=> 'a' will match 'apple' and 'pear'", + "default": "'all'" + }, + { + "kind": "field", + "name": "showAllOnEmpty", + "privacy": "public", + "description": "When true, the listbox is open and textbox goes from a value to empty, all options are shown.\nBy default, the listbox closes on empty, similar to wai-aria example and ", + "default": "false" + }, + { + "kind": "field", + "name": "__shouldAutocompleteNextUpdate", + "privacy": "public" + }, + { + "kind": "method", + "name": "_inputGroupInputTemplate", + "privacy": "public" + }, + { + "kind": "method", + "name": "_overlayListboxTemplate", + "privacy": "public" + }, + { + "kind": "method", + "name": "_groupTwoTemplate", + "privacy": "public" + }, + { + "kind": "field", + "name": "slots", + "privacy": "public" + }, + { + "kind": "field", + "name": "_comboboxNode", + "privacy": "public" + }, + { + "kind": "field", + "name": "_selectionDisplayNode", + "privacy": "public" + }, + { + "kind": "field", + "name": "_inputNode", + "privacy": "public" + }, + { + "kind": "field", + "name": "_overlayContentNode", + "privacy": "public" + }, + { + "kind": "field", + "name": "_overlayReferenceNode", + "privacy": "public" + }, + { + "kind": "field", + "name": "_overlayInvokerNode", + "privacy": "public" + }, + { + "kind": "field", + "name": "_listboxNode", + "privacy": "public" + }, + { + "kind": "field", + "name": "_activeDescendantOwnerNode", + "privacy": "public" + }, + { + "kind": "method", + "name": "connectedCallback", + "privacy": "public" + }, + { + "kind": "method", + "name": "requestUpdateInternal", + "privacy": "public", + "parameters": [ + { + "name": "name", + "type": { + "type": "'disabled'|'modelValue'|'readOnly'" + } + }, + { + "name": "oldValue", + "type": { + "type": "unknown" + } + } + ] + }, + { + "kind": "method", + "name": "updated", + "privacy": "public", + "parameters": [ + { + "name": "changedProperties", + "type": { + "type": "PropertyValues " + } + } + ] + }, + { + "kind": "method", + "name": "matchCondition", + "privacy": "public", + "description": "When the preconfigurable `match-mode` conditions are not sufficient,\none can define a custom matching function.", + "parameters": [ + { + "name": "option", + "type": { + "type": "LionOption" + } + }, + { + "name": "textboxValue", + "type": { + "type": "string" + }, + "description": "current ._inputNode value" + } + ] + }, + { + "kind": "method", + "name": "_showOverlayCondition", + "privacy": "public", + "parameters": [ + { + "name": "options", + "type": { + "type": "{ currentValue: string, lastKey:string }" + } + } + ] + }, + { + "kind": "method", + "name": "_textboxOnInput", + "privacy": "public", + "parameters": [ + { + "name": "ev", + "type": { + "type": "Event" + } + } + ] + }, + { + "kind": "method", + "name": "_textboxOnKeydown", + "privacy": "public", + "parameters": [ + { + "name": "ev", + "type": { + "type": "KeyboardEvent" + } + } + ] + }, + { + "kind": "method", + "name": "_listboxOnClick", + "privacy": "public", + "parameters": [ + { + "name": "ev", + "type": { + "type": "MouseEvent" + } + } + ] + }, + { + "kind": "method", + "name": "_setTextboxValue", + "privacy": "public", + "parameters": [ + { + "name": "v", + "type": { + "type": "string" + } + } + ] + }, + { + "kind": "method", + "name": "__onOverlayClose", + "privacy": "public" + }, + { + "kind": "method", + "name": "_repropagationCondition", + "privacy": "public", + "parameters": [ + { + "name": "target", + "type": { + "type": "EventTarget & ChoiceInputHost" + } + } + ] + }, + { + "kind": "method", + "name": "_onFilterMatch", + "privacy": "public", + "parameters": [ + { + "name": "option", + "type": { + "type": "LionOption & {__originalInnerHTML?:string}" + } + }, + { + "name": "matchingString", + "type": { + "type": "string" + } + } + ] + }, + { + "kind": "method", + "name": "_onFilterUnmatch", + "privacy": "public", + "parameters": [ + { + "name": "option", + "type": { + "type": "LionOption & {__originalInnerHTML?:string}" + } + }, + { + "name": "curValue", + "type": { + "type": "string" + }, + "optional": true + }, + { + "name": "prevValue", + "type": { + "type": "string" + }, + "optional": true + } + ] + }, + { + "kind": "method", + "name": "__computeUserIntendsAutoFill", + "privacy": "public", + "description": "Computes whether a user intends to autofill (inline autocomplete textbox)", + "parameters": [ + { + "name": "config", + "type": { + "type": "{ prevValue:string, curValue:string }" + } + } + ] + }, + { + "kind": "method", + "name": "_handleAutocompletion", + "privacy": "public", + "description": "Handles autocompletion. This entails:\n- list: shows a list on keydown character press\n- filter: filters list of potential matches according to matchmode or provided matchCondition\n- focus: automatically focuses closest match (makes it the activedescendant)\n- check: automatically checks/selects closest match when selection-follows-focus is enabled\n(this is the default configuration)\n- complete: completes the textbox value inline (the 'missing characters' will be added as\nselected text)" + }, + { + "kind": "method", + "name": "__textboxInlineComplete", + "privacy": "public", + "parameters": [ + { + "name": "option", + "default": "this.formElements[this.activeIndex]" + } + ] + }, + { + "kind": "method", + "name": "_autoSelectCondition", + "privacy": "public", + "description": "When this condition is false, an end user will have to manually select a suggested\noption from the list (by default when autocomplete is 'none' or 'list').\nFor autocomplete 'both' or 'inline', it will automatically select on a match." + }, + { + "kind": "method", + "name": "_setupListboxNode", + "privacy": "public" + }, + { + "kind": "method", + "name": "_defineOverlayConfig", + "privacy": "public" + }, + { + "kind": "method", + "name": "_setupOverlayCtrl", + "privacy": "public" + }, + { + "kind": "method", + "name": "_setupOpenCloseListeners", + "privacy": "public" + }, + { + "kind": "method", + "name": "_teardownOpenCloseListeners", + "privacy": "public" + }, + { + "kind": "method", + "name": "_listboxOnKeyDown", + "privacy": "public", + "parameters": [ + { + "name": "ev", + "type": { + "type": "KeyboardEvent" + } + } + ] + }, + { + "kind": "method", + "name": "_syncToTextboxCondition", + "privacy": "public", + "parameters": [ + { + "name": "modelValue", + "type": { + "type": "string|string[]" + } + }, + { + "name": "oldModelValue", + "type": { + "type": "string|string[]" + } + } + ] + }, + { + "kind": "method", + "name": "_syncToTextboxMultiple", + "privacy": "public", + "parameters": [ + { + "name": "modelValue", + "type": { + "type": "string[]" + } + }, + { + "name": "oldModelValue", + "type": { + "type": "string[]" + }, + "default": "[]" + } + ] + }, + { + "kind": "method", + "name": "_enhanceLightDomClasses", + "privacy": "public" + }, + { + "kind": "method", + "name": "__initFilterListbox", + "privacy": "public" + }, + { + "kind": "method", + "name": "__setComboboxDisabledAndReadOnly", + "privacy": "public" + }, + { + "kind": "method", + "name": "__setupCombobox", + "privacy": "public" + }, + { + "kind": "method", + "name": "__teardownCombobox", + "privacy": "public" + }, + { + "kind": "method", + "name": "__requestShowOverlay", + "privacy": "public", + "parameters": [ + { + "name": "ev", + "type": { + "type": "KeyboardEvent" + }, + "optional": true + } + ] + } + ], + "tagName": "lion-combobox" + } + ], + "exports": [ + { + "kind": "js", + "name": "LionCombobox", + "declaration": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./types/SelectionDisplay.d.ts", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "./docs/gh-combobox/gh-button.js", + "declarations": [ + { + "kind": "class", + "name": "GhButton", + "superclass": { + "name": "LionButton", + "package": "@lion/button" + }, + "attributes": [ + { + "name": "value", + "fieldName": "value" + } + ], + "members": [ + { + "kind": "field", + "name": "value", + "privacy": "public", + "default": "''" + }, + { + "kind": "method", + "name": "render", + "privacy": "public" + } + ], + "tagName": "gh-button" + } + ], + "exports": [ + { + "kind": "js", + "name": "GhButton", + "declaration": { + "name": "GhButton", + "module": "./docs/gh-combobox/gh-button.js" + } + }, + { + "kind": "custom-element-definition", + "name": "gh-button", + "declaration": { + "name": "GhButton", + "module": "./docs/gh-combobox/gh-button.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/gh-combobox/gh-combobox.js", + "declarations": [ + { + "kind": "class", + "name": "GhOption", + "superclass": { + "name": "LionOption", + "package": "@lion/listbox" + }, + "attributes": [ + { + "name": "category", + "fieldName": "category" + }, + { + "name": "default", + "fieldName": "default" + } + ], + "members": [ + { + "kind": "field", + "name": "category", + "privacy": "public" + }, + { + "kind": "field", + "name": "default", + "privacy": "public" + }, + { + "kind": "method", + "name": "render", + "privacy": "public" + } + ], + "tagName": "gh-option" + }, + { + "kind": "class", + "name": "GhCombobox", + "superclass": { + "name": "LionCombobox", + "module": "/docs/gh-combobox/src/LionCombobox.js" + }, + "attributes": [ + { + "name": "category", + "fieldName": "category" + }, + { + "name": "is-desktop", + "fieldName": "isDesktop" + }, + { + "name": "autocomplete", + "fieldName": "autocomplete", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "name": "match-mode", + "fieldName": "matchMode", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "name": "show-all-on-empty", + "fieldName": "showAllOnEmpty", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "name": "__shouldAutocompleteNextUpdate", + "fieldName": "__shouldAutocompleteNextUpdate", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + } + ], + "members": [ + { + "kind": "field", + "name": "category", + "privacy": "public", + "type": { + "type": "'branches'|'tags'" + }, + "default": "'branches'" + }, + { + "kind": "field", + "name": "isDesktop", + "privacy": "public" + }, + { + "kind": "method", + "name": "render", + "privacy": "public" + }, + { + "kind": "field", + "name": "_comboboxNode", + "privacy": "public" + }, + { + "kind": "method", + "name": "_inputGroupInputTemplate", + "privacy": "public" + }, + { + "kind": "method", + "name": "_groupTwoTemplate", + "privacy": "public" + }, + { + "kind": "field", + "name": "slots", + "privacy": "public" + }, + { + "kind": "field", + "name": "_overlayInvokerNode", + "privacy": "public" + }, + { + "kind": "field", + "name": "_overlayReferenceNode", + "privacy": "public" + }, + { + "kind": "field", + "name": "_categoryButtons", + "privacy": "public" + }, + { + "kind": "method", + "name": "firstUpdated", + "privacy": "public", + "parameters": [ + { + "name": "changedProperties" + } + ] + }, + { + "kind": "method", + "name": "updated", + "privacy": "public", + "parameters": [ + { + "name": "changedProperties" + } + ] + }, + { + "kind": "method", + "name": "__handleCategory", + "privacy": "public", + "parameters": [ + { + "name": "ev" + } + ] + }, + { + "kind": "method", + "name": "_textboxOnKeydown", + "privacy": "public" + }, + { + "kind": "method", + "name": "_setupOpenCloseListeners", + "privacy": "public" + }, + { + "kind": "method", + "name": "__toggleOverlay", + "privacy": "public" + }, + { + "kind": "method", + "name": "_teardownOpenCloseListeners", + "privacy": "public" + }, + { + "kind": "field", + "name": "autocomplete", + "privacy": "public", + "type": { + "type": "'none'|'list'|'inline'|'both'" + }, + "description": "When \"list\", will filter listbox suggestions based on textbox value.\nWhen \"both\", an inline completion string will be added to the textbox as well.", + "default": "'both'", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "field", + "name": "matchMode", + "privacy": "public", + "type": { + "type": "'begin'|'all'" + }, + "description": "When typing in the textbox, will by default be set on 'begin',\nonly matching the beginning part in suggestion list.\n=> 'a' will match 'apple' from ['apple', 'pear', 'citrus'].\nWhen set to 'all', will match middle of the word as well\n=> 'a' will match 'apple' and 'pear'", + "default": "'all'", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "field", + "name": "showAllOnEmpty", + "privacy": "public", + "description": "When true, the listbox is open and textbox goes from a value to empty, all options are shown.\nBy default, the listbox closes on empty, similar to wai-aria example and ", + "default": "false", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "field", + "name": "__shouldAutocompleteNextUpdate", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_overlayListboxTemplate", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "field", + "name": "_selectionDisplayNode", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "field", + "name": "_inputNode", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "field", + "name": "_overlayContentNode", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "field", + "name": "_listboxNode", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "field", + "name": "_activeDescendantOwnerNode", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "connectedCallback", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "requestUpdateInternal", + "privacy": "public", + "parameters": [ + { + "name": "name", + "type": { + "type": "'disabled'|'modelValue'|'readOnly'" + } + }, + { + "name": "oldValue", + "type": { + "type": "unknown" + } + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "matchCondition", + "privacy": "public", + "description": "When the preconfigurable `match-mode` conditions are not sufficient,\none can define a custom matching function.", + "parameters": [ + { + "name": "option", + "type": { + "type": "LionOption" + } + }, + { + "name": "textboxValue", + "type": { + "type": "string" + }, + "description": "current ._inputNode value" + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_showOverlayCondition", + "privacy": "public", + "parameters": [ + { + "name": "options", + "type": { + "type": "{ currentValue: string, lastKey:string }" + } + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_textboxOnInput", + "privacy": "public", + "parameters": [ + { + "name": "ev", + "type": { + "type": "Event" + } + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_listboxOnClick", + "privacy": "public", + "parameters": [ + { + "name": "ev", + "type": { + "type": "MouseEvent" + } + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_setTextboxValue", + "privacy": "public", + "parameters": [ + { + "name": "v", + "type": { + "type": "string" + } + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "__onOverlayClose", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_repropagationCondition", + "privacy": "public", + "parameters": [ + { + "name": "target", + "type": { + "type": "EventTarget & ChoiceInputHost" + } + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_onFilterMatch", + "privacy": "public", + "parameters": [ + { + "name": "option", + "type": { + "type": "LionOption & {__originalInnerHTML?:string}" + } + }, + { + "name": "matchingString", + "type": { + "type": "string" + } + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_onFilterUnmatch", + "privacy": "public", + "parameters": [ + { + "name": "option", + "type": { + "type": "LionOption & {__originalInnerHTML?:string}" + } + }, + { + "name": "curValue", + "type": { + "type": "string" + }, + "optional": true + }, + { + "name": "prevValue", + "type": { + "type": "string" + }, + "optional": true + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "__computeUserIntendsAutoFill", + "privacy": "public", + "description": "Computes whether a user intends to autofill (inline autocomplete textbox)", + "parameters": [ + { + "name": "config", + "type": { + "type": "{ prevValue:string, curValue:string }" + } + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_handleAutocompletion", + "privacy": "public", + "description": "Handles autocompletion. This entails:\n- list: shows a list on keydown character press\n- filter: filters list of potential matches according to matchmode or provided matchCondition\n- focus: automatically focuses closest match (makes it the activedescendant)\n- check: automatically checks/selects closest match when selection-follows-focus is enabled\n(this is the default configuration)\n- complete: completes the textbox value inline (the 'missing characters' will be added as\nselected text)", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "__textboxInlineComplete", + "privacy": "public", + "parameters": [ + { + "name": "option", + "default": "this.formElements[this.activeIndex]" + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_autoSelectCondition", + "privacy": "public", + "description": "When this condition is false, an end user will have to manually select a suggested\noption from the list (by default when autocomplete is 'none' or 'list').\nFor autocomplete 'both' or 'inline', it will automatically select on a match.", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_setupListboxNode", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_defineOverlayConfig", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_setupOverlayCtrl", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_listboxOnKeyDown", + "privacy": "public", + "parameters": [ + { + "name": "ev", + "type": { + "type": "KeyboardEvent" + } + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_syncToTextboxCondition", + "privacy": "public", + "parameters": [ + { + "name": "modelValue", + "type": { + "type": "string|string[]" + } + }, + { + "name": "oldModelValue", + "type": { + "type": "string|string[]" + } + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_syncToTextboxMultiple", + "privacy": "public", + "parameters": [ + { + "name": "modelValue", + "type": { + "type": "string[]" + } + }, + { + "name": "oldModelValue", + "type": { + "type": "string[]" + }, + "default": "[]" + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_enhanceLightDomClasses", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "__initFilterListbox", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "__setComboboxDisabledAndReadOnly", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "__setupCombobox", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "__teardownCombobox", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "__requestShowOverlay", + "privacy": "public", + "parameters": [ + { + "name": "ev", + "type": { + "type": "KeyboardEvent" + }, + "optional": true + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + } + ], + "tagName": "gh-combobox" + } + ], + "exports": [ + { + "kind": "js", + "name": "GhOption", + "declaration": { + "name": "GhOption", + "module": "./docs/gh-combobox/gh-combobox.js" + } + }, + { + "kind": "custom-element-definition", + "name": "gh-option", + "declaration": { + "name": "GhOption", + "module": "./docs/gh-combobox/gh-combobox.js" + } + }, + { + "kind": "js", + "name": "GhCombobox", + "declaration": { + "name": "GhCombobox", + "module": "./docs/gh-combobox/gh-combobox.js" + } + }, + { + "kind": "custom-element-definition", + "name": "gh-combobox", + "declaration": { + "name": "GhCombobox", + "module": "./docs/gh-combobox/gh-combobox.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/google-combobox/google-combobox.js", + "declarations": [ + { + "kind": "class", + "name": "GoogleOption", + "mixins": [ + { + "name": "LinkMixin", + "module": "/docs/LinkMixin.js" + } + ], + "superclass": { + "name": "LionOption", + "package": "@lion/listbox" + }, + "attributes": [ + { + "name": "imageUrl", + "fieldName": "imageUrl" + } + ], + "members": [ + { + "kind": "field", + "name": "imageUrl", + "privacy": "public" + }, + { + "kind": "method", + "name": "onFilterMatch", + "privacy": "public", + "parameters": [ + { + "name": "currentValue", + "type": { + "type": "string" + } + } + ] + }, + { + "kind": "method", + "name": "onFilterUnmatch", + "privacy": "public" + }, + { + "kind": "method", + "name": "render", + "privacy": "public" + } + ], + "tagName": "google-option" + }, + { + "kind": "class", + "name": "GoogleCombobox", + "superclass": { + "name": "LionCombobox", + "module": "/docs/google-combobox/src/LionCombobox.js" + }, + "members": [ + { + "kind": "method", + "name": "_overlayListboxTemplate", + "privacy": "public" + }, + { + "kind": "method", + "name": "_inputGroupSuffixTemplate", + "privacy": "public" + }, + { + "kind": "method", + "name": "_googleSearchBtnsTemplate", + "privacy": "public" + }, + { + "kind": "method", + "name": "_groupTwoTemplate", + "privacy": "public" + }, + { + "kind": "field", + "name": "slots", + "privacy": "public" + }, + { + "kind": "field", + "name": "_overlayReferenceNode", + "privacy": "public" + }, + { + "kind": "method", + "name": "firstUpdated", + "privacy": "public", + "parameters": [ + { + "name": "changedProperties" + } + ] + }, + { + "kind": "method", + "name": "_syncToTextboxCondition", + "privacy": "public" + }, + { + "kind": "method", + "name": "_showOverlayCondition", + "privacy": "public", + "parameters": [ + { + "name": "options" + } + ] + }, + { + "kind": "method", + "name": "__resetFocus", + "privacy": "public" + }, + { + "kind": "method", + "name": "__clearText", + "privacy": "public" + }, + { + "kind": "field", + "name": "autocomplete", + "privacy": "public", + "type": { + "type": "'none'|'list'|'inline'|'both'" + }, + "description": "When \"list\", will filter listbox suggestions based on textbox value.\nWhen \"both\", an inline completion string will be added to the textbox as well.", + "default": "'both'", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "field", + "name": "matchMode", + "privacy": "public", + "type": { + "type": "'begin'|'all'" + }, + "description": "When typing in the textbox, will by default be set on 'begin',\nonly matching the beginning part in suggestion list.\n=> 'a' will match 'apple' from ['apple', 'pear', 'citrus'].\nWhen set to 'all', will match middle of the word as well\n=> 'a' will match 'apple' and 'pear'", + "default": "'all'", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "field", + "name": "showAllOnEmpty", + "privacy": "public", + "description": "When true, the listbox is open and textbox goes from a value to empty, all options are shown.\nBy default, the listbox closes on empty, similar to wai-aria example and ", + "default": "false", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "field", + "name": "__shouldAutocompleteNextUpdate", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_inputGroupInputTemplate", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "field", + "name": "_comboboxNode", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "field", + "name": "_selectionDisplayNode", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "field", + "name": "_inputNode", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "field", + "name": "_overlayContentNode", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "field", + "name": "_overlayInvokerNode", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "field", + "name": "_listboxNode", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "field", + "name": "_activeDescendantOwnerNode", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "connectedCallback", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "requestUpdateInternal", + "privacy": "public", + "parameters": [ + { + "name": "name", + "type": { + "type": "'disabled'|'modelValue'|'readOnly'" + } + }, + { + "name": "oldValue", + "type": { + "type": "unknown" + } + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "updated", + "privacy": "public", + "parameters": [ + { + "name": "changedProperties", + "type": { + "type": "PropertyValues " + } + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "matchCondition", + "privacy": "public", + "description": "When the preconfigurable `match-mode` conditions are not sufficient,\none can define a custom matching function.", + "parameters": [ + { + "name": "option", + "type": { + "type": "LionOption" + } + }, + { + "name": "textboxValue", + "type": { + "type": "string" + }, + "description": "current ._inputNode value" + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_textboxOnInput", + "privacy": "public", + "parameters": [ + { + "name": "ev", + "type": { + "type": "Event" + } + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_textboxOnKeydown", + "privacy": "public", + "parameters": [ + { + "name": "ev", + "type": { + "type": "KeyboardEvent" + } + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_listboxOnClick", + "privacy": "public", + "parameters": [ + { + "name": "ev", + "type": { + "type": "MouseEvent" + } + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_setTextboxValue", + "privacy": "public", + "parameters": [ + { + "name": "v", + "type": { + "type": "string" + } + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "__onOverlayClose", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_repropagationCondition", + "privacy": "public", + "parameters": [ + { + "name": "target", + "type": { + "type": "EventTarget & ChoiceInputHost" + } + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_onFilterMatch", + "privacy": "public", + "parameters": [ + { + "name": "option", + "type": { + "type": "LionOption & {__originalInnerHTML?:string}" + } + }, + { + "name": "matchingString", + "type": { + "type": "string" + } + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_onFilterUnmatch", + "privacy": "public", + "parameters": [ + { + "name": "option", + "type": { + "type": "LionOption & {__originalInnerHTML?:string}" + } + }, + { + "name": "curValue", + "type": { + "type": "string" + }, + "optional": true + }, + { + "name": "prevValue", + "type": { + "type": "string" + }, + "optional": true + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "__computeUserIntendsAutoFill", + "privacy": "public", + "description": "Computes whether a user intends to autofill (inline autocomplete textbox)", + "parameters": [ + { + "name": "config", + "type": { + "type": "{ prevValue:string, curValue:string }" + } + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_handleAutocompletion", + "privacy": "public", + "description": "Handles autocompletion. This entails:\n- list: shows a list on keydown character press\n- filter: filters list of potential matches according to matchmode or provided matchCondition\n- focus: automatically focuses closest match (makes it the activedescendant)\n- check: automatically checks/selects closest match when selection-follows-focus is enabled\n(this is the default configuration)\n- complete: completes the textbox value inline (the 'missing characters' will be added as\nselected text)", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "__textboxInlineComplete", + "privacy": "public", + "parameters": [ + { + "name": "option", + "default": "this.formElements[this.activeIndex]" + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_autoSelectCondition", + "privacy": "public", + "description": "When this condition is false, an end user will have to manually select a suggested\noption from the list (by default when autocomplete is 'none' or 'list').\nFor autocomplete 'both' or 'inline', it will automatically select on a match.", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_setupListboxNode", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_defineOverlayConfig", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_setupOverlayCtrl", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_setupOpenCloseListeners", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_teardownOpenCloseListeners", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_listboxOnKeyDown", + "privacy": "public", + "parameters": [ + { + "name": "ev", + "type": { + "type": "KeyboardEvent" + } + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_syncToTextboxMultiple", + "privacy": "public", + "parameters": [ + { + "name": "modelValue", + "type": { + "type": "string[]" + } + }, + { + "name": "oldModelValue", + "type": { + "type": "string[]" + }, + "default": "[]" + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_enhanceLightDomClasses", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "__initFilterListbox", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "__setComboboxDisabledAndReadOnly", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "__setupCombobox", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "__teardownCombobox", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "__requestShowOverlay", + "privacy": "public", + "parameters": [ + { + "name": "ev", + "type": { + "type": "KeyboardEvent" + }, + "optional": true + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + } + ], + "tagName": "google-combobox", + "attributes": [ + { + "name": "autocomplete", + "fieldName": "autocomplete", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "name": "match-mode", + "fieldName": "matchMode", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "name": "show-all-on-empty", + "fieldName": "showAllOnEmpty", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "name": "__shouldAutocompleteNextUpdate", + "fieldName": "__shouldAutocompleteNextUpdate", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "GoogleOption", + "declaration": { + "name": "GoogleOption", + "module": "./docs/google-combobox/google-combobox.js" + } + }, + { + "kind": "custom-element-definition", + "name": "google-option", + "declaration": { + "name": "GoogleOption", + "module": "./docs/google-combobox/google-combobox.js" + } + }, + { + "kind": "js", + "name": "GoogleCombobox", + "declaration": { + "name": "GoogleCombobox", + "module": "./docs/google-combobox/google-combobox.js" + } + }, + { + "kind": "custom-element-definition", + "name": "google-combobox", + "declaration": { + "name": "GoogleCombobox", + "module": "./docs/google-combobox/google-combobox.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/md-combobox/MdFieldMixin.js", + "declarations": [ + { + "kind": "variable", + "name": "MdFieldMixin" + } + ], + "exports": [ + { + "kind": "js", + "name": "MdFieldMixin", + "declaration": { + "name": "MdFieldMixin", + "module": "./docs/md-combobox/MdFieldMixin.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/md-combobox/md-combobox.js", + "declarations": [ + { + "kind": "class", + "name": "MdOption", + "superclass": { + "name": "LionOption", + "package": "@lion/listbox" + }, + "members": [ + { + "kind": "method", + "name": "onFilterMatch", + "privacy": "public", + "parameters": [ + { + "name": "matchingString", + "type": { + "type": "string" + } + } + ] + }, + { + "kind": "method", + "name": "onFilterUnmatch", + "privacy": "public" + }, + { + "kind": "method", + "name": "render", + "privacy": "public" + } + ], + "tagName": "md-option" + }, + { + "kind": "class", + "name": "MdCombobox", + "mixins": [ + { + "name": "MdFieldMixin", + "module": "/docs/md-combobox/MdFieldMixin.js" + } + ], + "superclass": { + "name": "LionCombobox", + "module": "/docs/md-combobox/src/LionCombobox.js" + }, + "tagName": "md-combobox", + "attributes": [ + { + "name": "autocomplete", + "fieldName": "autocomplete", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "name": "match-mode", + "fieldName": "matchMode", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "name": "show-all-on-empty", + "fieldName": "showAllOnEmpty", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "name": "__shouldAutocompleteNextUpdate", + "fieldName": "__shouldAutocompleteNextUpdate", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + } + ], + "members": [ + { + "kind": "field", + "name": "autocomplete", + "privacy": "public", + "type": { + "type": "'none'|'list'|'inline'|'both'" + }, + "description": "When \"list\", will filter listbox suggestions based on textbox value.\nWhen \"both\", an inline completion string will be added to the textbox as well.", + "default": "'both'", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "field", + "name": "matchMode", + "privacy": "public", + "type": { + "type": "'begin'|'all'" + }, + "description": "When typing in the textbox, will by default be set on 'begin',\nonly matching the beginning part in suggestion list.\n=> 'a' will match 'apple' from ['apple', 'pear', 'citrus'].\nWhen set to 'all', will match middle of the word as well\n=> 'a' will match 'apple' and 'pear'", + "default": "'all'", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "field", + "name": "showAllOnEmpty", + "privacy": "public", + "description": "When true, the listbox is open and textbox goes from a value to empty, all options are shown.\nBy default, the listbox closes on empty, similar to wai-aria example and ", + "default": "false", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "field", + "name": "__shouldAutocompleteNextUpdate", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_inputGroupInputTemplate", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_overlayListboxTemplate", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_groupTwoTemplate", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "field", + "name": "slots", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "field", + "name": "_comboboxNode", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "field", + "name": "_selectionDisplayNode", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "field", + "name": "_inputNode", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "field", + "name": "_overlayContentNode", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "field", + "name": "_overlayReferenceNode", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "field", + "name": "_overlayInvokerNode", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "field", + "name": "_listboxNode", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "field", + "name": "_activeDescendantOwnerNode", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "connectedCallback", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "requestUpdateInternal", + "privacy": "public", + "parameters": [ + { + "name": "name", + "type": { + "type": "'disabled'|'modelValue'|'readOnly'" + } + }, + { + "name": "oldValue", + "type": { + "type": "unknown" + } + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "updated", + "privacy": "public", + "parameters": [ + { + "name": "changedProperties", + "type": { + "type": "PropertyValues " + } + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "matchCondition", + "privacy": "public", + "description": "When the preconfigurable `match-mode` conditions are not sufficient,\none can define a custom matching function.", + "parameters": [ + { + "name": "option", + "type": { + "type": "LionOption" + } + }, + { + "name": "textboxValue", + "type": { + "type": "string" + }, + "description": "current ._inputNode value" + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_showOverlayCondition", + "privacy": "public", + "parameters": [ + { + "name": "options", + "type": { + "type": "{ currentValue: string, lastKey:string }" + } + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_textboxOnInput", + "privacy": "public", + "parameters": [ + { + "name": "ev", + "type": { + "type": "Event" + } + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_textboxOnKeydown", + "privacy": "public", + "parameters": [ + { + "name": "ev", + "type": { + "type": "KeyboardEvent" + } + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_listboxOnClick", + "privacy": "public", + "parameters": [ + { + "name": "ev", + "type": { + "type": "MouseEvent" + } + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_setTextboxValue", + "privacy": "public", + "parameters": [ + { + "name": "v", + "type": { + "type": "string" + } + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "__onOverlayClose", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_repropagationCondition", + "privacy": "public", + "parameters": [ + { + "name": "target", + "type": { + "type": "EventTarget & ChoiceInputHost" + } + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_onFilterMatch", + "privacy": "public", + "parameters": [ + { + "name": "option", + "type": { + "type": "LionOption & {__originalInnerHTML?:string}" + } + }, + { + "name": "matchingString", + "type": { + "type": "string" + } + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_onFilterUnmatch", + "privacy": "public", + "parameters": [ + { + "name": "option", + "type": { + "type": "LionOption & {__originalInnerHTML?:string}" + } + }, + { + "name": "curValue", + "type": { + "type": "string" + }, + "optional": true + }, + { + "name": "prevValue", + "type": { + "type": "string" + }, + "optional": true + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "__computeUserIntendsAutoFill", + "privacy": "public", + "description": "Computes whether a user intends to autofill (inline autocomplete textbox)", + "parameters": [ + { + "name": "config", + "type": { + "type": "{ prevValue:string, curValue:string }" + } + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_handleAutocompletion", + "privacy": "public", + "description": "Handles autocompletion. This entails:\n- list: shows a list on keydown character press\n- filter: filters list of potential matches according to matchmode or provided matchCondition\n- focus: automatically focuses closest match (makes it the activedescendant)\n- check: automatically checks/selects closest match when selection-follows-focus is enabled\n(this is the default configuration)\n- complete: completes the textbox value inline (the 'missing characters' will be added as\nselected text)", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "__textboxInlineComplete", + "privacy": "public", + "parameters": [ + { + "name": "option", + "default": "this.formElements[this.activeIndex]" + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_autoSelectCondition", + "privacy": "public", + "description": "When this condition is false, an end user will have to manually select a suggested\noption from the list (by default when autocomplete is 'none' or 'list').\nFor autocomplete 'both' or 'inline', it will automatically select on a match.", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_setupListboxNode", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_defineOverlayConfig", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_setupOverlayCtrl", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_setupOpenCloseListeners", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_teardownOpenCloseListeners", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_listboxOnKeyDown", + "privacy": "public", + "parameters": [ + { + "name": "ev", + "type": { + "type": "KeyboardEvent" + } + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_syncToTextboxCondition", + "privacy": "public", + "parameters": [ + { + "name": "modelValue", + "type": { + "type": "string|string[]" + } + }, + { + "name": "oldModelValue", + "type": { + "type": "string|string[]" + } + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_syncToTextboxMultiple", + "privacy": "public", + "parameters": [ + { + "name": "modelValue", + "type": { + "type": "string[]" + } + }, + { + "name": "oldModelValue", + "type": { + "type": "string[]" + }, + "default": "[]" + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_enhanceLightDomClasses", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "__initFilterListbox", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "__setComboboxDisabledAndReadOnly", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "__setupCombobox", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "__teardownCombobox", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "__requestShowOverlay", + "privacy": "public", + "parameters": [ + { + "name": "ev", + "type": { + "type": "KeyboardEvent" + }, + "optional": true + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "MdOption", + "declaration": { + "name": "MdOption", + "module": "./docs/md-combobox/md-combobox.js" + } + }, + { + "kind": "custom-element-definition", + "name": "md-option", + "declaration": { + "name": "MdOption", + "module": "./docs/md-combobox/md-combobox.js" + } + }, + { + "kind": "js", + "name": "MdCombobox", + "declaration": { + "name": "MdCombobox", + "module": "./docs/md-combobox/md-combobox.js" + } + }, + { + "kind": "custom-element-definition", + "name": "md-combobox", + "declaration": { + "name": "MdCombobox", + "module": "./docs/md-combobox/md-combobox.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/md-combobox/md-input.js", + "declarations": [ + { + "kind": "class", + "name": "MdInput", + "mixins": [ + { + "name": "MdFieldMixin", + "module": "/docs/md-combobox/MdFieldMixin.js" + } + ], + "superclass": { + "name": "LionInput", + "package": "@lion/input" + }, + "tagName": "md-input" + } + ], + "exports": [ + { + "kind": "js", + "name": "MdInput", + "declaration": { + "name": "MdInput", + "module": "./docs/md-combobox/md-input.js" + } + }, + { + "kind": "custom-element-definition", + "name": "md-input", + "declaration": { + "name": "MdInput", + "module": "./docs/md-combobox/md-input.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/wa-combobox/wa-combobox.js", + "declarations": [ + { + "kind": "class", + "name": "WaOption", + "superclass": { + "name": "LionOption", + "package": "@lion/listbox" + }, + "attributes": [ + { + "name": "title", + "fieldName": "title" + }, + { + "name": "text", + "fieldName": "text" + }, + { + "name": "time", + "fieldName": "time" + }, + { + "name": "image", + "fieldName": "image" + }, + { + "name": "is-user-text", + "fieldName": "isUserText" + }, + { + "name": "is-user-text-read", + "fieldName": "isUserTextRead" + } + ], + "members": [ + { + "kind": "field", + "name": "title", + "privacy": "public" + }, + { + "kind": "field", + "name": "text", + "privacy": "public" + }, + { + "kind": "field", + "name": "time", + "privacy": "public" + }, + { + "kind": "field", + "name": "image", + "privacy": "public" + }, + { + "kind": "field", + "name": "isUserText", + "privacy": "public" + }, + { + "kind": "field", + "name": "isUserTextRead", + "privacy": "public" + }, + { + "kind": "method", + "name": "render", + "privacy": "public" + }, + { + "kind": "method", + "name": "onFilterMatch", + "privacy": "public", + "parameters": [ + { + "name": "matchingString", + "type": { + "type": "string" + } + } + ] + }, + { + "kind": "method", + "name": "onFilterUnmatch", + "privacy": "public", + "parameters": [ + { + "name": "curValue", + "type": { + "type": "string" + }, + "optional": true + }, + { + "name": "prevValue", + "type": { + "type": "string" + }, + "optional": true + } + ] + } + ], + "tagName": "wa-option" + }, + { + "kind": "class", + "name": "WaCombobox", + "superclass": { + "name": "LionCombobox", + "module": "/docs/wa-combobox/src/LionCombobox.js" + }, + "members": [ + { + "kind": "field", + "name": "slots", + "privacy": "public" + }, + { + "kind": "method", + "name": "matchCondition", + "privacy": "public", + "parameters": [ + { + "name": "option", + "type": { + "type": "LionOption" + } + }, + { + "name": "textboxValue", + "type": { + "type": "string" + }, + "description": "current ._inputNode value" + } + ] + }, + { + "kind": "method", + "name": "_syncToTextboxCondition", + "privacy": "public" + }, + { + "kind": "field", + "name": "autocomplete", + "privacy": "public", + "type": { + "type": "'none'|'list'|'inline'|'both'" + }, + "description": "When \"list\", will filter listbox suggestions based on textbox value.\nWhen \"both\", an inline completion string will be added to the textbox as well.", + "default": "'both'", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "field", + "name": "matchMode", + "privacy": "public", + "type": { + "type": "'begin'|'all'" + }, + "description": "When typing in the textbox, will by default be set on 'begin',\nonly matching the beginning part in suggestion list.\n=> 'a' will match 'apple' from ['apple', 'pear', 'citrus'].\nWhen set to 'all', will match middle of the word as well\n=> 'a' will match 'apple' and 'pear'", + "default": "'all'", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "field", + "name": "showAllOnEmpty", + "privacy": "public", + "description": "When true, the listbox is open and textbox goes from a value to empty, all options are shown.\nBy default, the listbox closes on empty, similar to wai-aria example and ", + "default": "false", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "field", + "name": "__shouldAutocompleteNextUpdate", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_inputGroupInputTemplate", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_overlayListboxTemplate", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_groupTwoTemplate", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "field", + "name": "_comboboxNode", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "field", + "name": "_selectionDisplayNode", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "field", + "name": "_inputNode", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "field", + "name": "_overlayContentNode", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "field", + "name": "_overlayReferenceNode", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "field", + "name": "_overlayInvokerNode", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "field", + "name": "_listboxNode", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "field", + "name": "_activeDescendantOwnerNode", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "connectedCallback", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "requestUpdateInternal", + "privacy": "public", + "parameters": [ + { + "name": "name", + "type": { + "type": "'disabled'|'modelValue'|'readOnly'" + } + }, + { + "name": "oldValue", + "type": { + "type": "unknown" + } + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "updated", + "privacy": "public", + "parameters": [ + { + "name": "changedProperties", + "type": { + "type": "PropertyValues " + } + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_showOverlayCondition", + "privacy": "public", + "parameters": [ + { + "name": "options", + "type": { + "type": "{ currentValue: string, lastKey:string }" + } + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_textboxOnInput", + "privacy": "public", + "parameters": [ + { + "name": "ev", + "type": { + "type": "Event" + } + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_textboxOnKeydown", + "privacy": "public", + "parameters": [ + { + "name": "ev", + "type": { + "type": "KeyboardEvent" + } + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_listboxOnClick", + "privacy": "public", + "parameters": [ + { + "name": "ev", + "type": { + "type": "MouseEvent" + } + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_setTextboxValue", + "privacy": "public", + "parameters": [ + { + "name": "v", + "type": { + "type": "string" + } + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "__onOverlayClose", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_repropagationCondition", + "privacy": "public", + "parameters": [ + { + "name": "target", + "type": { + "type": "EventTarget & ChoiceInputHost" + } + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_onFilterMatch", + "privacy": "public", + "parameters": [ + { + "name": "option", + "type": { + "type": "LionOption & {__originalInnerHTML?:string}" + } + }, + { + "name": "matchingString", + "type": { + "type": "string" + } + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_onFilterUnmatch", + "privacy": "public", + "parameters": [ + { + "name": "option", + "type": { + "type": "LionOption & {__originalInnerHTML?:string}" + } + }, + { + "name": "curValue", + "type": { + "type": "string" + }, + "optional": true + }, + { + "name": "prevValue", + "type": { + "type": "string" + }, + "optional": true + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "__computeUserIntendsAutoFill", + "privacy": "public", + "description": "Computes whether a user intends to autofill (inline autocomplete textbox)", + "parameters": [ + { + "name": "config", + "type": { + "type": "{ prevValue:string, curValue:string }" + } + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_handleAutocompletion", + "privacy": "public", + "description": "Handles autocompletion. This entails:\n- list: shows a list on keydown character press\n- filter: filters list of potential matches according to matchmode or provided matchCondition\n- focus: automatically focuses closest match (makes it the activedescendant)\n- check: automatically checks/selects closest match when selection-follows-focus is enabled\n(this is the default configuration)\n- complete: completes the textbox value inline (the 'missing characters' will be added as\nselected text)", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "__textboxInlineComplete", + "privacy": "public", + "parameters": [ + { + "name": "option", + "default": "this.formElements[this.activeIndex]" + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_autoSelectCondition", + "privacy": "public", + "description": "When this condition is false, an end user will have to manually select a suggested\noption from the list (by default when autocomplete is 'none' or 'list').\nFor autocomplete 'both' or 'inline', it will automatically select on a match.", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_setupListboxNode", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_defineOverlayConfig", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_setupOverlayCtrl", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_setupOpenCloseListeners", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_teardownOpenCloseListeners", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_listboxOnKeyDown", + "privacy": "public", + "parameters": [ + { + "name": "ev", + "type": { + "type": "KeyboardEvent" + } + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_syncToTextboxMultiple", + "privacy": "public", + "parameters": [ + { + "name": "modelValue", + "type": { + "type": "string[]" + } + }, + { + "name": "oldModelValue", + "type": { + "type": "string[]" + }, + "default": "[]" + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "_enhanceLightDomClasses", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "__initFilterListbox", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "__setComboboxDisabledAndReadOnly", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "__setupCombobox", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "__teardownCombobox", + "privacy": "public", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "kind": "method", + "name": "__requestShowOverlay", + "privacy": "public", + "parameters": [ + { + "name": "ev", + "type": { + "type": "KeyboardEvent" + }, + "optional": true + } + ], + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + } + ], + "tagName": "wa-combobox", + "attributes": [ + { + "name": "autocomplete", + "fieldName": "autocomplete", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "name": "match-mode", + "fieldName": "matchMode", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "name": "show-all-on-empty", + "fieldName": "showAllOnEmpty", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + }, + { + "name": "__shouldAutocompleteNextUpdate", + "fieldName": "__shouldAutocompleteNextUpdate", + "inheritedFrom": { + "name": "LionCombobox", + "module": "./src/LionCombobox.js" + } + } + ] + } + ], + "exports": [ + { + "kind": "custom-element-definition", + "name": "wa-option", + "declaration": { + "name": "WaOption", + "module": "./docs/wa-combobox/wa-combobox.js" + } + }, + { + "kind": "custom-element-definition", + "name": "wa-combobox", + "declaration": { + "name": "WaCombobox", + "module": "./docs/wa-combobox/wa-combobox.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/google-combobox/assets/google-clear-icon.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./docs/google-combobox/assets/google-clear-icon.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/google-combobox/assets/google-search-icon.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./docs/google-combobox/assets/google-search-icon.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/google-combobox/assets/google-voice-search-icon.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./docs/google-combobox/assets/google-voice-search-icon.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/md-combobox/style/load-roboto.js", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "./docs/md-combobox/style/md-ripple.js", + "declarations": [ + { + "kind": "class", + "name": "MdRipple", + "superclass": { + "name": "LitElement", + "package": "@lion/core" + }, + "members": [ + { + "kind": "method", + "name": "__onRipple", + "privacy": "public", + "parameters": [ + { + "name": "e" + } + ] + } + ], + "tagName": "md-ripple" + } + ], + "exports": [ + { + "kind": "custom-element-definition", + "name": "md-ripple", + "declaration": { + "name": "MdRipple", + "module": "./docs/md-combobox/style/md-ripple.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/Subclassers.md", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "./docs/google-combobox/assets/appleLogo.png", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "./docs/google-combobox/assets/googlelogo_color_272x92dp.png", + "declarations": [], + "exports": [] + } + ] +} diff --git a/packages/combobox/package.json b/packages/combobox/package.json index 44a7d668e..184ff9506 100644 --- a/packages/combobox/package.json +++ b/packages/combobox/package.json @@ -23,6 +23,7 @@ "types" ], "scripts": { + "custom-elements-manifest": "custom-elements-manifest analyze --exclude 'docs/**/*'", "debug": "cd ../../ && npm run debug -- --group combobox", "debug:firefox": "cd ../../ && npm run debug:firefox -- --group combobox", "debug:webkit": "cd ../../ && npm run debug:webkit -- --group combobox", @@ -59,5 +60,6 @@ "exports": { ".": "./index.js", "./lion-combobox": "./lion-combobox.js" - } + }, + "customElementsManifest": "custom-elements.json" } diff --git a/packages/core/custom-elements.json b/packages/core/custom-elements.json new file mode 100644 index 000000000..409602a74 --- /dev/null +++ b/packages/core/custom-elements.json @@ -0,0 +1,1485 @@ +{ + "schemaVersion": "experimental", + "readme": "", + "modules": [ + { + "kind": "javascript-module", + "path": "./index.d.ts", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "asyncAppend", + "declaration": { + "name": "asyncAppend", + "package": "lit-html/directives/async-append.js" + } + }, + { + "kind": "js", + "name": "asyncReplace", + "declaration": { + "name": "asyncReplace", + "package": "lit-html/directives/async-replace.js" + } + }, + { + "kind": "js", + "name": "cache", + "declaration": { + "name": "cache", + "package": "lit-html/directives/cache.js" + } + }, + { + "kind": "js", + "name": "classMap", + "declaration": { + "name": "classMap", + "package": "lit-html/directives/class-map.js" + } + }, + { + "kind": "js", + "name": "guard", + "declaration": { + "name": "guard", + "package": "lit-html/directives/guard.js" + } + }, + { + "kind": "js", + "name": "ifDefined", + "declaration": { + "name": "ifDefined", + "package": "lit-html/directives/if-defined.js" + } + }, + { + "kind": "js", + "name": "repeat", + "declaration": { + "name": "repeat", + "package": "lit-html/directives/repeat.js" + } + }, + { + "kind": "js", + "name": "styleMap", + "declaration": { + "name": "styleMap", + "package": "lit-html/directives/style-map.js" + } + }, + { + "kind": "js", + "name": "unsafeHTML", + "declaration": { + "name": "unsafeHTML", + "package": "lit-html/directives/unsafe-html.js" + } + }, + { + "kind": "js", + "name": "until", + "declaration": { + "name": "until", + "package": "lit-html/directives/until.js" + } + }, + { + "kind": "js", + "name": "renderShady", + "declaration": { + "name": "render", + "package": "lit-html/lib/shady-render.js" + } + }, + { + "kind": "js", + "name": "ScopedElementsMixin", + "declaration": { + "name": "ScopedElementsMixin", + "package": "@open-wc/scoped-elements" + } + }, + { + "kind": "js", + "name": "dedupeMixin", + "declaration": { + "name": "dedupeMixin", + "package": "@open-wc/dedupe-mixin" + } + }, + { + "kind": "js", + "name": "DelegateMixin", + "declaration": { + "name": "DelegateMixin", + "module": "./src/DelegateMixin.js" + } + }, + { + "kind": "js", + "name": "DisabledMixin", + "declaration": { + "name": "DisabledMixin", + "module": "./src/DisabledMixin.js" + } + }, + { + "kind": "js", + "name": "DisabledWithTabIndexMixin", + "declaration": { + "name": "DisabledWithTabIndexMixin", + "module": "./src/DisabledWithTabIndexMixin.js" + } + }, + { + "kind": "js", + "name": "SlotMixin", + "declaration": { + "name": "SlotMixin", + "module": "./src/SlotMixin.js" + } + }, + { + "kind": "js", + "name": "UpdateStylesMixin", + "declaration": { + "name": "UpdateStylesMixin", + "module": "./src/UpdateStylesMixin.js" + } + }, + { + "kind": "js", + "name": "browserDetection", + "declaration": { + "name": "browserDetection", + "module": "./src/browserDetection.js" + } + }, + { + "kind": "js", + "name": "EventTargetShim", + "declaration": { + "name": "EventTargetShim", + "module": "./src/EventTargetShim.js" + } + }, + { + "kind": "js", + "name": "css", + "declaration": { + "name": "css", + "package": "lit-element" + } + }, + { + "kind": "js", + "name": "CSSResult", + "declaration": { + "name": "CSSResult", + "package": "lit-element" + } + }, + { + "kind": "js", + "name": "CSSResultArray", + "declaration": { + "name": "CSSResultArray", + "package": "lit-element" + } + }, + { + "kind": "js", + "name": "customElement", + "declaration": { + "name": "customElement", + "package": "lit-element" + } + }, + { + "kind": "js", + "name": "defaultConverter", + "declaration": { + "name": "defaultConverter", + "package": "lit-element" + } + }, + { + "kind": "js", + "name": "eventOptions", + "declaration": { + "name": "eventOptions", + "package": "lit-element" + } + }, + { + "kind": "js", + "name": "LitElement", + "declaration": { + "name": "LitElement", + "package": "lit-element" + } + }, + { + "kind": "js", + "name": "notEqual", + "declaration": { + "name": "notEqual", + "package": "lit-element" + } + }, + { + "kind": "js", + "name": "property", + "declaration": { + "name": "property", + "package": "lit-element" + } + }, + { + "kind": "js", + "name": "PropertyValues", + "declaration": { + "name": "PropertyValues", + "package": "lit-element" + } + }, + { + "kind": "js", + "name": "query", + "declaration": { + "name": "query", + "package": "lit-element" + } + }, + { + "kind": "js", + "name": "queryAll", + "declaration": { + "name": "queryAll", + "package": "lit-element" + } + }, + { + "kind": "js", + "name": "supportsAdoptingStyleSheets", + "declaration": { + "name": "supportsAdoptingStyleSheets", + "package": "lit-element" + } + }, + { + "kind": "js", + "name": "unsafeCSS", + "declaration": { + "name": "unsafeCSS", + "package": "lit-element" + } + }, + { + "kind": "js", + "name": "UpdatingElement", + "declaration": { + "name": "UpdatingElement", + "package": "lit-element" + } + }, + { + "kind": "js", + "name": "AttributePart", + "declaration": { + "name": "AttributePart", + "package": "lit-html" + } + }, + { + "kind": "js", + "name": "BooleanAttributePart", + "declaration": { + "name": "BooleanAttributePart", + "package": "lit-html" + } + }, + { + "kind": "js", + "name": "directive", + "declaration": { + "name": "directive", + "package": "lit-html" + } + }, + { + "kind": "js", + "name": "EventPart", + "declaration": { + "name": "EventPart", + "package": "lit-html" + } + }, + { + "kind": "js", + "name": "html", + "declaration": { + "name": "html", + "package": "lit-html" + } + }, + { + "kind": "js", + "name": "isDirective", + "declaration": { + "name": "isDirective", + "package": "lit-html" + } + }, + { + "kind": "js", + "name": "isPrimitive", + "declaration": { + "name": "isPrimitive", + "package": "lit-html" + } + }, + { + "kind": "js", + "name": "noChange", + "declaration": { + "name": "noChange", + "package": "lit-html" + } + }, + { + "kind": "js", + "name": "NodePart", + "declaration": { + "name": "NodePart", + "package": "lit-html" + } + }, + { + "kind": "js", + "name": "nothing", + "declaration": { + "name": "nothing", + "package": "lit-html" + } + }, + { + "kind": "js", + "name": "PropertyPart", + "declaration": { + "name": "PropertyPart", + "package": "lit-html" + } + }, + { + "kind": "js", + "name": "render", + "declaration": { + "name": "render", + "package": "lit-html" + } + }, + { + "kind": "js", + "name": "svg", + "declaration": { + "name": "svg", + "package": "lit-html" + } + }, + { + "kind": "js", + "name": "SVGTemplateResult", + "declaration": { + "name": "SVGTemplateResult", + "package": "lit-html" + } + }, + { + "kind": "js", + "name": "TemplateResult", + "declaration": { + "name": "TemplateResult", + "package": "lit-html" + } + }, + { + "kind": "js", + "name": "removeNodes", + "declaration": { + "name": "removeNodes", + "package": "lit-html" + } + }, + { + "kind": "js", + "name": "reparentNodes", + "declaration": { + "name": "reparentNodes", + "package": "lit-html" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./index.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "css", + "declaration": { + "name": "css", + "package": "lit-element" + } + }, + { + "kind": "js", + "name": "CSSResult", + "declaration": { + "name": "CSSResult", + "package": "lit-element" + } + }, + { + "kind": "js", + "name": "customElement", + "declaration": { + "name": "customElement", + "package": "lit-element" + } + }, + { + "kind": "js", + "name": "defaultConverter", + "declaration": { + "name": "defaultConverter", + "package": "lit-element" + } + }, + { + "kind": "js", + "name": "eventOptions", + "declaration": { + "name": "eventOptions", + "package": "lit-element" + } + }, + { + "kind": "js", + "name": "LitElement", + "declaration": { + "name": "LitElement", + "package": "lit-element" + } + }, + { + "kind": "js", + "name": "notEqual", + "declaration": { + "name": "notEqual", + "package": "lit-element" + } + }, + { + "kind": "js", + "name": "property", + "declaration": { + "name": "property", + "package": "lit-element" + } + }, + { + "kind": "js", + "name": "query", + "declaration": { + "name": "query", + "package": "lit-element" + } + }, + { + "kind": "js", + "name": "queryAll", + "declaration": { + "name": "queryAll", + "package": "lit-element" + } + }, + { + "kind": "js", + "name": "supportsAdoptingStyleSheets", + "declaration": { + "name": "supportsAdoptingStyleSheets", + "package": "lit-element" + } + }, + { + "kind": "js", + "name": "unsafeCSS", + "declaration": { + "name": "unsafeCSS", + "package": "lit-element" + } + }, + { + "kind": "js", + "name": "UpdatingElement", + "declaration": { + "name": "UpdatingElement", + "package": "lit-element" + } + }, + { + "kind": "js", + "name": "AttributePart", + "declaration": { + "name": "AttributePart", + "package": "lit-html" + } + }, + { + "kind": "js", + "name": "BooleanAttributePart", + "declaration": { + "name": "BooleanAttributePart", + "package": "lit-html" + } + }, + { + "kind": "js", + "name": "directive", + "declaration": { + "name": "directive", + "package": "lit-html" + } + }, + { + "kind": "js", + "name": "EventPart", + "declaration": { + "name": "EventPart", + "package": "lit-html" + } + }, + { + "kind": "js", + "name": "html", + "declaration": { + "name": "html", + "package": "lit-html" + } + }, + { + "kind": "js", + "name": "isDirective", + "declaration": { + "name": "isDirective", + "package": "lit-html" + } + }, + { + "kind": "js", + "name": "isPrimitive", + "declaration": { + "name": "isPrimitive", + "package": "lit-html" + } + }, + { + "kind": "js", + "name": "noChange", + "declaration": { + "name": "noChange", + "package": "lit-html" + } + }, + { + "kind": "js", + "name": "NodePart", + "declaration": { + "name": "NodePart", + "package": "lit-html" + } + }, + { + "kind": "js", + "name": "nothing", + "declaration": { + "name": "nothing", + "package": "lit-html" + } + }, + { + "kind": "js", + "name": "PropertyPart", + "declaration": { + "name": "PropertyPart", + "package": "lit-html" + } + }, + { + "kind": "js", + "name": "render", + "declaration": { + "name": "render", + "package": "lit-html" + } + }, + { + "kind": "js", + "name": "svg", + "declaration": { + "name": "svg", + "package": "lit-html" + } + }, + { + "kind": "js", + "name": "SVGTemplateResult", + "declaration": { + "name": "SVGTemplateResult", + "package": "lit-html" + } + }, + { + "kind": "js", + "name": "TemplateResult", + "declaration": { + "name": "TemplateResult", + "package": "lit-html" + } + }, + { + "kind": "js", + "name": "reparentNodes", + "declaration": { + "name": "reparentNodes", + "package": "lit-html" + } + }, + { + "kind": "js", + "name": "removeNodes", + "declaration": { + "name": "removeNodes", + "package": "lit-html" + } + }, + { + "kind": "js", + "name": "asyncAppend", + "declaration": { + "name": "asyncAppend", + "package": "lit-html/directives/async-append.js" + } + }, + { + "kind": "js", + "name": "asyncReplace", + "declaration": { + "name": "asyncReplace", + "package": "lit-html/directives/async-replace.js" + } + }, + { + "kind": "js", + "name": "cache", + "declaration": { + "name": "cache", + "package": "lit-html/directives/cache.js" + } + }, + { + "kind": "js", + "name": "classMap", + "declaration": { + "name": "classMap", + "package": "lit-html/directives/class-map.js" + } + }, + { + "kind": "js", + "name": "guard", + "declaration": { + "name": "guard", + "package": "lit-html/directives/guard.js" + } + }, + { + "kind": "js", + "name": "ifDefined", + "declaration": { + "name": "ifDefined", + "package": "lit-html/directives/if-defined.js" + } + }, + { + "kind": "js", + "name": "repeat", + "declaration": { + "name": "repeat", + "package": "lit-html/directives/repeat.js" + } + }, + { + "kind": "js", + "name": "styleMap", + "declaration": { + "name": "styleMap", + "package": "lit-html/directives/style-map.js" + } + }, + { + "kind": "js", + "name": "unsafeHTML", + "declaration": { + "name": "unsafeHTML", + "package": "lit-html/directives/unsafe-html.js" + } + }, + { + "kind": "js", + "name": "until", + "declaration": { + "name": "until", + "package": "lit-html/directives/until.js" + } + }, + { + "kind": "js", + "name": "renderShady", + "declaration": { + "name": "render", + "package": "lit-html/lib/shady-render.js" + } + }, + { + "kind": "js", + "name": "ScopedElementsMixin", + "declaration": { + "name": "ScopedElementsMixin", + "package": "@open-wc/scoped-elements" + } + }, + { + "kind": "js", + "name": "dedupeMixin", + "declaration": { + "name": "dedupeMixin", + "package": "@open-wc/dedupe-mixin" + } + }, + { + "kind": "js", + "name": "DelegateMixin", + "declaration": { + "name": "DelegateMixin", + "module": "./src/DelegateMixin.js" + } + }, + { + "kind": "js", + "name": "DisabledMixin", + "declaration": { + "name": "DisabledMixin", + "module": "./src/DisabledMixin.js" + } + }, + { + "kind": "js", + "name": "DisabledWithTabIndexMixin", + "declaration": { + "name": "DisabledWithTabIndexMixin", + "module": "./src/DisabledWithTabIndexMixin.js" + } + }, + { + "kind": "js", + "name": "SlotMixin", + "declaration": { + "name": "SlotMixin", + "module": "./src/SlotMixin.js" + } + }, + { + "kind": "js", + "name": "UpdateStylesMixin", + "declaration": { + "name": "UpdateStylesMixin", + "module": "./src/UpdateStylesMixin.js" + } + }, + { + "kind": "js", + "name": "browserDetection", + "declaration": { + "name": "browserDetection", + "module": "./src/browserDetection.js" + } + }, + { + "kind": "js", + "name": "EventTargetShim", + "declaration": { + "name": "EventTargetShim", + "module": "./src/EventTargetShim.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/DelegateMixin.js", + "declarations": [ + { + "kind": "variable", + "name": "DelegateMixin" + } + ], + "exports": [ + { + "kind": "js", + "name": "DelegateMixin", + "declaration": { + "name": "DelegateMixin", + "module": "./src/DelegateMixin.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/DisabledMixin.js", + "declarations": [ + { + "kind": "variable", + "name": "DisabledMixin" + } + ], + "exports": [ + { + "kind": "js", + "name": "DisabledMixin", + "declaration": { + "name": "DisabledMixin", + "module": "./src/DisabledMixin.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/DisabledWithTabIndexMixin.js", + "declarations": [ + { + "kind": "variable", + "name": "DisabledWithTabIndexMixin" + } + ], + "exports": [ + { + "kind": "js", + "name": "DisabledWithTabIndexMixin", + "declaration": { + "name": "DisabledWithTabIndexMixin", + "module": "./src/DisabledWithTabIndexMixin.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/EventTargetShim.js", + "declarations": [ + { + "kind": "class", + "name": "EventTargetShim" + } + ], + "exports": [ + { + "kind": "js", + "name": "EventTargetShim", + "declaration": { + "name": "EventTargetShim", + "module": "./src/EventTargetShim.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/SlotMixin.js", + "declarations": [ + { + "kind": "variable", + "name": "SlotMixin" + } + ], + "exports": [ + { + "kind": "js", + "name": "SlotMixin", + "declaration": { + "name": "SlotMixin", + "module": "./src/SlotMixin.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/UpdateStylesMixin.js", + "declarations": [ + { + "kind": "variable", + "name": "UpdateStylesMixin" + } + ], + "exports": [ + { + "kind": "js", + "name": "UpdateStylesMixin", + "declaration": { + "name": "UpdateStylesMixin", + "module": "./src/UpdateStylesMixin.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/browserDetection.js", + "declarations": [ + { + "kind": "variable", + "name": "browserDetection" + } + ], + "exports": [ + { + "kind": "js", + "name": "browserDetection", + "declaration": { + "name": "browserDetection", + "module": "./src/browserDetection.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/closestPolyfill.js", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "./src/differentKeyEventNamesShimIE.js", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "./test-helpers/keyboardEventShimIE.js", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "./types/DelegateMixinTypes.d.ts", + "declarations": [ + { + "kind": "class", + "name": "DelegateHost", + "members": [ + { + "kind": "field", + "name": "delegations", + "privacy": "public", + "type": { + "type": "Delegations" + } + }, + { + "kind": "method", + "name": "_connectDelegateMixin", + "privacy": "protected", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "__setupPropertyDelegation", + "privacy": "private", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "__initialAttributeDelegation", + "privacy": "private", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "__emptyEventListenerQueue", + "privacy": "private", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "__emptyPropertiesQueue", + "privacy": "private", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "connectedCallback", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "updated", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + }, + "parameters": [ + { + "name": "changedProperties", + "type": { + "type": "import('lit-element').PropertyValues" + } + } + ] + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "DelegateHost", + "declaration": { + "name": "DelegateHost", + "module": "./types/DelegateMixinTypes.d.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./types/DisabledMixinTypes.d.ts", + "declarations": [ + { + "kind": "class", + "name": "DisabledHost", + "members": [ + { + "kind": "field", + "name": "disabled", + "privacy": "public", + "type": { + "type": "boolean" + } + }, + { + "kind": "method", + "name": "makeRequestToBeDisabled", + "privacy": "public", + "description": "Makes request to make the element disabled", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "retractRequestToBeDisabled", + "privacy": "public", + "description": "Retract request to make the element disabled and restore disabled to previous", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "__internalSetDisabled", + "privacy": "private", + "return": { + "type": { + "type": "void" + } + }, + "parameters": [ + { + "name": "value", + "type": { + "type": "boolean" + } + } + ] + }, + { + "kind": "field", + "name": "_requestedToBeDisabled", + "privacy": "protected", + "type": { + "type": "boolean" + } + } + ] + }, + { + "kind": "function", + "name": "DisabledMixinImplementation", + "return": { + "type": { + "type": "T & Constructor & typeof DisabledHost" + } + }, + "parameters": [ + { + "name": "superclass", + "type": { + "type": "T" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "DisabledHost", + "declaration": { + "name": "DisabledHost", + "module": "./types/DisabledMixinTypes.d.ts" + } + }, + { + "kind": "js", + "name": "DisabledMixinImplementation", + "declaration": { + "name": "DisabledMixinImplementation", + "module": "./types/DisabledMixinTypes.d.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./types/DisabledWithTabIndexMixinTypes.d.ts", + "declarations": [ + { + "kind": "class", + "name": "DisabledWithTabIndexHost", + "members": [ + { + "kind": "field", + "name": "tabIndex", + "privacy": "public", + "type": { + "type": "number" + } + }, + { + "kind": "method", + "name": "makeRequestToBeDisabled", + "privacy": "public", + "description": "Makes request to make the element disabled and set the tabindex", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "retractRequestToBeDisabled", + "privacy": "public", + "description": "Retract request to make the element disabled and restore disabled and tabindex to previous", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "__internalSetTabIndex", + "privacy": "private", + "return": { + "type": { + "type": "void" + } + }, + "parameters": [ + { + "name": "value", + "type": { + "type": "boolean" + } + } + ] + }, + { + "kind": "method", + "name": "firstUpdated", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + }, + "parameters": [ + { + "name": "changedProperties", + "type": { + "type": "import('lit-element').PropertyValues" + } + } + ] + } + ] + }, + { + "kind": "function", + "name": "DisabledWithTabIndexMixinImplementation", + "return": { + "type": { + "type": "T & Constructor & Constructor" + } + }, + "parameters": [ + { + "name": "superclass", + "type": { + "type": "T" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "DisabledWithTabIndexHost", + "declaration": { + "name": "DisabledWithTabIndexHost", + "module": "./types/DisabledWithTabIndexMixinTypes.d.ts" + } + }, + { + "kind": "js", + "name": "DisabledWithTabIndexMixinImplementation", + "declaration": { + "name": "DisabledWithTabIndexMixinImplementation", + "module": "./types/DisabledWithTabIndexMixinTypes.d.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./types/SlotMixinTypes.d.ts", + "declarations": [ + { + "kind": "class", + "name": "SlotHost", + "members": [ + { + "kind": "field", + "name": "slots", + "privacy": "public", + "type": { + "type": "SlotsMap" + } + }, + { + "kind": "method", + "name": "_connectSlotMixin", + "privacy": "protected", + "description": "Starts the creation of slots", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "_isPrivateSlot", + "privacy": "protected", + "description": "Useful to decide if a given slot should be manipulated depending on if it was auto generated\nor not.", + "return": { + "type": { + "type": "boolean" + } + }, + "parameters": [ + { + "name": "slotName", + "type": { + "type": "string" + }, + "description": "Name of the slot" + } + ] + }, + { + "kind": "method", + "name": "connectedCallback", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + } + ] + }, + { + "kind": "function", + "name": "SlotMixinImplementation", + "description": "# SlotMixin\n\n`SlotMixin`, when attached to the DOM it creates content for defined slots in the Light DOM.\nThe content element is created using a factory function and is assigned a slot name from the key.\nExisting slot content is not overridden.\n\nThe purpose is to have the default content in the Light DOM rather than hidden in Shadow DOM\nlike default slot content works natively.", + "return": { + "type": { + "type": "T & Constructor & typeof SlotHost" + } + }, + "parameters": [ + { + "name": "superclass", + "type": { + "type": "T" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "SlotHost", + "declaration": { + "name": "SlotHost", + "module": "./types/SlotMixinTypes.d.ts" + } + }, + { + "kind": "js", + "name": "SlotMixinImplementation", + "declaration": { + "name": "SlotMixinImplementation", + "module": "./types/SlotMixinTypes.d.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./types/UpdateStylesMixinTypes.d.ts", + "declarations": [ + { + "kind": "class", + "name": "UpdateStylesHost", + "members": [ + { + "kind": "method", + "name": "updateStyles", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + }, + "parameters": [ + { + "name": "updateStyles", + "type": { + "type": "StylesMap" + } + } + ] + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "UpdateStylesHost", + "declaration": { + "name": "UpdateStylesHost", + "module": "./types/UpdateStylesMixinTypes.d.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/guidelines/10-guidelines-definitions.md", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "./docs/guidelines/20-guidelines-styling.md", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "./docs/guidelines/30-guidelines-scoped-elements.md", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "./docs/guidelines/40-guidelines-subclasser-apis.md", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "./docs/rationales/001-side-effects.md", + "declarations": [], + "exports": [] + } + ] +} diff --git a/packages/core/package.json b/packages/core/package.json index 5b11627b2..4b014f7f7 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -23,6 +23,7 @@ "types" ], "scripts": { + "custom-elements-manifest": "custom-elements-manifest analyze --exclude 'docs/**/*'", "debug": "cd ../../ && npm run debug -- --group core", "debug:firefox": "cd ../../ && npm run debug:firefox -- --group core", "debug:webkit": "cd ../../ && npm run debug:webkit -- --group core", @@ -51,5 +52,6 @@ "./test-helpers/*": "./test-helpers/*", "./closestPolyfill": "./src/closestPolyfill.js", "./differentKeyEventNamesShimIE": "./src/differentKeyEventNamesShimIE.js" - } + }, + "customElementsManifest": "custom-elements.json" } diff --git a/packages/dialog/custom-elements.json b/packages/dialog/custom-elements.json new file mode 100644 index 000000000..295f8bdef --- /dev/null +++ b/packages/dialog/custom-elements.json @@ -0,0 +1,163 @@ +{ + "schemaVersion": "experimental", + "readme": "", + "modules": [ + { + "kind": "javascript-module", + "path": "./index.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "LionDialog", + "declaration": { + "name": "LionDialog", + "module": "./src/LionDialog.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./lion-dialog.js", + "declarations": [], + "exports": [ + { + "kind": "custom-element-definition", + "name": "lion-dialog", + "declaration": { + "name": "LionDialog", + "module": "./src/LionDialog.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/demo-dialog-style.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./docs/demo-dialog-style.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/slots-dialog-content.js", + "declarations": [ + { + "kind": "class", + "name": "SlotsDialogContent", + "superclass": { + "name": "LitElement", + "package": "@lion/core" + }, + "tagName": "slots-dialog-content" + } + ], + "exports": [ + { + "kind": "custom-element-definition", + "name": "slots-dialog-content", + "declaration": { + "name": "SlotsDialogContent", + "module": "./docs/slots-dialog-content.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/styled-dialog-content.js", + "declarations": [ + { + "kind": "class", + "name": "StyledDialogContent", + "events": [ + { + "name": "close-overlay", + "type": { + "type": "Event" + } + } + ], + "superclass": { + "name": "LitElement", + "package": "@lion/core" + }, + "members": [ + { + "kind": "method", + "name": "_closeOverlay", + "privacy": "public" + } + ], + "tagName": "styled-dialog-content" + } + ], + "exports": [ + { + "kind": "custom-element-definition", + "name": "styled-dialog-content", + "declaration": { + "name": "StyledDialogContent", + "module": "./docs/styled-dialog-content.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/LionDialog.js", + "declarations": [ + { + "kind": "class", + "name": "LionDialog", + "mixins": [ + { + "name": "OverlayMixin", + "package": "@lion/overlays" + } + ], + "superclass": { + "name": "LitElement", + "package": "@lion/core" + }, + "members": [ + { + "kind": "method", + "name": "_defineOverlayConfig", + "privacy": "public" + }, + { + "kind": "method", + "name": "_setupOpenCloseListeners", + "privacy": "public" + }, + { + "kind": "method", + "name": "_teardownOpenCloseListeners", + "privacy": "public" + } + ], + "tagName": "lion-dialog" + } + ], + "exports": [ + { + "kind": "js", + "name": "LionDialog", + "declaration": { + "name": "LionDialog", + "module": "./src/LionDialog.js" + } + } + ] + } + ] +} diff --git a/packages/dialog/package.json b/packages/dialog/package.json index be120c619..95f2680d2 100644 --- a/packages/dialog/package.json +++ b/packages/dialog/package.json @@ -23,6 +23,7 @@ "types" ], "scripts": { + "custom-elements-manifest": "custom-elements-manifest analyze --exclude 'docs/**/*'", "debug": "cd ../../ && npm run debug -- --group dialog", "debug:firefox": "cd ../../ && npm run debug:firefox -- --group dialog", "debug:webkit": "cd ../../ && npm run debug:webkit -- --group dialog", @@ -48,5 +49,6 @@ "exports": { ".": "./index.js", "./lion-dialog": "./lion-dialog.js" - } + }, + "customElementsManifest": "custom-elements.json" } diff --git a/packages/fieldset/custom-elements.json b/packages/fieldset/custom-elements.json new file mode 100644 index 000000000..3e3236b82 --- /dev/null +++ b/packages/fieldset/custom-elements.json @@ -0,0 +1,81 @@ +{ + "schemaVersion": "experimental", + "readme": "", + "modules": [ + { + "kind": "javascript-module", + "path": "./index.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "LionFieldset", + "declaration": { + "name": "LionFieldset", + "module": "./src/LionFieldset.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./lion-fieldset.js", + "declarations": [], + "exports": [ + { + "kind": "custom-element-definition", + "name": "lion-fieldset", + "declaration": { + "name": "LionFieldset", + "module": "./src/LionFieldset.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/LionFieldset.js", + "declarations": [ + { + "kind": "class", + "name": "LionFieldset", + "mixins": [ + { + "name": "FormGroupMixin", + "package": "@lion/form-core" + } + ], + "superclass": { + "name": "LitElement", + "package": "@lion/core" + }, + "tagName": "lion-fieldset" + } + ], + "exports": [ + { + "kind": "js", + "name": "LionFieldset", + "declaration": { + "name": "LionFieldset", + "module": "./src/LionFieldset.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/helpers/demo-fieldset-child.js", + "declarations": [], + "exports": [ + { + "kind": "custom-element-definition", + "name": "demo-fieldset-child", + "declaration": { + "module": "./docs/helpers/demo-fieldset-child.js" + } + } + ] + } + ] +} diff --git a/packages/fieldset/package.json b/packages/fieldset/package.json index 16ac71309..327093224 100644 --- a/packages/fieldset/package.json +++ b/packages/fieldset/package.json @@ -23,6 +23,7 @@ "types" ], "scripts": { + "custom-elements-manifest": "custom-elements-manifest analyze --exclude 'docs/**/*'", "debug": "cd ../../ && npm run debug -- --group fieldset", "debug:firefox": "cd ../../ && npm run debug:firefox -- --group fieldset", "debug:webkit": "cd ../../ && npm run debug:webkit -- --group fieldset", @@ -48,5 +49,6 @@ "exports": { ".": "./index.js", "./lion-fieldset": "./lion-fieldset.js" - } + }, + "customElementsManifest": "custom-elements.json" } diff --git a/packages/form-core/custom-elements.json b/packages/form-core/custom-elements.json new file mode 100644 index 000000000..5e5ed7d62 --- /dev/null +++ b/packages/form-core/custom-elements.json @@ -0,0 +1,9954 @@ +{ + "schemaVersion": "experimental", + "readme": "", + "modules": [ + { + "kind": "javascript-module", + "path": "./index.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "FocusMixin", + "declaration": { + "name": "FocusMixin", + "module": "./src/FocusMixin.js" + } + }, + { + "kind": "js", + "name": "FormatMixin", + "declaration": { + "name": "FormatMixin", + "module": "./src/FormatMixin.js" + } + }, + { + "kind": "js", + "name": "FormControlMixin", + "declaration": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "js", + "name": "InteractionStateMixin", + "declaration": { + "name": "InteractionStateMixin", + "module": "./src/InteractionStateMixin.js" + } + }, + { + "kind": "js", + "name": "LionField", + "declaration": { + "name": "LionField", + "module": "./src/LionField.js" + } + }, + { + "kind": "js", + "name": "FormRegisteringMixin", + "declaration": { + "name": "FormRegisteringMixin", + "module": "./src/registration/FormRegisteringMixin.js" + } + }, + { + "kind": "js", + "name": "FormRegistrarMixin", + "declaration": { + "name": "FormRegistrarMixin", + "module": "./src/registration/FormRegistrarMixin.js" + } + }, + { + "kind": "js", + "name": "FormRegistrarPortalMixin", + "declaration": { + "name": "FormRegistrarPortalMixin", + "module": "./src/registration/FormRegistrarPortalMixin.js" + } + }, + { + "kind": "js", + "name": "NativeTextFieldMixin", + "declaration": { + "name": "NativeTextFieldMixin", + "module": "./src/NativeTextFieldMixin.js" + } + }, + { + "kind": "js", + "name": "FormControlsCollection", + "declaration": { + "name": "FormControlsCollection", + "module": "./src/registration/FormControlsCollection.js" + } + }, + { + "kind": "js", + "name": "ValidateMixin", + "declaration": { + "name": "ValidateMixin", + "module": "./src/validate/ValidateMixin.js" + } + }, + { + "kind": "js", + "name": "Unparseable", + "declaration": { + "name": "Unparseable", + "module": "./src/validate/Unparseable.js" + } + }, + { + "kind": "js", + "name": "Validator", + "declaration": { + "name": "Validator", + "module": "./src/validate/Validator.js" + } + }, + { + "kind": "js", + "name": "ResultValidator", + "declaration": { + "name": "ResultValidator", + "module": "./src/validate/ResultValidator.js" + } + }, + { + "kind": "js", + "name": "Required", + "declaration": { + "name": "Required", + "module": "./src/validate/validators/Required.js" + } + }, + { + "kind": "js", + "name": "IsString", + "declaration": { + "name": "IsString", + "module": "./src/validate/validators/StringValidators.js" + } + }, + { + "kind": "js", + "name": "EqualsLength", + "declaration": { + "name": "EqualsLength", + "module": "./src/validate/validators/StringValidators.js" + } + }, + { + "kind": "js", + "name": "MinLength", + "declaration": { + "name": "MinLength", + "module": "./src/validate/validators/StringValidators.js" + } + }, + { + "kind": "js", + "name": "MaxLength", + "declaration": { + "name": "MaxLength", + "module": "./src/validate/validators/StringValidators.js" + } + }, + { + "kind": "js", + "name": "MinMaxLength", + "declaration": { + "name": "MinMaxLength", + "module": "./src/validate/validators/StringValidators.js" + } + }, + { + "kind": "js", + "name": "IsEmail", + "declaration": { + "name": "IsEmail", + "module": "./src/validate/validators/StringValidators.js" + } + }, + { + "kind": "js", + "name": "Pattern", + "declaration": { + "name": "Pattern", + "module": "./src/validate/validators/StringValidators.js" + } + }, + { + "kind": "js", + "name": "IsNumber", + "declaration": { + "name": "IsNumber", + "module": "./src/validate/validators/NumberValidators.js" + } + }, + { + "kind": "js", + "name": "MinNumber", + "declaration": { + "name": "MinNumber", + "module": "./src/validate/validators/NumberValidators.js" + } + }, + { + "kind": "js", + "name": "MaxNumber", + "declaration": { + "name": "MaxNumber", + "module": "./src/validate/validators/NumberValidators.js" + } + }, + { + "kind": "js", + "name": "MinMaxNumber", + "declaration": { + "name": "MinMaxNumber", + "module": "./src/validate/validators/NumberValidators.js" + } + }, + { + "kind": "js", + "name": "IsDate", + "declaration": { + "name": "IsDate", + "module": "./src/validate/validators/DateValidators.js" + } + }, + { + "kind": "js", + "name": "MinDate", + "declaration": { + "name": "MinDate", + "module": "./src/validate/validators/DateValidators.js" + } + }, + { + "kind": "js", + "name": "MaxDate", + "declaration": { + "name": "MaxDate", + "module": "./src/validate/validators/DateValidators.js" + } + }, + { + "kind": "js", + "name": "MinMaxDate", + "declaration": { + "name": "MinMaxDate", + "module": "./src/validate/validators/DateValidators.js" + } + }, + { + "kind": "js", + "name": "IsDateDisabled", + "declaration": { + "name": "IsDateDisabled", + "module": "./src/validate/validators/DateValidators.js" + } + }, + { + "kind": "js", + "name": "DefaultSuccess", + "declaration": { + "name": "DefaultSuccess", + "module": "./src/validate/resultValidators/DefaultSuccess.js" + } + }, + { + "kind": "js", + "name": "LionValidationFeedback", + "declaration": { + "name": "LionValidationFeedback", + "module": "./src/validate/LionValidationFeedback.js" + } + }, + { + "kind": "js", + "name": "ChoiceGroupMixin", + "declaration": { + "name": "ChoiceGroupMixin", + "module": "./src/choice-group/ChoiceGroupMixin.js" + } + }, + { + "kind": "js", + "name": "ChoiceInputMixin", + "declaration": { + "name": "ChoiceInputMixin", + "module": "./src/choice-group/ChoiceInputMixin.js" + } + }, + { + "kind": "js", + "name": "FormGroupMixin", + "declaration": { + "name": "FormGroupMixin", + "module": "./src/form-group/FormGroupMixin.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./lion-field.js", + "declarations": [], + "exports": [ + { + "kind": "custom-element-definition", + "name": "lion-field", + "declaration": { + "name": "LionField", + "module": "./src/LionField.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./lion-validation-feedback.js", + "declarations": [], + "exports": [ + { + "kind": "custom-element-definition", + "name": "lion-validation-feedback", + "declaration": { + "name": "LionValidationFeedback", + "module": "./src/validate/LionValidationFeedback.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./test-helpers.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "AlwaysInvalid", + "declaration": { + "name": "AlwaysInvalid", + "module": "./test-helpers/ExampleValidators.js" + } + }, + { + "kind": "js", + "name": "AlwaysValid", + "declaration": { + "name": "AlwaysValid", + "module": "./test-helpers/ExampleValidators.js" + } + }, + { + "kind": "js", + "name": "AsyncAlwaysValid", + "declaration": { + "name": "AsyncAlwaysValid", + "module": "./test-helpers/ExampleValidators.js" + } + }, + { + "kind": "js", + "name": "AsyncAlwaysInvalid", + "declaration": { + "name": "AsyncAlwaysInvalid", + "module": "./test-helpers/ExampleValidators.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/FocusMixin.js", + "declarations": [ + { + "kind": "mixin", + "name": "FocusMixin", + "events": [ + { + "name": "focus", + "type": { + "type": "Event" + } + }, + { + "name": "blur", + "type": { + "type": "Event" + } + }, + { + "name": "focusin", + "type": { + "type": "Event" + } + }, + { + "name": "focusout", + "type": { + "type": "Event" + } + } + ], + "mixins": [ + { + "name": "FormControlMixin", + "module": "/src/FormControlMixin.js" + } + ], + "superclass": { + "name": "superclass", + "module": "./src/FocusMixin.js" + }, + "attributes": [ + { + "name": "focused", + "fieldName": "focused" + } + ], + "members": [ + { + "kind": "field", + "name": "focused", + "privacy": "public", + "default": "false" + }, + { + "kind": "method", + "name": "connectedCallback", + "privacy": "public" + }, + { + "kind": "method", + "name": "disconnectedCallback", + "privacy": "public" + }, + { + "kind": "method", + "name": "focus", + "privacy": "public" + }, + { + "kind": "method", + "name": "blur", + "privacy": "public" + }, + { + "kind": "method", + "name": "__onFocus", + "privacy": "public" + }, + { + "kind": "method", + "name": "__onBlur", + "privacy": "public" + }, + { + "kind": "method", + "name": "__registerEventsForFocusMixin", + "privacy": "public" + }, + { + "kind": "method", + "name": "__teardownEventsForFocusMixin", + "privacy": "public" + } + ] + }, + { + "kind": "variable", + "name": "FocusMixin" + } + ], + "exports": [ + { + "kind": "js", + "name": "FocusMixin", + "declaration": { + "name": "FocusMixin", + "module": "./src/FocusMixin.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/FormControlMixin.js", + "declarations": [ + { + "kind": "mixin", + "name": "FormControlMixin", + "events": [ + { + "name": "form-element-name-changed", + "type": { + "type": "CustomEvent" + } + }, + { + "name": "model-value-changed", + "type": { + "type": "CustomEvent" + } + } + ], + "mixins": [ + { + "name": "FormRegisteringMixin", + "module": "/src/registration/FormRegisteringMixin.js" + }, + { + "name": "DisabledMixin", + "package": "@lion/core/src/DisabledMixin.js" + }, + { + "name": "SlotMixin", + "package": "@lion/core" + } + ], + "superclass": { + "name": "superclass", + "module": "./src/FormControlMixin.js" + }, + "attributes": [ + { + "name": "name", + "fieldName": "name" + }, + { + "name": "readonly", + "fieldName": "readOnly" + }, + { + "name": "label", + "fieldName": "label" + }, + { + "name": "help-text", + "fieldName": "helpText" + } + ], + "members": [ + { + "kind": "field", + "name": "name", + "privacy": "public", + "type": { + "type": "string | undefined" + }, + "default": "undefined" + }, + { + "kind": "field", + "name": "readOnly", + "privacy": "public" + }, + { + "kind": "field", + "name": "label", + "privacy": "public" + }, + { + "kind": "field", + "name": "helpText", + "privacy": "public" + }, + { + "kind": "field", + "name": "modelValue", + "privacy": "public" + }, + { + "kind": "field", + "name": "_ariaLabelledNodes", + "privacy": "public", + "type": { + "type": "HTMLElement[]" + }, + "default": "[]" + }, + { + "kind": "field", + "name": "_ariaDescribedNodes", + "privacy": "public", + "type": { + "type": "HTMLElement[]" + }, + "default": "[]" + }, + { + "kind": "field", + "name": "_repropagationRole", + "privacy": "public", + "type": { + "type": "'child'|'choice-group'|'fieldset'" + }, + "default": "'child'" + }, + { + "kind": "field", + "name": "_isRepropagationEndpoint", + "privacy": "public", + "default": "false" + }, + { + "kind": "field", + "name": "fieldName", + "privacy": "public" + }, + { + "kind": "field", + "name": "slots", + "privacy": "public" + }, + { + "kind": "field", + "name": "_inputNode", + "privacy": "public" + }, + { + "kind": "field", + "name": "_labelNode", + "privacy": "public" + }, + { + "kind": "field", + "name": "_helpTextNode", + "privacy": "public" + }, + { + "kind": "field", + "name": "_feedbackNode", + "privacy": "public" + }, + { + "kind": "method", + "name": "connectedCallback", + "privacy": "public" + }, + { + "kind": "method", + "name": "disconnectedCallback", + "privacy": "public" + }, + { + "kind": "method", + "name": "updated", + "privacy": "public", + "parameters": [ + { + "name": "changedProperties", + "type": { + "type": "PropertyValues " + } + } + ] + }, + { + "kind": "method", + "name": "_triggerInitialModelValueChangedEvent", + "privacy": "public" + }, + { + "kind": "method", + "name": "_enhanceLightDomClasses", + "privacy": "public" + }, + { + "kind": "method", + "name": "_enhanceLightDomA11y", + "privacy": "public" + }, + { + "kind": "method", + "name": "_enhanceLightDomA11yForAdditionalSlots", + "privacy": "public", + "description": "Enhances additional slots(prefix, suffix, before, after) defined by developer.\n\nWhen boolean attribute data-label or data-description is found,\nthe slot element will be connected to the input via aria-labelledby or aria-describedby", + "parameters": [ + { + "name": "additionalSlots", + "type": { + "type": "string[]" + }, + "default": "['prefix', 'suffix', 'before', 'after']" + } + ] + }, + { + "kind": "method", + "name": "__reflectAriaAttr", + "privacy": "public", + "description": "Will handle help text, validation feedback and character counter,\nprefix/suffix/before/after (if they contain data-description flag attr).\nAlso, contents of id references that will be put in the ._ariaDescribedby property\nfrom an external context, will be read by a screen reader.", + "parameters": [ + { + "name": "attrName", + "type": { + "type": "string" + } + }, + { + "name": "nodes", + "type": { + "type": "HTMLElement[]" + } + }, + { + "name": "reorder", + "type": { + "type": "boolean|undefined" + } + } + ] + }, + { + "kind": "method", + "name": "render", + "privacy": "public", + "description": "Default Render Result:\n
\n
\n\n
\n\n\n\n
\n
\n
\n
\n\n
\n
\n
\n\n
\n
\n\n
\n
\n\n
\n
\n
\n\n
\n
\n
\n\n
\n
" + }, + { + "kind": "method", + "name": "_groupOneTemplate", + "privacy": "public", + "return": { + "type": { + "type": "TemplateResult" + } + } + }, + { + "kind": "method", + "name": "_groupTwoTemplate", + "privacy": "public", + "return": { + "type": { + "type": "TemplateResult" + } + } + }, + { + "kind": "method", + "name": "_labelTemplate", + "privacy": "public", + "return": { + "type": { + "type": "TemplateResult" + } + } + }, + { + "kind": "method", + "name": "_helpTextTemplate", + "privacy": "public", + "return": { + "type": { + "type": "TemplateResult" + } + } + }, + { + "kind": "method", + "name": "_inputGroupTemplate", + "privacy": "public", + "return": { + "type": { + "type": "TemplateResult" + } + } + }, + { + "kind": "method", + "name": "_inputGroupBeforeTemplate", + "privacy": "public", + "return": { + "type": { + "type": "TemplateResult" + } + } + }, + { + "kind": "method", + "name": "_inputGroupPrefixTemplate", + "privacy": "public", + "return": { + "type": { + "type": "TemplateResult | nothing" + } + } + }, + { + "kind": "method", + "name": "_inputGroupInputTemplate", + "privacy": "public", + "return": { + "type": { + "type": "TemplateResult" + } + } + }, + { + "kind": "method", + "name": "_inputGroupSuffixTemplate", + "privacy": "public", + "return": { + "type": { + "type": "TemplateResult | nothing" + } + } + }, + { + "kind": "method", + "name": "_inputGroupAfterTemplate", + "privacy": "public", + "return": { + "type": { + "type": "TemplateResult" + } + } + }, + { + "kind": "method", + "name": "_feedbackTemplate", + "privacy": "public", + "return": { + "type": { + "type": "TemplateResult" + } + } + }, + { + "kind": "method", + "name": "_isEmpty", + "privacy": "public", + "return": { + "type": { + "type": "boolean" + } + }, + "parameters": [ + { + "name": "modelValue", + "type": { + "type": "?" + }, + "default": "this.modelValue" + } + ] + }, + { + "kind": "method", + "name": "_getAriaDescriptionElements", + "privacy": "public", + "return": { + "type": { + "type": "Array." + } + } + }, + { + "kind": "method", + "name": "addToAriaLabelledBy", + "privacy": "public", + "description": "Meant for Application Developers wanting to add to aria-labelledby attribute.", + "parameters": [ + { + "name": "element", + "type": { + "type": "HTMLElement" + } + }, + { + "name": "customConfig", + "type": { + "type": "{idPrefix?:string; reorder?: boolean}" + }, + "default": "{}" + } + ] + }, + { + "kind": "method", + "name": "addToAriaDescribedBy", + "privacy": "public", + "description": "Meant for Application Developers wanting to add to aria-describedby attribute.", + "parameters": [ + { + "name": "element", + "type": { + "type": "HTMLElement" + } + }, + { + "name": "customConfig", + "type": { + "type": "{idPrefix?:string; reorder?: boolean}" + }, + "default": "{}" + } + ] + }, + { + "kind": "method", + "name": "__getDirectSlotChild", + "privacy": "public", + "return": { + "type": { + "type": "HTMLElement | undefined" + } + }, + "parameters": [ + { + "name": "slotName", + "type": { + "type": "string" + } + } + ] + }, + { + "kind": "method", + "name": "__dispatchInitialModelValueChangedEvent", + "privacy": "public" + }, + { + "kind": "method", + "name": "_onBeforeRepropagateChildrenValues", + "privacy": "public", + "parameters": [ + { + "name": "ev", + "type": { + "type": "CustomEvent" + } + } + ] + }, + { + "kind": "method", + "name": "__repropagateChildrenValues", + "privacy": "public", + "parameters": [ + { + "name": "ev", + "type": { + "type": "CustomEvent" + } + } + ] + }, + { + "kind": "method", + "name": "_repropagationCondition", + "privacy": "public", + "description": "TODO: Extend this in choice group so that target is always a choice input and multipleChoice exists.\nThis will fix the types and reduce the need for ignores/expect-errors", + "parameters": [ + { + "name": "target", + "type": { + "type": "EventTarget & ChoiceInputHost" + } + } + ] + }, + { + "kind": "method", + "name": "_onLabelClick", + "privacy": "public" + } + ] + }, + { + "kind": "variable", + "name": "FormControlMixin" + } + ], + "exports": [ + { + "kind": "js", + "name": "FormControlMixin", + "declaration": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/FormatMixin.js", + "declarations": [ + { + "kind": "mixin", + "name": "FormatMixin", + "events": [ + { + "name": "model-value-changed", + "type": { + "type": "CustomEvent" + } + }, + { + "name": "user-input-changed", + "type": { + "type": "CustomEvent" + } + } + ], + "mixins": [ + { + "name": "ValidateMixin", + "module": "/src/validate/ValidateMixin.js" + }, + { + "name": "FormControlMixin", + "module": "/src/FormControlMixin.js" + } + ], + "superclass": { + "name": "superclass", + "module": "./src/FormatMixin.js" + }, + "members": [ + { + "kind": "field", + "name": "formattedValue", + "privacy": "public" + }, + { + "kind": "field", + "name": "serializedValue", + "privacy": "public" + }, + { + "kind": "field", + "name": "formatOn", + "privacy": "public", + "default": "'change'" + }, + { + "kind": "field", + "name": "formatOptions", + "privacy": "public", + "default": "({})" + }, + { + "kind": "method", + "name": "requestUpdateInternal", + "privacy": "public", + "parameters": [ + { + "name": "name", + "type": { + "type": "string" + } + }, + { + "name": "oldVal", + "type": { + "type": "any" + } + } + ] + }, + { + "kind": "field", + "name": "value", + "privacy": "public" + }, + { + "kind": "method", + "name": "parser", + "privacy": "public", + "description": "Converts formattedValue to modelValue\nFor instance, a localized date to a Date Object", + "return": { + "type": { + "type": "*" + } + }, + "parameters": [ + { + "name": "v", + "type": { + "type": "string" + }, + "description": "formattedValue: the formatted value inside " + }, + { + "name": "opts", + "type": { + "type": "FormatOptions" + } + } + ] + }, + { + "kind": "method", + "name": "formatter", + "privacy": "public", + "description": "Converts modelValue to formattedValue (formattedValue will be synced with\n`._inputNode.value`)\nFor instance, a Date object to a localized date.", + "return": { + "type": { + "type": "string" + } + }, + "parameters": [ + { + "name": "v", + "type": { + "type": "*" + }, + "description": "modelValue: can be an Object, Number, String depending on the\ninput type(date, number, email etc)" + }, + { + "name": "opts", + "type": { + "type": "FormatOptions" + } + } + ] + }, + { + "kind": "method", + "name": "serializer", + "privacy": "public", + "description": "Converts `.modelValue` to `.serializedValue`\nFor instance, a Date object to an iso formatted date string", + "return": { + "type": { + "type": "string" + } + }, + "parameters": [ + { + "name": "v", + "type": { + "type": "?" + }, + "description": "modelValue: can be an Object, Number, String depending on the\ninput type(date, number, email etc)" + } + ] + }, + { + "kind": "method", + "name": "deserializer", + "privacy": "public", + "description": "Converts `LionField.value` to `.modelValue`\nFor instance, an iso formatted date string to a Date object", + "return": { + "type": { + "type": "?" + } + }, + "parameters": [ + { + "name": "v", + "type": { + "type": "?" + }, + "description": "modelValue: can be an Object, Number, String depending on the\ninput type(date, number, email etc)" + } + ] + }, + { + "kind": "method", + "name": "_calculateValues", + "privacy": "public", + "description": "Responsible for storing all representations(modelValue, serializedValue, formattedValue\nand value) of the input value. Prevents infinite loops, so all value observers can be\ntreated like they will only be called once, without indirectly calling other observers.\n(in fact, some are called twice, but the __preventRecursiveTrigger lock prevents the\nsecond call from having effect).", + "parameters": [ + { + "name": "config", + "type": { + "type": "{source:'model'|'serialized'|'formatted'|null}" + }, + "description": "the type of value that triggered this method. It should not be\nset again, so that its observer won't be triggered. Can be:\n'model'|'formatted'|'serialized'." + } + ] + }, + { + "kind": "method", + "name": "__callParser", + "privacy": "public", + "return": { + "type": { + "type": "?" + } + }, + "parameters": [ + { + "name": "value", + "type": { + "type": "string|undefined" + }, + "default": "this.formattedValue" + } + ] + }, + { + "kind": "method", + "name": "__callFormatter", + "privacy": "public", + "return": { + "type": { + "type": "string|undefined" + } + } + }, + { + "kind": "method", + "name": "_onModelValueChanged", + "privacy": "public", + "description": "Observer Handlers", + "parameters": [ + { + "name": "args", + "type": { + "type": "{ modelValue: unknown; }[]" + } + } + ] + }, + { + "kind": "method", + "name": "_dispatchModelValueChangedEvent", + "privacy": "public", + "parameters": [ + { + "name": "args", + "type": { + "type": "{ modelValue: unknown; }[]" + }, + "description": "This is wrapped in a distinct method, so that parents can control when the changed event\nis fired. For objects, a deep comparison might be needed." + } + ] + }, + { + "kind": "method", + "name": "_syncValueUpwards", + "privacy": "public", + "description": "Synchronization from `._inputNode.value` to `LionField` (flow [2])" + }, + { + "kind": "method", + "name": "_reflectBackFormattedValueToUser", + "privacy": "public", + "description": "Synchronization from `LionField.value` to `._inputNode.value`\n- flow [1] will always be reflected back\n- flow [2] will not be reflected back when this flow was triggered via\n`@user-input-changed` (this will happen later, when `formatOn` condition is met)" + }, + { + "kind": "method", + "name": "_reflectBackOn", + "privacy": "public", + "return": { + "type": { + "type": "boolean" + } + } + }, + { + "kind": "method", + "name": "_proxyInputEvent", + "privacy": "public" + }, + { + "kind": "method", + "name": "_onUserInputChanged", + "privacy": "public" + }, + { + "kind": "method", + "name": "connectedCallback", + "privacy": "public" + }, + { + "kind": "method", + "name": "disconnectedCallback", + "privacy": "public" + } + ] + }, + { + "kind": "variable", + "name": "FormatMixin" + } + ], + "exports": [ + { + "kind": "js", + "name": "FormatMixin", + "declaration": { + "name": "FormatMixin", + "module": "./src/FormatMixin.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/InteractionStateMixin.js", + "declarations": [ + { + "kind": "mixin", + "name": "InteractionStateMixin", + "events": [ + { + "name": "touched-changed", + "type": { + "type": "CustomEvent" + } + }, + { + "name": "dirty-changed", + "type": { + "type": "CustomEvent" + } + } + ], + "mixins": [ + { + "name": "FormControlMixin", + "module": "/src/FormControlMixin.js" + } + ], + "superclass": { + "name": "superclass", + "module": "./src/InteractionStateMixin.js" + }, + "attributes": [ + { + "name": "touched", + "fieldName": "touched" + }, + { + "name": "dirty", + "fieldName": "dirty" + }, + { + "name": "filled", + "fieldName": "filled" + } + ], + "members": [ + { + "kind": "field", + "name": "touched", + "privacy": "public", + "default": "false" + }, + { + "kind": "field", + "name": "dirty", + "privacy": "public", + "default": "false" + }, + { + "kind": "field", + "name": "filled", + "privacy": "public", + "default": "false" + }, + { + "kind": "field", + "name": "prefilled", + "privacy": "public", + "default": "false" + }, + { + "kind": "field", + "name": "submitted", + "privacy": "public" + }, + { + "kind": "method", + "name": "requestUpdateInternal", + "privacy": "public", + "parameters": [ + { + "name": "name", + "type": { + "type": "PropertyKey" + } + }, + { + "name": "oldVal", + "type": { + "type": "*" + } + } + ] + }, + { + "kind": "method", + "name": "connectedCallback", + "privacy": "public", + "description": "Register event handlers and validate prefilled inputs" + }, + { + "kind": "method", + "name": "disconnectedCallback", + "privacy": "public" + }, + { + "kind": "method", + "name": "initInteractionState", + "privacy": "public", + "description": "Evaluations performed on connectedCallback. Since some components can be out of sync\n(due to interdependence on light children that can only be processed\nafter connectedCallback and affect the initial value).\nThis method is exposed, so it can be called after they are initialized themselves.\nSince this method will be called twice in last mentioned scenario, it must stay idempotent." + }, + { + "kind": "method", + "name": "_iStateOnLeave", + "privacy": "protected", + "description": "Sets touched value to true\nReevaluates prefilled state.\nWhen false, on next interaction, user will start with a clean state." + }, + { + "kind": "method", + "name": "_iStateOnValueChange", + "privacy": "protected", + "description": "Sets dirty value and validates when already touched or invalid" + }, + { + "kind": "method", + "name": "resetInteractionState", + "privacy": "public", + "description": "Resets touched and dirty, and recomputes prefilled" + }, + { + "kind": "method", + "name": "_onTouchedChanged", + "privacy": "public" + }, + { + "kind": "method", + "name": "_onDirtyChanged", + "privacy": "public" + }, + { + "kind": "method", + "name": "_showFeedbackConditionFor", + "privacy": "public", + "description": "Show the validity feedback when one of the following conditions is met:\n\n- submitted\nIf the form is submitted, always show the error message.\n\n- prefilled\nthe user already filled in something, or the value is prefilled\nwhen the form is initially rendered.\n\n- touched && dirty\nWhen a user starts typing for the first time in a field with for instance `required`\nvalidation, error message should not be shown until a field becomes `touched`\n(a user leaves(blurs) a field).\nWhen a user enters a field without altering the value(making it `dirty`),\nan error message shouldn't be shown either." + } + ] + }, + { + "kind": "variable", + "name": "InteractionStateMixin" + } + ], + "exports": [ + { + "kind": "js", + "name": "InteractionStateMixin", + "declaration": { + "name": "InteractionStateMixin", + "module": "./src/InteractionStateMixin.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/LionField.js", + "declarations": [ + { + "kind": "class", + "name": "LionField", + "events": [ + { + "name": "user-input-changed", + "type": { + "type": "CustomEvent" + } + }, + { + "name": "form-element-name-changed", + "type": { + "type": "CustomEvent" + }, + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "name": "model-value-changed", + "type": { + "type": "CustomEvent" + }, + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "name": "touched-changed", + "type": { + "type": "CustomEvent" + }, + "inheritedFrom": { + "name": "InteractionStateMixin", + "module": "./src/InteractionStateMixin.js" + } + }, + { + "name": "dirty-changed", + "type": { + "type": "CustomEvent" + }, + "inheritedFrom": { + "name": "InteractionStateMixin", + "module": "./src/InteractionStateMixin.js" + } + }, + { + "name": "focus", + "type": { + "type": "Event" + }, + "inheritedFrom": { + "name": "FocusMixin", + "module": "./src/FocusMixin.js" + } + }, + { + "name": "blur", + "type": { + "type": "Event" + }, + "inheritedFrom": { + "name": "FocusMixin", + "module": "./src/FocusMixin.js" + } + }, + { + "name": "focusin", + "type": { + "type": "Event" + }, + "inheritedFrom": { + "name": "FocusMixin", + "module": "./src/FocusMixin.js" + } + }, + { + "name": "focusout", + "type": { + "type": "Event" + }, + "inheritedFrom": { + "name": "FocusMixin", + "module": "./src/FocusMixin.js" + } + } + ], + "mixins": [ + { + "name": "FormControlMixin", + "module": "/src/FormControlMixin.js" + }, + { + "name": "InteractionStateMixin", + "module": "/src/InteractionStateMixin.js" + }, + { + "name": "FocusMixin", + "module": "/src/FocusMixin.js" + }, + { + "name": "FormatMixin", + "module": "/src/FormatMixin.js" + }, + { + "name": "ValidateMixin", + "module": "/src/validate/ValidateMixin.js" + }, + { + "name": "SlotMixin", + "package": "@lion/core" + } + ], + "superclass": { + "name": "LitElement", + "package": "@lion/core" + }, + "attributes": [ + { + "name": "autocomplete", + "fieldName": "autocomplete" + }, + { + "name": "value", + "fieldName": "value" + }, + { + "name": "name", + "fieldName": "name", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "name": "readonly", + "fieldName": "readOnly", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "name": "label", + "fieldName": "label", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "name": "help-text", + "fieldName": "helpText", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "name": "touched", + "fieldName": "touched", + "inheritedFrom": { + "name": "InteractionStateMixin", + "module": "./src/InteractionStateMixin.js" + } + }, + { + "name": "dirty", + "fieldName": "dirty", + "inheritedFrom": { + "name": "InteractionStateMixin", + "module": "./src/InteractionStateMixin.js" + } + }, + { + "name": "filled", + "fieldName": "filled", + "inheritedFrom": { + "name": "InteractionStateMixin", + "module": "./src/InteractionStateMixin.js" + } + }, + { + "name": "focused", + "fieldName": "focused", + "inheritedFrom": { + "name": "FocusMixin", + "module": "./src/FocusMixin.js" + } + } + ], + "members": [ + { + "kind": "field", + "name": "autocomplete", + "privacy": "public", + "type": { + "type": "string | undefined" + }, + "default": "undefined" + }, + { + "kind": "field", + "name": "value", + "privacy": "public" + }, + { + "kind": "method", + "name": "resetInteractionState", + "privacy": "public" + }, + { + "kind": "method", + "name": "reset", + "privacy": "public" + }, + { + "kind": "method", + "name": "clear", + "privacy": "public", + "description": "Clears modelValue.\nInteraction states are not cleared (use resetInteractionState for this)" + }, + { + "kind": "method", + "name": "_onChange", + "privacy": "public" + }, + { + "kind": "field", + "name": "name", + "privacy": "public", + "type": { + "type": "string | undefined" + }, + "default": "undefined", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "field", + "name": "readOnly", + "privacy": "public", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "field", + "name": "label", + "privacy": "public", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "field", + "name": "helpText", + "privacy": "public", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "field", + "name": "modelValue", + "privacy": "public", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "field", + "name": "_ariaLabelledNodes", + "privacy": "public", + "type": { + "type": "HTMLElement[]" + }, + "default": "[]", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "field", + "name": "_ariaDescribedNodes", + "privacy": "public", + "type": { + "type": "HTMLElement[]" + }, + "default": "[]", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "field", + "name": "_repropagationRole", + "privacy": "public", + "type": { + "type": "'child'|'choice-group'|'fieldset'" + }, + "default": "'child'", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "field", + "name": "_isRepropagationEndpoint", + "privacy": "public", + "default": "false", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "field", + "name": "fieldName", + "privacy": "public", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "field", + "name": "slots", + "privacy": "public", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "field", + "name": "_inputNode", + "privacy": "public", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "field", + "name": "_labelNode", + "privacy": "public", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "field", + "name": "_helpTextNode", + "privacy": "public", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "field", + "name": "_feedbackNode", + "privacy": "public", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "connectedCallback", + "privacy": "public", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "disconnectedCallback", + "privacy": "public", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "updated", + "privacy": "public", + "parameters": [ + { + "name": "changedProperties", + "type": { + "type": "PropertyValues " + } + } + ], + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "_triggerInitialModelValueChangedEvent", + "privacy": "public", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "_enhanceLightDomClasses", + "privacy": "public", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "_enhanceLightDomA11y", + "privacy": "public", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "_enhanceLightDomA11yForAdditionalSlots", + "privacy": "public", + "description": "Enhances additional slots(prefix, suffix, before, after) defined by developer.\n\nWhen boolean attribute data-label or data-description is found,\nthe slot element will be connected to the input via aria-labelledby or aria-describedby", + "parameters": [ + { + "name": "additionalSlots", + "type": { + "type": "string[]" + }, + "default": "['prefix', 'suffix', 'before', 'after']" + } + ], + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "__reflectAriaAttr", + "privacy": "public", + "description": "Will handle help text, validation feedback and character counter,\nprefix/suffix/before/after (if they contain data-description flag attr).\nAlso, contents of id references that will be put in the ._ariaDescribedby property\nfrom an external context, will be read by a screen reader.", + "parameters": [ + { + "name": "attrName", + "type": { + "type": "string" + } + }, + { + "name": "nodes", + "type": { + "type": "HTMLElement[]" + } + }, + { + "name": "reorder", + "type": { + "type": "boolean|undefined" + } + } + ], + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "render", + "privacy": "public", + "description": "Default Render Result:\n
\n
\n\n
\n\n\n\n
\n
\n
\n
\n\n
\n
\n
\n\n
\n
\n\n
\n
\n\n
\n
\n
\n\n
\n
\n
\n\n
\n
", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "_groupOneTemplate", + "privacy": "public", + "return": { + "type": { + "type": "TemplateResult" + } + }, + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "_groupTwoTemplate", + "privacy": "public", + "return": { + "type": { + "type": "TemplateResult" + } + }, + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "_labelTemplate", + "privacy": "public", + "return": { + "type": { + "type": "TemplateResult" + } + }, + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "_helpTextTemplate", + "privacy": "public", + "return": { + "type": { + "type": "TemplateResult" + } + }, + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "_inputGroupTemplate", + "privacy": "public", + "return": { + "type": { + "type": "TemplateResult" + } + }, + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "_inputGroupBeforeTemplate", + "privacy": "public", + "return": { + "type": { + "type": "TemplateResult" + } + }, + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "_inputGroupPrefixTemplate", + "privacy": "public", + "return": { + "type": { + "type": "TemplateResult | nothing" + } + }, + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "_inputGroupInputTemplate", + "privacy": "public", + "return": { + "type": { + "type": "TemplateResult" + } + }, + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "_inputGroupSuffixTemplate", + "privacy": "public", + "return": { + "type": { + "type": "TemplateResult | nothing" + } + }, + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "_inputGroupAfterTemplate", + "privacy": "public", + "return": { + "type": { + "type": "TemplateResult" + } + }, + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "_feedbackTemplate", + "privacy": "public", + "return": { + "type": { + "type": "TemplateResult" + } + }, + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "_isEmpty", + "privacy": "public", + "return": { + "type": { + "type": "boolean" + } + }, + "parameters": [ + { + "name": "modelValue", + "type": { + "type": "?" + }, + "default": "this.modelValue" + } + ], + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "_getAriaDescriptionElements", + "privacy": "public", + "return": { + "type": { + "type": "Array." + } + }, + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "addToAriaLabelledBy", + "privacy": "public", + "description": "Meant for Application Developers wanting to add to aria-labelledby attribute.", + "parameters": [ + { + "name": "element", + "type": { + "type": "HTMLElement" + } + }, + { + "name": "customConfig", + "type": { + "type": "{idPrefix?:string; reorder?: boolean}" + }, + "default": "{}" + } + ], + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "addToAriaDescribedBy", + "privacy": "public", + "description": "Meant for Application Developers wanting to add to aria-describedby attribute.", + "parameters": [ + { + "name": "element", + "type": { + "type": "HTMLElement" + } + }, + { + "name": "customConfig", + "type": { + "type": "{idPrefix?:string; reorder?: boolean}" + }, + "default": "{}" + } + ], + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "__getDirectSlotChild", + "privacy": "public", + "return": { + "type": { + "type": "HTMLElement | undefined" + } + }, + "parameters": [ + { + "name": "slotName", + "type": { + "type": "string" + } + } + ], + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "__dispatchInitialModelValueChangedEvent", + "privacy": "public", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "_onBeforeRepropagateChildrenValues", + "privacy": "public", + "parameters": [ + { + "name": "ev", + "type": { + "type": "CustomEvent" + } + } + ], + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "__repropagateChildrenValues", + "privacy": "public", + "parameters": [ + { + "name": "ev", + "type": { + "type": "CustomEvent" + } + } + ], + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "_repropagationCondition", + "privacy": "public", + "description": "TODO: Extend this in choice group so that target is always a choice input and multipleChoice exists.\nThis will fix the types and reduce the need for ignores/expect-errors", + "parameters": [ + { + "name": "target", + "type": { + "type": "EventTarget & ChoiceInputHost" + } + } + ], + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "_onLabelClick", + "privacy": "public", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "field", + "name": "touched", + "privacy": "public", + "default": "false", + "inheritedFrom": { + "name": "InteractionStateMixin", + "module": "./src/InteractionStateMixin.js" + } + }, + { + "kind": "field", + "name": "dirty", + "privacy": "public", + "default": "false", + "inheritedFrom": { + "name": "InteractionStateMixin", + "module": "./src/InteractionStateMixin.js" + } + }, + { + "kind": "field", + "name": "filled", + "privacy": "public", + "default": "false", + "inheritedFrom": { + "name": "InteractionStateMixin", + "module": "./src/InteractionStateMixin.js" + } + }, + { + "kind": "field", + "name": "prefilled", + "privacy": "public", + "default": "false", + "inheritedFrom": { + "name": "InteractionStateMixin", + "module": "./src/InteractionStateMixin.js" + } + }, + { + "kind": "field", + "name": "submitted", + "privacy": "public", + "inheritedFrom": { + "name": "InteractionStateMixin", + "module": "./src/InteractionStateMixin.js" + } + }, + { + "kind": "method", + "name": "requestUpdateInternal", + "privacy": "public", + "parameters": [ + { + "name": "name", + "type": { + "type": "PropertyKey" + } + }, + { + "name": "oldVal", + "type": { + "type": "*" + } + } + ], + "inheritedFrom": { + "name": "InteractionStateMixin", + "module": "./src/InteractionStateMixin.js" + } + }, + { + "kind": "method", + "name": "initInteractionState", + "privacy": "public", + "description": "Evaluations performed on connectedCallback. Since some components can be out of sync\n(due to interdependence on light children that can only be processed\nafter connectedCallback and affect the initial value).\nThis method is exposed, so it can be called after they are initialized themselves.\nSince this method will be called twice in last mentioned scenario, it must stay idempotent.", + "inheritedFrom": { + "name": "InteractionStateMixin", + "module": "./src/InteractionStateMixin.js" + } + }, + { + "kind": "method", + "name": "_iStateOnLeave", + "privacy": "protected", + "description": "Sets touched value to true\nReevaluates prefilled state.\nWhen false, on next interaction, user will start with a clean state.", + "inheritedFrom": { + "name": "InteractionStateMixin", + "module": "./src/InteractionStateMixin.js" + } + }, + { + "kind": "method", + "name": "_iStateOnValueChange", + "privacy": "protected", + "description": "Sets dirty value and validates when already touched or invalid", + "inheritedFrom": { + "name": "InteractionStateMixin", + "module": "./src/InteractionStateMixin.js" + } + }, + { + "kind": "method", + "name": "_onTouchedChanged", + "privacy": "public", + "inheritedFrom": { + "name": "InteractionStateMixin", + "module": "./src/InteractionStateMixin.js" + } + }, + { + "kind": "method", + "name": "_onDirtyChanged", + "privacy": "public", + "inheritedFrom": { + "name": "InteractionStateMixin", + "module": "./src/InteractionStateMixin.js" + } + }, + { + "kind": "method", + "name": "_showFeedbackConditionFor", + "privacy": "public", + "description": "Show the validity feedback when one of the following conditions is met:\n\n- submitted\nIf the form is submitted, always show the error message.\n\n- prefilled\nthe user already filled in something, or the value is prefilled\nwhen the form is initially rendered.\n\n- touched && dirty\nWhen a user starts typing for the first time in a field with for instance `required`\nvalidation, error message should not be shown until a field becomes `touched`\n(a user leaves(blurs) a field).\nWhen a user enters a field without altering the value(making it `dirty`),\nan error message shouldn't be shown either.", + "inheritedFrom": { + "name": "InteractionStateMixin", + "module": "./src/InteractionStateMixin.js" + } + }, + { + "kind": "field", + "name": "focused", + "privacy": "public", + "default": "false", + "inheritedFrom": { + "name": "FocusMixin", + "module": "./src/FocusMixin.js" + } + }, + { + "kind": "method", + "name": "focus", + "privacy": "public", + "inheritedFrom": { + "name": "FocusMixin", + "module": "./src/FocusMixin.js" + } + }, + { + "kind": "method", + "name": "blur", + "privacy": "public", + "inheritedFrom": { + "name": "FocusMixin", + "module": "./src/FocusMixin.js" + } + }, + { + "kind": "method", + "name": "__onFocus", + "privacy": "public", + "inheritedFrom": { + "name": "FocusMixin", + "module": "./src/FocusMixin.js" + } + }, + { + "kind": "method", + "name": "__onBlur", + "privacy": "public", + "inheritedFrom": { + "name": "FocusMixin", + "module": "./src/FocusMixin.js" + } + }, + { + "kind": "method", + "name": "__registerEventsForFocusMixin", + "privacy": "public", + "inheritedFrom": { + "name": "FocusMixin", + "module": "./src/FocusMixin.js" + } + }, + { + "kind": "method", + "name": "__teardownEventsForFocusMixin", + "privacy": "public", + "inheritedFrom": { + "name": "FocusMixin", + "module": "./src/FocusMixin.js" + } + }, + { + "kind": "field", + "name": "formattedValue", + "privacy": "public", + "inheritedFrom": { + "name": "FormatMixin", + "module": "./src/FormatMixin.js" + } + }, + { + "kind": "field", + "name": "serializedValue", + "privacy": "public", + "inheritedFrom": { + "name": "FormatMixin", + "module": "./src/FormatMixin.js" + } + }, + { + "kind": "field", + "name": "formatOn", + "privacy": "public", + "default": "'change'", + "inheritedFrom": { + "name": "FormatMixin", + "module": "./src/FormatMixin.js" + } + }, + { + "kind": "field", + "name": "formatOptions", + "privacy": "public", + "default": "({})", + "inheritedFrom": { + "name": "FormatMixin", + "module": "./src/FormatMixin.js" + } + }, + { + "kind": "method", + "name": "parser", + "privacy": "public", + "description": "Converts formattedValue to modelValue\nFor instance, a localized date to a Date Object", + "return": { + "type": { + "type": "*" + } + }, + "parameters": [ + { + "name": "v", + "type": { + "type": "string" + }, + "description": "formattedValue: the formatted value inside " + }, + { + "name": "opts", + "type": { + "type": "FormatOptions" + } + } + ], + "inheritedFrom": { + "name": "FormatMixin", + "module": "./src/FormatMixin.js" + } + }, + { + "kind": "method", + "name": "formatter", + "privacy": "public", + "description": "Converts modelValue to formattedValue (formattedValue will be synced with\n`._inputNode.value`)\nFor instance, a Date object to a localized date.", + "return": { + "type": { + "type": "string" + } + }, + "parameters": [ + { + "name": "v", + "type": { + "type": "*" + }, + "description": "modelValue: can be an Object, Number, String depending on the\ninput type(date, number, email etc)" + }, + { + "name": "opts", + "type": { + "type": "FormatOptions" + } + } + ], + "inheritedFrom": { + "name": "FormatMixin", + "module": "./src/FormatMixin.js" + } + }, + { + "kind": "method", + "name": "serializer", + "privacy": "public", + "description": "Converts `.modelValue` to `.serializedValue`\nFor instance, a Date object to an iso formatted date string", + "return": { + "type": { + "type": "string" + } + }, + "parameters": [ + { + "name": "v", + "type": { + "type": "?" + }, + "description": "modelValue: can be an Object, Number, String depending on the\ninput type(date, number, email etc)" + } + ], + "inheritedFrom": { + "name": "FormatMixin", + "module": "./src/FormatMixin.js" + } + }, + { + "kind": "method", + "name": "deserializer", + "privacy": "public", + "description": "Converts `LionField.value` to `.modelValue`\nFor instance, an iso formatted date string to a Date object", + "return": { + "type": { + "type": "?" + } + }, + "parameters": [ + { + "name": "v", + "type": { + "type": "?" + }, + "description": "modelValue: can be an Object, Number, String depending on the\ninput type(date, number, email etc)" + } + ], + "inheritedFrom": { + "name": "FormatMixin", + "module": "./src/FormatMixin.js" + } + }, + { + "kind": "method", + "name": "_calculateValues", + "privacy": "public", + "description": "Responsible for storing all representations(modelValue, serializedValue, formattedValue\nand value) of the input value. Prevents infinite loops, so all value observers can be\ntreated like they will only be called once, without indirectly calling other observers.\n(in fact, some are called twice, but the __preventRecursiveTrigger lock prevents the\nsecond call from having effect).", + "parameters": [ + { + "name": "config", + "type": { + "type": "{source:'model'|'serialized'|'formatted'|null}" + }, + "description": "the type of value that triggered this method. It should not be\nset again, so that its observer won't be triggered. Can be:\n'model'|'formatted'|'serialized'." + } + ], + "inheritedFrom": { + "name": "FormatMixin", + "module": "./src/FormatMixin.js" + } + }, + { + "kind": "method", + "name": "__callParser", + "privacy": "public", + "return": { + "type": { + "type": "?" + } + }, + "parameters": [ + { + "name": "value", + "type": { + "type": "string|undefined" + }, + "default": "this.formattedValue" + } + ], + "inheritedFrom": { + "name": "FormatMixin", + "module": "./src/FormatMixin.js" + } + }, + { + "kind": "method", + "name": "__callFormatter", + "privacy": "public", + "return": { + "type": { + "type": "string|undefined" + } + }, + "inheritedFrom": { + "name": "FormatMixin", + "module": "./src/FormatMixin.js" + } + }, + { + "kind": "method", + "name": "_onModelValueChanged", + "privacy": "public", + "description": "Observer Handlers", + "parameters": [ + { + "name": "args", + "type": { + "type": "{ modelValue: unknown; }[]" + } + } + ], + "inheritedFrom": { + "name": "FormatMixin", + "module": "./src/FormatMixin.js" + } + }, + { + "kind": "method", + "name": "_dispatchModelValueChangedEvent", + "privacy": "public", + "parameters": [ + { + "name": "args", + "type": { + "type": "{ modelValue: unknown; }[]" + }, + "description": "This is wrapped in a distinct method, so that parents can control when the changed event\nis fired. For objects, a deep comparison might be needed." + } + ], + "inheritedFrom": { + "name": "FormatMixin", + "module": "./src/FormatMixin.js" + } + }, + { + "kind": "method", + "name": "_syncValueUpwards", + "privacy": "public", + "description": "Synchronization from `._inputNode.value` to `LionField` (flow [2])", + "inheritedFrom": { + "name": "FormatMixin", + "module": "./src/FormatMixin.js" + } + }, + { + "kind": "method", + "name": "_reflectBackFormattedValueToUser", + "privacy": "public", + "description": "Synchronization from `LionField.value` to `._inputNode.value`\n- flow [1] will always be reflected back\n- flow [2] will not be reflected back when this flow was triggered via\n`@user-input-changed` (this will happen later, when `formatOn` condition is met)", + "inheritedFrom": { + "name": "FormatMixin", + "module": "./src/FormatMixin.js" + } + }, + { + "kind": "method", + "name": "_reflectBackOn", + "privacy": "public", + "return": { + "type": { + "type": "boolean" + } + }, + "inheritedFrom": { + "name": "FormatMixin", + "module": "./src/FormatMixin.js" + } + }, + { + "kind": "method", + "name": "_proxyInputEvent", + "privacy": "public", + "inheritedFrom": { + "name": "FormatMixin", + "module": "./src/FormatMixin.js" + } + }, + { + "kind": "method", + "name": "_onUserInputChanged", + "privacy": "public", + "inheritedFrom": { + "name": "FormatMixin", + "module": "./src/FormatMixin.js" + } + } + ], + "tagName": "lion-field" + } + ], + "exports": [ + { + "kind": "js", + "name": "LionField", + "declaration": { + "name": "LionField", + "module": "./src/LionField.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/NativeTextFieldMixin.js", + "declarations": [ + { + "kind": "mixin", + "name": "NativeTextFieldMixin", + "superclass": { + "name": "superclass", + "module": "./src/NativeTextFieldMixin.js" + }, + "members": [ + { + "kind": "field", + "name": "selectionStart", + "privacy": "public" + }, + { + "kind": "field", + "name": "selectionEnd", + "privacy": "public" + }, + { + "kind": "field", + "name": "value", + "privacy": "public" + }, + { + "kind": "method", + "name": "_setValueAndPreserveCaret", + "privacy": "public", + "description": "Restores the cursor to its original position after updating the value.", + "parameters": [ + { + "name": "newValue", + "type": { + "type": "string" + }, + "description": "The value that should be saved." + } + ] + } + ] + }, + { + "kind": "variable", + "name": "NativeTextFieldMixin" + } + ], + "exports": [ + { + "kind": "js", + "name": "NativeTextFieldMixin", + "declaration": { + "name": "NativeTextFieldMixin", + "module": "./src/NativeTextFieldMixin.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./test-helpers/ExampleValidators.js", + "declarations": [ + { + "kind": "class", + "name": "AlwaysInvalid", + "superclass": { + "name": "Validator", + "module": "/src/validate/Validator.js" + }, + "members": [ + { + "kind": "field", + "name": "validatorName", + "static": true, + "privacy": "public" + }, + { + "kind": "method", + "name": "execute", + "privacy": "public" + } + ] + }, + { + "kind": "class", + "name": "AlwaysValid", + "superclass": { + "name": "Validator", + "module": "/src/validate/Validator.js" + }, + "members": [ + { + "kind": "field", + "name": "validatorName", + "static": true, + "privacy": "public" + }, + { + "kind": "method", + "name": "execute", + "privacy": "public", + "return": { + "type": { + "type": "Promise | boolean" + } + } + } + ] + }, + { + "kind": "class", + "name": "AsyncAlwaysValid", + "superclass": { + "name": "AlwaysValid", + "module": "./test-helpers/ExampleValidators.js" + }, + "members": [ + { + "kind": "field", + "name": "async", + "static": true, + "privacy": "public" + }, + { + "kind": "method", + "name": "execute", + "privacy": "public", + "return": { + "type": { + "type": "Promise" + } + } + }, + { + "kind": "field", + "name": "validatorName", + "static": true, + "privacy": "public", + "inheritedFrom": { + "name": "AlwaysValid", + "module": "./test-helpers/ExampleValidators.js" + } + } + ] + }, + { + "kind": "class", + "name": "AsyncAlwaysInvalid", + "superclass": { + "name": "AlwaysValid", + "module": "./test-helpers/ExampleValidators.js" + }, + "members": [ + { + "kind": "field", + "name": "async", + "static": true, + "privacy": "public" + }, + { + "kind": "method", + "name": "execute", + "privacy": "public", + "return": { + "type": { + "type": "Promise" + } + } + }, + { + "kind": "field", + "name": "validatorName", + "static": true, + "privacy": "public", + "inheritedFrom": { + "name": "AlwaysValid", + "module": "./test-helpers/ExampleValidators.js" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "AlwaysInvalid", + "declaration": { + "name": "AlwaysInvalid", + "module": "./test-helpers/ExampleValidators.js" + } + }, + { + "kind": "js", + "name": "AlwaysValid", + "declaration": { + "name": "AlwaysValid", + "module": "./test-helpers/ExampleValidators.js" + } + }, + { + "kind": "js", + "name": "AsyncAlwaysValid", + "declaration": { + "name": "AsyncAlwaysValid", + "module": "./test-helpers/ExampleValidators.js" + } + }, + { + "kind": "js", + "name": "AsyncAlwaysInvalid", + "declaration": { + "name": "AsyncAlwaysInvalid", + "module": "./test-helpers/ExampleValidators.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./types/FocusMixinTypes.d.ts", + "declarations": [ + { + "kind": "class", + "name": "FocusHost", + "members": [ + { + "kind": "field", + "name": "focused", + "privacy": "public", + "type": { + "type": "boolean" + } + }, + { + "kind": "method", + "name": "connectedCallback", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "disconnectedCallback", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "focus", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "blur", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "__onFocus", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "__onBlur", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "__registerEventsForFocusMixin", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "__teardownEventsForFocusMixin", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + } + ] + }, + { + "kind": "function", + "name": "FocusImplementation", + "return": { + "type": { + "type": "T & Constructor & FocusHost & Constructor & typeof FormControlHost" + } + }, + "parameters": [ + { + "name": "superclass", + "type": { + "type": "T" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "FocusHost", + "declaration": { + "name": "FocusHost", + "module": "./types/FocusMixinTypes.d.ts" + } + }, + { + "kind": "js", + "name": "FocusImplementation", + "declaration": { + "name": "FocusImplementation", + "module": "./types/FocusMixinTypes.d.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./types/FormControlMixinTypes.d.ts", + "declarations": [ + { + "kind": "class", + "name": "FormControlHost", + "members": [ + { + "kind": "field", + "name": "readOnly", + "privacy": "public", + "type": { + "type": "boolean" + } + }, + { + "kind": "field", + "name": "name", + "privacy": "public", + "type": { + "type": "string" + } + }, + { + "kind": "field", + "name": "modelValue", + "privacy": "public", + "type": { + "type": "unknown" + } + }, + { + "kind": "field", + "name": "label", + "privacy": "public", + "type": { + "type": "string" + } + }, + { + "kind": "field", + "name": "__label", + "privacy": "public", + "type": { + "type": "string | undefined" + } + }, + { + "kind": "field", + "name": "helpText", + "privacy": "public", + "type": { + "type": "string" + } + }, + { + "kind": "field", + "name": "__helpText", + "privacy": "public", + "type": { + "type": "string | undefined" + } + }, + { + "kind": "field", + "name": "fieldName", + "privacy": "public" + }, + { + "kind": "field", + "name": "__fieldName", + "privacy": "public", + "type": { + "type": "string | undefined" + } + }, + { + "kind": "field", + "name": "slots", + "privacy": "public", + "type": { + "type": "SlotsMap" + } + }, + { + "kind": "field", + "name": "_inputNode", + "privacy": "public", + "type": { + "type": "HTMLElementWithValue" + } + }, + { + "kind": "field", + "name": "_labelNode", + "privacy": "public", + "type": { + "type": "HTMLElement" + } + }, + { + "kind": "field", + "name": "_helpTextNode", + "privacy": "public", + "type": { + "type": "HTMLElement" + } + }, + { + "kind": "field", + "name": "_feedbackNode", + "privacy": "public", + "type": { + "type": "LionValidationFeedback | undefined" + } + }, + { + "kind": "field", + "name": "_inputId", + "privacy": "public", + "type": { + "type": "string" + } + }, + { + "kind": "field", + "name": "_ariaLabelledNodes", + "privacy": "public", + "type": { + "type": "HTMLElement[]" + } + }, + { + "kind": "field", + "name": "_ariaDescribedNodes", + "privacy": "public", + "type": { + "type": "HTMLElement[]" + } + }, + { + "kind": "field", + "name": "_repropagationRole", + "privacy": "public", + "type": { + "type": "'child' | 'choice-group' | 'fieldset'" + } + }, + { + "kind": "field", + "name": "_isRepropagationEndpoint", + "privacy": "public", + "type": { + "type": "boolean" + } + }, + { + "kind": "method", + "name": "connectedCallback", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "updated", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + }, + "parameters": [ + { + "name": "changedProperties", + "type": { + "type": "import('@lion/core').PropertyValues" + } + } + ] + }, + { + "kind": "method", + "name": "render", + "privacy": "public", + "return": { + "type": { + "type": "TemplateResult" + } + } + }, + { + "kind": "method", + "name": "_groupOneTemplate", + "privacy": "public", + "return": { + "type": { + "type": "TemplateResult" + } + } + }, + { + "kind": "method", + "name": "_groupTwoTemplate", + "privacy": "public", + "return": { + "type": { + "type": "TemplateResult" + } + } + }, + { + "kind": "method", + "name": "_labelTemplate", + "privacy": "public", + "return": { + "type": { + "type": "TemplateResult" + } + } + }, + { + "kind": "method", + "name": "_helpTextTemplate", + "privacy": "public", + "return": { + "type": { + "type": "TemplateResult" + } + } + }, + { + "kind": "method", + "name": "_inputGroupTemplate", + "privacy": "public", + "return": { + "type": { + "type": "TemplateResult" + } + } + }, + { + "kind": "method", + "name": "_inputGroupBeforeTemplate", + "privacy": "public", + "return": { + "type": { + "type": "TemplateResult" + } + } + }, + { + "kind": "method", + "name": "_inputGroupPrefixTemplate", + "privacy": "public", + "return": { + "type": { + "type": "TemplateResult | typeof nothing" + } + } + }, + { + "kind": "method", + "name": "_inputGroupInputTemplate", + "privacy": "public", + "return": { + "type": { + "type": "TemplateResult" + } + } + }, + { + "kind": "method", + "name": "_inputGroupSuffixTemplate", + "privacy": "public", + "return": { + "type": { + "type": "TemplateResult | typeof nothing" + } + } + }, + { + "kind": "method", + "name": "_inputGroupAfterTemplate", + "privacy": "public", + "return": { + "type": { + "type": "TemplateResult" + } + } + }, + { + "kind": "method", + "name": "_feedbackTemplate", + "privacy": "public", + "return": { + "type": { + "type": "TemplateResult" + } + } + }, + { + "kind": "method", + "name": "_triggerInitialModelValueChangedEvent", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "_enhanceLightDomClasses", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "_enhanceLightDomA11y", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "_enhanceLightDomA11yForAdditionalSlots", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + }, + "parameters": [ + { + "name": "additionalSlots", + "type": { + "type": "string[]" + } + } + ] + }, + { + "kind": "method", + "name": "__reflectAriaAttr", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + }, + "parameters": [ + { + "name": "attrName", + "type": { + "type": "string" + } + }, + { + "name": "nodes", + "type": { + "type": "HTMLElement[]" + } + }, + { + "name": "reorder", + "type": { + "type": "boolean | undefined" + } + } + ] + }, + { + "kind": "method", + "name": "_isEmpty", + "privacy": "public", + "return": { + "type": { + "type": "boolean" + } + }, + "parameters": [ + { + "name": "modelValue", + "type": { + "type": "unknown" + } + } + ] + }, + { + "kind": "method", + "name": "_getAriaDescriptionElements", + "privacy": "public", + "return": { + "type": { + "type": "HTMLElement[]" + } + } + }, + { + "kind": "method", + "name": "addToAriaLabelledBy", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + }, + "parameters": [ + { + "name": "element", + "type": { + "type": "HTMLElement" + } + }, + { + "name": "customConfig", + "type": { + "type": "{\n idPrefix?: string | undefined;\n reorder?: boolean | undefined;\n }" + } + } + ] + }, + { + "kind": "field", + "name": "__reorderAriaLabelledNodes", + "privacy": "public", + "type": { + "type": "boolean | undefined" + } + }, + { + "kind": "method", + "name": "addToAriaDescribedBy", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + }, + "parameters": [ + { + "name": "element", + "type": { + "type": "HTMLElement" + } + }, + { + "name": "customConfig", + "type": { + "type": "{\n idPrefix?: string | undefined;\n reorder?: boolean | undefined;\n }" + } + } + ] + }, + { + "kind": "field", + "name": "__reorderAriaDescribedNodes", + "privacy": "public", + "type": { + "type": "boolean | undefined" + } + }, + { + "kind": "method", + "name": "__getDirectSlotChild", + "privacy": "public", + "return": { + "type": { + "type": "HTMLElement" + } + }, + "parameters": [ + { + "name": "slotName", + "type": { + "type": "string" + } + } + ] + }, + { + "kind": "method", + "name": "__dispatchInitialModelValueChangedEvent", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "field", + "name": "__repropagateChildrenInitialized", + "privacy": "public", + "type": { + "type": "boolean | undefined" + } + }, + { + "kind": "method", + "name": "_onBeforeRepropagateChildrenValues", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + }, + "parameters": [ + { + "name": "ev", + "type": { + "type": "CustomEvent" + } + } + ] + }, + { + "kind": "method", + "name": "__repropagateChildrenValues", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + }, + "parameters": [ + { + "name": "ev", + "type": { + "type": "CustomEvent" + } + } + ] + } + ] + }, + { + "kind": "function", + "name": "FormControlImplementation", + "return": { + "type": { + "type": "T &\n Constructor &\n typeof FormControlHost &\n Constructor &\n typeof FormRegisteringHost &\n Constructor &\n typeof DisabledHost &\n Constructor &\n typeof SlotHost" + } + }, + "parameters": [ + { + "name": "superclass", + "type": { + "type": "T" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "FormControlHost", + "declaration": { + "name": "FormControlHost", + "module": "./types/FormControlMixinTypes.d.ts" + } + }, + { + "kind": "js", + "name": "FormControlImplementation", + "declaration": { + "name": "FormControlImplementation", + "module": "./types/FormControlMixinTypes.d.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./types/FormatMixinTypes.d.ts", + "declarations": [ + { + "kind": "class", + "name": "FormatHost", + "members": [ + { + "kind": "field", + "name": "formattedValue", + "privacy": "public", + "type": { + "type": "string" + } + }, + { + "kind": "field", + "name": "serializedValue", + "privacy": "public", + "type": { + "type": "string" + } + }, + { + "kind": "field", + "name": "formatOn", + "privacy": "public", + "type": { + "type": "string" + } + }, + { + "kind": "field", + "name": "formatOptions", + "privacy": "public", + "type": { + "type": "FormatNumberOptions" + } + }, + { + "kind": "field", + "name": "__preventRecursiveTrigger", + "privacy": "public", + "type": { + "type": "boolean" + } + }, + { + "kind": "field", + "name": "__isHandlingUserInput", + "privacy": "public", + "type": { + "type": "boolean" + } + }, + { + "kind": "method", + "name": "parser", + "privacy": "public", + "return": { + "type": { + "type": "unknown" + } + }, + "parameters": [ + { + "name": "v", + "type": { + "type": "string" + } + }, + { + "name": "opts", + "type": { + "type": "FormatNumberOptions" + } + } + ] + }, + { + "kind": "method", + "name": "formatter", + "privacy": "public", + "return": { + "type": { + "type": "string" + } + }, + "parameters": [ + { + "name": "v", + "type": { + "type": "unknown" + } + }, + { + "name": "opts", + "type": { + "type": "FormatNumberOptions" + } + } + ] + }, + { + "kind": "method", + "name": "serializer", + "privacy": "public", + "return": { + "type": { + "type": "string" + } + }, + "parameters": [ + { + "name": "v", + "type": { + "type": "unknown" + } + } + ] + }, + { + "kind": "method", + "name": "deserializer", + "privacy": "public", + "return": { + "type": { + "type": "unknown" + } + }, + "parameters": [ + { + "name": "v", + "type": { + "type": "string" + } + } + ] + }, + { + "kind": "field", + "name": "value", + "privacy": "public", + "type": { + "type": "string" + } + }, + { + "kind": "method", + "name": "_calculateValues", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + }, + "parameters": [ + { + "name": "opts", + "type": { + "type": "{ source: 'model' | 'serialized' | 'formatted' | null }" + } + } + ] + }, + { + "kind": "method", + "name": "__callParser", + "privacy": "public", + "return": { + "type": { + "type": "object" + } + }, + "parameters": [ + { + "name": "value", + "type": { + "type": "string | undefined" + } + } + ] + }, + { + "kind": "method", + "name": "__callFormatter", + "privacy": "public", + "return": { + "type": { + "type": "string" + } + } + }, + { + "kind": "method", + "name": "_onModelValueChanged", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + }, + "parameters": [ + { + "name": "arg", + "type": { + "type": "{ modelValue: unknown }" + } + } + ] + }, + { + "kind": "method", + "name": "_dispatchModelValueChangedEvent", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "_syncValueUpwards", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "_reflectBackFormattedValueToUser", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "_reflectBackFormattedValueDebounced", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "_reflectBackOn", + "privacy": "public", + "return": { + "type": { + "type": "boolean" + } + } + }, + { + "kind": "method", + "name": "_proxyInputEvent", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "_onUserInputChanged", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "connectedCallback", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "disconnectedCallback", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + } + ] + }, + { + "kind": "function", + "name": "FormatImplementation", + "return": { + "type": { + "type": "T &\n Constructor &\n FormatHost &\n Constructor &\n typeof ValidateHost &\n Constructor &\n typeof FormControlHost" + } + }, + "parameters": [ + { + "name": "superclass", + "type": { + "type": "T" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "FormatHost", + "declaration": { + "name": "FormatHost", + "module": "./types/FormatMixinTypes.d.ts" + } + }, + { + "kind": "js", + "name": "FormatImplementation", + "declaration": { + "name": "FormatImplementation", + "module": "./types/FormatMixinTypes.d.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./types/InteractionStateMixinTypes.d.ts", + "declarations": [ + { + "kind": "class", + "name": "InteractionStateHost", + "members": [ + { + "kind": "field", + "name": "prefilled", + "privacy": "public", + "type": { + "type": "boolean" + } + }, + { + "kind": "field", + "name": "filled", + "privacy": "public", + "type": { + "type": "boolean" + } + }, + { + "kind": "field", + "name": "touched", + "privacy": "public", + "type": { + "type": "boolean" + } + }, + { + "kind": "field", + "name": "dirty", + "privacy": "public", + "type": { + "type": "boolean" + } + }, + { + "kind": "field", + "name": "submitted", + "privacy": "public", + "type": { + "type": "boolean" + } + }, + { + "kind": "field", + "name": "_leaveEvent", + "privacy": "public", + "type": { + "type": "string" + } + }, + { + "kind": "field", + "name": "_valueChangedEvent", + "privacy": "public", + "type": { + "type": "string" + } + }, + { + "kind": "method", + "name": "connectedCallback", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "disconnectedCallback", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "initInteractionState", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "resetInteractionState", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "_iStateOnLeave", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "_iStateOnValueChange", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "_onTouchedChanged", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "_onDirtyChanged", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + } + ] + }, + { + "kind": "function", + "name": "InteractionStateImplementation", + "return": { + "type": { + "type": "T &\n Constructor &\n typeof InteractionStateHost &\n Constructor &\n typeof FormControlHost" + } + }, + "parameters": [ + { + "name": "superclass", + "type": { + "type": "T" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "InteractionStateHost", + "declaration": { + "name": "InteractionStateHost", + "module": "./types/InteractionStateMixinTypes.d.ts" + } + }, + { + "kind": "js", + "name": "InteractionStateImplementation", + "declaration": { + "name": "InteractionStateImplementation", + "module": "./types/InteractionStateMixinTypes.d.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./types/NativeTextFieldMixinTypes.d.ts", + "declarations": [ + { + "kind": "class", + "name": "NativeTextField", + "superclass": { + "name": "LionField", + "module": "/types/src/LionField.js" + }, + "members": [ + { + "kind": "field", + "name": "_inputNode", + "privacy": "public", + "type": { + "type": "HTMLTextAreaElement | HTMLInputElement" + } + }, + { + "kind": "field", + "name": "name", + "privacy": "public", + "type": { + "type": "string | undefined" + }, + "default": "undefined", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "field", + "name": "readOnly", + "privacy": "public", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "field", + "name": "label", + "privacy": "public", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "field", + "name": "helpText", + "privacy": "public", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "field", + "name": "modelValue", + "privacy": "public", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "field", + "name": "_ariaLabelledNodes", + "privacy": "public", + "type": { + "type": "HTMLElement[]" + }, + "default": "[]", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "field", + "name": "_ariaDescribedNodes", + "privacy": "public", + "type": { + "type": "HTMLElement[]" + }, + "default": "[]", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "field", + "name": "_repropagationRole", + "privacy": "public", + "type": { + "type": "'child'|'choice-group'|'fieldset'" + }, + "default": "'child'", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "field", + "name": "_isRepropagationEndpoint", + "privacy": "public", + "default": "false", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "field", + "name": "fieldName", + "privacy": "public", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "field", + "name": "slots", + "privacy": "public", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "field", + "name": "_labelNode", + "privacy": "public", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "field", + "name": "_helpTextNode", + "privacy": "public", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "field", + "name": "_feedbackNode", + "privacy": "public", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "connectedCallback", + "privacy": "public", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "disconnectedCallback", + "privacy": "public", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "updated", + "privacy": "public", + "parameters": [ + { + "name": "changedProperties", + "type": { + "type": "PropertyValues " + } + } + ], + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "_triggerInitialModelValueChangedEvent", + "privacy": "public", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "_enhanceLightDomClasses", + "privacy": "public", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "_enhanceLightDomA11y", + "privacy": "public", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "_enhanceLightDomA11yForAdditionalSlots", + "privacy": "public", + "description": "Enhances additional slots(prefix, suffix, before, after) defined by developer.\n\nWhen boolean attribute data-label or data-description is found,\nthe slot element will be connected to the input via aria-labelledby or aria-describedby", + "parameters": [ + { + "name": "additionalSlots", + "type": { + "type": "string[]" + }, + "default": "['prefix', 'suffix', 'before', 'after']" + } + ], + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "__reflectAriaAttr", + "privacy": "public", + "description": "Will handle help text, validation feedback and character counter,\nprefix/suffix/before/after (if they contain data-description flag attr).\nAlso, contents of id references that will be put in the ._ariaDescribedby property\nfrom an external context, will be read by a screen reader.", + "parameters": [ + { + "name": "attrName", + "type": { + "type": "string" + } + }, + { + "name": "nodes", + "type": { + "type": "HTMLElement[]" + } + }, + { + "name": "reorder", + "type": { + "type": "boolean|undefined" + } + } + ], + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "render", + "privacy": "public", + "description": "Default Render Result:\n
\n
\n\n
\n\n\n\n
\n
\n
\n
\n\n
\n
\n
\n\n
\n
\n\n
\n
\n\n
\n
\n
\n\n
\n
\n
\n\n
\n
", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "_groupOneTemplate", + "privacy": "public", + "return": { + "type": { + "type": "TemplateResult" + } + }, + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "_groupTwoTemplate", + "privacy": "public", + "return": { + "type": { + "type": "TemplateResult" + } + }, + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "_labelTemplate", + "privacy": "public", + "return": { + "type": { + "type": "TemplateResult" + } + }, + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "_helpTextTemplate", + "privacy": "public", + "return": { + "type": { + "type": "TemplateResult" + } + }, + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "_inputGroupTemplate", + "privacy": "public", + "return": { + "type": { + "type": "TemplateResult" + } + }, + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "_inputGroupBeforeTemplate", + "privacy": "public", + "return": { + "type": { + "type": "TemplateResult" + } + }, + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "_inputGroupPrefixTemplate", + "privacy": "public", + "return": { + "type": { + "type": "TemplateResult | nothing" + } + }, + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "_inputGroupInputTemplate", + "privacy": "public", + "return": { + "type": { + "type": "TemplateResult" + } + }, + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "_inputGroupSuffixTemplate", + "privacy": "public", + "return": { + "type": { + "type": "TemplateResult | nothing" + } + }, + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "_inputGroupAfterTemplate", + "privacy": "public", + "return": { + "type": { + "type": "TemplateResult" + } + }, + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "_feedbackTemplate", + "privacy": "public", + "return": { + "type": { + "type": "TemplateResult" + } + }, + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "_isEmpty", + "privacy": "public", + "return": { + "type": { + "type": "boolean" + } + }, + "parameters": [ + { + "name": "modelValue", + "type": { + "type": "?" + }, + "default": "this.modelValue" + } + ], + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "_getAriaDescriptionElements", + "privacy": "public", + "return": { + "type": { + "type": "Array." + } + }, + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "addToAriaLabelledBy", + "privacy": "public", + "description": "Meant for Application Developers wanting to add to aria-labelledby attribute.", + "parameters": [ + { + "name": "element", + "type": { + "type": "HTMLElement" + } + }, + { + "name": "customConfig", + "type": { + "type": "{idPrefix?:string; reorder?: boolean}" + }, + "default": "{}" + } + ], + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "addToAriaDescribedBy", + "privacy": "public", + "description": "Meant for Application Developers wanting to add to aria-describedby attribute.", + "parameters": [ + { + "name": "element", + "type": { + "type": "HTMLElement" + } + }, + { + "name": "customConfig", + "type": { + "type": "{idPrefix?:string; reorder?: boolean}" + }, + "default": "{}" + } + ], + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "__getDirectSlotChild", + "privacy": "public", + "return": { + "type": { + "type": "HTMLElement | undefined" + } + }, + "parameters": [ + { + "name": "slotName", + "type": { + "type": "string" + } + } + ], + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "__dispatchInitialModelValueChangedEvent", + "privacy": "public", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "_onBeforeRepropagateChildrenValues", + "privacy": "public", + "parameters": [ + { + "name": "ev", + "type": { + "type": "CustomEvent" + } + } + ], + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "__repropagateChildrenValues", + "privacy": "public", + "parameters": [ + { + "name": "ev", + "type": { + "type": "CustomEvent" + } + } + ], + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "_repropagationCondition", + "privacy": "public", + "description": "TODO: Extend this in choice group so that target is always a choice input and multipleChoice exists.\nThis will fix the types and reduce the need for ignores/expect-errors", + "parameters": [ + { + "name": "target", + "type": { + "type": "EventTarget & ChoiceInputHost" + } + } + ], + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "method", + "name": "_onLabelClick", + "privacy": "public", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "kind": "field", + "name": "touched", + "privacy": "public", + "default": "false", + "inheritedFrom": { + "name": "InteractionStateMixin", + "module": "./src/InteractionStateMixin.js" + } + }, + { + "kind": "field", + "name": "dirty", + "privacy": "public", + "default": "false", + "inheritedFrom": { + "name": "InteractionStateMixin", + "module": "./src/InteractionStateMixin.js" + } + }, + { + "kind": "field", + "name": "filled", + "privacy": "public", + "default": "false", + "inheritedFrom": { + "name": "InteractionStateMixin", + "module": "./src/InteractionStateMixin.js" + } + }, + { + "kind": "field", + "name": "prefilled", + "privacy": "public", + "default": "false", + "inheritedFrom": { + "name": "InteractionStateMixin", + "module": "./src/InteractionStateMixin.js" + } + }, + { + "kind": "field", + "name": "submitted", + "privacy": "public", + "inheritedFrom": { + "name": "InteractionStateMixin", + "module": "./src/InteractionStateMixin.js" + } + }, + { + "kind": "method", + "name": "requestUpdateInternal", + "privacy": "public", + "parameters": [ + { + "name": "name", + "type": { + "type": "PropertyKey" + } + }, + { + "name": "oldVal", + "type": { + "type": "*" + } + } + ], + "inheritedFrom": { + "name": "InteractionStateMixin", + "module": "./src/InteractionStateMixin.js" + } + }, + { + "kind": "method", + "name": "initInteractionState", + "privacy": "public", + "description": "Evaluations performed on connectedCallback. Since some components can be out of sync\n(due to interdependence on light children that can only be processed\nafter connectedCallback and affect the initial value).\nThis method is exposed, so it can be called after they are initialized themselves.\nSince this method will be called twice in last mentioned scenario, it must stay idempotent.", + "inheritedFrom": { + "name": "InteractionStateMixin", + "module": "./src/InteractionStateMixin.js" + } + }, + { + "kind": "method", + "name": "_iStateOnLeave", + "privacy": "protected", + "description": "Sets touched value to true\nReevaluates prefilled state.\nWhen false, on next interaction, user will start with a clean state.", + "inheritedFrom": { + "name": "InteractionStateMixin", + "module": "./src/InteractionStateMixin.js" + } + }, + { + "kind": "method", + "name": "_iStateOnValueChange", + "privacy": "protected", + "description": "Sets dirty value and validates when already touched or invalid", + "inheritedFrom": { + "name": "InteractionStateMixin", + "module": "./src/InteractionStateMixin.js" + } + }, + { + "kind": "method", + "name": "resetInteractionState", + "privacy": "public", + "description": "Resets touched and dirty, and recomputes prefilled", + "inheritedFrom": { + "name": "InteractionStateMixin", + "module": "./src/InteractionStateMixin.js" + } + }, + { + "kind": "method", + "name": "_onTouchedChanged", + "privacy": "public", + "inheritedFrom": { + "name": "InteractionStateMixin", + "module": "./src/InteractionStateMixin.js" + } + }, + { + "kind": "method", + "name": "_onDirtyChanged", + "privacy": "public", + "inheritedFrom": { + "name": "InteractionStateMixin", + "module": "./src/InteractionStateMixin.js" + } + }, + { + "kind": "method", + "name": "_showFeedbackConditionFor", + "privacy": "public", + "description": "Show the validity feedback when one of the following conditions is met:\n\n- submitted\nIf the form is submitted, always show the error message.\n\n- prefilled\nthe user already filled in something, or the value is prefilled\nwhen the form is initially rendered.\n\n- touched && dirty\nWhen a user starts typing for the first time in a field with for instance `required`\nvalidation, error message should not be shown until a field becomes `touched`\n(a user leaves(blurs) a field).\nWhen a user enters a field without altering the value(making it `dirty`),\nan error message shouldn't be shown either.", + "inheritedFrom": { + "name": "InteractionStateMixin", + "module": "./src/InteractionStateMixin.js" + } + }, + { + "kind": "field", + "name": "focused", + "privacy": "public", + "default": "false", + "inheritedFrom": { + "name": "FocusMixin", + "module": "./src/FocusMixin.js" + } + }, + { + "kind": "method", + "name": "focus", + "privacy": "public", + "inheritedFrom": { + "name": "FocusMixin", + "module": "./src/FocusMixin.js" + } + }, + { + "kind": "method", + "name": "blur", + "privacy": "public", + "inheritedFrom": { + "name": "FocusMixin", + "module": "./src/FocusMixin.js" + } + }, + { + "kind": "method", + "name": "__onFocus", + "privacy": "public", + "inheritedFrom": { + "name": "FocusMixin", + "module": "./src/FocusMixin.js" + } + }, + { + "kind": "method", + "name": "__onBlur", + "privacy": "public", + "inheritedFrom": { + "name": "FocusMixin", + "module": "./src/FocusMixin.js" + } + }, + { + "kind": "method", + "name": "__registerEventsForFocusMixin", + "privacy": "public", + "inheritedFrom": { + "name": "FocusMixin", + "module": "./src/FocusMixin.js" + } + }, + { + "kind": "method", + "name": "__teardownEventsForFocusMixin", + "privacy": "public", + "inheritedFrom": { + "name": "FocusMixin", + "module": "./src/FocusMixin.js" + } + }, + { + "kind": "field", + "name": "formattedValue", + "privacy": "public", + "inheritedFrom": { + "name": "FormatMixin", + "module": "./src/FormatMixin.js" + } + }, + { + "kind": "field", + "name": "serializedValue", + "privacy": "public", + "inheritedFrom": { + "name": "FormatMixin", + "module": "./src/FormatMixin.js" + } + }, + { + "kind": "field", + "name": "formatOn", + "privacy": "public", + "default": "'change'", + "inheritedFrom": { + "name": "FormatMixin", + "module": "./src/FormatMixin.js" + } + }, + { + "kind": "field", + "name": "formatOptions", + "privacy": "public", + "default": "({})", + "inheritedFrom": { + "name": "FormatMixin", + "module": "./src/FormatMixin.js" + } + }, + { + "kind": "field", + "name": "value", + "privacy": "public", + "inheritedFrom": { + "name": "FormatMixin", + "module": "./src/FormatMixin.js" + } + }, + { + "kind": "method", + "name": "parser", + "privacy": "public", + "description": "Converts formattedValue to modelValue\nFor instance, a localized date to a Date Object", + "return": { + "type": { + "type": "*" + } + }, + "parameters": [ + { + "name": "v", + "type": { + "type": "string" + }, + "description": "formattedValue: the formatted value inside " + }, + { + "name": "opts", + "type": { + "type": "FormatOptions" + } + } + ], + "inheritedFrom": { + "name": "FormatMixin", + "module": "./src/FormatMixin.js" + } + }, + { + "kind": "method", + "name": "formatter", + "privacy": "public", + "description": "Converts modelValue to formattedValue (formattedValue will be synced with\n`._inputNode.value`)\nFor instance, a Date object to a localized date.", + "return": { + "type": { + "type": "string" + } + }, + "parameters": [ + { + "name": "v", + "type": { + "type": "*" + }, + "description": "modelValue: can be an Object, Number, String depending on the\ninput type(date, number, email etc)" + }, + { + "name": "opts", + "type": { + "type": "FormatOptions" + } + } + ], + "inheritedFrom": { + "name": "FormatMixin", + "module": "./src/FormatMixin.js" + } + }, + { + "kind": "method", + "name": "serializer", + "privacy": "public", + "description": "Converts `.modelValue` to `.serializedValue`\nFor instance, a Date object to an iso formatted date string", + "return": { + "type": { + "type": "string" + } + }, + "parameters": [ + { + "name": "v", + "type": { + "type": "?" + }, + "description": "modelValue: can be an Object, Number, String depending on the\ninput type(date, number, email etc)" + } + ], + "inheritedFrom": { + "name": "FormatMixin", + "module": "./src/FormatMixin.js" + } + }, + { + "kind": "method", + "name": "deserializer", + "privacy": "public", + "description": "Converts `LionField.value` to `.modelValue`\nFor instance, an iso formatted date string to a Date object", + "return": { + "type": { + "type": "?" + } + }, + "parameters": [ + { + "name": "v", + "type": { + "type": "?" + }, + "description": "modelValue: can be an Object, Number, String depending on the\ninput type(date, number, email etc)" + } + ], + "inheritedFrom": { + "name": "FormatMixin", + "module": "./src/FormatMixin.js" + } + }, + { + "kind": "method", + "name": "_calculateValues", + "privacy": "public", + "description": "Responsible for storing all representations(modelValue, serializedValue, formattedValue\nand value) of the input value. Prevents infinite loops, so all value observers can be\ntreated like they will only be called once, without indirectly calling other observers.\n(in fact, some are called twice, but the __preventRecursiveTrigger lock prevents the\nsecond call from having effect).", + "parameters": [ + { + "name": "config", + "type": { + "type": "{source:'model'|'serialized'|'formatted'|null}" + }, + "description": "the type of value that triggered this method. It should not be\nset again, so that its observer won't be triggered. Can be:\n'model'|'formatted'|'serialized'." + } + ], + "inheritedFrom": { + "name": "FormatMixin", + "module": "./src/FormatMixin.js" + } + }, + { + "kind": "method", + "name": "__callParser", + "privacy": "public", + "return": { + "type": { + "type": "?" + } + }, + "parameters": [ + { + "name": "value", + "type": { + "type": "string|undefined" + }, + "default": "this.formattedValue" + } + ], + "inheritedFrom": { + "name": "FormatMixin", + "module": "./src/FormatMixin.js" + } + }, + { + "kind": "method", + "name": "__callFormatter", + "privacy": "public", + "return": { + "type": { + "type": "string|undefined" + } + }, + "inheritedFrom": { + "name": "FormatMixin", + "module": "./src/FormatMixin.js" + } + }, + { + "kind": "method", + "name": "_onModelValueChanged", + "privacy": "public", + "description": "Observer Handlers", + "parameters": [ + { + "name": "args", + "type": { + "type": "{ modelValue: unknown; }[]" + } + } + ], + "inheritedFrom": { + "name": "FormatMixin", + "module": "./src/FormatMixin.js" + } + }, + { + "kind": "method", + "name": "_dispatchModelValueChangedEvent", + "privacy": "public", + "parameters": [ + { + "name": "args", + "type": { + "type": "{ modelValue: unknown; }[]" + }, + "description": "This is wrapped in a distinct method, so that parents can control when the changed event\nis fired. For objects, a deep comparison might be needed." + } + ], + "inheritedFrom": { + "name": "FormatMixin", + "module": "./src/FormatMixin.js" + } + }, + { + "kind": "method", + "name": "_syncValueUpwards", + "privacy": "public", + "description": "Synchronization from `._inputNode.value` to `LionField` (flow [2])", + "inheritedFrom": { + "name": "FormatMixin", + "module": "./src/FormatMixin.js" + } + }, + { + "kind": "method", + "name": "_reflectBackFormattedValueToUser", + "privacy": "public", + "description": "Synchronization from `LionField.value` to `._inputNode.value`\n- flow [1] will always be reflected back\n- flow [2] will not be reflected back when this flow was triggered via\n`@user-input-changed` (this will happen later, when `formatOn` condition is met)", + "inheritedFrom": { + "name": "FormatMixin", + "module": "./src/FormatMixin.js" + } + }, + { + "kind": "method", + "name": "_reflectBackOn", + "privacy": "public", + "return": { + "type": { + "type": "boolean" + } + }, + "inheritedFrom": { + "name": "FormatMixin", + "module": "./src/FormatMixin.js" + } + }, + { + "kind": "method", + "name": "_proxyInputEvent", + "privacy": "public", + "inheritedFrom": { + "name": "FormatMixin", + "module": "./src/FormatMixin.js" + } + }, + { + "kind": "method", + "name": "_onUserInputChanged", + "privacy": "public", + "inheritedFrom": { + "name": "FormatMixin", + "module": "./src/FormatMixin.js" + } + }, + { + "kind": "field", + "name": "autocomplete", + "privacy": "public", + "type": { + "type": "string | undefined" + }, + "default": "undefined", + "inheritedFrom": { + "name": "LionField", + "module": "./src/LionField.js" + } + }, + { + "kind": "method", + "name": "reset", + "privacy": "public", + "inheritedFrom": { + "name": "LionField", + "module": "./src/LionField.js" + } + }, + { + "kind": "method", + "name": "clear", + "privacy": "public", + "description": "Clears modelValue.\nInteraction states are not cleared (use resetInteractionState for this)", + "inheritedFrom": { + "name": "LionField", + "module": "./src/LionField.js" + } + }, + { + "kind": "method", + "name": "_onChange", + "privacy": "public", + "inheritedFrom": { + "name": "LionField", + "module": "./src/LionField.js" + } + } + ], + "attributes": [ + { + "name": "name", + "fieldName": "name", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "name": "readonly", + "fieldName": "readOnly", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "name": "label", + "fieldName": "label", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "name": "help-text", + "fieldName": "helpText", + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "name": "touched", + "fieldName": "touched", + "inheritedFrom": { + "name": "InteractionStateMixin", + "module": "./src/InteractionStateMixin.js" + } + }, + { + "name": "dirty", + "fieldName": "dirty", + "inheritedFrom": { + "name": "InteractionStateMixin", + "module": "./src/InteractionStateMixin.js" + } + }, + { + "name": "filled", + "fieldName": "filled", + "inheritedFrom": { + "name": "InteractionStateMixin", + "module": "./src/InteractionStateMixin.js" + } + }, + { + "name": "focused", + "fieldName": "focused", + "inheritedFrom": { + "name": "FocusMixin", + "module": "./src/FocusMixin.js" + } + }, + { + "name": "autocomplete", + "fieldName": "autocomplete", + "inheritedFrom": { + "name": "LionField", + "module": "./src/LionField.js" + } + }, + { + "name": "value", + "fieldName": "value", + "inheritedFrom": { + "name": "LionField", + "module": "./src/LionField.js" + } + } + ], + "events": [ + { + "name": "form-element-name-changed", + "type": { + "type": "CustomEvent" + }, + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "name": "model-value-changed", + "type": { + "type": "CustomEvent" + }, + "inheritedFrom": { + "name": "FormControlMixin", + "module": "./src/FormControlMixin.js" + } + }, + { + "name": "touched-changed", + "type": { + "type": "CustomEvent" + }, + "inheritedFrom": { + "name": "InteractionStateMixin", + "module": "./src/InteractionStateMixin.js" + } + }, + { + "name": "dirty-changed", + "type": { + "type": "CustomEvent" + }, + "inheritedFrom": { + "name": "InteractionStateMixin", + "module": "./src/InteractionStateMixin.js" + } + }, + { + "name": "focus", + "type": { + "type": "Event" + }, + "inheritedFrom": { + "name": "FocusMixin", + "module": "./src/FocusMixin.js" + } + }, + { + "name": "blur", + "type": { + "type": "Event" + }, + "inheritedFrom": { + "name": "FocusMixin", + "module": "./src/FocusMixin.js" + } + }, + { + "name": "focusin", + "type": { + "type": "Event" + }, + "inheritedFrom": { + "name": "FocusMixin", + "module": "./src/FocusMixin.js" + } + }, + { + "name": "focusout", + "type": { + "type": "Event" + }, + "inheritedFrom": { + "name": "FocusMixin", + "module": "./src/FocusMixin.js" + } + }, + { + "name": "user-input-changed", + "type": { + "type": "CustomEvent" + }, + "inheritedFrom": { + "name": "FormatMixin", + "module": "./src/FormatMixin.js" + } + } + ] + }, + { + "kind": "class", + "name": "NativeTextFieldHost", + "members": [ + { + "kind": "field", + "name": "selectionStart", + "privacy": "public", + "type": { + "type": "number" + } + }, + { + "kind": "field", + "name": "selectionEnd", + "privacy": "public", + "type": { + "type": "number" + } + } + ] + }, + { + "kind": "function", + "name": "NativeTextFieldImplementation", + "return": { + "type": { + "type": "T & Constructor & NativeTextFieldHost & typeof NativeTextField" + } + }, + "parameters": [ + { + "name": "superclass", + "type": { + "type": "T" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "NativeTextField", + "declaration": { + "name": "NativeTextField", + "module": "./types/NativeTextFieldMixinTypes.d.ts" + } + }, + { + "kind": "js", + "name": "NativeTextFieldHost", + "declaration": { + "name": "NativeTextFieldHost", + "module": "./types/NativeTextFieldMixinTypes.d.ts" + } + }, + { + "kind": "js", + "name": "NativeTextFieldImplementation", + "declaration": { + "name": "NativeTextFieldImplementation", + "module": "./types/NativeTextFieldMixinTypes.d.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/choice-group/ChoiceGroupMixin.js", + "declarations": [ + { + "kind": "mixin", + "name": "ChoiceGroupMixin", + "mixins": [ + { + "name": "FormRegistrarMixin", + "module": "/src/registration/FormRegistrarMixin.js" + }, + { + "name": "InteractionStateMixin", + "module": "/src/choice-group/InteractionStateMixin.js" + } + ], + "superclass": { + "name": "superclass", + "module": "./src/choice-group/ChoiceGroupMixin.js" + }, + "attributes": [ + { + "name": "multiple-choice", + "fieldName": "multipleChoice" + } + ], + "members": [ + { + "kind": "field", + "name": "multipleChoice", + "privacy": "public", + "default": "false" + }, + { + "kind": "field", + "name": "modelValue", + "privacy": "public" + }, + { + "kind": "field", + "name": "serializedValue", + "privacy": "public" + }, + { + "kind": "field", + "name": "formattedValue", + "privacy": "public" + }, + { + "kind": "method", + "name": "connectedCallback", + "privacy": "public" + }, + { + "kind": "method", + "name": "updated", + "privacy": "public", + "parameters": [ + { + "name": "changedProperties", + "type": { + "type": "PropertyValues" + } + } + ] + }, + { + "kind": "method", + "name": "disconnectedCallback", + "privacy": "public" + }, + { + "kind": "method", + "name": "addFormElement", + "privacy": "public", + "parameters": [ + { + "name": "child", + "type": { + "type": "FormControl" + } + }, + { + "name": "indexToInsertAt", + "type": { + "type": "number" + } + } + ] + }, + { + "kind": "method", + "name": "_triggerInitialModelValueChangedEvent", + "privacy": "public" + }, + { + "kind": "method", + "name": "_getFromAllFormElements", + "privacy": "public", + "parameters": [ + { + "name": "property", + "type": { + "type": "string" + } + }, + { + "name": "filterCondition", + "default": "() => true" + } + ] + }, + { + "kind": "method", + "name": "_throwWhenInvalidChildModelValue", + "privacy": "public", + "parameters": [ + { + "name": "child", + "type": { + "type": "FormControl" + } + } + ] + }, + { + "kind": "method", + "name": "_isEmpty", + "privacy": "public" + }, + { + "kind": "method", + "name": "_checkSingleChoiceElements", + "privacy": "public", + "parameters": [ + { + "name": "ev", + "type": { + "type": "CustomEvent & {target:FormControl}" + } + } + ] + }, + { + "kind": "method", + "name": "_getCheckedElements", + "privacy": "public" + }, + { + "kind": "method", + "name": "_setCheckedElements", + "privacy": "public", + "parameters": [ + { + "name": "value", + "type": { + "type": "string | any[]" + } + }, + { + "name": "check", + "type": { + "type": "Function" + } + } + ] + }, + { + "kind": "method", + "name": "__setChoiceGroupTouched", + "privacy": "public" + }, + { + "kind": "method", + "name": "_onBeforeRepropagateChildrenValues", + "privacy": "public", + "parameters": [ + { + "name": "ev", + "type": { + "type": "CustomEvent" + } + } + ] + } + ] + }, + { + "kind": "variable", + "name": "ChoiceGroupMixin" + } + ], + "exports": [ + { + "kind": "js", + "name": "ChoiceGroupMixin", + "declaration": { + "name": "ChoiceGroupMixin", + "module": "./src/choice-group/ChoiceGroupMixin.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/choice-group/ChoiceInputMixin.js", + "declarations": [ + { + "kind": "mixin", + "name": "ChoiceInputMixin", + "mixins": [ + { + "name": "FormatMixin", + "module": "/src/choice-group/FormatMixin.js" + } + ], + "superclass": { + "name": "superclass", + "module": "./src/choice-group/ChoiceInputMixin.js" + }, + "attributes": [ + { + "name": "checked", + "fieldName": "checked" + }, + { + "name": "disabled", + "fieldName": "disabled" + }, + { + "name": "modelValue", + "fieldName": "modelValue" + }, + { + "name": "choiceValue", + "fieldName": "choiceValue" + } + ], + "members": [ + { + "kind": "field", + "name": "checked", + "privacy": "public" + }, + { + "kind": "field", + "name": "disabled", + "privacy": "public", + "default": "false" + }, + { + "kind": "field", + "name": "modelValue", + "privacy": "public", + "default": "{ value: '', checked: false }" + }, + { + "kind": "field", + "name": "choiceValue", + "privacy": "public" + }, + { + "kind": "method", + "name": "requestUpdateInternal", + "privacy": "public", + "parameters": [ + { + "name": "name", + "type": { + "type": "string" + } + }, + { + "name": "oldValue", + "type": { + "type": "any" + } + } + ] + }, + { + "kind": "method", + "name": "firstUpdated", + "privacy": "public", + "parameters": [ + { + "name": "changedProperties", + "type": { + "type": "PropertyValues " + } + } + ] + }, + { + "kind": "method", + "name": "updated", + "privacy": "public", + "parameters": [ + { + "name": "changedProperties", + "type": { + "type": "PropertyValues " + } + } + ] + }, + { + "kind": "method", + "name": "render", + "privacy": "public", + "description": "Template for [input=radio] and [input=checkbox] wrappers.\nFor [role=option] extensions, please override completely" + }, + { + "kind": "method", + "name": "_choiceGraphicTemplate", + "privacy": "public" + }, + { + "kind": "method", + "name": "_afterTemplate", + "privacy": "public" + }, + { + "kind": "method", + "name": "connectedCallback", + "privacy": "public" + }, + { + "kind": "method", + "name": "disconnectedCallback", + "privacy": "public" + }, + { + "kind": "method", + "name": "_preventDuplicateLabelClick", + "privacy": "public", + "description": "The native platform fires an event for both the click on the label, and also\nthe redispatched click on the native input element.\nThis results in two click events arriving at the host, but we only want one.\nThis method prevents the duplicate click and ensures the correct isTrusted event\nwith the correct event.target arrives at the host.", + "parameters": [ + { + "name": "ev", + "type": { + "type": "Event" + } + } + ] + }, + { + "kind": "method", + "name": "_toggleChecked", + "privacy": "public", + "parameters": [ + { + "name": "ev", + "type": { + "type": "Event" + } + } + ] + }, + { + "kind": "method", + "name": "_syncNameToParentFormGroup", + "privacy": "public", + "description": "Override this in case of extending ChoiceInputMixin and requiring\nto sync differently with parent form group name\nRight now it checks tag name match where the parent form group tagname\nshould include the child field tagname ('checkbox' is included in 'checkbox-group')" + }, + { + "kind": "method", + "name": "__syncModelCheckedToChecked", + "privacy": "public", + "parameters": [ + { + "name": "checked", + "type": { + "type": "boolean" + } + } + ] + }, + { + "kind": "method", + "name": "__syncCheckedToModel", + "privacy": "public", + "parameters": [ + { + "name": "checked", + "type": { + "type": "any" + } + } + ] + }, + { + "kind": "method", + "name": "__syncCheckedToInputElement", + "privacy": "public" + }, + { + "kind": "method", + "name": "_proxyInputEvent", + "privacy": "public" + }, + { + "kind": "method", + "name": "_onModelValueChanged", + "privacy": "public", + "parameters": [ + { + "name": "newV", + "type": { + "type": "{ modelValue:unknown }" + } + }, + { + "name": "old", + "type": { + "type": "{ modelValue:unknown }" + }, + "optional": true + } + ] + }, + { + "kind": "method", + "name": "parser", + "privacy": "public" + }, + { + "kind": "method", + "name": "formatter", + "privacy": "public", + "parameters": [ + { + "name": "modelValue", + "type": { + "type": "ChoiceInputModelValue " + } + } + ] + }, + { + "kind": "method", + "name": "clear", + "privacy": "public" + }, + { + "kind": "method", + "name": "_isEmpty", + "privacy": "public", + "description": "Used for required validator." + }, + { + "kind": "method", + "name": "_syncValueUpwards", + "privacy": "public" + } + ] + }, + { + "kind": "variable", + "name": "ChoiceInputMixin" + } + ], + "exports": [ + { + "kind": "js", + "name": "ChoiceInputMixin", + "declaration": { + "name": "ChoiceInputMixin", + "module": "./src/choice-group/ChoiceInputMixin.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/form-group/FormElementsHaveNoError.js", + "declarations": [ + { + "kind": "class", + "name": "FormElementsHaveNoError", + "superclass": { + "name": "Validator", + "module": "/src/src/validate/Validator.js" + }, + "members": [ + { + "kind": "field", + "name": "validatorName", + "static": true, + "privacy": "public" + }, + { + "kind": "method", + "name": "execute", + "privacy": "public", + "parameters": [ + { + "name": "value", + "type": { + "type": "unknown" + }, + "optional": true + }, + { + "name": "options", + "type": { + "type": "string | undefined" + }, + "optional": true + }, + { + "name": "config", + "type": { + "type": "{ node: any }" + } + } + ] + }, + { + "kind": "method", + "name": "getMessage", + "privacy": "public", + "static": true + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "FormElementsHaveNoError", + "declaration": { + "name": "FormElementsHaveNoError", + "module": "./src/form-group/FormElementsHaveNoError.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/form-group/FormGroupMixin.js", + "declarations": [ + { + "kind": "mixin", + "name": "FormGroupMixin", + "mixins": [ + { + "name": "FormRegistrarMixin", + "module": "/src/registration/FormRegistrarMixin.js" + }, + { + "name": "FormControlMixin", + "module": "/src/form-group/FormControlMixin.js" + }, + { + "name": "ValidateMixin", + "module": "/src/form-group/validate/ValidateMixin.js" + }, + { + "name": "DisabledMixin", + "package": "@lion/core/src/DisabledMixin.js" + }, + { + "name": "SlotMixin", + "package": "@lion/core" + } + ], + "superclass": { + "name": "superclass", + "module": "./src/form-group/FormGroupMixin.js" + }, + "attributes": [ + { + "name": "submitted", + "fieldName": "submitted" + }, + { + "name": "focused", + "fieldName": "focused" + }, + { + "name": "dirty", + "fieldName": "dirty" + }, + { + "name": "touched", + "fieldName": "touched" + }, + { + "name": "prefilled", + "fieldName": "prefilled" + } + ], + "members": [ + { + "kind": "field", + "name": "submitted", + "privacy": "public", + "default": "false" + }, + { + "kind": "field", + "name": "focused", + "privacy": "public", + "default": "false" + }, + { + "kind": "field", + "name": "dirty", + "privacy": "public", + "default": "false" + }, + { + "kind": "field", + "name": "touched", + "privacy": "public", + "default": "false" + }, + { + "kind": "field", + "name": "prefilled", + "privacy": "public" + }, + { + "kind": "field", + "name": "_inputNode", + "privacy": "public" + }, + { + "kind": "field", + "name": "modelValue", + "privacy": "public" + }, + { + "kind": "field", + "name": "serializedValue", + "privacy": "public" + }, + { + "kind": "field", + "name": "formattedValue", + "privacy": "public" + }, + { + "kind": "method", + "name": "connectedCallback", + "privacy": "public" + }, + { + "kind": "method", + "name": "disconnectedCallback", + "privacy": "public" + }, + { + "kind": "method", + "name": "__initInteractionStates", + "privacy": "public" + }, + { + "kind": "method", + "name": "_triggerInitialModelValueChangedEvent", + "privacy": "public" + }, + { + "kind": "method", + "name": "updated", + "privacy": "public", + "parameters": [ + { + "name": "changedProperties", + "type": { + "type": "PropertyValues " + } + } + ] + }, + { + "kind": "method", + "name": "__setupOutsideClickHandling", + "privacy": "public" + }, + { + "kind": "method", + "name": "_checkForOutsideClick", + "privacy": "public", + "parameters": [ + { + "name": "event", + "type": { + "type": "Event" + } + } + ] + }, + { + "kind": "method", + "name": "__requestChildrenToBeDisabled", + "privacy": "public" + }, + { + "kind": "method", + "name": "__retractRequestChildrenToBeDisabled", + "privacy": "public" + }, + { + "kind": "method", + "name": "_inputGroupTemplate", + "privacy": "public" + }, + { + "kind": "method", + "name": "submitGroup", + "privacy": "public" + }, + { + "kind": "method", + "name": "resetGroup", + "privacy": "public" + }, + { + "kind": "method", + "name": "clearGroup", + "privacy": "public" + }, + { + "kind": "method", + "name": "resetInteractionState", + "privacy": "public" + }, + { + "kind": "method", + "name": "_getFromAllFormElements", + "privacy": "public", + "parameters": [ + { + "name": "property", + "type": { + "type": "string" + } + }, + { + "name": "filterFn", + "default": "(/** @type {FormControl} */ el) => !el.disabled" + } + ] + }, + { + "kind": "method", + "name": "_setValueForAllFormElements", + "privacy": "public", + "parameters": [ + { + "name": "property", + "type": { + "type": "string | number" + } + }, + { + "name": "value", + "type": { + "type": "any" + } + } + ] + }, + { + "kind": "method", + "name": "_setValueMapForAllFormElements", + "privacy": "public", + "parameters": [ + { + "name": "property", + "type": { + "type": "string" + } + }, + { + "name": "values", + "type": { + "type": "{ [x: string]: any; }" + } + } + ] + }, + { + "kind": "method", + "name": "_anyFormElementHas", + "privacy": "public", + "parameters": [ + { + "name": "property", + "type": { + "type": "string" + } + } + ] + }, + { + "kind": "method", + "name": "_anyFormElementHasFeedbackFor", + "privacy": "public", + "parameters": [ + { + "name": "state", + "type": { + "type": "string" + }, + "description": "one of ValidateHost.validationTypes" + } + ] + }, + { + "kind": "method", + "name": "_everyFormElementHas", + "privacy": "public", + "parameters": [ + { + "name": "property", + "type": { + "type": "string" + } + } + ] + }, + { + "kind": "method", + "name": "__onChildValidatePerformed", + "privacy": "public", + "description": "Gets triggered by event 'validate-performed' which enabled us to handle 2 different situations\n- react on modelValue change, which says something about the validity as a whole\n(at least two checkboxes for instance) and nothing about the children's values\n- children validity states have changed, so fieldset needs to update itself based on that", + "parameters": [ + { + "name": "ev", + "type": { + "type": "Event" + } + } + ] + }, + { + "kind": "method", + "name": "_syncFocused", + "privacy": "public" + }, + { + "kind": "method", + "name": "_onFocusOut", + "privacy": "public", + "parameters": [ + { + "name": "ev", + "type": { + "type": "Event" + } + } + ] + }, + { + "kind": "method", + "name": "_syncDirty", + "privacy": "public" + }, + { + "kind": "method", + "name": "__linkChildrenMessagesToParent", + "privacy": "public", + "parameters": [ + { + "name": "child", + "type": { + "type": "FormControl" + } + } + ] + }, + { + "kind": "method", + "name": "addFormElement", + "privacy": "public", + "parameters": [ + { + "name": "child", + "type": { + "type": "FormControl" + } + }, + { + "name": "indexToInsertAt", + "type": { + "type": "number" + } + } + ] + }, + { + "kind": "field", + "name": "_initialModelValue", + "privacy": "public" + }, + { + "kind": "method", + "name": "_addDescriptionElementIdsToField", + "privacy": "public", + "static": true, + "description": "Add aria-describedby to child element(field), so that it points to feedback/help-text of\nparent(fieldset)", + "parameters": [ + { + "name": "field", + "type": { + "type": "FormControl" + }, + "description": "the child: lion-field/lion-input/lion-textarea" + }, + { + "name": "descriptionElements", + "type": { + "type": "HTMLElement[]" + }, + "description": "description elements like feedback and help-text" + } + ] + }, + { + "kind": "method", + "name": "removeFormElement", + "privacy": "public", + "parameters": [ + { + "name": "el", + "type": { + "type": "FormRegisteringHost" + } + } + ] + } + ] + }, + { + "kind": "variable", + "name": "FormGroupMixin" + } + ], + "exports": [ + { + "kind": "js", + "name": "FormGroupMixin", + "declaration": { + "name": "FormGroupMixin", + "module": "./src/form-group/FormGroupMixin.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/registration/FormControlsCollection.js", + "declarations": [ + { + "kind": "class", + "name": "FormControlsCollection", + "superclass": { + "name": "Array", + "module": "./src/registration/FormControlsCollection.js" + }, + "members": [ + { + "kind": "method", + "name": "_keys", + "privacy": "public", + "return": { + "type": { + "type": "string[]" + } + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "FormControlsCollection", + "declaration": { + "name": "FormControlsCollection", + "module": "./src/registration/FormControlsCollection.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/registration/FormRegisteringMixin.js", + "declarations": [ + { + "kind": "variable", + "name": "FormRegisteringMixin" + } + ], + "exports": [ + { + "kind": "js", + "name": "FormRegisteringMixin", + "declaration": { + "name": "FormRegisteringMixin", + "module": "./src/registration/FormRegisteringMixin.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/registration/FormRegistrarMixin.js", + "declarations": [ + { + "kind": "variable", + "name": "FormRegistrarMixin" + } + ], + "exports": [ + { + "kind": "js", + "name": "FormRegistrarMixin", + "declaration": { + "name": "FormRegistrarMixin", + "module": "./src/registration/FormRegistrarMixin.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/registration/FormRegistrarPortalMixin.js", + "declarations": [ + { + "kind": "variable", + "name": "FormRegistrarPortalMixin" + } + ], + "exports": [ + { + "kind": "js", + "name": "FormRegistrarPortalMixin", + "declaration": { + "name": "FormRegistrarPortalMixin", + "module": "./src/registration/FormRegistrarPortalMixin.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/validate/LionValidationFeedback.js", + "declarations": [ + { + "kind": "class", + "name": "LionValidationFeedback", + "superclass": { + "name": "LitElement", + "package": "@lion/core" + }, + "members": [ + { + "kind": "field", + "name": "feedbackData", + "privacy": "public" + }, + { + "kind": "method", + "name": "_messageTemplate", + "privacy": "public", + "parameters": [ + { + "name": "opts", + "type": { + "type": "Object" + } + }, + { + "name": "opts.message", + "type": { + "type": "string | Node | TemplateResult " + }, + "description": "message or feedback node or TemplateResult" + }, + { + "name": "opts.type", + "type": { + "type": "string" + }, + "optional": true + }, + { + "name": "opts.validator", + "type": { + "type": "Validator" + }, + "optional": true + } + ] + } + ], + "tagName": "lion-validation-feedback" + } + ], + "exports": [ + { + "kind": "js", + "name": "LionValidationFeedback", + "declaration": { + "name": "LionValidationFeedback", + "module": "./src/validate/LionValidationFeedback.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/validate/ResultValidator.js", + "declarations": [ + { + "kind": "class", + "name": "ResultValidator", + "superclass": { + "name": "Validator", + "module": "/src/src/validate/Validator.js" + }, + "members": [ + { + "kind": "method", + "name": "executeOnResults", + "privacy": "public", + "return": { + "type": { + "type": "boolean" + } + }, + "parameters": [ + { + "name": "context", + "type": { + "type": "Object" + } + }, + { + "name": "context.regularValidationResult", + "type": { + "type": "Validator[]" + } + }, + { + "name": "context.prevValidationResult", + "type": { + "type": "Validator[] | undefined" + } + }, + { + "name": "context.validators", + "type": { + "type": "Validator[]" + }, + "optional": true + } + ] + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "ResultValidator", + "declaration": { + "name": "ResultValidator", + "module": "./src/validate/ResultValidator.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/validate/Unparseable.js", + "declarations": [ + { + "kind": "class", + "name": "Unparseable", + "members": [ + { + "kind": "method", + "name": "toString", + "privacy": "public" + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "Unparseable", + "declaration": { + "name": "Unparseable", + "module": "./src/validate/Unparseable.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/validate/ValidateMixin.js", + "declarations": [ + { + "kind": "variable", + "name": "ValidateMixinImplementation", + "description": "", + "type": { + "type": "LitElement>" + } + }, + { + "kind": "variable", + "name": "ValidateMixin" + } + ], + "exports": [ + { + "kind": "js", + "name": "ValidateMixinImplementation", + "declaration": { + "name": "ValidateMixinImplementation", + "module": "./src/validate/ValidateMixin.js" + } + }, + { + "kind": "js", + "name": "ValidateMixin", + "declaration": { + "name": "ValidateMixin", + "module": "./src/validate/ValidateMixin.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/validate/Validator.js", + "declarations": [ + { + "kind": "class", + "name": "Validator", + "members": [ + { + "name": "MessageData.modelValue", + "type": { + "type": "*" + }, + "description": "" + }, + { + "name": "MessageData.fieldName", + "type": { + "type": "string" + }, + "description": "" + }, + { + "name": "MessageData.formControl", + "type": { + "type": "HTMLElement" + }, + "description": "" + }, + { + "name": "MessageData.type", + "type": { + "type": "string" + }, + "description": "" + }, + { + "name": "MessageData.config", + "type": { + "type": "Object." + }, + "description": "" + }, + { + "name": "MessageData.name", + "type": { + "type": "string" + }, + "description": "" + }, + { + "kind": "field", + "name": "validatorName", + "static": true, + "privacy": "public" + }, + { + "kind": "field", + "name": "async", + "static": true, + "privacy": "public" + }, + { + "kind": "method", + "name": "execute", + "privacy": "public", + "return": { + "type": { + "type": "Boolean|Promise" + } + }, + "parameters": [ + { + "name": "modelValue", + "type": { + "type": "?" + }, + "optional": true + }, + { + "name": "param", + "type": { + "type": "?" + }, + "optional": true + }, + { + "name": "config", + "type": { + "type": "{}" + }, + "optional": true + } + ] + }, + { + "kind": "field", + "name": "param", + "privacy": "public" + }, + { + "kind": "field", + "name": "config", + "privacy": "public" + }, + { + "kind": "method", + "name": "_getMessage", + "privacy": "public", + "return": { + "type": { + "type": "Promise" + } + }, + "parameters": [ + { + "name": "data", + "type": { + "type": "MessageData" + }, + "optional": true + } + ] + }, + { + "kind": "method", + "name": "getMessage", + "privacy": "public", + "static": true, + "return": { + "type": { + "type": "Promise" + } + }, + "parameters": [ + { + "name": "data", + "type": { + "type": "MessageData" + }, + "optional": true + } + ] + }, + { + "kind": "method", + "name": "onFormControlConnect", + "privacy": "public", + "parameters": [ + { + "name": "formControl", + "type": { + "type": "HTMLElement" + } + } + ] + }, + { + "kind": "method", + "name": "onFormControlDisconnect", + "privacy": "public", + "parameters": [ + { + "name": "formControl", + "type": { + "type": "HTMLElement" + } + } + ] + }, + { + "kind": "method", + "name": "abortExecution", + "privacy": "public" + }, + { + "kind": "method", + "name": "__fakeExtendsEventTarget", + "privacy": "public" + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "Validator", + "declaration": { + "name": "Validator", + "module": "./src/validate/Validator.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/utils/AsyncQueue.js", + "declarations": [ + { + "kind": "class", + "name": "AsyncQueue", + "members": [ + { + "kind": "method", + "name": "add", + "privacy": "public", + "parameters": [ + { + "name": "task", + "type": { + "type": "function" + } + } + ] + }, + { + "kind": "method", + "name": "__run", + "privacy": "public" + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "AsyncQueue", + "declaration": { + "name": "AsyncQueue", + "module": "./src/utils/AsyncQueue.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/utils/SyncUpdatableMixin.js", + "declarations": [ + { + "kind": "variable", + "name": "SyncUpdatableMixin" + } + ], + "exports": [ + { + "kind": "js", + "name": "SyncUpdatableMixin", + "declaration": { + "name": "SyncUpdatableMixin", + "module": "./src/utils/SyncUpdatableMixin.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/utils/getAriaElementsInRightDomOrder.js", + "declarations": [ + { + "kind": "function", + "name": "getAriaElementsInRightDomOrder", + "return": { + "type": { + "type": "HTMLElement[]" + } + }, + "parameters": [ + { + "name": "descriptionElements", + "type": { + "type": "HTMLElement[]" + }, + "description": "holds references to description or label elements whose\nid should be returned" + }, + { + "name": "opts", + "type": { + "type": "Object" + } + }, + { + "name": "opts.reverse", + "type": { + "type": "boolean" + }, + "optional": true + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "getAriaElementsInRightDomOrder", + "declaration": { + "name": "getAriaElementsInRightDomOrder", + "module": "./src/utils/getAriaElementsInRightDomOrder.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/utils/pascalCase.js", + "declarations": [ + { + "kind": "function", + "name": "pascalCase", + "description": "Return PascalCased version of the camelCased string", + "return": { + "type": { + "type": "string" + } + }, + "parameters": [ + { + "name": "str", + "type": { + "type": "string" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "pascalCase", + "declaration": { + "name": "pascalCase", + "module": "./src/utils/pascalCase.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./types/choice-group/ChoiceGroupMixinTypes.d.ts", + "declarations": [ + { + "kind": "class", + "name": "ChoiceGroupHost", + "members": [ + { + "kind": "field", + "name": "multipleChoice", + "privacy": "public", + "type": { + "type": "boolean" + } + }, + { + "kind": "method", + "name": "connectedCallback", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "disconnectedCallback", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "field", + "name": "modelValue", + "privacy": "public", + "type": { + "type": "any" + } + }, + { + "kind": "field", + "name": "serializedValue", + "privacy": "public", + "type": { + "type": "string" + } + }, + { + "kind": "field", + "name": "formattedValue", + "privacy": "public", + "type": { + "type": "string" + } + }, + { + "kind": "method", + "name": "connectedCallback", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "disconnectedCallback", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "addFormElement", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + }, + "parameters": [ + { + "name": "child", + "type": { + "type": "FormControlHost" + } + }, + { + "name": "indexToInsertAt", + "type": { + "type": "number" + } + } + ] + }, + { + "kind": "method", + "name": "_triggerInitialModelValueChangedEvent", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "_getFromAllFormElements", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + }, + "parameters": [ + { + "name": "property", + "type": { + "type": "string" + } + }, + { + "name": "filterCondition", + "type": { + "type": "Function" + } + } + ] + }, + { + "kind": "method", + "name": "_throwWhenInvalidChildModelValue", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + }, + "parameters": [ + { + "name": "child", + "type": { + "type": "FormControlHost" + } + } + ] + }, + { + "kind": "method", + "name": "_isEmpty", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "_checkSingleChoiceElements", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + }, + "parameters": [ + { + "name": "ev", + "type": { + "type": "Event" + } + } + ] + }, + { + "kind": "method", + "name": "_getCheckedElements", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "_setCheckedElements", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + }, + "parameters": [ + { + "name": "value", + "type": { + "type": "any" + } + }, + { + "name": "check", + "type": { + "type": "boolean" + } + } + ] + }, + { + "kind": "method", + "name": "__setChoiceGroupTouched", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "__delegateNameAttribute", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + }, + "parameters": [ + { + "name": "child", + "type": { + "type": "FormControlHost" + } + } + ] + }, + { + "kind": "method", + "name": "_onBeforeRepropagateChildrenValues", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + }, + "parameters": [ + { + "name": "ev", + "type": { + "type": "Event" + } + } + ] + } + ] + }, + { + "kind": "function", + "name": "ChoiceGroupImplementation", + "return": { + "type": { + "type": "T &\n Constructor &\n ChoiceGroupHost &\n Constructor &\n typeof FormRegistrarHost &\n Constructor &\n typeof InteractionStateHost" + } + }, + "parameters": [ + { + "name": "superclass", + "type": { + "type": "T" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "ChoiceGroupHost", + "declaration": { + "name": "ChoiceGroupHost", + "module": "./types/choice-group/ChoiceGroupMixinTypes.d.ts" + } + }, + { + "kind": "js", + "name": "ChoiceGroupImplementation", + "declaration": { + "name": "ChoiceGroupImplementation", + "module": "./types/choice-group/ChoiceGroupMixinTypes.d.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./types/choice-group/ChoiceInputMixinTypes.d.ts", + "declarations": [ + { + "kind": "class", + "name": "ChoiceInputHost", + "members": [ + { + "kind": "field", + "name": "modelValue", + "privacy": "public", + "type": { + "type": "ChoiceInputModelValue" + } + }, + { + "kind": "field", + "name": "serializedValue", + "privacy": "public", + "type": { + "type": "ChoiceInputSerializedValue" + } + }, + { + "kind": "field", + "name": "checked", + "privacy": "public", + "type": { + "type": "boolean" + } + }, + { + "kind": "field", + "name": "choiceValue", + "privacy": "public", + "type": { + "type": "any" + } + }, + { + "kind": "method", + "name": "requestUpdateInternal", + "privacy": "protected", + "return": { + "type": { + "type": "void" + } + }, + "parameters": [ + { + "name": "name", + "type": { + "type": "string" + } + }, + { + "name": "oldValue", + "type": { + "type": "any" + } + } + ] + }, + { + "kind": "method", + "name": "firstUpdated", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + }, + "parameters": [ + { + "name": "changedProperties", + "type": { + "type": "Map" + } + } + ] + }, + { + "kind": "method", + "name": "updated", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + }, + "parameters": [ + { + "name": "changedProperties", + "type": { + "type": "Map" + } + } + ] + }, + { + "kind": "method", + "name": "render", + "privacy": "public", + "return": { + "type": { + "type": "TemplateResult" + } + } + }, + { + "kind": "method", + "name": "_choiceGraphicTemplate", + "privacy": "public", + "return": { + "type": { + "type": "TemplateResult" + } + } + }, + { + "kind": "method", + "name": "_afterTemplate", + "privacy": "public", + "return": { + "type": { + "type": "TemplateResult" + } + } + }, + { + "kind": "method", + "name": "connectedCallback", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "disconnectedCallback", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "_preventDuplicateLabelClick", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + }, + "parameters": [ + { + "name": "ev", + "type": { + "type": "Event" + } + } + ] + }, + { + "kind": "method", + "name": "_syncNameToParentFormGroup", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "_toggleChecked", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + }, + "parameters": [ + { + "name": "ev", + "type": { + "type": "Event" + } + } + ] + }, + { + "kind": "method", + "name": "__syncModelCheckedToChecked", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + }, + "parameters": [ + { + "name": "checked", + "type": { + "type": "boolean" + } + } + ] + }, + { + "kind": "method", + "name": "__syncCheckedToModel", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + }, + "parameters": [ + { + "name": "checked", + "type": { + "type": "boolean" + } + } + ] + }, + { + "kind": "method", + "name": "__syncCheckedToInputElement", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "field", + "name": "__isHandlingUserInput", + "privacy": "public", + "type": { + "type": "boolean" + } + }, + { + "kind": "method", + "name": "_proxyInputEvent", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "_onModelValueChanged", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + }, + "parameters": [ + { + "name": "newV", + "type": { + "type": "{ modelValue: ChoiceInputModelValue }" + } + }, + { + "name": "oldV", + "type": { + "type": "{ modelValue: ChoiceInputModelValue }" + } + } + ] + }, + { + "kind": "method", + "name": "parser", + "privacy": "public", + "return": { + "type": { + "type": "any" + } + } + }, + { + "kind": "method", + "name": "formatter", + "privacy": "public", + "return": { + "type": { + "type": "string" + } + }, + "parameters": [ + { + "name": "modelValue", + "type": { + "type": "ChoiceInputModelValue" + } + } + ] + }, + { + "kind": "method", + "name": "_isEmpty", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "_syncValueUpwards", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "field", + "name": "type", + "privacy": "public", + "type": { + "type": "string" + } + }, + { + "kind": "field", + "name": "_inputNode", + "privacy": "public", + "type": { + "type": "HTMLElement" + } + } + ] + }, + { + "kind": "function", + "name": "ChoiceInputImplementation", + "return": { + "type": { + "type": "T &\n Constructor &\n ChoiceInputHost &\n Constructor &\n FormatHost &\n HTMLElement" + } + }, + "parameters": [ + { + "name": "superclass", + "type": { + "type": "T" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "ChoiceInputHost", + "declaration": { + "name": "ChoiceInputHost", + "module": "./types/choice-group/ChoiceInputMixinTypes.d.ts" + } + }, + { + "kind": "js", + "name": "ChoiceInputImplementation", + "declaration": { + "name": "ChoiceInputImplementation", + "module": "./types/choice-group/ChoiceInputMixinTypes.d.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./types/form-group/FormGroupMixinTypes.d.ts", + "declarations": [ + { + "kind": "class", + "name": "FormGroupHost", + "members": [ + { + "kind": "method", + "name": "_addDescriptionElementIdsToField", + "privacy": "public", + "static": true, + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "field", + "name": "_inputNode", + "privacy": "public", + "type": { + "type": "HTMLElement" + } + }, + { + "kind": "method", + "name": "submitGroup", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "resetGroup", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "field", + "name": "prefilled", + "privacy": "public", + "type": { + "type": "boolean" + } + }, + { + "kind": "field", + "name": "touched", + "privacy": "public", + "type": { + "type": "boolean" + } + }, + { + "kind": "field", + "name": "dirty", + "privacy": "public", + "type": { + "type": "boolean" + } + }, + { + "kind": "field", + "name": "submitted", + "privacy": "public", + "type": { + "type": "boolean" + } + }, + { + "kind": "field", + "name": "serializedValue", + "privacy": "public", + "type": { + "type": "{ [key: string]: any }" + } + }, + { + "kind": "field", + "name": "modelValue", + "privacy": "public", + "type": { + "type": "{ [x: string]: any }" + } + }, + { + "kind": "field", + "name": "formattedValue", + "privacy": "public", + "type": { + "type": "string" + } + }, + { + "kind": "field", + "name": "children", + "privacy": "public", + "type": { + "type": "Array" + } + }, + { + "kind": "field", + "name": "_initialModelValue", + "privacy": "public", + "type": { + "type": "{ [x: string]: any }" + } + }, + { + "kind": "method", + "name": "_setValueForAllFormElements", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + }, + "parameters": [ + { + "name": "property", + "type": { + "type": "string" + } + }, + { + "name": "value", + "type": { + "type": "any" + } + } + ] + }, + { + "kind": "method", + "name": "resetInteractionState", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "clearGroup", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + } + ] + }, + { + "kind": "function", + "name": "FormGroupImplementation", + "return": { + "type": { + "type": "T &\n Constructor &\n typeof FormGroupHost &\n Constructor &\n typeof FormRegistrarHost &\n Constructor &\n typeof FormControlHost &\n Constructor &\n typeof ValidateHost &\n Constructor &\n typeof DisabledHost &\n Constructor &\n typeof SlotHost" + } + }, + "parameters": [ + { + "name": "superclass", + "type": { + "type": "T" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "FormGroupHost", + "declaration": { + "name": "FormGroupHost", + "module": "./types/form-group/FormGroupMixinTypes.d.ts" + } + }, + { + "kind": "js", + "name": "FormGroupImplementation", + "declaration": { + "name": "FormGroupImplementation", + "module": "./types/form-group/FormGroupMixinTypes.d.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./types/registration/FormRegisteringMixinTypes.d.ts", + "declarations": [ + { + "kind": "class", + "name": "FormRegisteringHost", + "members": [ + { + "kind": "method", + "name": "connectedCallback", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "disconnectedCallback", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "field", + "name": "_parentFormGroup", + "privacy": "public", + "type": { + "type": "FormRegistrarHost" + } + } + ] + }, + { + "kind": "function", + "name": "FormRegisteringImplementation", + "return": { + "type": { + "type": "T & Constructor & typeof FormRegisteringHost" + } + }, + "parameters": [ + { + "name": "superclass", + "type": { + "type": "T" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "FormRegisteringHost", + "declaration": { + "name": "FormRegisteringHost", + "module": "./types/registration/FormRegisteringMixinTypes.d.ts" + } + }, + { + "kind": "js", + "name": "FormRegisteringImplementation", + "declaration": { + "name": "FormRegisteringImplementation", + "module": "./types/registration/FormRegisteringMixinTypes.d.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./types/registration/FormRegistrarMixinTypes.d.ts", + "declarations": [ + { + "kind": "class", + "name": "ElementWithParentFormGroup", + "members": [ + { + "kind": "field", + "name": "_parentFormGroup", + "privacy": "public", + "type": { + "type": "FormRegistrarHost" + } + } + ] + }, + { + "kind": "class", + "name": "FormRegistrarHost", + "members": [ + { + "kind": "field", + "name": "_isFormOrFieldset", + "privacy": "public", + "type": { + "type": "boolean" + } + }, + { + "kind": "field", + "name": "formElements", + "privacy": "public", + "type": { + "type": "FormControlsCollection & { [x: string]: any }" + } + }, + { + "kind": "method", + "name": "addFormElement", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + }, + "parameters": [ + { + "name": "child", + "type": { + "type": "| (FormControlHost & ElementWithParentFormGroup)\n | (FormControlHost & HTMLElement)\n | (HTMLElement & ElementWithParentFormGroup)" + } + }, + { + "name": "indexToInsertAt", + "type": { + "type": "number" + } + } + ] + }, + { + "kind": "method", + "name": "removeFormElement", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + }, + "parameters": [ + { + "name": "child", + "type": { + "type": "FormRegisteringHost" + } + } + ] + }, + { + "kind": "method", + "name": "_onRequestToAddFormElement", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + }, + "parameters": [ + { + "name": "e", + "type": { + "type": "CustomEvent" + } + } + ] + }, + { + "kind": "method", + "name": "isRegisteredFormElement", + "privacy": "public", + "return": { + "type": { + "type": "boolean" + } + }, + "parameters": [ + { + "name": "el", + "type": { + "type": "FormControlHost" + } + } + ] + }, + { + "kind": "field", + "name": "registrationComplete", + "privacy": "public", + "type": { + "type": "Promise" + } + } + ] + }, + { + "kind": "function", + "name": "FormRegistrarImplementation", + "return": { + "type": { + "type": "T &\n Constructor &\n typeof FormRegistrarHost &\n Constructor &\n typeof FormRegisteringHost" + } + }, + "parameters": [ + { + "name": "superclass", + "type": { + "type": "T" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "ElementWithParentFormGroup", + "declaration": { + "name": "ElementWithParentFormGroup", + "module": "./types/registration/FormRegistrarMixinTypes.d.ts" + } + }, + { + "kind": "js", + "name": "FormRegistrarHost", + "declaration": { + "name": "FormRegistrarHost", + "module": "./types/registration/FormRegistrarMixinTypes.d.ts" + } + }, + { + "kind": "js", + "name": "FormRegistrarImplementation", + "declaration": { + "name": "FormRegistrarImplementation", + "module": "./types/registration/FormRegistrarMixinTypes.d.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./types/registration/FormRegistrarPortalMixinTypes.d.ts", + "declarations": [ + { + "kind": "class", + "name": "FormRegistrarPortalHost", + "members": [ + { + "kind": "field", + "name": "registrationTarget", + "privacy": "public", + "type": { + "type": "HTMLElement" + } + }, + { + "kind": "method", + "name": "__redispatchEventForFormRegistrarPortalMixin", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + }, + "parameters": [ + { + "name": "ev", + "type": { + "type": "CustomEvent" + } + } + ] + } + ] + }, + { + "kind": "function", + "name": "FormRegistrarPortalImplementation", + "return": { + "type": { + "type": "T & Constructor & FormRegistrarPortalHost" + } + }, + "parameters": [ + { + "name": "superclass", + "type": { + "type": "T" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "FormRegistrarPortalHost", + "declaration": { + "name": "FormRegistrarPortalHost", + "module": "./types/registration/FormRegistrarPortalMixinTypes.d.ts" + } + }, + { + "kind": "js", + "name": "FormRegistrarPortalImplementation", + "declaration": { + "name": "FormRegistrarPortalImplementation", + "module": "./types/registration/FormRegistrarPortalMixinTypes.d.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./types/utils/SyncUpdatableMixinTypes.d.ts", + "declarations": [ + { + "kind": "class", + "name": "SyncUpdatableHost", + "members": [ + { + "kind": "method", + "name": "__syncUpdatableHasChanged", + "privacy": "public", + "static": true, + "return": { + "type": { + "type": "boolean" + } + }, + "parameters": [ + { + "name": "name", + "type": { + "type": "string" + } + }, + { + "name": "newValue", + "type": { + "type": "any" + } + }, + { + "name": "oldValue", + "type": { + "type": "any" + } + } + ] + }, + { + "kind": "method", + "name": "updateSync", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + }, + "parameters": [ + { + "name": "name", + "type": { + "type": "string" + } + }, + { + "name": "oldValue", + "type": { + "type": "any" + } + } + ] + }, + { + "kind": "method", + "name": "__syncUpdatableInitialize", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "field", + "name": "__SyncUpdatableNamespace", + "privacy": "public", + "type": { + "type": "SyncUpdatableNamespace" + } + }, + { + "kind": "method", + "name": "firstUpdated", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + }, + "parameters": [ + { + "name": "changedProperties", + "type": { + "type": "PropertyValues" + } + } + ] + }, + { + "kind": "method", + "name": "disconnectedCallback", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + } + ] + }, + { + "kind": "function", + "name": "SyncUpdatableImplementation", + "return": { + "type": { + "type": "T & Constructor & typeof SyncUpdatableHost" + } + }, + "parameters": [ + { + "name": "superclass", + "type": { + "type": "T" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "SyncUpdatableHost", + "declaration": { + "name": "SyncUpdatableHost", + "module": "./types/utils/SyncUpdatableMixinTypes.d.ts" + } + }, + { + "kind": "js", + "name": "SyncUpdatableImplementation", + "declaration": { + "name": "SyncUpdatableImplementation", + "module": "./types/utils/SyncUpdatableMixinTypes.d.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./types/validate/ValidateMixinTypes.d.ts", + "declarations": [ + { + "kind": "class", + "name": "ValidateHost", + "members": [ + { + "kind": "field", + "name": "validators", + "privacy": "public", + "type": { + "type": "Validator[]" + } + }, + { + "kind": "field", + "name": "hasFeedbackFor", + "privacy": "public", + "type": { + "type": "string[]" + } + }, + { + "kind": "field", + "name": "shouldShowFeedbackFor", + "privacy": "public", + "type": { + "type": "string[]" + } + }, + { + "kind": "field", + "name": "showsFeedbackFor", + "privacy": "public", + "type": { + "type": "string[]" + } + }, + { + "kind": "field", + "name": "validationStates", + "privacy": "public", + "type": { + "type": "{ [key: string]: { [key: string]: Object } }" + } + }, + { + "kind": "field", + "name": "isPending", + "privacy": "public", + "type": { + "type": "boolean" + } + }, + { + "kind": "field", + "name": "defaultValidators", + "privacy": "public", + "type": { + "type": "Validator[]" + } + }, + { + "kind": "field", + "name": "_visibleMessagesAmount", + "privacy": "public", + "type": { + "type": "number" + } + }, + { + "kind": "field", + "name": "fieldName", + "privacy": "public", + "type": { + "type": "string" + } + }, + { + "kind": "field", + "name": "validationTypes", + "static": true, + "privacy": "public", + "type": { + "type": "string[]" + } + }, + { + "kind": "field", + "name": "slots", + "privacy": "public", + "type": { + "type": "SlotsMap" + } + }, + { + "kind": "field", + "name": "_feedbackNode", + "privacy": "public", + "type": { + "type": "LionValidationFeedback" + } + }, + { + "kind": "field", + "name": "_allValidators", + "privacy": "public", + "type": { + "type": "Validator[]" + } + }, + { + "kind": "field", + "name": "__syncValidationResult", + "privacy": "public", + "type": { + "type": "Validator[]" + } + }, + { + "kind": "field", + "name": "__asyncValidationResult", + "privacy": "public", + "type": { + "type": "Validator[]" + } + }, + { + "kind": "field", + "name": "__validationResult", + "privacy": "public", + "type": { + "type": "Validator[]" + } + }, + { + "kind": "field", + "name": "__prevValidationResult", + "privacy": "public", + "type": { + "type": "Validator[]" + } + }, + { + "kind": "method", + "name": "connectedCallback", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "disconnectedCallback", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "firstUpdated", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + }, + "parameters": [ + { + "name": "changedProperties", + "type": { + "type": "import('@lion/core').PropertyValues" + } + } + ] + }, + { + "kind": "method", + "name": "updateSync", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + }, + "parameters": [ + { + "name": "name", + "type": { + "type": "string" + } + }, + { + "name": "oldValue", + "type": { + "type": "unknown" + } + } + ] + }, + { + "kind": "method", + "name": "updated", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + }, + "parameters": [ + { + "name": "changedProperties", + "type": { + "type": "import('@lion/core').PropertyValues" + } + } + ] + }, + { + "kind": "method", + "name": "validate", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + }, + "parameters": [ + { + "name": "opts", + "type": { + "type": "{ clearCurrentResult?: boolean }" + } + } + ] + }, + { + "kind": "method", + "name": "__storePrevResult", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "__executeValidators", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "field", + "name": "validateComplete", + "privacy": "public", + "type": { + "type": "Promise" + } + }, + { + "kind": "field", + "name": "feedbackComplete", + "privacy": "public", + "type": { + "type": "Promise" + } + }, + { + "kind": "method", + "name": "__validateCompleteResolve", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "__executeSyncValidators", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + }, + "parameters": [ + { + "name": "syncValidators", + "type": { + "type": "Validator[]" + } + }, + { + "name": "value", + "type": { + "type": "unknown" + } + }, + { + "name": "opts", + "type": { + "type": "{ hasAsync: boolean }" + } + } + ] + }, + { + "kind": "method", + "name": "__executeAsyncValidators", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + }, + "parameters": [ + { + "name": "asyncValidators", + "type": { + "type": "Validator[]" + } + }, + { + "name": "value", + "type": { + "type": "unknown" + } + } + ] + }, + { + "kind": "method", + "name": "__executeResultValidators", + "privacy": "public", + "return": { + "type": { + "type": "Validator[]" + } + }, + "parameters": [ + { + "name": "regularValidationResult", + "type": { + "type": "Validator[]" + } + } + ] + }, + { + "kind": "method", + "name": "__finishValidation", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + }, + "parameters": [ + { + "name": "options", + "type": { + "type": "{ source: 'sync' | 'async'; hasAsync?: boolean }" + } + } + ] + }, + { + "kind": "method", + "name": "__clearValidationResults", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "__onValidatorUpdated", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + }, + "parameters": [ + { + "name": "e", + "type": { + "type": "Event | CustomEvent" + } + } + ] + }, + { + "kind": "method", + "name": "__setupValidators", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "__isEmpty", + "privacy": "public", + "return": { + "type": { + "type": "boolean" + } + }, + "parameters": [ + { + "name": "v", + "type": { + "type": "unknown" + } + } + ] + }, + { + "kind": "method", + "name": "__getFeedbackMessages", + "privacy": "public", + "return": { + "type": { + "type": "Promise" + } + }, + "parameters": [ + { + "name": "validators", + "type": { + "type": "Validator[]" + } + } + ] + }, + { + "kind": "method", + "name": "_updateFeedbackComponent", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "_showFeedbackConditionFor", + "privacy": "public", + "return": { + "type": { + "type": "boolean" + } + }, + "parameters": [ + { + "name": "type", + "type": { + "type": "string" + } + } + ] + }, + { + "kind": "method", + "name": "_hasFeedbackVisibleFor", + "privacy": "public", + "return": { + "type": { + "type": "boolean" + } + }, + "parameters": [ + { + "name": "type", + "type": { + "type": "string" + } + } + ] + }, + { + "kind": "method", + "name": "_updateShouldShowFeedbackFor", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "_prioritizeAndFilterFeedback", + "privacy": "public", + "return": { + "type": { + "type": "Validator[]" + } + }, + "parameters": [ + { + "name": "opts", + "type": { + "type": "{ validationResult: Validator[] }" + } + } + ] + } + ] + }, + { + "kind": "function", + "name": "ValidateImplementation", + "return": { + "type": { + "type": "T &\n Constructor &\n typeof ValidateHost &\n Constructor &\n typeof FormControlHost &\n Constructor &\n typeof SyncUpdatableHost &\n Constructor &\n typeof DisabledHost &\n Constructor &\n typeof SlotHost &\n Constructor &\n typeof ScopedElementsHost" + } + }, + "parameters": [ + { + "name": "superclass", + "type": { + "type": "T" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "ValidateHost", + "declaration": { + "name": "ValidateHost", + "module": "./types/validate/ValidateMixinTypes.d.ts" + } + }, + { + "kind": "js", + "name": "ValidateImplementation", + "declaration": { + "name": "ValidateImplementation", + "module": "./types/validate/ValidateMixinTypes.d.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/validate/resultValidators/DefaultSuccess.js", + "declarations": [ + { + "kind": "class", + "name": "DefaultSuccess", + "superclass": { + "name": "ResultValidator", + "module": "/src/validate/resultValidators/ResultValidator.js" + }, + "members": [ + { + "kind": "method", + "name": "executeOnResults", + "privacy": "public", + "return": { + "type": { + "type": "boolean" + } + }, + "parameters": [ + { + "name": "context", + "type": { + "type": "Object" + } + }, + { + "name": "context.regularValidationResult", + "type": { + "type": "Validator[]" + } + }, + { + "name": "context.prevValidationResult", + "type": { + "type": "Validator[]" + } + } + ] + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "DefaultSuccess", + "declaration": { + "name": "DefaultSuccess", + "module": "./src/validate/resultValidators/DefaultSuccess.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/validate/validators/DateValidators.js", + "declarations": [ + { + "kind": "class", + "name": "IsDate", + "superclass": { + "name": "Validator", + "module": "/src/validate/src/validate/Validator.js" + }, + "members": [ + { + "kind": "field", + "name": "validatorName", + "static": true, + "privacy": "public" + }, + { + "kind": "method", + "name": "execute", + "privacy": "public", + "parameters": [ + { + "name": "value", + "type": { + "type": "?" + } + } + ] + } + ] + }, + { + "kind": "class", + "name": "MinDate", + "superclass": { + "name": "Validator", + "module": "/src/validate/src/validate/Validator.js" + }, + "members": [ + { + "kind": "field", + "name": "validatorName", + "static": true, + "privacy": "public" + }, + { + "kind": "method", + "name": "execute", + "privacy": "public", + "parameters": [ + { + "name": "value", + "type": { + "type": "?" + } + }, + { + "name": "min", + "default": "this.param" + } + ] + } + ] + }, + { + "kind": "class", + "name": "MaxDate", + "superclass": { + "name": "Validator", + "module": "/src/validate/src/validate/Validator.js" + }, + "members": [ + { + "kind": "field", + "name": "validatorName", + "static": true, + "privacy": "public" + }, + { + "kind": "method", + "name": "execute", + "privacy": "public", + "parameters": [ + { + "name": "value", + "type": { + "type": "?" + } + }, + { + "name": "max", + "default": "this.param" + } + ] + } + ] + }, + { + "kind": "class", + "name": "MinMaxDate", + "superclass": { + "name": "Validator", + "module": "/src/validate/src/validate/Validator.js" + }, + "members": [ + { + "kind": "field", + "name": "validatorName", + "static": true, + "privacy": "public" + }, + { + "kind": "method", + "name": "execute", + "privacy": "public", + "parameters": [ + { + "name": "value", + "type": { + "type": "?" + } + } + ] + } + ] + }, + { + "kind": "class", + "name": "IsDateDisabled", + "superclass": { + "name": "Validator", + "module": "/src/validate/src/validate/Validator.js" + }, + "members": [ + { + "kind": "field", + "name": "validatorName", + "static": true, + "privacy": "public" + }, + { + "kind": "method", + "name": "execute", + "privacy": "public", + "parameters": [ + { + "name": "value", + "type": { + "type": "?" + } + }, + { + "name": "isDisabledFn", + "default": "this.param" + } + ] + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "IsDate", + "declaration": { + "name": "IsDate", + "module": "./src/validate/validators/DateValidators.js" + } + }, + { + "kind": "js", + "name": "MinDate", + "declaration": { + "name": "MinDate", + "module": "./src/validate/validators/DateValidators.js" + } + }, + { + "kind": "js", + "name": "MaxDate", + "declaration": { + "name": "MaxDate", + "module": "./src/validate/validators/DateValidators.js" + } + }, + { + "kind": "js", + "name": "MinMaxDate", + "declaration": { + "name": "MinMaxDate", + "module": "./src/validate/validators/DateValidators.js" + } + }, + { + "kind": "js", + "name": "IsDateDisabled", + "declaration": { + "name": "IsDateDisabled", + "module": "./src/validate/validators/DateValidators.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/validate/validators/NumberValidators.js", + "declarations": [ + { + "kind": "class", + "name": "IsNumber", + "superclass": { + "name": "Validator", + "module": "/src/validate/src/validate/Validator.js" + }, + "members": [ + { + "kind": "field", + "name": "validatorName", + "static": true, + "privacy": "public" + }, + { + "kind": "method", + "name": "execute", + "privacy": "public", + "parameters": [ + { + "name": "value", + "type": { + "type": "?" + } + } + ] + } + ] + }, + { + "kind": "class", + "name": "MinNumber", + "superclass": { + "name": "Validator", + "module": "/src/validate/src/validate/Validator.js" + }, + "members": [ + { + "kind": "field", + "name": "validatorName", + "static": true, + "privacy": "public" + }, + { + "kind": "method", + "name": "execute", + "privacy": "public", + "parameters": [ + { + "name": "value", + "type": { + "type": "?" + } + }, + { + "name": "min", + "default": "this.param" + } + ] + } + ] + }, + { + "kind": "class", + "name": "MaxNumber", + "superclass": { + "name": "Validator", + "module": "/src/validate/src/validate/Validator.js" + }, + "members": [ + { + "kind": "field", + "name": "validatorName", + "static": true, + "privacy": "public" + }, + { + "kind": "method", + "name": "execute", + "privacy": "public", + "parameters": [ + { + "name": "value", + "type": { + "type": "?" + } + }, + { + "name": "max", + "default": "this.param" + } + ] + } + ] + }, + { + "kind": "class", + "name": "MinMaxNumber", + "superclass": { + "name": "Validator", + "module": "/src/validate/src/validate/Validator.js" + }, + "members": [ + { + "kind": "field", + "name": "validatorName", + "static": true, + "privacy": "public" + }, + { + "kind": "method", + "name": "execute", + "privacy": "public", + "parameters": [ + { + "name": "value", + "type": { + "type": "?" + } + } + ] + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "IsNumber", + "declaration": { + "name": "IsNumber", + "module": "./src/validate/validators/NumberValidators.js" + } + }, + { + "kind": "js", + "name": "MinNumber", + "declaration": { + "name": "MinNumber", + "module": "./src/validate/validators/NumberValidators.js" + } + }, + { + "kind": "js", + "name": "MaxNumber", + "declaration": { + "name": "MaxNumber", + "module": "./src/validate/validators/NumberValidators.js" + } + }, + { + "kind": "js", + "name": "MinMaxNumber", + "declaration": { + "name": "MinMaxNumber", + "module": "./src/validate/validators/NumberValidators.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/validate/validators/Required.js", + "declarations": [ + { + "kind": "class", + "name": "Required", + "superclass": { + "name": "Validator", + "module": "/src/validate/src/validate/Validator.js" + }, + "members": [ + { + "kind": "field", + "name": "validatorName", + "static": true, + "privacy": "public" + }, + { + "kind": "method", + "name": "onFormControlConnect", + "privacy": "public", + "parameters": [ + { + "name": "formControl", + "type": { + "type": "FormControlHost & HTMLElement" + } + } + ] + }, + { + "kind": "method", + "name": "onFormControlDisconnect", + "privacy": "public", + "parameters": [ + { + "name": "formControl", + "type": { + "type": "FormControlHost & HTMLElement" + } + } + ] + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "Required", + "declaration": { + "name": "Required", + "module": "./src/validate/validators/Required.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/validate/validators/StringValidators.js", + "declarations": [ + { + "kind": "class", + "name": "IsString", + "superclass": { + "name": "Validator", + "module": "/src/validate/src/validate/Validator.js" + }, + "members": [ + { + "kind": "field", + "name": "validatorName", + "static": true, + "privacy": "public" + }, + { + "kind": "method", + "name": "execute", + "privacy": "public", + "parameters": [ + { + "name": "value", + "type": { + "type": "?" + } + } + ] + } + ] + }, + { + "kind": "class", + "name": "EqualsLength", + "superclass": { + "name": "Validator", + "module": "/src/validate/src/validate/Validator.js" + }, + "members": [ + { + "kind": "field", + "name": "validatorName", + "static": true, + "privacy": "public" + }, + { + "kind": "method", + "name": "execute", + "privacy": "public", + "parameters": [ + { + "name": "value", + "type": { + "type": "?" + } + }, + { + "name": "length", + "default": "this.param" + } + ] + } + ] + }, + { + "kind": "class", + "name": "MinLength", + "superclass": { + "name": "Validator", + "module": "/src/validate/src/validate/Validator.js" + }, + "members": [ + { + "kind": "field", + "name": "validatorName", + "static": true, + "privacy": "public" + }, + { + "kind": "method", + "name": "execute", + "privacy": "public", + "parameters": [ + { + "name": "value", + "type": { + "type": "?" + } + }, + { + "name": "min", + "default": "this.param" + } + ] + } + ] + }, + { + "kind": "class", + "name": "MaxLength", + "superclass": { + "name": "Validator", + "module": "/src/validate/src/validate/Validator.js" + }, + "members": [ + { + "kind": "field", + "name": "validatorName", + "static": true, + "privacy": "public" + }, + { + "kind": "method", + "name": "execute", + "privacy": "public", + "parameters": [ + { + "name": "value", + "type": { + "type": "?" + } + }, + { + "name": "max", + "default": "this.param" + } + ] + } + ] + }, + { + "kind": "class", + "name": "MinMaxLength", + "superclass": { + "name": "Validator", + "module": "/src/validate/src/validate/Validator.js" + }, + "members": [ + { + "kind": "field", + "name": "validatorName", + "static": true, + "privacy": "public" + }, + { + "kind": "method", + "name": "execute", + "privacy": "public", + "parameters": [ + { + "name": "value", + "type": { + "type": "?" + } + } + ] + } + ] + }, + { + "kind": "class", + "name": "IsEmail", + "superclass": { + "name": "Validator", + "module": "/src/validate/src/validate/Validator.js" + }, + "members": [ + { + "kind": "field", + "name": "validatorName", + "static": true, + "privacy": "public" + }, + { + "kind": "method", + "name": "execute", + "privacy": "public", + "parameters": [ + { + "name": "value", + "type": { + "type": "?" + } + } + ] + } + ] + }, + { + "kind": "class", + "name": "Pattern", + "superclass": { + "name": "Validator", + "module": "/src/validate/src/validate/Validator.js" + }, + "members": [ + { + "kind": "field", + "name": "validatorName", + "static": true, + "privacy": "public" + }, + { + "kind": "method", + "name": "execute", + "privacy": "public", + "parameters": [ + { + "name": "value", + "type": { + "type": "?" + } + }, + { + "name": "pattern", + "default": "this.param" + } + ] + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "IsString", + "declaration": { + "name": "IsString", + "module": "./src/validate/validators/StringValidators.js" + } + }, + { + "kind": "js", + "name": "EqualsLength", + "declaration": { + "name": "EqualsLength", + "module": "./src/validate/validators/StringValidators.js" + } + }, + { + "kind": "js", + "name": "MinLength", + "declaration": { + "name": "MinLength", + "module": "./src/validate/validators/StringValidators.js" + } + }, + { + "kind": "js", + "name": "MaxLength", + "declaration": { + "name": "MaxLength", + "module": "./src/validate/validators/StringValidators.js" + } + }, + { + "kind": "js", + "name": "MinMaxLength", + "declaration": { + "name": "MinMaxLength", + "module": "./src/validate/validators/StringValidators.js" + } + }, + { + "kind": "js", + "name": "IsEmail", + "declaration": { + "name": "IsEmail", + "module": "./src/validate/validators/StringValidators.js" + } + }, + { + "kind": "js", + "name": "Pattern", + "declaration": { + "name": "Pattern", + "module": "./src/validate/validators/StringValidators.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/choice-group/README.md", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "./docs/validate/README.md", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "./docs/validate/system.md", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "./docs/validate/assets/FlowDiagram.md", + "declarations": [], + "exports": [] + } + ] +} diff --git a/packages/form-core/package.json b/packages/form-core/package.json index 0c70e457b..25eb6b4ac 100644 --- a/packages/form-core/package.json +++ b/packages/form-core/package.json @@ -23,6 +23,7 @@ "types" ], "scripts": { + "custom-elements-manifest": "custom-elements-manifest analyze --exclude 'docs/**/*'", "debug": "cd ../../ && npm run debug -- --group form-core", "debug:firefox": "cd ../../ && npm run debug:firefox -- --group form-core", "debug:webkit": "cd ../../ && npm run debug:webkit -- --group form-core", @@ -51,5 +52,6 @@ "./test-suites/*": "./test-suites/*", "./lion-field": "./lion-field.js", "./lion-validation-feedback": "./lion-validation-feedback.js" - } + }, + "customElementsManifest": "custom-elements.json" } diff --git a/packages/form-integrations/custom-elements.json b/packages/form-integrations/custom-elements.json new file mode 100644 index 000000000..ff2b023d6 --- /dev/null +++ b/packages/form-integrations/custom-elements.json @@ -0,0 +1,182 @@ +{ + "schemaVersion": "experimental", + "readme": "", + "modules": [ + { + "kind": "javascript-module", + "path": "./index.js", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "./docs/helper-wc/h-output.js", + "declarations": [ + { + "kind": "class", + "name": "HelperOutput", + "superclass": { + "name": "LitElement", + "package": "@lion/core" + }, + "attributes": [ + { + "name": "field", + "fieldName": "field" + }, + { + "name": "show", + "fieldName": "show" + } + ], + "members": [ + { + "kind": "field", + "name": "field", + "privacy": "public" + }, + { + "kind": "field", + "name": "show", + "privacy": "public" + }, + { + "kind": "method", + "name": "__rerender", + "privacy": "public" + }, + { + "kind": "method", + "name": "__renderProp", + "privacy": "public", + "parameters": [ + { + "name": "p" + } + ] + } + ], + "tagName": "h-output" + } + ], + "exports": [ + { + "kind": "js", + "name": "HelperOutput", + "declaration": { + "name": "HelperOutput", + "module": "./docs/helper-wc/h-output.js" + } + }, + { + "kind": "custom-element-definition", + "name": "h-output", + "declaration": { + "name": "HelperOutput", + "module": "./docs/helper-wc/h-output.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./test/helpers/umbrella-form.js", + "declarations": [ + { + "kind": "class", + "name": "UmbrellaForm", + "superclass": { + "name": "LitElement", + "package": "@lion/core" + }, + "members": [ + { + "kind": "field", + "name": "_lionFormNode", + "privacy": "public" + } + ], + "tagName": "umbrella-form" + } + ], + "exports": [ + { + "kind": "js", + "name": "UmbrellaForm", + "declaration": { + "name": "UmbrellaForm", + "module": "./test/helpers/umbrella-form.js" + } + }, + { + "kind": "custom-element-definition", + "name": "umbrella-form", + "declaration": { + "name": "UmbrellaForm", + "module": "./test/helpers/umbrella-form.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/15-features-overview.md", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "./docs/17-validation-examples.md", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "./docs/20-system-overview.md", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "./docs/25-system-model-value.md", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "./docs/30-system-formatting.md", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "./docs/35-system-interaction-states.md", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "./docs/40-system-creating-a-custom-field.md", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "./docs/50-content-inside-fields.md", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "./docs/60-dialog-integration.md", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "./docs/fieldset-examples.md", + "declarations": [], + "exports": [] + } + ] +} diff --git a/packages/form-integrations/package.json b/packages/form-integrations/package.json index 923ad646b..0d7d7e5e1 100644 --- a/packages/form-integrations/package.json +++ b/packages/form-integrations/package.json @@ -23,6 +23,7 @@ "types" ], "scripts": { + "custom-elements-manifest": "custom-elements-manifest analyze --exclude 'docs/**/*'", "debug": "cd ../../ && npm run debug -- --group form-integrations", "debug:firefox": "cd ../../ && npm run debug:firefox -- --group form-integrations", "debug:webkit": "cd ../../ && npm run debug:webkit -- --group form-integrations", @@ -65,5 +66,6 @@ "publishConfig": { "access": "public" }, - "exports": "./index.js" + "exports": "./index.js", + "customElementsManifest": "custom-elements.json" } diff --git a/packages/form/custom-elements.json b/packages/form/custom-elements.json new file mode 100644 index 000000000..de50b4bec --- /dev/null +++ b/packages/form/custom-elements.json @@ -0,0 +1,138 @@ +{ + "schemaVersion": "experimental", + "readme": "", + "modules": [ + { + "kind": "javascript-module", + "path": "./index.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "LionForm", + "declaration": { + "name": "LionForm", + "module": "./src/LionForm.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./lion-form.js", + "declarations": [], + "exports": [ + { + "kind": "custom-element-definition", + "name": "lion-form", + "declaration": { + "name": "LionForm", + "module": "./src/LionForm.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/LionForm.js", + "declarations": [ + { + "kind": "class", + "name": "LionForm", + "events": [ + { + "name": "submit", + "type": { + "type": "Event" + } + }, + { + "name": "reset", + "type": { + "type": "Event" + } + } + ], + "superclass": { + "name": "LionFieldset", + "package": "@lion/fieldset" + }, + "members": [ + { + "kind": "method", + "name": "connectedCallback", + "privacy": "public" + }, + { + "kind": "method", + "name": "disconnectedCallback", + "privacy": "public" + }, + { + "kind": "field", + "name": "_formNode", + "privacy": "public" + }, + { + "kind": "method", + "name": "submit", + "privacy": "public" + }, + { + "kind": "method", + "name": "_submit", + "privacy": "public", + "parameters": [ + { + "name": "ev", + "type": { + "type": "Event" + } + } + ] + }, + { + "kind": "method", + "name": "reset", + "privacy": "public" + }, + { + "kind": "method", + "name": "_reset", + "privacy": "public", + "parameters": [ + { + "name": "ev", + "type": { + "type": "Event" + } + } + ] + }, + { + "kind": "method", + "name": "__registerEventsForLionForm", + "privacy": "public" + }, + { + "kind": "method", + "name": "__teardownEventsForLionForm", + "privacy": "public" + } + ], + "tagName": "lion-form" + } + ], + "exports": [ + { + "kind": "js", + "name": "LionForm", + "declaration": { + "name": "LionForm", + "module": "./src/LionForm.js" + } + } + ] + } + ] +} diff --git a/packages/form/package.json b/packages/form/package.json index af1680fd9..209a68073 100644 --- a/packages/form/package.json +++ b/packages/form/package.json @@ -23,6 +23,7 @@ "types" ], "scripts": { + "custom-elements-manifest": "custom-elements-manifest analyze --exclude 'docs/**/*'", "debug": "cd ../../ && npm run debug -- --group form", "debug:firefox": "cd ../../ && npm run debug:firefox -- --group form", "debug:webkit": "cd ../../ && npm run debug:webkit -- --group form", @@ -46,5 +47,6 @@ "exports": { ".": "./index.js", "./lion-form": "./lion-form.js" - } + }, + "customElementsManifest": "custom-elements.json" } diff --git a/packages/helpers/custom-elements.json b/packages/helpers/custom-elements.json new file mode 100644 index 000000000..23546878a --- /dev/null +++ b/packages/helpers/custom-elements.json @@ -0,0 +1,322 @@ +{ + "schemaVersion": "experimental", + "readme": "", + "modules": [ + { + "kind": "javascript-module", + "path": "./index.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "renderLitAsNode", + "declaration": { + "name": "renderLitAsNode", + "module": "./renderLitAsNode/src/renderLitAsNode.js" + } + }, + { + "kind": "js", + "name": "sortEachDepth", + "declaration": { + "name": "sortEachDepth", + "module": "./sortEachDepth/src/sortEachDepth.js" + } + }, + { + "kind": "js", + "name": "SbActionLogger", + "declaration": { + "name": "SbActionLogger", + "module": "./sb-action-logger/src/SbActionLogger.js" + } + }, + { + "kind": "js", + "name": "SbLocaleSwitcher", + "declaration": { + "name": "SbLocaleSwitcher", + "module": "./sb-locale-switcher/src/SbLocaleSwitcher.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./sb-action-logger.js", + "declarations": [], + "exports": [ + { + "kind": "custom-element-definition", + "name": "sb-action-logger", + "declaration": { + "name": "SbActionLogger", + "module": "./sb-action-logger/src/SbActionLogger.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./sb-locale-switcher.js", + "declarations": [], + "exports": [ + { + "kind": "custom-element-definition", + "name": "sb-locale-switcher", + "declaration": { + "name": "SbLocaleSwitcher", + "module": "./sb-locale-switcher/src/SbLocaleSwitcher.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./renderLitAsNode/src/renderLitAsNode.js", + "declarations": [ + { + "kind": "variable", + "name": "renderLitAsNode", + "description": "Helper to render a lit TemplateResult as an offline-created DOM node\nMake sure that the top-most element in the template has no siblings,\nas they won't be taken into account. We only return firstElementChild." + } + ], + "exports": [ + { + "kind": "js", + "name": "renderLitAsNode", + "declaration": { + "name": "renderLitAsNode", + "module": "./renderLitAsNode/src/renderLitAsNode.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./sb-action-logger/src/SbActionLogger.js", + "declarations": [ + { + "kind": "class", + "name": "SbActionLogger", + "superclass": { + "name": "LitElement", + "package": "@lion/core" + }, + "attributes": [ + { + "name": "title", + "fieldName": "title" + }, + { + "name": "simple", + "fieldName": "simple" + }, + { + "name": "__logCounter", + "fieldName": "__logCounter" + } + ], + "members": [ + { + "kind": "field", + "name": "title", + "privacy": "public", + "default": "'Action Logger'" + }, + { + "kind": "field", + "name": "simple", + "privacy": "public", + "default": "false" + }, + { + "kind": "field", + "name": "__logCounter", + "privacy": "public", + "default": "0" + }, + { + "kind": "field", + "name": "loggerEl", + "privacy": "public" + }, + { + "kind": "method", + "name": "log", + "privacy": "public", + "description": "Renders the passed content as a node, and appends it to the logger\nOnly supports simple values, will be interpreted to a String\nE.g. an Object will become '[object Object]'", + "parameters": [ + { + "name": "content", + "type": { + "type": "string" + }, + "description": "Content to be logged to the action logger" + } + ] + }, + { + "kind": "method", + "name": "_logTemplate", + "privacy": "public", + "description": "Protected getter that returns the template of a single log", + "return": { + "type": { + "type": "TemplateResult" + } + }, + "parameters": [ + { + "name": "content", + "type": { + "type": "string" + } + } + ] + }, + { + "kind": "method", + "name": "__appendLog", + "privacy": "public", + "parameters": [ + { + "name": "content", + "type": { + "type": "string" + } + } + ] + }, + { + "kind": "method", + "name": "__isConsecutiveDuplicateLog", + "privacy": "public", + "parameters": [ + { + "name": "content", + "type": { + "type": "string" + } + } + ] + }, + { + "kind": "method", + "name": "__handleConsecutiveDuplicateLog", + "privacy": "public" + }, + { + "kind": "method", + "name": "__prependLogCounterElement", + "privacy": "public" + }, + { + "kind": "method", + "name": "__animateCue", + "privacy": "public" + }, + { + "kind": "method", + "name": "__clearLogs", + "privacy": "public" + } + ], + "tagName": "sb-action-logger" + } + ], + "exports": [ + { + "kind": "js", + "name": "SbActionLogger", + "declaration": { + "name": "SbActionLogger", + "module": "./sb-action-logger/src/SbActionLogger.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./sb-locale-switcher/src/SbLocaleSwitcher.js", + "declarations": [ + { + "kind": "class", + "name": "SbLocaleSwitcher", + "superclass": { + "name": "LitElement", + "package": "@lion/core" + }, + "attributes": [ + { + "name": "show-locales", + "fieldName": "showLocales" + } + ], + "members": [ + { + "kind": "field", + "name": "showLocales", + "privacy": "public", + "default": "['en-GB', 'en-US', 'en-AU', 'nl-NL', 'nl-BE']" + }, + { + "kind": "method", + "name": "callback", + "privacy": "public", + "parameters": [ + { + "name": "locale", + "type": { + "type": "string" + } + } + ] + } + ], + "tagName": "sb-locale-switcher" + } + ], + "exports": [ + { + "kind": "js", + "name": "SbLocaleSwitcher", + "declaration": { + "name": "SbLocaleSwitcher", + "module": "./sb-locale-switcher/src/SbLocaleSwitcher.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./sortEachDepth/src/sortEachDepth.js", + "declarations": [ + { + "kind": "function", + "name": "sortEachDepth", + "description": "Sorts each depth level according to the provided array order.", + "parameters": [ + { + "name": "orderPerDepth", + "type": { + "type": "Array.<[]>" + }, + "description": "array of arrays giving the order of each level" + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "sortEachDepth", + "declaration": { + "name": "sortEachDepth", + "module": "./sortEachDepth/src/sortEachDepth.js" + } + } + ] + } + ] +} diff --git a/packages/helpers/package.json b/packages/helpers/package.json index 8c19d2727..b412e9fb7 100644 --- a/packages/helpers/package.json +++ b/packages/helpers/package.json @@ -21,6 +21,7 @@ "sortEachDepth" ], "scripts": { + "custom-elements-manifest": "custom-elements-manifest analyze --exclude 'docs/**/*'", "debug": "cd ../../ && npm run debug -- --group helpers", "debug:firefox": "cd ../../ && npm run debug:firefox -- --group helpers", "debug:webkit": "cd ../../ && npm run debug:webkit -- --group helpers", @@ -47,5 +48,6 @@ ".": "./index.js", "./sb-action-logger": "./sb-action-logger.js", "./sb-locale-switcher": "./sb-locale-switcher.js" - } + }, + "customElementsManifest": "custom-elements.json" } diff --git a/packages/icon/custom-elements.json b/packages/icon/custom-elements.json new file mode 100644 index 000000000..e4f09901e --- /dev/null +++ b/packages/icon/custom-elements.json @@ -0,0 +1,886 @@ +{ + "schemaVersion": "experimental", + "readme": "", + "modules": [ + { + "kind": "javascript-module", + "path": "./index.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "LionIcon", + "declaration": { + "name": "LionIcon", + "module": "./src/LionIcon.js" + } + }, + { + "kind": "js", + "name": "icons", + "declaration": { + "name": "icons", + "module": "./src/icons.js" + } + }, + { + "kind": "js", + "name": "setIcons", + "declaration": { + "name": "setIcons", + "module": "./src/icons.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./lion-icon.js", + "declarations": [], + "exports": [ + { + "kind": "custom-element-definition", + "name": "lion-icon", + "declaration": { + "name": "LionIcon", + "module": "./src/LionIcon.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/IconManager.js", + "declarations": [ + { + "kind": "class", + "name": "IconManager", + "members": [ + { + "kind": "method", + "name": "addIconResolver", + "privacy": "public", + "description": "Adds an icon resolver for the given namespace. An icon resolver is a\nfunction which takes an icon set and an icon name and returns an svg\nicon as a TemplateResult. This function can be sync or async.", + "parameters": [ + { + "name": "namespace", + "type": { + "type": "string" + } + }, + { + "name": "iconResolver", + "type": { + "type": "(iconset: string, icon: string) => TemplateResult | Promise | nothing | Promise " + } + } + ] + }, + { + "kind": "method", + "name": "removeIconResolver", + "privacy": "public", + "description": "Removes an icon resolver for a namespace.", + "parameters": [ + { + "name": "namespace", + "type": { + "type": "string" + } + } + ] + }, + { + "kind": "method", + "name": "resolveIcon", + "privacy": "public", + "description": "Resolves icon for the given parameters. Returns the icon as a svg string.", + "return": { + "type": { + "type": "Promise" + } + }, + "parameters": [ + { + "name": "namespace", + "type": { + "type": "string" + } + }, + { + "name": "iconset", + "type": { + "type": "string" + } + }, + { + "name": "icon", + "type": { + "type": "string" + } + } + ] + }, + { + "kind": "method", + "name": "resolveIconForId", + "privacy": "public", + "description": "Resolves icon for the given icon id. Returns the icon as a svg string.", + "return": { + "type": { + "type": "Promise" + } + }, + "parameters": [ + { + "name": "iconId", + "type": { + "type": "string" + } + } + ] + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "IconManager", + "declaration": { + "name": "IconManager", + "module": "./src/IconManager.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/LionIcon.js", + "declarations": [ + { + "kind": "class", + "name": "LionIcon", + "superclass": { + "name": "LitElement", + "package": "@lion/core" + }, + "members": [ + { + "kind": "field", + "name": "svg", + "privacy": "public" + }, + { + "kind": "field", + "name": "ariaLabel", + "privacy": "public", + "default": "''" + }, + { + "kind": "field", + "name": "iconId", + "privacy": "public", + "default": "''" + }, + { + "kind": "field", + "name": "role", + "privacy": "public", + "default": "'img'" + }, + { + "kind": "method", + "name": "_onLabelChanged", + "privacy": "public" + }, + { + "kind": "method", + "name": "_renderSvg", + "privacy": "public", + "parameters": [ + { + "name": "svgObject", + "type": { + "type": "TemplateResult | nothing" + } + } + ] + }, + { + "kind": "field", + "name": "_iconManager", + "privacy": "public" + }, + { + "kind": "method", + "name": "_onIconIdChanged", + "privacy": "public", + "parameters": [ + { + "name": "prevIconId", + "type": { + "type": "string" + } + } + ] + } + ], + "attributes": [ + { + "name": "aria-label", + "fieldName": "ariaLabel" + }, + { + "name": "icon-id", + "fieldName": "iconId" + }, + { + "name": "role", + "fieldName": "role" + } + ], + "tagName": "lion-icon" + } + ], + "exports": [ + { + "kind": "js", + "name": "LionIcon", + "declaration": { + "name": "LionIcon", + "module": "./src/LionIcon.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/icons.js", + "declarations": [ + { + "kind": "variable", + "name": "icons" + }, + { + "kind": "function", + "name": "setIcons", + "parameters": [ + { + "name": "newIcons" + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "icons", + "declaration": { + "name": "icons", + "module": "./src/icons.js" + } + }, + { + "kind": "js", + "name": "setIcons", + "declaration": { + "name": "setIcons", + "module": "./src/icons.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./test/hammer.svg.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./test/hammer.svg.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./test/heart.svg.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./test/heart.svg.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/icons/iconset-bugs.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "bug01", + "declaration": { + "name": "bug01", + "module": "./docs/icons/iconset-bugs.js" + } + }, + { + "kind": "js", + "name": "bug02", + "declaration": { + "name": "bug02", + "module": "./docs/icons/iconset-bugs.js" + } + }, + { + "kind": "js", + "name": "bug05", + "declaration": { + "name": "bug05", + "module": "./docs/icons/iconset-bugs.js" + } + }, + { + "kind": "js", + "name": "bug06", + "declaration": { + "name": "bug06", + "module": "./docs/icons/iconset-bugs.js" + } + }, + { + "kind": "js", + "name": "bug08", + "declaration": { + "name": "bug08", + "module": "./docs/icons/iconset-bugs.js" + } + }, + { + "kind": "js", + "name": "bug12", + "declaration": { + "name": "bug12", + "module": "./docs/icons/iconset-bugs.js" + } + }, + { + "kind": "js", + "name": "bug19", + "declaration": { + "name": "bug19", + "module": "./docs/icons/iconset-bugs.js" + } + }, + { + "kind": "js", + "name": "bug23", + "declaration": { + "name": "bug23", + "module": "./docs/icons/iconset-bugs.js" + } + }, + { + "kind": "js", + "name": "bug24", + "declaration": { + "name": "bug24", + "module": "./docs/icons/iconset-bugs.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/icons/iconset-misc.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "arrowLeft", + "declaration": { + "name": "arrowLeft", + "module": "./docs/icons/iconset-misc.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/icons/iconset-space.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "alienSpaceship", + "declaration": { + "name": "alienSpaceship", + "module": "./docs/icons/iconset-space.js" + } + }, + { + "kind": "js", + "name": "meteor", + "declaration": { + "name": "meteor", + "module": "./docs/icons/iconset-space.js" + } + }, + { + "kind": "js", + "name": "moonFlag", + "declaration": { + "name": "moonFlag", + "module": "./docs/icons/iconset-space.js" + } + }, + { + "kind": "js", + "name": "moon", + "declaration": { + "name": "moon", + "module": "./docs/icons/iconset-space.js" + } + }, + { + "kind": "js", + "name": "night", + "declaration": { + "name": "night", + "module": "./docs/icons/iconset-space.js" + } + }, + { + "kind": "js", + "name": "orbit", + "declaration": { + "name": "orbit", + "module": "./docs/icons/iconset-space.js" + } + }, + { + "kind": "js", + "name": "planet", + "declaration": { + "name": "planet", + "module": "./docs/icons/iconset-space.js" + } + }, + { + "kind": "js", + "name": "robot", + "declaration": { + "name": "robot", + "module": "./docs/icons/iconset-space.js" + } + }, + { + "kind": "js", + "name": "rocket", + "declaration": { + "name": "rocket", + "module": "./docs/icons/iconset-space.js" + } + }, + { + "kind": "js", + "name": "satellite", + "declaration": { + "name": "satellite", + "module": "./docs/icons/iconset-space.js" + } + }, + { + "kind": "js", + "name": "signal", + "declaration": { + "name": "signal", + "module": "./docs/icons/iconset-space.js" + } + }, + { + "kind": "js", + "name": "spaceHelmet", + "declaration": { + "name": "spaceHelmet", + "module": "./docs/icons/iconset-space.js" + } + }, + { + "kind": "js", + "name": "sun", + "declaration": { + "name": "sun", + "module": "./docs/icons/iconset-space.js" + } + }, + { + "kind": "js", + "name": "telescope", + "declaration": { + "name": "telescope", + "module": "./docs/icons/iconset-space.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/icons/bugs/bug01.svg.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./docs/icons/bugs/bug01.svg.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/icons/bugs/bug02.svg.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./docs/icons/bugs/bug02.svg.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/icons/bugs/bug05.svg.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./docs/icons/bugs/bug05.svg.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/icons/bugs/bug06.svg.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./docs/icons/bugs/bug06.svg.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/icons/bugs/bug08.svg.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./docs/icons/bugs/bug08.svg.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/icons/bugs/bug12.svg.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./docs/icons/bugs/bug12.svg.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/icons/bugs/bug19.svg.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./docs/icons/bugs/bug19.svg.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/icons/bugs/bug23.svg.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./docs/icons/bugs/bug23.svg.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/icons/bugs/bug24.svg.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./docs/icons/bugs/bug24.svg.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/icons/misc/arrowLeft.svg.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./docs/icons/misc/arrowLeft.svg.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/icons/space/aliens-spaceship.svg.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./docs/icons/space/aliens-spaceship.svg.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/icons/space/meteor.svg.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./docs/icons/space/meteor.svg.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/icons/space/moon-flag.svg.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./docs/icons/space/moon-flag.svg.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/icons/space/moon.svg.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./docs/icons/space/moon.svg.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/icons/space/night.svg.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./docs/icons/space/night.svg.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/icons/space/orbit.svg.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./docs/icons/space/orbit.svg.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/icons/space/planet.svg.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./docs/icons/space/planet.svg.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/icons/space/robot.svg.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./docs/icons/space/robot.svg.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/icons/space/rocket.svg.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./docs/icons/space/rocket.svg.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/icons/space/satellite.svg.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./docs/icons/space/satellite.svg.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/icons/space/signal.svg.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./docs/icons/space/signal.svg.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/icons/space/space-helmet.svg.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./docs/icons/space/space-helmet.svg.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/icons/space/sun.svg.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./docs/icons/space/sun.svg.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/icons/space/telescope.svg.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./docs/icons/space/telescope.svg.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/system.md", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./docs/system.md" + } + } + ] + } + ] +} diff --git a/packages/icon/package.json b/packages/icon/package.json index 7809d5b7a..7741da771 100644 --- a/packages/icon/package.json +++ b/packages/icon/package.json @@ -23,6 +23,7 @@ "types" ], "scripts": { + "custom-elements-manifest": "custom-elements-manifest analyze --exclude 'docs/**/*'", "debug": "cd ../../ && npm run debug -- --group icon", "debug:firefox": "cd ../../ && npm run debug:firefox -- --group icon", "debug:webkit": "cd ../../ && npm run debug:webkit -- --group icon", @@ -48,5 +49,6 @@ "exports": { ".": "./index.js", "./lion-icon": "./lion-icon.js" - } + }, + "customElementsManifest": "custom-elements.json" } diff --git a/packages/input-amount/custom-elements.json b/packages/input-amount/custom-elements.json new file mode 100644 index 000000000..e6979e01a --- /dev/null +++ b/packages/input-amount/custom-elements.json @@ -0,0 +1,283 @@ +{ + "schemaVersion": "experimental", + "readme": "", + "modules": [ + { + "kind": "javascript-module", + "path": "./index.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "LionInputAmount", + "declaration": { + "name": "LionInputAmount", + "module": "./src/LionInputAmount.js" + } + }, + { + "kind": "js", + "name": "formatAmount", + "declaration": { + "name": "formatAmount", + "module": "./src/formatters.js" + } + }, + { + "kind": "js", + "name": "parseAmount", + "declaration": { + "name": "parseAmount", + "module": "./src/parsers.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./lion-input-amount.js", + "declarations": [], + "exports": [ + { + "kind": "custom-element-definition", + "name": "lion-input-amount", + "declaration": { + "name": "LionInputAmount", + "module": "./src/LionInputAmount.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/LionInputAmount.js", + "declarations": [ + { + "kind": "class", + "name": "LionInputAmount", + "mixins": [ + { + "name": "LocalizeMixin", + "package": "@lion/localize" + } + ], + "superclass": { + "name": "LionInput", + "package": "@lion/input" + }, + "attributes": [ + { + "name": "currency", + "fieldName": "currency" + }, + { + "name": "modelValue", + "fieldName": "modelValue" + } + ], + "members": [ + { + "kind": "field", + "name": "currency", + "privacy": "public", + "type": { + "type": "string | undefined" + }, + "default": "undefined" + }, + { + "kind": "field", + "name": "modelValue", + "privacy": "public" + }, + { + "kind": "field", + "name": "slots", + "privacy": "public" + }, + { + "kind": "field", + "name": "_currencyDisplayNode", + "privacy": "public" + }, + { + "kind": "method", + "name": "connectedCallback", + "privacy": "public" + }, + { + "kind": "method", + "name": "updated", + "privacy": "public", + "parameters": [ + { + "name": "changedProperties", + "type": { + "type": "PropertyValues " + } + } + ] + }, + { + "kind": "method", + "name": "__callParser", + "privacy": "public", + "parameters": [ + { + "name": "value", + "default": "this.formattedValue" + } + ] + }, + { + "kind": "method", + "name": "_reflectBackOn", + "privacy": "public" + }, + { + "kind": "method", + "name": "_onCurrencyChanged", + "privacy": "public", + "parameters": [ + { + "name": "opts", + "type": { + "type": "Object" + } + }, + { + "name": "opts.currency", + "type": { + "type": "string" + } + } + ] + }, + { + "kind": "method", + "name": "__setCurrencyDisplayLabel", + "privacy": "public" + }, + { + "kind": "field", + "name": "__currencyLabel", + "privacy": "public" + } + ], + "tagName": "lion-input-amount" + } + ], + "exports": [ + { + "kind": "js", + "name": "LionInputAmount", + "declaration": { + "name": "LionInputAmount", + "module": "./src/LionInputAmount.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/formatters.js", + "declarations": [ + { + "kind": "function", + "name": "formatAmount", + "description": "Formats a number considering the default fraction digits provided by Intl.", + "parameters": [ + { + "name": "modelValue", + "type": { + "type": "number" + }, + "description": "Number to format" + }, + { + "name": "givenOptions", + "type": { + "type": "FormatOptions" + }, + "optional": true + } + ] + }, + { + "kind": "function", + "name": "formatCurrencyLabel", + "parameters": [ + { + "name": "currency", + "type": { + "type": "string" + } + }, + { + "name": "locale", + "type": { + "type": "string" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "formatAmount", + "declaration": { + "name": "formatAmount", + "module": "./src/formatters.js" + } + }, + { + "kind": "js", + "name": "formatCurrencyLabel", + "declaration": { + "name": "formatCurrencyLabel", + "module": "./src/formatters.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/parsers.js", + "declarations": [ + { + "kind": "function", + "name": "parseAmount", + "description": "Parses a number string and returns the best possible javascript number.\nFor edge cases it may use locale to give the best possible assumption.\n\nIt has 3 \"methods\" of returning numbers\n- 'unparseable': becomes just numbers\n- 'withLocale': result depends on given or global locale\n- 'heuristic': result depends on considering separators", + "parameters": [ + { + "name": "value", + "type": { + "type": "string" + }, + "description": "Number to be parsed" + }, + { + "name": "options", + "type": { + "type": "object" + }, + "description": "Locale Options", + "optional": true + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "parseAmount", + "declaration": { + "name": "parseAmount", + "module": "./src/parsers.js" + } + } + ] + } + ] +} diff --git a/packages/input-amount/package.json b/packages/input-amount/package.json index a87c36609..7ea9425f3 100644 --- a/packages/input-amount/package.json +++ b/packages/input-amount/package.json @@ -23,6 +23,7 @@ "types" ], "scripts": { + "custom-elements-manifest": "custom-elements-manifest analyze --exclude 'docs/**/*'", "debug": "cd ../../ && npm run debug -- --group input-amount", "debug:firefox": "cd ../../ && npm run debug:firefox -- --group input-amount", "debug:webkit": "cd ../../ && npm run debug:webkit -- --group input-amount", @@ -50,5 +51,6 @@ "exports": { ".": "./index.js", "./lion-input-amount": "./lion-input-amount.js" - } + }, + "customElementsManifest": "custom-elements.json" } diff --git a/packages/input-date/custom-elements.json b/packages/input-date/custom-elements.json new file mode 100644 index 000000000..455eb7c32 --- /dev/null +++ b/packages/input-date/custom-elements.json @@ -0,0 +1,124 @@ +{ + "schemaVersion": "experimental", + "readme": "", + "modules": [ + { + "kind": "javascript-module", + "path": "./index.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "LionInputDate", + "declaration": { + "name": "LionInputDate", + "module": "./src/LionInputDate.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./lion-input-date.js", + "declarations": [], + "exports": [ + { + "kind": "custom-element-definition", + "name": "lion-input-date", + "declaration": { + "name": "LionInputDate", + "module": "./src/LionInputDate.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/LionInputDate.js", + "declarations": [ + { + "kind": "class", + "name": "LionInputDate", + "mixins": [ + { + "name": "LocalizeMixin", + "package": "@lion/localize" + } + ], + "superclass": { + "name": "LionInput", + "package": "@lion/input" + }, + "attributes": [ + { + "name": "modelValue", + "fieldName": "modelValue" + } + ], + "members": [ + { + "kind": "field", + "name": "modelValue", + "privacy": "public" + }, + { + "kind": "method", + "name": "updated", + "privacy": "public", + "parameters": [ + { + "name": "changedProperties", + "type": { + "type": "PropertyValues " + } + } + ] + }, + { + "kind": "method", + "name": "connectedCallback", + "privacy": "public" + }, + { + "kind": "method", + "name": "serializer", + "privacy": "public", + "parameters": [ + { + "name": "modelValue", + "type": { + "type": "Date" + } + } + ] + }, + { + "kind": "method", + "name": "deserializer", + "privacy": "public", + "parameters": [ + { + "name": "serializedValue", + "type": { + "type": "string" + } + } + ] + } + ], + "tagName": "lion-input-date" + } + ], + "exports": [ + { + "kind": "js", + "name": "LionInputDate", + "declaration": { + "name": "LionInputDate", + "module": "./src/LionInputDate.js" + } + } + ] + } + ] +} diff --git a/packages/input-date/package.json b/packages/input-date/package.json index 2295c96a2..436869a74 100644 --- a/packages/input-date/package.json +++ b/packages/input-date/package.json @@ -23,6 +23,7 @@ "types" ], "scripts": { + "custom-elements-manifest": "custom-elements-manifest analyze --exclude 'docs/**/*'", "debug": "cd ../../ && npm run debug -- --group input-date", "debug:firefox": "cd ../../ && npm run debug:firefox -- --group input-date", "debug:webkit": "cd ../../ && npm run debug:webkit -- --group input-date", @@ -50,5 +51,6 @@ "exports": { ".": "./index.js", "./lion-input-date": "./lion-input-date.js" - } + }, + "customElementsManifest": "custom-elements.json" } diff --git a/packages/input-datepicker/custom-elements.json b/packages/input-datepicker/custom-elements.json new file mode 100644 index 000000000..e3ae4d3ee --- /dev/null +++ b/packages/input-datepicker/custom-elements.json @@ -0,0 +1,923 @@ +{ + "schemaVersion": "experimental", + "readme": "", + "modules": [ + { + "kind": "javascript-module", + "path": "./index.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "LionInputDatepicker", + "declaration": { + "name": "LionInputDatepicker", + "module": "./src/LionInputDatepicker.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./lion-input-datepicker.js", + "declarations": [], + "exports": [ + { + "kind": "custom-element-definition", + "name": "lion-input-datepicker", + "declaration": { + "name": "LionInputDatepicker", + "module": "./src/LionInputDatepicker.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./test-helpers.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "DatepickerInputObject", + "declaration": { + "name": "DatepickerInputObject", + "module": "./test-helpers/DatepickerInputObject.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/LionCalendarOverlayFrame.js", + "declarations": [ + { + "kind": "class", + "name": "LionCalendarOverlayFrame", + "events": [ + { + "name": "close-overlay", + "type": { + "type": "Event" + } + } + ], + "mixins": [ + { + "name": "LocalizeMixin", + "package": "@lion/localize" + } + ], + "superclass": { + "name": "LitElement", + "package": "@lion/core" + }, + "members": [ + { + "kind": "field", + "name": "localizeNamespaces", + "static": true, + "privacy": "public" + }, + { + "kind": "method", + "name": "__dispatchCloseEvent", + "privacy": "public" + } + ], + "tagName": "lion-calendar-overlay-frame" + } + ], + "exports": [ + { + "kind": "js", + "name": "LionCalendarOverlayFrame", + "declaration": { + "name": "LionCalendarOverlayFrame", + "module": "./src/LionCalendarOverlayFrame.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/LionInputDatepicker.js", + "declarations": [ + { + "kind": "class", + "name": "LionInputDatepicker", + "mixins": [ + { + "name": "ScopedElementsMixin", + "package": "@lion/core" + }, + { + "name": "ArrowMixin", + "package": "@lion/overlays" + }, + { + "name": "OverlayMixin", + "package": "@lion/overlays" + } + ], + "superclass": { + "name": "LionInputDate", + "package": "@lion/input-date" + }, + "members": [ + { + "kind": "field", + "name": "scopedElements", + "static": true, + "privacy": "public" + }, + { + "kind": "field", + "name": "calendarHeading", + "privacy": "public" + }, + { + "kind": "field", + "name": "_calendarInvokerSlot", + "privacy": "public", + "default": "'suffix'" + }, + { + "kind": "field", + "name": "__calendarMinDate", + "privacy": "public" + }, + { + "kind": "field", + "name": "__calendarMaxDate", + "privacy": "public" + }, + { + "kind": "field", + "name": "__calendarDisableDates", + "privacy": "public" + }, + { + "kind": "field", + "name": "slots", + "privacy": "public" + }, + { + "kind": "field", + "name": "localizeNamespaces", + "static": true, + "privacy": "public" + }, + { + "kind": "field", + "name": "_invokerNode", + "privacy": "public" + }, + { + "kind": "field", + "name": "_calendarNode", + "privacy": "public" + }, + { + "kind": "method", + "name": "__createUniqueIdForA11y", + "privacy": "public" + }, + { + "kind": "method", + "name": "requestUpdateInternal", + "privacy": "public", + "parameters": [ + { + "name": "name", + "type": { + "type": "PropertyKey" + } + }, + { + "name": "oldValue", + "type": { + "type": "?" + } + } + ] + }, + { + "kind": "method", + "name": "__toggleInvokerDisabled", + "privacy": "public" + }, + { + "kind": "method", + "name": "firstUpdated", + "privacy": "public", + "parameters": [ + { + "name": "changedProperties", + "type": { + "type": "PropertyValues " + } + } + ] + }, + { + "kind": "method", + "name": "updated", + "privacy": "public", + "parameters": [ + { + "name": "changedProperties", + "type": { + "type": "PropertyValues " + } + } + ] + }, + { + "kind": "method", + "name": "_overlayTemplate", + "privacy": "public", + "description": "Defining this overlay as a templates from OverlayMixin\nthis is our source to give as .contentNode to OverlayController.\nImportant: do not change the name of this method." + }, + { + "kind": "method", + "name": "render", + "privacy": "public" + }, + { + "kind": "method", + "name": "_calendarTemplate", + "privacy": "public", + "description": "Subclassers can replace this with their custom extension of\nLionCalendar, like ``" + }, + { + "kind": "method", + "name": "_invokerTemplate", + "privacy": "public", + "description": "Subclassers can replace this with their custom extension invoker,\nlike ``" + }, + { + "kind": "method", + "name": "_setupOverlayCtrl", + "privacy": "public" + }, + { + "kind": "method", + "name": "_defineOverlayConfig", + "privacy": "public", + "return": { + "type": { + "type": "Object" + } + } + }, + { + "kind": "method", + "name": "__openCalendarOverlay", + "privacy": "public" + }, + { + "kind": "method", + "name": "_onCalendarOverlayOpened", + "privacy": "public", + "description": "Lifecycle callback for subclassers" + }, + { + "kind": "method", + "name": "_onCalendarUserSelectedChanged", + "privacy": "public", + "parameters": [ + { + "name": "opts", + "type": { + "type": "{ target: { selectedDate: Date }}" + } + } + ] + }, + { + "kind": "method", + "name": "__getSyncDownValue", + "privacy": "public", + "static": true, + "description": "The LionCalendar shouldn't know anything about the modelValue;\nit can't handle Unparseable dates, but does handle 'undefined'", + "return": { + "type": { + "type": "Date|undefined" + } + }, + "parameters": [ + { + "name": "modelValue", + "type": { + "type": "?" + } + } + ] + }, + { + "kind": "method", + "name": "__syncDisabledDates", + "privacy": "public", + "description": "Validators contain the information to synchronize the input with\nthe min, max and enabled dates of the calendar.", + "parameters": [ + { + "name": "validators", + "type": { + "type": "Validator[]" + }, + "description": "errorValidators or warningValidators array" + } + ] + }, + { + "kind": "field", + "name": "_overlayInvokerNode", + "privacy": "public" + }, + { + "kind": "field", + "name": "_overlayContentNode", + "privacy": "public" + } + ], + "attributes": [ + { + "name": "calendar-heading", + "fieldName": "calendarHeading" + } + ], + "tagName": "lion-input-datepicker" + } + ], + "exports": [ + { + "kind": "js", + "name": "LionInputDatepicker", + "declaration": { + "name": "LionInputDatepicker", + "module": "./src/LionInputDatepicker.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/lion-calendar-overlay-frame.js", + "declarations": [], + "exports": [ + { + "kind": "custom-element-definition", + "name": "lion-calendar-overlay-frame", + "declaration": { + "name": "LionCalendarOverlayFrame", + "module": "./src/LionCalendarOverlayFrame.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./test-helpers/DatepickerInputObject.js", + "declarations": [ + { + "kind": "class", + "name": "DatepickerInputObject", + "members": [ + { + "kind": "method", + "name": "openCalendar", + "privacy": "public", + "description": "Methods mimicing User Interaction" + }, + { + "kind": "method", + "name": "closeCalendar", + "privacy": "public" + }, + { + "kind": "method", + "name": "selectMonthDay", + "privacy": "public", + "parameters": [ + { + "name": "day", + "type": { + "type": "number" + } + } + ] + }, + { + "kind": "field", + "name": "invokerEl", + "privacy": "public" + }, + { + "kind": "field", + "name": "overlayEl", + "privacy": "public" + }, + { + "kind": "field", + "name": "overlayHeadingEl", + "privacy": "public" + }, + { + "kind": "field", + "name": "overlayCloseButtonEl", + "privacy": "public" + }, + { + "kind": "field", + "name": "calendarEl", + "privacy": "public" + }, + { + "kind": "field", + "name": "calendarObj", + "privacy": "public" + }, + { + "kind": "field", + "name": "overlayController", + "privacy": "public" + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "DatepickerInputObject", + "declaration": { + "name": "DatepickerInputObject", + "module": "./test-helpers/DatepickerInputObject.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./translations/bg-BG.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/bg-BG.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-CZ.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/cs-CZ.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-DE.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/de-DE.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-AU.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/en-AU.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./translations/en-GB.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/en-GB.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./translations/en-US.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/en-US.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-ES.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/es-ES.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-BE.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/fr-BE.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./translations/fr-FR.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/fr-FR.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-HU.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/hu-HU.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-IT.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/it-IT.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-BE.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/nl-BE.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./translations/nl-NL.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/nl-NL.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-PL.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/pl-PL.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-RO.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/ro-RO.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-RU.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/ru-RU.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-SK.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/sk-SK.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-UA.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/uk-UA.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" + } + } + ] + } + ] +} diff --git a/packages/input-datepicker/package.json b/packages/input-datepicker/package.json index dd21db9a8..40db79060 100644 --- a/packages/input-datepicker/package.json +++ b/packages/input-datepicker/package.json @@ -23,6 +23,7 @@ "types" ], "scripts": { + "custom-elements-manifest": "custom-elements-manifest analyze --exclude 'docs/**/*'", "debug": "cd ../../ && npm run debug -- --group input-datepicker", "debug:firefox": "cd ../../ && npm run debug:firefox -- --group input-datepicker", "debug:webkit": "cd ../../ && npm run debug:webkit -- --group input-datepicker", @@ -56,5 +57,6 @@ ".": "./index.js", "./test-helpers/*": "./test-helpers/*", "./lion-input-datepicker": "./lion-input-datepicker.js" - } + }, + "customElementsManifest": "custom-elements.json" } diff --git a/packages/input-email/custom-elements.json b/packages/input-email/custom-elements.json new file mode 100644 index 000000000..96d8272fd --- /dev/null +++ b/packages/input-email/custom-elements.json @@ -0,0 +1,67 @@ +{ + "schemaVersion": "experimental", + "readme": "", + "modules": [ + { + "kind": "javascript-module", + "path": "./index.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "LionInputEmail", + "declaration": { + "name": "LionInputEmail", + "module": "./src/LionInputEmail.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./lion-input-email.js", + "declarations": [], + "exports": [ + { + "kind": "custom-element-definition", + "name": "lion-input-email", + "declaration": { + "name": "LionInputEmail", + "module": "./src/LionInputEmail.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/LionInputEmail.js", + "declarations": [ + { + "kind": "class", + "name": "LionInputEmail", + "mixins": [ + { + "name": "LocalizeMixin", + "package": "@lion/localize" + } + ], + "superclass": { + "name": "LionInput", + "package": "@lion/input" + }, + "tagName": "lion-input-email" + } + ], + "exports": [ + { + "kind": "js", + "name": "LionInputEmail", + "declaration": { + "name": "LionInputEmail", + "module": "./src/LionInputEmail.js" + } + } + ] + } + ] +} diff --git a/packages/input-email/package.json b/packages/input-email/package.json index 15a93b80f..161c24ba3 100644 --- a/packages/input-email/package.json +++ b/packages/input-email/package.json @@ -23,6 +23,7 @@ "types" ], "scripts": { + "custom-elements-manifest": "custom-elements-manifest analyze --exclude 'docs/**/*'", "debug": "cd ../../ && npm run debug -- --group input-email", "debug:firefox": "cd ../../ && npm run debug:firefox -- --group input-email", "debug:webkit": "cd ../../ && npm run debug:webkit -- --group input-email", @@ -50,5 +51,6 @@ "exports": { ".": "./index.js", "./lion-input-email": "./lion-input-email.js" - } + }, + "customElementsManifest": "custom-elements.json" } diff --git a/packages/input-iban/custom-elements.json b/packages/input-iban/custom-elements.json new file mode 100644 index 000000000..83a22910c --- /dev/null +++ b/packages/input-iban/custom-elements.json @@ -0,0 +1,954 @@ +{ + "schemaVersion": "experimental", + "readme": "", + "modules": [ + { + "kind": "javascript-module", + "path": "./index.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "LionInputIban", + "declaration": { + "name": "LionInputIban", + "module": "./src/LionInputIban.js" + } + }, + { + "kind": "js", + "name": "formatIBAN", + "declaration": { + "name": "formatIBAN", + "module": "./src/formatters.js" + } + }, + { + "kind": "js", + "name": "parseIBAN", + "declaration": { + "name": "parseIBAN", + "module": "./src/parsers.js" + } + }, + { + "kind": "js", + "name": "IsIBAN", + "declaration": { + "name": "IsIBAN", + "module": "./src/validators.js" + } + }, + { + "kind": "js", + "name": "IsCountryIBAN", + "declaration": { + "name": "IsCountryIBAN", + "module": "./src/validators.js" + } + }, + { + "kind": "js", + "name": "IsNotCountryIBAN", + "declaration": { + "name": "IsNotCountryIBAN", + "module": "./src/validators.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./lion-input-iban.js", + "declarations": [], + "exports": [ + { + "kind": "custom-element-definition", + "name": "lion-input-iban", + "declaration": { + "name": "LionInputIban", + "module": "./src/LionInputIban.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/LionInputIban.js", + "declarations": [ + { + "kind": "class", + "name": "LionInputIban", + "mixins": [ + { + "name": "LocalizeMixin", + "package": "@lion/localize" + } + ], + "superclass": { + "name": "LionInput", + "package": "@lion/input" + }, + "tagName": "lion-input-iban" + } + ], + "exports": [ + { + "kind": "js", + "name": "LionInputIban", + "declaration": { + "name": "LionInputIban", + "module": "./src/LionInputIban.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/formatters.js", + "declarations": [ + { + "kind": "function", + "name": "formatIBAN", + "description": "Takes an unformatted IBAN and returns a formatted one.", + "return": { + "type": { + "type": "string" + } + }, + "parameters": [ + { + "name": "modelValue", + "type": { + "type": "string" + }, + "description": "value to be formatted" + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "formatIBAN", + "declaration": { + "name": "formatIBAN", + "module": "./src/formatters.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/parsers.js", + "declarations": [ + { + "kind": "function", + "name": "parseIBAN", + "description": "Parses an IBAN trimming spaces and making uppercase.", + "return": { + "type": { + "type": "string|undefined" + } + }, + "parameters": [ + { + "name": "viewValue", + "type": { + "type": "string" + }, + "description": "value to be parsed" + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "parseIBAN", + "declaration": { + "name": "parseIBAN", + "module": "./src/parsers.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/validators.js", + "declarations": [ + { + "kind": "class", + "name": "IsIBAN", + "superclass": { + "name": "Validator", + "package": "@lion/form-core" + }, + "members": [ + { + "kind": "field", + "name": "validatorName", + "static": true, + "privacy": "public" + }, + { + "kind": "method", + "name": "execute", + "privacy": "public", + "parameters": [ + { + "name": "value", + "type": { + "type": "string" + } + } + ] + }, + { + "kind": "method", + "name": "getMessage", + "privacy": "public", + "static": true, + "return": { + "type": { + "type": "Promise" + } + }, + "parameters": [ + { + "name": "data", + "type": { + "type": "object" + }, + "optional": true + }, + { + "name": "data.modelValue", + "type": { + "type": "*" + }, + "optional": true + }, + { + "name": "data.fieldName", + "type": { + "type": "string" + }, + "optional": true + }, + { + "name": "data.params", + "type": { + "type": "*" + }, + "optional": true + }, + { + "name": "data.type", + "type": { + "type": "string" + }, + "optional": true + }, + { + "name": "data.config", + "type": { + "type": "Object." + }, + "optional": true + }, + { + "name": "data.name", + "type": { + "type": "string" + }, + "optional": true + } + ] + } + ] + }, + { + "kind": "class", + "name": "IsCountryIBAN", + "superclass": { + "name": "IsIBAN", + "module": "/src/validators.js" + }, + "members": [ + { + "kind": "field", + "name": "validatorName", + "static": true, + "privacy": "public" + }, + { + "kind": "method", + "name": "execute", + "privacy": "public", + "return": { + "type": { + "type": "Boolean" + } + }, + "parameters": [ + { + "name": "value", + "type": { + "type": "string" + } + } + ] + }, + { + "kind": "method", + "name": "getMessage", + "privacy": "public", + "static": true, + "return": { + "type": { + "type": "Promise" + } + }, + "parameters": [ + { + "name": "data", + "type": { + "type": "object" + }, + "optional": true + }, + { + "name": "data.modelValue", + "type": { + "type": "*" + }, + "optional": true + }, + { + "name": "data.fieldName", + "type": { + "type": "string" + }, + "optional": true + }, + { + "name": "data.params", + "type": { + "type": "*" + }, + "optional": true + }, + { + "name": "data.type", + "type": { + "type": "string" + }, + "optional": true + }, + { + "name": "data.config", + "type": { + "type": "Object." + }, + "optional": true + }, + { + "name": "data.name", + "type": { + "type": "string" + }, + "optional": true + } + ] + } + ] + }, + { + "kind": "class", + "name": "IsNotCountryIBAN", + "superclass": { + "name": "IsIBAN", + "module": "/src/validators.js" + }, + "members": [ + { + "kind": "field", + "name": "validatorName", + "static": true, + "privacy": "public" + }, + { + "kind": "method", + "name": "execute", + "privacy": "public", + "return": { + "type": { + "type": "Boolean" + } + }, + "parameters": [ + { + "name": "value", + "type": { + "type": "string" + } + } + ] + }, + { + "kind": "method", + "name": "getMessage", + "privacy": "public", + "static": true, + "return": { + "type": { + "type": "Promise" + } + }, + "parameters": [ + { + "name": "data", + "type": { + "type": "object" + }, + "optional": true + }, + { + "name": "data.modelValue", + "type": { + "type": "*" + }, + "optional": true + }, + { + "name": "data.fieldName", + "type": { + "type": "string" + }, + "optional": true + }, + { + "name": "data.params", + "type": { + "type": "*" + }, + "optional": true + }, + { + "name": "data.type", + "type": { + "type": "string" + }, + "optional": true + }, + { + "name": "data.config", + "type": { + "type": "Object." + }, + "optional": true + }, + { + "name": "data.name", + "type": { + "type": "string" + }, + "optional": true + } + ] + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "IsIBAN", + "declaration": { + "name": "IsIBAN", + "module": "./src/validators.js" + } + }, + { + "kind": "js", + "name": "IsCountryIBAN", + "declaration": { + "name": "IsCountryIBAN", + "module": "./src/validators.js" + } + }, + { + "kind": "js", + "name": "IsNotCountryIBAN", + "declaration": { + "name": "IsNotCountryIBAN", + "module": "./src/validators.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./translations/bg-BG.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/bg-BG.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-CZ.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/cs-CZ.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-DE.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/de-DE.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-AU.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/en-AU.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./translations/en-GB.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/en-GB.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./translations/en-US.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/en-US.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-ES.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/es-ES.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-BE.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/fr-BE.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./translations/fr-FR.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/fr-FR.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-HU.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/hu-HU.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-IT.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/it-IT.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-BE.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/nl-BE.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./translations/nl-NL.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/nl-NL.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-PL.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/pl-PL.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-RO.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/ro-RO.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-RU.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/ru-RU.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-SK.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/sk-SK.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-UA.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/uk-UA.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" + } + } + ] + } + ] +} diff --git a/packages/input-iban/package.json b/packages/input-iban/package.json index 4cd040b84..bb240d5d1 100644 --- a/packages/input-iban/package.json +++ b/packages/input-iban/package.json @@ -23,6 +23,7 @@ "types" ], "scripts": { + "custom-elements-manifest": "custom-elements-manifest analyze --exclude 'docs/**/*'", "debug": "cd ../../ && npm run debug -- --group input-iban", "debug:firefox": "cd ../../ && npm run debug:firefox -- --group input-iban", "debug:webkit": "cd ../../ && npm run debug:webkit -- --group input-iban", @@ -51,5 +52,6 @@ "exports": { ".": "./index.js", "./lion-input-iban": "./lion-input-iban.js" - } + }, + "customElementsManifest": "custom-elements.json" } diff --git a/packages/input-range/custom-elements.json b/packages/input-range/custom-elements.json new file mode 100644 index 000000000..48a235f3b --- /dev/null +++ b/packages/input-range/custom-elements.json @@ -0,0 +1,190 @@ +{ + "schemaVersion": "experimental", + "readme": "", + "modules": [ + { + "kind": "javascript-module", + "path": "./index.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "LionInputRange", + "declaration": { + "name": "LionInputRange", + "module": "./src/LionInputRange.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./lion-input-range.js", + "declarations": [], + "exports": [ + { + "kind": "custom-element-definition", + "name": "lion-input-range", + "declaration": { + "name": "LionInputRange", + "module": "./src/LionInputRange.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/LionInputRange.js", + "declarations": [ + { + "kind": "class", + "name": "LionInputRange", + "superclass": { + "name": "LionInput", + "package": "@lion/input" + }, + "attributes": [ + { + "name": "min", + "fieldName": "min" + }, + { + "name": "max", + "fieldName": "max" + }, + { + "name": "unit", + "fieldName": "unit" + }, + { + "name": "step", + "fieldName": "step" + }, + { + "name": "no-min-max-labels", + "fieldName": "noMinMaxLabels" + } + ], + "members": [ + { + "kind": "field", + "name": "min", + "privacy": "public", + "default": "Infinity" + }, + { + "kind": "field", + "name": "max", + "privacy": "public", + "default": "Infinity" + }, + { + "kind": "field", + "name": "unit", + "privacy": "public", + "default": "''" + }, + { + "kind": "field", + "name": "step", + "privacy": "public", + "default": "1" + }, + { + "kind": "field", + "name": "noMinMaxLabels", + "privacy": "public", + "default": "false" + }, + { + "kind": "method", + "name": "rangeStyles", + "privacy": "public", + "static": true, + "parameters": [ + { + "name": "scope", + "type": { + "type": "CSSResult" + } + } + ] + }, + { + "kind": "field", + "name": "_inputNode", + "privacy": "public" + }, + { + "kind": "method", + "name": "connectedCallback", + "privacy": "public" + }, + { + "kind": "method", + "name": "disconnectedCallback", + "privacy": "public" + }, + { + "kind": "method", + "name": "updated", + "privacy": "public", + "parameters": [ + { + "name": "changedProperties", + "type": { + "type": "PropertyValues " + } + } + ] + }, + { + "kind": "method", + "name": "firstUpdated", + "privacy": "public", + "parameters": [ + { + "name": "changedProperties", + "type": { + "type": "PropertyValues " + } + } + ] + }, + { + "kind": "method", + "name": "_inputGroupTemplate", + "privacy": "public" + }, + { + "kind": "method", + "name": "_inputGroupInputTemplate", + "privacy": "public" + }, + { + "kind": "method", + "name": "__setupStyleTag", + "privacy": "public" + }, + { + "kind": "method", + "name": "__teardownStyleTag", + "privacy": "public" + } + ], + "tagName": "lion-input-range" + } + ], + "exports": [ + { + "kind": "js", + "name": "LionInputRange", + "declaration": { + "name": "LionInputRange", + "module": "./src/LionInputRange.js" + } + } + ] + } + ] +} diff --git a/packages/input-range/package.json b/packages/input-range/package.json index 713bd9291..f3ed7f4cb 100644 --- a/packages/input-range/package.json +++ b/packages/input-range/package.json @@ -23,6 +23,7 @@ "types" ], "scripts": { + "custom-elements-manifest": "custom-elements-manifest analyze --exclude 'docs/**/*'", "debug": "cd ../../ && npm run debug -- --group input-range", "debug:firefox": "cd ../../ && npm run debug:firefox -- --group input-range", "debug:webkit": "cd ../../ && npm run debug:webkit -- --group input-range", @@ -49,5 +50,6 @@ "exports": { ".": "./index.js", "./lion-input-range": "./lion-input-range.js" - } + }, + "customElementsManifest": "custom-elements.json" } diff --git a/packages/input-stepper/custom-elements.json b/packages/input-stepper/custom-elements.json new file mode 100644 index 000000000..99047a6c2 --- /dev/null +++ b/packages/input-stepper/custom-elements.json @@ -0,0 +1,272 @@ +{ + "schemaVersion": "experimental", + "readme": "", + "modules": [ + { + "kind": "javascript-module", + "path": "./index.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "LionInputStepper", + "declaration": { + "name": "LionInputStepper", + "module": "./src/LionInputStepper.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./lion-input-stepper.js", + "declarations": [], + "exports": [ + { + "kind": "custom-element-definition", + "name": "lion-input-stepper", + "declaration": { + "name": "LionInputStepper", + "module": "./src/LionInputStepper.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/LionInputStepper.js", + "declarations": [ + { + "kind": "class", + "name": "LionInputStepper", + "events": [ + { + "name": "user-input-changed", + "type": { + "type": "CustomEvent" + } + } + ], + "superclass": { + "name": "LionInput", + "package": "@lion/input" + }, + "attributes": [ + { + "name": "min", + "fieldName": "min" + }, + { + "name": "max", + "fieldName": "max" + }, + { + "name": "step", + "fieldName": "step" + } + ], + "members": [ + { + "kind": "field", + "name": "min", + "privacy": "public", + "default": "Infinity" + }, + { + "kind": "field", + "name": "max", + "privacy": "public", + "default": "Infinity" + }, + { + "kind": "field", + "name": "step", + "privacy": "public", + "default": "1" + }, + { + "kind": "field", + "name": "currentValue", + "privacy": "public" + }, + { + "kind": "field", + "name": "_inputNode", + "privacy": "public" + }, + { + "kind": "method", + "name": "connectedCallback", + "privacy": "public" + }, + { + "kind": "method", + "name": "disconnectedCallback", + "privacy": "public" + }, + { + "kind": "method", + "name": "updated", + "privacy": "public", + "parameters": [ + { + "name": "changedProperties", + "type": { + "type": "PropertyValues " + } + } + ] + }, + { + "kind": "field", + "name": "slots", + "privacy": "public" + }, + { + "kind": "method", + "name": "__setAriaLabelsAndValidator", + "privacy": "private", + "description": "Set aria labels and apply validators" + }, + { + "kind": "method", + "name": "__keyDownHandler", + "privacy": "private", + "description": "Update values on keyboard arrow up and down event", + "parameters": [ + { + "name": "e", + "type": { + "type": "KeyboardEvent" + }, + "description": "keyboard event" + } + ] + }, + { + "kind": "method", + "name": "__toggleSpinnerButtonsState", + "privacy": "private", + "description": "Toggle disabled state for the buttons" + }, + { + "kind": "method", + "name": "__getSlot", + "privacy": "public", + "description": "Get slotted element", + "return": { + "type": { + "type": "HTMLButtonElement|Object" + } + }, + "parameters": [ + { + "name": "slotName", + "type": { + "type": "String" + }, + "description": "slot name" + } + ] + }, + { + "kind": "method", + "name": "__increment", + "privacy": "private", + "description": "Increment the value based on given step or default step value is 1" + }, + { + "kind": "method", + "name": "__decrement", + "privacy": "private", + "description": "Decrement the value based on given step or default step value is 1" + }, + { + "kind": "method", + "name": "__getIncrementButtonNode", + "privacy": "public", + "description": "Get the increment button node", + "return": { + "type": { + "type": "Element|null" + } + } + }, + { + "kind": "method", + "name": "__getDecrementButtonNode", + "privacy": "public", + "description": "Get the decrement button node", + "return": { + "type": { + "type": "Element|null" + } + } + }, + { + "kind": "method", + "name": "_onChange", + "privacy": "public", + "description": "Toggle +/- buttons on change" + }, + { + "kind": "method", + "name": "_decrementorSignTemplate", + "privacy": "public", + "description": "Get the decrementor button sign template", + "return": { + "type": { + "type": "String|TemplateResult" + } + } + }, + { + "kind": "method", + "name": "_incrementorSignTemplate", + "privacy": "public", + "description": "Get the incrementor button sign template", + "return": { + "type": { + "type": "String|TemplateResult" + } + } + }, + { + "kind": "method", + "name": "_decrementorTemplate", + "privacy": "public", + "description": "Get the increment button template", + "return": { + "type": { + "type": "TemplateResult" + } + } + }, + { + "kind": "method", + "name": "_incrementorTemplate", + "privacy": "public", + "description": "Get the decrement button template", + "return": { + "type": { + "type": "TemplateResult" + } + } + } + ], + "tagName": "lion-input-stepper" + } + ], + "exports": [ + { + "kind": "js", + "name": "LionInputStepper", + "declaration": { + "name": "LionInputStepper", + "module": "./src/LionInputStepper.js" + } + } + ] + } + ] +} diff --git a/packages/input-stepper/package.json b/packages/input-stepper/package.json index 28018717b..7ffe69abd 100644 --- a/packages/input-stepper/package.json +++ b/packages/input-stepper/package.json @@ -23,6 +23,7 @@ "types" ], "scripts": { + "custom-elements-manifest": "custom-elements-manifest analyze --exclude 'docs/**/*'", "debug": "cd ../../ && npm run debug -- --group input-stepper", "debug:firefox": "cd ../../ && npm run debug:firefox -- --group input-stepper", "debug:webkit": "cd ../../ && npm run debug:webkit -- --group input-stepper", @@ -49,5 +50,6 @@ "exports": { ".": "./index.js", "./lion-input-stepper": "./lion-input-stepper.js" - } + }, + "customElementsManifest": "custom-elements.json" } diff --git a/packages/input/custom-elements.json b/packages/input/custom-elements.json new file mode 100644 index 000000000..d56d7f59a --- /dev/null +++ b/packages/input/custom-elements.json @@ -0,0 +1,161 @@ +{ + "schemaVersion": "experimental", + "readme": "", + "modules": [ + { + "kind": "javascript-module", + "path": "./index.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "LionInput", + "declaration": { + "name": "LionInput", + "module": "./src/LionInput.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./lion-input.js", + "declarations": [], + "exports": [ + { + "kind": "custom-element-definition", + "name": "lion-input", + "declaration": { + "name": "LionInput", + "module": "./src/LionInput.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/LionInput.js", + "declarations": [ + { + "kind": "class", + "name": "LionInput", + "mixins": [ + { + "name": "NativeTextFieldMixin", + "package": "@lion/form-core/src/NativeTextFieldMixin" + } + ], + "superclass": { + "name": "LionField", + "package": "@lion/form-core" + }, + "attributes": [ + { + "name": "readonly", + "fieldName": "readOnly" + }, + { + "name": "type", + "fieldName": "type" + }, + { + "name": "placeholder", + "fieldName": "placeholder" + } + ], + "members": [ + { + "kind": "field", + "name": "readOnly", + "privacy": "public", + "default": "false" + }, + { + "kind": "field", + "name": "type", + "privacy": "public", + "default": "'text'" + }, + { + "kind": "field", + "name": "placeholder", + "privacy": "public", + "default": "''" + }, + { + "kind": "field", + "name": "slots", + "privacy": "public" + }, + { + "kind": "field", + "name": "_inputNode", + "privacy": "public" + }, + { + "kind": "method", + "name": "requestUpdateInternal", + "privacy": "public", + "parameters": [ + { + "name": "name", + "type": { + "type": "PropertyKey" + } + }, + { + "name": "oldValue", + "type": { + "type": "?" + } + } + ] + }, + { + "kind": "method", + "name": "firstUpdated", + "privacy": "public", + "parameters": [ + { + "name": "changedProperties", + "type": { + "type": "PropertyValues " + } + } + ] + }, + { + "kind": "method", + "name": "updated", + "privacy": "public", + "parameters": [ + { + "name": "changedProperties", + "type": { + "type": "PropertyValues " + } + } + ] + }, + { + "kind": "method", + "name": "__delegateReadOnly", + "privacy": "public" + } + ], + "tagName": "lion-input" + } + ], + "exports": [ + { + "kind": "js", + "name": "LionInput", + "declaration": { + "name": "LionInput", + "module": "./src/LionInput.js" + } + } + ] + } + ] +} diff --git a/packages/input/package.json b/packages/input/package.json index 4bc681f4e..46ee9a7b4 100644 --- a/packages/input/package.json +++ b/packages/input/package.json @@ -23,6 +23,7 @@ "types" ], "scripts": { + "custom-elements-manifest": "custom-elements-manifest analyze --exclude 'docs/**/*'", "debug": "cd ../../ && npm run debug -- --group input", "debug:firefox": "cd ../../ && npm run debug:firefox -- --group input", "debug:webkit": "cd ../../ && npm run debug:webkit -- --group input", @@ -46,5 +47,6 @@ "exports": { ".": "./index.js", "./lion-input": "./lion-input.js" - } + }, + "customElementsManifest": "custom-elements.json" } diff --git a/packages/listbox/custom-elements.json b/packages/listbox/custom-elements.json new file mode 100644 index 000000000..f52eb161d --- /dev/null +++ b/packages/listbox/custom-elements.json @@ -0,0 +1,1855 @@ +{ + "schemaVersion": "experimental", + "readme": "", + "modules": [ + { + "kind": "javascript-module", + "path": "./index.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "LionListbox", + "declaration": { + "name": "LionListbox", + "module": "./src/LionListbox.js" + } + }, + { + "kind": "js", + "name": "ListboxMixin", + "declaration": { + "name": "ListboxMixin", + "module": "./src/ListboxMixin.js" + } + }, + { + "kind": "js", + "name": "LionOption", + "declaration": { + "name": "LionOption", + "module": "./src/LionOption.js" + } + }, + { + "kind": "js", + "name": "LionOptions", + "declaration": { + "name": "LionOptions", + "module": "./src/LionOptions.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./lion-listbox.js", + "declarations": [], + "exports": [ + { + "kind": "custom-element-definition", + "name": "lion-listbox", + "declaration": { + "name": "LionListbox", + "module": "./src/LionListbox.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./lion-option.js", + "declarations": [], + "exports": [ + { + "kind": "custom-element-definition", + "name": "lion-option", + "declaration": { + "name": "LionOption", + "module": "./src/LionOption.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./lion-options.js", + "declarations": [], + "exports": [ + { + "kind": "custom-element-definition", + "name": "lion-options", + "declaration": { + "name": "LionOptions", + "module": "./src/LionOptions.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/listboxData.js", + "declarations": [ + { + "kind": "variable", + "name": "listboxData" + } + ], + "exports": [ + { + "kind": "js", + "name": "listboxData", + "declaration": { + "name": "listboxData", + "module": "./docs/listboxData.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/LionListbox.js", + "declarations": [ + { + "kind": "class", + "name": "LionListbox", + "mixins": [ + { + "name": "ListboxMixin", + "module": "/src/ListboxMixin.js" + }, + { + "name": "FocusMixin", + "package": "@lion/form-core" + }, + { + "name": "InteractionStateMixin", + "package": "@lion/form-core" + }, + { + "name": "ValidateMixin", + "package": "@lion/form-core" + } + ], + "superclass": { + "name": "LitElement", + "package": "@lion/core" + }, + "tagName": "lion-listbox", + "attributes": [ + { + "name": "orientation", + "fieldName": "orientation", + "inheritedFrom": { + "name": "ListboxMixin", + "module": "./src/ListboxMixin.js" + } + }, + { + "name": "selection-follows-focus", + "fieldName": "selectionFollowsFocus", + "inheritedFrom": { + "name": "ListboxMixin", + "module": "./src/ListboxMixin.js" + } + }, + { + "name": "rotate-keyboard-navigation", + "fieldName": "rotateKeyboardNavigation", + "inheritedFrom": { + "name": "ListboxMixin", + "module": "./src/ListboxMixin.js" + } + }, + { + "name": "has-no-default-selected", + "fieldName": "hasNoDefaultSelected", + "inheritedFrom": { + "name": "ListboxMixin", + "module": "./src/ListboxMixin.js" + } + } + ], + "members": [ + { + "kind": "field", + "name": "orientation", + "privacy": "public", + "description": "Informs screen reader and affects keyboard navigation.\nBy default 'vertical'", + "default": "'vertical'", + "inheritedFrom": { + "name": "ListboxMixin", + "module": "./src/ListboxMixin.js" + } + }, + { + "kind": "field", + "name": "selectionFollowsFocus", + "privacy": "public", + "description": "When true, will synchronize activedescendant and selected element on\narrow key navigation.\nThis behavior can usually be seen on on the Windows platform.\nNote that this behavior cannot be used when multiple-choice is true.\nSee: https://www.w3.org/TR/wai-aria-practices/#kbd_selection_follows_focus", + "default": "false" + }, + { + "kind": "field", + "name": "rotateKeyboardNavigation", + "privacy": "public", + "description": "Will give first option active state when navigated to the next option from\nlast option.", + "default": "false" + }, + { + "kind": "field", + "name": "hasNoDefaultSelected", + "privacy": "public", + "description": "When setting this to true, on initial render, no option will be selected.\nIt is advisable to override `_noSelectionTemplate` method in the select-invoker\nto render some kind of placeholder initially", + "default": "false" + }, + { + "kind": "method", + "name": "_inputGroupInputTemplate", + "privacy": "public" + }, + { + "kind": "field", + "name": "scopedElements", + "static": true, + "privacy": "public" + }, + { + "kind": "field", + "name": "slots", + "privacy": "public" + }, + { + "kind": "field", + "name": "_inputNode", + "privacy": "public" + }, + { + "kind": "field", + "name": "_listboxNode", + "privacy": "public" + }, + { + "kind": "field", + "name": "_listboxActiveDescendantNode", + "privacy": "public" + }, + { + "kind": "field", + "name": "_listboxSlot", + "privacy": "public" + }, + { + "kind": "field", + "name": "_scrollTargetNode", + "privacy": "public" + }, + { + "kind": "field", + "name": "_activeDescendantOwnerNode", + "privacy": "public" + }, + { + "kind": "field", + "name": "serializedValue", + "privacy": "public" + }, + { + "kind": "field", + "name": "activeIndex", + "privacy": "public" + }, + { + "kind": "field", + "name": "checkedIndex", + "privacy": "public" + }, + { + "kind": "method", + "name": "connectedCallback", + "privacy": "public" + }, + { + "kind": "method", + "name": "firstUpdated", + "privacy": "public", + "parameters": [ + { + "name": "changedProperties", + "type": { + "type": "PropertyValues " + } + } + ] + }, + { + "kind": "method", + "name": "updated", + "privacy": "public", + "parameters": [ + { + "name": "changedProperties", + "type": { + "type": "PropertyValues " + } + } + ] + }, + { + "kind": "method", + "name": "disconnectedCallback", + "privacy": "public" + }, + { + "kind": "method", + "name": "setCheckedIndex", + "privacy": "public", + "description": "If an array is passed for multiple-choice, it will check the indexes in array, and uncheck the rest\nIf a number is passed, the item with the passed index is checked without unchecking others\nFor single choice, __onChildCheckedChanged we ensure that we uncheck siblings", + "parameters": [ + { + "name": "index", + "type": { + "type": "number|number[]" + } + } + ] + }, + { + "kind": "method", + "name": "addFormElement", + "privacy": "public", + "parameters": [ + { + "name": "child", + "type": { + "type": "LionOption" + } + }, + { + "name": "indexToInsertAt", + "type": { + "type": "Number" + } + } + ] + }, + { + "kind": "method", + "name": "resetInteractionState", + "privacy": "public" + }, + { + "kind": "method", + "name": "reset", + "privacy": "public" + }, + { + "kind": "method", + "name": "_getCheckedElements", + "privacy": "public" + }, + { + "kind": "method", + "name": "_setupListboxNode", + "privacy": "public" + }, + { + "kind": "method", + "name": "_teardownListboxNode", + "privacy": "public" + }, + { + "kind": "method", + "name": "_getNextEnabledOption", + "privacy": "public", + "parameters": [ + { + "name": "currentIndex", + "type": { + "type": "number" + } + }, + { + "name": "offset", + "type": { + "type": "number" + }, + "optional": true, + "default": "1" + } + ] + }, + { + "kind": "method", + "name": "_getPreviousEnabledOption", + "privacy": "public", + "parameters": [ + { + "name": "currentIndex", + "type": { + "type": "number" + } + }, + { + "name": "offset", + "type": { + "type": "number" + }, + "optional": true, + "default": "-1" + } + ] + }, + { + "kind": "method", + "name": "_onChildActiveChanged", + "privacy": "public", + "parameters": [ + { + "name": "ev", + "type": { + "type": "Event & { target: LionOption }" + } + } + ] + }, + { + "kind": "method", + "name": "_listboxOnKeyDown", + "privacy": "public", + "parameters": [ + { + "name": "ev", + "type": { + "type": "KeyboardEvent" + }, + "description": "the keydown event object" + } + ] + }, + { + "kind": "method", + "name": "_listboxOnClick", + "privacy": "public", + "parameters": [ + { + "name": "ev", + "type": { + "type": "MouseEvent" + } + } + ] + }, + { + "kind": "method", + "name": "_listboxOnKeyUp", + "privacy": "public", + "parameters": [ + { + "name": "ev", + "type": { + "type": "KeyboardEvent" + } + } + ] + }, + { + "kind": "method", + "name": "_onLabelClick", + "privacy": "public" + }, + { + "kind": "method", + "name": "__setupEventListeners", + "privacy": "public" + }, + { + "kind": "method", + "name": "__teardownEventListeners", + "privacy": "public" + }, + { + "kind": "method", + "name": "__setChildActive", + "privacy": "public", + "parameters": [ + { + "name": "el", + "type": { + "type": "LionOption | null" + } + } + ] + }, + { + "kind": "method", + "name": "_uncheckChildren", + "privacy": "public", + "parameters": [ + { + "name": "exclude", + "type": { + "type": "LionOption|LionOption[]" + }, + "optional": true, + "default": "[]" + } + ] + }, + { + "kind": "method", + "name": "__onChildCheckedChanged", + "privacy": "public", + "parameters": [ + { + "name": "cfgOrEvent", + "type": { + "type": "Event & { target: LionOption }" + } + } + ] + }, + { + "kind": "method", + "name": "__setAttributeForAllFormElements", + "privacy": "public", + "description": "// TODO: add to choiceGroup", + "parameters": [ + { + "name": "attribute", + "type": { + "type": "string" + } + }, + { + "name": "value", + "type": { + "type": "number" + } + } + ] + }, + { + "kind": "method", + "name": "__proxyChildModelValueChanged", + "privacy": "public", + "parameters": [ + { + "name": "ev", + "type": { + "type": "CustomEvent & { target: LionOption; }" + } + } + ] + }, + { + "kind": "method", + "name": "__getEnabledOption", + "privacy": "public", + "parameters": [ + { + "name": "currentIndex", + "type": { + "type": "number" + } + }, + { + "name": "offset", + "type": { + "type": "number" + } + } + ] + }, + { + "kind": "method", + "name": "__moveOptionsToListboxNode", + "privacy": "public", + "description": "Moves options put in unnamed slot to slot with [role=\"listbox\"]" + }, + { + "kind": "method", + "name": "__preventScrollingWithArrowKeys", + "privacy": "public", + "parameters": [ + { + "name": "ev", + "type": { + "type": "KeyboardEvent" + } + } + ] + }, + { + "kind": "method", + "name": "__setupListboxNodeInteractions", + "privacy": "public", + "description": "Helper method used within `._setupListboxNode`" + }, + { + "kind": "method", + "name": "__requestOptionsToBeDisabled", + "privacy": "public" + }, + { + "kind": "method", + "name": "__retractRequestOptionsToBeDisabled", + "privacy": "public" + }, + { + "kind": "method", + "name": "__initInteractionStates", + "privacy": "public" + } + ] + }, + { + "kind": "variable", + "name": "ListboxMixin" + } + ], + "exports": [ + { + "kind": "js", + "name": "ListboxMixin", + "declaration": { + "name": "ListboxMixin", + "module": "./src/ListboxMixin.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./types/LionOption.d.ts", + "declarations": [ + { + "kind": "class", + "name": "LionOptionHost", + "members": [ + { + "kind": "field", + "name": "_parentFormGroup", + "privacy": "protected", + "type": { + "type": "ChoiceGroupHost" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "LionOptionHost", + "declaration": { + "name": "LionOptionHost", + "module": "./types/LionOption.d.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./types/ListboxMixinTypes.d.ts", + "declarations": [ + { + "kind": "class", + "name": "ListboxHost", + "members": [ + { + "kind": "field", + "name": "selectionFollowsFocus", + "privacy": "public", + "type": { + "type": "Boolean" + } + }, + { + "kind": "field", + "name": "rotateKeyboardNavigation", + "privacy": "public", + "type": { + "type": "Boolean" + } + }, + { + "kind": "field", + "name": "orientation", + "privacy": "public", + "type": { + "type": "'vertical' | 'horizontal'" + } + }, + { + "kind": "field", + "name": "hasNoDefaultSelected", + "privacy": "public", + "type": { + "type": "boolean" + } + }, + { + "kind": "field", + "name": "singleOption", + "privacy": "public", + "type": { + "type": "boolean" + } + }, + { + "kind": "field", + "name": "checkedIndex", + "privacy": "public", + "type": { + "type": "number | number[]" + } + }, + { + "kind": "field", + "name": "activeIndex", + "privacy": "public", + "type": { + "type": "number" + } + }, + { + "kind": "field", + "name": "formElements", + "privacy": "public", + "type": { + "type": "LionOption[]" + } + }, + { + "kind": "method", + "name": "setCheckedIndex", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + }, + "parameters": [ + { + "name": "index", + "type": { + "type": "number | number[]" + } + } + ] + }, + { + "kind": "method", + "name": "reset", + "privacy": "public", + "description": "Reset interaction states and modelValue", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "field", + "name": "_scrollTargetNode", + "privacy": "protected", + "type": { + "type": "LionOptions" + } + }, + { + "kind": "field", + "name": "_listboxNode", + "privacy": "protected", + "type": { + "type": "LionOptions" + } + }, + { + "kind": "field", + "name": "_listboxReceivesNoFocus", + "privacy": "protected", + "type": { + "type": "boolean" + } + }, + { + "kind": "method", + "name": "_uncheckChildren", + "privacy": "protected", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "__setupListboxNode", + "privacy": "private", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "_getPreviousEnabledOption", + "privacy": "protected", + "return": { + "type": { + "type": "number" + } + }, + "parameters": [ + { + "name": "currentIndex", + "type": { + "type": "number" + } + }, + { + "name": "offset", + "type": { + "type": "number" + } + } + ] + }, + { + "kind": "method", + "name": "_getNextEnabledOption", + "privacy": "protected", + "return": { + "type": { + "type": "number" + } + }, + "parameters": [ + { + "name": "currentIndex", + "type": { + "type": "number" + } + }, + { + "name": "offset", + "type": { + "type": "number" + } + } + ] + }, + { + "kind": "method", + "name": "_listboxOnKeyDown", + "privacy": "protected", + "return": { + "type": { + "type": "void" + } + }, + "parameters": [ + { + "name": "ev", + "type": { + "type": "KeyboardEvent" + } + } + ] + }, + { + "kind": "method", + "name": "_listboxOnKeyUp", + "privacy": "protected", + "return": { + "type": { + "type": "void" + } + }, + "parameters": [ + { + "name": "ev", + "type": { + "type": "KeyboardEvent" + } + } + ] + }, + { + "kind": "method", + "name": "_setupListboxNode", + "privacy": "protected", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "_teardownListboxNode", + "privacy": "protected", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "_listboxOnClick", + "privacy": "protected", + "return": { + "type": { + "type": "void" + } + }, + "parameters": [ + { + "name": "ev", + "type": { + "type": "MouseEvent" + } + } + ] + }, + { + "kind": "method", + "name": "_setupListboxInteractions", + "privacy": "protected", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "_onChildActiveChanged", + "privacy": "protected", + "return": { + "type": { + "type": "void" + } + }, + "parameters": [ + { + "name": "ev", + "type": { + "type": "Event" + } + } + ] + }, + { + "kind": "field", + "name": "_activeDescendantOwnerNode", + "privacy": "protected", + "type": { + "type": "HTMLElement" + } + } + ] + }, + { + "kind": "function", + "name": "ListboxImplementation", + "return": { + "type": { + "type": "T &\n Constructor &\n typeof ListboxHost &\n Constructor &\n typeof ChoiceGroupHost &\n Constructor &\n typeof SlotHost &\n Constructor &\n typeof FormRegistrarHost &\n Constructor &\n typeof FormControlHost" + } + }, + "parameters": [ + { + "name": "superclass", + "type": { + "type": "T" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "ListboxHost", + "declaration": { + "name": "ListboxHost", + "module": "./types/ListboxMixinTypes.d.ts" + } + }, + { + "kind": "js", + "name": "ListboxImplementation", + "declaration": { + "name": "ListboxImplementation", + "module": "./types/ListboxMixinTypes.d.ts" + } + } + ] + } + ] +} diff --git a/packages/listbox/package.json b/packages/listbox/package.json index 7756047ce..91e2bbb25 100644 --- a/packages/listbox/package.json +++ b/packages/listbox/package.json @@ -23,6 +23,7 @@ "types" ], "scripts": { + "custom-elements-manifest": "custom-elements-manifest analyze --exclude 'docs/**/*'", "debug": "cd ../../ && npm run debug -- --group listbox", "debug:firefox": "cd ../../ && npm run debug:firefox -- --group listbox", "debug:webkit": "cd ../../ && npm run debug:webkit -- --group listbox", @@ -53,5 +54,6 @@ "./lion-listbox": "./lion-listbox.js", "./lion-option": "./lion-option.js", "./lion-options": "./lion-options.js" - } + }, + "customElementsManifest": "custom-elements.json" } diff --git a/packages/localize/custom-elements.json b/packages/localize/custom-elements.json new file mode 100644 index 000000000..8931d249c --- /dev/null +++ b/packages/localize/custom-elements.json @@ -0,0 +1,2709 @@ +{ + "schemaVersion": "experimental", + "readme": "", + "modules": [ + { + "kind": "javascript-module", + "path": "./index.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "formatDate", + "declaration": { + "name": "formatDate", + "module": "./src/date/formatDate.js" + } + }, + { + "kind": "js", + "name": "getDateFormatBasedOnLocale", + "declaration": { + "name": "getDateFormatBasedOnLocale", + "module": "./src/date/getDateFormatBasedOnLocale.js" + } + }, + { + "kind": "js", + "name": "getMonthNames", + "declaration": { + "name": "getMonthNames", + "module": "./src/date/getMonthNames.js" + } + }, + { + "kind": "js", + "name": "getWeekdayNames", + "declaration": { + "name": "getWeekdayNames", + "module": "./src/date/getWeekdayNames.js" + } + }, + { + "kind": "js", + "name": "normalizeDateTime", + "declaration": { + "name": "normalizeDateTime", + "module": "./src/date/normalizeDateTime.js" + } + }, + { + "kind": "js", + "name": "parseDate", + "declaration": { + "name": "parseDate", + "module": "./src/date/parseDate.js" + } + }, + { + "kind": "js", + "name": "formatNumber", + "declaration": { + "name": "formatNumber", + "module": "./src/number/formatNumber.js" + } + }, + { + "kind": "js", + "name": "formatNumberToParts", + "declaration": { + "name": "formatNumberToParts", + "module": "./src/number/formatNumberToParts.js" + } + }, + { + "kind": "js", + "name": "getCurrencyName", + "declaration": { + "name": "getCurrencyName", + "module": "./src/number/getCurrencyName.js" + } + }, + { + "kind": "js", + "name": "getDecimalSeparator", + "declaration": { + "name": "getDecimalSeparator", + "module": "./src/number/getDecimalSeparator.js" + } + }, + { + "kind": "js", + "name": "getFractionDigits", + "declaration": { + "name": "getFractionDigits", + "module": "./src/number/getFractionDigits.js" + } + }, + { + "kind": "js", + "name": "getGroupSeparator", + "declaration": { + "name": "getGroupSeparator", + "module": "./src/number/getGroupSeparator.js" + } + }, + { + "kind": "js", + "name": "localize", + "declaration": { + "name": "localize", + "module": "./src/localize.js" + } + }, + { + "kind": "js", + "name": "setLocalize", + "declaration": { + "name": "setLocalize", + "module": "./src/localize.js" + } + }, + { + "kind": "js", + "name": "LocalizeManager", + "declaration": { + "name": "LocalizeManager", + "module": "./src/LocalizeManager.js" + } + }, + { + "kind": "js", + "name": "LocalizeMixin", + "declaration": { + "name": "LocalizeMixin", + "module": "./src/LocalizeMixin.js" + } + }, + { + "kind": "js", + "name": "normalizeCurrencyLabel", + "declaration": { + "name": "normalizeCurrencyLabel", + "module": "./src/number/normalizeCurrencyLabel.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./test-helpers.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "fakeImport", + "declaration": { + "name": "fakeImport", + "module": "./test-helpers/fake-imports.js" + } + }, + { + "kind": "js", + "name": "resetFakeImport", + "declaration": { + "name": "resetFakeImport", + "module": "./test-helpers/fake-imports.js" + } + }, + { + "kind": "js", + "name": "setupEmptyFakeImportsFor", + "declaration": { + "name": "setupEmptyFakeImportsFor", + "module": "./test-helpers/fake-imports.js" + } + }, + { + "kind": "js", + "name": "setupFakeImport", + "declaration": { + "name": "setupFakeImport", + "module": "./test-helpers/fake-imports.js" + } + }, + { + "kind": "js", + "name": "localizeTearDown", + "declaration": { + "name": "localizeTearDown", + "module": "./test-helpers/localizeTearDown.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/all-locales.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./docs/all-locales.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/LocalizeManager.js", + "declarations": [ + { + "kind": "class", + "name": "LocalizeManager", + "events": [ + { + "name": "localeChanged", + "type": { + "type": "CustomEvent" + } + } + ], + "members": [ + { + "kind": "method", + "name": "_setupTranslationToolSupport", + "privacy": "public" + }, + { + "kind": "method", + "name": "teardown", + "privacy": "public" + }, + { + "kind": "field", + "name": "locale", + "privacy": "public" + }, + { + "kind": "method", + "name": "_setHtmlLangAttribute", + "privacy": "public", + "parameters": [ + { + "name": "locale", + "type": { + "type": "string" + } + } + ] + }, + { + "kind": "method", + "name": "__handleLanguageOnly", + "privacy": "public", + "parameters": [ + { + "name": "value", + "type": { + "type": "string" + } + } + ] + }, + { + "kind": "field", + "name": "loadingComplete", + "privacy": "public" + }, + { + "kind": "method", + "name": "reset", + "privacy": "public" + }, + { + "kind": "method", + "name": "addData", + "privacy": "public", + "parameters": [ + { + "name": "locale", + "type": { + "type": "string" + } + }, + { + "name": "namespace", + "type": { + "type": "string" + } + }, + { + "name": "data", + "type": { + "type": "object" + } + } + ] + }, + { + "kind": "method", + "name": "setupNamespaceLoader", + "privacy": "public", + "parameters": [ + { + "name": "pattern", + "type": { + "type": "RegExp|string" + } + }, + { + "name": "loader", + "type": { + "type": "function" + } + } + ] + }, + { + "kind": "method", + "name": "loadNamespaces", + "privacy": "public", + "return": { + "type": { + "type": "Promise." + } + }, + "parameters": [ + { + "name": "namespaces", + "type": { + "type": "NamespaceObject[]" + } + }, + { + "name": "options", + "type": { + "type": "Object" + }, + "optional": true + }, + { + "name": "options.locale", + "type": { + "type": "string" + }, + "optional": true + } + ] + }, + { + "kind": "method", + "name": "loadNamespace", + "privacy": "public", + "return": { + "type": { + "type": "Promise." + } + }, + "parameters": [ + { + "name": "namespaceObj", + "type": { + "type": "NamespaceObject" + } + }, + { + "name": "options", + "type": { + "type": "Object" + }, + "optional": true + }, + { + "name": "options.locale", + "type": { + "type": "string" + }, + "optional": true + } + ] + }, + { + "kind": "method", + "name": "msg", + "privacy": "public", + "return": { + "type": { + "type": "string" + } + }, + "parameters": [ + { + "name": "keys", + "type": { + "type": "string | string[]" + } + }, + { + "name": "vars", + "type": { + "type": "Object." + }, + "optional": true + }, + { + "name": "opts", + "type": { + "type": "Object" + }, + "optional": true, + "default": "{}" + }, + { + "name": "opts.locale", + "type": { + "type": "string" + }, + "optional": true + } + ] + }, + { + "kind": "method", + "name": "_setupHtmlLangAttributeObserver", + "privacy": "public" + }, + { + "kind": "method", + "name": "_teardownHtmlLangAttributeObserver", + "privacy": "public" + }, + { + "kind": "method", + "name": "_isNamespaceInCache", + "privacy": "public", + "parameters": [ + { + "name": "locale", + "type": { + "type": "string" + } + }, + { + "name": "namespace", + "type": { + "type": "string" + } + } + ] + }, + { + "kind": "method", + "name": "_getCachedNamespaceLoaderPromise", + "privacy": "public", + "parameters": [ + { + "name": "locale", + "type": { + "type": "string" + } + }, + { + "name": "namespace", + "type": { + "type": "string" + } + } + ] + }, + { + "kind": "method", + "name": "_loadNamespaceData", + "privacy": "public", + "return": { + "type": { + "type": "Promise." + } + }, + "parameters": [ + { + "name": "locale", + "type": { + "type": "string" + } + }, + { + "name": "namespaceObj", + "type": { + "type": "NamespaceObject" + } + }, + { + "name": "isDynamicImport", + "type": { + "type": "boolean" + } + }, + { + "name": "namespace", + "type": { + "type": "string" + } + } + ] + }, + { + "kind": "method", + "name": "_getNamespaceLoader", + "privacy": "public", + "parameters": [ + { + "name": "namespaceObj", + "type": { + "type": "NamespaceObject" + } + }, + { + "name": "isDynamicImport", + "type": { + "type": "boolean" + } + }, + { + "name": "namespace", + "type": { + "type": "string" + } + } + ] + }, + { + "kind": "method", + "name": "_getNamespaceLoaderPromise", + "privacy": "public", + "return": { + "type": { + "type": "Promise." + } + }, + "parameters": [ + { + "name": "loader", + "type": { + "type": "function" + } + }, + { + "name": "locale", + "type": { + "type": "string" + } + }, + { + "name": "namespace", + "type": { + "type": "string" + } + }, + { + "name": "fallbackLocale", + "type": { + "type": "string" + }, + "optional": true, + "default": "this._fallbackLocale" + } + ] + }, + { + "kind": "method", + "name": "_cacheNamespaceLoaderPromise", + "privacy": "public", + "parameters": [ + { + "name": "locale", + "type": { + "type": "string" + } + }, + { + "name": "namespace", + "type": { + "type": "string" + } + }, + { + "name": "promise", + "type": { + "type": "Promise." + } + } + ] + }, + { + "kind": "method", + "name": "_lookupNamespaceLoader", + "privacy": "public", + "return": { + "type": { + "type": "function|null" + } + }, + "parameters": [ + { + "name": "namespace", + "type": { + "type": "string" + } + } + ] + }, + { + "kind": "method", + "name": "_getLangFromLocale", + "privacy": "public", + "return": { + "type": { + "type": "string" + } + }, + "parameters": [ + { + "name": "locale", + "type": { + "type": "string" + } + } + ] + }, + { + "kind": "method", + "name": "addEventListener", + "privacy": "public", + "parameters": [ + { + "name": "type", + "type": { + "type": "string" + } + }, + { + "name": "listener", + "type": { + "type": "EventListener" + } + }, + { + "name": "options", + "type": { + "type": "...Object" + } + } + ] + }, + { + "kind": "method", + "name": "removeEventListener", + "privacy": "public", + "parameters": [ + { + "name": "type", + "type": { + "type": "string" + } + }, + { + "name": "listener", + "type": { + "type": "EventListener" + } + }, + { + "name": "options", + "type": { + "type": "...Object" + } + } + ] + }, + { + "kind": "method", + "name": "dispatchEvent", + "privacy": "public", + "parameters": [ + { + "name": "event", + "type": { + "type": "CustomEvent" + } + } + ] + }, + { + "kind": "method", + "name": "_onLocaleChanged", + "privacy": "public", + "return": { + "type": { + "type": "undefined" + } + }, + "parameters": [ + { + "name": "newLocale", + "type": { + "type": "string" + } + }, + { + "name": "oldLocale", + "type": { + "type": "string" + } + } + ] + }, + { + "kind": "method", + "name": "_loadAllMissing", + "privacy": "public", + "return": { + "type": { + "type": "Promise." + } + }, + "parameters": [ + { + "name": "newLocale", + "type": { + "type": "string" + } + }, + { + "name": "oldLocale", + "type": { + "type": "string" + } + } + ] + }, + { + "kind": "method", + "name": "_getMessageForKeys", + "privacy": "public", + "return": { + "type": { + "type": "string | undefined" + } + }, + "parameters": [ + { + "name": "keys", + "type": { + "type": "string | string[]" + } + }, + { + "name": "locale", + "type": { + "type": "string" + } + } + ] + }, + { + "kind": "method", + "name": "_getMessageForKey", + "privacy": "public", + "return": { + "type": { + "type": "string" + } + }, + "parameters": [ + { + "name": "key", + "type": { + "type": "string | undefined" + } + }, + { + "name": "locale", + "type": { + "type": "string" + } + } + ] + }, + { + "kind": "method", + "name": "setDatePostProcessorForLocale", + "privacy": "public", + "parameters": [ + { + "name": "options", + "type": { + "type": "{locale:string, postProcessor:DatePostProcessor}" + } + } + ] + }, + { + "kind": "method", + "name": "setNumberPostProcessorForLocale", + "privacy": "public", + "parameters": [ + { + "name": "options", + "type": { + "type": "{locale:string, postProcessor:NumberPostProcessor}" + } + } + ] + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "LocalizeManager", + "declaration": { + "name": "LocalizeManager", + "module": "./src/LocalizeManager.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/LocalizeMixin.js", + "declarations": [ + { + "kind": "mixin", + "name": "LocalizeMixin", + "superclass": { + "name": "superclass", + "module": "./src/LocalizeMixin.js" + }, + "members": [ + { + "kind": "field", + "name": "localizeNamespaces", + "static": true, + "privacy": "public" + }, + { + "kind": "field", + "name": "waitForLocalizeNamespaces", + "static": true, + "privacy": "public" + }, + { + "kind": "method", + "name": "performUpdate", + "privacy": "public", + "description": "hook into LitElement to only render once all translations are loaded", + "return": { + "type": { + "type": "Promise." + } + } + }, + { + "kind": "method", + "name": "connectedCallback", + "privacy": "public" + }, + { + "kind": "method", + "name": "disconnectedCallback", + "privacy": "public" + }, + { + "kind": "method", + "name": "msgLit", + "privacy": "public", + "return": { + "type": { + "type": "string | function" + } + }, + "parameters": [ + { + "name": "keys", + "type": { + "type": "string | string[]" + } + }, + { + "name": "variables", + "type": { + "type": "Object." + } + }, + { + "name": "options", + "type": { + "type": "Object" + }, + "optional": true + }, + { + "name": "options.locale", + "type": { + "type": "string" + }, + "optional": true + } + ] + }, + { + "kind": "method", + "name": "__getUniqueNamespaces", + "privacy": "public", + "return": { + "type": { + "type": "string[]" + } + } + }, + { + "kind": "method", + "name": "__localizeStartLoadingNamespaces", + "privacy": "public" + }, + { + "kind": "method", + "name": "__localizeAddLocaleChangedListener", + "privacy": "public" + }, + { + "kind": "method", + "name": "__localizeRemoveLocaleChangedListener", + "privacy": "public" + }, + { + "kind": "method", + "name": "__localizeOnLocaleChanged", + "privacy": "public", + "parameters": [ + { + "name": "event", + "type": { + "type": "CustomEvent" + } + } + ] + }, + { + "kind": "method", + "name": "onLocaleReady", + "privacy": "public" + }, + { + "kind": "method", + "name": "onLocaleChanged", + "privacy": "public", + "parameters": [ + { + "name": "newLocale", + "type": { + "type": "string" + } + }, + { + "name": "oldLocale", + "type": { + "type": "string" + } + } + ] + }, + { + "kind": "method", + "name": "onLocaleUpdated", + "privacy": "public" + } + ] + }, + { + "kind": "variable", + "name": "LocalizeMixin" + } + ], + "exports": [ + { + "kind": "js", + "name": "LocalizeMixin", + "declaration": { + "name": "LocalizeMixin", + "module": "./src/LocalizeMixin.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/isLocalizeESModule.js", + "declarations": [ + { + "kind": "function", + "name": "default", + "return": { + "type": { + "type": "boolean" + } + }, + "parameters": [ + { + "name": "obj", + "type": { + "type": "Object." + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "name": "default", + "module": "./src/isLocalizeESModule.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/localize.js", + "declarations": [ + { + "kind": "variable", + "name": "localize", + "description": "", + "type": { + "type": "LocalizeManager" + } + }, + { + "kind": "function", + "name": "setLocalize", + "parameters": [ + { + "name": "newLocalize", + "type": { + "type": "LocalizeManager" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "localize", + "declaration": { + "name": "localize", + "module": "./src/localize.js" + } + }, + { + "kind": "js", + "name": "setLocalize", + "declaration": { + "name": "setLocalize", + "module": "./src/localize.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./test/test-esmodule-default.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./test/test-esmodule-default.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./test-helpers/fake-imports.js", + "declarations": [ + { + "kind": "function", + "name": "setupFakeImport", + "parameters": [ + { + "name": "path", + "type": { + "type": "string" + } + }, + { + "name": "data", + "type": { + "type": "Object" + } + } + ] + }, + { + "kind": "function", + "name": "setupEmptyFakeImportsFor", + "parameters": [ + { + "name": "namespaces", + "type": { + "type": "string[]" + } + }, + { + "name": "locales", + "type": { + "type": "string[]" + } + } + ] + }, + { + "kind": "function", + "name": "resetFakeImport" + }, + { + "kind": "function", + "name": "fakeImport", + "return": { + "type": { + "type": "Promise." + } + }, + "parameters": [ + { + "name": "path", + "type": { + "type": "string" + } + }, + { + "name": "ms", + "type": { + "type": "number" + }, + "optional": true, + "default": "0" + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "setupFakeImport", + "declaration": { + "name": "setupFakeImport", + "module": "./test-helpers/fake-imports.js" + } + }, + { + "kind": "js", + "name": "setupEmptyFakeImportsFor", + "declaration": { + "name": "setupEmptyFakeImportsFor", + "module": "./test-helpers/fake-imports.js" + } + }, + { + "kind": "js", + "name": "resetFakeImport", + "declaration": { + "name": "resetFakeImport", + "module": "./test-helpers/fake-imports.js" + } + }, + { + "kind": "js", + "name": "fakeImport", + "declaration": { + "name": "fakeImport", + "module": "./test-helpers/fake-imports.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./test-helpers/localizeTearDown.js", + "declarations": [ + { + "kind": "variable", + "name": "localizeTearDown" + } + ], + "exports": [ + { + "kind": "js", + "name": "localizeTearDown", + "declaration": { + "name": "localizeTearDown", + "module": "./test-helpers/localizeTearDown.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./types/LocalizeMixinTypes.d.ts", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "./types/index.d.ts", + "declarations": [ + { + "kind": "variable", + "name": "main" + }, + { + "kind": "variable", + "name": "fetchMock", + "type": { + "type": "any" + } + } + ], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "name": "main", + "module": "./types/index.d.ts" + } + }, + { + "kind": "js", + "name": "fetchMock", + "declaration": { + "name": "fetchMock", + "module": "./types/index.d.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/translations/en-AU.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./docs/translations/en-AU.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/translations/en-GB.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./docs/translations/en-GB.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/translations/en-US.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./docs/translations/en-US.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/translations/en.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./docs/translations/en.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/translations/nl-BE.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./docs/translations/nl-BE.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/translations/nl-NL.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./docs/translations/nl-NL.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/translations/nl.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./docs/translations/nl.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/date/formatDate.js", + "declarations": [ + { + "kind": "function", + "name": "formatDate", + "description": "Formats date based on locale and options", + "return": { + "type": { + "type": "string" + } + }, + "parameters": [ + { + "name": "date", + "type": { + "type": "Date" + } + }, + { + "name": "options", + "type": { + "type": "FormatDateOptions" + }, + "description": "Intl options are available", + "optional": true + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "formatDate", + "declaration": { + "name": "formatDate", + "module": "./src/date/formatDate.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/date/getDateFormatBasedOnLocale.js", + "declarations": [ + { + "kind": "function", + "name": "getDateFormatBasedOnLocale", + "description": "To compute the localized date format", + "return": { + "type": { + "type": "string" + } + } + } + ], + "exports": [ + { + "kind": "js", + "name": "getDateFormatBasedOnLocale", + "declaration": { + "name": "getDateFormatBasedOnLocale", + "module": "./src/date/getDateFormatBasedOnLocale.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/date/getMonthNames.js", + "declarations": [ + { + "kind": "function", + "name": "getMonthNames", + "return": { + "type": { + "type": "string[]" + } + }, + "parameters": [ + { + "name": "options", + "type": { + "type": "Object" + }, + "optional": true + }, + { + "name": "options.locale", + "type": { + "type": "string" + }, + "description": "locale", + "optional": true + }, + { + "name": "options.style", + "type": { + "type": "string" + }, + "description": "long, short or narrow", + "optional": true + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "getMonthNames", + "declaration": { + "name": "getMonthNames", + "module": "./src/date/getMonthNames.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/date/getWeekdayNames.js", + "declarations": [ + { + "kind": "function", + "name": "getWeekdayNames", + "return": { + "type": { + "type": "string[]" + } + }, + "parameters": [ + { + "name": "options", + "type": { + "type": "Object" + }, + "optional": true + }, + { + "name": "options.locale", + "type": { + "type": "string" + }, + "description": "locale", + "optional": true + }, + { + "name": "options.style", + "type": { + "type": "string" + }, + "description": "long, short or narrow", + "optional": true + }, + { + "name": "options.firstDayOfWeek", + "type": { + "type": "number" + }, + "description": "0 (Sunday), 1 (Monday), etc...", + "optional": true + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "getWeekdayNames", + "declaration": { + "name": "getWeekdayNames", + "module": "./src/date/getWeekdayNames.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/date/normalizeDateTime.js", + "declarations": [ + { + "kind": "function", + "name": "normalizeDateTime", + "return": { + "type": { + "type": "Date" + } + }, + "parameters": [ + { + "name": "date", + "type": { + "type": "Date" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "normalizeDateTime", + "declaration": { + "name": "normalizeDateTime", + "module": "./src/date/normalizeDateTime.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/date/parseDate.js", + "declarations": [ + { + "kind": "function", + "name": "parseDate", + "description": "To parse a date into the right format", + "return": { + "type": { + "type": "Date | undefined" + } + }, + "parameters": [ + { + "name": "dateString", + "type": { + "type": "string" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "parseDate", + "declaration": { + "name": "parseDate", + "module": "./src/date/parseDate.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/number/formatNumber.js", + "declarations": [ + { + "kind": "function", + "name": "formatNumber", + "description": "Formats a number based on locale and options. It uses Intl for the formatting.", + "return": { + "type": { + "type": "string" + } + }, + "parameters": [ + { + "name": "number", + "type": { + "type": "number" + }, + "description": "Number to be formatted" + }, + { + "name": "options", + "type": { + "type": "FormatOptions" + }, + "description": "Intl options are available extended by roundMode and returnIfNaN", + "optional": true, + "default": "({})" + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "formatNumber", + "declaration": { + "name": "formatNumber", + "module": "./src/number/formatNumber.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/number/formatNumberToParts.js", + "declarations": [ + { + "kind": "function", + "name": "roundNumber", + "description": "Round the number based on the options", + "return": { + "type": { + "type": "number" + } + }, + "parameters": [ + { + "name": "number", + "type": { + "type": "number" + } + }, + { + "name": "roundMode", + "type": { + "type": "string" + } + } + ] + }, + { + "kind": "function", + "name": "formatNumberToParts", + "description": "Splits a number up in parts for integer, fraction, group, literal, decimal and currency.", + "return": { + "type": { + "type": "string | FormatNumberPart[]" + } + }, + "parameters": [ + { + "name": "number", + "type": { + "type": "number" + }, + "description": "Number to split up" + }, + { + "name": "options", + "type": { + "type": "FormatNumberOptions" + }, + "description": "Intl options are available extended by roundMode,returnIfNaN", + "optional": true, + "default": "{}" + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "roundNumber", + "declaration": { + "name": "roundNumber", + "module": "./src/number/formatNumberToParts.js" + } + }, + { + "kind": "js", + "name": "formatNumberToParts", + "declaration": { + "name": "formatNumberToParts", + "module": "./src/number/formatNumberToParts.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/number/getCurrencyName.js", + "declarations": [ + { + "kind": "function", + "name": "getCurrencyName", + "description": "Based on number, returns currency name like 'US dollar'", + "return": { + "type": { + "type": "string" + } + }, + "parameters": [ + { + "name": "currencyIso", + "type": { + "type": "string" + }, + "description": "iso code like USD" + }, + { + "name": "options", + "type": { + "type": "FormatNumberOptions" + }, + "description": "Intl options are available extended by roundMode", + "optional": true + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "getCurrencyName", + "declaration": { + "name": "getCurrencyName", + "module": "./src/number/getCurrencyName.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/number/getDecimalSeparator.js", + "declarations": [ + { + "kind": "function", + "name": "getDecimalSeparator", + "description": "To get the decimal separator", + "return": { + "type": { + "type": "string" + } + }, + "parameters": [ + { + "name": "locale", + "type": { + "type": "string" + }, + "description": "To override the browser locale", + "optional": true + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "getDecimalSeparator", + "declaration": { + "name": "getDecimalSeparator", + "module": "./src/number/getDecimalSeparator.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/number/getFractionDigits.js", + "declarations": [ + { + "kind": "function", + "name": "getFractionDigits", + "return": { + "type": { + "type": "number" + } + }, + "parameters": [ + { + "name": "currency", + "type": { + "type": "string" + }, + "description": "Currency code e.g. EUR", + "optional": true, + "default": "'EUR'" + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "getFractionDigits", + "declaration": { + "name": "getFractionDigits", + "module": "./src/number/getFractionDigits.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/number/getGroupSeparator.js", + "declarations": [ + { + "kind": "function", + "name": "getGroupSeparator", + "description": "Gets the group separator", + "return": { + "type": { + "type": "string" + } + }, + "parameters": [ + { + "name": "locale", + "type": { + "type": "string" + }, + "description": "To override the browser locale", + "optional": true + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "getGroupSeparator", + "declaration": { + "name": "getGroupSeparator", + "module": "./src/number/getGroupSeparator.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/number/normalizeCurrencyLabel.js", + "declarations": [ + { + "kind": "function", + "name": "normalizeCurrencyLabel", + "description": "For Turkey fixes currency label with locale options", + "return": { + "type": { + "type": "string" + } + }, + "parameters": [ + { + "name": "currency", + "type": { + "type": "string" + } + }, + { + "name": "locale", + "type": { + "type": "string" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "normalizeCurrencyLabel", + "declaration": { + "name": "normalizeCurrencyLabel", + "module": "./src/number/normalizeCurrencyLabel.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/utils/getLocale.js", + "declarations": [ + { + "kind": "function", + "name": "getLocale", + "description": "Gets the locale to use", + "return": { + "type": { + "type": "string" + } + }, + "parameters": [ + { + "name": "locale", + "type": { + "type": "string" + }, + "description": "Locale to override browser locale", + "optional": true + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "getLocale", + "declaration": { + "name": "getLocale", + "module": "./src/utils/getLocale.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/date/utils/addLeadingZero.js", + "declarations": [ + { + "kind": "function", + "name": "addLeadingZero", + "description": "To add a leading zero to a single number", + "return": { + "type": { + "type": "string" + } + }, + "parameters": [ + { + "name": "dateString", + "type": { + "type": "string" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "addLeadingZero", + "declaration": { + "name": "addLeadingZero", + "module": "./src/date/utils/addLeadingZero.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/date/utils/clean.js", + "declarations": [ + { + "kind": "function", + "name": "clean", + "description": "To clean date from added characters from IE", + "return": { + "type": { + "type": "string" + } + }, + "parameters": [ + { + "name": "dateAsString", + "type": { + "type": "string" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "clean", + "declaration": { + "name": "clean", + "module": "./src/date/utils/clean.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/date/utils/forceShortMonthNamesForEnGb.js", + "declarations": [ + { + "kind": "function", + "name": "forceShortMonthNamesForEnGb", + "parameters": [ + { + "name": "months", + "type": { + "type": "string[]" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "forceShortMonthNamesForEnGb", + "declaration": { + "name": "forceShortMonthNamesForEnGb", + "module": "./src/date/utils/forceShortMonthNamesForEnGb.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/date/utils/normalizeIntlDate.js", + "declarations": [ + { + "kind": "function", + "name": "normalizeIntlDate", + "description": "To filter out some added characters in IE", + "return": { + "type": { + "type": "string" + } + }, + "parameters": [ + { + "name": "str", + "type": { + "type": "string" + } + }, + { + "name": "locale", + "type": { + "type": "string" + }, + "optional": true, + "default": "''" + }, + { + "name": "options", + "type": { + "type": "FormatDateOptions" + }, + "description": "Intl options are available", + "optional": true + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "normalizeIntlDate", + "declaration": { + "name": "normalizeIntlDate", + "module": "./src/date/utils/normalizeIntlDate.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/date/utils/pad.js", + "declarations": [ + { + "kind": "function", + "name": "pad", + "description": "To get the absolute value of a number.", + "return": { + "type": { + "type": "string" + } + }, + "parameters": [ + { + "name": "n", + "type": { + "type": "string" + }, + "description": "number in string format" + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "pad", + "declaration": { + "name": "pad", + "module": "./src/date/utils/pad.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/date/utils/sanitizedDateTimeFormat.js", + "declarations": [ + { + "kind": "function", + "name": "sanitizedDateTimeFormat", + "description": "To sanitize a date from IE11 handling", + "return": { + "type": { + "type": "string" + } + }, + "parameters": [ + { + "name": "date", + "type": { + "type": "Date" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "sanitizedDateTimeFormat", + "declaration": { + "name": "sanitizedDateTimeFormat", + "module": "./src/date/utils/sanitizedDateTimeFormat.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/date/utils/splitDate.js", + "declarations": [ + { + "kind": "function", + "name": "splitDate", + "description": "To split a date into days, months, years, etc", + "return": { + "type": { + "type": "ArrayLike. | null" + } + }, + "parameters": [ + { + "name": "dateAsString", + "type": { + "type": "string" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "splitDate", + "declaration": { + "name": "splitDate", + "module": "./src/date/utils/splitDate.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/date/utils/trim.js", + "declarations": [ + { + "kind": "function", + "name": "trim", + "description": "To trim the date", + "return": { + "type": { + "type": "string" + } + }, + "parameters": [ + { + "name": "dateAsString", + "type": { + "type": "string" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "trim", + "declaration": { + "name": "trim", + "module": "./src/date/utils/trim.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/number/utils/emptyStringWhenNumberNan.js", + "declarations": [ + { + "kind": "function", + "name": "emptyStringWhenNumberNan", + "description": "When number is NaN we should return an empty string or returnIfNaN param", + "return": { + "type": { + "type": "string" + } + }, + "parameters": [ + { + "name": "returnIfNaN", + "type": { + "type": "string|undefined" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "emptyStringWhenNumberNan", + "declaration": { + "name": "emptyStringWhenNumberNan", + "module": "./src/number/utils/emptyStringWhenNumberNan.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/number/utils/normalSpaces.js", + "declarations": [ + { + "kind": "function", + "name": "normalSpaces", + "return": { + "type": { + "type": "string" + } + }, + "parameters": [ + { + "name": "value", + "type": { + "type": "string" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "normalSpaces", + "declaration": { + "name": "normalSpaces", + "module": "./src/number/utils/normalSpaces.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/number/utils/normalize-get-currency-name/forceCurrencyNameForPHPEnGB.js", + "declarations": [ + { + "kind": "function", + "name": "forceCurrencyNameForPHPEnGB", + "parameters": [ + { + "name": "currencyName", + "type": { + "type": "string" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "forceCurrencyNameForPHPEnGB", + "declaration": { + "name": "forceCurrencyNameForPHPEnGB", + "module": "./src/number/utils/normalize-get-currency-name/forceCurrencyNameForPHPEnGB.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/number/utils/normalize-format-number-to-parts/forceAddGroupSeparators.js", + "declarations": [ + { + "kind": "function", + "name": "forceAddGroupSeparators", + "description": "Add separators when they are not present", + "return": { + "type": { + "type": "FormatNumberPart[]" + } + }, + "parameters": [ + { + "name": "formattedParts", + "type": { + "type": "FormatNumberPart[]" + } + }, + { + "name": "groupSeparator", + "type": { + "type": "string" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "forceAddGroupSeparators", + "declaration": { + "name": "forceAddGroupSeparators", + "module": "./src/number/utils/normalize-format-number-to-parts/forceAddGroupSeparators.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/number/utils/normalize-format-number-to-parts/forceCurrencyToEnd.js", + "declarations": [ + { + "kind": "function", + "name": "forceCurrencyToEnd", + "description": "For Dutch and Belgian amounts the currency should be at the end of the string", + "return": { + "type": { + "type": "FormatNumberPart[]" + } + }, + "parameters": [ + { + "name": "formattedParts", + "type": { + "type": "FormatNumberPart[]" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "forceCurrencyToEnd", + "declaration": { + "name": "forceCurrencyToEnd", + "module": "./src/number/utils/normalize-format-number-to-parts/forceCurrencyToEnd.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/number/utils/normalize-format-number-to-parts/forceENAUSymbols.js", + "declarations": [ + { + "kind": "function", + "name": "forceENAUSymbols", + "description": "Change the symbols for locale 'en-AU', due to bug in Chrome", + "return": { + "type": { + "type": "FormatNumberPart[]" + } + }, + "parameters": [ + { + "name": "formattedParts", + "type": { + "type": "FormatNumberPart[]" + } + }, + { + "name": "options", + "type": { + "type": "FormatNumberOptions" + }, + "optional": true + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "forceENAUSymbols", + "declaration": { + "name": "forceENAUSymbols", + "module": "./src/number/utils/normalize-format-number-to-parts/forceENAUSymbols.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/number/utils/normalize-format-number-to-parts/forceNormalSpaces.js", + "declarations": [ + { + "kind": "function", + "name": "forceNormalSpaces", + "description": "Parts with forced \"normal\" spaces", + "return": { + "type": { + "type": "FormatNumberPart[]" + } + }, + "parameters": [ + { + "name": "formattedParts", + "type": { + "type": "FormatNumberPart[]" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "forceNormalSpaces", + "declaration": { + "name": "forceNormalSpaces", + "module": "./src/number/utils/normalize-format-number-to-parts/forceNormalSpaces.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/number/utils/normalize-format-number-to-parts/forceSpaceBetweenCurrencyCodeAndNumber.js", + "declarations": [ + { + "kind": "function", + "name": "forceSpaceBetweenCurrencyCodeAndNumber", + "description": "When in some locales there is no space between currency and amount it is added", + "return": { + "type": { + "type": "FormatNumberPart[]" + } + }, + "parameters": [ + { + "name": "formattedParts", + "type": { + "type": "FormatNumberPart[]" + } + }, + { + "name": "options", + "type": { + "type": "FormatNumberOptions" + }, + "optional": true + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "forceSpaceBetweenCurrencyCodeAndNumber", + "declaration": { + "name": "forceSpaceBetweenCurrencyCodeAndNumber", + "module": "./src/number/utils/normalize-format-number-to-parts/forceSpaceBetweenCurrencyCodeAndNumber.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/number/utils/normalize-format-number-to-parts/forceSpaceInsteadOfZeroForGroup.js", + "declarations": [ + { + "kind": "function", + "name": "forceSpaceInsteadOfZeroForGroup", + "return": { + "type": { + "type": "FormatNumberPart[]" + } + }, + "parameters": [ + { + "name": "formattedParts", + "type": { + "type": "FormatNumberPart[]" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "forceSpaceInsteadOfZeroForGroup", + "declaration": { + "name": "forceSpaceInsteadOfZeroForGroup", + "module": "./src/number/utils/normalize-format-number-to-parts/forceSpaceInsteadOfZeroForGroup.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/number/utils/normalize-format-number-to-parts/forceTryCurrencyCode.js", + "declarations": [ + { + "kind": "function", + "name": "forceTryCurrencyCode", + "return": { + "type": { + "type": "FormatNumberPart[]" + } + }, + "parameters": [ + { + "name": "formattedParts", + "type": { + "type": "FormatNumberPart[]" + } + }, + { + "name": "options", + "type": { + "type": "FormatNumberOptions" + }, + "optional": true + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "forceTryCurrencyCode", + "declaration": { + "name": "forceTryCurrencyCode", + "module": "./src/number/utils/normalize-format-number-to-parts/forceTryCurrencyCode.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/number/utils/normalize-format-number-to-parts/forceYenSymbol.js", + "declarations": [ + { + "kind": "function", + "name": "forceYenSymbol", + "return": { + "type": { + "type": "FormatNumberPart[]" + } + }, + "parameters": [ + { + "name": "formattedParts", + "type": { + "type": "FormatNumberPart[]" + } + }, + { + "name": "options", + "type": { + "type": "FormatNumberOptions" + }, + "optional": true + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "forceYenSymbol", + "declaration": { + "name": "forceYenSymbol", + "module": "./src/number/utils/normalize-format-number-to-parts/forceYenSymbol.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/number/utils/normalize-format-number-to-parts/normalizeIntl.js", + "declarations": [ + { + "kind": "function", + "name": "normalizeIntl", + "description": "Normalizes function \"formatNumberToParts\"", + "return": { + "type": { + "type": "FormatNumberPart[]" + } + }, + "parameters": [ + { + "name": "formattedParts", + "type": { + "type": "FormatNumberPart[]" + } + }, + { + "name": "options", + "type": { + "type": "FormatNumberOptions" + }, + "default": "{}" + }, + { + "name": "_locale", + "type": { + "type": "string" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "normalizeIntl", + "declaration": { + "name": "normalizeIntl", + "module": "./src/number/utils/normalize-format-number-to-parts/normalizeIntl.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/10-features-overview.md", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "./docs/20-numbers.md", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "./docs/30-dates.md", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "./docs/40-google-translate-integration.md", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "./docs/50-system-overview.md", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "./docs/60-system-rationale.md", + "declarations": [], + "exports": [] + } + ] +} diff --git a/packages/localize/package.json b/packages/localize/package.json index 25931b1f8..c6e2dc6fa 100644 --- a/packages/localize/package.json +++ b/packages/localize/package.json @@ -23,6 +23,7 @@ "types" ], "scripts": { + "custom-elements-manifest": "custom-elements-manifest analyze --exclude 'docs/**/*'", "debug": "cd ../../ && npm run debug -- --group localize", "debug:firefox": "cd ../../ && npm run debug:firefox -- --group localize", "debug:webkit": "cd ../../ && npm run debug:webkit -- --group localize", @@ -46,5 +47,6 @@ "exports": { ".": "./index.js", "./test-helpers": "./test-helpers.js" - } + }, + "customElementsManifest": "custom-elements.json" } diff --git a/packages/overlays/custom-elements.json b/packages/overlays/custom-elements.json new file mode 100644 index 000000000..1a73d17e7 --- /dev/null +++ b/packages/overlays/custom-elements.json @@ -0,0 +1,3035 @@ +{ + "schemaVersion": "experimental", + "readme": "", + "modules": [ + { + "kind": "javascript-module", + "path": "./index.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "globalOverlaysStyle", + "declaration": { + "name": "globalOverlaysStyle", + "module": "./src/globalOverlaysStyle.js" + } + }, + { + "kind": "js", + "name": "overlays", + "declaration": { + "name": "overlays", + "module": "./src/overlays.js" + } + }, + { + "kind": "js", + "name": "setOverlays", + "declaration": { + "name": "setOverlays", + "module": "./src/overlays.js" + } + }, + { + "kind": "js", + "name": "OverlaysManager", + "declaration": { + "name": "OverlaysManager", + "module": "./src/OverlaysManager.js" + } + }, + { + "kind": "js", + "name": "OverlayController", + "declaration": { + "name": "OverlayController", + "module": "./src/OverlayController.js" + } + }, + { + "kind": "js", + "name": "OverlayMixin", + "declaration": { + "name": "OverlayMixin", + "module": "./src/OverlayMixin.js" + } + }, + { + "kind": "js", + "name": "ArrowMixin", + "declaration": { + "name": "ArrowMixin", + "module": "./src/ArrowMixin.js" + } + }, + { + "kind": "js", + "name": "withBottomSheetConfig", + "declaration": { + "name": "withBottomSheetConfig", + "module": "./src/configurations/withBottomSheetConfig.js" + } + }, + { + "kind": "js", + "name": "withModalDialogConfig", + "declaration": { + "name": "withModalDialogConfig", + "module": "./src/configurations/withModalDialogConfig.js" + } + }, + { + "kind": "js", + "name": "withDropdownConfig", + "declaration": { + "name": "withDropdownConfig", + "module": "./src/configurations/withDropdownConfig.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/applyDemoOverlayStyles.js", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "./docs/demo-overlay-backdrop.js", + "declarations": [ + { + "kind": "class", + "name": "DemoOverlayBackdrop", + "superclass": { + "name": "LitElement", + "package": "@lion/core" + }, + "tagName": "demo-overlay-backdrop" + } + ], + "exports": [ + { + "kind": "custom-element-definition", + "name": "demo-overlay-backdrop", + "declaration": { + "name": "DemoOverlayBackdrop", + "module": "./docs/demo-overlay-backdrop.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/demo-overlay-system.js", + "declarations": [ + { + "kind": "class", + "name": "DemoOverlaySystem", + "mixins": [ + { + "name": "OverlayMixin", + "module": "/src/OverlayMixin.js" + } + ], + "superclass": { + "name": "LitElement", + "package": "@lion/core" + }, + "members": [ + { + "kind": "method", + "name": "_defineOverlayConfig", + "privacy": "public" + }, + { + "kind": "method", + "name": "_setupOpenCloseListeners", + "privacy": "public" + }, + { + "kind": "method", + "name": "_teardownOpenCloseListeners", + "privacy": "public" + }, + { + "kind": "field", + "name": "opened", + "privacy": "public", + "default": "false", + "inheritedFrom": { + "name": "OverlayMixin", + "module": "./src/OverlayMixin.js" + } + }, + { + "kind": "field", + "name": "config", + "privacy": "public", + "type": { + "type": "OverlayConfig" + }, + "default": "{}", + "inheritedFrom": { + "name": "OverlayMixin", + "module": "./src/OverlayMixin.js" + } + }, + { + "kind": "method", + "name": "requestUpdateInternal", + "privacy": "public", + "parameters": [ + { + "name": "name", + "type": { + "type": "string" + } + }, + { + "name": "oldValue", + "type": { + "type": "any" + } + } + ], + "inheritedFrom": { + "name": "OverlayMixin", + "module": "./src/OverlayMixin.js" + } + }, + { + "kind": "method", + "name": "_defineOverlay", + "privacy": "public", + "return": { + "type": { + "type": "OverlayController" + } + }, + "parameters": [ + { + "name": "config", + "type": { + "type": "DefineOverlayConfig" + } + } + ], + "inheritedFrom": { + "name": "OverlayMixin", + "module": "./src/OverlayMixin.js" + } + }, + { + "kind": "method", + "name": "updated", + "privacy": "public", + "parameters": [ + { + "name": "changedProperties", + "type": { + "type": "PropertyValues " + } + } + ], + "inheritedFrom": { + "name": "OverlayMixin", + "module": "./src/OverlayMixin.js" + } + }, + { + "kind": "method", + "name": "connectedCallback", + "privacy": "public", + "inheritedFrom": { + "name": "OverlayMixin", + "module": "./src/OverlayMixin.js" + } + }, + { + "kind": "method", + "name": "disconnectedCallback", + "privacy": "public", + "inheritedFrom": { + "name": "OverlayMixin", + "module": "./src/OverlayMixin.js" + } + }, + { + "kind": "field", + "name": "_overlayInvokerNode", + "privacy": "public", + "inheritedFrom": { + "name": "OverlayMixin", + "module": "./src/OverlayMixin.js" + } + }, + { + "kind": "field", + "name": "_overlayReferenceNode", + "privacy": "public", + "inheritedFrom": { + "name": "OverlayMixin", + "module": "./src/OverlayMixin.js" + } + }, + { + "kind": "field", + "name": "_overlayBackdropNode", + "privacy": "public", + "inheritedFrom": { + "name": "OverlayMixin", + "module": "./src/OverlayMixin.js" + } + }, + { + "kind": "field", + "name": "_overlayContentNode", + "privacy": "public", + "inheritedFrom": { + "name": "OverlayMixin", + "module": "./src/OverlayMixin.js" + } + }, + { + "kind": "field", + "name": "_overlayContentWrapperNode", + "privacy": "public", + "inheritedFrom": { + "name": "OverlayMixin", + "module": "./src/OverlayMixin.js" + } + }, + { + "kind": "method", + "name": "_setupOverlayCtrl", + "privacy": "public", + "inheritedFrom": { + "name": "OverlayMixin", + "module": "./src/OverlayMixin.js" + } + }, + { + "kind": "method", + "name": "_teardownOverlayCtrl", + "privacy": "public", + "inheritedFrom": { + "name": "OverlayMixin", + "module": "./src/OverlayMixin.js" + } + }, + { + "kind": "method", + "name": "_setOpenedWithoutPropertyEffects", + "privacy": "public", + "description": "When the opened state is changed by an Application Developer,cthe OverlayController is\nrequested to show/hide. It might happen that this request is not honoured\n(intercepted in before-hide for instance), so that we need to sync the controller state\nto this webcomponent again, preventing eternal loops.", + "parameters": [ + { + "name": "newOpened", + "type": { + "type": "boolean" + } + } + ], + "inheritedFrom": { + "name": "OverlayMixin", + "module": "./src/OverlayMixin.js" + } + }, + { + "kind": "method", + "name": "__setupSyncFromOverlayController", + "privacy": "public", + "inheritedFrom": { + "name": "OverlayMixin", + "module": "./src/OverlayMixin.js" + } + }, + { + "kind": "method", + "name": "__teardownSyncFromOverlayController", + "privacy": "public", + "inheritedFrom": { + "name": "OverlayMixin", + "module": "./src/OverlayMixin.js" + } + }, + { + "kind": "method", + "name": "__syncToOverlayController", + "privacy": "public", + "inheritedFrom": { + "name": "OverlayMixin", + "module": "./src/OverlayMixin.js" + } + }, + { + "kind": "method", + "name": "toggle", + "privacy": "public", + "description": "Toggles the overlay", + "inheritedFrom": { + "name": "OverlayMixin", + "module": "./src/OverlayMixin.js" + } + }, + { + "kind": "method", + "name": "open", + "privacy": "public", + "description": "Shows the overlay", + "inheritedFrom": { + "name": "OverlayMixin", + "module": "./src/OverlayMixin.js" + } + }, + { + "kind": "method", + "name": "close", + "privacy": "public", + "description": "Hides the overlay", + "inheritedFrom": { + "name": "OverlayMixin", + "module": "./src/OverlayMixin.js" + } + } + ], + "tagName": "demo-overlay-system", + "attributes": [ + { + "name": "opened", + "fieldName": "opened", + "inheritedFrom": { + "name": "OverlayMixin", + "module": "./src/OverlayMixin.js" + } + } + ], + "events": [ + { + "name": "opened-changed", + "type": { + "type": "Event" + }, + "inheritedFrom": { + "name": "OverlayMixin", + "module": "./src/OverlayMixin.js" + } + }, + { + "name": "before-closed", + "type": { + "type": "CustomEvent" + }, + "inheritedFrom": { + "name": "OverlayMixin", + "module": "./src/OverlayMixin.js" + } + } + ] + } + ], + "exports": [ + { + "kind": "custom-element-definition", + "name": "demo-overlay-system", + "declaration": { + "name": "DemoOverlaySystem", + "module": "./docs/demo-overlay-system.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/ArrowMixin.js", + "declarations": [ + { + "kind": "mixin", + "name": "ArrowMixin", + "mixins": [ + { + "name": "OverlayMixin", + "module": "/src/OverlayMixin.js" + } + ], + "superclass": { + "name": "superclass", + "module": "./src/ArrowMixin.js" + }, + "attributes": [ + { + "name": "has-arrow", + "fieldName": "hasArrow" + } + ], + "members": [ + { + "kind": "field", + "name": "hasArrow", + "privacy": "public", + "default": "true" + }, + { + "kind": "method", + "name": "render", + "privacy": "public" + }, + { + "kind": "method", + "name": "_arrowNodeTemplate", + "privacy": "public" + }, + { + "kind": "method", + "name": "_arrowTemplate", + "privacy": "public" + }, + { + "kind": "method", + "name": "_defineOverlayConfig", + "privacy": "public", + "description": "Overrides arrow and keepTogether modifier to be enabled,\nand adds onCreate and onUpdate hooks to sync from popper state", + "return": { + "type": { + "type": "OverlayConfig" + } + } + }, + { + "kind": "method", + "name": "_getPopperArrowConfig", + "privacy": "public", + "return": { + "type": { + "type": "Partial" + } + }, + "parameters": [ + { + "name": "popperConfigToExtendFrom", + "type": { + "type": "Partial" + } + } + ] + }, + { + "kind": "method", + "name": "__setupRepositionCompletePromise", + "privacy": "public" + }, + { + "kind": "field", + "name": "_arrowNode", + "privacy": "public" + }, + { + "kind": "method", + "name": "__syncFromPopperState", + "privacy": "public", + "parameters": [ + { + "name": "data", + "type": { + "type": "Partial" + } + } + ] + } + ] + }, + { + "kind": "variable", + "name": "ArrowMixinImplementation", + "description": "", + "type": { + "type": "LitElement>" + } + }, + { + "kind": "variable", + "name": "ArrowMixin" + } + ], + "exports": [ + { + "kind": "js", + "name": "ArrowMixinImplementation", + "declaration": { + "name": "ArrowMixinImplementation", + "module": "./src/ArrowMixin.js" + } + }, + { + "kind": "js", + "name": "ArrowMixin", + "declaration": { + "name": "ArrowMixin", + "module": "./src/ArrowMixin.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/OverlayController.js", + "declarations": [ + { + "kind": "class", + "name": "OverlayController", + "events": [ + { + "name": "before-hide", + "type": { + "type": "CustomEvent" + } + }, + { + "name": "show", + "type": { + "type": "Event" + } + }, + { + "name": "before-hide", + "type": { + "type": "CustomEvent" + } + }, + { + "name": "hide", + "type": { + "type": "Event" + } + } + ], + "superclass": { + "name": "EventTargetShim", + "package": "@lion/core" + }, + "members": [ + { + "kind": "field", + "name": "invoker", + "privacy": "public" + }, + { + "kind": "field", + "name": "content", + "privacy": "public" + }, + { + "kind": "field", + "name": "placementMode", + "privacy": "public" + }, + { + "kind": "field", + "name": "invokerNode", + "privacy": "public" + }, + { + "kind": "field", + "name": "referenceNode", + "privacy": "public" + }, + { + "kind": "field", + "name": "contentNode", + "privacy": "public" + }, + { + "kind": "field", + "name": "contentWrapperNode", + "privacy": "public" + }, + { + "kind": "field", + "name": "backdropNode", + "privacy": "public" + }, + { + "kind": "field", + "name": "elementToFocusAfterHide", + "privacy": "public" + }, + { + "kind": "field", + "name": "hasBackdrop", + "privacy": "public" + }, + { + "kind": "field", + "name": "isBlocking", + "privacy": "public" + }, + { + "kind": "field", + "name": "preventsScroll", + "privacy": "public" + }, + { + "kind": "field", + "name": "trapsKeyboardFocus", + "privacy": "public" + }, + { + "kind": "field", + "name": "hidesOnEsc", + "privacy": "public" + }, + { + "kind": "field", + "name": "hidesOnOutsideClick", + "privacy": "public" + }, + { + "kind": "field", + "name": "hidesOnOutsideEsc", + "privacy": "public" + }, + { + "kind": "field", + "name": "inheritsReferenceWidth", + "privacy": "public" + }, + { + "kind": "field", + "name": "handlesAccessibility", + "privacy": "public" + }, + { + "kind": "field", + "name": "isTooltip", + "privacy": "public" + }, + { + "kind": "field", + "name": "invokerRelation", + "privacy": "public" + }, + { + "kind": "field", + "name": "popperConfig", + "privacy": "public" + }, + { + "kind": "field", + "name": "viewportConfig", + "privacy": "public" + }, + { + "kind": "field", + "name": "_renderTarget", + "privacy": "public" + }, + { + "kind": "field", + "name": "_referenceNode", + "privacy": "public" + }, + { + "kind": "field", + "name": "elevation", + "privacy": "public" + }, + { + "kind": "method", + "name": "updateConfig", + "privacy": "public", + "description": "Allows to dynamically change the overlay configuration. Needed in case the\npresentation of the overlay changes depending on screen size.\nNote that this method is the only allowed way to update a configuration of an\nOverlayController instance.", + "parameters": [ + { + "name": "cfgToAdd", + "type": { + "type": " OverlayConfig " + } + } + ] + }, + { + "kind": "method", + "name": "__validateConfiguration", + "privacy": "public", + "parameters": [ + { + "name": "newConfig", + "type": { + "type": "OverlayConfig" + } + } + ] + }, + { + "kind": "method", + "name": "_init", + "privacy": "public", + "parameters": [ + { + "name": "options", + "type": { + "type": "{ cfgToAdd: OverlayConfig }" + } + } + ] + }, + { + "kind": "method", + "name": "__initConnectionTarget", + "privacy": "public" + }, + { + "kind": "method", + "name": "__initContentWrapperNode", + "privacy": "public", + "description": "Cleanup ._contentWrapperNode. We do this, because creating a fresh wrapper\ncan lead to problems with event listeners...", + "parameters": [ + { + "name": "options", + "type": { + "type": "{ cfgToAdd: OverlayConfig }" + } + } + ] + }, + { + "kind": "method", + "name": "_handleZIndex", + "privacy": "public", + "description": "Display local overlays on top of elements with no z-index that appear later in the DOM", + "parameters": [ + { + "name": "config", + "type": { + "type": "{ phase: OverlayPhase }" + } + } + ] + }, + { + "kind": "method", + "name": "__setupTeardownAccessibility", + "privacy": "public", + "parameters": [ + { + "name": "config", + "type": { + "type": "{ phase: OverlayPhase }" + } + } + ] + }, + { + "kind": "method", + "name": "__storeOriginalAttrs", + "privacy": "public", + "parameters": [ + { + "name": "node", + "type": { + "type": "HTMLElement" + } + }, + { + "name": "attrs", + "type": { + "type": "string[]" + } + } + ] + }, + { + "kind": "method", + "name": "__restoreOriginalAttrs", + "privacy": "public" + }, + { + "kind": "field", + "name": "isShown", + "privacy": "public" + }, + { + "kind": "method", + "name": "show", + "privacy": "public", + "parameters": [ + { + "name": "elementToFocusAfterHide", + "type": { + "type": "HTMLElement" + }, + "default": "this.elementToFocusAfterHide" + } + ] + }, + { + "kind": "method", + "name": "_handlePosition", + "privacy": "public", + "parameters": [ + { + "name": "config", + "type": { + "type": "{ phase: OverlayPhase }" + } + } + ] + }, + { + "kind": "method", + "name": "_keepBodySize", + "privacy": "public", + "parameters": [ + { + "name": "config", + "type": { + "type": "{ phase: OverlayPhase }" + } + } + ] + }, + { + "kind": "method", + "name": "hide", + "privacy": "public" + }, + { + "kind": "method", + "name": "transitionHide", + "privacy": "public", + "description": "Method to be overriden by subclassers", + "parameters": [ + { + "name": "hideConfig", + "type": { + "type": "{backdropNode:HTMLElement, contentNode:HTMLElement}" + } + } + ] + }, + { + "kind": "method", + "name": "_transitionHide", + "privacy": "public", + "parameters": [ + { + "name": "hideConfig", + "type": { + "type": "{backdropNode:HTMLElement, contentNode:HTMLElement}" + } + } + ] + }, + { + "kind": "method", + "name": "transitionShow", + "privacy": "public", + "description": "To be overridden by subclassers", + "parameters": [ + { + "name": "showConfig", + "type": { + "type": "{backdropNode:HTMLElement, contentNode:HTMLElement}" + } + } + ] + }, + { + "kind": "method", + "name": "_transitionShow", + "privacy": "public", + "parameters": [ + { + "name": "showConfig", + "type": { + "type": "{backdropNode:HTMLElement, contentNode:HTMLElement}" + } + } + ] + }, + { + "kind": "method", + "name": "_restoreFocus", + "privacy": "public" + }, + { + "kind": "method", + "name": "toggle", + "privacy": "public" + }, + { + "kind": "method", + "name": "_handleFeatures", + "privacy": "public", + "description": "All features are handled here.", + "parameters": [ + { + "name": "config", + "type": { + "type": "{ phase: OverlayPhase }" + } + } + ] + }, + { + "kind": "method", + "name": "_handlePreventsScroll", + "privacy": "public", + "parameters": [ + { + "name": "config", + "type": { + "type": "{ phase: OverlayPhase }" + } + } + ] + }, + { + "kind": "method", + "name": "_handleBlocking", + "privacy": "public", + "parameters": [ + { + "name": "config", + "type": { + "type": "{ phase: OverlayPhase }" + } + } + ] + }, + { + "kind": "field", + "name": "hasActiveBackdrop", + "privacy": "public" + }, + { + "kind": "method", + "name": "_handleBackdrop", + "privacy": "public", + "description": "Sets up backdrop on the given overlay. If there was a backdrop on another element\nit is removed. Otherwise this is the first time displaying a backdrop, so a animation-in\nanimation is played.", + "parameters": [ + { + "name": "config", + "type": { + "type": "{ animation?: boolean, phase: OverlayPhase }" + } + } + ] + }, + { + "kind": "field", + "name": "hasActiveTrapsKeyboardFocus", + "privacy": "public" + }, + { + "kind": "method", + "name": "_handleTrapsKeyboardFocus", + "privacy": "public", + "parameters": [ + { + "name": "config", + "type": { + "type": "{ phase: OverlayPhase }" + } + } + ] + }, + { + "kind": "method", + "name": "enableTrapsKeyboardFocus", + "privacy": "public" + }, + { + "kind": "method", + "name": "disableTrapsKeyboardFocus", + "privacy": "public", + "parameters": [ + { + "name": "{ findNewTrap = true }", + "default": "{}" + } + ] + }, + { + "kind": "method", + "name": "__escKeyHandler", + "privacy": "public", + "parameters": [ + { + "name": "ev" + } + ] + }, + { + "kind": "method", + "name": "_handleHidesOnEsc", + "privacy": "public", + "parameters": [ + { + "name": "config", + "type": { + "type": "{ phase: OverlayPhase }" + } + } + ] + }, + { + "kind": "method", + "name": "_handleHidesOnOutsideEsc", + "privacy": "public", + "parameters": [ + { + "name": "config", + "type": { + "type": "{ phase: OverlayPhase }" + } + } + ] + }, + { + "kind": "method", + "name": "_handleInheritsReferenceWidth", + "privacy": "public" + }, + { + "kind": "method", + "name": "_handleHidesOnOutsideClick", + "privacy": "public", + "parameters": [ + { + "name": "config", + "type": { + "type": "{ phase: OverlayPhase }" + } + } + ] + }, + { + "kind": "method", + "name": "_handleAccessibility", + "privacy": "public", + "parameters": [ + { + "name": "config", + "type": { + "type": "{ phase: OverlayPhase }" + } + } + ] + }, + { + "kind": "method", + "name": "teardown", + "privacy": "public" + }, + { + "kind": "method", + "name": "_teardownContentWrapperNode", + "privacy": "public" + }, + { + "kind": "method", + "name": "__createPopperInstance", + "privacy": "public" + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "OverlayController", + "declaration": { + "name": "OverlayController", + "module": "./src/OverlayController.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/OverlayMixin.js", + "declarations": [ + { + "kind": "mixin", + "name": "OverlayMixin", + "events": [ + { + "name": "opened-changed", + "type": { + "type": "Event" + } + }, + { + "name": "before-closed", + "type": { + "type": "CustomEvent" + } + }, + { + "name": "before-closed", + "type": { + "type": "CustomEvent" + } + } + ], + "superclass": { + "name": "superclass", + "module": "./src/OverlayMixin.js" + }, + "attributes": [ + { + "name": "opened", + "fieldName": "opened" + } + ], + "members": [ + { + "kind": "field", + "name": "opened", + "privacy": "public", + "default": "false" + }, + { + "kind": "field", + "name": "config", + "privacy": "public", + "type": { + "type": "OverlayConfig" + }, + "default": "{}" + }, + { + "kind": "method", + "name": "requestUpdateInternal", + "privacy": "public", + "parameters": [ + { + "name": "name", + "type": { + "type": "string" + } + }, + { + "name": "oldValue", + "type": { + "type": "any" + } + } + ] + }, + { + "kind": "method", + "name": "_defineOverlay", + "privacy": "public", + "return": { + "type": { + "type": "OverlayController" + } + }, + "parameters": [ + { + "name": "config", + "type": { + "type": "DefineOverlayConfig" + } + } + ] + }, + { + "kind": "method", + "name": "_defineOverlayConfig", + "privacy": "public", + "return": { + "type": { + "type": "OverlayConfig" + } + } + }, + { + "kind": "method", + "name": "updated", + "privacy": "public", + "parameters": [ + { + "name": "changedProperties", + "type": { + "type": "PropertyValues " + } + } + ] + }, + { + "kind": "method", + "name": "_setupOpenCloseListeners", + "privacy": "public" + }, + { + "kind": "method", + "name": "_teardownOpenCloseListeners", + "privacy": "public" + }, + { + "kind": "method", + "name": "connectedCallback", + "privacy": "public" + }, + { + "kind": "method", + "name": "disconnectedCallback", + "privacy": "public" + }, + { + "kind": "field", + "name": "_overlayInvokerNode", + "privacy": "public" + }, + { + "kind": "field", + "name": "_overlayReferenceNode", + "privacy": "public" + }, + { + "kind": "field", + "name": "_overlayBackdropNode", + "privacy": "public" + }, + { + "kind": "field", + "name": "_overlayContentNode", + "privacy": "public" + }, + { + "kind": "field", + "name": "_overlayContentWrapperNode", + "privacy": "public" + }, + { + "kind": "method", + "name": "_setupOverlayCtrl", + "privacy": "public" + }, + { + "kind": "method", + "name": "_teardownOverlayCtrl", + "privacy": "public" + }, + { + "kind": "method", + "name": "_setOpenedWithoutPropertyEffects", + "privacy": "public", + "description": "When the opened state is changed by an Application Developer,cthe OverlayController is\nrequested to show/hide. It might happen that this request is not honoured\n(intercepted in before-hide for instance), so that we need to sync the controller state\nto this webcomponent again, preventing eternal loops.", + "parameters": [ + { + "name": "newOpened", + "type": { + "type": "boolean" + } + } + ] + }, + { + "kind": "method", + "name": "__setupSyncFromOverlayController", + "privacy": "public" + }, + { + "kind": "method", + "name": "__teardownSyncFromOverlayController", + "privacy": "public" + }, + { + "kind": "method", + "name": "__syncToOverlayController", + "privacy": "public" + }, + { + "kind": "method", + "name": "toggle", + "privacy": "public", + "description": "Toggles the overlay" + }, + { + "kind": "method", + "name": "open", + "privacy": "public", + "description": "Shows the overlay" + }, + { + "kind": "method", + "name": "close", + "privacy": "public", + "description": "Hides the overlay" + } + ] + }, + { + "kind": "variable", + "name": "OverlayMixinImplementation", + "description": "", + "type": { + "type": "OverlayMixin" + } + }, + { + "kind": "variable", + "name": "OverlayMixin" + } + ], + "exports": [ + { + "kind": "js", + "name": "OverlayMixinImplementation", + "declaration": { + "name": "OverlayMixinImplementation", + "module": "./src/OverlayMixin.js" + } + }, + { + "kind": "js", + "name": "OverlayMixin", + "declaration": { + "name": "OverlayMixin", + "module": "./src/OverlayMixin.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/OverlaysManager.js", + "declarations": [ + { + "kind": "class", + "name": "OverlaysManager", + "members": [ + { + "kind": "method", + "name": "__createGlobalRootNode", + "privacy": "public", + "static": true + }, + { + "kind": "method", + "name": "__createGlobalStyleNode", + "privacy": "public", + "static": true + }, + { + "kind": "field", + "name": "globalRootNode", + "privacy": "public" + }, + { + "kind": "field", + "name": "list", + "privacy": "public" + }, + { + "kind": "field", + "name": "shownList", + "privacy": "public" + }, + { + "kind": "method", + "name": "add", + "privacy": "public", + "description": "Registers an overlay controller.", + "return": { + "type": { + "type": "OverlayController" + } + }, + "parameters": [ + { + "name": "ctrlToAdd", + "type": { + "type": "OverlayController" + }, + "description": "controller of the newly added overlay" + } + ] + }, + { + "kind": "method", + "name": "remove", + "privacy": "public", + "parameters": [ + { + "name": "ctrlToRemove", + "type": { + "type": "OverlayController" + } + } + ] + }, + { + "kind": "method", + "name": "show", + "privacy": "public", + "parameters": [ + { + "name": "ctrlToShow", + "type": { + "type": "OverlayController" + } + } + ] + }, + { + "kind": "method", + "name": "hide", + "privacy": "public", + "parameters": [ + { + "name": "ctrlToHide", + "type": { + "type": "any" + } + } + ] + }, + { + "kind": "method", + "name": "teardown", + "privacy": "public" + }, + { + "kind": "field", + "name": "siblingsInert", + "privacy": "public" + }, + { + "kind": "method", + "name": "disableTrapsKeyboardFocusForAll", + "privacy": "public" + }, + { + "kind": "method", + "name": "informTrapsKeyboardFocusGotEnabled", + "privacy": "public", + "parameters": [ + { + "name": "placementMode", + "type": { + "type": "'local' | 'global' | undefined" + } + } + ] + }, + { + "kind": "method", + "name": "informTrapsKeyboardFocusGotDisabled", + "privacy": "public", + "parameters": [ + { + "name": "{ disabledCtrl, findNewTrap = true }", + "default": "{}" + } + ] + }, + { + "kind": "method", + "name": "requestToPreventScroll", + "privacy": "public", + "description": "PreventsScroll" + }, + { + "kind": "method", + "name": "requestToEnableScroll", + "privacy": "public" + }, + { + "kind": "method", + "name": "requestToShowOnly", + "privacy": "public", + "description": "Blocking", + "parameters": [ + { + "name": "blockingCtrl", + "type": { + "type": "OverlayController" + } + } + ] + }, + { + "kind": "method", + "name": "retractRequestToShowOnly", + "privacy": "public", + "parameters": [ + { + "name": "blockingCtrl", + "type": { + "type": "OverlayController" + } + } + ] + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "OverlaysManager", + "declaration": { + "name": "OverlaysManager", + "module": "./src/OverlaysManager.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/globalOverlaysStyle.js", + "declarations": [ + { + "kind": "variable", + "name": "globalOverlaysStyle" + } + ], + "exports": [ + { + "kind": "js", + "name": "globalOverlaysStyle", + "declaration": { + "name": "globalOverlaysStyle", + "module": "./src/globalOverlaysStyle.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/overlays.js", + "declarations": [ + { + "kind": "variable", + "name": "overlays" + }, + { + "kind": "function", + "name": "setOverlays", + "parameters": [ + { + "name": "newOverlays", + "type": { + "type": "OverlaysManager" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "overlays", + "declaration": { + "name": "overlays", + "module": "./src/overlays.js" + } + }, + { + "kind": "js", + "name": "setOverlays", + "declaration": { + "name": "setOverlays", + "module": "./src/overlays.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./translations/bg-BG.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/bg-BG.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-CZ.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/cs-CZ.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-DE.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/de-DE.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-AU.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/en-AU.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./translations/en-GB.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/en-GB.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./translations/en-US.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/en-US.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-ES.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/es-ES.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-BE.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/fr-BE.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./translations/fr-FR.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/fr-FR.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-HU.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/hu-HU.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-IT.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/it-IT.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-BE.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/nl-BE.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./translations/nl-NL.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/nl-NL.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-PL.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/pl-PL.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-RO.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/ro-RO.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-RU.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/ru-RU.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-SK.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/sk-SK.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-UA.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/uk-UA.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/ArrowMixinTypes.d.ts", + "declarations": [ + { + "kind": "class", + "name": "ArrowHost", + "members": [ + { + "kind": "field", + "name": "hasArrow", + "privacy": "public", + "type": { + "type": "boolean" + } + }, + { + "kind": "field", + "name": "repositionComplete", + "privacy": "public", + "type": { + "type": "Promise" + } + }, + { + "kind": "method", + "name": "render", + "privacy": "public", + "return": { + "type": { + "type": "TemplateResult" + } + } + }, + { + "kind": "method", + "name": "_arrowTemplate", + "privacy": "public", + "return": { + "type": { + "type": "TemplateResult" + } + } + }, + { + "kind": "method", + "name": "_arrowNodeTemplate", + "privacy": "public", + "return": { + "type": { + "type": "TemplateResult" + } + } + }, + { + "kind": "method", + "name": "_defineOverlayConfig", + "privacy": "public", + "return": { + "type": { + "type": "OverlayConfig" + } + } + }, + { + "kind": "method", + "name": "_getPopperArrowConfig", + "privacy": "public", + "return": { + "type": { + "type": "Partial" + } + }, + "parameters": [ + { + "name": "popperConfigToExtendFrom", + "type": { + "type": "Partial" + } + } + ] + }, + { + "kind": "method", + "name": "__setupRepositionCompletePromise", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "field", + "name": "_arrowNode", + "privacy": "public", + "type": { + "type": "Element | null" + } + }, + { + "kind": "method", + "name": "__syncFromPopperState", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + }, + "parameters": [ + { + "name": "data", + "type": { + "type": "Partial" + } + } + ] + } + ] + }, + { + "kind": "function", + "name": "ArrowImplementation", + "return": { + "type": { + "type": "T & Constructor & ArrowHost" + } + }, + "parameters": [ + { + "name": "superclass", + "type": { + "type": "T" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "ArrowHost", + "declaration": { + "name": "ArrowHost", + "module": "./types/ArrowMixinTypes.d.ts" + } + }, + { + "kind": "js", + "name": "ArrowImplementation", + "declaration": { + "name": "ArrowImplementation", + "module": "./types/ArrowMixinTypes.d.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./types/OverlayConfig.d.ts", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "./types/OverlayMixinTypes.d.ts", + "declarations": [ + { + "kind": "class", + "name": "OverlayHost", + "members": [ + { + "kind": "field", + "name": "opened", + "privacy": "public", + "type": { + "type": "Boolean" + } + }, + { + "kind": "field", + "name": "config", + "privacy": "public", + "type": { + "type": "OverlayConfig" + } + }, + { + "kind": "method", + "name": "open", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "close", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "toggle", + "privacy": "public", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "field", + "name": "_overlayCtrl", + "privacy": "protected", + "type": { + "type": "OverlayController" + } + }, + { + "kind": "field", + "name": "_overlayInvokerNode", + "privacy": "protected", + "type": { + "type": "HTMLElement" + } + }, + { + "kind": "field", + "name": "_overlayBackdropNode", + "privacy": "protected", + "type": { + "type": "HTMLElement" + } + }, + { + "kind": "field", + "name": "_overlayContentNode", + "privacy": "protected", + "type": { + "type": "HTMLElement" + } + }, + { + "kind": "field", + "name": "_overlayContentWrapperNode", + "privacy": "protected", + "type": { + "type": "HTMLElement" + } + }, + { + "kind": "method", + "name": "_defineOverlay", + "privacy": "protected", + "description": "returns an instance of a (dynamic) overlay controller\nIn case overriding _defineOverlayConfig is not enough", + "return": { + "type": { + "type": "OverlayController" + } + }, + "parameters": [ + { + "name": "config", + "type": { + "type": "DefineOverlayConfig" + } + } + ] + }, + { + "kind": "method", + "name": "_defineOverlayConfig", + "privacy": "protected", + "return": { + "type": { + "type": "OverlayConfig" + } + } + }, + { + "kind": "method", + "name": "_setupOpenCloseListeners", + "privacy": "protected", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "_teardownOpenCloseListeners", + "privacy": "protected", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "_setupOverlayCtrl", + "privacy": "protected", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "_teardownOverlayCtrl", + "privacy": "protected", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "_setOpenedWithoutPropertyEffects", + "privacy": "protected", + "description": "When the opened state is changed by an Application Developer,cthe OverlayController is\nrequested to show/hide. It might happen that this request is not honoured\n(intercepted in before-hide for instance), so that we need to sync the controller state\nto this webcomponent again, preventing eternal loops.", + "return": { + "type": { + "type": "Promise" + } + }, + "parameters": [ + { + "name": "newOpened", + "type": { + "type": "Boolean" + } + } + ] + }, + { + "kind": "method", + "name": "__setupSyncFromOverlayController", + "privacy": "private", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "__teardownSyncFromOverlayController", + "privacy": "private", + "return": { + "type": { + "type": "void" + } + } + }, + { + "kind": "method", + "name": "__syncToOverlayController", + "privacy": "private", + "return": { + "type": { + "type": "void" + } + } + } + ] + }, + { + "kind": "function", + "name": "OverlayImplementation", + "return": { + "type": { + "type": "T & Constructor & typeof OverlayHost" + } + }, + "parameters": [ + { + "name": "superclass", + "type": { + "type": "T" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "OverlayHost", + "declaration": { + "name": "OverlayHost", + "module": "./types/OverlayMixinTypes.d.ts" + } + }, + { + "kind": "js", + "name": "OverlayImplementation", + "declaration": { + "name": "OverlayImplementation", + "module": "./types/OverlayMixinTypes.d.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/directives/ref.js", + "declarations": [ + { + "kind": "variable", + "name": "ref", + "description": "will be used to store reference to attribute names like #myElement", + "type": { + "type": "object" + } + } + ], + "exports": [ + { + "kind": "js", + "name": "ref", + "declaration": { + "name": "ref", + "module": "./docs/directives/ref.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/configurations/withBottomSheetConfig.js", + "declarations": [ + { + "kind": "variable", + "name": "withBottomSheetConfig", + "description": "", + "type": { + "type": "OverlayConfig" + } + } + ], + "exports": [ + { + "kind": "js", + "name": "withBottomSheetConfig", + "declaration": { + "name": "withBottomSheetConfig", + "module": "./src/configurations/withBottomSheetConfig.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/configurations/withDropdownConfig.js", + "declarations": [ + { + "kind": "variable", + "name": "withDropdownConfig", + "description": "", + "type": { + "type": "OverlayConfig" + } + } + ], + "exports": [ + { + "kind": "js", + "name": "withDropdownConfig", + "declaration": { + "name": "withDropdownConfig", + "module": "./src/configurations/withDropdownConfig.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/configurations/withModalDialogConfig.js", + "declarations": [ + { + "kind": "variable", + "name": "withModalDialogConfig", + "description": "", + "type": { + "type": "OverlayConfig" + } + } + ], + "exports": [ + { + "kind": "js", + "name": "withModalDialogConfig", + "declaration": { + "name": "withModalDialogConfig", + "module": "./src/configurations/withModalDialogConfig.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/utils/contain-focus.js", + "declarations": [ + { + "kind": "function", + "name": "rotateFocus", + "description": "Rotates focus within a list of elements. If shift key was not pressed and focus\nis on last item, puts focus on the first item. Reversed if shift key.", + "parameters": [ + { + "name": "rootElement", + "type": { + "type": "HTMLElement" + }, + "description": "The root element" + }, + { + "name": "e", + "type": { + "type": "KeyboardEvent" + }, + "description": "The keyboard event" + } + ] + }, + { + "kind": "function", + "name": "containFocus", + "description": "Contains focus within given root element. When focus is on the last focusable\nelement inside the root element, the next focus will be redirected to the first\nfocusable element.", + "return": { + "type": { + "type": "{ disconnect: () => void }" + } + }, + "parameters": [ + { + "name": "rootElement", + "type": { + "type": "HTMLElement" + }, + "description": "The element to contain focus within" + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "rotateFocus", + "declaration": { + "name": "rotateFocus", + "module": "./src/utils/contain-focus.js" + } + }, + { + "kind": "js", + "name": "containFocus", + "declaration": { + "name": "containFocus", + "module": "./src/utils/contain-focus.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/utils/deep-contains.js", + "declarations": [ + { + "kind": "function", + "name": "deepContains", + "description": "Whether first element contains the second element, also goes through shadow roots", + "return": { + "type": { + "type": "boolean" + } + }, + "parameters": [ + { + "name": "el", + "type": { + "type": "HTMLElement|ShadowRoot" + } + }, + { + "name": "targetEl", + "type": { + "type": "HTMLElement|ShadowRoot" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "deepContains", + "declaration": { + "name": "deepContains", + "module": "./src/utils/deep-contains.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/utils/get-deep-active-element.js", + "declarations": [ + { + "kind": "function", + "name": "getDeepActiveElement", + "description": "Returns the activeElement, even when they are inside a shadowRoot.\n(If an element in a shadowRoot is focused, document.activeElement\nreturns the shadowRoot host.", + "return": { + "type": { + "type": "Element" + } + } + } + ], + "exports": [ + { + "kind": "js", + "name": "getDeepActiveElement", + "declaration": { + "name": "getDeepActiveElement", + "module": "./src/utils/get-deep-active-element.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/utils/get-focusable-elements.js", + "declarations": [ + { + "kind": "function", + "name": "getFocusableElements", + "return": { + "type": { + "type": "HTMLElement[]" + } + }, + "parameters": [ + { + "name": "element", + "type": { + "type": "Element" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "getFocusableElements", + "declaration": { + "name": "getFocusableElements", + "module": "./src/utils/get-focusable-elements.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/utils/inert-siblings.js", + "declarations": [ + { + "kind": "function", + "name": "setSiblingsInert", + "description": "Makes sibling elements inert, sets the inert attribute and aria-hidden for\nscreen readers.", + "parameters": [ + { + "name": "element", + "type": { + "type": "HTMLElement" + } + } + ] + }, + { + "kind": "function", + "name": "unsetSiblingsInert", + "description": "Removes inert and aria-hidden attribute from sibling elements", + "parameters": [ + { + "name": "element", + "type": { + "type": "HTMLElement" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "setSiblingsInert", + "declaration": { + "name": "setSiblingsInert", + "module": "./src/utils/inert-siblings.js" + } + }, + { + "kind": "js", + "name": "unsetSiblingsInert", + "declaration": { + "name": "unsetSiblingsInert", + "module": "./src/utils/inert-siblings.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/utils/is-equal-config.js", + "declarations": [ + { + "kind": "function", + "name": "isEqualConfig", + "description": "Compares two OverlayConfigs to equivalence. Intended to prevent unnecessary resets.\nNote that it doesn't cover as many use cases as common implementations, such as Lodash isEqual.", + "return": { + "type": { + "type": "boolean" + } + }, + "parameters": [ + { + "name": "a", + "type": { + "type": "Partial" + } + }, + { + "name": "b", + "type": { + "type": "Partial" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "isEqualConfig", + "declaration": { + "name": "isEqualConfig", + "module": "./src/utils/is-equal-config.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/utils/is-visible.js", + "declarations": [ + { + "kind": "function", + "name": "isVisible", + "return": { + "type": { + "type": "boolean" + } + }, + "parameters": [ + { + "name": "element", + "type": { + "type": "HTMLElement" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "isVisible", + "declaration": { + "name": "isVisible", + "module": "./src/utils/is-visible.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/utils/key-codes.js", + "declarations": [ + { + "kind": "variable", + "name": "keyCodes" + } + ], + "exports": [ + { + "kind": "js", + "name": "keyCodes", + "declaration": { + "name": "keyCodes", + "module": "./src/utils/key-codes.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/utils/simulate-tab.js", + "declarations": [ + { + "kind": "function", + "name": "simulateTab", + "parameters": [ + { + "name": "node", + "default": "document.body" + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "simulateTab", + "declaration": { + "name": "simulateTab", + "module": "./src/utils/simulate-tab.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/utils/sort-by-tabindex.js", + "declarations": [ + { + "kind": "function", + "name": "sortByTabIndex", + "return": { + "type": { + "type": "HTMLElement[]" + } + }, + "parameters": [ + { + "name": "elements", + "type": { + "type": "HTMLElement[]" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "sortByTabIndex", + "declaration": { + "name": "sortByTabIndex", + "module": "./src/utils/sort-by-tabindex.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./test/utils-tests/local-positioning-helpers.js", + "declarations": [ + { + "kind": "function", + "name": "normalizeTransformStyle", + "parameters": [ + { + "name": "cssValue", + "type": { + "type": "string" + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "normalizeTransformStyle", + "declaration": { + "name": "normalizeTransformStyle", + "module": "./test/utils-tests/local-positioning-helpers.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./docs/20-index.md", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "./docs/30-system-rationale.md", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "./docs/40-system-configuration.md", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "./docs/OverlaySystemScope.md", + "declarations": [], + "exports": [] + } + ] +} diff --git a/packages/overlays/package.json b/packages/overlays/package.json index aadb9b433..716c32566 100644 --- a/packages/overlays/package.json +++ b/packages/overlays/package.json @@ -23,6 +23,7 @@ "types" ], "scripts": { + "custom-elements-manifest": "custom-elements-manifest analyze --exclude 'docs/**/*'", "debug": "cd ../../ && npm run debug -- --group overlays", "debug:firefox": "cd ../../ && npm run debug:firefox -- --group overlays", "debug:webkit": "cd ../../ && npm run debug:webkit -- --group overlays", @@ -51,5 +52,6 @@ ".": "./index.js", "./translations/*": "./translations/*", "./test-suites/*": "./test-suites/*" - } + }, + "customElementsManifest": "custom-elements.json" } diff --git a/packages/pagination/custom-elements.json b/packages/pagination/custom-elements.json new file mode 100644 index 000000000..2e177c1c9 --- /dev/null +++ b/packages/pagination/custom-elements.json @@ -0,0 +1,457 @@ +{ + "schemaVersion": "experimental", + "readme": "", + "modules": [ + { + "kind": "javascript-module", + "path": "./index.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "LionPagination", + "declaration": { + "name": "LionPagination", + "module": "./src/LionPagination.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./lion-pagination.js", + "declarations": [], + "exports": [ + { + "kind": "custom-element-definition", + "name": "lion-pagination", + "declaration": { + "name": "LionPagination", + "module": "./src/LionPagination.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/LionPagination.js", + "declarations": [ + { + "kind": "class", + "name": "LionPagination", + "mixins": [ + { + "name": "LocalizeMixin", + "package": "@lion/localize" + } + ], + "superclass": { + "name": "LitElement", + "package": "@lion/core" + }, + "members": [ + { + "kind": "field", + "name": "localizeNamespaces", + "static": true, + "privacy": "public" + }, + { + "kind": "field", + "name": "current", + "privacy": "public", + "default": "1" + }, + { + "kind": "field", + "name": "count", + "privacy": "public", + "default": "0" + }, + { + "kind": "method", + "name": "next", + "privacy": "public", + "description": "Go next in pagination" + }, + { + "kind": "method", + "name": "first", + "privacy": "public", + "description": "Go to first page" + }, + { + "kind": "method", + "name": "last", + "privacy": "public", + "description": "Go to the last page" + }, + { + "kind": "method", + "name": "goto", + "privacy": "public", + "description": "Go to the specific page", + "parameters": [ + { + "name": "pageNumber", + "type": { + "type": "number" + } + } + ] + }, + { + "kind": "method", + "name": "previous", + "privacy": "public", + "description": "Go back in pagination" + }, + { + "kind": "method", + "name": "__fire", + "privacy": "private", + "description": "Set desired page in the pagination and fire the current changed event.", + "parameters": [ + { + "name": "page", + "type": { + "type": "Number" + }, + "description": "page number to be set" + } + ] + }, + { + "kind": "method", + "name": "__calculateNavList", + "privacy": "private", + "description": "Calculate nav list based on current page selection.", + "return": { + "type": { + "type": "(number|'...')[]" + } + } + }, + { + "kind": "method", + "name": "_prevNextIconTemplate", + "privacy": "protected", + "description": "Get previous or next button template.\nThis method can be overridden to apply customized template in wrapper.", + "return": { + "type": { + "type": "TemplateResult" + } + }, + "parameters": [ + { + "name": "label", + "type": { + "type": "String" + }, + "description": "namespace label i.e. next or previous" + } + ] + }, + { + "kind": "method", + "name": "_prevNextButtonTemplate", + "privacy": "protected", + "description": "Get next or previous button template.\nThis method can be overridden to apply customized template in wrapper.", + "return": { + "type": { + "type": "TemplateResult" + } + }, + "parameters": [ + { + "name": "label", + "type": { + "type": "String" + }, + "description": "namespace label i.e. next or previous" + }, + { + "name": "pageNumber", + "type": { + "type": "Number" + }, + "description": "page number to be set" + }, + { + "name": "namespace", + "type": { + "type": "String" + }, + "description": "namespace prefix for translations", + "default": "'lion'" + } + ] + }, + { + "kind": "method", + "name": "_disabledButtonTemplate", + "privacy": "protected", + "description": "Get disabled button template.\nThis method can be overridden to apply customized template in wrapper.", + "return": { + "type": { + "type": "TemplateResult" + } + }, + "parameters": [ + { + "name": "label", + "type": { + "type": "String" + }, + "description": "namespace label i.e. next or previous" + } + ] + }, + { + "kind": "method", + "name": "_renderNavList", + "privacy": "protected", + "description": "Render navigation list", + "return": { + "type": { + "type": "TemplateResult[]" + } + } + } + ], + "attributes": [ + { + "name": "current", + "fieldName": "current" + }, + { + "name": "count", + "fieldName": "count" + } + ], + "tagName": "lion-pagination" + } + ], + "exports": [ + { + "kind": "js", + "name": "LionPagination", + "declaration": { + "name": "LionPagination", + "module": "./src/LionPagination.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" + } + } + ] + } + ] +} diff --git a/packages/pagination/package.json b/packages/pagination/package.json index 9147f27bf..dc3e9ada8 100644 --- a/packages/pagination/package.json +++ b/packages/pagination/package.json @@ -23,6 +23,7 @@ "types" ], "scripts": { + "custom-elements-manifest": "custom-elements-manifest analyze --exclude 'docs/**/*'", "debug": "cd ../../ && npm run debug -- --group pagination", "debug:firefox": "cd ../../ && npm run debug:firefox -- --group pagination", "debug:webkit": "cd ../../ && npm run debug:webkit -- --group pagination", @@ -47,5 +48,6 @@ "exports": { ".": "./index.js", "./lion-pagination": "./lion-pagination.js" - } + }, + "customElementsManifest": "custom-elements.json" } diff --git a/packages/progress-indicator/custom-elements.json b/packages/progress-indicator/custom-elements.json new file mode 100644 index 000000000..a571e2dc2 --- /dev/null +++ b/packages/progress-indicator/custom-elements.json @@ -0,0 +1,361 @@ +{ + "schemaVersion": "experimental", + "readme": "", + "modules": [ + { + "kind": "javascript-module", + "path": "./index.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "LionProgressIndicator", + "declaration": { + "name": "LionProgressIndicator", + "module": "./src/LionProgressIndicator.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./lion-progress-indicator.js", + "declarations": [], + "exports": [ + { + "kind": "custom-element-definition", + "name": "lion-progress-indicator", + "declaration": { + "name": "LionProgressIndicator", + "module": "./src/LionProgressIndicator.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./demo/CustomProgressIndicator.js", + "declarations": [ + { + "kind": "class", + "name": "CustomProgressIndicator", + "superclass": { + "name": "LionProgressIndicator", + "module": "/demo/src/LionProgressIndicator.js" + }, + "members": [ + { + "kind": "method", + "name": "_graphicTemplate", + "privacy": "public" + }, + { + "kind": "field", + "name": "localizeNamespaces", + "static": true, + "privacy": "public", + "inheritedFrom": { + "name": "LionProgressIndicator", + "module": "./src/LionProgressIndicator.js" + } + }, + { + "kind": "method", + "name": "onLocaleUpdated", + "privacy": "public", + "inheritedFrom": { + "name": "LionProgressIndicator", + "module": "./src/LionProgressIndicator.js" + } + } + ], + "tagName": "custom-progress-indicator" + } + ], + "exports": [ + { + "kind": "js", + "name": "CustomProgressIndicator", + "declaration": { + "name": "CustomProgressIndicator", + "module": "./demo/CustomProgressIndicator.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./demo/custom-progress-indicator.js", + "declarations": [], + "exports": [ + { + "kind": "custom-element-definition", + "name": "custom-progress-indicator", + "declaration": { + "name": "CustomProgressIndicator", + "module": "./demo/CustomProgressIndicator.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/LionProgressIndicator.js", + "declarations": [ + { + "kind": "class", + "name": "LionProgressIndicator", + "mixins": [ + { + "name": "LocalizeMixin", + "package": "@lion/localize" + } + ], + "superclass": { + "name": "LitElement", + "package": "@lion/core" + }, + "members": [ + { + "kind": "field", + "name": "localizeNamespaces", + "static": true, + "privacy": "public" + }, + { + "kind": "method", + "name": "_graphicTemplate", + "privacy": "public" + }, + { + "kind": "method", + "name": "onLocaleUpdated", + "privacy": "public" + } + ], + "tagName": "lion-progress-indicator" + } + ], + "exports": [ + { + "kind": "js", + "name": "LionProgressIndicator", + "declaration": { + "name": "LionProgressIndicator", + "module": "./src/LionProgressIndicator.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" + } + } + ] + } + ] +} diff --git a/packages/progress-indicator/package.json b/packages/progress-indicator/package.json index c46061581..9a5064401 100644 --- a/packages/progress-indicator/package.json +++ b/packages/progress-indicator/package.json @@ -21,6 +21,7 @@ "types" ], "scripts": { + "custom-elements-manifest": "custom-elements-manifest analyze --exclude 'docs/**/*'", "debug": "cd ../../ && npm run debug -- --group progress-indicator", "debug:firefox": "cd ../../ && npm run debug:firefox -- --group progress-indicator", "debug:webkit": "cd ../../ && npm run debug:webkit -- --group progress-indicator", @@ -47,5 +48,6 @@ "exports": { ".": "./index.js", "./lion-progress-indicator": "./lion-progress-indicator.js" - } + }, + "customElementsManifest": "custom-elements.json" } diff --git a/packages/radio-group/custom-elements.json b/packages/radio-group/custom-elements.json new file mode 100644 index 000000000..b3ff00402 --- /dev/null +++ b/packages/radio-group/custom-elements.json @@ -0,0 +1,139 @@ +{ + "schemaVersion": "experimental", + "readme": "", + "modules": [ + { + "kind": "javascript-module", + "path": "./index.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "LionRadioGroup", + "declaration": { + "name": "LionRadioGroup", + "module": "./src/LionRadioGroup.js" + } + }, + { + "kind": "js", + "name": "LionRadio", + "declaration": { + "name": "LionRadio", + "module": "./src/LionRadio.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./lion-radio-group.js", + "declarations": [], + "exports": [ + { + "kind": "custom-element-definition", + "name": "lion-radio-group", + "declaration": { + "name": "LionRadioGroup", + "module": "./src/LionRadioGroup.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./lion-radio.js", + "declarations": [], + "exports": [ + { + "kind": "custom-element-definition", + "name": "lion-radio", + "declaration": { + "name": "LionRadio", + "module": "./src/LionRadio.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/LionRadio.js", + "declarations": [ + { + "kind": "class", + "name": "LionRadio", + "mixins": [ + { + "name": "ChoiceInputMixin", + "package": "@lion/form-core" + } + ], + "superclass": { + "name": "LionInput", + "package": "@lion/input" + }, + "members": [ + { + "kind": "method", + "name": "connectedCallback", + "privacy": "public" + } + ], + "tagName": "lion-radio" + } + ], + "exports": [ + { + "kind": "js", + "name": "LionRadio", + "declaration": { + "name": "LionRadio", + "module": "./src/LionRadio.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/LionRadioGroup.js", + "declarations": [ + { + "kind": "class", + "name": "LionRadioGroup", + "mixins": [ + { + "name": "ChoiceGroupMixin", + "package": "@lion/form-core" + }, + { + "name": "FormGroupMixin", + "package": "@lion/form-core" + } + ], + "superclass": { + "name": "LitElement", + "package": "@lion/core" + }, + "members": [ + { + "kind": "method", + "name": "resetGroup", + "privacy": "public" + } + ], + "tagName": "lion-radio-group" + } + ], + "exports": [ + { + "kind": "js", + "name": "LionRadioGroup", + "declaration": { + "name": "LionRadioGroup", + "module": "./src/LionRadioGroup.js" + } + } + ] + } + ] +} diff --git a/packages/radio-group/package.json b/packages/radio-group/package.json index a0839ebfb..be638df09 100644 --- a/packages/radio-group/package.json +++ b/packages/radio-group/package.json @@ -23,6 +23,7 @@ "types" ], "scripts": { + "custom-elements-manifest": "custom-elements-manifest analyze --exclude 'docs/**/*'", "debug": "cd ../../ && npm run debug -- --group radio-group", "debug:firefox": "cd ../../ && npm run debug:firefox -- --group radio-group", "debug:webkit": "cd ../../ && npm run debug:webkit -- --group radio-group", @@ -50,5 +51,6 @@ ".": "./index.js", "./lion-radio": "./lion-radio.js", "./lion-radio-group": "./lion-radio-group.js" - } + }, + "customElementsManifest": "custom-elements.json" } diff --git a/packages/select-rich/custom-elements.json b/packages/select-rich/custom-elements.json new file mode 100644 index 000000000..928eac2ed --- /dev/null +++ b/packages/select-rich/custom-elements.json @@ -0,0 +1,560 @@ +{ + "schemaVersion": "experimental", + "readme": "", + "modules": [ + { + "kind": "javascript-module", + "path": "./index.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "LionOptions", + "declaration": { + "name": "LionOptions", + "package": "@lion/listbox" + } + }, + { + "kind": "js", + "name": "LionOption", + "declaration": { + "name": "LionOption", + "package": "@lion/listbox" + } + }, + { + "kind": "js", + "name": "LionSelectRich", + "declaration": { + "name": "LionSelectRich", + "module": "./src/LionSelectRich.js" + } + }, + { + "kind": "js", + "name": "LionSelectInvoker", + "declaration": { + "name": "LionSelectInvoker", + "module": "./src/LionSelectInvoker.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./lion-option.js", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "./lion-options.js", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "./lion-select-invoker.js", + "declarations": [], + "exports": [ + { + "kind": "custom-element-definition", + "name": "lion-select-invoker", + "declaration": { + "name": "LionSelectInvoker", + "module": "./src/LionSelectInvoker.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./lion-select-rich.js", + "declarations": [], + "exports": [ + { + "kind": "custom-element-definition", + "name": "lion-select-rich", + "declaration": { + "name": "LionSelectRich", + "module": "./src/LionSelectRich.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/LionSelectInvoker.js", + "declarations": [ + { + "kind": "class", + "name": "LionSelectInvoker", + "superclass": { + "name": "LionButton", + "package": "@lion/button" + }, + "attributes": [ + { + "name": "selectedElement", + "fieldName": "selectedElement" + }, + { + "name": "readonly", + "fieldName": "readOnly" + }, + { + "name": "single-option", + "fieldName": "singleOption" + } + ], + "members": [ + { + "kind": "field", + "name": "selectedElement", + "privacy": "public", + "type": { + "type": "LionOption | null" + }, + "description": "The option element that is currently selected", + "default": "null" + }, + { + "kind": "field", + "name": "readOnly", + "privacy": "public", + "description": "When the connected LionSelectRich instance is readOnly,\nthis should be reflected in the invoker as well", + "default": "false" + }, + { + "kind": "field", + "name": "singleOption", + "privacy": "public", + "description": "When the connected LionSelectRich instance has only one option,\nthis should be reflected in the invoker as well", + "default": "false" + }, + { + "kind": "field", + "name": "slots", + "privacy": "public" + }, + { + "kind": "field", + "name": "_contentWrapperNode", + "privacy": "public" + }, + { + "kind": "method", + "name": "__handleKeydown", + "privacy": "public", + "parameters": [ + { + "name": "event" + } + ] + }, + { + "kind": "method", + "name": "connectedCallback", + "privacy": "public" + }, + { + "kind": "method", + "name": "disconnectedCallback", + "privacy": "public" + }, + { + "kind": "method", + "name": "_contentTemplate", + "privacy": "public" + }, + { + "kind": "method", + "name": "_noSelectionTemplate", + "privacy": "public", + "description": "To be overriden for a placeholder, used when `hasNoDefaultSelected` is true on the select rich" + }, + { + "kind": "method", + "name": "_beforeTemplate", + "privacy": "public" + }, + { + "kind": "method", + "name": "_afterTemplate", + "privacy": "public" + } + ], + "tagName": "lion-select-invoker" + } + ], + "exports": [ + { + "kind": "js", + "name": "LionSelectInvoker", + "declaration": { + "name": "LionSelectInvoker", + "module": "./src/LionSelectInvoker.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/LionSelectRich.js", + "declarations": [ + { + "kind": "class", + "name": "LionSelectRich", + "events": [ + { + "name": "blur", + "type": { + "type": "Event" + } + } + ], + "mixins": [ + { + "name": "SlotMixin", + "package": "@lion/core" + }, + { + "name": "ScopedElementsMixin", + "package": "@lion/core" + }, + { + "name": "OverlayMixin", + "package": "@lion/overlays" + } + ], + "superclass": { + "name": "LionListbox", + "package": "@lion/listbox" + }, + "members": [ + { + "kind": "field", + "name": "scopedElements", + "static": true, + "privacy": "public" + }, + { + "kind": "field", + "name": "navigateWithinInvoker", + "privacy": "public", + "type": { + "type": "Boolean" + }, + "description": "When invoker has focus, up and down arrow keys changes active state of listbox,\nwithout opening overlay.", + "default": "false" + }, + { + "kind": "field", + "name": "interactionMode", + "privacy": "public", + "type": { + "type": "'windows/linux'|'mac'|'auto'" + }, + "description": "Aligns behavior for 'selectionFollowFocus' and 'navigateWithinInvoker' with\nplatform. When 'auto' (default), platform is automatically detected", + "default": "'auto'" + }, + { + "kind": "field", + "name": "singleOption", + "privacy": "public", + "default": "false" + }, + { + "kind": "method", + "name": "_inputGroupInputTemplate", + "privacy": "public" + }, + { + "kind": "field", + "name": "slots", + "privacy": "public" + }, + { + "kind": "field", + "name": "_invokerNode", + "privacy": "protected" + }, + { + "kind": "field", + "name": "_scrollTargetNode", + "privacy": "protected" + }, + { + "kind": "method", + "name": "connectedCallback", + "privacy": "public" + }, + { + "kind": "method", + "name": "disconnectedCallback", + "privacy": "public" + }, + { + "kind": "method", + "name": "requestUpdateInternal", + "privacy": "public", + "parameters": [ + { + "name": "name", + "type": { + "type": "string" + } + }, + { + "name": "oldValue", + "type": { + "type": "unknown" + } + } + ] + }, + { + "kind": "method", + "name": "updated", + "privacy": "public", + "parameters": [ + { + "name": "changedProperties", + "type": { + "type": "PropertyValues " + } + } + ] + }, + { + "kind": "method", + "name": "addFormElement", + "privacy": "public", + "parameters": [ + { + "name": "child", + "type": { + "type": "LionOption & FormControlHost" + } + }, + { + "name": "indexToInsertAt", + "type": { + "type": "Number" + } + } + ] + }, + { + "kind": "method", + "name": "removeFormElement", + "privacy": "public", + "parameters": [ + { + "name": "child", + "type": { + "type": "FormRegisteringHost" + }, + "description": "the child element (field)" + } + ] + }, + { + "kind": "method", + "name": "toggle", + "privacy": "public" + }, + { + "kind": "method", + "name": "_getCheckedElements", + "privacy": "public", + "description": "In the select disabled options are still going to a possible value for example\nwhen prefilling or programmatically setting it." + }, + { + "kind": "method", + "name": "_onFormElementsChanged", + "privacy": "public" + }, + { + "kind": "method", + "name": "__initInteractionStates", + "privacy": "public" + }, + { + "kind": "method", + "name": "__toggleInvokerDisabled", + "privacy": "public" + }, + { + "kind": "method", + "name": "__syncInvokerElement", + "privacy": "public" + }, + { + "kind": "method", + "name": "__setupInvokerNode", + "privacy": "public" + }, + { + "kind": "method", + "name": "__invokerOnClick", + "privacy": "public" + }, + { + "kind": "method", + "name": "__invokerOnBlur", + "privacy": "public" + }, + { + "kind": "method", + "name": "__setupInvokerNodeEventListener", + "privacy": "public" + }, + { + "kind": "method", + "name": "__teardownInvokerNode", + "privacy": "public" + }, + { + "kind": "method", + "name": "_defineOverlayConfig", + "privacy": "public" + }, + { + "kind": "method", + "name": "_noDefaultSelectedInheritsWidth", + "privacy": "public", + "description": "With no selected element, we should override the inheritsReferenceWidth in most cases.\nBy default, we will set it to 'min', and then set it back to what it was initially when\nsomething is selected.\nAs a subclasser you can override this behavior." + }, + { + "kind": "method", + "name": "__overlayBeforeShow", + "privacy": "public" + }, + { + "kind": "method", + "name": "__overlayOnShow", + "privacy": "public" + }, + { + "kind": "method", + "name": "__overlayOnHide", + "privacy": "public" + }, + { + "kind": "method", + "name": "_setupOverlayCtrl", + "privacy": "public" + }, + { + "kind": "method", + "name": "_teardownOverlayCtrl", + "privacy": "public" + }, + { + "kind": "method", + "name": "_alignInvokerWidth", + "privacy": "public", + "description": "Align invoker width with content width\nMake sure display is not set to \"none\" while calculating the content width" + }, + { + "kind": "method", + "name": "_onLabelClick", + "privacy": "public" + }, + { + "kind": "field", + "name": "_overlayInvokerNode", + "privacy": "public" + }, + { + "kind": "field", + "name": "_overlayContentNode", + "privacy": "public" + }, + { + "kind": "method", + "name": "__onKeyUp", + "privacy": "public", + "parameters": [ + { + "name": "ev", + "type": { + "type": "KeyboardEvent" + } + } + ] + }, + { + "kind": "method", + "name": "_listboxOnKeyDown", + "privacy": "public", + "parameters": [ + { + "name": "ev", + "type": { + "type": "KeyboardEvent" + }, + "description": "the keydown event object" + } + ] + }, + { + "kind": "method", + "name": "_listboxOnClick", + "privacy": "public" + }, + { + "kind": "method", + "name": "_setupListboxNode", + "privacy": "public" + }, + { + "kind": "method", + "name": "_teardownListboxNode", + "privacy": "public" + }, + { + "kind": "method", + "name": "__blockListShowDuringTransition", + "privacy": "public", + "description": "Normally, when textbox gets focus or a char is typed, it opens listbox.\nIn transition phases (like clicking option) we prevent this." + } + ], + "attributes": [ + { + "name": "navigate-within-invoker", + "fieldName": "navigateWithinInvoker" + }, + { + "name": "interaction-mode", + "fieldName": "interactionMode" + }, + { + "name": "single-option", + "fieldName": "singleOption" + } + ], + "tagName": "lion-select-rich" + } + ], + "exports": [ + { + "kind": "js", + "name": "LionSelectRich", + "declaration": { + "name": "LionSelectRich", + "module": "./src/LionSelectRich.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./test/demos.screenshots-test.js", + "declarations": [], + "exports": [] + } + ] +} diff --git a/packages/select-rich/package.json b/packages/select-rich/package.json index b8e9f4e88..fdcec9e3e 100644 --- a/packages/select-rich/package.json +++ b/packages/select-rich/package.json @@ -23,6 +23,7 @@ "types" ], "scripts": { + "custom-elements-manifest": "custom-elements-manifest analyze --exclude 'docs/**/*'", "debug": "cd ../../ && npm run debug -- --group select-rich", "debug:firefox": "cd ../../ && npm run debug:firefox -- --group select-rich", "debug:webkit": "cd ../../ && npm run debug:webkit -- --group select-rich", @@ -58,5 +59,6 @@ "./lion-options": "./lion-options.js", "./lion-select-invoker": "./lion-select-invoker.js", "./lion-select-rich": "./lion-select-rich.js" - } + }, + "customElementsManifest": "custom-elements.json" } diff --git a/packages/select/custom-elements.json b/packages/select/custom-elements.json new file mode 100644 index 000000000..f7abe6586 --- /dev/null +++ b/packages/select/custom-elements.json @@ -0,0 +1,104 @@ +{ + "schemaVersion": "experimental", + "readme": "", + "modules": [ + { + "kind": "javascript-module", + "path": "./index.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "LionSelect", + "declaration": { + "name": "LionSelect", + "module": "./src/LionSelect.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./lion-select.js", + "declarations": [], + "exports": [ + { + "kind": "custom-element-definition", + "name": "lion-select", + "declaration": { + "name": "LionSelect", + "module": "./src/LionSelect.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/LionSelect.js", + "declarations": [ + { + "kind": "class", + "name": "LionSelect", + "events": [ + { + "name": "user-input-changed", + "type": { + "type": "CustomEvent" + } + } + ], + "superclass": { + "name": "LionFieldWithSelect", + "module": "./src/LionSelect.js" + }, + "members": [ + { + "kind": "method", + "name": "connectedCallback", + "privacy": "public" + }, + { + "kind": "field", + "name": "value", + "privacy": "public" + }, + { + "kind": "method", + "name": "updated", + "privacy": "public", + "parameters": [ + { + "name": "changedProperties", + "type": { + "type": "PropertyValues " + } + } + ] + }, + { + "kind": "method", + "name": "disconnectedCallback", + "privacy": "public" + }, + { + "kind": "method", + "name": "_proxyChangeEvent", + "privacy": "public" + } + ], + "tagName": "lion-select" + } + ], + "exports": [ + { + "kind": "js", + "name": "LionSelect", + "declaration": { + "name": "LionSelect", + "module": "./src/LionSelect.js" + } + } + ] + } + ] +} diff --git a/packages/select/package.json b/packages/select/package.json index d8a3e9350..1237a7da5 100644 --- a/packages/select/package.json +++ b/packages/select/package.json @@ -23,6 +23,7 @@ "types" ], "scripts": { + "custom-elements-manifest": "custom-elements-manifest analyze --exclude 'docs/**/*'", "debug": "cd ../../ && npm run debug -- --group select", "debug:firefox": "cd ../../ && npm run debug:firefox -- --group select", "debug:webkit": "cd ../../ && npm run debug:webkit -- --group select", @@ -47,5 +48,6 @@ "exports": { ".": "./index.js", "./lion-select": "./lion-select.js" - } + }, + "customElementsManifest": "custom-elements.json" } diff --git a/packages/singleton-manager/custom-elements.json b/packages/singleton-manager/custom-elements.json new file mode 100644 index 000000000..93ce15c74 --- /dev/null +++ b/packages/singleton-manager/custom-elements.json @@ -0,0 +1,901 @@ +{ + "schemaVersion": "experimental", + "readme": "", + "modules": [ + { + "kind": "javascript-module", + "path": "./index.js", + "declarations": [ + { + "kind": "variable", + "name": "singletonManager" + } + ], + "exports": [ + { + "kind": "js", + "name": "SingletonManagerClass", + "declaration": { + "name": "SingletonManagerClass", + "module": "./src/SingletonManagerClass.js" + } + }, + { + "kind": "js", + "name": "singletonManager", + "declaration": { + "name": "singletonManager", + "module": "./index.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/SingletonManagerClass.js", + "declarations": [ + { + "kind": "class", + "name": "SingletonManagerClass", + "members": [ + { + "kind": "method", + "name": "set", + "privacy": "public", + "description": "Ignores already existing keys (e.g. it will not override)", + "parameters": [ + { + "name": "key", + "type": { + "type": "string" + } + }, + { + "name": "value", + "type": { + "type": "any" + } + } + ] + }, + { + "kind": "method", + "name": "get", + "privacy": "public", + "return": { + "type": { + "type": "" + } + }, + "parameters": [ + { + "name": "key", + "type": { + "type": "string" + } + } + ] + }, + { + "kind": "method", + "name": "has", + "privacy": "public", + "parameters": [ + { + "name": "key", + "type": { + "type": "string" + } + } + ] + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "SingletonManagerClass", + "declaration": { + "name": "SingletonManagerClass", + "module": "./src/SingletonManagerClass.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./demo/fail/demo-app.js", + "declarations": [ + { + "kind": "class", + "name": "DemoApp", + "superclass": { + "name": "LitElement", + "package": "@lion/core" + }, + "attributes": [ + { + "name": "page", + "fieldName": "page" + } + ], + "members": [ + { + "kind": "field", + "name": "page", + "privacy": "public", + "default": "'A'" + } + ] + } + ], + "exports": [ + { + "kind": "custom-element-definition", + "name": "demo-app", + "declaration": { + "name": "DemoApp", + "module": "./demo/fail/demo-app.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./demo/fail/server.js", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "./demo/singleton/demo-app.js", + "declarations": [ + { + "kind": "class", + "name": "DemoApp", + "superclass": { + "name": "LitElement", + "package": "@lion/core" + }, + "attributes": [ + { + "name": "page", + "fieldName": "page" + } + ], + "members": [ + { + "kind": "field", + "name": "page", + "privacy": "public", + "default": "'A'" + } + ] + } + ], + "exports": [ + { + "kind": "custom-element-definition", + "name": "demo-app", + "declaration": { + "name": "DemoApp", + "module": "./demo/singleton/demo-app.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./demo/singleton/overlayCompatibility.js", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "./demo/singleton/server.js", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "./demo/singleton-complex/demo-app.js", + "declarations": [ + { + "kind": "class", + "name": "DemoApp", + "superclass": { + "name": "LitElement", + "package": "@lion/core" + }, + "attributes": [ + { + "name": "page", + "fieldName": "page" + } + ], + "members": [ + { + "kind": "field", + "name": "page", + "privacy": "public", + "default": "'A'" + } + ], + "tagName": "demo-app" + } + ], + "exports": [ + { + "kind": "custom-element-definition", + "name": "demo-app", + "declaration": { + "name": "DemoApp", + "module": "./demo/fail/demo-app.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./demo/singleton-complex/overlayCompatibility.js", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "./demo/singleton-complex/server.js", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "./demo/fail/node_modules/overlays/index.js", + "declarations": [ + { + "kind": "class", + "name": "OverlaysManager", + "members": [ + { + "kind": "field", + "name": "name", + "type": { + "type": "string" + }, + "privacy": "public", + "default": "'OverlayManager 1.x'" + }, + { + "kind": "field", + "name": "blockBody", + "privacy": "public", + "default": "false" + }, + { + "kind": "method", + "name": "_setupBlocker", + "privacy": "public" + }, + { + "kind": "method", + "name": "block", + "privacy": "public" + }, + { + "kind": "method", + "name": "unBlock", + "privacy": "public" + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "OverlaysManager", + "declaration": { + "name": "OverlaysManager", + "module": "./demo/fail/node_modules/overlays/index.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./demo/fail/node_modules/overlays/instance.js", + "declarations": [ + { + "kind": "variable", + "name": "overlays" + } + ], + "exports": [ + { + "kind": "js", + "name": "overlays", + "declaration": { + "name": "overlays", + "module": "./demo/fail/node_modules/overlays/instance.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./demo/fail/node_modules/page-a/page-a.js", + "declarations": [ + { + "kind": "class", + "name": "PageA", + "superclass": { + "name": "LitElement", + "package": "@lion/core" + } + } + ], + "exports": [ + { + "kind": "js", + "name": "PageA", + "declaration": { + "name": "PageA", + "module": "./demo/fail/node_modules/page-a/page-a.js" + } + }, + { + "kind": "custom-element-definition", + "name": "page-a", + "declaration": { + "name": "PageA", + "module": "./demo/fail/node_modules/page-a/page-a.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./demo/fail/node_modules/page-b/page-b.js", + "declarations": [ + { + "kind": "class", + "name": "PageB", + "superclass": { + "name": "LitElement", + "package": "@lion/core" + } + } + ], + "exports": [ + { + "kind": "js", + "name": "PageB", + "declaration": { + "name": "PageB", + "module": "./demo/fail/node_modules/page-b/page-b.js" + } + }, + { + "kind": "custom-element-definition", + "name": "page-b", + "declaration": { + "name": "PageB", + "module": "./demo/fail/node_modules/page-b/page-b.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./demo/singleton/node_modules/overlays/index.js", + "declarations": [ + { + "kind": "class", + "name": "OverlaysManager", + "members": [ + { + "kind": "field", + "name": "name", + "type": { + "type": "string" + }, + "privacy": "public", + "default": "'OverlayManager 1.x'" + }, + { + "kind": "field", + "name": "blockBody", + "privacy": "public", + "default": "false" + }, + { + "kind": "method", + "name": "_setupBlocker", + "privacy": "public" + }, + { + "kind": "method", + "name": "block", + "privacy": "public" + }, + { + "kind": "method", + "name": "unBlock", + "privacy": "public" + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "OverlaysManager", + "declaration": { + "name": "OverlaysManager", + "module": "./demo/singleton/node_modules/overlays/index.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./demo/singleton/node_modules/overlays/instance.js", + "declarations": [ + { + "kind": "variable", + "name": "overlays" + } + ], + "exports": [ + { + "kind": "js", + "name": "overlays", + "declaration": { + "name": "overlays", + "module": "./demo/singleton/node_modules/overlays/instance.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./demo/singleton/node_modules/page-a/page-a.js", + "declarations": [ + { + "kind": "class", + "name": "PageA", + "superclass": { + "name": "LitElement", + "package": "@lion/core" + } + } + ], + "exports": [ + { + "kind": "js", + "name": "PageA", + "declaration": { + "name": "PageA", + "module": "./demo/singleton/node_modules/page-a/page-a.js" + } + }, + { + "kind": "custom-element-definition", + "name": "page-a", + "declaration": { + "name": "PageA", + "module": "./demo/singleton/node_modules/page-a/page-a.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./demo/singleton/node_modules/page-b/page-b.js", + "declarations": [ + { + "kind": "class", + "name": "PageB", + "superclass": { + "name": "LitElement", + "package": "@lion/core" + } + } + ], + "exports": [ + { + "kind": "js", + "name": "PageB", + "declaration": { + "name": "PageB", + "module": "./demo/singleton/node_modules/page-b/page-b.js" + } + }, + { + "kind": "custom-element-definition", + "name": "page-b", + "declaration": { + "name": "PageB", + "module": "./demo/singleton/node_modules/page-b/page-b.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./demo/singleton-complex/node_modules/overlays/index.js", + "declarations": [ + { + "kind": "class", + "name": "OverlaysManager", + "members": [ + { + "kind": "field", + "name": "name", + "type": { + "type": "string" + }, + "privacy": "public", + "default": "'OverlayManager 1.x'" + }, + { + "kind": "field", + "name": "blockBody", + "privacy": "public", + "default": "false" + }, + { + "kind": "method", + "name": "_setupBlocker", + "privacy": "public" + }, + { + "kind": "method", + "name": "block", + "privacy": "public" + }, + { + "kind": "method", + "name": "unBlock", + "privacy": "public" + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "OverlaysManager", + "declaration": { + "name": "OverlaysManager", + "module": "./demo/singleton-complex/node_modules/overlays/index.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./demo/singleton-complex/node_modules/overlays/instance.js", + "declarations": [ + { + "kind": "variable", + "name": "overlays" + } + ], + "exports": [ + { + "kind": "js", + "name": "overlays", + "declaration": { + "name": "overlays", + "module": "./demo/singleton-complex/node_modules/overlays/instance.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./demo/singleton-complex/node_modules/page-b/page-b.js", + "declarations": [ + { + "kind": "class", + "name": "PageB", + "events": [ + { + "name": "request-instance", + "type": { + "type": "CustomEvent" + } + } + ], + "superclass": { + "name": "LitElement", + "package": "@lion/core" + }, + "members": [ + { + "kind": "method", + "name": "getInstance", + "privacy": "public", + "parameters": [ + { + "name": "sym" + }, + { + "name": "fallback" + } + ] + } + ], + "tagName": "page-b" + } + ], + "exports": [ + { + "kind": "js", + "name": "PageB", + "declaration": { + "name": "PageB", + "module": "./demo/singleton-complex/node_modules/page-b/page-b.js" + } + }, + { + "kind": "custom-element-definition", + "name": "page-b", + "declaration": { + "name": "PageB", + "module": "./demo/fail/node_modules/page-b/page-b.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./demo/singleton-complex/node_modules/page-a/page-a.js", + "declarations": [ + { + "kind": "class", + "name": "PageA", + "superclass": { + "name": "LitElement", + "package": "@lion/core" + }, + "tagName": "page-a" + } + ], + "exports": [ + { + "kind": "js", + "name": "PageA", + "declaration": { + "name": "PageA", + "module": "./demo/singleton-complex/node_modules/page-a/page-a.js" + } + }, + { + "kind": "custom-element-definition", + "name": "page-a", + "declaration": { + "name": "PageA", + "module": "./demo/fail/node_modules/page-a/page-a.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./demo/fail/node_modules/page-b/node_modules/overlays/index.js", + "declarations": [ + { + "kind": "class", + "name": "OverlaysManager", + "members": [ + { + "kind": "field", + "name": "name", + "type": { + "type": "string" + }, + "privacy": "public", + "default": "'OverlayManager 2.x'" + }, + { + "kind": "field", + "name": "_blockBody", + "privacy": "public", + "default": "false" + }, + { + "kind": "method", + "name": "_setupBlocker", + "privacy": "public" + }, + { + "kind": "method", + "name": "blockBody", + "privacy": "public" + }, + { + "kind": "method", + "name": "unBlockBody", + "privacy": "public" + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "OverlaysManager", + "declaration": { + "name": "OverlaysManager", + "module": "./demo/fail/node_modules/page-b/node_modules/overlays/index.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./demo/fail/node_modules/page-b/node_modules/overlays/instance.js", + "declarations": [ + { + "kind": "variable", + "name": "overlays" + } + ], + "exports": [ + { + "kind": "js", + "name": "overlays", + "declaration": { + "name": "overlays", + "module": "./demo/fail/node_modules/page-b/node_modules/overlays/instance.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./demo/singleton/node_modules/page-b/node_modules/overlays/index.js", + "declarations": [ + { + "kind": "class", + "name": "OverlaysManager", + "members": [ + { + "kind": "field", + "name": "name", + "type": { + "type": "string" + }, + "privacy": "public", + "default": "'OverlayManager 2.x'" + }, + { + "kind": "field", + "name": "blockBody", + "privacy": "public", + "default": "false" + }, + { + "kind": "method", + "name": "_setupBlocker", + "privacy": "public" + }, + { + "kind": "method", + "name": "blockingBody", + "privacy": "public" + }, + { + "kind": "method", + "name": "unBlockingBody", + "privacy": "public" + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "OverlaysManager", + "declaration": { + "name": "OverlaysManager", + "module": "./demo/singleton/node_modules/page-b/node_modules/overlays/index.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./demo/singleton/node_modules/page-b/node_modules/overlays/instance.js", + "declarations": [ + { + "kind": "variable", + "name": "overlays" + } + ], + "exports": [ + { + "kind": "js", + "name": "overlays", + "declaration": { + "name": "overlays", + "module": "./demo/singleton/node_modules/page-b/node_modules/overlays/instance.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./demo/singleton-complex/node_modules/page-b/node_modules/overlays/index.js", + "declarations": [ + { + "kind": "class", + "name": "OverlaysManager", + "members": [ + { + "kind": "field", + "name": "name", + "type": { + "type": "string" + }, + "privacy": "public", + "default": "'OverlayManager 2.x'" + }, + { + "kind": "field", + "name": "_blockBody", + "privacy": "public", + "default": "false" + }, + { + "kind": "method", + "name": "_setupBlocker", + "privacy": "public" + }, + { + "kind": "method", + "name": "blockBody", + "privacy": "public" + }, + { + "kind": "method", + "name": "unBlockBody", + "privacy": "public" + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "OverlaysManager", + "declaration": { + "name": "OverlaysManager", + "module": "./demo/singleton-complex/node_modules/page-b/node_modules/overlays/index.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./demo/singleton-complex/node_modules/page-b/node_modules/overlays/instance.js", + "declarations": [ + { + "kind": "variable", + "name": "overlays" + } + ], + "exports": [ + { + "kind": "js", + "name": "overlays", + "declaration": { + "name": "overlays", + "module": "./demo/singleton-complex/node_modules/page-b/node_modules/overlays/instance.js" + } + } + ] + } + ] +} diff --git a/packages/singleton-manager/package.json b/packages/singleton-manager/package.json index 666f1242f..b338daf5c 100644 --- a/packages/singleton-manager/package.json +++ b/packages/singleton-manager/package.json @@ -23,6 +23,7 @@ "types" ], "scripts": { + "custom-elements-manifest": "custom-elements-manifest analyze --exclude 'docs/**/*'", "debug": "cd ../../ && npm run debug -- --group singleton-manager", "debug:firefox": "cd ../../ && npm run debug:firefox -- --group singleton-manager", "debug:webkit": "cd ../../ && npm run debug:webkit -- --group singleton-manager", @@ -40,5 +41,6 @@ "publishConfig": { "access": "public" }, - "exports": "./index.js" + "exports": "./index.js", + "customElementsManifest": "custom-elements.json" } diff --git a/packages/steps/custom-elements.json b/packages/steps/custom-elements.json new file mode 100644 index 000000000..1fa069e9e --- /dev/null +++ b/packages/steps/custom-elements.json @@ -0,0 +1,336 @@ +{ + "schemaVersion": "experimental", + "readme": "", + "modules": [ + { + "kind": "javascript-module", + "path": "./index.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "LionSteps", + "declaration": { + "name": "LionSteps", + "module": "./src/LionSteps.js" + } + }, + { + "kind": "js", + "name": "LionStep", + "declaration": { + "name": "LionStep", + "module": "./src/LionStep.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./lion-step.js", + "declarations": [], + "exports": [ + { + "kind": "custom-element-definition", + "name": "lion-step", + "declaration": { + "name": "LionStep", + "module": "./src/LionStep.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./lion-steps.js", + "declarations": [], + "exports": [ + { + "kind": "custom-element-definition", + "name": "lion-steps", + "declaration": { + "name": "LionSteps", + "module": "./src/LionSteps.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/LionStep.js", + "declarations": [ + { + "kind": "class", + "name": "LionStep", + "events": [ + { + "name": "enter", + "type": { + "type": "CustomEvent" + } + }, + { + "name": "leave", + "type": { + "type": "CustomEvent" + } + }, + { + "name": "skip", + "type": { + "type": "CustomEvent" + } + } + ], + "superclass": { + "name": "LitElement", + "package": "@lion/core" + }, + "attributes": [ + { + "name": "status", + "fieldName": "status" + }, + { + "name": "invert-condition", + "fieldName": "invertCondition" + }, + { + "name": "forward-only", + "fieldName": "forwardOnly" + }, + { + "name": "initial-step", + "fieldName": "initialStep" + } + ], + "members": [ + { + "kind": "field", + "name": "status", + "privacy": "public", + "default": "'untouched'" + }, + { + "kind": "field", + "name": "condition", + "privacy": "public" + }, + { + "kind": "field", + "name": "invertCondition", + "privacy": "public", + "default": "false" + }, + { + "kind": "field", + "name": "forwardOnly", + "privacy": "public", + "default": "false" + }, + { + "kind": "field", + "name": "initialStep", + "privacy": "public", + "default": "false" + }, + { + "kind": "method", + "name": "enter", + "privacy": "public" + }, + { + "kind": "method", + "name": "leave", + "privacy": "public" + }, + { + "kind": "method", + "name": "skip", + "privacy": "public" + }, + { + "kind": "method", + "name": "passesCondition", + "privacy": "public", + "parameters": [ + { + "name": "data", + "type": { + "type": "Object" + }, + "optional": true + } + ] + } + ], + "tagName": "lion-step" + } + ], + "exports": [ + { + "kind": "js", + "name": "LionStep", + "declaration": { + "name": "LionStep", + "module": "./src/LionStep.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/LionSteps.js", + "declarations": [ + { + "kind": "class", + "name": "LionSteps", + "events": [ + { + "name": "transition", + "type": { + "type": "CustomEvent" + } + } + ], + "superclass": { + "name": "LitElement", + "package": "@lion/core" + }, + "attributes": [ + { + "name": "data", + "fieldName": "data" + }, + { + "name": "current", + "fieldName": "current" + } + ], + "members": [ + { + "kind": "field", + "name": "data", + "privacy": "public", + "type": { + "type": "{[key: string]: ?}" + }, + "default": "{}" + }, + { + "kind": "field", + "name": "current", + "privacy": "public", + "type": { + "type": "number" + }, + "default": "0" + }, + { + "kind": "method", + "name": "next", + "privacy": "public" + }, + { + "kind": "method", + "name": "previous", + "privacy": "public" + }, + { + "kind": "field", + "name": "steps", + "privacy": "public" + }, + { + "kind": "method", + "name": "_goTo", + "privacy": "public", + "parameters": [ + { + "name": "newCurrent", + "type": { + "type": "number" + } + }, + { + "name": "oldCurrent", + "type": { + "type": "number" + } + } + ] + }, + { + "kind": "method", + "name": "_changeStep", + "privacy": "public", + "parameters": [ + { + "name": "newCurrent", + "type": { + "type": "number" + } + }, + { + "name": "oldCurrent", + "type": { + "type": "number" + } + } + ] + }, + { + "kind": "method", + "name": "_dispatchTransitionEvent", + "privacy": "public", + "parameters": [ + { + "name": "fromStep", + "type": { + "type": "{number: number, element: LionStep}" + } + }, + { + "name": "toStep", + "type": { + "type": "{number: number, element: LionStep}" + } + } + ] + }, + { + "kind": "method", + "name": "_onCurrentChanged", + "privacy": "public", + "parameters": [ + { + "name": "newValues", + "type": { + "type": "{current: number}" + } + }, + { + "name": "oldValues", + "type": { + "type": "{current: number}" + } + } + ] + } + ], + "tagName": "lion-steps" + } + ], + "exports": [ + { + "kind": "js", + "name": "LionSteps", + "declaration": { + "name": "LionSteps", + "module": "./src/LionSteps.js" + } + } + ] + } + ] +} diff --git a/packages/steps/package.json b/packages/steps/package.json index 2078e426a..d38669679 100644 --- a/packages/steps/package.json +++ b/packages/steps/package.json @@ -23,6 +23,7 @@ "types" ], "scripts": { + "custom-elements-manifest": "custom-elements-manifest analyze --exclude 'docs/**/*'", "debug": "cd ../../ && npm run debug -- --group steps", "debug:firefox": "cd ../../ && npm run debug:firefox -- --group steps", "debug:webkit": "cd ../../ && npm run debug:webkit -- --group steps", @@ -48,5 +49,6 @@ ".": "./index.js", "./lion-step": "./lion-step.js", "./lion-steps": "./lion-steps.js" - } + }, + "customElementsManifest": "custom-elements.json" } diff --git a/packages/switch/custom-elements.json b/packages/switch/custom-elements.json new file mode 100644 index 000000000..2eaff225e --- /dev/null +++ b/packages/switch/custom-elements.json @@ -0,0 +1,286 @@ +{ + "schemaVersion": "experimental", + "readme": "", + "modules": [ + { + "kind": "javascript-module", + "path": "./index.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "LionSwitch", + "declaration": { + "name": "LionSwitch", + "module": "./src/LionSwitch.js" + } + }, + { + "kind": "js", + "name": "LionSwitchButton", + "declaration": { + "name": "LionSwitchButton", + "module": "./src/LionSwitchButton.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./lion-switch-button.js", + "declarations": [], + "exports": [ + { + "kind": "custom-element-definition", + "name": "lion-switch-button", + "declaration": { + "name": "LionSwitchButton", + "module": "./src/LionSwitchButton.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./lion-switch.js", + "declarations": [], + "exports": [ + { + "kind": "custom-element-definition", + "name": "lion-switch", + "declaration": { + "name": "LionSwitch", + "module": "./src/LionSwitch.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/LionSwitch.js", + "declarations": [ + { + "kind": "class", + "name": "LionSwitch", + "mixins": [ + { + "name": "ScopedElementsMixin", + "package": "@lion/core" + }, + { + "name": "ChoiceInputMixin", + "package": "@lion/form-core" + } + ], + "superclass": { + "name": "LionField", + "package": "@lion/form-core" + }, + "members": [ + { + "kind": "field", + "name": "scopedElements", + "static": true, + "privacy": "public" + }, + { + "kind": "field", + "name": "_inputNode", + "privacy": "public" + }, + { + "kind": "field", + "name": "slots", + "privacy": "public" + }, + { + "kind": "method", + "name": "render", + "privacy": "public", + "description": "Restore original render function from FormControlMixin.js\nAs it gets overwritten in ChoiceInputMixin" + }, + { + "kind": "method", + "name": "_groupOneTemplate", + "privacy": "public" + }, + { + "kind": "method", + "name": "_groupTwoTemplate", + "privacy": "public" + }, + { + "kind": "method", + "name": "connectedCallback", + "privacy": "public" + }, + { + "kind": "method", + "name": "disconnectedCallback", + "privacy": "public" + }, + { + "kind": "method", + "name": "updated", + "privacy": "public", + "parameters": [ + { + "name": "changedProperties", + "type": { + "type": "PropertyValues " + } + } + ] + }, + { + "kind": "method", + "name": "_isEmpty", + "privacy": "public", + "description": "Override this function from ChoiceInputMixin." + }, + { + "kind": "method", + "name": "__handleButtonSwitchCheckedChanged", + "privacy": "public" + }, + { + "kind": "method", + "name": "_syncButtonSwitch", + "privacy": "public" + } + ], + "tagName": "lion-switch" + } + ], + "exports": [ + { + "kind": "js", + "name": "LionSwitch", + "declaration": { + "name": "LionSwitch", + "module": "./src/LionSwitch.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/LionSwitchButton.js", + "declarations": [ + { + "kind": "class", + "name": "LionSwitchButton", + "events": [ + { + "name": "checked-changed", + "type": { + "type": "Event" + } + } + ], + "mixins": [ + { + "name": "DisabledWithTabIndexMixin", + "package": "@lion/core" + } + ], + "superclass": { + "name": "LitElement", + "package": "@lion/core" + }, + "attributes": [ + { + "name": "role", + "fieldName": "role" + }, + { + "name": "checked", + "fieldName": "checked" + } + ], + "members": [ + { + "kind": "field", + "name": "role", + "privacy": "public", + "default": "'switch'" + }, + { + "kind": "field", + "name": "checked", + "privacy": "public", + "default": "false" + }, + { + "kind": "method", + "name": "_toggleChecked", + "privacy": "public" + }, + { + "kind": "method", + "name": "__checkedStateChange", + "privacy": "public" + }, + { + "kind": "method", + "name": "__handleKeydown", + "privacy": "public", + "parameters": [ + { + "name": "e", + "type": { + "type": "KeyboardEvent" + } + } + ] + }, + { + "kind": "method", + "name": "__handleKeyup", + "privacy": "public", + "parameters": [ + { + "name": "e", + "type": { + "type": "KeyboardEvent" + } + } + ] + }, + { + "kind": "method", + "name": "requestUpdateInternal", + "privacy": "public", + "description": "We synchronously update aria-checked to support voice over on safari.", + "parameters": [ + { + "name": "name", + "type": { + "type": "PropertyKey" + } + }, + { + "name": "oldValue", + "type": { + "type": "?" + } + } + ] + } + ], + "tagName": "lion-switch-button" + } + ], + "exports": [ + { + "kind": "js", + "name": "LionSwitchButton", + "declaration": { + "name": "LionSwitchButton", + "module": "./src/LionSwitchButton.js" + } + } + ] + } + ] +} diff --git a/packages/switch/package.json b/packages/switch/package.json index 779a46ef5..4de68365b 100644 --- a/packages/switch/package.json +++ b/packages/switch/package.json @@ -23,6 +23,7 @@ "types" ], "scripts": { + "custom-elements-manifest": "custom-elements-manifest analyze --exclude 'docs/**/*'", "debug": "cd ../../ && npm run debug -- --group switch", "debug:firefox": "cd ../../ && npm run debug:firefox -- --group switch", "debug:webkit": "cd ../../ && npm run debug:webkit -- --group switch", @@ -50,5 +51,6 @@ ".": "./index.js", "./lion-switch": "./lion-switch.js", "./lion-switch-button": "./lion-switch-button.js" - } + }, + "customElementsManifest": "custom-elements.json" } diff --git a/packages/tabs/custom-elements.json b/packages/tabs/custom-elements.json new file mode 100644 index 000000000..0cd66b043 --- /dev/null +++ b/packages/tabs/custom-elements.json @@ -0,0 +1,160 @@ +{ + "schemaVersion": "experimental", + "readme": "", + "modules": [ + { + "kind": "javascript-module", + "path": "./index.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "LionTabs", + "declaration": { + "name": "LionTabs", + "module": "./src/LionTabs.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./lion-tabs.js", + "declarations": [], + "exports": [ + { + "kind": "custom-element-definition", + "name": "lion-tabs", + "declaration": { + "name": "LionTabs", + "module": "./src/LionTabs.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/LionTabs.js", + "declarations": [ + { + "kind": "class", + "name": "LionTabs", + "events": [ + { + "name": "selected-changed", + "type": { + "type": "Event" + } + } + ], + "superclass": { + "name": "LitElement", + "package": "@lion/core" + }, + "attributes": [ + { + "name": "selected-index", + "fieldName": "selectedIndex" + } + ], + "members": [ + { + "kind": "field", + "name": "selectedIndex", + "privacy": "public", + "description": "An index number of the selected tab", + "default": "0" + }, + { + "kind": "method", + "name": "__setupSlots", + "privacy": "public" + }, + { + "kind": "method", + "name": "__setupStore", + "privacy": "public" + }, + { + "kind": "method", + "name": "__cleanStore", + "privacy": "public" + }, + { + "kind": "method", + "name": "__createButtonClickHandler", + "privacy": "public", + "return": { + "type": { + "type": "EventHandlerNonNull" + } + }, + "parameters": [ + { + "name": "index", + "type": { + "type": "number" + } + } + ] + }, + { + "kind": "method", + "name": "__handleButtonKeyup", + "privacy": "public", + "parameters": [ + { + "name": "ev", + "type": { + "type": "Event" + } + } + ] + }, + { + "kind": "method", + "name": "_setSelectedIndexWithFocus", + "privacy": "public", + "parameters": [ + { + "name": "value", + "type": { + "type": "number" + }, + "description": "The new index for focus" + } + ] + }, + { + "kind": "field", + "name": "_pairCount", + "privacy": "public" + }, + { + "kind": "method", + "name": "__updateSelected", + "privacy": "public", + "parameters": [ + { + "name": "withFocus", + "default": "false" + } + ] + } + ], + "tagName": "lion-tabs" + } + ], + "exports": [ + { + "kind": "js", + "name": "LionTabs", + "declaration": { + "name": "LionTabs", + "module": "./src/LionTabs.js" + } + } + ] + } + ] +} diff --git a/packages/tabs/package.json b/packages/tabs/package.json index 7dcd4f051..2c280938d 100644 --- a/packages/tabs/package.json +++ b/packages/tabs/package.json @@ -23,6 +23,7 @@ "types" ], "scripts": { + "custom-elements-manifest": "custom-elements-manifest analyze --exclude 'docs/**/*'", "debug": "cd ../../ && npm run debug -- --group tabs", "debug:firefox": "cd ../../ && npm run debug:firefox -- --group tabs", "debug:webkit": "cd ../../ && npm run debug:webkit -- --group tabs", @@ -46,5 +47,6 @@ "exports": { ".": "./index.js", "./lion-tabs": "./lion-tabs.js" - } + }, + "customElementsManifest": "custom-elements.json" } diff --git a/packages/textarea/custom-elements.json b/packages/textarea/custom-elements.json new file mode 100644 index 000000000..73cbc8012 --- /dev/null +++ b/packages/textarea/custom-elements.json @@ -0,0 +1,170 @@ +{ + "schemaVersion": "experimental", + "readme": "", + "modules": [ + { + "kind": "javascript-module", + "path": "./index.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "LionTextarea", + "declaration": { + "name": "LionTextarea", + "module": "./src/LionTextarea.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./lion-textarea.js", + "declarations": [], + "exports": [ + { + "kind": "custom-element-definition", + "name": "lion-textarea", + "declaration": { + "name": "LionTextarea", + "module": "./src/LionTextarea.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/LionTextarea.js", + "declarations": [ + { + "kind": "class", + "name": "LionTextarea", + "mixins": [ + { + "name": "NativeTextFieldMixin", + "package": "@lion/form-core" + } + ], + "superclass": { + "name": "LionFieldWithTextArea", + "module": "./src/LionTextarea.js" + }, + "attributes": [ + { + "name": "max-rows", + "fieldName": "maxRows" + }, + { + "name": "rows", + "fieldName": "rows" + }, + { + "name": "readonly", + "fieldName": "readOnly" + }, + { + "name": "placeholder", + "fieldName": "placeholder" + } + ], + "members": [ + { + "kind": "field", + "name": "maxRows", + "privacy": "public", + "default": "6" + }, + { + "kind": "field", + "name": "rows", + "privacy": "public", + "default": "2" + }, + { + "kind": "field", + "name": "readOnly", + "privacy": "public", + "default": "false" + }, + { + "kind": "field", + "name": "placeholder", + "privacy": "public", + "default": "''" + }, + { + "kind": "field", + "name": "slots", + "privacy": "public" + }, + { + "kind": "method", + "name": "connectedCallback", + "privacy": "public" + }, + { + "kind": "method", + "name": "updated", + "privacy": "public", + "parameters": [ + { + "name": "changedProperties", + "type": { + "type": "PropertyValues " + } + } + ] + }, + { + "kind": "method", + "name": "disconnectedCallback", + "privacy": "public" + }, + { + "kind": "method", + "name": "setTextareaMaxHeight", + "privacy": "public", + "description": "To support maxRows we need to set max-height of the textarea" + }, + { + "kind": "field", + "name": "updateComplete", + "privacy": "public" + }, + { + "kind": "method", + "name": "resizeTextarea", + "privacy": "public" + }, + { + "kind": "method", + "name": "__initializeAutoresize", + "privacy": "public" + }, + { + "kind": "method", + "name": "__waitForTextareaRenderedInRealDOM", + "privacy": "public" + }, + { + "kind": "method", + "name": "__startAutoresize", + "privacy": "public" + } + ], + "tagName": "lion-textarea" + } + ], + "exports": [ + { + "kind": "js", + "name": "LionTextarea", + "declaration": { + "name": "LionTextarea", + "module": "./src/LionTextarea.js" + } + } + ] + } + ] +} diff --git a/packages/textarea/package.json b/packages/textarea/package.json index 7a580ddfd..5d8f48da6 100644 --- a/packages/textarea/package.json +++ b/packages/textarea/package.json @@ -23,6 +23,7 @@ "types" ], "scripts": { + "custom-elements-manifest": "custom-elements-manifest analyze --exclude 'docs/**/*'", "debug": "cd ../../ && npm run debug -- --group textarea", "debug:firefox": "cd ../../ && npm run debug:firefox -- --group textarea", "debug:webkit": "cd ../../ && npm run debug:webkit -- --group textarea", @@ -49,5 +50,6 @@ "exports": { ".": "./index.js", "./lion-textarea": "./lion-textarea.js" - } + }, + "customElementsManifest": "custom-elements.json" } diff --git a/packages/tooltip/custom-elements.json b/packages/tooltip/custom-elements.json new file mode 100644 index 000000000..d2cdfad21 --- /dev/null +++ b/packages/tooltip/custom-elements.json @@ -0,0 +1,134 @@ +{ + "schemaVersion": "experimental", + "readme": "", + "modules": [ + { + "kind": "javascript-module", + "path": "./index.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "LionTooltip", + "declaration": { + "name": "LionTooltip", + "module": "./src/LionTooltip.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./lion-tooltip.js", + "declarations": [], + "exports": [ + { + "kind": "custom-element-definition", + "name": "lion-tooltip", + "declaration": { + "name": "LionTooltip", + "module": "./src/LionTooltip.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/LionTooltip.js", + "declarations": [ + { + "kind": "class", + "name": "LionTooltip", + "mixins": [ + { + "name": "ArrowMixin", + "package": "@lion/overlays" + }, + { + "name": "OverlayMixin", + "package": "@lion/overlays" + } + ], + "superclass": { + "name": "LitElement", + "package": "@lion/core" + }, + "attributes": [ + { + "name": "invoker-relation", + "fieldName": "invokerRelation" + } + ], + "members": [ + { + "kind": "field", + "name": "invokerRelation", + "privacy": "public", + "type": { + "type": "'label'|'description'" + }, + "description": "Decides whether the tooltip invoker text should be considered a description\n(sets aria-describedby) or a label (sets aria-labelledby).", + "default": "'description'" + }, + { + "kind": "method", + "name": "_defineOverlayConfig", + "privacy": "public" + }, + { + "kind": "method", + "name": "_hasDisabledInvoker", + "privacy": "public" + }, + { + "kind": "method", + "name": "_setupOpenCloseListeners", + "privacy": "public" + }, + { + "kind": "method", + "name": "_teardownOpenCloseListeners", + "privacy": "public" + }, + { + "kind": "method", + "name": "__resetActive", + "privacy": "public" + }, + { + "kind": "method", + "name": "_showMouse", + "privacy": "public" + }, + { + "kind": "method", + "name": "_hideMouse", + "privacy": "public" + }, + { + "kind": "method", + "name": "_showKey", + "privacy": "public" + }, + { + "kind": "method", + "name": "_hideKey", + "privacy": "public" + } + ], + "tagName": "lion-tooltip" + } + ], + "exports": [ + { + "kind": "js", + "name": "LionTooltip", + "declaration": { + "name": "LionTooltip", + "module": "./src/LionTooltip.js" + } + } + ] + } + ] +} diff --git a/packages/tooltip/package.json b/packages/tooltip/package.json index ab0a44d37..82f0ba355 100644 --- a/packages/tooltip/package.json +++ b/packages/tooltip/package.json @@ -23,6 +23,7 @@ "types" ], "scripts": { + "custom-elements-manifest": "custom-elements-manifest analyze --exclude 'docs/**/*'", "debug": "cd ../../ && npm run debug -- --group tooltip", "debug:firefox": "cd ../../ && npm run debug:firefox -- --group tooltip", "debug:webkit": "cd ../../ && npm run debug:webkit -- --group tooltip", @@ -48,5 +49,6 @@ "exports": { ".": "./index.js", "./lion-tooltip": "./lion-tooltip.js" - } + }, + "customElementsManifest": "custom-elements.json" } diff --git a/packages/validate-messages/custom-elements.json b/packages/validate-messages/custom-elements.json new file mode 100644 index 000000000..09ab25045 --- /dev/null +++ b/packages/validate-messages/custom-elements.json @@ -0,0 +1,503 @@ +{ + "schemaVersion": "experimental", + "readme": "", + "modules": [ + { + "kind": "javascript-module", + "path": "./index.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "loadDefaultFeedbackMessages", + "declaration": { + "name": "loadDefaultFeedbackMessages", + "module": "./src/loadDefaultFeedbackMessages.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/loadDefaultFeedbackMessages.js", + "declarations": [ + { + "kind": "function", + "name": "loadDefaultFeedbackMessages" + } + ], + "exports": [ + { + "kind": "js", + "name": "loadDefaultFeedbackMessages", + "declaration": { + "name": "loadDefaultFeedbackMessages", + "module": "./src/loadDefaultFeedbackMessages.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./translations/bg-BG.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/bg-BG.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-CZ.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/cs-CZ.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-DE.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/de-DE.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-AU.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/en-AU.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./translations/en-GB.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/en-GB.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./translations/en-US.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/en-US.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-ES.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/es-ES.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-BE.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/fr-BE.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./translations/fr-FR.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/fr-FR.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-HU.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/hu-HU.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-IT.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/it-IT.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-BE.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/nl-BE.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./translations/nl-NL.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/nl-NL.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-PL.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/pl-PL.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-RO.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/ro-RO.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-RU.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/ru-RU.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-SK.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/sk-SK.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-UA.js", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "default", + "declaration": { + "module": "./translations/uk-UA.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" + } + } + ] + } + ] +} diff --git a/packages/validate-messages/package.json b/packages/validate-messages/package.json index aa1ec27ac..acc8f9e4c 100644 --- a/packages/validate-messages/package.json +++ b/packages/validate-messages/package.json @@ -23,6 +23,7 @@ "types" ], "scripts": { + "custom-elements-manifest": "custom-elements-manifest analyze --exclude 'docs/**/*'", "debug": "cd ../../ && npm run debug -- --group validate-messages", "debug:firefox": "cd ../../ && npm run debug:firefox -- --group validate-messages", "debug:webkit": "cd ../../ && npm run debug:webkit -- --group validate-messages", @@ -44,5 +45,6 @@ "publishConfig": { "access": "public" }, - "exports": "./index.js" + "exports": "./index.js", + "customElementsManifest": "custom-elements.json" }