From 4c115ccf4ebf73c56e409c28c7e8f9f1daeeaffd Mon Sep 17 00:00:00 2001 From: thepassle Date: Thu, 11 Feb 2021 09:59:22 +0100 Subject: [PATCH 1/3] docs: add custom elements manifest --- packages/accordion/custom-elements.json | 152 + packages/accordion/package.json | 5 + packages/ajax/custom-elements.json | 498 + packages/ajax/package.json | 4 +- packages/button/custom-elements.json | 229 + packages/button/package.json | 4 +- packages/calendar/custom-elements.json | 1487 +++ packages/calendar/package.json | 4 +- packages/checkbox-group/custom-elements.json | 255 + packages/checkbox-group/package.json | 4 +- packages/collapsible/custom-elements.json | 423 + packages/collapsible/package.json | 4 +- packages/combobox/custom-elements.json | 3954 +++++++ packages/combobox/package.json | 4 +- packages/core/custom-elements.json | 1485 +++ packages/core/package.json | 4 +- packages/dialog/custom-elements.json | 163 + packages/dialog/package.json | 4 +- packages/fieldset/custom-elements.json | 81 + packages/fieldset/package.json | 4 +- packages/form-core/custom-elements.json | 9954 +++++++++++++++++ packages/form-core/package.json | 4 +- .../form-integrations/custom-elements.json | 182 + packages/form-integrations/package.json | 4 +- packages/form/custom-elements.json | 138 + packages/form/package.json | 4 +- packages/helpers/custom-elements.json | 322 + packages/helpers/package.json | 4 +- packages/icon/custom-elements.json | 886 ++ packages/icon/package.json | 4 +- packages/input-amount/custom-elements.json | 283 + packages/input-amount/package.json | 4 +- packages/input-date/custom-elements.json | 124 + packages/input-date/package.json | 4 +- .../input-datepicker/custom-elements.json | 923 ++ packages/input-datepicker/package.json | 4 +- packages/input-email/custom-elements.json | 67 + packages/input-email/package.json | 4 +- packages/input-iban/custom-elements.json | 954 ++ packages/input-iban/package.json | 4 +- packages/input-range/custom-elements.json | 190 + packages/input-range/package.json | 4 +- packages/input-stepper/custom-elements.json | 272 + packages/input-stepper/package.json | 4 +- packages/input/custom-elements.json | 161 + packages/input/package.json | 4 +- packages/listbox/custom-elements.json | 1855 +++ packages/listbox/package.json | 4 +- packages/localize/custom-elements.json | 2709 +++++ packages/localize/package.json | 4 +- packages/overlays/custom-elements.json | 3035 +++++ packages/overlays/package.json | 4 +- packages/pagination/custom-elements.json | 457 + packages/pagination/package.json | 4 +- .../progress-indicator/custom-elements.json | 361 + packages/progress-indicator/package.json | 4 +- packages/radio-group/custom-elements.json | 139 + packages/radio-group/package.json | 4 +- packages/select-rich/custom-elements.json | 560 + packages/select-rich/package.json | 4 +- packages/select/custom-elements.json | 104 + packages/select/package.json | 4 +- .../singleton-manager/custom-elements.json | 901 ++ packages/singleton-manager/package.json | 4 +- packages/steps/custom-elements.json | 336 + packages/steps/package.json | 4 +- packages/switch/custom-elements.json | 286 + packages/switch/package.json | 4 +- packages/tabs/custom-elements.json | 160 + packages/tabs/package.json | 4 +- packages/textarea/custom-elements.json | 170 + packages/textarea/package.json | 4 +- packages/tooltip/custom-elements.json | 134 + packages/tooltip/package.json | 4 +- .../validate-messages/custom-elements.json | 503 + packages/validate-messages/package.json | 4 +- 76 files changed, 35009 insertions(+), 37 deletions(-) create mode 100644 packages/accordion/custom-elements.json create mode 100644 packages/ajax/custom-elements.json create mode 100644 packages/button/custom-elements.json create mode 100644 packages/calendar/custom-elements.json create mode 100644 packages/checkbox-group/custom-elements.json create mode 100644 packages/collapsible/custom-elements.json create mode 100644 packages/combobox/custom-elements.json create mode 100644 packages/core/custom-elements.json create mode 100644 packages/dialog/custom-elements.json create mode 100644 packages/fieldset/custom-elements.json create mode 100644 packages/form-core/custom-elements.json create mode 100644 packages/form-integrations/custom-elements.json create mode 100644 packages/form/custom-elements.json create mode 100644 packages/helpers/custom-elements.json create mode 100644 packages/icon/custom-elements.json create mode 100644 packages/input-amount/custom-elements.json create mode 100644 packages/input-date/custom-elements.json create mode 100644 packages/input-datepicker/custom-elements.json create mode 100644 packages/input-email/custom-elements.json create mode 100644 packages/input-iban/custom-elements.json create mode 100644 packages/input-range/custom-elements.json create mode 100644 packages/input-stepper/custom-elements.json create mode 100644 packages/input/custom-elements.json create mode 100644 packages/listbox/custom-elements.json create mode 100644 packages/localize/custom-elements.json create mode 100644 packages/overlays/custom-elements.json create mode 100644 packages/pagination/custom-elements.json create mode 100644 packages/progress-indicator/custom-elements.json create mode 100644 packages/radio-group/custom-elements.json create mode 100644 packages/select-rich/custom-elements.json create mode 100644 packages/select/custom-elements.json create mode 100644 packages/singleton-manager/custom-elements.json create mode 100644 packages/steps/custom-elements.json create mode 100644 packages/switch/custom-elements.json create mode 100644 packages/tabs/custom-elements.json create mode 100644 packages/textarea/custom-elements.json create mode 100644 packages/tooltip/custom-elements.json create mode 100644 packages/validate-messages/custom-elements.json 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" } From ab8ac3438476f48757c2000d92c37d3dfaea7047 Mon Sep 17 00:00:00 2001 From: Joren Broekema Date: Mon, 15 Feb 2021 18:20:21 +0100 Subject: [PATCH 2/3] chore: add custom-elements-manifest to dev deps, add script --- package.json | 2 + packages/accordion/custom-elements.json | 10 +- packages/accordion/package.json | 7 +- packages/ajax/custom-elements.json | 575 ++-- packages/ajax/package.json | 2 +- packages/button/custom-elements.json | 17 +- packages/button/package.json | 2 +- packages/calendar/custom-elements.json | 174 +- packages/calendar/package.json | 2 +- packages/checkbox-group/custom-elements.json | 8 +- packages/checkbox-group/package.json | 2 +- packages/collapsible/custom-elements.json | 28 +- packages/collapsible/package.json | 2 +- packages/combobox/custom-elements.json | 304 +- packages/combobox/package.json | 2 +- packages/core/custom-elements.json | 86 +- packages/core/package.json | 2 +- packages/dialog/custom-elements.json | 6 +- packages/dialog/package.json | 2 +- packages/fieldset/custom-elements.json | 4 +- packages/fieldset/package.json | 2 +- packages/form-core/custom-elements.json | 2520 ++++++++++------- packages/form-core/package.json | 2 +- .../form-integrations/custom-elements.json | 4 +- packages/form-integrations/package.json | 2 +- packages/form/custom-elements.json | 12 +- packages/form/package.json | 2 +- packages/helpers/custom-elements.json | 18 +- packages/helpers/package.json | 2 +- packages/icon/custom-elements.json | 34 +- packages/icon/package.json | 2 +- packages/input-amount/custom-elements.json | 24 +- packages/input-amount/package.json | 2 +- packages/input-date/custom-elements.json | 10 +- packages/input-date/package.json | 2 +- .../input-datepicker/custom-elements.json | 26 +- packages/input-datepicker/package.json | 2 +- packages/input-email/custom-elements.json | 4 +- packages/input-email/package.json | 2 +- packages/input-iban/custom-elements.json | 70 +- packages/input-iban/package.json | 2 +- packages/input-range/custom-elements.json | 10 +- packages/input-range/package.json | 2 +- packages/input-stepper/custom-elements.json | 26 +- packages/input-stepper/package.json | 2 +- packages/input/custom-elements.json | 14 +- packages/input/package.json | 2 +- packages/listbox/custom-elements.json | 233 +- packages/listbox/package.json | 2 +- packages/localize/custom-elements.json | 362 ++- packages/localize/package.json | 2 +- packages/overlays/custom-elements.json | 1151 ++++---- packages/overlays/package.json | 2 +- packages/pagination/custom-elements.json | 28 +- packages/pagination/package.json | 2 +- .../progress-indicator/custom-elements.json | 4 +- packages/progress-indicator/package.json | 2 +- packages/radio-group/custom-elements.json | 4 +- packages/radio-group/package.json | 2 +- packages/select-rich/custom-elements.json | 33 +- packages/select-rich/package.json | 2 +- packages/select/custom-elements.json | 8 +- packages/select/package.json | 2 +- .../singleton-manager/custom-elements.json | 94 +- packages/singleton-manager/package.json | 2 +- packages/steps/custom-elements.json | 34 +- packages/steps/package.json | 2 +- packages/switch/custom-elements.json | 16 +- packages/switch/package.json | 2 +- packages/tabs/custom-elements.json | 14 +- packages/tabs/package.json | 2 +- packages/textarea/custom-elements.json | 6 +- packages/textarea/package.json | 2 +- packages/tooltip/custom-elements.json | 6 +- packages/tooltip/package.json | 2 +- .../validate-messages/custom-elements.json | 4 +- packages/validate-messages/package.json | 2 +- yarn.lock | 26 + 78 files changed, 3345 insertions(+), 2745 deletions(-) diff --git a/package.json b/package.json index dafa0ebc7..565ea817d 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "build:docs": "wca analyze \"packages/tabs/**/*.js\"", "build:types": "tsc -p tsconfig.build.types.json", "bundlesize": "rollup -c bundlesize/rollup.config.js && bundlesize", + "custom-elements-manifest": "node scripts/workspaces-scripts.mjs run custom-elements-manifest", "debug": "web-test-runner --watch --config web-test-runner-chrome.config.mjs", "debug:firefox": "web-test-runner --watch --config web-test-runner-firefox.config.mjs", "debug:webkit": "web-test-runner --watch --config web-test-runner-webkit.config.mjs", @@ -41,6 +42,7 @@ "@changesets/cli": "^2.9.2", "@commitlint/cli": "^7.0.0", "@commitlint/config-conventional": "^7.0.0", + "@custom-elements-manifest/analyzer": "^0.1.7", "@mdjs/core": "^0.3.1", "@open-wc/building-rollup": "^1.2.1", "@open-wc/demoing-storybook": "^2.0.2", diff --git a/packages/accordion/custom-elements.json b/packages/accordion/custom-elements.json index 3395dcd99..5a503872c 100644 --- a/packages/accordion/custom-elements.json +++ b/packages/accordion/custom-elements.json @@ -1,5 +1,5 @@ { - "schemaVersion": "experimental", + "schemaVersion": "0.1.0", "readme": "", "modules": [ { @@ -87,7 +87,7 @@ { "name": "index", "type": { - "type": "number" + "text": "number" } } ] @@ -100,7 +100,7 @@ { "name": "e", "type": { - "type": "Event" + "text": "Event" } } ] @@ -128,7 +128,7 @@ { "name": "value", "type": { - "type": "number" + "text": "number" } } ] @@ -149,4 +149,4 @@ ] } ] -} +} \ No newline at end of file diff --git a/packages/accordion/package.json b/packages/accordion/package.json index b3bc5d325..1bf11d291 100644 --- a/packages/accordion/package.json +++ b/packages/accordion/package.json @@ -44,12 +44,9 @@ "publishConfig": { "access": "public" }, -<<<<<<< HEAD "exports": { ".": "./index.js", "./lion-accordion": "./lion-accordion.js" - } -======= + }, "customElementsManifest": "custom-elements.json" ->>>>>>> d8595b90... docs: add custom elements manifest -} +} \ No newline at end of file diff --git a/packages/ajax/custom-elements.json b/packages/ajax/custom-elements.json index 82f717d48..a41e90a67 100644 --- a/packages/ajax/custom-elements.json +++ b/packages/ajax/custom-elements.json @@ -1,5 +1,5 @@ { - "schemaVersion": "experimental", + "schemaVersion": "0.1.0", "readme": "", "modules": [ { @@ -25,308 +25,186 @@ }, { "kind": "js", - "name": "AjaxClass", + "name": "AjaxClient", "declaration": { - "name": "AjaxClass", - "module": "./src/AjaxClass.js" + "name": "AjaxClient", + "module": "./src/AjaxClient.js" } }, { "kind": "js", - "name": "cancelInterceptorFactory", + "name": "AjaxClientFetchError", "declaration": { - "name": "cancelInterceptorFactory", + "name": "AjaxClientFetchError", + "module": "./src/AjaxClientFetchError.js" + } + }, + { + "kind": "js", + "name": "acceptLanguageRequestInterceptor", + "declaration": { + "name": "acceptLanguageRequestInterceptor", "module": "./src/interceptors.js" } }, { "kind": "js", - "name": "cancelPreviousOnNewRequestInterceptorFactory", + "name": "createXSRFRequestInterceptor", "declaration": { - "name": "cancelPreviousOnNewRequestInterceptorFactory", + "name": "createXSRFRequestInterceptor", "module": "./src/interceptors.js" } }, { "kind": "js", - "name": "addAcceptLanguageHeaderInterceptorFactory", + "name": "getCookie", "declaration": { - "name": "addAcceptLanguageHeaderInterceptorFactory", + "name": "getCookie", "module": "./src/interceptors.js" } }, { "kind": "js", - "name": "jsonPrefixTransformerFactory", + "name": "cacheRequestInterceptorFactory", "declaration": { - "name": "jsonPrefixTransformerFactory", - "module": "./src/transformers.js" + "name": "cacheRequestInterceptorFactory", + "module": "./src/interceptors-cache.js" + } + }, + { + "kind": "js", + "name": "cacheResponseInterceptorFactory", + "declaration": { + "name": "cacheResponseInterceptorFactory", + "module": "./src/interceptors-cache.js" + } + }, + { + "kind": "js", + "name": "validateOptions", + "declaration": { + "name": "validateOptions", + "module": "./src/interceptors-cache.js" } } ] }, { "kind": "javascript-module", - "path": "./src/AjaxClass.js", + "path": "./src/AjaxClient.js", "declarations": [ { "kind": "class", - "name": "AjaxClass", + "name": "AjaxClient", "members": [ { "kind": "field", "name": "options", "privacy": "public" }, + { + "kind": "method", + "name": "addRequestInterceptor", + "privacy": "public", + "parameters": [ + { + "name": "requestInterceptor", + "type": { + "text": "RequestInterceptor" + } + } + ] + }, + { + "kind": "method", + "name": "removeRequestInterceptor", + "privacy": "public", + "parameters": [ + { + "name": "requestInterceptor", + "type": { + "text": "RequestInterceptor" + } + } + ] + }, + { + "kind": "method", + "name": "addResponseInterceptor", + "privacy": "public", + "parameters": [ + { + "name": "responseInterceptor", + "type": { + "text": "ResponseInterceptor" + } + } + ] + }, + { + "kind": "method", + "name": "removeResponseInterceptor", + "privacy": "public", + "parameters": [ + { + "name": "responseInterceptor", + "type": { + "text": "ResponseInterceptor" + } + } + ] + }, { "kind": "method", "name": "request", "privacy": "public", - "description": "Dispatches a request", + "description": "Makes a fetch request, calling the registered fetch request and response\ninterceptors.", "return": { "type": { - "type": "?" + "text": "Promise" } }, "parameters": [ { - "name": "url", + "name": "info", "type": { - "type": "string" + "text": "RequestInfo" } }, { - "name": "config", + "name": "init", "type": { - "type": "{[key:string]: ?}" + "text": "RequestInit & Partial" }, - "description": "the config specific for this request", "optional": true } ] }, { "kind": "method", - "name": "cancel", + "name": "requestJson", "privacy": "public", + "description": "Makes a fetch request, calling the registered fetch request and response\ninterceptors. Encodes/decodes the request and response body as JSON.", + "return": { + "type": { + "text": "Promise<{ response: Response, body: T }>" + } + }, "parameters": [ { - "name": "msg", + "name": "info", "type": { - "type": "string" + "text": "RequestInfo" } - } - ] - }, - { - "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", + "name": "init", "type": { - "type": "{[key:string]: ?}" + "text": "LionRequestInit" }, - "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]: ?}" - } - } - ] } ] } @@ -334,10 +212,34 @@ "exports": [ { "kind": "js", - "name": "AjaxClass", + "name": "AjaxClient", "declaration": { - "name": "AjaxClass", - "module": "./src/AjaxClass.js" + "name": "AjaxClient", + "module": "./src/AjaxClient.js" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "./src/AjaxClientFetchError.js", + "declarations": [ + { + "kind": "class", + "name": "AjaxClientFetchError", + "superclass": { + "name": "Error", + "module": "./src/AjaxClientFetchError.js" + } + } + ], + "exports": [ + { + "kind": "js", + "name": "AjaxClientFetchError", + "declaration": { + "name": "AjaxClientFetchError", + "module": "./src/AjaxClientFetchError.js" } } ] @@ -358,7 +260,7 @@ { "name": "newAjax", "type": { - "type": "AjaxClass" + "text": "AjaxClient" }, "description": "the globally used instance of {@link:ajax}." } @@ -384,95 +286,140 @@ } ] }, + { + "kind": "javascript-module", + "path": "./src/interceptors-cache.js", + "declarations": [ + { + "kind": "variable", + "name": "searchParamSerializer", + "description": "Serialize search parameters into url query string parameters.\nIf params === null, returns ''" + }, + { + "kind": "variable", + "name": "validateOptions", + "description": "", + "type": { + "text": "ValidatedCacheOptions" + } + }, + { + "kind": "variable", + "name": "cacheRequestInterceptorFactory", + "description": "Request interceptor to return relevant cached requests" + }, + { + "kind": "variable", + "name": "cacheResponseInterceptorFactory", + "description": "Response interceptor to cache relevant requests" + } + ], + "exports": [ + { + "kind": "js", + "name": "searchParamSerializer", + "declaration": { + "name": "searchParamSerializer", + "module": "./src/interceptors-cache.js" + } + }, + { + "kind": "js", + "name": "validateOptions", + "declaration": { + "name": "validateOptions", + "module": "./src/interceptors-cache.js" + } + }, + { + "kind": "js", + "name": "cacheRequestInterceptorFactory", + "declaration": { + "name": "cacheRequestInterceptorFactory", + "module": "./src/interceptors-cache.js" + } + }, + { + "kind": "js", + "name": "cacheResponseInterceptorFactory", + "declaration": { + "name": "cacheResponseInterceptorFactory", + "module": "./src/interceptors-cache.js" + } + } + ] + }, { "kind": "javascript-module", "path": "./src/interceptors.js", "declarations": [ { "kind": "function", - "name": "addAcceptLanguageHeaderInterceptorFactory", + "name": "getCookie", "return": { "type": { - "type": "(config: {[key:string]: ?}) => {[key:string]: ?}" + "text": "string | null" } }, "parameters": [ { - "name": "lang", + "name": "name", "type": { - "type": "string" + "text": "string" }, - "optional": true + "description": "the cookie name" + }, + { + "name": "_document", + "type": { + "text": "Document | { cookie: string }" + }, + "description": "overwriteable for testing", + "default": "document" } ] }, { "kind": "function", - "name": "cancelInterceptorFactory", + "name": "acceptLanguageRequestInterceptor", + "description": "Transforms a request, adding an accept-language header with the current application's locale\nif it has not already been set.", + "parameters": [ + { + "name": "request" + } + ] + }, + { + "kind": "function", + "name": "createXSRFRequestInterceptor", + "description": "Creates a request transformer that adds a XSRF header for protecting\nagainst cross-site request forgery.", "return": { "type": { - "type": "(config: {[key:string]: ?}) => {[key:string]: ?}" + "text": "RequestInterceptor" } }, "parameters": [ { - "name": "ajaxInstance", + "name": "cookieName", "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": [ + "text": "string" + }, + "description": "the cookie name" + }, { - "name": "prefix", + "name": "headerName", "type": { - "type": "string" - } + "text": "string" + }, + "description": "the header name" + }, + { + "name": "_document", + "type": { + "text": "Document | { cookie: string }" + }, + "description": "overwriteable for testing", + "default": "document" } ] } @@ -480,19 +427,47 @@ "exports": [ { "kind": "js", - "name": "jsonPrefixTransformerFactory", + "name": "getCookie", "declaration": { - "name": "jsonPrefixTransformerFactory", - "module": "./src/transformers.js" + "name": "getCookie", + "module": "./src/interceptors.js" + } + }, + { + "kind": "js", + "name": "acceptLanguageRequestInterceptor", + "declaration": { + "name": "acceptLanguageRequestInterceptor", + "module": "./src/interceptors.js" + } + }, + { + "kind": "js", + "name": "createXSRFRequestInterceptor", + "declaration": { + "name": "createXSRFRequestInterceptor", + "module": "./src/interceptors.js" } } ] }, { "kind": "javascript-module", - "path": "./docs/assets/data.json", + "path": "./src/typedef.js", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "./types/types.d.ts", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "./docs/cache-technical-docs.md", "declarations": [], "exports": [] } ] -} +} \ No newline at end of file diff --git a/packages/ajax/package.json b/packages/ajax/package.json index 01eaab8df..6f449fa51 100644 --- a/packages/ajax/package.json +++ b/packages/ajax/package.json @@ -42,4 +42,4 @@ }, "exports": "./index.js", "customElementsManifest": "custom-elements.json" -} +} \ No newline at end of file diff --git a/packages/button/custom-elements.json b/packages/button/custom-elements.json index 99a974be9..71f86d9df 100644 --- a/packages/button/custom-elements.json +++ b/packages/button/custom-elements.json @@ -1,5 +1,5 @@ { - "schemaVersion": "experimental", + "schemaVersion": "0.1.0", "readme": "", "modules": [ { @@ -99,7 +99,10 @@ { "kind": "field", "name": "_nativeButtonNode", - "privacy": "public" + "privacy": "public", + "type": { + "text": "HTMLButtonElement" + } }, { "kind": "field", @@ -115,7 +118,7 @@ { "name": "ev", "type": { - "type": "Event" + "text": "Event" } } ] @@ -148,7 +151,7 @@ { "name": "e", "type": { - "type": "KeyboardEvent" + "text": "KeyboardEvent" } } ] @@ -161,7 +164,7 @@ { "name": "e", "type": { - "type": "KeyboardEvent" + "text": "KeyboardEvent" } } ] @@ -175,7 +178,7 @@ { "name": "e", "type": { - "type": "Event" + "text": "Event" } } ] @@ -226,4 +229,4 @@ ] } ] -} +} \ No newline at end of file diff --git a/packages/button/package.json b/packages/button/package.json index 60db805c3..a5537d7cd 100644 --- a/packages/button/package.json +++ b/packages/button/package.json @@ -49,4 +49,4 @@ "./lion-button": "./lion-button.js" }, "customElementsManifest": "custom-elements.json" -} +} \ No newline at end of file diff --git a/packages/calendar/custom-elements.json b/packages/calendar/custom-elements.json index fe2b0003b..f13c15984 100644 --- a/packages/calendar/custom-elements.json +++ b/packages/calendar/custom-elements.json @@ -1,5 +1,5 @@ { - "schemaVersion": "experimental", + "schemaVersion": "0.1.0", "readme": "", "modules": [ { @@ -7,6 +7,14 @@ "path": "./index.js", "declarations": [], "exports": [ + { + "kind": "js", + "name": "isSameDate", + "declaration": { + "name": "isSameDate", + "module": "./src/utils/isSameDate.js" + } + }, { "kind": "js", "name": "LionCalendar", @@ -74,7 +82,7 @@ { "name": "user-selected-date-changed", "type": { - "type": "CustomEvent" + "text": "CustomEvent" } } ], @@ -122,7 +130,7 @@ "name": "centralDate", "privacy": "public", "type": { - "type": "Date" + "text": "Date" }, "default": "this.__today" }, @@ -149,7 +157,7 @@ "name": "__focusedDate", "privacy": "public", "type": { - "type": "Date | null" + "text": "Date | null" }, "default": "null" }, @@ -158,7 +166,7 @@ "name": "__data", "privacy": "public", "type": { - "type": "{months: Month[]}" + "text": "{months: Month[]}" }, "default": "{ months: [] }" }, @@ -195,7 +203,7 @@ { "name": "date", "type": { - "type": "Date" + "text": "Date" } } ] @@ -218,13 +226,13 @@ { "name": "name", "type": { - "type": "string" + "text": "string" } }, { "name": "oldValue", "type": { - "type": "?" + "text": "?" } } ] @@ -242,13 +250,13 @@ { "name": "month", "type": { - "type": "string" + "text": "string" } }, { "name": "year", "type": { - "type": "number" + "text": "number" } } ] @@ -261,13 +269,13 @@ { "name": "month", "type": { - "type": "string" + "text": "string" } }, { "name": "year", "type": { - "type": "number" + "text": "number" } } ] @@ -290,19 +298,19 @@ { "name": "type", "type": { - "type": "string" + "text": "string" } }, { "name": "previousMonth", "type": { - "type": "string" + "text": "string" } }, { "name": "previousYear", "type": { - "type": "number" + "text": "number" } } ] @@ -315,19 +323,19 @@ { "name": "type", "type": { - "type": "string" + "text": "string" } }, { "name": "nextMonth", "type": { - "type": "string" + "text": "string" } }, { "name": "nextYear", "type": { - "type": "number" + "text": "number" } } ] @@ -340,19 +348,19 @@ { "name": "type", "type": { - "type": "string" + "text": "string" } }, { "name": "previousMonth", "type": { - "type": "string" + "text": "string" } }, { "name": "previousYear", "type": { - "type": "number" + "text": "number" } } ] @@ -365,19 +373,19 @@ { "name": "type", "type": { - "type": "string" + "text": "string" } }, { "name": "nextMonth", "type": { - "type": "string" + "text": "string" } }, { "name": "nextYear", "type": { - "type": "number" + "text": "number" } } ] @@ -390,25 +398,25 @@ { "name": "mode", "type": { - "type": "string" + "text": "string" } }, { "name": "type", "type": { - "type": "string" + "text": "string" } }, { "name": "month", "type": { - "type": "string" + "text": "string" } }, { "name": "year", "type": { - "type": "number" + "text": "number" } } ] @@ -421,13 +429,13 @@ { "name": "_day", "type": { - "type": "Day" + "text": "Day" } }, { "name": "param1", "type": { - "type": "*" + "text": "*" } } ] @@ -440,7 +448,7 @@ { "name": "options", "type": { - "type": "Day" + "text": "Day" }, "optional": true } @@ -459,7 +467,7 @@ { "name": "selectedDate", "type": { - "type": "Date" + "text": "Date" } } ] @@ -487,7 +495,7 @@ { "name": "date", "type": { - "type": "Date" + "text": "Date" } } ] @@ -500,19 +508,19 @@ { "name": "date", "type": { - "type": "Date" + "text": "Date" } }, { "name": "opts", "type": { - "type": "Object" + "text": "Object" } }, { "name": "opts.mode", "type": { - "type": "String" + "text": "String" }, "description": "Find best date in `future/past/both`", "optional": true @@ -527,7 +535,7 @@ { "name": "ev", "type": { - "type": "Event" + "text": "Event" } } ] @@ -550,7 +558,7 @@ { "name": "ev", "type": { - "type": "KeyboardEvent" + "text": "KeyboardEvent" } } ] @@ -563,31 +571,31 @@ { "name": "modify", "type": { - "type": "number" + "text": "number" } }, { "name": "opts", "type": { - "type": "Object" + "text": "Object" } }, { "name": "opts.dateType", "type": { - "type": "string" + "text": "string" } }, { "name": "opts.type", "type": { - "type": "string" + "text": "string" } }, { "name": "opts.mode", "type": { - "type": "string" + "text": "string" } } ] @@ -632,12 +640,6 @@ } ] }, - { - "kind": "javascript-module", - "path": "./test/demos.screenshots-test.js", - "declarations": [], - "exports": [] - }, { "kind": "javascript-module", "path": "./test-helpers/CalendarObject.js", @@ -734,7 +736,7 @@ { "name": "monthDayNumber", "type": { - "type": "number" + "text": "number" } } ] @@ -747,7 +749,7 @@ { "name": "monthDayNumber", "type": { - "type": "number" + "text": "number" } } ] @@ -775,14 +777,14 @@ { "name": "condition", "type": { - "type": "function" + "text": "function" }, "description": ": condition that should apply for \"filter\" days\nExample: \"(dayObj) => dayObj.selected\"" }, { "name": "filter", "type": { - "type": "number[]|function" + "text": "number[]|function" }, "description": "month day numbers for which condition should apply.\n- Example 1: \"[15, 20]\"\n- Example 2: \"(dayNumber) => dayNumber === 15\" (1 based ,not zero based)", "optional": true @@ -915,6 +917,18 @@ } ] }, + { + "kind": "javascript-module", + "path": "./test/demos.screenshots-test.js", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "./types/day.d.ts", + "declarations": [], + "exports": [] + }, { "kind": "javascript-module", "path": "./translations/bg.js", @@ -1125,12 +1139,6 @@ } ] }, - { - "kind": "javascript-module", - "path": "./types/day.d.ts", - "declarations": [], - "exports": [] - }, { "kind": "javascript-module", "path": "./src/utils/createDay.js", @@ -1140,14 +1148,14 @@ "name": "createDay", "return": { "type": { - "type": "Day" + "text": "Day" } }, "parameters": [ { "name": "date,", "type": { - "type": "Date" + "text": "Date" } }, { @@ -1177,26 +1185,26 @@ "name": "createMonth", "return": { "type": { - "type": "Month" + "text": "Month" } }, "parameters": [ { "name": "date", "type": { - "type": "Date" + "text": "Date" } }, { "name": "opts", "type": { - "type": "Object" + "text": "Object" } }, { "name": "opts.firstDayOfWeek", "type": { - "type": "number" + "text": "number" }, "optional": true } @@ -1223,14 +1231,14 @@ "name": "createMultipleMonth", "return": { "type": { - "type": "{months: Month[]}" + "text": "{months: Month[]}" } }, "parameters": [ { "name": "date", "type": { - "type": "Date" + "text": "Date" } } ] @@ -1256,26 +1264,26 @@ "name": "createWeek", "return": { "type": { - "type": "Week" + "text": "Week" } }, "parameters": [ { "name": "date", "type": { - "type": "Date" + "text": "Date" } }, { "name": "opts", "type": { - "type": "Object" + "text": "Object" } }, { "name": "opts.firstDayOfWeek", "type": { - "type": "number" + "text": "number" }, "optional": true } @@ -1304,13 +1312,13 @@ { "name": "data", "type": { - "type": "{months: {weeks: {days: Day[]}[]}[]}" + "text": "{months: {weeks: {days: Day[]}[]}[]}" } }, { "name": "opts", "type": { - "type": "{ weekdaysShort: string[], weekdays: string[], monthsLabels?: string[], dayTemplate?: (day: TemplateResult }" + "text": "{ weekdaysShort: string[], weekdays: string[], monthsLabels?: string[], dayTemplate?: (day: TemplateResult }" } } ] @@ -1338,13 +1346,13 @@ { "name": "day", "type": { - "type": "Day" + "text": "Day" } }, { "name": "opts", "type": { - "type": "{ weekdays: string[], monthsLabels?: string[] }" + "text": "{ weekdays: string[], monthsLabels?: string[] }" } } ] @@ -1371,14 +1379,14 @@ "description": "Gives the first day of the next month", "return": { "type": { - "type": "Date" + "text": "Date" } }, "parameters": [ { "name": "date", "type": { - "type": "Date" + "text": "Date" } } ] @@ -1405,14 +1413,14 @@ "description": "Gives the last day of the previous month", "return": { "type": { - "type": "Date" + "text": "Date" } }, "parameters": [ { "name": "date", "type": { - "type": "Date" + "text": "Date" } } ] @@ -1439,20 +1447,20 @@ "description": "Compares if two days are the same", "return": { "type": { - "type": "boolean" + "text": "boolean" } }, "parameters": [ { "name": "day1", "type": { - "type": "Date" + "text": "Date" } }, { "name": "day2", "type": { - "type": "Date" + "text": "Date" } } ] @@ -1484,4 +1492,4 @@ ] } ] -} +} \ No newline at end of file diff --git a/packages/calendar/package.json b/packages/calendar/package.json index c3d460077..4a0cf82ca 100644 --- a/packages/calendar/package.json +++ b/packages/calendar/package.json @@ -51,4 +51,4 @@ "./test-helpers": "./test-helpers.js" }, "customElementsManifest": "custom-elements.json" -} +} \ No newline at end of file diff --git a/packages/checkbox-group/custom-elements.json b/packages/checkbox-group/custom-elements.json index f01dad064..dacec87c8 100644 --- a/packages/checkbox-group/custom-elements.json +++ b/packages/checkbox-group/custom-elements.json @@ -1,5 +1,5 @@ { - "schemaVersion": "experimental", + "schemaVersion": "0.1.0", "readme": "", "modules": [ { @@ -198,7 +198,7 @@ { "name": "ev", "type": { - "type": "Event" + "text": "Event" } } ] @@ -231,7 +231,7 @@ { "name": "changedProperties", "type": { - "type": "PropertyValues " + "text": "PropertyValues " } } ] @@ -252,4 +252,4 @@ ] } ] -} +} \ No newline at end of file diff --git a/packages/checkbox-group/package.json b/packages/checkbox-group/package.json index 1e70599ce..d159c9f58 100644 --- a/packages/checkbox-group/package.json +++ b/packages/checkbox-group/package.json @@ -55,4 +55,4 @@ "./lion-checkbox-indeterminate": "./lion-checkbox-indeterminate.js" }, "customElementsManifest": "custom-elements.json" -} +} \ No newline at end of file diff --git a/packages/collapsible/custom-elements.json b/packages/collapsible/custom-elements.json index 11ab7819f..3a2af2aaf 100644 --- a/packages/collapsible/custom-elements.json +++ b/packages/collapsible/custom-elements.json @@ -1,5 +1,5 @@ { - "schemaVersion": "experimental", + "schemaVersion": "0.1.0", "readme": "", "modules": [ { @@ -84,14 +84,14 @@ { "name": "options", "type": { - "type": "Object" + "text": "Object" }, "description": "element node and its options" }, { "name": "options.contentNode", "type": { - "type": "HTMLElement" + "text": "HTMLElement" } } ] @@ -105,14 +105,14 @@ { "name": "options", "type": { - "type": "Object" + "text": "Object" }, "description": "element node and its options" }, { "name": "options.contentNode", "type": { - "type": "HTMLElement" + "text": "HTMLElement" } } ] @@ -124,21 +124,21 @@ "description": "Wait until the transition event is finished.", "return": { "type": { - "type": "Promise" + "text": "Promise" } }, "parameters": [ { "name": "options", "type": { - "type": "Object" + "text": "Object" }, "description": "element node and its options" }, { "name": "options.contentNode", "type": { - "type": "HTMLElement" + "text": "HTMLElement" } } ] @@ -152,7 +152,7 @@ { "name": "contentNode", "type": { - "type": "HTMLElement" + "text": "HTMLElement" }, "description": "content node" } @@ -251,7 +251,7 @@ { "name": "opened-changed", "type": { - "type": "CustomEvent" + "text": "CustomEvent" }, "inheritedFrom": { "name": "LionCollapsible", @@ -304,7 +304,7 @@ { "name": "opened-changed", "type": { - "type": "CustomEvent" + "text": "CustomEvent" } } ], @@ -352,7 +352,7 @@ { "name": "opts", "type": { - "type": "Object" + "text": "Object" } } ] @@ -366,7 +366,7 @@ { "name": "opts", "type": { - "type": "Object" + "text": "Object" } } ] @@ -420,4 +420,4 @@ ] } ] -} +} \ No newline at end of file diff --git a/packages/collapsible/package.json b/packages/collapsible/package.json index d95d4cc6d..da7806f03 100644 --- a/packages/collapsible/package.json +++ b/packages/collapsible/package.json @@ -52,4 +52,4 @@ "./lion-collapsible": "./lion-collapsible.js" }, "customElementsManifest": "custom-elements.json" -} +} \ No newline at end of file diff --git a/packages/combobox/custom-elements.json b/packages/combobox/custom-elements.json index 098256c59..bb4521f77 100644 --- a/packages/combobox/custom-elements.json +++ b/packages/combobox/custom-elements.json @@ -1,5 +1,5 @@ { - "schemaVersion": "experimental", + "schemaVersion": "0.1.0", "readme": "", "modules": [ { @@ -117,7 +117,7 @@ { "name": "changedProperties", "type": { - "type": "PropertyValues " + "text": "PropertyValues " } } ] @@ -136,13 +136,13 @@ { "name": "option", "type": { - "type": "LionOption" + "text": "LionOption" } }, { "name": "highlight", "type": { - "type": "boolean" + "text": "boolean" } } ] @@ -160,7 +160,7 @@ { "name": "ev", "type": { - "type": "{ key: string; }" + "text": "{ key: string; }" } } ] @@ -283,7 +283,7 @@ "name": "autocomplete", "privacy": "public", "type": { - "type": "'none'|'list'|'inline'|'both'" + "text": "'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'" @@ -293,7 +293,7 @@ "name": "matchMode", "privacy": "public", "type": { - "type": "'begin'|'all'" + "text": "'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'" @@ -328,17 +328,26 @@ { "kind": "field", "name": "slots", - "privacy": "public" + "privacy": "public", + "type": { + "text": "SlotsMap" + } }, { "kind": "field", "name": "_comboboxNode", - "privacy": "public" + "privacy": "public", + "type": { + "text": "HTMLElement" + } }, { "kind": "field", "name": "_selectionDisplayNode", - "privacy": "public" + "privacy": "public", + "type": { + "text": "SelectionDisplay | null" + } }, { "kind": "field", @@ -383,13 +392,13 @@ { "name": "name", "type": { - "type": "'disabled'|'modelValue'|'readOnly'" + "text": "'disabled'|'modelValue'|'readOnly'" } }, { "name": "oldValue", "type": { - "type": "unknown" + "text": "unknown" } } ] @@ -402,7 +411,7 @@ { "name": "changedProperties", "type": { - "type": "PropertyValues " + "text": "PropertyValues " } } ] @@ -416,13 +425,13 @@ { "name": "option", "type": { - "type": "LionOption" + "text": "LionOption" } }, { "name": "textboxValue", "type": { - "type": "string" + "text": "string" }, "description": "current ._inputNode value" } @@ -436,7 +445,7 @@ { "name": "options", "type": { - "type": "{ currentValue: string, lastKey:string }" + "text": "{ currentValue: string, lastKey:string }" } } ] @@ -449,7 +458,7 @@ { "name": "ev", "type": { - "type": "Event" + "text": "Event" } } ] @@ -462,7 +471,7 @@ { "name": "ev", "type": { - "type": "KeyboardEvent" + "text": "KeyboardEvent" } } ] @@ -475,7 +484,7 @@ { "name": "ev", "type": { - "type": "MouseEvent" + "text": "MouseEvent" } } ] @@ -488,7 +497,7 @@ { "name": "v", "type": { - "type": "string" + "text": "string" } } ] @@ -506,7 +515,7 @@ { "name": "target", "type": { - "type": "EventTarget & ChoiceInputHost" + "text": "EventTarget & ChoiceInputHost" } } ] @@ -519,13 +528,13 @@ { "name": "option", "type": { - "type": "LionOption & {__originalInnerHTML?:string}" + "text": "LionOption & {__originalInnerHTML?:string}" } }, { "name": "matchingString", "type": { - "type": "string" + "text": "string" } } ] @@ -538,20 +547,20 @@ { "name": "option", "type": { - "type": "LionOption & {__originalInnerHTML?:string}" + "text": "LionOption & {__originalInnerHTML?:string}" } }, { "name": "curValue", "type": { - "type": "string" + "text": "string" }, "optional": true }, { "name": "prevValue", "type": { - "type": "string" + "text": "string" }, "optional": true } @@ -566,7 +575,7 @@ { "name": "config", "type": { - "type": "{ prevValue:string, curValue:string }" + "text": "{ prevValue:string, curValue:string }" } } ] @@ -627,7 +636,7 @@ { "name": "ev", "type": { - "type": "KeyboardEvent" + "text": "KeyboardEvent" } } ] @@ -640,13 +649,13 @@ { "name": "modelValue", "type": { - "type": "string|string[]" + "text": "string|string[]" } }, { "name": "oldModelValue", "type": { - "type": "string|string[]" + "text": "string|string[]" } } ] @@ -659,13 +668,13 @@ { "name": "modelValue", "type": { - "type": "string[]" + "text": "string[]" } }, { "name": "oldModelValue", "type": { - "type": "string[]" + "text": "string[]" }, "default": "[]" } @@ -704,7 +713,7 @@ { "name": "ev", "type": { - "type": "KeyboardEvent" + "text": "KeyboardEvent" }, "optional": true } @@ -878,7 +887,7 @@ "name": "category", "privacy": "public", "type": { - "type": "'branches'|'tags'" + "text": "'branches'|'tags'" }, "default": "'branches'" }, @@ -895,7 +904,10 @@ { "kind": "field", "name": "_comboboxNode", - "privacy": "public" + "privacy": "public", + "type": { + "text": "HTMLElement" + } }, { "kind": "method", @@ -982,7 +994,7 @@ "name": "autocomplete", "privacy": "public", "type": { - "type": "'none'|'list'|'inline'|'both'" + "text": "'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'", @@ -996,7 +1008,7 @@ "name": "matchMode", "privacy": "public", "type": { - "type": "'begin'|'all'" + "text": "'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'", @@ -1038,6 +1050,9 @@ "kind": "field", "name": "_selectionDisplayNode", "privacy": "public", + "type": { + "text": "SelectionDisplay | null" + }, "inheritedFrom": { "name": "LionCombobox", "module": "./src/LionCombobox.js" @@ -1096,13 +1111,13 @@ { "name": "name", "type": { - "type": "'disabled'|'modelValue'|'readOnly'" + "text": "'disabled'|'modelValue'|'readOnly'" } }, { "name": "oldValue", "type": { - "type": "unknown" + "text": "unknown" } } ], @@ -1120,13 +1135,13 @@ { "name": "option", "type": { - "type": "LionOption" + "text": "LionOption" } }, { "name": "textboxValue", "type": { - "type": "string" + "text": "string" }, "description": "current ._inputNode value" } @@ -1144,7 +1159,7 @@ { "name": "options", "type": { - "type": "{ currentValue: string, lastKey:string }" + "text": "{ currentValue: string, lastKey:string }" } } ], @@ -1161,7 +1176,7 @@ { "name": "ev", "type": { - "type": "Event" + "text": "Event" } } ], @@ -1178,7 +1193,7 @@ { "name": "ev", "type": { - "type": "MouseEvent" + "text": "MouseEvent" } } ], @@ -1195,7 +1210,7 @@ { "name": "v", "type": { - "type": "string" + "text": "string" } } ], @@ -1221,7 +1236,7 @@ { "name": "target", "type": { - "type": "EventTarget & ChoiceInputHost" + "text": "EventTarget & ChoiceInputHost" } } ], @@ -1238,13 +1253,13 @@ { "name": "option", "type": { - "type": "LionOption & {__originalInnerHTML?:string}" + "text": "LionOption & {__originalInnerHTML?:string}" } }, { "name": "matchingString", "type": { - "type": "string" + "text": "string" } } ], @@ -1261,20 +1276,20 @@ { "name": "option", "type": { - "type": "LionOption & {__originalInnerHTML?:string}" + "text": "LionOption & {__originalInnerHTML?:string}" } }, { "name": "curValue", "type": { - "type": "string" + "text": "string" }, "optional": true }, { "name": "prevValue", "type": { - "type": "string" + "text": "string" }, "optional": true } @@ -1293,7 +1308,7 @@ { "name": "config", "type": { - "type": "{ prevValue:string, curValue:string }" + "text": "{ prevValue:string, curValue:string }" } } ], @@ -1372,7 +1387,7 @@ { "name": "ev", "type": { - "type": "KeyboardEvent" + "text": "KeyboardEvent" } } ], @@ -1389,13 +1404,13 @@ { "name": "modelValue", "type": { - "type": "string|string[]" + "text": "string|string[]" } }, { "name": "oldModelValue", "type": { - "type": "string|string[]" + "text": "string|string[]" } } ], @@ -1412,13 +1427,13 @@ { "name": "modelValue", "type": { - "type": "string[]" + "text": "string[]" } }, { "name": "oldModelValue", "type": { - "type": "string[]" + "text": "string[]" }, "default": "[]" } @@ -1481,7 +1496,7 @@ { "name": "ev", "type": { - "type": "KeyboardEvent" + "text": "KeyboardEvent" }, "optional": true } @@ -1567,7 +1582,7 @@ { "name": "currentValue", "type": { - "type": "string" + "text": "string" } } ] @@ -1663,7 +1678,7 @@ "name": "autocomplete", "privacy": "public", "type": { - "type": "'none'|'list'|'inline'|'both'" + "text": "'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'", @@ -1677,7 +1692,7 @@ "name": "matchMode", "privacy": "public", "type": { - "type": "'begin'|'all'" + "text": "'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'", @@ -1719,6 +1734,9 @@ "kind": "field", "name": "_comboboxNode", "privacy": "public", + "type": { + "text": "HTMLElement" + }, "inheritedFrom": { "name": "LionCombobox", "module": "./src/LionCombobox.js" @@ -1728,6 +1746,9 @@ "kind": "field", "name": "_selectionDisplayNode", "privacy": "public", + "type": { + "text": "SelectionDisplay | null" + }, "inheritedFrom": { "name": "LionCombobox", "module": "./src/LionCombobox.js" @@ -1795,13 +1816,13 @@ { "name": "name", "type": { - "type": "'disabled'|'modelValue'|'readOnly'" + "text": "'disabled'|'modelValue'|'readOnly'" } }, { "name": "oldValue", "type": { - "type": "unknown" + "text": "unknown" } } ], @@ -1818,7 +1839,7 @@ { "name": "changedProperties", "type": { - "type": "PropertyValues " + "text": "PropertyValues " } } ], @@ -1836,13 +1857,13 @@ { "name": "option", "type": { - "type": "LionOption" + "text": "LionOption" } }, { "name": "textboxValue", "type": { - "type": "string" + "text": "string" }, "description": "current ._inputNode value" } @@ -1860,7 +1881,7 @@ { "name": "ev", "type": { - "type": "Event" + "text": "Event" } } ], @@ -1877,7 +1898,7 @@ { "name": "ev", "type": { - "type": "KeyboardEvent" + "text": "KeyboardEvent" } } ], @@ -1894,7 +1915,7 @@ { "name": "ev", "type": { - "type": "MouseEvent" + "text": "MouseEvent" } } ], @@ -1911,7 +1932,7 @@ { "name": "v", "type": { - "type": "string" + "text": "string" } } ], @@ -1937,7 +1958,7 @@ { "name": "target", "type": { - "type": "EventTarget & ChoiceInputHost" + "text": "EventTarget & ChoiceInputHost" } } ], @@ -1954,13 +1975,13 @@ { "name": "option", "type": { - "type": "LionOption & {__originalInnerHTML?:string}" + "text": "LionOption & {__originalInnerHTML?:string}" } }, { "name": "matchingString", "type": { - "type": "string" + "text": "string" } } ], @@ -1977,20 +1998,20 @@ { "name": "option", "type": { - "type": "LionOption & {__originalInnerHTML?:string}" + "text": "LionOption & {__originalInnerHTML?:string}" } }, { "name": "curValue", "type": { - "type": "string" + "text": "string" }, "optional": true }, { "name": "prevValue", "type": { - "type": "string" + "text": "string" }, "optional": true } @@ -2009,7 +2030,7 @@ { "name": "config", "type": { - "type": "{ prevValue:string, curValue:string }" + "text": "{ prevValue:string, curValue:string }" } } ], @@ -2106,7 +2127,7 @@ { "name": "ev", "type": { - "type": "KeyboardEvent" + "text": "KeyboardEvent" } } ], @@ -2123,13 +2144,13 @@ { "name": "modelValue", "type": { - "type": "string[]" + "text": "string[]" } }, { "name": "oldModelValue", "type": { - "type": "string[]" + "text": "string[]" }, "default": "[]" } @@ -2192,7 +2213,7 @@ { "name": "ev", "type": { - "type": "KeyboardEvent" + "text": "KeyboardEvent" }, "optional": true } @@ -2315,7 +2336,7 @@ { "name": "matchingString", "type": { - "type": "string" + "text": "string" } } ] @@ -2387,7 +2408,7 @@ "name": "autocomplete", "privacy": "public", "type": { - "type": "'none'|'list'|'inline'|'both'" + "text": "'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'", @@ -2401,7 +2422,7 @@ "name": "matchMode", "privacy": "public", "type": { - "type": "'begin'|'all'" + "text": "'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'", @@ -2461,6 +2482,9 @@ "kind": "field", "name": "slots", "privacy": "public", + "type": { + "text": "SlotsMap" + }, "inheritedFrom": { "name": "LionCombobox", "module": "./src/LionCombobox.js" @@ -2470,6 +2494,9 @@ "kind": "field", "name": "_comboboxNode", "privacy": "public", + "type": { + "text": "HTMLElement" + }, "inheritedFrom": { "name": "LionCombobox", "module": "./src/LionCombobox.js" @@ -2479,6 +2506,9 @@ "kind": "field", "name": "_selectionDisplayNode", "privacy": "public", + "type": { + "text": "SelectionDisplay | null" + }, "inheritedFrom": { "name": "LionCombobox", "module": "./src/LionCombobox.js" @@ -2555,13 +2585,13 @@ { "name": "name", "type": { - "type": "'disabled'|'modelValue'|'readOnly'" + "text": "'disabled'|'modelValue'|'readOnly'" } }, { "name": "oldValue", "type": { - "type": "unknown" + "text": "unknown" } } ], @@ -2578,7 +2608,7 @@ { "name": "changedProperties", "type": { - "type": "PropertyValues " + "text": "PropertyValues " } } ], @@ -2596,13 +2626,13 @@ { "name": "option", "type": { - "type": "LionOption" + "text": "LionOption" } }, { "name": "textboxValue", "type": { - "type": "string" + "text": "string" }, "description": "current ._inputNode value" } @@ -2620,7 +2650,7 @@ { "name": "options", "type": { - "type": "{ currentValue: string, lastKey:string }" + "text": "{ currentValue: string, lastKey:string }" } } ], @@ -2637,7 +2667,7 @@ { "name": "ev", "type": { - "type": "Event" + "text": "Event" } } ], @@ -2654,7 +2684,7 @@ { "name": "ev", "type": { - "type": "KeyboardEvent" + "text": "KeyboardEvent" } } ], @@ -2671,7 +2701,7 @@ { "name": "ev", "type": { - "type": "MouseEvent" + "text": "MouseEvent" } } ], @@ -2688,7 +2718,7 @@ { "name": "v", "type": { - "type": "string" + "text": "string" } } ], @@ -2714,7 +2744,7 @@ { "name": "target", "type": { - "type": "EventTarget & ChoiceInputHost" + "text": "EventTarget & ChoiceInputHost" } } ], @@ -2731,13 +2761,13 @@ { "name": "option", "type": { - "type": "LionOption & {__originalInnerHTML?:string}" + "text": "LionOption & {__originalInnerHTML?:string}" } }, { "name": "matchingString", "type": { - "type": "string" + "text": "string" } } ], @@ -2754,20 +2784,20 @@ { "name": "option", "type": { - "type": "LionOption & {__originalInnerHTML?:string}" + "text": "LionOption & {__originalInnerHTML?:string}" } }, { "name": "curValue", "type": { - "type": "string" + "text": "string" }, "optional": true }, { "name": "prevValue", "type": { - "type": "string" + "text": "string" }, "optional": true } @@ -2786,7 +2816,7 @@ { "name": "config", "type": { - "type": "{ prevValue:string, curValue:string }" + "text": "{ prevValue:string, curValue:string }" } } ], @@ -2883,7 +2913,7 @@ { "name": "ev", "type": { - "type": "KeyboardEvent" + "text": "KeyboardEvent" } } ], @@ -2900,13 +2930,13 @@ { "name": "modelValue", "type": { - "type": "string|string[]" + "text": "string|string[]" } }, { "name": "oldModelValue", "type": { - "type": "string|string[]" + "text": "string|string[]" } } ], @@ -2923,13 +2953,13 @@ { "name": "modelValue", "type": { - "type": "string[]" + "text": "string[]" } }, { "name": "oldModelValue", "type": { - "type": "string[]" + "text": "string[]" }, "default": "[]" } @@ -2992,7 +3022,7 @@ { "name": "ev", "type": { - "type": "KeyboardEvent" + "text": "KeyboardEvent" }, "optional": true } @@ -3160,7 +3190,7 @@ { "name": "matchingString", "type": { - "type": "string" + "text": "string" } } ] @@ -3173,14 +3203,14 @@ { "name": "curValue", "type": { - "type": "string" + "text": "string" }, "optional": true }, { "name": "prevValue", "type": { - "type": "string" + "text": "string" }, "optional": true } @@ -3210,13 +3240,13 @@ { "name": "option", "type": { - "type": "LionOption" + "text": "LionOption" } }, { "name": "textboxValue", "type": { - "type": "string" + "text": "string" }, "description": "current ._inputNode value" } @@ -3232,7 +3262,7 @@ "name": "autocomplete", "privacy": "public", "type": { - "type": "'none'|'list'|'inline'|'both'" + "text": "'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'", @@ -3246,7 +3276,7 @@ "name": "matchMode", "privacy": "public", "type": { - "type": "'begin'|'all'" + "text": "'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'", @@ -3306,6 +3336,9 @@ "kind": "field", "name": "_comboboxNode", "privacy": "public", + "type": { + "text": "HTMLElement" + }, "inheritedFrom": { "name": "LionCombobox", "module": "./src/LionCombobox.js" @@ -3315,6 +3348,9 @@ "kind": "field", "name": "_selectionDisplayNode", "privacy": "public", + "type": { + "text": "SelectionDisplay | null" + }, "inheritedFrom": { "name": "LionCombobox", "module": "./src/LionCombobox.js" @@ -3391,13 +3427,13 @@ { "name": "name", "type": { - "type": "'disabled'|'modelValue'|'readOnly'" + "text": "'disabled'|'modelValue'|'readOnly'" } }, { "name": "oldValue", "type": { - "type": "unknown" + "text": "unknown" } } ], @@ -3414,7 +3450,7 @@ { "name": "changedProperties", "type": { - "type": "PropertyValues " + "text": "PropertyValues " } } ], @@ -3431,7 +3467,7 @@ { "name": "options", "type": { - "type": "{ currentValue: string, lastKey:string }" + "text": "{ currentValue: string, lastKey:string }" } } ], @@ -3448,7 +3484,7 @@ { "name": "ev", "type": { - "type": "Event" + "text": "Event" } } ], @@ -3465,7 +3501,7 @@ { "name": "ev", "type": { - "type": "KeyboardEvent" + "text": "KeyboardEvent" } } ], @@ -3482,7 +3518,7 @@ { "name": "ev", "type": { - "type": "MouseEvent" + "text": "MouseEvent" } } ], @@ -3499,7 +3535,7 @@ { "name": "v", "type": { - "type": "string" + "text": "string" } } ], @@ -3525,7 +3561,7 @@ { "name": "target", "type": { - "type": "EventTarget & ChoiceInputHost" + "text": "EventTarget & ChoiceInputHost" } } ], @@ -3542,13 +3578,13 @@ { "name": "option", "type": { - "type": "LionOption & {__originalInnerHTML?:string}" + "text": "LionOption & {__originalInnerHTML?:string}" } }, { "name": "matchingString", "type": { - "type": "string" + "text": "string" } } ], @@ -3565,20 +3601,20 @@ { "name": "option", "type": { - "type": "LionOption & {__originalInnerHTML?:string}" + "text": "LionOption & {__originalInnerHTML?:string}" } }, { "name": "curValue", "type": { - "type": "string" + "text": "string" }, "optional": true }, { "name": "prevValue", "type": { - "type": "string" + "text": "string" }, "optional": true } @@ -3597,7 +3633,7 @@ { "name": "config", "type": { - "type": "{ prevValue:string, curValue:string }" + "text": "{ prevValue:string, curValue:string }" } } ], @@ -3694,7 +3730,7 @@ { "name": "ev", "type": { - "type": "KeyboardEvent" + "text": "KeyboardEvent" } } ], @@ -3711,13 +3747,13 @@ { "name": "modelValue", "type": { - "type": "string[]" + "text": "string[]" } }, { "name": "oldModelValue", "type": { - "type": "string[]" + "text": "string[]" }, "default": "[]" } @@ -3780,7 +3816,7 @@ { "name": "ev", "type": { - "type": "KeyboardEvent" + "text": "KeyboardEvent" }, "optional": true } @@ -3951,4 +3987,4 @@ "exports": [] } ] -} +} \ No newline at end of file diff --git a/packages/combobox/package.json b/packages/combobox/package.json index 184ff9506..6122c9667 100644 --- a/packages/combobox/package.json +++ b/packages/combobox/package.json @@ -62,4 +62,4 @@ "./lion-combobox": "./lion-combobox.js" }, "customElementsManifest": "custom-elements.json" -} +} \ No newline at end of file diff --git a/packages/core/custom-elements.json b/packages/core/custom-elements.json index 409602a74..248cfccf4 100644 --- a/packages/core/custom-elements.json +++ b/packages/core/custom-elements.json @@ -1,7 +1,19 @@ { - "schemaVersion": "experimental", + "schemaVersion": "0.1.0", "readme": "", "modules": [ + { + "kind": "javascript-module", + "path": "./closestPolyfill.js", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "./differentKeyEventNamesShimIE.js", + "declarations": [], + "exports": [] + }, { "kind": "javascript-module", "path": "./index.d.ts", @@ -1003,7 +1015,7 @@ "name": "delegations", "privacy": "public", "type": { - "type": "Delegations" + "text": "Delegations" } }, { @@ -1012,7 +1024,7 @@ "privacy": "protected", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -1022,7 +1034,7 @@ "privacy": "private", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -1032,7 +1044,7 @@ "privacy": "private", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -1042,7 +1054,7 @@ "privacy": "private", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -1052,7 +1064,7 @@ "privacy": "private", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -1062,7 +1074,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -1072,14 +1084,14 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } }, "parameters": [ { "name": "changedProperties", "type": { - "type": "import('lit-element').PropertyValues" + "text": "import('lit-element').PropertyValues" } } ] @@ -1111,7 +1123,7 @@ "name": "disabled", "privacy": "public", "type": { - "type": "boolean" + "text": "boolean" } }, { @@ -1121,7 +1133,7 @@ "description": "Makes request to make the element disabled", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -1132,7 +1144,7 @@ "description": "Retract request to make the element disabled and restore disabled to previous", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -1142,14 +1154,14 @@ "privacy": "private", "return": { "type": { - "type": "void" + "text": "void" } }, "parameters": [ { "name": "value", "type": { - "type": "boolean" + "text": "boolean" } } ] @@ -1159,7 +1171,7 @@ "name": "_requestedToBeDisabled", "privacy": "protected", "type": { - "type": "boolean" + "text": "boolean" } } ] @@ -1169,14 +1181,14 @@ "name": "DisabledMixinImplementation", "return": { "type": { - "type": "T & Constructor & typeof DisabledHost" + "text": "T & Constructor & typeof DisabledHost" } }, "parameters": [ { "name": "superclass", "type": { - "type": "T" + "text": "T" } } ] @@ -1214,7 +1226,7 @@ "name": "tabIndex", "privacy": "public", "type": { - "type": "number" + "text": "number" } }, { @@ -1224,7 +1236,7 @@ "description": "Makes request to make the element disabled and set the tabindex", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -1235,7 +1247,7 @@ "description": "Retract request to make the element disabled and restore disabled and tabindex to previous", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -1245,14 +1257,14 @@ "privacy": "private", "return": { "type": { - "type": "void" + "text": "void" } }, "parameters": [ { "name": "value", "type": { - "type": "boolean" + "text": "boolean" } } ] @@ -1263,14 +1275,14 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } }, "parameters": [ { "name": "changedProperties", "type": { - "type": "import('lit-element').PropertyValues" + "text": "import('lit-element').PropertyValues" } } ] @@ -1282,14 +1294,14 @@ "name": "DisabledWithTabIndexMixinImplementation", "return": { "type": { - "type": "T & Constructor & Constructor" + "text": "T & Constructor & Constructor" } }, "parameters": [ { "name": "superclass", "type": { - "type": "T" + "text": "T" } } ] @@ -1327,7 +1339,7 @@ "name": "slots", "privacy": "public", "type": { - "type": "SlotsMap" + "text": "SlotsMap" } }, { @@ -1337,7 +1349,7 @@ "description": "Starts the creation of slots", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -1348,14 +1360,14 @@ "description": "Useful to decide if a given slot should be manipulated depending on if it was auto generated\nor not.", "return": { "type": { - "type": "boolean" + "text": "boolean" } }, "parameters": [ { "name": "slotName", "type": { - "type": "string" + "text": "string" }, "description": "Name of the slot" } @@ -1367,7 +1379,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } } @@ -1379,14 +1391,14 @@ "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" + "text": "T & Constructor & typeof SlotHost" } }, "parameters": [ { "name": "superclass", "type": { - "type": "T" + "text": "T" } } ] @@ -1425,14 +1437,14 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } }, "parameters": [ { "name": "updateStyles", "type": { - "type": "StylesMap" + "text": "StylesMap" } } ] @@ -1482,4 +1494,4 @@ "exports": [] } ] -} +} \ No newline at end of file diff --git a/packages/core/package.json b/packages/core/package.json index 4b014f7f7..af7f8dc3e 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -54,4 +54,4 @@ "./differentKeyEventNamesShimIE": "./src/differentKeyEventNamesShimIE.js" }, "customElementsManifest": "custom-elements.json" -} +} \ No newline at end of file diff --git a/packages/dialog/custom-elements.json b/packages/dialog/custom-elements.json index 295f8bdef..86e495e83 100644 --- a/packages/dialog/custom-elements.json +++ b/packages/dialog/custom-elements.json @@ -1,5 +1,5 @@ { - "schemaVersion": "experimental", + "schemaVersion": "0.1.0", "readme": "", "modules": [ { @@ -82,7 +82,7 @@ { "name": "close-overlay", "type": { - "type": "Event" + "text": "Event" } } ], @@ -160,4 +160,4 @@ ] } ] -} +} \ No newline at end of file diff --git a/packages/dialog/package.json b/packages/dialog/package.json index 95f2680d2..1e596f2c6 100644 --- a/packages/dialog/package.json +++ b/packages/dialog/package.json @@ -51,4 +51,4 @@ "./lion-dialog": "./lion-dialog.js" }, "customElementsManifest": "custom-elements.json" -} +} \ No newline at end of file diff --git a/packages/fieldset/custom-elements.json b/packages/fieldset/custom-elements.json index 3e3236b82..a07dc0450 100644 --- a/packages/fieldset/custom-elements.json +++ b/packages/fieldset/custom-elements.json @@ -1,5 +1,5 @@ { - "schemaVersion": "experimental", + "schemaVersion": "0.1.0", "readme": "", "modules": [ { @@ -78,4 +78,4 @@ ] } ] -} +} \ No newline at end of file diff --git a/packages/fieldset/package.json b/packages/fieldset/package.json index 327093224..d586911bd 100644 --- a/packages/fieldset/package.json +++ b/packages/fieldset/package.json @@ -51,4 +51,4 @@ "./lion-fieldset": "./lion-fieldset.js" }, "customElementsManifest": "custom-elements.json" -} +} \ No newline at end of file diff --git a/packages/form-core/custom-elements.json b/packages/form-core/custom-elements.json index 5e5ed7d62..e5adf98f9 100644 --- a/packages/form-core/custom-elements.json +++ b/packages/form-core/custom-elements.json @@ -1,5 +1,5 @@ { - "schemaVersion": "experimental", + "schemaVersion": "0.1.0", "readme": "", "modules": [ { @@ -373,29 +373,38 @@ { "kind": "mixin", "name": "FocusMixin", + "parameters": [ + { + "name": "superclass", + "type": { + "text": "LitElement>" + }, + "description": "" + } + ], "events": [ { "name": "focus", "type": { - "type": "Event" + "text": "Event" } }, { "name": "blur", "type": { - "type": "Event" + "text": "Event" } }, { "name": "focusin", "type": { - "type": "Event" + "text": "Event" } }, { "name": "focusout", "type": { - "type": "Event" + "text": "Event" } } ], @@ -405,10 +414,6 @@ "module": "/src/FormControlMixin.js" } ], - "superclass": { - "name": "superclass", - "module": "./src/FocusMixin.js" - }, "attributes": [ { "name": "focused", @@ -463,10 +468,6 @@ "privacy": "public" } ] - }, - { - "kind": "variable", - "name": "FocusMixin" } ], "exports": [ @@ -487,17 +488,26 @@ { "kind": "mixin", "name": "FormControlMixin", + "parameters": [ + { + "name": "superclass", + "type": { + "text": "LitElement>" + }, + "description": "" + } + ], "events": [ { "name": "form-element-name-changed", "type": { - "type": "CustomEvent" + "text": "CustomEvent" } }, { "name": "model-value-changed", "type": { - "type": "CustomEvent" + "text": "CustomEvent" } } ], @@ -508,17 +518,13 @@ }, { "name": "DisabledMixin", - "package": "@lion/core/src/DisabledMixin.js" + "package": "@lion/core" }, { "name": "SlotMixin", "package": "@lion/core" } ], - "superclass": { - "name": "superclass", - "module": "./src/FormControlMixin.js" - }, "attributes": [ { "name": "name", @@ -543,7 +549,7 @@ "name": "name", "privacy": "public", "type": { - "type": "string | undefined" + "text": "string | undefined" }, "default": "undefined" }, @@ -572,7 +578,7 @@ "name": "_ariaLabelledNodes", "privacy": "public", "type": { - "type": "HTMLElement[]" + "text": "HTMLElement[]" }, "default": "[]" }, @@ -581,7 +587,7 @@ "name": "_ariaDescribedNodes", "privacy": "public", "type": { - "type": "HTMLElement[]" + "text": "HTMLElement[]" }, "default": "[]" }, @@ -590,7 +596,7 @@ "name": "_repropagationRole", "privacy": "public", "type": { - "type": "'child'|'choice-group'|'fieldset'" + "text": "'child'|'choice-group'|'fieldset'" }, "default": "'child'" }, @@ -648,7 +654,7 @@ { "name": "changedProperties", "type": { - "type": "PropertyValues " + "text": "PropertyValues " } } ] @@ -677,7 +683,7 @@ { "name": "additionalSlots", "type": { - "type": "string[]" + "text": "string[]" }, "default": "['prefix', 'suffix', 'before', 'after']" } @@ -692,19 +698,19 @@ { "name": "attrName", "type": { - "type": "string" + "text": "string" } }, { "name": "nodes", "type": { - "type": "HTMLElement[]" + "text": "HTMLElement[]" } }, { "name": "reorder", "type": { - "type": "boolean|undefined" + "text": "boolean|undefined" } } ] @@ -721,7 +727,7 @@ "privacy": "public", "return": { "type": { - "type": "TemplateResult" + "text": "TemplateResult" } } }, @@ -731,7 +737,7 @@ "privacy": "public", "return": { "type": { - "type": "TemplateResult" + "text": "TemplateResult" } } }, @@ -741,7 +747,7 @@ "privacy": "public", "return": { "type": { - "type": "TemplateResult" + "text": "TemplateResult" } } }, @@ -751,7 +757,7 @@ "privacy": "public", "return": { "type": { - "type": "TemplateResult" + "text": "TemplateResult" } } }, @@ -761,7 +767,7 @@ "privacy": "public", "return": { "type": { - "type": "TemplateResult" + "text": "TemplateResult" } } }, @@ -771,7 +777,7 @@ "privacy": "public", "return": { "type": { - "type": "TemplateResult" + "text": "TemplateResult" } } }, @@ -781,7 +787,7 @@ "privacy": "public", "return": { "type": { - "type": "TemplateResult | nothing" + "text": "TemplateResult | nothing" } } }, @@ -791,7 +797,7 @@ "privacy": "public", "return": { "type": { - "type": "TemplateResult" + "text": "TemplateResult" } } }, @@ -801,7 +807,7 @@ "privacy": "public", "return": { "type": { - "type": "TemplateResult | nothing" + "text": "TemplateResult | nothing" } } }, @@ -811,7 +817,7 @@ "privacy": "public", "return": { "type": { - "type": "TemplateResult" + "text": "TemplateResult" } } }, @@ -821,7 +827,7 @@ "privacy": "public", "return": { "type": { - "type": "TemplateResult" + "text": "TemplateResult" } } }, @@ -831,14 +837,14 @@ "privacy": "public", "return": { "type": { - "type": "boolean" + "text": "boolean" } }, "parameters": [ { "name": "modelValue", "type": { - "type": "?" + "text": "?" }, "default": "this.modelValue" } @@ -850,7 +856,7 @@ "privacy": "public", "return": { "type": { - "type": "Array." + "text": "Array." } } }, @@ -863,13 +869,13 @@ { "name": "element", "type": { - "type": "HTMLElement" + "text": "HTMLElement" } }, { "name": "customConfig", "type": { - "type": "{idPrefix?:string; reorder?: boolean}" + "text": "{idPrefix?:string; reorder?: boolean}" }, "default": "{}" } @@ -884,13 +890,13 @@ { "name": "element", "type": { - "type": "HTMLElement" + "text": "HTMLElement" } }, { "name": "customConfig", "type": { - "type": "{idPrefix?:string; reorder?: boolean}" + "text": "{idPrefix?:string; reorder?: boolean}" }, "default": "{}" } @@ -902,14 +908,14 @@ "privacy": "public", "return": { "type": { - "type": "HTMLElement | undefined" + "text": "HTMLElement | undefined" } }, "parameters": [ { "name": "slotName", "type": { - "type": "string" + "text": "string" } } ] @@ -927,7 +933,7 @@ { "name": "ev", "type": { - "type": "CustomEvent" + "text": "CustomEvent" } } ] @@ -940,7 +946,7 @@ { "name": "ev", "type": { - "type": "CustomEvent" + "text": "CustomEvent" } } ] @@ -954,7 +960,7 @@ { "name": "target", "type": { - "type": "EventTarget & ChoiceInputHost" + "text": "EventTarget & ChoiceInputHost" } } ] @@ -965,10 +971,6 @@ "privacy": "public" } ] - }, - { - "kind": "variable", - "name": "FormControlMixin" } ], "exports": [ @@ -989,17 +991,26 @@ { "kind": "mixin", "name": "FormatMixin", + "parameters": [ + { + "name": "superclass", + "type": { + "text": "LitElement>" + }, + "description": "" + } + ], "events": [ { "name": "model-value-changed", "type": { - "type": "CustomEvent" + "text": "CustomEvent" } }, { "name": "user-input-changed", "type": { - "type": "CustomEvent" + "text": "CustomEvent" } } ], @@ -1013,10 +1024,6 @@ "module": "/src/FormControlMixin.js" } ], - "superclass": { - "name": "superclass", - "module": "./src/FormatMixin.js" - }, "members": [ { "kind": "field", @@ -1048,13 +1055,13 @@ { "name": "name", "type": { - "type": "string" + "text": "string" } }, { "name": "oldVal", "type": { - "type": "any" + "text": "any" } } ] @@ -1071,21 +1078,21 @@ "description": "Converts formattedValue to modelValue\nFor instance, a localized date to a Date Object", "return": { "type": { - "type": "*" + "text": "*" } }, "parameters": [ { "name": "v", "type": { - "type": "string" + "text": "string" }, "description": "formattedValue: the formatted value inside " }, { "name": "opts", "type": { - "type": "FormatOptions" + "text": "FormatOptions" } } ] @@ -1097,21 +1104,21 @@ "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" + "text": "string" } }, "parameters": [ { "name": "v", "type": { - "type": "*" + "text": "*" }, "description": "modelValue: can be an Object, Number, String depending on the\ninput type(date, number, email etc)" }, { "name": "opts", "type": { - "type": "FormatOptions" + "text": "FormatOptions" } } ] @@ -1123,14 +1130,14 @@ "description": "Converts `.modelValue` to `.serializedValue`\nFor instance, a Date object to an iso formatted date string", "return": { "type": { - "type": "string" + "text": "string" } }, "parameters": [ { "name": "v", "type": { - "type": "?" + "text": "?" }, "description": "modelValue: can be an Object, Number, String depending on the\ninput type(date, number, email etc)" } @@ -1143,14 +1150,14 @@ "description": "Converts `LionField.value` to `.modelValue`\nFor instance, an iso formatted date string to a Date object", "return": { "type": { - "type": "?" + "text": "?" } }, "parameters": [ { "name": "v", "type": { - "type": "?" + "text": "?" }, "description": "modelValue: can be an Object, Number, String depending on the\ninput type(date, number, email etc)" } @@ -1165,7 +1172,7 @@ { "name": "config", "type": { - "type": "{source:'model'|'serialized'|'formatted'|null}" + "text": "{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'." } @@ -1177,14 +1184,14 @@ "privacy": "public", "return": { "type": { - "type": "?" + "text": "?" } }, "parameters": [ { "name": "value", "type": { - "type": "string|undefined" + "text": "string|undefined" }, "default": "this.formattedValue" } @@ -1196,7 +1203,7 @@ "privacy": "public", "return": { "type": { - "type": "string|undefined" + "text": "string|undefined" } } }, @@ -1209,7 +1216,7 @@ { "name": "args", "type": { - "type": "{ modelValue: unknown; }[]" + "text": "{ modelValue: unknown; }[]" } } ] @@ -1222,7 +1229,7 @@ { "name": "args", "type": { - "type": "{ modelValue: unknown; }[]" + "text": "{ 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." } @@ -1246,7 +1253,7 @@ "privacy": "public", "return": { "type": { - "type": "boolean" + "text": "boolean" } } }, @@ -1271,10 +1278,6 @@ "privacy": "public" } ] - }, - { - "kind": "variable", - "name": "FormatMixin" } ], "exports": [ @@ -1295,17 +1298,26 @@ { "kind": "mixin", "name": "InteractionStateMixin", + "parameters": [ + { + "name": "superclass", + "type": { + "text": "LitElement>" + }, + "description": "" + } + ], "events": [ { "name": "touched-changed", "type": { - "type": "CustomEvent" + "text": "CustomEvent" } }, { "name": "dirty-changed", "type": { - "type": "CustomEvent" + "text": "CustomEvent" } } ], @@ -1315,10 +1327,6 @@ "module": "/src/FormControlMixin.js" } ], - "superclass": { - "name": "superclass", - "module": "./src/InteractionStateMixin.js" - }, "attributes": [ { "name": "touched", @@ -1371,13 +1379,13 @@ { "name": "name", "type": { - "type": "PropertyKey" + "text": "PropertyKey" } }, { "name": "oldVal", "type": { - "type": "*" + "text": "*" } } ] @@ -1434,10 +1442,6 @@ "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": [ @@ -1462,13 +1466,13 @@ { "name": "user-input-changed", "type": { - "type": "CustomEvent" + "text": "CustomEvent" } }, { "name": "form-element-name-changed", "type": { - "type": "CustomEvent" + "text": "CustomEvent" }, "inheritedFrom": { "name": "FormControlMixin", @@ -1478,7 +1482,7 @@ { "name": "model-value-changed", "type": { - "type": "CustomEvent" + "text": "CustomEvent" }, "inheritedFrom": { "name": "FormControlMixin", @@ -1488,7 +1492,7 @@ { "name": "touched-changed", "type": { - "type": "CustomEvent" + "text": "CustomEvent" }, "inheritedFrom": { "name": "InteractionStateMixin", @@ -1498,7 +1502,7 @@ { "name": "dirty-changed", "type": { - "type": "CustomEvent" + "text": "CustomEvent" }, "inheritedFrom": { "name": "InteractionStateMixin", @@ -1508,7 +1512,7 @@ { "name": "focus", "type": { - "type": "Event" + "text": "Event" }, "inheritedFrom": { "name": "FocusMixin", @@ -1518,7 +1522,7 @@ { "name": "blur", "type": { - "type": "Event" + "text": "Event" }, "inheritedFrom": { "name": "FocusMixin", @@ -1528,7 +1532,7 @@ { "name": "focusin", "type": { - "type": "Event" + "text": "Event" }, "inheritedFrom": { "name": "FocusMixin", @@ -1538,7 +1542,7 @@ { "name": "focusout", "type": { - "type": "Event" + "text": "Event" }, "inheritedFrom": { "name": "FocusMixin", @@ -1656,7 +1660,7 @@ "name": "autocomplete", "privacy": "public", "type": { - "type": "string | undefined" + "text": "string | undefined" }, "default": "undefined" }, @@ -1691,7 +1695,7 @@ "name": "name", "privacy": "public", "type": { - "type": "string | undefined" + "text": "string | undefined" }, "default": "undefined", "inheritedFrom": { @@ -1740,7 +1744,7 @@ "name": "_ariaLabelledNodes", "privacy": "public", "type": { - "type": "HTMLElement[]" + "text": "HTMLElement[]" }, "default": "[]", "inheritedFrom": { @@ -1753,7 +1757,7 @@ "name": "_ariaDescribedNodes", "privacy": "public", "type": { - "type": "HTMLElement[]" + "text": "HTMLElement[]" }, "default": "[]", "inheritedFrom": { @@ -1766,7 +1770,7 @@ "name": "_repropagationRole", "privacy": "public", "type": { - "type": "'child'|'choice-group'|'fieldset'" + "text": "'child'|'choice-group'|'fieldset'" }, "default": "'child'", "inheritedFrom": { @@ -1864,7 +1868,7 @@ { "name": "changedProperties", "type": { - "type": "PropertyValues " + "text": "PropertyValues " } } ], @@ -1909,7 +1913,7 @@ { "name": "additionalSlots", "type": { - "type": "string[]" + "text": "string[]" }, "default": "['prefix', 'suffix', 'before', 'after']" } @@ -1928,19 +1932,19 @@ { "name": "attrName", "type": { - "type": "string" + "text": "string" } }, { "name": "nodes", "type": { - "type": "HTMLElement[]" + "text": "HTMLElement[]" } }, { "name": "reorder", "type": { - "type": "boolean|undefined" + "text": "boolean|undefined" } } ], @@ -1965,7 +1969,7 @@ "privacy": "public", "return": { "type": { - "type": "TemplateResult" + "text": "TemplateResult" } }, "inheritedFrom": { @@ -1979,7 +1983,7 @@ "privacy": "public", "return": { "type": { - "type": "TemplateResult" + "text": "TemplateResult" } }, "inheritedFrom": { @@ -1993,7 +1997,7 @@ "privacy": "public", "return": { "type": { - "type": "TemplateResult" + "text": "TemplateResult" } }, "inheritedFrom": { @@ -2007,7 +2011,7 @@ "privacy": "public", "return": { "type": { - "type": "TemplateResult" + "text": "TemplateResult" } }, "inheritedFrom": { @@ -2021,7 +2025,7 @@ "privacy": "public", "return": { "type": { - "type": "TemplateResult" + "text": "TemplateResult" } }, "inheritedFrom": { @@ -2035,7 +2039,7 @@ "privacy": "public", "return": { "type": { - "type": "TemplateResult" + "text": "TemplateResult" } }, "inheritedFrom": { @@ -2049,7 +2053,7 @@ "privacy": "public", "return": { "type": { - "type": "TemplateResult | nothing" + "text": "TemplateResult | nothing" } }, "inheritedFrom": { @@ -2063,7 +2067,7 @@ "privacy": "public", "return": { "type": { - "type": "TemplateResult" + "text": "TemplateResult" } }, "inheritedFrom": { @@ -2077,7 +2081,7 @@ "privacy": "public", "return": { "type": { - "type": "TemplateResult | nothing" + "text": "TemplateResult | nothing" } }, "inheritedFrom": { @@ -2091,7 +2095,7 @@ "privacy": "public", "return": { "type": { - "type": "TemplateResult" + "text": "TemplateResult" } }, "inheritedFrom": { @@ -2105,7 +2109,7 @@ "privacy": "public", "return": { "type": { - "type": "TemplateResult" + "text": "TemplateResult" } }, "inheritedFrom": { @@ -2119,14 +2123,14 @@ "privacy": "public", "return": { "type": { - "type": "boolean" + "text": "boolean" } }, "parameters": [ { "name": "modelValue", "type": { - "type": "?" + "text": "?" }, "default": "this.modelValue" } @@ -2142,7 +2146,7 @@ "privacy": "public", "return": { "type": { - "type": "Array." + "text": "Array." } }, "inheritedFrom": { @@ -2159,13 +2163,13 @@ { "name": "element", "type": { - "type": "HTMLElement" + "text": "HTMLElement" } }, { "name": "customConfig", "type": { - "type": "{idPrefix?:string; reorder?: boolean}" + "text": "{idPrefix?:string; reorder?: boolean}" }, "default": "{}" } @@ -2184,13 +2188,13 @@ { "name": "element", "type": { - "type": "HTMLElement" + "text": "HTMLElement" } }, { "name": "customConfig", "type": { - "type": "{idPrefix?:string; reorder?: boolean}" + "text": "{idPrefix?:string; reorder?: boolean}" }, "default": "{}" } @@ -2206,14 +2210,14 @@ "privacy": "public", "return": { "type": { - "type": "HTMLElement | undefined" + "text": "HTMLElement | undefined" } }, "parameters": [ { "name": "slotName", "type": { - "type": "string" + "text": "string" } } ], @@ -2239,7 +2243,7 @@ { "name": "ev", "type": { - "type": "CustomEvent" + "text": "CustomEvent" } } ], @@ -2256,7 +2260,7 @@ { "name": "ev", "type": { - "type": "CustomEvent" + "text": "CustomEvent" } } ], @@ -2274,7 +2278,7 @@ { "name": "target", "type": { - "type": "EventTarget & ChoiceInputHost" + "text": "EventTarget & ChoiceInputHost" } } ], @@ -2349,13 +2353,13 @@ { "name": "name", "type": { - "type": "PropertyKey" + "text": "PropertyKey" } }, { "name": "oldVal", "type": { - "type": "*" + "text": "*" } } ], @@ -2531,21 +2535,21 @@ "description": "Converts formattedValue to modelValue\nFor instance, a localized date to a Date Object", "return": { "type": { - "type": "*" + "text": "*" } }, "parameters": [ { "name": "v", "type": { - "type": "string" + "text": "string" }, "description": "formattedValue: the formatted value inside " }, { "name": "opts", "type": { - "type": "FormatOptions" + "text": "FormatOptions" } } ], @@ -2561,21 +2565,21 @@ "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" + "text": "string" } }, "parameters": [ { "name": "v", "type": { - "type": "*" + "text": "*" }, "description": "modelValue: can be an Object, Number, String depending on the\ninput type(date, number, email etc)" }, { "name": "opts", "type": { - "type": "FormatOptions" + "text": "FormatOptions" } } ], @@ -2591,14 +2595,14 @@ "description": "Converts `.modelValue` to `.serializedValue`\nFor instance, a Date object to an iso formatted date string", "return": { "type": { - "type": "string" + "text": "string" } }, "parameters": [ { "name": "v", "type": { - "type": "?" + "text": "?" }, "description": "modelValue: can be an Object, Number, String depending on the\ninput type(date, number, email etc)" } @@ -2615,14 +2619,14 @@ "description": "Converts `LionField.value` to `.modelValue`\nFor instance, an iso formatted date string to a Date object", "return": { "type": { - "type": "?" + "text": "?" } }, "parameters": [ { "name": "v", "type": { - "type": "?" + "text": "?" }, "description": "modelValue: can be an Object, Number, String depending on the\ninput type(date, number, email etc)" } @@ -2641,7 +2645,7 @@ { "name": "config", "type": { - "type": "{source:'model'|'serialized'|'formatted'|null}" + "text": "{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'." } @@ -2657,14 +2661,14 @@ "privacy": "public", "return": { "type": { - "type": "?" + "text": "?" } }, "parameters": [ { "name": "value", "type": { - "type": "string|undefined" + "text": "string|undefined" }, "default": "this.formattedValue" } @@ -2680,7 +2684,7 @@ "privacy": "public", "return": { "type": { - "type": "string|undefined" + "text": "string|undefined" } }, "inheritedFrom": { @@ -2697,7 +2701,7 @@ { "name": "args", "type": { - "type": "{ modelValue: unknown; }[]" + "text": "{ modelValue: unknown; }[]" } } ], @@ -2714,7 +2718,7 @@ { "name": "args", "type": { - "type": "{ modelValue: unknown; }[]" + "text": "{ 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." } @@ -2750,7 +2754,7 @@ "privacy": "public", "return": { "type": { - "type": "boolean" + "text": "boolean" } }, "inheritedFrom": { @@ -2798,20 +2802,31 @@ { "kind": "mixin", "name": "NativeTextFieldMixin", - "superclass": { - "name": "superclass", - "module": "./src/NativeTextFieldMixin.js" - }, + "parameters": [ + { + "name": "superclass}", + "type": { + "text": "NativeTextField>" + }, + "description": "superclass" + } + ], "members": [ { "kind": "field", "name": "selectionStart", - "privacy": "public" + "privacy": "public", + "type": { + "text": "number" + } }, { "kind": "field", "name": "selectionEnd", - "privacy": "public" + "privacy": "public", + "type": { + "text": "number" + } }, { "kind": "field", @@ -2827,17 +2842,13 @@ { "name": "newValue", "type": { - "type": "string" + "text": "string" }, "description": "The value that should be saved." } ] } ] - }, - { - "kind": "variable", - "name": "NativeTextFieldMixin" } ], "exports": [ @@ -2896,7 +2907,7 @@ "privacy": "public", "return": { "type": { - "type": "Promise | boolean" + "text": "Promise | boolean" } } } @@ -2922,7 +2933,7 @@ "privacy": "public", "return": { "type": { - "type": "Promise" + "text": "Promise" } } }, @@ -2958,7 +2969,7 @@ "privacy": "public", "return": { "type": { - "type": "Promise" + "text": "Promise" } } }, @@ -3023,7 +3034,7 @@ "name": "focused", "privacy": "public", "type": { - "type": "boolean" + "text": "boolean" } }, { @@ -3032,7 +3043,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -3042,7 +3053,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -3052,7 +3063,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -3062,7 +3073,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -3072,7 +3083,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -3082,7 +3093,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -3092,7 +3103,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -3102,7 +3113,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } } @@ -3113,14 +3124,14 @@ "name": "FocusImplementation", "return": { "type": { - "type": "T & Constructor & FocusHost & Constructor & typeof FormControlHost" + "text": "T & Constructor & FocusHost & Constructor & typeof FormControlHost" } }, "parameters": [ { "name": "superclass", "type": { - "type": "T" + "text": "T" } } ] @@ -3158,7 +3169,7 @@ "name": "readOnly", "privacy": "public", "type": { - "type": "boolean" + "text": "boolean" } }, { @@ -3166,7 +3177,7 @@ "name": "name", "privacy": "public", "type": { - "type": "string" + "text": "string" } }, { @@ -3174,7 +3185,7 @@ "name": "modelValue", "privacy": "public", "type": { - "type": "unknown" + "text": "unknown" } }, { @@ -3182,7 +3193,7 @@ "name": "label", "privacy": "public", "type": { - "type": "string" + "text": "string" } }, { @@ -3190,7 +3201,7 @@ "name": "__label", "privacy": "public", "type": { - "type": "string | undefined" + "text": "string | undefined" } }, { @@ -3198,7 +3209,7 @@ "name": "helpText", "privacy": "public", "type": { - "type": "string" + "text": "string" } }, { @@ -3206,7 +3217,7 @@ "name": "__helpText", "privacy": "public", "type": { - "type": "string | undefined" + "text": "string | undefined" } }, { @@ -3219,7 +3230,7 @@ "name": "__fieldName", "privacy": "public", "type": { - "type": "string | undefined" + "text": "string | undefined" } }, { @@ -3227,7 +3238,7 @@ "name": "slots", "privacy": "public", "type": { - "type": "SlotsMap" + "text": "SlotsMap" } }, { @@ -3235,7 +3246,7 @@ "name": "_inputNode", "privacy": "public", "type": { - "type": "HTMLElementWithValue" + "text": "HTMLElementWithValue" } }, { @@ -3243,7 +3254,7 @@ "name": "_labelNode", "privacy": "public", "type": { - "type": "HTMLElement" + "text": "HTMLElement" } }, { @@ -3251,7 +3262,7 @@ "name": "_helpTextNode", "privacy": "public", "type": { - "type": "HTMLElement" + "text": "HTMLElement" } }, { @@ -3259,7 +3270,7 @@ "name": "_feedbackNode", "privacy": "public", "type": { - "type": "LionValidationFeedback | undefined" + "text": "LionValidationFeedback | undefined" } }, { @@ -3267,7 +3278,7 @@ "name": "_inputId", "privacy": "public", "type": { - "type": "string" + "text": "string" } }, { @@ -3275,7 +3286,7 @@ "name": "_ariaLabelledNodes", "privacy": "public", "type": { - "type": "HTMLElement[]" + "text": "HTMLElement[]" } }, { @@ -3283,7 +3294,7 @@ "name": "_ariaDescribedNodes", "privacy": "public", "type": { - "type": "HTMLElement[]" + "text": "HTMLElement[]" } }, { @@ -3291,7 +3302,7 @@ "name": "_repropagationRole", "privacy": "public", "type": { - "type": "'child' | 'choice-group' | 'fieldset'" + "text": "'child' | 'choice-group' | 'fieldset'" } }, { @@ -3299,7 +3310,7 @@ "name": "_isRepropagationEndpoint", "privacy": "public", "type": { - "type": "boolean" + "text": "boolean" } }, { @@ -3308,7 +3319,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -3318,14 +3329,14 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } }, "parameters": [ { "name": "changedProperties", "type": { - "type": "import('@lion/core').PropertyValues" + "text": "import('@lion/core').PropertyValues" } } ] @@ -3336,7 +3347,7 @@ "privacy": "public", "return": { "type": { - "type": "TemplateResult" + "text": "TemplateResult" } } }, @@ -3346,7 +3357,7 @@ "privacy": "public", "return": { "type": { - "type": "TemplateResult" + "text": "TemplateResult" } } }, @@ -3356,7 +3367,7 @@ "privacy": "public", "return": { "type": { - "type": "TemplateResult" + "text": "TemplateResult" } } }, @@ -3366,7 +3377,7 @@ "privacy": "public", "return": { "type": { - "type": "TemplateResult" + "text": "TemplateResult" } } }, @@ -3376,7 +3387,7 @@ "privacy": "public", "return": { "type": { - "type": "TemplateResult" + "text": "TemplateResult" } } }, @@ -3386,7 +3397,7 @@ "privacy": "public", "return": { "type": { - "type": "TemplateResult" + "text": "TemplateResult" } } }, @@ -3396,7 +3407,7 @@ "privacy": "public", "return": { "type": { - "type": "TemplateResult" + "text": "TemplateResult" } } }, @@ -3406,7 +3417,7 @@ "privacy": "public", "return": { "type": { - "type": "TemplateResult | typeof nothing" + "text": "TemplateResult | typeof nothing" } } }, @@ -3416,7 +3427,7 @@ "privacy": "public", "return": { "type": { - "type": "TemplateResult" + "text": "TemplateResult" } } }, @@ -3426,7 +3437,7 @@ "privacy": "public", "return": { "type": { - "type": "TemplateResult | typeof nothing" + "text": "TemplateResult | typeof nothing" } } }, @@ -3436,7 +3447,7 @@ "privacy": "public", "return": { "type": { - "type": "TemplateResult" + "text": "TemplateResult" } } }, @@ -3446,7 +3457,7 @@ "privacy": "public", "return": { "type": { - "type": "TemplateResult" + "text": "TemplateResult" } } }, @@ -3456,7 +3467,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -3466,7 +3477,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -3476,7 +3487,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -3486,14 +3497,14 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } }, "parameters": [ { "name": "additionalSlots", "type": { - "type": "string[]" + "text": "string[]" } } ] @@ -3504,26 +3515,26 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } }, "parameters": [ { "name": "attrName", "type": { - "type": "string" + "text": "string" } }, { "name": "nodes", "type": { - "type": "HTMLElement[]" + "text": "HTMLElement[]" } }, { "name": "reorder", "type": { - "type": "boolean | undefined" + "text": "boolean | undefined" } } ] @@ -3534,14 +3545,14 @@ "privacy": "public", "return": { "type": { - "type": "boolean" + "text": "boolean" } }, "parameters": [ { "name": "modelValue", "type": { - "type": "unknown" + "text": "unknown" } } ] @@ -3552,7 +3563,7 @@ "privacy": "public", "return": { "type": { - "type": "HTMLElement[]" + "text": "HTMLElement[]" } } }, @@ -3562,20 +3573,20 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } }, "parameters": [ { "name": "element", "type": { - "type": "HTMLElement" + "text": "HTMLElement" } }, { "name": "customConfig", "type": { - "type": "{\n idPrefix?: string | undefined;\n reorder?: boolean | undefined;\n }" + "text": "{\n idPrefix?: string | undefined;\n reorder?: boolean | undefined;\n }" } } ] @@ -3585,7 +3596,7 @@ "name": "__reorderAriaLabelledNodes", "privacy": "public", "type": { - "type": "boolean | undefined" + "text": "boolean | undefined" } }, { @@ -3594,20 +3605,20 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } }, "parameters": [ { "name": "element", "type": { - "type": "HTMLElement" + "text": "HTMLElement" } }, { "name": "customConfig", "type": { - "type": "{\n idPrefix?: string | undefined;\n reorder?: boolean | undefined;\n }" + "text": "{\n idPrefix?: string | undefined;\n reorder?: boolean | undefined;\n }" } } ] @@ -3617,7 +3628,7 @@ "name": "__reorderAriaDescribedNodes", "privacy": "public", "type": { - "type": "boolean | undefined" + "text": "boolean | undefined" } }, { @@ -3626,14 +3637,14 @@ "privacy": "public", "return": { "type": { - "type": "HTMLElement" + "text": "HTMLElement" } }, "parameters": [ { "name": "slotName", "type": { - "type": "string" + "text": "string" } } ] @@ -3644,7 +3655,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -3653,7 +3664,7 @@ "name": "__repropagateChildrenInitialized", "privacy": "public", "type": { - "type": "boolean | undefined" + "text": "boolean | undefined" } }, { @@ -3662,14 +3673,14 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } }, "parameters": [ { "name": "ev", "type": { - "type": "CustomEvent" + "text": "CustomEvent" } } ] @@ -3680,14 +3691,14 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } }, "parameters": [ { "name": "ev", "type": { - "type": "CustomEvent" + "text": "CustomEvent" } } ] @@ -3699,14 +3710,14 @@ "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" + "text": "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" + "text": "T" } } ] @@ -3744,7 +3755,7 @@ "name": "formattedValue", "privacy": "public", "type": { - "type": "string" + "text": "string" } }, { @@ -3752,7 +3763,7 @@ "name": "serializedValue", "privacy": "public", "type": { - "type": "string" + "text": "string" } }, { @@ -3760,7 +3771,7 @@ "name": "formatOn", "privacy": "public", "type": { - "type": "string" + "text": "string" } }, { @@ -3768,7 +3779,7 @@ "name": "formatOptions", "privacy": "public", "type": { - "type": "FormatNumberOptions" + "text": "FormatNumberOptions" } }, { @@ -3776,7 +3787,7 @@ "name": "__preventRecursiveTrigger", "privacy": "public", "type": { - "type": "boolean" + "text": "boolean" } }, { @@ -3784,7 +3795,7 @@ "name": "__isHandlingUserInput", "privacy": "public", "type": { - "type": "boolean" + "text": "boolean" } }, { @@ -3793,20 +3804,20 @@ "privacy": "public", "return": { "type": { - "type": "unknown" + "text": "unknown" } }, "parameters": [ { "name": "v", "type": { - "type": "string" + "text": "string" } }, { "name": "opts", "type": { - "type": "FormatNumberOptions" + "text": "FormatNumberOptions" } } ] @@ -3817,20 +3828,20 @@ "privacy": "public", "return": { "type": { - "type": "string" + "text": "string" } }, "parameters": [ { "name": "v", "type": { - "type": "unknown" + "text": "unknown" } }, { "name": "opts", "type": { - "type": "FormatNumberOptions" + "text": "FormatNumberOptions" } } ] @@ -3841,14 +3852,14 @@ "privacy": "public", "return": { "type": { - "type": "string" + "text": "string" } }, "parameters": [ { "name": "v", "type": { - "type": "unknown" + "text": "unknown" } } ] @@ -3859,14 +3870,14 @@ "privacy": "public", "return": { "type": { - "type": "unknown" + "text": "unknown" } }, "parameters": [ { "name": "v", "type": { - "type": "string" + "text": "string" } } ] @@ -3876,7 +3887,7 @@ "name": "value", "privacy": "public", "type": { - "type": "string" + "text": "string" } }, { @@ -3885,14 +3896,14 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } }, "parameters": [ { "name": "opts", "type": { - "type": "{ source: 'model' | 'serialized' | 'formatted' | null }" + "text": "{ source: 'model' | 'serialized' | 'formatted' | null }" } } ] @@ -3903,14 +3914,14 @@ "privacy": "public", "return": { "type": { - "type": "object" + "text": "object" } }, "parameters": [ { "name": "value", "type": { - "type": "string | undefined" + "text": "string | undefined" } } ] @@ -3921,7 +3932,7 @@ "privacy": "public", "return": { "type": { - "type": "string" + "text": "string" } } }, @@ -3931,14 +3942,14 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } }, "parameters": [ { "name": "arg", "type": { - "type": "{ modelValue: unknown }" + "text": "{ modelValue: unknown }" } } ] @@ -3949,7 +3960,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -3959,7 +3970,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -3969,7 +3980,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -3979,7 +3990,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -3989,7 +4000,7 @@ "privacy": "public", "return": { "type": { - "type": "boolean" + "text": "boolean" } } }, @@ -3999,7 +4010,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -4009,7 +4020,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -4019,7 +4030,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -4029,7 +4040,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } } @@ -4040,14 +4051,14 @@ "name": "FormatImplementation", "return": { "type": { - "type": "T &\n Constructor &\n FormatHost &\n Constructor &\n typeof ValidateHost &\n Constructor &\n typeof FormControlHost" + "text": "T &\n Constructor &\n FormatHost &\n Constructor &\n typeof ValidateHost &\n Constructor &\n typeof FormControlHost" } }, "parameters": [ { "name": "superclass", "type": { - "type": "T" + "text": "T" } } ] @@ -4085,7 +4096,7 @@ "name": "prefilled", "privacy": "public", "type": { - "type": "boolean" + "text": "boolean" } }, { @@ -4093,7 +4104,7 @@ "name": "filled", "privacy": "public", "type": { - "type": "boolean" + "text": "boolean" } }, { @@ -4101,7 +4112,7 @@ "name": "touched", "privacy": "public", "type": { - "type": "boolean" + "text": "boolean" } }, { @@ -4109,7 +4120,7 @@ "name": "dirty", "privacy": "public", "type": { - "type": "boolean" + "text": "boolean" } }, { @@ -4117,7 +4128,7 @@ "name": "submitted", "privacy": "public", "type": { - "type": "boolean" + "text": "boolean" } }, { @@ -4125,7 +4136,7 @@ "name": "_leaveEvent", "privacy": "public", "type": { - "type": "string" + "text": "string" } }, { @@ -4133,7 +4144,7 @@ "name": "_valueChangedEvent", "privacy": "public", "type": { - "type": "string" + "text": "string" } }, { @@ -4142,7 +4153,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -4152,7 +4163,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -4162,7 +4173,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -4172,7 +4183,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -4182,7 +4193,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -4192,7 +4203,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -4202,7 +4213,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -4212,7 +4223,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } } @@ -4223,14 +4234,14 @@ "name": "InteractionStateImplementation", "return": { "type": { - "type": "T &\n Constructor &\n typeof InteractionStateHost &\n Constructor &\n typeof FormControlHost" + "text": "T &\n Constructor &\n typeof InteractionStateHost &\n Constructor &\n typeof FormControlHost" } }, "parameters": [ { "name": "superclass", "type": { - "type": "T" + "text": "T" } } ] @@ -4272,7 +4283,7 @@ "name": "_inputNode", "privacy": "public", "type": { - "type": "HTMLTextAreaElement | HTMLInputElement" + "text": "HTMLTextAreaElement | HTMLInputElement" } }, { @@ -4280,7 +4291,7 @@ "name": "name", "privacy": "public", "type": { - "type": "string | undefined" + "text": "string | undefined" }, "default": "undefined", "inheritedFrom": { @@ -4329,7 +4340,7 @@ "name": "_ariaLabelledNodes", "privacy": "public", "type": { - "type": "HTMLElement[]" + "text": "HTMLElement[]" }, "default": "[]", "inheritedFrom": { @@ -4342,7 +4353,7 @@ "name": "_ariaDescribedNodes", "privacy": "public", "type": { - "type": "HTMLElement[]" + "text": "HTMLElement[]" }, "default": "[]", "inheritedFrom": { @@ -4355,7 +4366,7 @@ "name": "_repropagationRole", "privacy": "public", "type": { - "type": "'child'|'choice-group'|'fieldset'" + "text": "'child'|'choice-group'|'fieldset'" }, "default": "'child'", "inheritedFrom": { @@ -4444,7 +4455,7 @@ { "name": "changedProperties", "type": { - "type": "PropertyValues " + "text": "PropertyValues " } } ], @@ -4489,7 +4500,7 @@ { "name": "additionalSlots", "type": { - "type": "string[]" + "text": "string[]" }, "default": "['prefix', 'suffix', 'before', 'after']" } @@ -4508,19 +4519,19 @@ { "name": "attrName", "type": { - "type": "string" + "text": "string" } }, { "name": "nodes", "type": { - "type": "HTMLElement[]" + "text": "HTMLElement[]" } }, { "name": "reorder", "type": { - "type": "boolean|undefined" + "text": "boolean|undefined" } } ], @@ -4545,7 +4556,7 @@ "privacy": "public", "return": { "type": { - "type": "TemplateResult" + "text": "TemplateResult" } }, "inheritedFrom": { @@ -4559,7 +4570,7 @@ "privacy": "public", "return": { "type": { - "type": "TemplateResult" + "text": "TemplateResult" } }, "inheritedFrom": { @@ -4573,7 +4584,7 @@ "privacy": "public", "return": { "type": { - "type": "TemplateResult" + "text": "TemplateResult" } }, "inheritedFrom": { @@ -4587,7 +4598,7 @@ "privacy": "public", "return": { "type": { - "type": "TemplateResult" + "text": "TemplateResult" } }, "inheritedFrom": { @@ -4601,7 +4612,7 @@ "privacy": "public", "return": { "type": { - "type": "TemplateResult" + "text": "TemplateResult" } }, "inheritedFrom": { @@ -4615,7 +4626,7 @@ "privacy": "public", "return": { "type": { - "type": "TemplateResult" + "text": "TemplateResult" } }, "inheritedFrom": { @@ -4629,7 +4640,7 @@ "privacy": "public", "return": { "type": { - "type": "TemplateResult | nothing" + "text": "TemplateResult | nothing" } }, "inheritedFrom": { @@ -4643,7 +4654,7 @@ "privacy": "public", "return": { "type": { - "type": "TemplateResult" + "text": "TemplateResult" } }, "inheritedFrom": { @@ -4657,7 +4668,7 @@ "privacy": "public", "return": { "type": { - "type": "TemplateResult | nothing" + "text": "TemplateResult | nothing" } }, "inheritedFrom": { @@ -4671,7 +4682,7 @@ "privacy": "public", "return": { "type": { - "type": "TemplateResult" + "text": "TemplateResult" } }, "inheritedFrom": { @@ -4685,7 +4696,7 @@ "privacy": "public", "return": { "type": { - "type": "TemplateResult" + "text": "TemplateResult" } }, "inheritedFrom": { @@ -4699,14 +4710,14 @@ "privacy": "public", "return": { "type": { - "type": "boolean" + "text": "boolean" } }, "parameters": [ { "name": "modelValue", "type": { - "type": "?" + "text": "?" }, "default": "this.modelValue" } @@ -4722,7 +4733,7 @@ "privacy": "public", "return": { "type": { - "type": "Array." + "text": "Array." } }, "inheritedFrom": { @@ -4739,13 +4750,13 @@ { "name": "element", "type": { - "type": "HTMLElement" + "text": "HTMLElement" } }, { "name": "customConfig", "type": { - "type": "{idPrefix?:string; reorder?: boolean}" + "text": "{idPrefix?:string; reorder?: boolean}" }, "default": "{}" } @@ -4764,13 +4775,13 @@ { "name": "element", "type": { - "type": "HTMLElement" + "text": "HTMLElement" } }, { "name": "customConfig", "type": { - "type": "{idPrefix?:string; reorder?: boolean}" + "text": "{idPrefix?:string; reorder?: boolean}" }, "default": "{}" } @@ -4786,14 +4797,14 @@ "privacy": "public", "return": { "type": { - "type": "HTMLElement | undefined" + "text": "HTMLElement | undefined" } }, "parameters": [ { "name": "slotName", "type": { - "type": "string" + "text": "string" } } ], @@ -4819,7 +4830,7 @@ { "name": "ev", "type": { - "type": "CustomEvent" + "text": "CustomEvent" } } ], @@ -4836,7 +4847,7 @@ { "name": "ev", "type": { - "type": "CustomEvent" + "text": "CustomEvent" } } ], @@ -4854,7 +4865,7 @@ { "name": "target", "type": { - "type": "EventTarget & ChoiceInputHost" + "text": "EventTarget & ChoiceInputHost" } } ], @@ -4929,13 +4940,13 @@ { "name": "name", "type": { - "type": "PropertyKey" + "text": "PropertyKey" } }, { "name": "oldVal", "type": { - "type": "*" + "text": "*" } } ], @@ -5130,21 +5141,21 @@ "description": "Converts formattedValue to modelValue\nFor instance, a localized date to a Date Object", "return": { "type": { - "type": "*" + "text": "*" } }, "parameters": [ { "name": "v", "type": { - "type": "string" + "text": "string" }, "description": "formattedValue: the formatted value inside " }, { "name": "opts", "type": { - "type": "FormatOptions" + "text": "FormatOptions" } } ], @@ -5160,21 +5171,21 @@ "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" + "text": "string" } }, "parameters": [ { "name": "v", "type": { - "type": "*" + "text": "*" }, "description": "modelValue: can be an Object, Number, String depending on the\ninput type(date, number, email etc)" }, { "name": "opts", "type": { - "type": "FormatOptions" + "text": "FormatOptions" } } ], @@ -5190,14 +5201,14 @@ "description": "Converts `.modelValue` to `.serializedValue`\nFor instance, a Date object to an iso formatted date string", "return": { "type": { - "type": "string" + "text": "string" } }, "parameters": [ { "name": "v", "type": { - "type": "?" + "text": "?" }, "description": "modelValue: can be an Object, Number, String depending on the\ninput type(date, number, email etc)" } @@ -5214,14 +5225,14 @@ "description": "Converts `LionField.value` to `.modelValue`\nFor instance, an iso formatted date string to a Date object", "return": { "type": { - "type": "?" + "text": "?" } }, "parameters": [ { "name": "v", "type": { - "type": "?" + "text": "?" }, "description": "modelValue: can be an Object, Number, String depending on the\ninput type(date, number, email etc)" } @@ -5240,7 +5251,7 @@ { "name": "config", "type": { - "type": "{source:'model'|'serialized'|'formatted'|null}" + "text": "{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'." } @@ -5256,14 +5267,14 @@ "privacy": "public", "return": { "type": { - "type": "?" + "text": "?" } }, "parameters": [ { "name": "value", "type": { - "type": "string|undefined" + "text": "string|undefined" }, "default": "this.formattedValue" } @@ -5279,7 +5290,7 @@ "privacy": "public", "return": { "type": { - "type": "string|undefined" + "text": "string|undefined" } }, "inheritedFrom": { @@ -5296,7 +5307,7 @@ { "name": "args", "type": { - "type": "{ modelValue: unknown; }[]" + "text": "{ modelValue: unknown; }[]" } } ], @@ -5313,7 +5324,7 @@ { "name": "args", "type": { - "type": "{ modelValue: unknown; }[]" + "text": "{ 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." } @@ -5349,7 +5360,7 @@ "privacy": "public", "return": { "type": { - "type": "boolean" + "text": "boolean" } }, "inheritedFrom": { @@ -5380,7 +5391,7 @@ "name": "autocomplete", "privacy": "public", "type": { - "type": "string | undefined" + "text": "string | undefined" }, "default": "undefined", "inheritedFrom": { @@ -5503,7 +5514,7 @@ { "name": "form-element-name-changed", "type": { - "type": "CustomEvent" + "text": "CustomEvent" }, "inheritedFrom": { "name": "FormControlMixin", @@ -5513,7 +5524,7 @@ { "name": "model-value-changed", "type": { - "type": "CustomEvent" + "text": "CustomEvent" }, "inheritedFrom": { "name": "FormControlMixin", @@ -5523,7 +5534,7 @@ { "name": "touched-changed", "type": { - "type": "CustomEvent" + "text": "CustomEvent" }, "inheritedFrom": { "name": "InteractionStateMixin", @@ -5533,7 +5544,7 @@ { "name": "dirty-changed", "type": { - "type": "CustomEvent" + "text": "CustomEvent" }, "inheritedFrom": { "name": "InteractionStateMixin", @@ -5543,7 +5554,7 @@ { "name": "focus", "type": { - "type": "Event" + "text": "Event" }, "inheritedFrom": { "name": "FocusMixin", @@ -5553,7 +5564,7 @@ { "name": "blur", "type": { - "type": "Event" + "text": "Event" }, "inheritedFrom": { "name": "FocusMixin", @@ -5563,7 +5574,7 @@ { "name": "focusin", "type": { - "type": "Event" + "text": "Event" }, "inheritedFrom": { "name": "FocusMixin", @@ -5573,7 +5584,7 @@ { "name": "focusout", "type": { - "type": "Event" + "text": "Event" }, "inheritedFrom": { "name": "FocusMixin", @@ -5583,7 +5594,7 @@ { "name": "user-input-changed", "type": { - "type": "CustomEvent" + "text": "CustomEvent" }, "inheritedFrom": { "name": "FormatMixin", @@ -5601,7 +5612,7 @@ "name": "selectionStart", "privacy": "public", "type": { - "type": "number" + "text": "number" } }, { @@ -5609,7 +5620,7 @@ "name": "selectionEnd", "privacy": "public", "type": { - "type": "number" + "text": "number" } } ] @@ -5619,14 +5630,14 @@ "name": "NativeTextFieldImplementation", "return": { "type": { - "type": "T & Constructor & NativeTextFieldHost & typeof NativeTextField" + "text": "T & Constructor & NativeTextFieldHost & typeof NativeTextField" } }, "parameters": [ { "name": "superclass", "type": { - "type": "T" + "text": "T" } } ] @@ -5666,6 +5677,15 @@ { "kind": "mixin", "name": "ChoiceGroupMixin", + "parameters": [ + { + "name": "superclass", + "type": { + "text": "LitElement>" + }, + "description": "" + } + ], "mixins": [ { "name": "FormRegistrarMixin", @@ -5676,10 +5696,6 @@ "module": "/src/choice-group/InteractionStateMixin.js" } ], - "superclass": { - "name": "superclass", - "module": "./src/choice-group/ChoiceGroupMixin.js" - }, "attributes": [ { "name": "multiple-choice", @@ -5721,7 +5737,7 @@ { "name": "changedProperties", "type": { - "type": "PropertyValues" + "text": "PropertyValues" } } ] @@ -5739,13 +5755,13 @@ { "name": "child", "type": { - "type": "FormControl" + "text": "FormControl" } }, { "name": "indexToInsertAt", "type": { - "type": "number" + "text": "number" } } ] @@ -5763,7 +5779,7 @@ { "name": "property", "type": { - "type": "string" + "text": "string" } }, { @@ -5780,7 +5796,7 @@ { "name": "child", "type": { - "type": "FormControl" + "text": "FormControl" } } ] @@ -5798,7 +5814,7 @@ { "name": "ev", "type": { - "type": "CustomEvent & {target:FormControl}" + "text": "CustomEvent & {target:FormControl}" } } ] @@ -5816,13 +5832,13 @@ { "name": "value", "type": { - "type": "string | any[]" + "text": "string | any[]" } }, { "name": "check", "type": { - "type": "Function" + "text": "Function" } } ] @@ -5840,16 +5856,12 @@ { "name": "ev", "type": { - "type": "CustomEvent" + "text": "CustomEvent" } } ] } ] - }, - { - "kind": "variable", - "name": "ChoiceGroupMixin" } ], "exports": [ @@ -5870,16 +5882,21 @@ { "kind": "mixin", "name": "ChoiceInputMixin", + "parameters": [ + { + "name": "superclass", + "type": { + "text": "LitElement>" + }, + "description": "" + } + ], "mixins": [ { "name": "FormatMixin", "module": "/src/choice-group/FormatMixin.js" } ], - "superclass": { - "name": "superclass", - "module": "./src/choice-group/ChoiceInputMixin.js" - }, "attributes": [ { "name": "checked", @@ -5929,13 +5946,13 @@ { "name": "name", "type": { - "type": "string" + "text": "string" } }, { "name": "oldValue", "type": { - "type": "any" + "text": "any" } } ] @@ -5948,7 +5965,7 @@ { "name": "changedProperties", "type": { - "type": "PropertyValues " + "text": "PropertyValues " } } ] @@ -5961,7 +5978,7 @@ { "name": "changedProperties", "type": { - "type": "PropertyValues " + "text": "PropertyValues " } } ] @@ -6001,7 +6018,7 @@ { "name": "ev", "type": { - "type": "Event" + "text": "Event" } } ] @@ -6014,7 +6031,7 @@ { "name": "ev", "type": { - "type": "Event" + "text": "Event" } } ] @@ -6033,7 +6050,7 @@ { "name": "checked", "type": { - "type": "boolean" + "text": "boolean" } } ] @@ -6046,7 +6063,7 @@ { "name": "checked", "type": { - "type": "any" + "text": "any" } } ] @@ -6069,13 +6086,13 @@ { "name": "newV", "type": { - "type": "{ modelValue:unknown }" + "text": "{ modelValue:unknown }" } }, { "name": "old", "type": { - "type": "{ modelValue:unknown }" + "text": "{ modelValue:unknown }" }, "optional": true } @@ -6094,7 +6111,7 @@ { "name": "modelValue", "type": { - "type": "ChoiceInputModelValue " + "text": "ChoiceInputModelValue " } } ] @@ -6116,10 +6133,6 @@ "privacy": "public" } ] - }, - { - "kind": "variable", - "name": "ChoiceInputMixin" } ], "exports": [ @@ -6159,21 +6172,21 @@ { "name": "value", "type": { - "type": "unknown" + "text": "unknown" }, "optional": true }, { "name": "options", "type": { - "type": "string | undefined" + "text": "string | undefined" }, "optional": true }, { "name": "config", "type": { - "type": "{ node: any }" + "text": "{ node: any }" } } ] @@ -6205,6 +6218,15 @@ { "kind": "mixin", "name": "FormGroupMixin", + "parameters": [ + { + "name": "superclass", + "type": { + "text": "LitElement>" + }, + "description": "" + } + ], "mixins": [ { "name": "FormRegistrarMixin", @@ -6220,17 +6242,13 @@ }, { "name": "DisabledMixin", - "package": "@lion/core/src/DisabledMixin.js" + "package": "@lion/core" }, { "name": "SlotMixin", "package": "@lion/core" } ], - "superclass": { - "name": "superclass", - "module": "./src/form-group/FormGroupMixin.js" - }, "attributes": [ { "name": "submitted", @@ -6331,7 +6349,7 @@ { "name": "changedProperties", "type": { - "type": "PropertyValues " + "text": "PropertyValues " } } ] @@ -6349,7 +6367,7 @@ { "name": "event", "type": { - "type": "Event" + "text": "Event" } } ] @@ -6397,7 +6415,7 @@ { "name": "property", "type": { - "type": "string" + "text": "string" } }, { @@ -6414,13 +6432,13 @@ { "name": "property", "type": { - "type": "string | number" + "text": "string | number" } }, { "name": "value", "type": { - "type": "any" + "text": "any" } } ] @@ -6433,13 +6451,13 @@ { "name": "property", "type": { - "type": "string" + "text": "string" } }, { "name": "values", "type": { - "type": "{ [x: string]: any; }" + "text": "{ [x: string]: any; }" } } ] @@ -6452,7 +6470,7 @@ { "name": "property", "type": { - "type": "string" + "text": "string" } } ] @@ -6465,7 +6483,7 @@ { "name": "state", "type": { - "type": "string" + "text": "string" }, "description": "one of ValidateHost.validationTypes" } @@ -6479,7 +6497,7 @@ { "name": "property", "type": { - "type": "string" + "text": "string" } } ] @@ -6493,7 +6511,7 @@ { "name": "ev", "type": { - "type": "Event" + "text": "Event" } } ] @@ -6511,7 +6529,7 @@ { "name": "ev", "type": { - "type": "Event" + "text": "Event" } } ] @@ -6529,7 +6547,7 @@ { "name": "child", "type": { - "type": "FormControl" + "text": "FormControl" } } ] @@ -6542,13 +6560,13 @@ { "name": "child", "type": { - "type": "FormControl" + "text": "FormControl" } }, { "name": "indexToInsertAt", "type": { - "type": "number" + "text": "number" } } ] @@ -6568,14 +6586,14 @@ { "name": "field", "type": { - "type": "FormControl" + "text": "FormControl" }, "description": "the child: lion-field/lion-input/lion-textarea" }, { "name": "descriptionElements", "type": { - "type": "HTMLElement[]" + "text": "HTMLElement[]" }, "description": "description elements like feedback and help-text" } @@ -6589,16 +6607,12 @@ { "name": "el", "type": { - "type": "FormRegisteringHost" + "text": "FormRegisteringHost" } } ] } ] - }, - { - "kind": "variable", - "name": "FormGroupMixin" } ], "exports": [ @@ -6630,7 +6644,7 @@ "privacy": "public", "return": { "type": { - "type": "string[]" + "text": "string[]" } } } @@ -6708,392 +6722,6 @@ } ] }, - { - "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", @@ -7110,7 +6738,7 @@ { "name": "task", "type": { - "type": "function" + "text": "function" } } ] @@ -7163,27 +6791,27 @@ "name": "getAriaElementsInRightDomOrder", "return": { "type": { - "type": "HTMLElement[]" + "text": "HTMLElement[]" } }, "parameters": [ { "name": "descriptionElements", "type": { - "type": "HTMLElement[]" + "text": "HTMLElement[]" }, "description": "holds references to description or label elements whose\nid should be returned" }, { "name": "opts", "type": { - "type": "Object" + "text": "Object" } }, { "name": "opts.reverse", "type": { - "type": "boolean" + "text": "boolean" }, "optional": true } @@ -7211,14 +6839,14 @@ "description": "Return PascalCased version of the camelCased string", "return": { "type": { - "type": "string" + "text": "string" } }, "parameters": [ { "name": "str", "type": { - "type": "string" + "text": "string" } } ] @@ -7235,6 +6863,820 @@ } ] }, + { + "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": { + "text": "Object" + } + }, + { + "name": "opts.message", + "type": { + "text": "string | Node | TemplateResult " + }, + "description": "message or feedback node or TemplateResult" + }, + { + "name": "opts.type", + "type": { + "text": "string" + }, + "optional": true + }, + { + "name": "opts.validator", + "type": { + "text": "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": { + "text": "boolean" + } + }, + "parameters": [ + { + "name": "context", + "type": { + "text": "Object" + } + }, + { + "name": "context.regularValidationResult", + "type": { + "text": "Validator[]" + } + }, + { + "name": "context.prevValidationResult", + "type": { + "text": "Validator[] | undefined" + } + }, + { + "name": "context.validators", + "type": { + "text": "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": "mixin", + "name": "ValidateMixinImplementation", + "parameters": [ + { + "name": "superclass", + "type": { + "text": "LitElement>" + }, + "description": "" + } + ], + "events": [ + { + "name": "showsFeedbackForChanged", + "type": { + "text": "Event" + } + }, + { + "type": { + "text": "Event" + } + }, + { + "name": "shouldShowFeedbackForChanged", + "type": { + "text": "Event" + } + }, + { + "name": "validate-performed", + "type": { + "text": "Event" + }, + "description": "private event that should be listened to by LionFieldSet" + } + ], + "mixins": [ + { + "name": "FormControlMixin", + "module": "/src/validate/FormControlMixin.js" + }, + { + "name": "SyncUpdatableMixin", + "module": "/src/utils/SyncUpdatableMixin.js" + }, + { + "name": "DisabledMixin", + "package": "@lion/core" + }, + { + "name": "SlotMixin", + "package": "@lion/core" + }, + { + "name": "ScopedElementsMixin", + "package": "@lion/core" + } + ], + "members": [ + { + "kind": "field", + "name": "scopedElements", + "static": true, + "privacy": "public" + }, + { + "kind": "field", + "name": "validators", + "privacy": "public", + "type": { + "text": "Validator[]" + }, + "default": "[]" + }, + { + "kind": "field", + "name": "hasFeedbackFor", + "privacy": "public", + "type": { + "text": "string[]" + }, + "default": "[]" + }, + { + "kind": "field", + "name": "shouldShowFeedbackFor", + "privacy": "public", + "type": { + "text": "string[]" + }, + "default": "[]" + }, + { + "kind": "field", + "name": "showsFeedbackFor", + "privacy": "public", + "type": { + "text": "string[]" + }, + "default": "[]" + }, + { + "kind": "field", + "name": "validationStates", + "privacy": "public", + "type": { + "text": "Object.>" + }, + "default": "{}" + }, + { + "kind": "field", + "name": "isPending", + "privacy": "public", + "default": "false" + }, + { + "kind": "field", + "name": "defaultValidators", + "privacy": "public", + "type": { + "text": "Validator[]" + }, + "default": "[]" + }, + { + "kind": "field", + "name": "_visibleMessagesAmount", + "privacy": "public", + "default": "1" + }, + { + "kind": "field", + "name": "validationTypes", + "static": true, + "privacy": "public" + }, + { + "kind": "field", + "name": "slots", + "privacy": "public" + }, + { + "kind": "field", + "name": "_allValidators", + "privacy": "public" + }, + { + "kind": "method", + "name": "connectedCallback", + "privacy": "public" + }, + { + "kind": "method", + "name": "disconnectedCallback", + "privacy": "public" + }, + { + "kind": "method", + "name": "firstUpdated", + "privacy": "public", + "parameters": [ + { + "name": "changedProperties", + "type": { + "text": "PropertyValues" + } + } + ] + }, + { + "kind": "method", + "name": "updateSync", + "privacy": "public", + "parameters": [ + { + "name": "name", + "type": { + "text": "string" + } + }, + { + "name": "oldValue", + "type": { + "text": "?" + } + } + ] + }, + { + "kind": "method", + "name": "validate", + "privacy": "public", + "parameters": [ + { + "name": "opts", + "type": { + "text": "{ clearCurrentResult?: boolean }" + }, + "optional": true + } + ] + }, + { + "kind": "method", + "name": "__storePrevResult", + "privacy": "public" + }, + { + "kind": "method", + "name": "__executeValidators", + "privacy": "public" + }, + { + "kind": "method", + "name": "__executeSyncValidators", + "privacy": "public", + "parameters": [ + { + "name": "syncValidators", + "type": { + "text": "Validator[]" + } + }, + { + "name": "value", + "type": { + "text": "unknown" + } + }, + { + "name": "opts", + "type": { + "text": "{ hasAsync: boolean }" + } + } + ] + }, + { + "kind": "method", + "name": "__executeAsyncValidators", + "privacy": "public", + "parameters": [ + { + "name": "asyncValidators", + "type": { + "text": "Validator[]" + }, + "description": "all Validators except required and ResultValidators" + }, + { + "name": "value", + "type": { + "text": "?" + } + } + ] + }, + { + "kind": "method", + "name": "__executeResultValidators", + "privacy": "public", + "parameters": [ + { + "name": "regularValidationResult", + "type": { + "text": "Validator[]" + }, + "description": "result of steps 1-3" + } + ] + }, + { + "kind": "method", + "name": "__finishValidation", + "privacy": "public", + "parameters": [ + { + "name": "options", + "type": { + "text": "object" + } + }, + { + "name": "options.source", + "type": { + "text": "'sync'|'async'" + } + }, + { + "name": "options.hasAsync", + "type": { + "text": "boolean" + }, + "description": "whether async validators are configured in this run.\nIf not, we have nothing left to wait for.", + "optional": true + } + ] + }, + { + "kind": "method", + "name": "__clearValidationResults", + "privacy": "public" + }, + { + "kind": "method", + "name": "__onValidatorUpdated", + "privacy": "public", + "parameters": [ + { + "name": "e", + "type": { + "text": "Event|CustomEvent" + } + } + ] + }, + { + "kind": "method", + "name": "__setupValidators", + "privacy": "public" + }, + { + "kind": "method", + "name": "__isEmpty", + "privacy": "public", + "parameters": [ + { + "name": "v", + "type": { + "text": "?" + } + } + ] + }, + { + "kind": "method", + "name": "__getFeedbackMessages", + "privacy": "public", + "return": { + "type": { + "text": "Promise." + } + }, + "parameters": [ + { + "name": "validators", + "type": { + "text": "Validator[]" + }, + "description": "list of objects having a .getMessage method" + } + ] + }, + { + "kind": "method", + "name": "_updateFeedbackComponent", + "privacy": "public" + }, + { + "kind": "method", + "name": "_showFeedbackConditionFor", + "privacy": "public", + "description": "Show the validity feedback when returning true, don't show when false", + "parameters": [ + { + "name": "type", + "type": { + "text": "string" + } + } + ] + }, + { + "kind": "method", + "name": "_hasFeedbackVisibleFor", + "privacy": "public", + "parameters": [ + { + "name": "type", + "type": { + "text": "string" + } + } + ] + }, + { + "kind": "method", + "name": "updated", + "privacy": "public", + "parameters": [ + { + "name": "changedProperties", + "type": { + "text": "PropertyValues" + } + } + ] + }, + { + "kind": "method", + "name": "_updateShouldShowFeedbackFor", + "privacy": "public" + }, + { + "kind": "method", + "name": "_prioritizeAndFilterFeedback", + "privacy": "public", + "return": { + "type": { + "text": "Validator[]" + } + }, + "parameters": [ + { + "name": "opts", + "type": { + "text": "{ validationResult: Validator[] }" + } + } + ] + } + ], + "attributes": [ + { + "name": "shows-feedback-for", + "fieldName": "showsFeedbackFor" + }, + { + "name": "is-pending", + "fieldName": "isPending" + } + ] + }, + { + "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": { + "text": "*" + }, + "description": "" + }, + { + "name": "MessageData.fieldName", + "type": { + "text": "string" + }, + "description": "" + }, + { + "name": "MessageData.formControl", + "type": { + "text": "HTMLElement" + }, + "description": "" + }, + { + "name": "MessageData.type", + "type": { + "text": "string" + }, + "description": "" + }, + { + "name": "MessageData.config", + "type": { + "text": "Object." + }, + "description": "" + }, + { + "name": "MessageData.name", + "type": { + "text": "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": { + "text": "Boolean|Promise" + } + }, + "parameters": [ + { + "name": "modelValue", + "type": { + "text": "?" + }, + "optional": true + }, + { + "name": "param", + "type": { + "text": "?" + }, + "optional": true + }, + { + "name": "config", + "type": { + "text": "{}" + }, + "optional": true + } + ] + }, + { + "kind": "field", + "name": "param", + "privacy": "public" + }, + { + "kind": "field", + "name": "config", + "privacy": "public" + }, + { + "kind": "method", + "name": "_getMessage", + "privacy": "public", + "return": { + "type": { + "text": "Promise" + } + }, + "parameters": [ + { + "name": "data", + "type": { + "text": "MessageData" + }, + "optional": true + } + ] + }, + { + "kind": "method", + "name": "getMessage", + "privacy": "public", + "static": true, + "return": { + "type": { + "text": "Promise" + } + }, + "parameters": [ + { + "name": "data", + "type": { + "text": "MessageData" + }, + "optional": true + } + ] + }, + { + "kind": "method", + "name": "onFormControlConnect", + "privacy": "public", + "parameters": [ + { + "name": "formControl", + "type": { + "text": "HTMLElement" + } + } + ] + }, + { + "kind": "method", + "name": "onFormControlDisconnect", + "privacy": "public", + "parameters": [ + { + "name": "formControl", + "type": { + "text": "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": "./types/choice-group/ChoiceGroupMixinTypes.d.ts", @@ -7248,7 +7690,7 @@ "name": "multipleChoice", "privacy": "public", "type": { - "type": "boolean" + "text": "boolean" } }, { @@ -7257,7 +7699,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -7267,7 +7709,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -7276,7 +7718,7 @@ "name": "modelValue", "privacy": "public", "type": { - "type": "any" + "text": "any" } }, { @@ -7284,7 +7726,7 @@ "name": "serializedValue", "privacy": "public", "type": { - "type": "string" + "text": "string" } }, { @@ -7292,7 +7734,7 @@ "name": "formattedValue", "privacy": "public", "type": { - "type": "string" + "text": "string" } }, { @@ -7301,7 +7743,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -7311,7 +7753,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -7321,20 +7763,20 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } }, "parameters": [ { "name": "child", "type": { - "type": "FormControlHost" + "text": "FormControlHost" } }, { "name": "indexToInsertAt", "type": { - "type": "number" + "text": "number" } } ] @@ -7345,7 +7787,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -7355,20 +7797,20 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } }, "parameters": [ { "name": "property", "type": { - "type": "string" + "text": "string" } }, { "name": "filterCondition", "type": { - "type": "Function" + "text": "Function" } } ] @@ -7379,14 +7821,14 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } }, "parameters": [ { "name": "child", "type": { - "type": "FormControlHost" + "text": "FormControlHost" } } ] @@ -7397,7 +7839,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -7407,14 +7849,14 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } }, "parameters": [ { "name": "ev", "type": { - "type": "Event" + "text": "Event" } } ] @@ -7425,7 +7867,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -7435,20 +7877,20 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } }, "parameters": [ { "name": "value", "type": { - "type": "any" + "text": "any" } }, { "name": "check", "type": { - "type": "boolean" + "text": "boolean" } } ] @@ -7459,7 +7901,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -7469,14 +7911,14 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } }, "parameters": [ { "name": "child", "type": { - "type": "FormControlHost" + "text": "FormControlHost" } } ] @@ -7487,14 +7929,14 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } }, "parameters": [ { "name": "ev", "type": { - "type": "Event" + "text": "Event" } } ] @@ -7506,14 +7948,14 @@ "name": "ChoiceGroupImplementation", "return": { "type": { - "type": "T &\n Constructor &\n ChoiceGroupHost &\n Constructor &\n typeof FormRegistrarHost &\n Constructor &\n typeof InteractionStateHost" + "text": "T &\n Constructor &\n ChoiceGroupHost &\n Constructor &\n typeof FormRegistrarHost &\n Constructor &\n typeof InteractionStateHost" } }, "parameters": [ { "name": "superclass", "type": { - "type": "T" + "text": "T" } } ] @@ -7551,7 +7993,7 @@ "name": "modelValue", "privacy": "public", "type": { - "type": "ChoiceInputModelValue" + "text": "ChoiceInputModelValue" } }, { @@ -7559,7 +8001,7 @@ "name": "serializedValue", "privacy": "public", "type": { - "type": "ChoiceInputSerializedValue" + "text": "ChoiceInputSerializedValue" } }, { @@ -7567,7 +8009,7 @@ "name": "checked", "privacy": "public", "type": { - "type": "boolean" + "text": "boolean" } }, { @@ -7575,7 +8017,7 @@ "name": "choiceValue", "privacy": "public", "type": { - "type": "any" + "text": "any" } }, { @@ -7584,20 +8026,20 @@ "privacy": "protected", "return": { "type": { - "type": "void" + "text": "void" } }, "parameters": [ { "name": "name", "type": { - "type": "string" + "text": "string" } }, { "name": "oldValue", "type": { - "type": "any" + "text": "any" } } ] @@ -7608,14 +8050,14 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } }, "parameters": [ { "name": "changedProperties", "type": { - "type": "Map" + "text": "Map" } } ] @@ -7626,14 +8068,14 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } }, "parameters": [ { "name": "changedProperties", "type": { - "type": "Map" + "text": "Map" } } ] @@ -7644,7 +8086,7 @@ "privacy": "public", "return": { "type": { - "type": "TemplateResult" + "text": "TemplateResult" } } }, @@ -7654,7 +8096,7 @@ "privacy": "public", "return": { "type": { - "type": "TemplateResult" + "text": "TemplateResult" } } }, @@ -7664,7 +8106,7 @@ "privacy": "public", "return": { "type": { - "type": "TemplateResult" + "text": "TemplateResult" } } }, @@ -7674,7 +8116,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -7684,7 +8126,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -7694,14 +8136,14 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } }, "parameters": [ { "name": "ev", "type": { - "type": "Event" + "text": "Event" } } ] @@ -7712,7 +8154,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -7722,14 +8164,14 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } }, "parameters": [ { "name": "ev", "type": { - "type": "Event" + "text": "Event" } } ] @@ -7740,14 +8182,14 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } }, "parameters": [ { "name": "checked", "type": { - "type": "boolean" + "text": "boolean" } } ] @@ -7758,14 +8200,14 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } }, "parameters": [ { "name": "checked", "type": { - "type": "boolean" + "text": "boolean" } } ] @@ -7776,7 +8218,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -7785,7 +8227,7 @@ "name": "__isHandlingUserInput", "privacy": "public", "type": { - "type": "boolean" + "text": "boolean" } }, { @@ -7794,7 +8236,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -7804,20 +8246,20 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } }, "parameters": [ { "name": "newV", "type": { - "type": "{ modelValue: ChoiceInputModelValue }" + "text": "{ modelValue: ChoiceInputModelValue }" } }, { "name": "oldV", "type": { - "type": "{ modelValue: ChoiceInputModelValue }" + "text": "{ modelValue: ChoiceInputModelValue }" } } ] @@ -7828,7 +8270,7 @@ "privacy": "public", "return": { "type": { - "type": "any" + "text": "any" } } }, @@ -7838,14 +8280,14 @@ "privacy": "public", "return": { "type": { - "type": "string" + "text": "string" } }, "parameters": [ { "name": "modelValue", "type": { - "type": "ChoiceInputModelValue" + "text": "ChoiceInputModelValue" } } ] @@ -7856,7 +8298,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -7866,7 +8308,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -7875,7 +8317,7 @@ "name": "type", "privacy": "public", "type": { - "type": "string" + "text": "string" } }, { @@ -7883,7 +8325,7 @@ "name": "_inputNode", "privacy": "public", "type": { - "type": "HTMLElement" + "text": "HTMLElement" } } ] @@ -7893,14 +8335,14 @@ "name": "ChoiceInputImplementation", "return": { "type": { - "type": "T &\n Constructor &\n ChoiceInputHost &\n Constructor &\n FormatHost &\n HTMLElement" + "text": "T &\n Constructor &\n ChoiceInputHost &\n Constructor &\n FormatHost &\n HTMLElement" } }, "parameters": [ { "name": "superclass", "type": { - "type": "T" + "text": "T" } } ] @@ -7940,7 +8382,7 @@ "static": true, "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -7949,7 +8391,7 @@ "name": "_inputNode", "privacy": "public", "type": { - "type": "HTMLElement" + "text": "HTMLElement" } }, { @@ -7958,7 +8400,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -7968,7 +8410,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -7977,7 +8419,7 @@ "name": "prefilled", "privacy": "public", "type": { - "type": "boolean" + "text": "boolean" } }, { @@ -7985,7 +8427,7 @@ "name": "touched", "privacy": "public", "type": { - "type": "boolean" + "text": "boolean" } }, { @@ -7993,7 +8435,7 @@ "name": "dirty", "privacy": "public", "type": { - "type": "boolean" + "text": "boolean" } }, { @@ -8001,7 +8443,7 @@ "name": "submitted", "privacy": "public", "type": { - "type": "boolean" + "text": "boolean" } }, { @@ -8009,7 +8451,7 @@ "name": "serializedValue", "privacy": "public", "type": { - "type": "{ [key: string]: any }" + "text": "{ [key: string]: any }" } }, { @@ -8017,7 +8459,7 @@ "name": "modelValue", "privacy": "public", "type": { - "type": "{ [x: string]: any }" + "text": "{ [x: string]: any }" } }, { @@ -8025,7 +8467,7 @@ "name": "formattedValue", "privacy": "public", "type": { - "type": "string" + "text": "string" } }, { @@ -8033,7 +8475,7 @@ "name": "children", "privacy": "public", "type": { - "type": "Array" + "text": "Array" } }, { @@ -8041,7 +8483,7 @@ "name": "_initialModelValue", "privacy": "public", "type": { - "type": "{ [x: string]: any }" + "text": "{ [x: string]: any }" } }, { @@ -8050,20 +8492,20 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } }, "parameters": [ { "name": "property", "type": { - "type": "string" + "text": "string" } }, { "name": "value", "type": { - "type": "any" + "text": "any" } } ] @@ -8074,7 +8516,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -8084,7 +8526,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } } @@ -8095,14 +8537,14 @@ "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" + "text": "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" + "text": "T" } } ] @@ -8141,7 +8583,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -8151,7 +8593,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -8160,7 +8602,7 @@ "name": "_parentFormGroup", "privacy": "public", "type": { - "type": "FormRegistrarHost" + "text": "FormRegistrarHost" } } ] @@ -8170,14 +8612,14 @@ "name": "FormRegisteringImplementation", "return": { "type": { - "type": "T & Constructor & typeof FormRegisteringHost" + "text": "T & Constructor & typeof FormRegisteringHost" } }, "parameters": [ { "name": "superclass", "type": { - "type": "T" + "text": "T" } } ] @@ -8215,7 +8657,7 @@ "name": "_parentFormGroup", "privacy": "public", "type": { - "type": "FormRegistrarHost" + "text": "FormRegistrarHost" } } ] @@ -8229,7 +8671,7 @@ "name": "_isFormOrFieldset", "privacy": "public", "type": { - "type": "boolean" + "text": "boolean" } }, { @@ -8237,7 +8679,7 @@ "name": "formElements", "privacy": "public", "type": { - "type": "FormControlsCollection & { [x: string]: any }" + "text": "FormControlsCollection & { [x: string]: any }" } }, { @@ -8246,20 +8688,20 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } }, "parameters": [ { "name": "child", "type": { - "type": "| (FormControlHost & ElementWithParentFormGroup)\n | (FormControlHost & HTMLElement)\n | (HTMLElement & ElementWithParentFormGroup)" + "text": "| (FormControlHost & ElementWithParentFormGroup)\n | (FormControlHost & HTMLElement)\n | (HTMLElement & ElementWithParentFormGroup)" } }, { "name": "indexToInsertAt", "type": { - "type": "number" + "text": "number" } } ] @@ -8270,14 +8712,14 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } }, "parameters": [ { "name": "child", "type": { - "type": "FormRegisteringHost" + "text": "FormRegisteringHost" } } ] @@ -8288,14 +8730,14 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } }, "parameters": [ { "name": "e", "type": { - "type": "CustomEvent" + "text": "CustomEvent" } } ] @@ -8306,14 +8748,14 @@ "privacy": "public", "return": { "type": { - "type": "boolean" + "text": "boolean" } }, "parameters": [ { "name": "el", "type": { - "type": "FormControlHost" + "text": "FormControlHost" } } ] @@ -8323,7 +8765,7 @@ "name": "registrationComplete", "privacy": "public", "type": { - "type": "Promise" + "text": "Promise" } } ] @@ -8333,14 +8775,14 @@ "name": "FormRegistrarImplementation", "return": { "type": { - "type": "T &\n Constructor &\n typeof FormRegistrarHost &\n Constructor &\n typeof FormRegisteringHost" + "text": "T &\n Constructor &\n typeof FormRegistrarHost &\n Constructor &\n typeof FormRegisteringHost" } }, "parameters": [ { "name": "superclass", "type": { - "type": "T" + "text": "T" } } ] @@ -8386,7 +8828,7 @@ "name": "registrationTarget", "privacy": "public", "type": { - "type": "HTMLElement" + "text": "HTMLElement" } }, { @@ -8395,14 +8837,14 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } }, "parameters": [ { "name": "ev", "type": { - "type": "CustomEvent" + "text": "CustomEvent" } } ] @@ -8414,14 +8856,14 @@ "name": "FormRegistrarPortalImplementation", "return": { "type": { - "type": "T & Constructor & FormRegistrarPortalHost" + "text": "T & Constructor & FormRegistrarPortalHost" } }, "parameters": [ { "name": "superclass", "type": { - "type": "T" + "text": "T" } } ] @@ -8461,26 +8903,26 @@ "static": true, "return": { "type": { - "type": "boolean" + "text": "boolean" } }, "parameters": [ { "name": "name", "type": { - "type": "string" + "text": "string" } }, { "name": "newValue", "type": { - "type": "any" + "text": "any" } }, { "name": "oldValue", "type": { - "type": "any" + "text": "any" } } ] @@ -8491,20 +8933,20 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } }, "parameters": [ { "name": "name", "type": { - "type": "string" + "text": "string" } }, { "name": "oldValue", "type": { - "type": "any" + "text": "any" } } ] @@ -8515,7 +8957,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -8524,7 +8966,7 @@ "name": "__SyncUpdatableNamespace", "privacy": "public", "type": { - "type": "SyncUpdatableNamespace" + "text": "SyncUpdatableNamespace" } }, { @@ -8533,14 +8975,14 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } }, "parameters": [ { "name": "changedProperties", "type": { - "type": "PropertyValues" + "text": "PropertyValues" } } ] @@ -8551,7 +8993,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } } @@ -8562,14 +9004,14 @@ "name": "SyncUpdatableImplementation", "return": { "type": { - "type": "T & Constructor & typeof SyncUpdatableHost" + "text": "T & Constructor & typeof SyncUpdatableHost" } }, "parameters": [ { "name": "superclass", "type": { - "type": "T" + "text": "T" } } ] @@ -8607,7 +9049,7 @@ "name": "validators", "privacy": "public", "type": { - "type": "Validator[]" + "text": "Validator[]" } }, { @@ -8615,7 +9057,7 @@ "name": "hasFeedbackFor", "privacy": "public", "type": { - "type": "string[]" + "text": "string[]" } }, { @@ -8623,7 +9065,7 @@ "name": "shouldShowFeedbackFor", "privacy": "public", "type": { - "type": "string[]" + "text": "string[]" } }, { @@ -8631,7 +9073,7 @@ "name": "showsFeedbackFor", "privacy": "public", "type": { - "type": "string[]" + "text": "string[]" } }, { @@ -8639,7 +9081,7 @@ "name": "validationStates", "privacy": "public", "type": { - "type": "{ [key: string]: { [key: string]: Object } }" + "text": "{ [key: string]: { [key: string]: Object } }" } }, { @@ -8647,7 +9089,7 @@ "name": "isPending", "privacy": "public", "type": { - "type": "boolean" + "text": "boolean" } }, { @@ -8655,7 +9097,7 @@ "name": "defaultValidators", "privacy": "public", "type": { - "type": "Validator[]" + "text": "Validator[]" } }, { @@ -8663,7 +9105,7 @@ "name": "_visibleMessagesAmount", "privacy": "public", "type": { - "type": "number" + "text": "number" } }, { @@ -8671,7 +9113,7 @@ "name": "fieldName", "privacy": "public", "type": { - "type": "string" + "text": "string" } }, { @@ -8680,7 +9122,7 @@ "static": true, "privacy": "public", "type": { - "type": "string[]" + "text": "string[]" } }, { @@ -8688,7 +9130,7 @@ "name": "slots", "privacy": "public", "type": { - "type": "SlotsMap" + "text": "SlotsMap" } }, { @@ -8696,7 +9138,7 @@ "name": "_feedbackNode", "privacy": "public", "type": { - "type": "LionValidationFeedback" + "text": "LionValidationFeedback" } }, { @@ -8704,7 +9146,7 @@ "name": "_allValidators", "privacy": "public", "type": { - "type": "Validator[]" + "text": "Validator[]" } }, { @@ -8712,7 +9154,7 @@ "name": "__syncValidationResult", "privacy": "public", "type": { - "type": "Validator[]" + "text": "Validator[]" } }, { @@ -8720,7 +9162,7 @@ "name": "__asyncValidationResult", "privacy": "public", "type": { - "type": "Validator[]" + "text": "Validator[]" } }, { @@ -8728,7 +9170,7 @@ "name": "__validationResult", "privacy": "public", "type": { - "type": "Validator[]" + "text": "Validator[]" } }, { @@ -8736,7 +9178,7 @@ "name": "__prevValidationResult", "privacy": "public", "type": { - "type": "Validator[]" + "text": "Validator[]" } }, { @@ -8745,7 +9187,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -8755,7 +9197,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -8765,14 +9207,14 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } }, "parameters": [ { "name": "changedProperties", "type": { - "type": "import('@lion/core').PropertyValues" + "text": "import('@lion/core').PropertyValues" } } ] @@ -8783,20 +9225,20 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } }, "parameters": [ { "name": "name", "type": { - "type": "string" + "text": "string" } }, { "name": "oldValue", "type": { - "type": "unknown" + "text": "unknown" } } ] @@ -8807,14 +9249,14 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } }, "parameters": [ { "name": "changedProperties", "type": { - "type": "import('@lion/core').PropertyValues" + "text": "import('@lion/core').PropertyValues" } } ] @@ -8825,14 +9267,14 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } }, "parameters": [ { "name": "opts", "type": { - "type": "{ clearCurrentResult?: boolean }" + "text": "{ clearCurrentResult?: boolean }" } } ] @@ -8843,7 +9285,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -8853,7 +9295,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -8862,7 +9304,7 @@ "name": "validateComplete", "privacy": "public", "type": { - "type": "Promise" + "text": "Promise" } }, { @@ -8870,7 +9312,7 @@ "name": "feedbackComplete", "privacy": "public", "type": { - "type": "Promise" + "text": "Promise" } }, { @@ -8879,7 +9321,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -8889,26 +9331,26 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } }, "parameters": [ { "name": "syncValidators", "type": { - "type": "Validator[]" + "text": "Validator[]" } }, { "name": "value", "type": { - "type": "unknown" + "text": "unknown" } }, { "name": "opts", "type": { - "type": "{ hasAsync: boolean }" + "text": "{ hasAsync: boolean }" } } ] @@ -8919,20 +9361,20 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } }, "parameters": [ { "name": "asyncValidators", "type": { - "type": "Validator[]" + "text": "Validator[]" } }, { "name": "value", "type": { - "type": "unknown" + "text": "unknown" } } ] @@ -8943,14 +9385,14 @@ "privacy": "public", "return": { "type": { - "type": "Validator[]" + "text": "Validator[]" } }, "parameters": [ { "name": "regularValidationResult", "type": { - "type": "Validator[]" + "text": "Validator[]" } } ] @@ -8961,14 +9403,14 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } }, "parameters": [ { "name": "options", "type": { - "type": "{ source: 'sync' | 'async'; hasAsync?: boolean }" + "text": "{ source: 'sync' | 'async'; hasAsync?: boolean }" } } ] @@ -8979,7 +9421,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -8989,14 +9431,14 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } }, "parameters": [ { "name": "e", "type": { - "type": "Event | CustomEvent" + "text": "Event | CustomEvent" } } ] @@ -9007,7 +9449,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -9017,14 +9459,14 @@ "privacy": "public", "return": { "type": { - "type": "boolean" + "text": "boolean" } }, "parameters": [ { "name": "v", "type": { - "type": "unknown" + "text": "unknown" } } ] @@ -9035,14 +9477,14 @@ "privacy": "public", "return": { "type": { - "type": "Promise" + "text": "Promise" } }, "parameters": [ { "name": "validators", "type": { - "type": "Validator[]" + "text": "Validator[]" } } ] @@ -9053,7 +9495,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -9063,14 +9505,14 @@ "privacy": "public", "return": { "type": { - "type": "boolean" + "text": "boolean" } }, "parameters": [ { "name": "type", "type": { - "type": "string" + "text": "string" } } ] @@ -9081,14 +9523,14 @@ "privacy": "public", "return": { "type": { - "type": "boolean" + "text": "boolean" } }, "parameters": [ { "name": "type", "type": { - "type": "string" + "text": "string" } } ] @@ -9099,7 +9541,7 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -9109,14 +9551,14 @@ "privacy": "public", "return": { "type": { - "type": "Validator[]" + "text": "Validator[]" } }, "parameters": [ { "name": "opts", "type": { - "type": "{ validationResult: Validator[] }" + "text": "{ validationResult: Validator[] }" } } ] @@ -9128,14 +9570,14 @@ "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" + "text": "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" + "text": "T" } } ] @@ -9178,26 +9620,26 @@ "privacy": "public", "return": { "type": { - "type": "boolean" + "text": "boolean" } }, "parameters": [ { "name": "context", "type": { - "type": "Object" + "text": "Object" } }, { "name": "context.regularValidationResult", "type": { - "type": "Validator[]" + "text": "Validator[]" } }, { "name": "context.prevValidationResult", "type": { - "type": "Validator[]" + "text": "Validator[]" } } ] @@ -9242,7 +9684,7 @@ { "name": "value", "type": { - "type": "?" + "text": "?" } } ] @@ -9271,7 +9713,7 @@ { "name": "value", "type": { - "type": "?" + "text": "?" } }, { @@ -9304,7 +9746,7 @@ { "name": "value", "type": { - "type": "?" + "text": "?" } }, { @@ -9337,7 +9779,7 @@ { "name": "value", "type": { - "type": "?" + "text": "?" } } ] @@ -9366,7 +9808,7 @@ { "name": "value", "type": { - "type": "?" + "text": "?" } }, { @@ -9447,7 +9889,7 @@ { "name": "value", "type": { - "type": "?" + "text": "?" } } ] @@ -9476,7 +9918,7 @@ { "name": "value", "type": { - "type": "?" + "text": "?" } }, { @@ -9509,7 +9951,7 @@ { "name": "value", "type": { - "type": "?" + "text": "?" } }, { @@ -9542,7 +9984,7 @@ { "name": "value", "type": { - "type": "?" + "text": "?" } } ] @@ -9611,7 +10053,7 @@ { "name": "formControl", "type": { - "type": "FormControlHost & HTMLElement" + "text": "FormControlHost & HTMLElement" } } ] @@ -9624,7 +10066,7 @@ { "name": "formControl", "type": { - "type": "FormControlHost & HTMLElement" + "text": "FormControlHost & HTMLElement" } } ] @@ -9669,7 +10111,7 @@ { "name": "value", "type": { - "type": "?" + "text": "?" } } ] @@ -9698,7 +10140,7 @@ { "name": "value", "type": { - "type": "?" + "text": "?" } }, { @@ -9731,7 +10173,7 @@ { "name": "value", "type": { - "type": "?" + "text": "?" } }, { @@ -9764,7 +10206,7 @@ { "name": "value", "type": { - "type": "?" + "text": "?" } }, { @@ -9797,7 +10239,7 @@ { "name": "value", "type": { - "type": "?" + "text": "?" } } ] @@ -9826,7 +10268,7 @@ { "name": "value", "type": { - "type": "?" + "text": "?" } } ] @@ -9855,7 +10297,7 @@ { "name": "value", "type": { - "type": "?" + "text": "?" } }, { @@ -9951,4 +10393,4 @@ "exports": [] } ] -} +} \ No newline at end of file diff --git a/packages/form-core/package.json b/packages/form-core/package.json index 25eb6b4ac..cf32affa6 100644 --- a/packages/form-core/package.json +++ b/packages/form-core/package.json @@ -54,4 +54,4 @@ "./lion-validation-feedback": "./lion-validation-feedback.js" }, "customElementsManifest": "custom-elements.json" -} +} \ No newline at end of file diff --git a/packages/form-integrations/custom-elements.json b/packages/form-integrations/custom-elements.json index ff2b023d6..68af5acf3 100644 --- a/packages/form-integrations/custom-elements.json +++ b/packages/form-integrations/custom-elements.json @@ -1,5 +1,5 @@ { - "schemaVersion": "experimental", + "schemaVersion": "0.1.0", "readme": "", "modules": [ { @@ -179,4 +179,4 @@ "exports": [] } ] -} +} \ No newline at end of file diff --git a/packages/form-integrations/package.json b/packages/form-integrations/package.json index 0d7d7e5e1..2d919d5cd 100644 --- a/packages/form-integrations/package.json +++ b/packages/form-integrations/package.json @@ -68,4 +68,4 @@ }, "exports": "./index.js", "customElementsManifest": "custom-elements.json" -} +} \ No newline at end of file diff --git a/packages/form/custom-elements.json b/packages/form/custom-elements.json index de50b4bec..0216b17d8 100644 --- a/packages/form/custom-elements.json +++ b/packages/form/custom-elements.json @@ -1,5 +1,5 @@ { - "schemaVersion": "experimental", + "schemaVersion": "0.1.0", "readme": "", "modules": [ { @@ -43,13 +43,13 @@ { "name": "submit", "type": { - "type": "Event" + "text": "Event" } }, { "name": "reset", "type": { - "type": "Event" + "text": "Event" } } ], @@ -86,7 +86,7 @@ { "name": "ev", "type": { - "type": "Event" + "text": "Event" } } ] @@ -104,7 +104,7 @@ { "name": "ev", "type": { - "type": "Event" + "text": "Event" } } ] @@ -135,4 +135,4 @@ ] } ] -} +} \ No newline at end of file diff --git a/packages/form/package.json b/packages/form/package.json index 209a68073..23111285d 100644 --- a/packages/form/package.json +++ b/packages/form/package.json @@ -49,4 +49,4 @@ "./lion-form": "./lion-form.js" }, "customElementsManifest": "custom-elements.json" -} +} \ No newline at end of file diff --git a/packages/helpers/custom-elements.json b/packages/helpers/custom-elements.json index 23546878a..d5afbdbaf 100644 --- a/packages/helpers/custom-elements.json +++ b/packages/helpers/custom-elements.json @@ -1,5 +1,5 @@ { - "schemaVersion": "experimental", + "schemaVersion": "0.1.0", "readme": "", "modules": [ { @@ -150,7 +150,7 @@ { "name": "content", "type": { - "type": "string" + "text": "string" }, "description": "Content to be logged to the action logger" } @@ -163,14 +163,14 @@ "description": "Protected getter that returns the template of a single log", "return": { "type": { - "type": "TemplateResult" + "text": "TemplateResult" } }, "parameters": [ { "name": "content", "type": { - "type": "string" + "text": "string" } } ] @@ -183,7 +183,7 @@ { "name": "content", "type": { - "type": "string" + "text": "string" } } ] @@ -196,7 +196,7 @@ { "name": "content", "type": { - "type": "string" + "text": "string" } } ] @@ -268,7 +268,7 @@ { "name": "locale", "type": { - "type": "string" + "text": "string" } } ] @@ -300,7 +300,7 @@ { "name": "orderPerDepth", "type": { - "type": "Array.<[]>" + "text": "Array.<[]>" }, "description": "array of arrays giving the order of each level" } @@ -319,4 +319,4 @@ ] } ] -} +} \ No newline at end of file diff --git a/packages/helpers/package.json b/packages/helpers/package.json index b412e9fb7..d4baa298c 100644 --- a/packages/helpers/package.json +++ b/packages/helpers/package.json @@ -50,4 +50,4 @@ "./sb-locale-switcher": "./sb-locale-switcher.js" }, "customElementsManifest": "custom-elements.json" -} +} \ No newline at end of file diff --git a/packages/icon/custom-elements.json b/packages/icon/custom-elements.json index e4f09901e..8f0e6cee8 100644 --- a/packages/icon/custom-elements.json +++ b/packages/icon/custom-elements.json @@ -1,5 +1,5 @@ { - "schemaVersion": "experimental", + "schemaVersion": "0.1.0", "readme": "", "modules": [ { @@ -15,6 +15,14 @@ "module": "./src/LionIcon.js" } }, + { + "kind": "js", + "name": "IconManager", + "declaration": { + "name": "IconManager", + "module": "./src/IconManager.js" + } + }, { "kind": "js", "name": "icons", @@ -65,13 +73,13 @@ { "name": "namespace", "type": { - "type": "string" + "text": "string" } }, { "name": "iconResolver", "type": { - "type": "(iconset: string, icon: string) => TemplateResult | Promise | nothing | Promise " + "text": "(iconset: string, icon: string) => TemplateResult | Promise | nothing | Promise " } } ] @@ -85,7 +93,7 @@ { "name": "namespace", "type": { - "type": "string" + "text": "string" } } ] @@ -97,26 +105,26 @@ "description": "Resolves icon for the given parameters. Returns the icon as a svg string.", "return": { "type": { - "type": "Promise" + "text": "Promise" } }, "parameters": [ { "name": "namespace", "type": { - "type": "string" + "text": "string" } }, { "name": "iconset", "type": { - "type": "string" + "text": "string" } }, { "name": "icon", "type": { - "type": "string" + "text": "string" } } ] @@ -128,14 +136,14 @@ "description": "Resolves icon for the given icon id. Returns the icon as a svg string.", "return": { "type": { - "type": "Promise" + "text": "Promise" } }, "parameters": [ { "name": "iconId", "type": { - "type": "string" + "text": "string" } } ] @@ -202,7 +210,7 @@ { "name": "svgObject", "type": { - "type": "TemplateResult | nothing" + "text": "TemplateResult | nothing" } } ] @@ -220,7 +228,7 @@ { "name": "prevIconId", "type": { - "type": "string" + "text": "string" } } ] @@ -883,4 +891,4 @@ ] } ] -} +} \ No newline at end of file diff --git a/packages/icon/package.json b/packages/icon/package.json index 7741da771..74d786ac3 100644 --- a/packages/icon/package.json +++ b/packages/icon/package.json @@ -51,4 +51,4 @@ "./lion-icon": "./lion-icon.js" }, "customElementsManifest": "custom-elements.json" -} +} \ No newline at end of file diff --git a/packages/input-amount/custom-elements.json b/packages/input-amount/custom-elements.json index e6979e01a..dde717bd6 100644 --- a/packages/input-amount/custom-elements.json +++ b/packages/input-amount/custom-elements.json @@ -1,5 +1,5 @@ { - "schemaVersion": "experimental", + "schemaVersion": "0.1.0", "readme": "", "modules": [ { @@ -81,7 +81,7 @@ "name": "currency", "privacy": "public", "type": { - "type": "string | undefined" + "text": "string | undefined" }, "default": "undefined" }, @@ -113,7 +113,7 @@ { "name": "changedProperties", "type": { - "type": "PropertyValues " + "text": "PropertyValues " } } ] @@ -142,13 +142,13 @@ { "name": "opts", "type": { - "type": "Object" + "text": "Object" } }, { "name": "opts.currency", "type": { - "type": "string" + "text": "string" } } ] @@ -190,14 +190,14 @@ { "name": "modelValue", "type": { - "type": "number" + "text": "number" }, "description": "Number to format" }, { "name": "givenOptions", "type": { - "type": "FormatOptions" + "text": "FormatOptions" }, "optional": true } @@ -210,13 +210,13 @@ { "name": "currency", "type": { - "type": "string" + "text": "string" } }, { "name": "locale", "type": { - "type": "string" + "text": "string" } } ] @@ -253,14 +253,14 @@ { "name": "value", "type": { - "type": "string" + "text": "string" }, "description": "Number to be parsed" }, { "name": "options", "type": { - "type": "object" + "text": "object" }, "description": "Locale Options", "optional": true @@ -280,4 +280,4 @@ ] } ] -} +} \ No newline at end of file diff --git a/packages/input-amount/package.json b/packages/input-amount/package.json index 7ea9425f3..a4625660f 100644 --- a/packages/input-amount/package.json +++ b/packages/input-amount/package.json @@ -53,4 +53,4 @@ "./lion-input-amount": "./lion-input-amount.js" }, "customElementsManifest": "custom-elements.json" -} +} \ No newline at end of file diff --git a/packages/input-date/custom-elements.json b/packages/input-date/custom-elements.json index 455eb7c32..83abd6311 100644 --- a/packages/input-date/custom-elements.json +++ b/packages/input-date/custom-elements.json @@ -1,5 +1,5 @@ { - "schemaVersion": "experimental", + "schemaVersion": "0.1.0", "readme": "", "modules": [ { @@ -69,7 +69,7 @@ { "name": "changedProperties", "type": { - "type": "PropertyValues " + "text": "PropertyValues " } } ] @@ -87,7 +87,7 @@ { "name": "modelValue", "type": { - "type": "Date" + "text": "Date" } } ] @@ -100,7 +100,7 @@ { "name": "serializedValue", "type": { - "type": "string" + "text": "string" } } ] @@ -121,4 +121,4 @@ ] } ] -} +} \ No newline at end of file diff --git a/packages/input-date/package.json b/packages/input-date/package.json index 436869a74..316ea13b2 100644 --- a/packages/input-date/package.json +++ b/packages/input-date/package.json @@ -53,4 +53,4 @@ "./lion-input-date": "./lion-input-date.js" }, "customElementsManifest": "custom-elements.json" -} +} \ No newline at end of file diff --git a/packages/input-datepicker/custom-elements.json b/packages/input-datepicker/custom-elements.json index e3ae4d3ee..39e305ed3 100644 --- a/packages/input-datepicker/custom-elements.json +++ b/packages/input-datepicker/custom-elements.json @@ -1,5 +1,5 @@ { - "schemaVersion": "experimental", + "schemaVersion": "0.1.0", "readme": "", "modules": [ { @@ -58,7 +58,7 @@ { "name": "close-overlay", "type": { - "type": "Event" + "text": "Event" } } ], @@ -191,13 +191,13 @@ { "name": "name", "type": { - "type": "PropertyKey" + "text": "PropertyKey" } }, { "name": "oldValue", "type": { - "type": "?" + "text": "?" } } ] @@ -215,7 +215,7 @@ { "name": "changedProperties", "type": { - "type": "PropertyValues " + "text": "PropertyValues " } } ] @@ -228,7 +228,7 @@ { "name": "changedProperties", "type": { - "type": "PropertyValues " + "text": "PropertyValues " } } ] @@ -267,7 +267,7 @@ "privacy": "public", "return": { "type": { - "type": "Object" + "text": "Object" } } }, @@ -290,7 +290,7 @@ { "name": "opts", "type": { - "type": "{ target: { selectedDate: Date }}" + "text": "{ target: { selectedDate: Date }}" } } ] @@ -303,14 +303,14 @@ "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" + "text": "Date|undefined" } }, "parameters": [ { "name": "modelValue", "type": { - "type": "?" + "text": "?" } } ] @@ -324,7 +324,7 @@ { "name": "validators", "type": { - "type": "Validator[]" + "text": "Validator[]" }, "description": "errorValidators or warningValidators array" } @@ -403,7 +403,7 @@ { "name": "day", "type": { - "type": "number" + "text": "number" } } ] @@ -920,4 +920,4 @@ ] } ] -} +} \ No newline at end of file diff --git a/packages/input-datepicker/package.json b/packages/input-datepicker/package.json index 40db79060..e0e65064d 100644 --- a/packages/input-datepicker/package.json +++ b/packages/input-datepicker/package.json @@ -59,4 +59,4 @@ "./lion-input-datepicker": "./lion-input-datepicker.js" }, "customElementsManifest": "custom-elements.json" -} +} \ No newline at end of file diff --git a/packages/input-email/custom-elements.json b/packages/input-email/custom-elements.json index 96d8272fd..0f2ac909c 100644 --- a/packages/input-email/custom-elements.json +++ b/packages/input-email/custom-elements.json @@ -1,5 +1,5 @@ { - "schemaVersion": "experimental", + "schemaVersion": "0.1.0", "readme": "", "modules": [ { @@ -64,4 +64,4 @@ ] } ] -} +} \ No newline at end of file diff --git a/packages/input-email/package.json b/packages/input-email/package.json index 161c24ba3..c2323e6cc 100644 --- a/packages/input-email/package.json +++ b/packages/input-email/package.json @@ -53,4 +53,4 @@ "./lion-input-email": "./lion-input-email.js" }, "customElementsManifest": "custom-elements.json" -} +} \ No newline at end of file diff --git a/packages/input-iban/custom-elements.json b/packages/input-iban/custom-elements.json index 83a22910c..0aa684954 100644 --- a/packages/input-iban/custom-elements.json +++ b/packages/input-iban/custom-elements.json @@ -1,5 +1,5 @@ { - "schemaVersion": "experimental", + "schemaVersion": "0.1.0", "readme": "", "modules": [ { @@ -113,14 +113,14 @@ "description": "Takes an unformatted IBAN and returns a formatted one.", "return": { "type": { - "type": "string" + "text": "string" } }, "parameters": [ { "name": "modelValue", "type": { - "type": "string" + "text": "string" }, "description": "value to be formatted" } @@ -148,14 +148,14 @@ "description": "Parses an IBAN trimming spaces and making uppercase.", "return": { "type": { - "type": "string|undefined" + "text": "string|undefined" } }, "parameters": [ { "name": "viewValue", "type": { - "type": "string" + "text": "string" }, "description": "value to be parsed" } @@ -199,7 +199,7 @@ { "name": "value", "type": { - "type": "string" + "text": "string" } } ] @@ -211,56 +211,56 @@ "static": true, "return": { "type": { - "type": "Promise" + "text": "Promise" } }, "parameters": [ { "name": "data", "type": { - "type": "object" + "text": "object" }, "optional": true }, { "name": "data.modelValue", "type": { - "type": "*" + "text": "*" }, "optional": true }, { "name": "data.fieldName", "type": { - "type": "string" + "text": "string" }, "optional": true }, { "name": "data.params", "type": { - "type": "*" + "text": "*" }, "optional": true }, { "name": "data.type", "type": { - "type": "string" + "text": "string" }, "optional": true }, { "name": "data.config", "type": { - "type": "Object." + "text": "Object." }, "optional": true }, { "name": "data.name", "type": { - "type": "string" + "text": "string" }, "optional": true } @@ -288,14 +288,14 @@ "privacy": "public", "return": { "type": { - "type": "Boolean" + "text": "Boolean" } }, "parameters": [ { "name": "value", "type": { - "type": "string" + "text": "string" } } ] @@ -307,56 +307,56 @@ "static": true, "return": { "type": { - "type": "Promise" + "text": "Promise" } }, "parameters": [ { "name": "data", "type": { - "type": "object" + "text": "object" }, "optional": true }, { "name": "data.modelValue", "type": { - "type": "*" + "text": "*" }, "optional": true }, { "name": "data.fieldName", "type": { - "type": "string" + "text": "string" }, "optional": true }, { "name": "data.params", "type": { - "type": "*" + "text": "*" }, "optional": true }, { "name": "data.type", "type": { - "type": "string" + "text": "string" }, "optional": true }, { "name": "data.config", "type": { - "type": "Object." + "text": "Object." }, "optional": true }, { "name": "data.name", "type": { - "type": "string" + "text": "string" }, "optional": true } @@ -384,14 +384,14 @@ "privacy": "public", "return": { "type": { - "type": "Boolean" + "text": "Boolean" } }, "parameters": [ { "name": "value", "type": { - "type": "string" + "text": "string" } } ] @@ -403,56 +403,56 @@ "static": true, "return": { "type": { - "type": "Promise" + "text": "Promise" } }, "parameters": [ { "name": "data", "type": { - "type": "object" + "text": "object" }, "optional": true }, { "name": "data.modelValue", "type": { - "type": "*" + "text": "*" }, "optional": true }, { "name": "data.fieldName", "type": { - "type": "string" + "text": "string" }, "optional": true }, { "name": "data.params", "type": { - "type": "*" + "text": "*" }, "optional": true }, { "name": "data.type", "type": { - "type": "string" + "text": "string" }, "optional": true }, { "name": "data.config", "type": { - "type": "Object." + "text": "Object." }, "optional": true }, { "name": "data.name", "type": { - "type": "string" + "text": "string" }, "optional": true } @@ -951,4 +951,4 @@ ] } ] -} +} \ No newline at end of file diff --git a/packages/input-iban/package.json b/packages/input-iban/package.json index bb240d5d1..d8fb75bd7 100644 --- a/packages/input-iban/package.json +++ b/packages/input-iban/package.json @@ -54,4 +54,4 @@ "./lion-input-iban": "./lion-input-iban.js" }, "customElementsManifest": "custom-elements.json" -} +} \ No newline at end of file diff --git a/packages/input-range/custom-elements.json b/packages/input-range/custom-elements.json index 48a235f3b..4a9e627a9 100644 --- a/packages/input-range/custom-elements.json +++ b/packages/input-range/custom-elements.json @@ -1,5 +1,5 @@ { - "schemaVersion": "experimental", + "schemaVersion": "0.1.0", "readme": "", "modules": [ { @@ -105,7 +105,7 @@ { "name": "scope", "type": { - "type": "CSSResult" + "text": "CSSResult" } } ] @@ -133,7 +133,7 @@ { "name": "changedProperties", "type": { - "type": "PropertyValues " + "text": "PropertyValues " } } ] @@ -146,7 +146,7 @@ { "name": "changedProperties", "type": { - "type": "PropertyValues " + "text": "PropertyValues " } } ] @@ -187,4 +187,4 @@ ] } ] -} +} \ No newline at end of file diff --git a/packages/input-range/package.json b/packages/input-range/package.json index f3ed7f4cb..ebedebed7 100644 --- a/packages/input-range/package.json +++ b/packages/input-range/package.json @@ -52,4 +52,4 @@ "./lion-input-range": "./lion-input-range.js" }, "customElementsManifest": "custom-elements.json" -} +} \ No newline at end of file diff --git a/packages/input-stepper/custom-elements.json b/packages/input-stepper/custom-elements.json index 99047a6c2..02651d4b4 100644 --- a/packages/input-stepper/custom-elements.json +++ b/packages/input-stepper/custom-elements.json @@ -1,5 +1,5 @@ { - "schemaVersion": "experimental", + "schemaVersion": "0.1.0", "readme": "", "modules": [ { @@ -43,7 +43,7 @@ { "name": "user-input-changed", "type": { - "type": "CustomEvent" + "text": "CustomEvent" } } ], @@ -112,7 +112,7 @@ { "name": "changedProperties", "type": { - "type": "PropertyValues " + "text": "PropertyValues " } } ] @@ -137,7 +137,7 @@ { "name": "e", "type": { - "type": "KeyboardEvent" + "text": "KeyboardEvent" }, "description": "keyboard event" } @@ -156,14 +156,14 @@ "description": "Get slotted element", "return": { "type": { - "type": "HTMLButtonElement|Object" + "text": "HTMLButtonElement|Object" } }, "parameters": [ { "name": "slotName", "type": { - "type": "String" + "text": "String" }, "description": "slot name" } @@ -188,7 +188,7 @@ "description": "Get the increment button node", "return": { "type": { - "type": "Element|null" + "text": "Element|null" } } }, @@ -199,7 +199,7 @@ "description": "Get the decrement button node", "return": { "type": { - "type": "Element|null" + "text": "Element|null" } } }, @@ -216,7 +216,7 @@ "description": "Get the decrementor button sign template", "return": { "type": { - "type": "String|TemplateResult" + "text": "String|TemplateResult" } } }, @@ -227,7 +227,7 @@ "description": "Get the incrementor button sign template", "return": { "type": { - "type": "String|TemplateResult" + "text": "String|TemplateResult" } } }, @@ -238,7 +238,7 @@ "description": "Get the increment button template", "return": { "type": { - "type": "TemplateResult" + "text": "TemplateResult" } } }, @@ -249,7 +249,7 @@ "description": "Get the decrement button template", "return": { "type": { - "type": "TemplateResult" + "text": "TemplateResult" } } } @@ -269,4 +269,4 @@ ] } ] -} +} \ No newline at end of file diff --git a/packages/input-stepper/package.json b/packages/input-stepper/package.json index 7ffe69abd..bc75cce69 100644 --- a/packages/input-stepper/package.json +++ b/packages/input-stepper/package.json @@ -52,4 +52,4 @@ "./lion-input-stepper": "./lion-input-stepper.js" }, "customElementsManifest": "custom-elements.json" -} +} \ No newline at end of file diff --git a/packages/input/custom-elements.json b/packages/input/custom-elements.json index d56d7f59a..366dce913 100644 --- a/packages/input/custom-elements.json +++ b/packages/input/custom-elements.json @@ -1,5 +1,5 @@ { - "schemaVersion": "experimental", + "schemaVersion": "0.1.0", "readme": "", "modules": [ { @@ -42,7 +42,7 @@ "mixins": [ { "name": "NativeTextFieldMixin", - "package": "@lion/form-core/src/NativeTextFieldMixin" + "package": "@lion/form-core" } ], "superclass": { @@ -100,13 +100,13 @@ { "name": "name", "type": { - "type": "PropertyKey" + "text": "PropertyKey" } }, { "name": "oldValue", "type": { - "type": "?" + "text": "?" } } ] @@ -119,7 +119,7 @@ { "name": "changedProperties", "type": { - "type": "PropertyValues " + "text": "PropertyValues " } } ] @@ -132,7 +132,7 @@ { "name": "changedProperties", "type": { - "type": "PropertyValues " + "text": "PropertyValues " } } ] @@ -158,4 +158,4 @@ ] } ] -} +} \ No newline at end of file diff --git a/packages/input/package.json b/packages/input/package.json index 46ee9a7b4..96fd361a6 100644 --- a/packages/input/package.json +++ b/packages/input/package.json @@ -49,4 +49,4 @@ "./lion-input": "./lion-input.js" }, "customElementsManifest": "custom-elements.json" -} +} \ No newline at end of file diff --git a/packages/listbox/custom-elements.json b/packages/listbox/custom-elements.json index f52eb161d..95627f93a 100644 --- a/packages/listbox/custom-elements.json +++ b/packages/listbox/custom-elements.json @@ -1,5 +1,5 @@ { - "schemaVersion": "experimental", + "schemaVersion": "0.1.0", "readme": "", "modules": [ { @@ -265,6 +265,9 @@ "kind": "field", "name": "_listboxActiveDescendantNode", "privacy": "public", + "type": { + "text": "HTMLElement" + }, "inheritedFrom": { "name": "ListboxMixin", "module": "./src/ListboxMixin.js" @@ -274,6 +277,9 @@ "kind": "field", "name": "_listboxSlot", "privacy": "public", + "type": { + "text": "HTMLElement" + }, "inheritedFrom": { "name": "ListboxMixin", "module": "./src/ListboxMixin.js" @@ -283,6 +289,9 @@ "kind": "field", "name": "_scrollTargetNode", "privacy": "public", + "type": { + "text": "HTMLElement" + }, "inheritedFrom": { "name": "ListboxMixin", "module": "./src/ListboxMixin.js" @@ -292,6 +301,9 @@ "kind": "field", "name": "_activeDescendantOwnerNode", "privacy": "public", + "type": { + "text": "HTMLElement" + }, "inheritedFrom": { "name": "ListboxMixin", "module": "./src/ListboxMixin.js" @@ -319,6 +331,9 @@ "kind": "field", "name": "checkedIndex", "privacy": "public", + "type": { + "text": "number | number[]" + }, "inheritedFrom": { "name": "ListboxMixin", "module": "./src/ListboxMixin.js" @@ -341,7 +356,7 @@ { "name": "changedProperties", "type": { - "type": "PropertyValues " + "text": "PropertyValues " } } ], @@ -358,7 +373,7 @@ { "name": "changedProperties", "type": { - "type": "PropertyValues " + "text": "PropertyValues " } } ], @@ -385,7 +400,7 @@ { "name": "index", "type": { - "type": "number|number[]" + "text": "number|number[]" } } ], @@ -402,13 +417,13 @@ { "name": "child", "type": { - "type": "LionOption" + "text": "LionOption" } }, { "name": "indexToInsertAt", "type": { - "type": "Number" + "text": "Number" } } ], @@ -470,13 +485,13 @@ { "name": "currentIndex", "type": { - "type": "number" + "text": "number" } }, { "name": "offset", "type": { - "type": "number" + "text": "number" }, "optional": true, "default": "1" @@ -495,13 +510,13 @@ { "name": "currentIndex", "type": { - "type": "number" + "text": "number" } }, { "name": "offset", "type": { - "type": "number" + "text": "number" }, "optional": true, "default": "-1" @@ -520,7 +535,7 @@ { "name": "ev", "type": { - "type": "Event & { target: LionOption }" + "text": "Event & { target: LionOption }" } } ], @@ -537,7 +552,7 @@ { "name": "ev", "type": { - "type": "KeyboardEvent" + "text": "KeyboardEvent" }, "description": "the keydown event object" } @@ -555,7 +570,7 @@ { "name": "ev", "type": { - "type": "MouseEvent" + "text": "MouseEvent" } } ], @@ -572,7 +587,7 @@ { "name": "ev", "type": { - "type": "KeyboardEvent" + "text": "KeyboardEvent" } } ], @@ -616,7 +631,7 @@ { "name": "el", "type": { - "type": "LionOption | null" + "text": "LionOption | null" } } ], @@ -633,7 +648,7 @@ { "name": "exclude", "type": { - "type": "LionOption|LionOption[]" + "text": "LionOption|LionOption[]" }, "optional": true, "default": "[]" @@ -652,7 +667,7 @@ { "name": "cfgOrEvent", "type": { - "type": "Event & { target: LionOption }" + "text": "Event & { target: LionOption }" } } ], @@ -670,13 +685,13 @@ { "name": "attribute", "type": { - "type": "string" + "text": "string" } }, { "name": "value", "type": { - "type": "number" + "text": "number" } } ], @@ -693,7 +708,7 @@ { "name": "ev", "type": { - "type": "CustomEvent & { target: LionOption; }" + "text": "CustomEvent & { target: LionOption; }" } } ], @@ -710,13 +725,13 @@ { "name": "currentIndex", "type": { - "type": "number" + "text": "number" } }, { "name": "offset", "type": { - "type": "number" + "text": "number" } } ], @@ -743,7 +758,7 @@ { "name": "ev", "type": { - "type": "KeyboardEvent" + "text": "KeyboardEvent" } } ], @@ -794,7 +809,7 @@ { "name": "model-value-changed", "type": { - "type": "CustomEvent" + "text": "CustomEvent" }, "inheritedFrom": { "name": "ListboxMixin", @@ -826,7 +841,7 @@ { "name": "active-changed", "type": { - "type": "Event" + "text": "Event" } } ], @@ -874,13 +889,13 @@ { "name": "name", "type": { - "type": "string" + "text": "string" } }, { "name": "oldValue", "type": { - "type": "unknown" + "text": "unknown" } } ] @@ -982,11 +997,20 @@ { "kind": "mixin", "name": "ListboxMixin", + "parameters": [ + { + "name": "superclass", + "type": { + "text": "LitElement>" + }, + "description": "" + } + ], "events": [ { "name": "model-value-changed", "type": { - "type": "CustomEvent" + "text": "CustomEvent" } } ], @@ -1012,10 +1036,6 @@ "package": "@lion/form-core" } ], - "superclass": { - "name": "superclass", - "module": "./src/ListboxMixin.js" - }, "attributes": [ { "name": "orientation", @@ -1092,22 +1112,34 @@ { "kind": "field", "name": "_listboxActiveDescendantNode", - "privacy": "public" + "privacy": "public", + "type": { + "text": "HTMLElement" + } }, { "kind": "field", "name": "_listboxSlot", - "privacy": "public" + "privacy": "public", + "type": { + "text": "HTMLElement" + } }, { "kind": "field", "name": "_scrollTargetNode", - "privacy": "public" + "privacy": "public", + "type": { + "text": "HTMLElement" + } }, { "kind": "field", "name": "_activeDescendantOwnerNode", - "privacy": "public" + "privacy": "public", + "type": { + "text": "HTMLElement" + } }, { "kind": "field", @@ -1122,7 +1154,10 @@ { "kind": "field", "name": "checkedIndex", - "privacy": "public" + "privacy": "public", + "type": { + "text": "number | number[]" + } }, { "kind": "method", @@ -1137,7 +1172,7 @@ { "name": "changedProperties", "type": { - "type": "PropertyValues " + "text": "PropertyValues " } } ] @@ -1150,7 +1185,7 @@ { "name": "changedProperties", "type": { - "type": "PropertyValues " + "text": "PropertyValues " } } ] @@ -1169,7 +1204,7 @@ { "name": "index", "type": { - "type": "number|number[]" + "text": "number|number[]" } } ] @@ -1182,13 +1217,13 @@ { "name": "child", "type": { - "type": "LionOption" + "text": "LionOption" } }, { "name": "indexToInsertAt", "type": { - "type": "Number" + "text": "Number" } } ] @@ -1226,13 +1261,13 @@ { "name": "currentIndex", "type": { - "type": "number" + "text": "number" } }, { "name": "offset", "type": { - "type": "number" + "text": "number" }, "optional": true, "default": "1" @@ -1247,13 +1282,13 @@ { "name": "currentIndex", "type": { - "type": "number" + "text": "number" } }, { "name": "offset", "type": { - "type": "number" + "text": "number" }, "optional": true, "default": "-1" @@ -1268,7 +1303,7 @@ { "name": "ev", "type": { - "type": "Event & { target: LionOption }" + "text": "Event & { target: LionOption }" } } ] @@ -1281,7 +1316,7 @@ { "name": "ev", "type": { - "type": "KeyboardEvent" + "text": "KeyboardEvent" }, "description": "the keydown event object" } @@ -1295,7 +1330,7 @@ { "name": "ev", "type": { - "type": "MouseEvent" + "text": "MouseEvent" } } ] @@ -1308,7 +1343,7 @@ { "name": "ev", "type": { - "type": "KeyboardEvent" + "text": "KeyboardEvent" } } ] @@ -1336,7 +1371,7 @@ { "name": "el", "type": { - "type": "LionOption | null" + "text": "LionOption | null" } } ] @@ -1349,7 +1384,7 @@ { "name": "exclude", "type": { - "type": "LionOption|LionOption[]" + "text": "LionOption|LionOption[]" }, "optional": true, "default": "[]" @@ -1364,7 +1399,7 @@ { "name": "cfgOrEvent", "type": { - "type": "Event & { target: LionOption }" + "text": "Event & { target: LionOption }" } } ] @@ -1378,13 +1413,13 @@ { "name": "attribute", "type": { - "type": "string" + "text": "string" } }, { "name": "value", "type": { - "type": "number" + "text": "number" } } ] @@ -1397,7 +1432,7 @@ { "name": "ev", "type": { - "type": "CustomEvent & { target: LionOption; }" + "text": "CustomEvent & { target: LionOption; }" } } ] @@ -1410,13 +1445,13 @@ { "name": "currentIndex", "type": { - "type": "number" + "text": "number" } }, { "name": "offset", "type": { - "type": "number" + "text": "number" } } ] @@ -1435,7 +1470,7 @@ { "name": "ev", "type": { - "type": "KeyboardEvent" + "text": "KeyboardEvent" } } ] @@ -1462,10 +1497,6 @@ "privacy": "public" } ] - }, - { - "kind": "variable", - "name": "ListboxMixin" } ], "exports": [ @@ -1492,7 +1523,7 @@ "name": "_parentFormGroup", "privacy": "protected", "type": { - "type": "ChoiceGroupHost" + "text": "ChoiceGroupHost" } } ] @@ -1522,7 +1553,7 @@ "name": "selectionFollowsFocus", "privacy": "public", "type": { - "type": "Boolean" + "text": "Boolean" } }, { @@ -1530,7 +1561,7 @@ "name": "rotateKeyboardNavigation", "privacy": "public", "type": { - "type": "Boolean" + "text": "Boolean" } }, { @@ -1538,7 +1569,7 @@ "name": "orientation", "privacy": "public", "type": { - "type": "'vertical' | 'horizontal'" + "text": "'vertical' | 'horizontal'" } }, { @@ -1546,7 +1577,7 @@ "name": "hasNoDefaultSelected", "privacy": "public", "type": { - "type": "boolean" + "text": "boolean" } }, { @@ -1554,7 +1585,7 @@ "name": "singleOption", "privacy": "public", "type": { - "type": "boolean" + "text": "boolean" } }, { @@ -1562,7 +1593,7 @@ "name": "checkedIndex", "privacy": "public", "type": { - "type": "number | number[]" + "text": "number | number[]" } }, { @@ -1570,7 +1601,7 @@ "name": "activeIndex", "privacy": "public", "type": { - "type": "number" + "text": "number" } }, { @@ -1578,7 +1609,7 @@ "name": "formElements", "privacy": "public", "type": { - "type": "LionOption[]" + "text": "LionOption[]" } }, { @@ -1587,14 +1618,14 @@ "privacy": "public", "return": { "type": { - "type": "void" + "text": "void" } }, "parameters": [ { "name": "index", "type": { - "type": "number | number[]" + "text": "number | number[]" } } ] @@ -1606,7 +1637,7 @@ "description": "Reset interaction states and modelValue", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -1615,7 +1646,7 @@ "name": "_scrollTargetNode", "privacy": "protected", "type": { - "type": "LionOptions" + "text": "LionOptions" } }, { @@ -1623,7 +1654,7 @@ "name": "_listboxNode", "privacy": "protected", "type": { - "type": "LionOptions" + "text": "LionOptions" } }, { @@ -1631,7 +1662,7 @@ "name": "_listboxReceivesNoFocus", "privacy": "protected", "type": { - "type": "boolean" + "text": "boolean" } }, { @@ -1640,7 +1671,7 @@ "privacy": "protected", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -1650,7 +1681,7 @@ "privacy": "private", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -1660,20 +1691,20 @@ "privacy": "protected", "return": { "type": { - "type": "number" + "text": "number" } }, "parameters": [ { "name": "currentIndex", "type": { - "type": "number" + "text": "number" } }, { "name": "offset", "type": { - "type": "number" + "text": "number" } } ] @@ -1684,20 +1715,20 @@ "privacy": "protected", "return": { "type": { - "type": "number" + "text": "number" } }, "parameters": [ { "name": "currentIndex", "type": { - "type": "number" + "text": "number" } }, { "name": "offset", "type": { - "type": "number" + "text": "number" } } ] @@ -1708,14 +1739,14 @@ "privacy": "protected", "return": { "type": { - "type": "void" + "text": "void" } }, "parameters": [ { "name": "ev", "type": { - "type": "KeyboardEvent" + "text": "KeyboardEvent" } } ] @@ -1726,14 +1757,14 @@ "privacy": "protected", "return": { "type": { - "type": "void" + "text": "void" } }, "parameters": [ { "name": "ev", "type": { - "type": "KeyboardEvent" + "text": "KeyboardEvent" } } ] @@ -1744,7 +1775,7 @@ "privacy": "protected", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -1754,7 +1785,7 @@ "privacy": "protected", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -1764,14 +1795,14 @@ "privacy": "protected", "return": { "type": { - "type": "void" + "text": "void" } }, "parameters": [ { "name": "ev", "type": { - "type": "MouseEvent" + "text": "MouseEvent" } } ] @@ -1782,7 +1813,7 @@ "privacy": "protected", "return": { "type": { - "type": "void" + "text": "void" } } }, @@ -1792,14 +1823,14 @@ "privacy": "protected", "return": { "type": { - "type": "void" + "text": "void" } }, "parameters": [ { "name": "ev", "type": { - "type": "Event" + "text": "Event" } } ] @@ -1809,7 +1840,7 @@ "name": "_activeDescendantOwnerNode", "privacy": "protected", "type": { - "type": "HTMLElement" + "text": "HTMLElement" } } ] @@ -1819,14 +1850,14 @@ "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" + "text": "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" + "text": "T" } } ] @@ -1852,4 +1883,4 @@ ] } ] -} +} \ No newline at end of file diff --git a/packages/listbox/package.json b/packages/listbox/package.json index 91e2bbb25..67759cfb0 100644 --- a/packages/listbox/package.json +++ b/packages/listbox/package.json @@ -56,4 +56,4 @@ "./lion-options": "./lion-options.js" }, "customElementsManifest": "custom-elements.json" -} +} \ No newline at end of file diff --git a/packages/localize/custom-elements.json b/packages/localize/custom-elements.json index 8931d249c..4726f40c1 100644 --- a/packages/localize/custom-elements.json +++ b/packages/localize/custom-elements.json @@ -1,5 +1,5 @@ { - "schemaVersion": "experimental", + "schemaVersion": "0.1.0", "readme": "", "modules": [ { @@ -217,7 +217,7 @@ { "name": "localeChanged", "type": { - "type": "CustomEvent" + "text": "CustomEvent" } } ], @@ -245,7 +245,7 @@ { "name": "locale", "type": { - "type": "string" + "text": "string" } } ] @@ -258,7 +258,7 @@ { "name": "value", "type": { - "type": "string" + "text": "string" } } ] @@ -281,19 +281,19 @@ { "name": "locale", "type": { - "type": "string" + "text": "string" } }, { "name": "namespace", "type": { - "type": "string" + "text": "string" } }, { "name": "data", "type": { - "type": "object" + "text": "object" } } ] @@ -306,13 +306,13 @@ { "name": "pattern", "type": { - "type": "RegExp|string" + "text": "RegExp|string" } }, { "name": "loader", "type": { - "type": "function" + "text": "function" } } ] @@ -323,27 +323,27 @@ "privacy": "public", "return": { "type": { - "type": "Promise." + "text": "Promise." } }, "parameters": [ { "name": "namespaces", "type": { - "type": "NamespaceObject[]" + "text": "NamespaceObject[]" } }, { "name": "options", "type": { - "type": "Object" + "text": "Object" }, "optional": true }, { "name": "options.locale", "type": { - "type": "string" + "text": "string" }, "optional": true } @@ -355,27 +355,27 @@ "privacy": "public", "return": { "type": { - "type": "Promise." + "text": "Promise." } }, "parameters": [ { "name": "namespaceObj", "type": { - "type": "NamespaceObject" + "text": "NamespaceObject" } }, { "name": "options", "type": { - "type": "Object" + "text": "Object" }, "optional": true }, { "name": "options.locale", "type": { - "type": "string" + "text": "string" }, "optional": true } @@ -387,27 +387,27 @@ "privacy": "public", "return": { "type": { - "type": "string" + "text": "string" } }, "parameters": [ { "name": "keys", "type": { - "type": "string | string[]" + "text": "string | string[]" } }, { "name": "vars", "type": { - "type": "Object." + "text": "Object." }, "optional": true }, { "name": "opts", "type": { - "type": "Object" + "text": "Object" }, "optional": true, "default": "{}" @@ -415,7 +415,7 @@ { "name": "opts.locale", "type": { - "type": "string" + "text": "string" }, "optional": true } @@ -439,13 +439,13 @@ { "name": "locale", "type": { - "type": "string" + "text": "string" } }, { "name": "namespace", "type": { - "type": "string" + "text": "string" } } ] @@ -458,13 +458,13 @@ { "name": "locale", "type": { - "type": "string" + "text": "string" } }, { "name": "namespace", "type": { - "type": "string" + "text": "string" } } ] @@ -475,32 +475,32 @@ "privacy": "public", "return": { "type": { - "type": "Promise." + "text": "Promise." } }, "parameters": [ { "name": "locale", "type": { - "type": "string" + "text": "string" } }, { "name": "namespaceObj", "type": { - "type": "NamespaceObject" + "text": "NamespaceObject" } }, { "name": "isDynamicImport", "type": { - "type": "boolean" + "text": "boolean" } }, { "name": "namespace", "type": { - "type": "string" + "text": "string" } } ] @@ -513,19 +513,19 @@ { "name": "namespaceObj", "type": { - "type": "NamespaceObject" + "text": "NamespaceObject" } }, { "name": "isDynamicImport", "type": { - "type": "boolean" + "text": "boolean" } }, { "name": "namespace", "type": { - "type": "string" + "text": "string" } } ] @@ -536,32 +536,32 @@ "privacy": "public", "return": { "type": { - "type": "Promise." + "text": "Promise." } }, "parameters": [ { "name": "loader", "type": { - "type": "function" + "text": "function" } }, { "name": "locale", "type": { - "type": "string" + "text": "string" } }, { "name": "namespace", "type": { - "type": "string" + "text": "string" } }, { "name": "fallbackLocale", "type": { - "type": "string" + "text": "string" }, "optional": true, "default": "this._fallbackLocale" @@ -576,19 +576,19 @@ { "name": "locale", "type": { - "type": "string" + "text": "string" } }, { "name": "namespace", "type": { - "type": "string" + "text": "string" } }, { "name": "promise", "type": { - "type": "Promise." + "text": "Promise." } } ] @@ -599,14 +599,14 @@ "privacy": "public", "return": { "type": { - "type": "function|null" + "text": "function|null" } }, "parameters": [ { "name": "namespace", "type": { - "type": "string" + "text": "string" } } ] @@ -617,14 +617,14 @@ "privacy": "public", "return": { "type": { - "type": "string" + "text": "string" } }, "parameters": [ { "name": "locale", "type": { - "type": "string" + "text": "string" } } ] @@ -637,19 +637,19 @@ { "name": "type", "type": { - "type": "string" + "text": "string" } }, { "name": "listener", "type": { - "type": "EventListener" + "text": "EventListener" } }, { "name": "options", "type": { - "type": "...Object" + "text": "...Object" } } ] @@ -662,19 +662,19 @@ { "name": "type", "type": { - "type": "string" + "text": "string" } }, { "name": "listener", "type": { - "type": "EventListener" + "text": "EventListener" } }, { "name": "options", "type": { - "type": "...Object" + "text": "...Object" } } ] @@ -687,7 +687,7 @@ { "name": "event", "type": { - "type": "CustomEvent" + "text": "CustomEvent" } } ] @@ -698,20 +698,20 @@ "privacy": "public", "return": { "type": { - "type": "undefined" + "text": "undefined" } }, "parameters": [ { "name": "newLocale", "type": { - "type": "string" + "text": "string" } }, { "name": "oldLocale", "type": { - "type": "string" + "text": "string" } } ] @@ -722,20 +722,20 @@ "privacy": "public", "return": { "type": { - "type": "Promise." + "text": "Promise." } }, "parameters": [ { "name": "newLocale", "type": { - "type": "string" + "text": "string" } }, { "name": "oldLocale", "type": { - "type": "string" + "text": "string" } } ] @@ -746,20 +746,20 @@ "privacy": "public", "return": { "type": { - "type": "string | undefined" + "text": "string | undefined" } }, "parameters": [ { "name": "keys", "type": { - "type": "string | string[]" + "text": "string | string[]" } }, { "name": "locale", "type": { - "type": "string" + "text": "string" } } ] @@ -770,20 +770,20 @@ "privacy": "public", "return": { "type": { - "type": "string" + "text": "string" } }, "parameters": [ { "name": "key", "type": { - "type": "string | undefined" + "text": "string | undefined" } }, { "name": "locale", "type": { - "type": "string" + "text": "string" } } ] @@ -796,7 +796,7 @@ { "name": "options", "type": { - "type": "{locale:string, postProcessor:DatePostProcessor}" + "text": "{locale:string, postProcessor:DatePostProcessor}" } } ] @@ -809,7 +809,7 @@ { "name": "options", "type": { - "type": "{locale:string, postProcessor:NumberPostProcessor}" + "text": "{locale:string, postProcessor:NumberPostProcessor}" } } ] @@ -835,10 +835,6 @@ { "kind": "mixin", "name": "LocalizeMixin", - "superclass": { - "name": "superclass", - "module": "./src/LocalizeMixin.js" - }, "members": [ { "kind": "field", @@ -859,7 +855,7 @@ "description": "hook into LitElement to only render once all translations are loaded", "return": { "type": { - "type": "Promise." + "text": "Promise." } } }, @@ -879,33 +875,33 @@ "privacy": "public", "return": { "type": { - "type": "string | function" + "text": "string | function" } }, "parameters": [ { "name": "keys", "type": { - "type": "string | string[]" + "text": "string | string[]" } }, { "name": "variables", "type": { - "type": "Object." + "text": "Object." } }, { "name": "options", "type": { - "type": "Object" + "text": "Object" }, "optional": true }, { "name": "options.locale", "type": { - "type": "string" + "text": "string" }, "optional": true } @@ -917,7 +913,7 @@ "privacy": "public", "return": { "type": { - "type": "string[]" + "text": "string[]" } } }, @@ -944,7 +940,7 @@ { "name": "event", "type": { - "type": "CustomEvent" + "text": "CustomEvent" } } ] @@ -962,13 +958,13 @@ { "name": "newLocale", "type": { - "type": "string" + "text": "string" } }, { "name": "oldLocale", "type": { - "type": "string" + "text": "string" } } ] @@ -979,10 +975,6 @@ "privacy": "public" } ] - }, - { - "kind": "variable", - "name": "LocalizeMixin" } ], "exports": [ @@ -1005,14 +997,14 @@ "name": "default", "return": { "type": { - "type": "boolean" + "text": "boolean" } }, "parameters": [ { "name": "obj", "type": { - "type": "Object." + "text": "Object." } } ] @@ -1038,7 +1030,7 @@ "name": "localize", "description": "", "type": { - "type": "LocalizeManager" + "text": "LocalizeManager" } }, { @@ -1048,7 +1040,7 @@ { "name": "newLocalize", "type": { - "type": "LocalizeManager" + "text": "LocalizeManager" } } ] @@ -1098,13 +1090,13 @@ { "name": "path", "type": { - "type": "string" + "text": "string" } }, { "name": "data", "type": { - "type": "Object" + "text": "Object" } } ] @@ -1116,13 +1108,13 @@ { "name": "namespaces", "type": { - "type": "string[]" + "text": "string[]" } }, { "name": "locales", "type": { - "type": "string[]" + "text": "string[]" } } ] @@ -1136,20 +1128,20 @@ "name": "fakeImport", "return": { "type": { - "type": "Promise." + "text": "Promise." } }, "parameters": [ { "name": "path", "type": { - "type": "string" + "text": "string" } }, { "name": "ms", "type": { - "type": "number" + "text": "number" }, "optional": true, "default": "0" @@ -1230,7 +1222,7 @@ "kind": "variable", "name": "fetchMock", "type": { - "type": "any" + "text": "any" } } ], @@ -1361,20 +1353,20 @@ "description": "Formats date based on locale and options", "return": { "type": { - "type": "string" + "text": "string" } }, "parameters": [ { "name": "date", "type": { - "type": "Date" + "text": "Date" } }, { "name": "options", "type": { - "type": "FormatDateOptions" + "text": "FormatDateOptions" }, "description": "Intl options are available", "optional": true @@ -1403,7 +1395,7 @@ "description": "To compute the localized date format", "return": { "type": { - "type": "string" + "text": "string" } } } @@ -1428,21 +1420,21 @@ "name": "getMonthNames", "return": { "type": { - "type": "string[]" + "text": "string[]" } }, "parameters": [ { "name": "options", "type": { - "type": "Object" + "text": "Object" }, "optional": true }, { "name": "options.locale", "type": { - "type": "string" + "text": "string" }, "description": "locale", "optional": true @@ -1450,7 +1442,7 @@ { "name": "options.style", "type": { - "type": "string" + "text": "string" }, "description": "long, short or narrow", "optional": true @@ -1478,21 +1470,21 @@ "name": "getWeekdayNames", "return": { "type": { - "type": "string[]" + "text": "string[]" } }, "parameters": [ { "name": "options", "type": { - "type": "Object" + "text": "Object" }, "optional": true }, { "name": "options.locale", "type": { - "type": "string" + "text": "string" }, "description": "locale", "optional": true @@ -1500,7 +1492,7 @@ { "name": "options.style", "type": { - "type": "string" + "text": "string" }, "description": "long, short or narrow", "optional": true @@ -1508,7 +1500,7 @@ { "name": "options.firstDayOfWeek", "type": { - "type": "number" + "text": "number" }, "description": "0 (Sunday), 1 (Monday), etc...", "optional": true @@ -1536,14 +1528,14 @@ "name": "normalizeDateTime", "return": { "type": { - "type": "Date" + "text": "Date" } }, "parameters": [ { "name": "date", "type": { - "type": "Date" + "text": "Date" } } ] @@ -1570,14 +1562,14 @@ "description": "To parse a date into the right format", "return": { "type": { - "type": "Date | undefined" + "text": "Date | undefined" } }, "parameters": [ { "name": "dateString", "type": { - "type": "string" + "text": "string" } } ] @@ -1604,21 +1596,21 @@ "description": "Formats a number based on locale and options. It uses Intl for the formatting.", "return": { "type": { - "type": "string" + "text": "string" } }, "parameters": [ { "name": "number", "type": { - "type": "number" + "text": "number" }, "description": "Number to be formatted" }, { "name": "options", "type": { - "type": "FormatOptions" + "text": "FormatOptions" }, "description": "Intl options are available extended by roundMode and returnIfNaN", "optional": true, @@ -1648,20 +1640,20 @@ "description": "Round the number based on the options", "return": { "type": { - "type": "number" + "text": "number" } }, "parameters": [ { "name": "number", "type": { - "type": "number" + "text": "number" } }, { "name": "roundMode", "type": { - "type": "string" + "text": "string" } } ] @@ -1672,21 +1664,21 @@ "description": "Splits a number up in parts for integer, fraction, group, literal, decimal and currency.", "return": { "type": { - "type": "string | FormatNumberPart[]" + "text": "string | FormatNumberPart[]" } }, "parameters": [ { "name": "number", "type": { - "type": "number" + "text": "number" }, "description": "Number to split up" }, { "name": "options", "type": { - "type": "FormatNumberOptions" + "text": "FormatNumberOptions" }, "description": "Intl options are available extended by roundMode,returnIfNaN", "optional": true, @@ -1724,21 +1716,21 @@ "description": "Based on number, returns currency name like 'US dollar'", "return": { "type": { - "type": "string" + "text": "string" } }, "parameters": [ { "name": "currencyIso", "type": { - "type": "string" + "text": "string" }, "description": "iso code like USD" }, { "name": "options", "type": { - "type": "FormatNumberOptions" + "text": "FormatNumberOptions" }, "description": "Intl options are available extended by roundMode", "optional": true @@ -1767,14 +1759,14 @@ "description": "To get the decimal separator", "return": { "type": { - "type": "string" + "text": "string" } }, "parameters": [ { "name": "locale", "type": { - "type": "string" + "text": "string" }, "description": "To override the browser locale", "optional": true @@ -1802,14 +1794,14 @@ "name": "getFractionDigits", "return": { "type": { - "type": "number" + "text": "number" } }, "parameters": [ { "name": "currency", "type": { - "type": "string" + "text": "string" }, "description": "Currency code e.g. EUR", "optional": true, @@ -1839,14 +1831,14 @@ "description": "Gets the group separator", "return": { "type": { - "type": "string" + "text": "string" } }, "parameters": [ { "name": "locale", "type": { - "type": "string" + "text": "string" }, "description": "To override the browser locale", "optional": true @@ -1875,20 +1867,20 @@ "description": "For Turkey fixes currency label with locale options", "return": { "type": { - "type": "string" + "text": "string" } }, "parameters": [ { "name": "currency", "type": { - "type": "string" + "text": "string" } }, { "name": "locale", "type": { - "type": "string" + "text": "string" } } ] @@ -1915,14 +1907,14 @@ "description": "Gets the locale to use", "return": { "type": { - "type": "string" + "text": "string" } }, "parameters": [ { "name": "locale", "type": { - "type": "string" + "text": "string" }, "description": "Locale to override browser locale", "optional": true @@ -1951,14 +1943,14 @@ "description": "To add a leading zero to a single number", "return": { "type": { - "type": "string" + "text": "string" } }, "parameters": [ { "name": "dateString", "type": { - "type": "string" + "text": "string" } } ] @@ -1985,14 +1977,14 @@ "description": "To clean date from added characters from IE", "return": { "type": { - "type": "string" + "text": "string" } }, "parameters": [ { "name": "dateAsString", "type": { - "type": "string" + "text": "string" } } ] @@ -2020,7 +2012,7 @@ { "name": "months", "type": { - "type": "string[]" + "text": "string[]" } } ] @@ -2047,20 +2039,20 @@ "description": "To filter out some added characters in IE", "return": { "type": { - "type": "string" + "text": "string" } }, "parameters": [ { "name": "str", "type": { - "type": "string" + "text": "string" } }, { "name": "locale", "type": { - "type": "string" + "text": "string" }, "optional": true, "default": "''" @@ -2068,7 +2060,7 @@ { "name": "options", "type": { - "type": "FormatDateOptions" + "text": "FormatDateOptions" }, "description": "Intl options are available", "optional": true @@ -2097,14 +2089,14 @@ "description": "To get the absolute value of a number.", "return": { "type": { - "type": "string" + "text": "string" } }, "parameters": [ { "name": "n", "type": { - "type": "string" + "text": "string" }, "description": "number in string format" } @@ -2132,14 +2124,14 @@ "description": "To sanitize a date from IE11 handling", "return": { "type": { - "type": "string" + "text": "string" } }, "parameters": [ { "name": "date", "type": { - "type": "Date" + "text": "Date" } } ] @@ -2166,14 +2158,14 @@ "description": "To split a date into days, months, years, etc", "return": { "type": { - "type": "ArrayLike. | null" + "text": "ArrayLike. | null" } }, "parameters": [ { "name": "dateAsString", "type": { - "type": "string" + "text": "string" } } ] @@ -2200,14 +2192,14 @@ "description": "To trim the date", "return": { "type": { - "type": "string" + "text": "string" } }, "parameters": [ { "name": "dateAsString", "type": { - "type": "string" + "text": "string" } } ] @@ -2234,14 +2226,14 @@ "description": "When number is NaN we should return an empty string or returnIfNaN param", "return": { "type": { - "type": "string" + "text": "string" } }, "parameters": [ { "name": "returnIfNaN", "type": { - "type": "string|undefined" + "text": "string|undefined" } } ] @@ -2267,14 +2259,14 @@ "name": "normalSpaces", "return": { "type": { - "type": "string" + "text": "string" } }, "parameters": [ { "name": "value", "type": { - "type": "string" + "text": "string" } } ] @@ -2302,7 +2294,7 @@ { "name": "currencyName", "type": { - "type": "string" + "text": "string" } } ] @@ -2329,20 +2321,20 @@ "description": "Add separators when they are not present", "return": { "type": { - "type": "FormatNumberPart[]" + "text": "FormatNumberPart[]" } }, "parameters": [ { "name": "formattedParts", "type": { - "type": "FormatNumberPart[]" + "text": "FormatNumberPart[]" } }, { "name": "groupSeparator", "type": { - "type": "string" + "text": "string" } } ] @@ -2369,14 +2361,14 @@ "description": "For Dutch and Belgian amounts the currency should be at the end of the string", "return": { "type": { - "type": "FormatNumberPart[]" + "text": "FormatNumberPart[]" } }, "parameters": [ { "name": "formattedParts", "type": { - "type": "FormatNumberPart[]" + "text": "FormatNumberPart[]" } } ] @@ -2403,20 +2395,20 @@ "description": "Change the symbols for locale 'en-AU', due to bug in Chrome", "return": { "type": { - "type": "FormatNumberPart[]" + "text": "FormatNumberPart[]" } }, "parameters": [ { "name": "formattedParts", "type": { - "type": "FormatNumberPart[]" + "text": "FormatNumberPart[]" } }, { "name": "options", "type": { - "type": "FormatNumberOptions" + "text": "FormatNumberOptions" }, "optional": true } @@ -2444,14 +2436,14 @@ "description": "Parts with forced \"normal\" spaces", "return": { "type": { - "type": "FormatNumberPart[]" + "text": "FormatNumberPart[]" } }, "parameters": [ { "name": "formattedParts", "type": { - "type": "FormatNumberPart[]" + "text": "FormatNumberPart[]" } } ] @@ -2478,20 +2470,20 @@ "description": "When in some locales there is no space between currency and amount it is added", "return": { "type": { - "type": "FormatNumberPart[]" + "text": "FormatNumberPart[]" } }, "parameters": [ { "name": "formattedParts", "type": { - "type": "FormatNumberPart[]" + "text": "FormatNumberPart[]" } }, { "name": "options", "type": { - "type": "FormatNumberOptions" + "text": "FormatNumberOptions" }, "optional": true } @@ -2518,14 +2510,14 @@ "name": "forceSpaceInsteadOfZeroForGroup", "return": { "type": { - "type": "FormatNumberPart[]" + "text": "FormatNumberPart[]" } }, "parameters": [ { "name": "formattedParts", "type": { - "type": "FormatNumberPart[]" + "text": "FormatNumberPart[]" } } ] @@ -2551,20 +2543,20 @@ "name": "forceTryCurrencyCode", "return": { "type": { - "type": "FormatNumberPart[]" + "text": "FormatNumberPart[]" } }, "parameters": [ { "name": "formattedParts", "type": { - "type": "FormatNumberPart[]" + "text": "FormatNumberPart[]" } }, { "name": "options", "type": { - "type": "FormatNumberOptions" + "text": "FormatNumberOptions" }, "optional": true } @@ -2591,20 +2583,20 @@ "name": "forceYenSymbol", "return": { "type": { - "type": "FormatNumberPart[]" + "text": "FormatNumberPart[]" } }, "parameters": [ { "name": "formattedParts", "type": { - "type": "FormatNumberPart[]" + "text": "FormatNumberPart[]" } }, { "name": "options", "type": { - "type": "FormatNumberOptions" + "text": "FormatNumberOptions" }, "optional": true } @@ -2632,27 +2624,27 @@ "description": "Normalizes function \"formatNumberToParts\"", "return": { "type": { - "type": "FormatNumberPart[]" + "text": "FormatNumberPart[]" } }, "parameters": [ { "name": "formattedParts", "type": { - "type": "FormatNumberPart[]" + "text": "FormatNumberPart[]" } }, { "name": "options", "type": { - "type": "FormatNumberOptions" + "text": "FormatNumberOptions" }, "default": "{}" }, { "name": "_locale", "type": { - "type": "string" + "text": "string" } } ] @@ -2706,4 +2698,4 @@ "exports": [] } ] -} +} \ No newline at end of file diff --git a/packages/localize/package.json b/packages/localize/package.json index c6e2dc6fa..23c9884bb 100644 --- a/packages/localize/package.json +++ b/packages/localize/package.json @@ -49,4 +49,4 @@ "./test-helpers": "./test-helpers.js" }, "customElementsManifest": "custom-elements.json" -} +} \ No newline at end of file diff --git a/packages/overlays/custom-elements.json b/packages/overlays/custom-elements.json index 1a73d17e7..2424f0f0a 100644 --- a/packages/overlays/custom-elements.json +++ b/packages/overlays/custom-elements.json @@ -1,5 +1,5 @@ { - "schemaVersion": "experimental", + "schemaVersion": "0.1.0", "readme": "", "modules": [ { @@ -168,7 +168,7 @@ "name": "config", "privacy": "public", "type": { - "type": "OverlayConfig" + "text": "OverlayConfig" }, "default": "{}", "inheritedFrom": { @@ -184,13 +184,13 @@ { "name": "name", "type": { - "type": "string" + "text": "string" } }, { "name": "oldValue", "type": { - "type": "any" + "text": "any" } } ], @@ -205,14 +205,14 @@ "privacy": "public", "return": { "type": { - "type": "OverlayController" + "text": "OverlayController" } }, "parameters": [ { "name": "config", "type": { - "type": "DefineOverlayConfig" + "text": "DefineOverlayConfig" } } ], @@ -229,7 +229,7 @@ { "name": "changedProperties", "type": { - "type": "PropertyValues " + "text": "PropertyValues " } } ], @@ -328,7 +328,7 @@ { "name": "newOpened", "type": { - "type": "boolean" + "text": "boolean" } } ], @@ -410,7 +410,7 @@ { "name": "opened-changed", "type": { - "type": "Event" + "text": "Event" }, "inheritedFrom": { "name": "OverlayMixin", @@ -420,7 +420,7 @@ { "name": "before-closed", "type": { - "type": "CustomEvent" + "text": "CustomEvent" }, "inheritedFrom": { "name": "OverlayMixin", @@ -448,16 +448,21 @@ { "kind": "mixin", "name": "ArrowMixin", + "parameters": [ + { + "name": "superclass", + "type": { + "text": "LitElement>" + }, + "description": "" + } + ], "mixins": [ { "name": "OverlayMixin", "module": "/src/OverlayMixin.js" } ], - "superclass": { - "name": "superclass", - "module": "./src/ArrowMixin.js" - }, "attributes": [ { "name": "has-arrow", @@ -493,7 +498,7 @@ "description": "Overrides arrow and keepTogether modifier to be enabled,\nand adds onCreate and onUpdate hooks to sync from popper state", "return": { "type": { - "type": "OverlayConfig" + "text": "OverlayConfig" } } }, @@ -503,14 +508,14 @@ "privacy": "public", "return": { "type": { - "type": "Partial" + "text": "Partial" } }, "parameters": [ { "name": "popperConfigToExtendFrom", "type": { - "type": "Partial" + "text": "Partial" } } ] @@ -533,7 +538,7 @@ { "name": "data", "type": { - "type": "Partial" + "text": "Partial" } } ] @@ -545,12 +550,8 @@ "name": "ArrowMixinImplementation", "description": "", "type": { - "type": "LitElement>" + "text": "LitElement>" } - }, - { - "kind": "variable", - "name": "ArrowMixin" } ], "exports": [ @@ -583,25 +584,25 @@ { "name": "before-hide", "type": { - "type": "CustomEvent" + "text": "CustomEvent" } }, { "name": "show", "type": { - "type": "Event" + "text": "Event" } }, { "name": "before-hide", "type": { - "type": "CustomEvent" + "text": "CustomEvent" } }, { "name": "hide", "type": { - "type": "Event" + "text": "Event" } } ], @@ -613,122 +614,194 @@ { "kind": "field", "name": "invoker", - "privacy": "public" + "privacy": "public", + "type": { + "text": "HTMLElement | undefined" + } }, { "kind": "field", "name": "content", - "privacy": "public" + "privacy": "public", + "type": { + "text": "HTMLElement" + } }, { "kind": "field", "name": "placementMode", - "privacy": "public" + "privacy": "public", + "type": { + "text": "'global' | 'local' | undefined" + } }, { "kind": "field", "name": "invokerNode", - "privacy": "public" + "privacy": "public", + "type": { + "text": "HTMLElement | undefined" + } }, { "kind": "field", "name": "referenceNode", - "privacy": "public" + "privacy": "public", + "type": { + "text": "HTMLElement" + } }, { "kind": "field", "name": "contentNode", - "privacy": "public" + "privacy": "public", + "type": { + "text": "HTMLElement" + } }, { "kind": "field", "name": "contentWrapperNode", - "privacy": "public" + "privacy": "public", + "type": { + "text": "HTMLElement" + } }, { "kind": "field", "name": "backdropNode", - "privacy": "public" + "privacy": "public", + "type": { + "text": "HTMLElement" + } }, { "kind": "field", "name": "elementToFocusAfterHide", - "privacy": "public" + "privacy": "public", + "type": { + "text": "HTMLElement" + } }, { "kind": "field", "name": "hasBackdrop", - "privacy": "public" + "privacy": "public", + "type": { + "text": "boolean" + } }, { "kind": "field", "name": "isBlocking", - "privacy": "public" + "privacy": "public", + "type": { + "text": "boolean" + } }, { "kind": "field", "name": "preventsScroll", - "privacy": "public" + "privacy": "public", + "type": { + "text": "boolean" + } }, { "kind": "field", "name": "trapsKeyboardFocus", - "privacy": "public" + "privacy": "public", + "type": { + "text": "boolean" + } }, { "kind": "field", "name": "hidesOnEsc", - "privacy": "public" + "privacy": "public", + "type": { + "text": "boolean" + } }, { "kind": "field", "name": "hidesOnOutsideClick", - "privacy": "public" + "privacy": "public", + "type": { + "text": "boolean" + } }, { "kind": "field", "name": "hidesOnOutsideEsc", - "privacy": "public" + "privacy": "public", + "type": { + "text": "boolean" + } }, { "kind": "field", "name": "inheritsReferenceWidth", - "privacy": "public" + "privacy": "public", + "type": { + "text": "'max' | 'full' | 'min' | 'none' | undefined " + } }, { "kind": "field", "name": "handlesAccessibility", - "privacy": "public" + "privacy": "public", + "type": { + "text": "boolean" + } }, { "kind": "field", "name": "isTooltip", - "privacy": "public" + "privacy": "public", + "type": { + "text": "boolean" + } }, { "kind": "field", "name": "invokerRelation", - "privacy": "public" + "privacy": "public", + "type": { + "text": "'label' | 'description'| undefined" + } }, { "kind": "field", "name": "popperConfig", - "privacy": "public" + "privacy": "public", + "type": { + "text": "PopperOptions" + } }, { "kind": "field", "name": "viewportConfig", - "privacy": "public" + "privacy": "public", + "type": { + "text": "ViewportConfig" + } }, { "kind": "field", "name": "_renderTarget", - "privacy": "public" + "privacy": "public", + "type": { + "text": "HTMLElement" + } }, { "kind": "field", "name": "_referenceNode", - "privacy": "public" + "privacy": "public", + "type": { + "text": "HTMLElement | undefined" + } }, { "kind": "field", @@ -744,7 +817,7 @@ { "name": "cfgToAdd", "type": { - "type": " OverlayConfig " + "text": " OverlayConfig " } } ] @@ -757,7 +830,7 @@ { "name": "newConfig", "type": { - "type": "OverlayConfig" + "text": "OverlayConfig" } } ] @@ -770,7 +843,7 @@ { "name": "options", "type": { - "type": "{ cfgToAdd: OverlayConfig }" + "text": "{ cfgToAdd: OverlayConfig }" } } ] @@ -789,7 +862,7 @@ { "name": "options", "type": { - "type": "{ cfgToAdd: OverlayConfig }" + "text": "{ cfgToAdd: OverlayConfig }" } } ] @@ -803,7 +876,7 @@ { "name": "config", "type": { - "type": "{ phase: OverlayPhase }" + "text": "{ phase: OverlayPhase }" } } ] @@ -816,7 +889,7 @@ { "name": "config", "type": { - "type": "{ phase: OverlayPhase }" + "text": "{ phase: OverlayPhase }" } } ] @@ -829,13 +902,13 @@ { "name": "node", "type": { - "type": "HTMLElement" + "text": "HTMLElement" } }, { "name": "attrs", "type": { - "type": "string[]" + "text": "string[]" } } ] @@ -858,7 +931,7 @@ { "name": "elementToFocusAfterHide", "type": { - "type": "HTMLElement" + "text": "HTMLElement" }, "default": "this.elementToFocusAfterHide" } @@ -872,7 +945,7 @@ { "name": "config", "type": { - "type": "{ phase: OverlayPhase }" + "text": "{ phase: OverlayPhase }" } } ] @@ -885,7 +958,7 @@ { "name": "config", "type": { - "type": "{ phase: OverlayPhase }" + "text": "{ phase: OverlayPhase }" } } ] @@ -904,7 +977,7 @@ { "name": "hideConfig", "type": { - "type": "{backdropNode:HTMLElement, contentNode:HTMLElement}" + "text": "{backdropNode:HTMLElement, contentNode:HTMLElement}" } } ] @@ -917,7 +990,7 @@ { "name": "hideConfig", "type": { - "type": "{backdropNode:HTMLElement, contentNode:HTMLElement}" + "text": "{backdropNode:HTMLElement, contentNode:HTMLElement}" } } ] @@ -931,7 +1004,7 @@ { "name": "showConfig", "type": { - "type": "{backdropNode:HTMLElement, contentNode:HTMLElement}" + "text": "{backdropNode:HTMLElement, contentNode:HTMLElement}" } } ] @@ -944,7 +1017,7 @@ { "name": "showConfig", "type": { - "type": "{backdropNode:HTMLElement, contentNode:HTMLElement}" + "text": "{backdropNode:HTMLElement, contentNode:HTMLElement}" } } ] @@ -968,7 +1041,7 @@ { "name": "config", "type": { - "type": "{ phase: OverlayPhase }" + "text": "{ phase: OverlayPhase }" } } ] @@ -981,7 +1054,7 @@ { "name": "config", "type": { - "type": "{ phase: OverlayPhase }" + "text": "{ phase: OverlayPhase }" } } ] @@ -994,7 +1067,7 @@ { "name": "config", "type": { - "type": "{ phase: OverlayPhase }" + "text": "{ phase: OverlayPhase }" } } ] @@ -1013,7 +1086,7 @@ { "name": "config", "type": { - "type": "{ animation?: boolean, phase: OverlayPhase }" + "text": "{ animation?: boolean, phase: OverlayPhase }" } } ] @@ -1031,7 +1104,7 @@ { "name": "config", "type": { - "type": "{ phase: OverlayPhase }" + "text": "{ phase: OverlayPhase }" } } ] @@ -1070,7 +1143,7 @@ { "name": "config", "type": { - "type": "{ phase: OverlayPhase }" + "text": "{ phase: OverlayPhase }" } } ] @@ -1083,7 +1156,7 @@ { "name": "config", "type": { - "type": "{ phase: OverlayPhase }" + "text": "{ phase: OverlayPhase }" } } ] @@ -1101,7 +1174,7 @@ { "name": "config", "type": { - "type": "{ phase: OverlayPhase }" + "text": "{ phase: OverlayPhase }" } } ] @@ -1114,7 +1187,7 @@ { "name": "config", "type": { - "type": "{ phase: OverlayPhase }" + "text": "{ phase: OverlayPhase }" } } ] @@ -1159,26 +1232,22 @@ { "name": "opened-changed", "type": { - "type": "Event" + "text": "Event" } }, { "name": "before-closed", "type": { - "type": "CustomEvent" + "text": "CustomEvent" } }, { "name": "before-closed", "type": { - "type": "CustomEvent" + "text": "CustomEvent" } } ], - "superclass": { - "name": "superclass", - "module": "./src/OverlayMixin.js" - }, "attributes": [ { "name": "opened", @@ -1197,7 +1266,7 @@ "name": "config", "privacy": "public", "type": { - "type": "OverlayConfig" + "text": "OverlayConfig" }, "default": "{}" }, @@ -1209,13 +1278,13 @@ { "name": "name", "type": { - "type": "string" + "text": "string" } }, { "name": "oldValue", "type": { - "type": "any" + "text": "any" } } ] @@ -1226,14 +1295,14 @@ "privacy": "public", "return": { "type": { - "type": "OverlayController" + "text": "OverlayController" } }, "parameters": [ { "name": "config", "type": { - "type": "DefineOverlayConfig" + "text": "DefineOverlayConfig" } } ] @@ -1244,7 +1313,7 @@ "privacy": "public", "return": { "type": { - "type": "OverlayConfig" + "text": "OverlayConfig" } } }, @@ -1256,7 +1325,7 @@ { "name": "changedProperties", "type": { - "type": "PropertyValues " + "text": "PropertyValues " } } ] @@ -1325,7 +1394,7 @@ { "name": "newOpened", "type": { - "type": "boolean" + "text": "boolean" } } ] @@ -1370,12 +1439,8 @@ "name": "OverlayMixinImplementation", "description": "", "type": { - "type": "OverlayMixin" + "text": "OverlayMixin" } - }, - { - "kind": "variable", - "name": "OverlayMixin" } ], "exports": [ @@ -1439,14 +1504,14 @@ "description": "Registers an overlay controller.", "return": { "type": { - "type": "OverlayController" + "text": "OverlayController" } }, "parameters": [ { "name": "ctrlToAdd", "type": { - "type": "OverlayController" + "text": "OverlayController" }, "description": "controller of the newly added overlay" } @@ -1460,7 +1525,7 @@ { "name": "ctrlToRemove", "type": { - "type": "OverlayController" + "text": "OverlayController" } } ] @@ -1473,7 +1538,7 @@ { "name": "ctrlToShow", "type": { - "type": "OverlayController" + "text": "OverlayController" } } ] @@ -1486,7 +1551,7 @@ { "name": "ctrlToHide", "type": { - "type": "any" + "text": "any" } } ] @@ -1514,7 +1579,7 @@ { "name": "placementMode", "type": { - "type": "'local' | 'global' | undefined" + "text": "'local' | 'global' | undefined" } } ] @@ -1550,7 +1615,7 @@ { "name": "blockingCtrl", "type": { - "type": "OverlayController" + "text": "OverlayController" } } ] @@ -1563,7 +1628,7 @@ { "name": "blockingCtrl", "type": { - "type": "OverlayController" + "text": "OverlayController" } } ] @@ -1617,7 +1682,7 @@ { "name": "newOverlays", "type": { - "type": "OverlaysManager" + "text": "OverlaysManager" } } ] @@ -1642,6 +1707,420 @@ } ] }, + { + "kind": "javascript-module", + "path": "./types/ArrowMixinTypes.d.ts", + "declarations": [ + { + "kind": "class", + "name": "ArrowHost", + "members": [ + { + "kind": "field", + "name": "hasArrow", + "privacy": "public", + "type": { + "text": "boolean" + } + }, + { + "kind": "field", + "name": "repositionComplete", + "privacy": "public", + "type": { + "text": "Promise" + } + }, + { + "kind": "method", + "name": "render", + "privacy": "public", + "return": { + "type": { + "text": "TemplateResult" + } + } + }, + { + "kind": "method", + "name": "_arrowTemplate", + "privacy": "public", + "return": { + "type": { + "text": "TemplateResult" + } + } + }, + { + "kind": "method", + "name": "_arrowNodeTemplate", + "privacy": "public", + "return": { + "type": { + "text": "TemplateResult" + } + } + }, + { + "kind": "method", + "name": "_defineOverlayConfig", + "privacy": "public", + "return": { + "type": { + "text": "OverlayConfig" + } + } + }, + { + "kind": "method", + "name": "_getPopperArrowConfig", + "privacy": "public", + "return": { + "type": { + "text": "Partial" + } + }, + "parameters": [ + { + "name": "popperConfigToExtendFrom", + "type": { + "text": "Partial" + } + } + ] + }, + { + "kind": "method", + "name": "__setupRepositionCompletePromise", + "privacy": "public", + "return": { + "type": { + "text": "void" + } + } + }, + { + "kind": "field", + "name": "_arrowNode", + "privacy": "public", + "type": { + "text": "Element | null" + } + }, + { + "kind": "method", + "name": "__syncFromPopperState", + "privacy": "public", + "return": { + "type": { + "text": "void" + } + }, + "parameters": [ + { + "name": "data", + "type": { + "text": "Partial" + } + } + ] + } + ] + }, + { + "kind": "function", + "name": "ArrowImplementation", + "return": { + "type": { + "text": "T & Constructor & ArrowHost" + } + }, + "parameters": [ + { + "name": "superclass", + "type": { + "text": "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": { + "text": "Boolean" + } + }, + { + "kind": "field", + "name": "config", + "privacy": "public", + "type": { + "text": "OverlayConfig" + } + }, + { + "kind": "method", + "name": "open", + "privacy": "public", + "return": { + "type": { + "text": "void" + } + } + }, + { + "kind": "method", + "name": "close", + "privacy": "public", + "return": { + "type": { + "text": "void" + } + } + }, + { + "kind": "method", + "name": "toggle", + "privacy": "public", + "return": { + "type": { + "text": "void" + } + } + }, + { + "kind": "field", + "name": "_overlayCtrl", + "privacy": "protected", + "type": { + "text": "OverlayController" + } + }, + { + "kind": "field", + "name": "_overlayInvokerNode", + "privacy": "protected", + "type": { + "text": "HTMLElement" + } + }, + { + "kind": "field", + "name": "_overlayBackdropNode", + "privacy": "protected", + "type": { + "text": "HTMLElement" + } + }, + { + "kind": "field", + "name": "_overlayContentNode", + "privacy": "protected", + "type": { + "text": "HTMLElement" + } + }, + { + "kind": "field", + "name": "_overlayContentWrapperNode", + "privacy": "protected", + "type": { + "text": "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": { + "text": "OverlayController" + } + }, + "parameters": [ + { + "name": "config", + "type": { + "text": "DefineOverlayConfig" + } + } + ] + }, + { + "kind": "method", + "name": "_defineOverlayConfig", + "privacy": "protected", + "return": { + "type": { + "text": "OverlayConfig" + } + } + }, + { + "kind": "method", + "name": "_setupOpenCloseListeners", + "privacy": "protected", + "return": { + "type": { + "text": "void" + } + } + }, + { + "kind": "method", + "name": "_teardownOpenCloseListeners", + "privacy": "protected", + "return": { + "type": { + "text": "void" + } + } + }, + { + "kind": "method", + "name": "_setupOverlayCtrl", + "privacy": "protected", + "return": { + "type": { + "text": "void" + } + } + }, + { + "kind": "method", + "name": "_teardownOverlayCtrl", + "privacy": "protected", + "return": { + "type": { + "text": "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": { + "text": "Promise" + } + }, + "parameters": [ + { + "name": "newOpened", + "type": { + "text": "Boolean" + } + } + ] + }, + { + "kind": "method", + "name": "__setupSyncFromOverlayController", + "privacy": "private", + "return": { + "type": { + "text": "void" + } + } + }, + { + "kind": "method", + "name": "__teardownSyncFromOverlayController", + "privacy": "private", + "return": { + "type": { + "text": "void" + } + } + }, + { + "kind": "method", + "name": "__syncToOverlayController", + "privacy": "private", + "return": { + "type": { + "text": "void" + } + } + } + ] + }, + { + "kind": "function", + "name": "OverlayImplementation", + "return": { + "type": { + "text": "T & Constructor & typeof OverlayHost" + } + }, + "parameters": [ + { + "name": "superclass", + "type": { + "text": "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": "./translations/bg-BG.js", @@ -2104,420 +2583,6 @@ } ] }, - { - "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", @@ -2527,7 +2592,7 @@ "name": "ref", "description": "will be used to store reference to attribute names like #myElement", "type": { - "type": "object" + "text": "object" } } ], @@ -2551,7 +2616,7 @@ "name": "withBottomSheetConfig", "description": "", "type": { - "type": "OverlayConfig" + "text": "OverlayConfig" } } ], @@ -2575,7 +2640,7 @@ "name": "withDropdownConfig", "description": "", "type": { - "type": "OverlayConfig" + "text": "OverlayConfig" } } ], @@ -2599,7 +2664,7 @@ "name": "withModalDialogConfig", "description": "", "type": { - "type": "OverlayConfig" + "text": "OverlayConfig" } } ], @@ -2626,14 +2691,14 @@ { "name": "rootElement", "type": { - "type": "HTMLElement" + "text": "HTMLElement" }, "description": "The root element" }, { "name": "e", "type": { - "type": "KeyboardEvent" + "text": "KeyboardEvent" }, "description": "The keyboard event" } @@ -2645,14 +2710,14 @@ "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 }" + "text": "{ disconnect: () => void }" } }, "parameters": [ { "name": "rootElement", "type": { - "type": "HTMLElement" + "text": "HTMLElement" }, "description": "The element to contain focus within" } @@ -2688,20 +2753,20 @@ "description": "Whether first element contains the second element, also goes through shadow roots", "return": { "type": { - "type": "boolean" + "text": "boolean" } }, "parameters": [ { "name": "el", "type": { - "type": "HTMLElement|ShadowRoot" + "text": "HTMLElement|ShadowRoot" } }, { "name": "targetEl", "type": { - "type": "HTMLElement|ShadowRoot" + "text": "HTMLElement|ShadowRoot" } } ] @@ -2728,7 +2793,7 @@ "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" + "text": "Element" } } } @@ -2753,14 +2818,14 @@ "name": "getFocusableElements", "return": { "type": { - "type": "HTMLElement[]" + "text": "HTMLElement[]" } }, "parameters": [ { "name": "element", "type": { - "type": "Element" + "text": "Element" } } ] @@ -2789,7 +2854,7 @@ { "name": "element", "type": { - "type": "HTMLElement" + "text": "HTMLElement" } } ] @@ -2802,7 +2867,7 @@ { "name": "element", "type": { - "type": "HTMLElement" + "text": "HTMLElement" } } ] @@ -2837,20 +2902,20 @@ "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" + "text": "boolean" } }, "parameters": [ { "name": "a", "type": { - "type": "Partial" + "text": "Partial" } }, { "name": "b", "type": { - "type": "Partial" + "text": "Partial" } } ] @@ -2876,14 +2941,14 @@ "name": "isVisible", "return": { "type": { - "type": "boolean" + "text": "boolean" } }, "parameters": [ { "name": "element", "type": { - "type": "HTMLElement" + "text": "HTMLElement" } } ] @@ -2955,14 +3020,14 @@ "name": "sortByTabIndex", "return": { "type": { - "type": "HTMLElement[]" + "text": "HTMLElement[]" } }, "parameters": [ { "name": "elements", "type": { - "type": "HTMLElement[]" + "text": "HTMLElement[]" } } ] @@ -2990,7 +3055,7 @@ { "name": "cssValue", "type": { - "type": "string" + "text": "string" } } ] @@ -3032,4 +3097,4 @@ "exports": [] } ] -} +} \ No newline at end of file diff --git a/packages/overlays/package.json b/packages/overlays/package.json index 716c32566..0af19d05d 100644 --- a/packages/overlays/package.json +++ b/packages/overlays/package.json @@ -54,4 +54,4 @@ "./test-suites/*": "./test-suites/*" }, "customElementsManifest": "custom-elements.json" -} +} \ No newline at end of file diff --git a/packages/pagination/custom-elements.json b/packages/pagination/custom-elements.json index 2e177c1c9..198a9d9a8 100644 --- a/packages/pagination/custom-elements.json +++ b/packages/pagination/custom-elements.json @@ -1,5 +1,5 @@ { - "schemaVersion": "experimental", + "schemaVersion": "0.1.0", "readme": "", "modules": [ { @@ -95,7 +95,7 @@ { "name": "pageNumber", "type": { - "type": "number" + "text": "number" } } ] @@ -115,7 +115,7 @@ { "name": "page", "type": { - "type": "Number" + "text": "Number" }, "description": "page number to be set" } @@ -128,7 +128,7 @@ "description": "Calculate nav list based on current page selection.", "return": { "type": { - "type": "(number|'...')[]" + "text": "(number|'...')[]" } } }, @@ -139,14 +139,14 @@ "description": "Get previous or next button template.\nThis method can be overridden to apply customized template in wrapper.", "return": { "type": { - "type": "TemplateResult" + "text": "TemplateResult" } }, "parameters": [ { "name": "label", "type": { - "type": "String" + "text": "String" }, "description": "namespace label i.e. next or previous" } @@ -159,28 +159,28 @@ "description": "Get next or previous button template.\nThis method can be overridden to apply customized template in wrapper.", "return": { "type": { - "type": "TemplateResult" + "text": "TemplateResult" } }, "parameters": [ { "name": "label", "type": { - "type": "String" + "text": "String" }, "description": "namespace label i.e. next or previous" }, { "name": "pageNumber", "type": { - "type": "Number" + "text": "Number" }, "description": "page number to be set" }, { "name": "namespace", "type": { - "type": "String" + "text": "String" }, "description": "namespace prefix for translations", "default": "'lion'" @@ -194,14 +194,14 @@ "description": "Get disabled button template.\nThis method can be overridden to apply customized template in wrapper.", "return": { "type": { - "type": "TemplateResult" + "text": "TemplateResult" } }, "parameters": [ { "name": "label", "type": { - "type": "String" + "text": "String" }, "description": "namespace label i.e. next or previous" } @@ -214,7 +214,7 @@ "description": "Render navigation list", "return": { "type": { - "type": "TemplateResult[]" + "text": "TemplateResult[]" } } } @@ -454,4 +454,4 @@ ] } ] -} +} \ No newline at end of file diff --git a/packages/pagination/package.json b/packages/pagination/package.json index dc3e9ada8..f4d2a9a54 100644 --- a/packages/pagination/package.json +++ b/packages/pagination/package.json @@ -50,4 +50,4 @@ "./lion-pagination": "./lion-pagination.js" }, "customElementsManifest": "custom-elements.json" -} +} \ No newline at end of file diff --git a/packages/progress-indicator/custom-elements.json b/packages/progress-indicator/custom-elements.json index a571e2dc2..674a41a06 100644 --- a/packages/progress-indicator/custom-elements.json +++ b/packages/progress-indicator/custom-elements.json @@ -1,5 +1,5 @@ { - "schemaVersion": "experimental", + "schemaVersion": "0.1.0", "readme": "", "modules": [ { @@ -358,4 +358,4 @@ ] } ] -} +} \ No newline at end of file diff --git a/packages/progress-indicator/package.json b/packages/progress-indicator/package.json index 9a5064401..c21baf7ec 100644 --- a/packages/progress-indicator/package.json +++ b/packages/progress-indicator/package.json @@ -50,4 +50,4 @@ "./lion-progress-indicator": "./lion-progress-indicator.js" }, "customElementsManifest": "custom-elements.json" -} +} \ No newline at end of file diff --git a/packages/radio-group/custom-elements.json b/packages/radio-group/custom-elements.json index b3ff00402..d2b35650f 100644 --- a/packages/radio-group/custom-elements.json +++ b/packages/radio-group/custom-elements.json @@ -1,5 +1,5 @@ { - "schemaVersion": "experimental", + "schemaVersion": "0.1.0", "readme": "", "modules": [ { @@ -136,4 +136,4 @@ ] } ] -} +} \ No newline at end of file diff --git a/packages/radio-group/package.json b/packages/radio-group/package.json index be638df09..189c4bc53 100644 --- a/packages/radio-group/package.json +++ b/packages/radio-group/package.json @@ -53,4 +53,4 @@ "./lion-radio-group": "./lion-radio-group.js" }, "customElementsManifest": "custom-elements.json" -} +} \ No newline at end of file diff --git a/packages/select-rich/custom-elements.json b/packages/select-rich/custom-elements.json index 928eac2ed..5d985626a 100644 --- a/packages/select-rich/custom-elements.json +++ b/packages/select-rich/custom-elements.json @@ -1,5 +1,5 @@ { - "schemaVersion": "experimental", + "schemaVersion": "0.1.0", "readme": "", "modules": [ { @@ -114,7 +114,7 @@ "name": "selectedElement", "privacy": "public", "type": { - "type": "LionOption | null" + "text": "LionOption | null" }, "description": "The option element that is currently selected", "default": "null" @@ -210,7 +210,7 @@ { "name": "blur", "type": { - "type": "Event" + "text": "Event" } } ], @@ -244,7 +244,7 @@ "name": "navigateWithinInvoker", "privacy": "public", "type": { - "type": "Boolean" + "text": "Boolean" }, "description": "When invoker has focus, up and down arrow keys changes active state of listbox,\nwithout opening overlay.", "default": "false" @@ -254,7 +254,7 @@ "name": "interactionMode", "privacy": "public", "type": { - "type": "'windows/linux'|'mac'|'auto'" + "text": "'windows/linux'|'mac'|'auto'" }, "description": "Aligns behavior for 'selectionFollowFocus' and 'navigateWithinInvoker' with\nplatform. When 'auto' (default), platform is automatically detected", "default": "'auto'" @@ -278,7 +278,10 @@ { "kind": "field", "name": "_invokerNode", - "privacy": "protected" + "privacy": "protected", + "type": { + "text": "LionSelectInvoker" + } }, { "kind": "field", @@ -303,13 +306,13 @@ { "name": "name", "type": { - "type": "string" + "text": "string" } }, { "name": "oldValue", "type": { - "type": "unknown" + "text": "unknown" } } ] @@ -322,7 +325,7 @@ { "name": "changedProperties", "type": { - "type": "PropertyValues " + "text": "PropertyValues " } } ] @@ -335,13 +338,13 @@ { "name": "child", "type": { - "type": "LionOption & FormControlHost" + "text": "LionOption & FormControlHost" } }, { "name": "indexToInsertAt", "type": { - "type": "Number" + "text": "Number" } } ] @@ -354,7 +357,7 @@ { "name": "child", "type": { - "type": "FormRegisteringHost" + "text": "FormRegisteringHost" }, "description": "the child element (field)" } @@ -481,7 +484,7 @@ { "name": "ev", "type": { - "type": "KeyboardEvent" + "text": "KeyboardEvent" } } ] @@ -494,7 +497,7 @@ { "name": "ev", "type": { - "type": "KeyboardEvent" + "text": "KeyboardEvent" }, "description": "the keydown event object" } @@ -557,4 +560,4 @@ "exports": [] } ] -} +} \ No newline at end of file diff --git a/packages/select-rich/package.json b/packages/select-rich/package.json index fdcec9e3e..e15119bfb 100644 --- a/packages/select-rich/package.json +++ b/packages/select-rich/package.json @@ -61,4 +61,4 @@ "./lion-select-rich": "./lion-select-rich.js" }, "customElementsManifest": "custom-elements.json" -} +} \ No newline at end of file diff --git a/packages/select/custom-elements.json b/packages/select/custom-elements.json index f7abe6586..528016080 100644 --- a/packages/select/custom-elements.json +++ b/packages/select/custom-elements.json @@ -1,5 +1,5 @@ { - "schemaVersion": "experimental", + "schemaVersion": "0.1.0", "readme": "", "modules": [ { @@ -43,7 +43,7 @@ { "name": "user-input-changed", "type": { - "type": "CustomEvent" + "text": "CustomEvent" } } ], @@ -70,7 +70,7 @@ { "name": "changedProperties", "type": { - "type": "PropertyValues " + "text": "PropertyValues " } } ] @@ -101,4 +101,4 @@ ] } ] -} +} \ No newline at end of file diff --git a/packages/select/package.json b/packages/select/package.json index 1237a7da5..1a9e11433 100644 --- a/packages/select/package.json +++ b/packages/select/package.json @@ -50,4 +50,4 @@ "./lion-select": "./lion-select.js" }, "customElementsManifest": "custom-elements.json" -} +} \ No newline at end of file diff --git a/packages/singleton-manager/custom-elements.json b/packages/singleton-manager/custom-elements.json index 93ce15c74..f03f58ceb 100644 --- a/packages/singleton-manager/custom-elements.json +++ b/packages/singleton-manager/custom-elements.json @@ -1,5 +1,5 @@ { - "schemaVersion": "experimental", + "schemaVersion": "0.1.0", "readme": "", "modules": [ { @@ -47,13 +47,13 @@ { "name": "key", "type": { - "type": "string" + "text": "string" } }, { "name": "value", "type": { - "type": "any" + "text": "any" } } ] @@ -64,14 +64,14 @@ "privacy": "public", "return": { "type": { - "type": "" + "text": "" } }, "parameters": [ { "name": "key", "type": { - "type": "string" + "text": "string" } } ] @@ -84,7 +84,7 @@ { "name": "key", "type": { - "type": "string" + "text": "string" } } ] @@ -260,7 +260,7 @@ "kind": "field", "name": "name", "type": { - "type": "string" + "text": "string" }, "privacy": "public", "default": "'OverlayManager 1.x'" @@ -396,7 +396,7 @@ "kind": "field", "name": "name", "type": { - "type": "string" + "text": "string" }, "privacy": "public", "default": "'OverlayManager 1.x'" @@ -532,7 +532,7 @@ "kind": "field", "name": "name", "type": { - "type": "string" + "text": "string" }, "privacy": "public", "default": "'OverlayManager 1.x'" @@ -592,6 +592,39 @@ } ] }, + { + "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/singleton-complex/node_modules/page-b/page-b.js", @@ -603,7 +636,7 @@ { "name": "request-instance", "type": { - "type": "CustomEvent" + "text": "CustomEvent" } } ], @@ -648,39 +681,6 @@ } ] }, - { - "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", @@ -693,7 +693,7 @@ "kind": "field", "name": "name", "type": { - "type": "string" + "text": "string" }, "privacy": "public", "default": "'OverlayManager 2.x'" @@ -765,7 +765,7 @@ "kind": "field", "name": "name", "type": { - "type": "string" + "text": "string" }, "privacy": "public", "default": "'OverlayManager 2.x'" @@ -837,7 +837,7 @@ "kind": "field", "name": "name", "type": { - "type": "string" + "text": "string" }, "privacy": "public", "default": "'OverlayManager 2.x'" @@ -898,4 +898,4 @@ ] } ] -} +} \ No newline at end of file diff --git a/packages/singleton-manager/package.json b/packages/singleton-manager/package.json index b338daf5c..51be90ad7 100644 --- a/packages/singleton-manager/package.json +++ b/packages/singleton-manager/package.json @@ -43,4 +43,4 @@ }, "exports": "./index.js", "customElementsManifest": "custom-elements.json" -} +} \ No newline at end of file diff --git a/packages/steps/custom-elements.json b/packages/steps/custom-elements.json index 1fa069e9e..4d6191d70 100644 --- a/packages/steps/custom-elements.json +++ b/packages/steps/custom-elements.json @@ -1,5 +1,5 @@ { - "schemaVersion": "experimental", + "schemaVersion": "0.1.0", "readme": "", "modules": [ { @@ -66,19 +66,19 @@ { "name": "enter", "type": { - "type": "CustomEvent" + "text": "CustomEvent" } }, { "name": "leave", "type": { - "type": "CustomEvent" + "text": "CustomEvent" } }, { "name": "skip", "type": { - "type": "CustomEvent" + "text": "CustomEvent" } } ], @@ -157,7 +157,7 @@ { "name": "data", "type": { - "type": "Object" + "text": "Object" }, "optional": true } @@ -189,7 +189,7 @@ { "name": "transition", "type": { - "type": "CustomEvent" + "text": "CustomEvent" } } ], @@ -213,7 +213,7 @@ "name": "data", "privacy": "public", "type": { - "type": "{[key: string]: ?}" + "text": "{[key: string]: ?}" }, "default": "{}" }, @@ -222,7 +222,7 @@ "name": "current", "privacy": "public", "type": { - "type": "number" + "text": "number" }, "default": "0" }, @@ -249,13 +249,13 @@ { "name": "newCurrent", "type": { - "type": "number" + "text": "number" } }, { "name": "oldCurrent", "type": { - "type": "number" + "text": "number" } } ] @@ -268,13 +268,13 @@ { "name": "newCurrent", "type": { - "type": "number" + "text": "number" } }, { "name": "oldCurrent", "type": { - "type": "number" + "text": "number" } } ] @@ -287,13 +287,13 @@ { "name": "fromStep", "type": { - "type": "{number: number, element: LionStep}" + "text": "{number: number, element: LionStep}" } }, { "name": "toStep", "type": { - "type": "{number: number, element: LionStep}" + "text": "{number: number, element: LionStep}" } } ] @@ -306,13 +306,13 @@ { "name": "newValues", "type": { - "type": "{current: number}" + "text": "{current: number}" } }, { "name": "oldValues", "type": { - "type": "{current: number}" + "text": "{current: number}" } } ] @@ -333,4 +333,4 @@ ] } ] -} +} \ No newline at end of file diff --git a/packages/steps/package.json b/packages/steps/package.json index d38669679..2cdd2abe9 100644 --- a/packages/steps/package.json +++ b/packages/steps/package.json @@ -51,4 +51,4 @@ "./lion-steps": "./lion-steps.js" }, "customElementsManifest": "custom-elements.json" -} +} \ No newline at end of file diff --git a/packages/switch/custom-elements.json b/packages/switch/custom-elements.json index 2eaff225e..b08a8c743 100644 --- a/packages/switch/custom-elements.json +++ b/packages/switch/custom-elements.json @@ -1,5 +1,5 @@ { - "schemaVersion": "experimental", + "schemaVersion": "0.1.0", "readme": "", "modules": [ { @@ -127,7 +127,7 @@ { "name": "changedProperties", "type": { - "type": "PropertyValues " + "text": "PropertyValues " } } ] @@ -174,7 +174,7 @@ { "name": "checked-changed", "type": { - "type": "Event" + "text": "Event" } } ], @@ -229,7 +229,7 @@ { "name": "e", "type": { - "type": "KeyboardEvent" + "text": "KeyboardEvent" } } ] @@ -242,7 +242,7 @@ { "name": "e", "type": { - "type": "KeyboardEvent" + "text": "KeyboardEvent" } } ] @@ -256,13 +256,13 @@ { "name": "name", "type": { - "type": "PropertyKey" + "text": "PropertyKey" } }, { "name": "oldValue", "type": { - "type": "?" + "text": "?" } } ] @@ -283,4 +283,4 @@ ] } ] -} +} \ No newline at end of file diff --git a/packages/switch/package.json b/packages/switch/package.json index 4de68365b..0bd9c5b61 100644 --- a/packages/switch/package.json +++ b/packages/switch/package.json @@ -53,4 +53,4 @@ "./lion-switch-button": "./lion-switch-button.js" }, "customElementsManifest": "custom-elements.json" -} +} \ No newline at end of file diff --git a/packages/tabs/custom-elements.json b/packages/tabs/custom-elements.json index 0cd66b043..bb92be91a 100644 --- a/packages/tabs/custom-elements.json +++ b/packages/tabs/custom-elements.json @@ -1,5 +1,5 @@ { - "schemaVersion": "experimental", + "schemaVersion": "0.1.0", "readme": "", "modules": [ { @@ -43,7 +43,7 @@ { "name": "selected-changed", "type": { - "type": "Event" + "text": "Event" } } ], @@ -86,14 +86,14 @@ "privacy": "public", "return": { "type": { - "type": "EventHandlerNonNull" + "text": "EventHandlerNonNull" } }, "parameters": [ { "name": "index", "type": { - "type": "number" + "text": "number" } } ] @@ -106,7 +106,7 @@ { "name": "ev", "type": { - "type": "Event" + "text": "Event" } } ] @@ -119,7 +119,7 @@ { "name": "value", "type": { - "type": "number" + "text": "number" }, "description": "The new index for focus" } @@ -157,4 +157,4 @@ ] } ] -} +} \ No newline at end of file diff --git a/packages/tabs/package.json b/packages/tabs/package.json index 2c280938d..3800c8095 100644 --- a/packages/tabs/package.json +++ b/packages/tabs/package.json @@ -49,4 +49,4 @@ "./lion-tabs": "./lion-tabs.js" }, "customElementsManifest": "custom-elements.json" -} +} \ No newline at end of file diff --git a/packages/textarea/custom-elements.json b/packages/textarea/custom-elements.json index 73cbc8012..bd87a4b34 100644 --- a/packages/textarea/custom-elements.json +++ b/packages/textarea/custom-elements.json @@ -1,5 +1,5 @@ { - "schemaVersion": "experimental", + "schemaVersion": "0.1.0", "readme": "", "modules": [ { @@ -110,7 +110,7 @@ { "name": "changedProperties", "type": { - "type": "PropertyValues " + "text": "PropertyValues " } } ] @@ -167,4 +167,4 @@ ] } ] -} +} \ No newline at end of file diff --git a/packages/textarea/package.json b/packages/textarea/package.json index 5d8f48da6..564ebdad0 100644 --- a/packages/textarea/package.json +++ b/packages/textarea/package.json @@ -52,4 +52,4 @@ "./lion-textarea": "./lion-textarea.js" }, "customElementsManifest": "custom-elements.json" -} +} \ No newline at end of file diff --git a/packages/tooltip/custom-elements.json b/packages/tooltip/custom-elements.json index d2cdfad21..7934c02ed 100644 --- a/packages/tooltip/custom-elements.json +++ b/packages/tooltip/custom-elements.json @@ -1,5 +1,5 @@ { - "schemaVersion": "experimental", + "schemaVersion": "0.1.0", "readme": "", "modules": [ { @@ -65,7 +65,7 @@ "name": "invokerRelation", "privacy": "public", "type": { - "type": "'label'|'description'" + "text": "'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'" @@ -131,4 +131,4 @@ ] } ] -} +} \ No newline at end of file diff --git a/packages/tooltip/package.json b/packages/tooltip/package.json index 82f0ba355..47fee47af 100644 --- a/packages/tooltip/package.json +++ b/packages/tooltip/package.json @@ -51,4 +51,4 @@ "./lion-tooltip": "./lion-tooltip.js" }, "customElementsManifest": "custom-elements.json" -} +} \ No newline at end of file diff --git a/packages/validate-messages/custom-elements.json b/packages/validate-messages/custom-elements.json index 09ab25045..52d563dc1 100644 --- a/packages/validate-messages/custom-elements.json +++ b/packages/validate-messages/custom-elements.json @@ -1,5 +1,5 @@ { - "schemaVersion": "experimental", + "schemaVersion": "0.1.0", "readme": "", "modules": [ { @@ -500,4 +500,4 @@ ] } ] -} +} \ No newline at end of file diff --git a/packages/validate-messages/package.json b/packages/validate-messages/package.json index acc8f9e4c..0fbb74f03 100644 --- a/packages/validate-messages/package.json +++ b/packages/validate-messages/package.json @@ -47,4 +47,4 @@ }, "exports": "./index.js", "customElementsManifest": "custom-elements.json" -} +} \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index 80788ca18..374ceb61c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1350,6 +1350,22 @@ resolved "https://registry.yarnpkg.com/@coolaj86/urequest/-/urequest-1.3.7.tgz#66a1d66378dd6534e9c8e68948bf09acf32bab77" integrity sha512-PPrVYra9aWvZjSCKl/x1pJ9ZpXda1652oJrPBYy5rQumJJMkmTBN3ux+sK2xAUwVvv2wnewDlaQaHLxLwSHnIA== +"@custom-elements-manifest/analyzer@^0.1.7": + version "0.1.7" + resolved "https://registry.yarnpkg.com/@custom-elements-manifest/analyzer/-/analyzer-0.1.7.tgz#b41577dfdc20cdc046060ab86f659f91092d1a27" + integrity sha512-SuEiCAI7J9udOhUZIpAWNk535d/GMjyggTM+rucv66Uz1DE0nmj6YnJ22apwMqESfvjGlH7qjNo6f0GukJFaTA== + dependencies: + "@custom-elements-manifest/helpers" "^0.0.3" + command-line-args "^5.1.1" + comment-parser "^0.7.6" + globby "^11.0.1" + typescript "~4.0.0" + +"@custom-elements-manifest/helpers@^0.0.3": + version "0.0.3" + resolved "https://registry.yarnpkg.com/@custom-elements-manifest/helpers/-/helpers-0.0.3.tgz#671ef61a3612f0417574d0de278431bbe610d413" + integrity sha512-39SVVFyf3v+TGftspP0RmhdE4ZgmmLm4Fi9r2Y72fnY4ZMv/TOO/FoWoOJo/ruwzSGWOnnXS+TQ/2JNJ9tHA3g== + "@emotion/cache@^10.0.27": version "10.0.29" resolved "https://registry.yarnpkg.com/@emotion/cache/-/cache-10.0.29.tgz#87e7e64f412c060102d589fe7c6dc042e6f9d1e0" @@ -4252,6 +4268,11 @@ commander@~2.9.0: dependencies: graceful-readlink ">= 1.0.0" +comment-parser@^0.7.6: + version "0.7.6" + resolved "https://registry.yarnpkg.com/comment-parser/-/comment-parser-0.7.6.tgz#0e743a53c8e646c899a1323db31f6cd337b10f12" + integrity sha512-GKNxVA7/iuTnAqGADlTWX4tkhzxZKXp5fLJqKTlQLHkE65XDUKutZ3BHaJC5IGcper2tT3QRD1xr4o3jNpgXXg== + common-tags@^1.8.0: version "1.8.0" resolved "https://registry.yarnpkg.com/common-tags/-/common-tags-1.8.0.tgz#8e3153e542d4a39e9b10554434afaaf98956a937" @@ -11696,6 +11717,11 @@ typescript@3.9.7, typescript@^3.8.3: resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.7.tgz#98d600a5ebdc38f40cb277522f12dc800e9e25fa" integrity sha512-BLbiRkiBzAwsjut4x/dsibSTB6yWpwT5qWmC2OfuCg3GgVQCSgMs4vEctYPhsaGtd0AeuuHMkjZ2h2WG8MSzRw== +typescript@~4.0.0: + version "4.0.7" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.0.7.tgz#7168032c43d2a2671c95c07812f69523c79590af" + integrity sha512-yi7M4y74SWvYbnazbn8/bmJmX4Zlej39ZOqwG/8dut/MYoSQ119GY9ZFbbGsD4PFZYWxqik/XsP3vk3+W5H3og== + typical@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/typical/-/typical-4.0.0.tgz#cbeaff3b9d7ae1e2bbfaf5a4e6f11eccfde94fc4" From efc743fe6a0cf1e36bf59ea55317eb76a299cb1b Mon Sep 17 00:00:00 2001 From: Joren Broekema Date: Mon, 15 Feb 2021 18:46:45 +0100 Subject: [PATCH 3/3] chore: run custom-elements-manifest in postinstall and prepublish --- .gitignore | 1 + package.json | 1 + packages/accordion/custom-elements.json | 152 - packages/accordion/package.json | 5 +- packages/ajax/custom-elements.json | 473 - packages/ajax/package.json | 5 +- packages/button/custom-elements.json | 232 - packages/button/package.json | 5 +- packages/calendar/custom-elements.json | 1495 --- packages/calendar/package.json | 5 +- packages/checkbox-group/custom-elements.json | 255 - packages/checkbox-group/package.json | 5 +- packages/collapsible/custom-elements.json | 423 - packages/collapsible/package.json | 5 +- packages/combobox/custom-elements.json | 3990 ------ packages/combobox/package.json | 5 +- packages/core/custom-elements.json | 1497 --- packages/core/package.json | 5 +- packages/dialog/custom-elements.json | 163 - packages/dialog/package.json | 5 +- packages/fieldset/custom-elements.json | 81 - packages/fieldset/package.json | 5 +- packages/form-core/custom-elements.json | 10396 ---------------- packages/form-core/package.json | 5 +- .../form-integrations/custom-elements.json | 182 - packages/form-integrations/package.json | 5 +- packages/form/custom-elements.json | 138 - packages/form/package.json | 5 +- packages/helpers/custom-elements.json | 322 - packages/helpers/package.json | 2 +- .../sb-action-logger/custom-elements.json | 52 - packages/icon/custom-elements.json | 894 -- packages/icon/package.json | 5 +- packages/input-amount/custom-elements.json | 283 - packages/input-amount/package.json | 5 +- packages/input-date/custom-elements.json | 124 - packages/input-date/package.json | 5 +- .../input-datepicker/custom-elements.json | 923 -- packages/input-datepicker/package.json | 5 +- packages/input-email/custom-elements.json | 67 - packages/input-email/package.json | 5 +- packages/input-iban/custom-elements.json | 954 -- packages/input-iban/package.json | 5 +- packages/input-range/custom-elements.json | 190 - packages/input-range/package.json | 5 +- packages/input-stepper/custom-elements.json | 272 - packages/input-stepper/package.json | 5 +- packages/input/custom-elements.json | 161 - packages/input/package.json | 5 +- packages/listbox/custom-elements.json | 1886 --- packages/listbox/package.json | 7 +- packages/localize/custom-elements.json | 2701 ---- packages/localize/package.json | 5 +- packages/overlays/custom-elements.json | 3100 ----- packages/overlays/package.json | 5 +- packages/pagination/custom-elements.json | 457 - packages/pagination/package.json | 5 +- .../progress-indicator/custom-elements.json | 361 - packages/progress-indicator/package.json | 7 +- packages/radio-group/custom-elements.json | 139 - packages/radio-group/package.json | 5 +- packages/select-rich/custom-elements.json | 563 - packages/select-rich/package.json | 5 +- packages/select/custom-elements.json | 104 - packages/select/package.json | 5 +- .../singleton-manager/custom-elements.json | 901 -- packages/singleton-manager/package.json | 2 +- packages/steps/custom-elements.json | 336 - packages/steps/package.json | 5 +- packages/switch/custom-elements.json | 286 - packages/switch/package.json | 5 +- packages/tabs/custom-elements.json | 160 - packages/tabs/package.json | 9 +- packages/textarea/custom-elements.json | 170 - packages/textarea/package.json | 5 +- packages/tooltip/custom-elements.json | 134 - packages/tooltip/package.json | 5 +- .../validate-messages/custom-elements.json | 503 - packages/validate-messages/package.json | 5 +- 79 files changed, 117 insertions(+), 35597 deletions(-) delete mode 100644 packages/accordion/custom-elements.json delete mode 100644 packages/ajax/custom-elements.json delete mode 100644 packages/button/custom-elements.json delete mode 100644 packages/calendar/custom-elements.json delete mode 100644 packages/checkbox-group/custom-elements.json delete mode 100644 packages/collapsible/custom-elements.json delete mode 100644 packages/combobox/custom-elements.json delete mode 100644 packages/core/custom-elements.json delete mode 100644 packages/dialog/custom-elements.json delete mode 100644 packages/fieldset/custom-elements.json delete mode 100644 packages/form-core/custom-elements.json delete mode 100644 packages/form-integrations/custom-elements.json delete mode 100644 packages/form/custom-elements.json delete mode 100644 packages/helpers/custom-elements.json delete mode 100644 packages/helpers/sb-action-logger/custom-elements.json delete mode 100644 packages/icon/custom-elements.json delete mode 100644 packages/input-amount/custom-elements.json delete mode 100644 packages/input-date/custom-elements.json delete mode 100644 packages/input-datepicker/custom-elements.json delete mode 100644 packages/input-email/custom-elements.json delete mode 100644 packages/input-iban/custom-elements.json delete mode 100644 packages/input-range/custom-elements.json delete mode 100644 packages/input-stepper/custom-elements.json delete mode 100644 packages/input/custom-elements.json delete mode 100644 packages/listbox/custom-elements.json delete mode 100644 packages/localize/custom-elements.json delete mode 100644 packages/overlays/custom-elements.json delete mode 100644 packages/pagination/custom-elements.json delete mode 100644 packages/progress-indicator/custom-elements.json delete mode 100644 packages/radio-group/custom-elements.json delete mode 100644 packages/select-rich/custom-elements.json delete mode 100644 packages/select/custom-elements.json delete mode 100644 packages/singleton-manager/custom-elements.json delete mode 100644 packages/steps/custom-elements.json delete mode 100644 packages/switch/custom-elements.json delete mode 100644 packages/tabs/custom-elements.json delete mode 100644 packages/textarea/custom-elements.json delete mode 100644 packages/tooltip/custom-elements.json delete mode 100644 packages/validate-messages/custom-elements.json diff --git a/.gitignore b/.gitignore index a74a2124f..7e8d30fea 100644 --- a/.gitignore +++ b/.gitignore @@ -19,6 +19,7 @@ yarn-error.log /lib/ /build/ /bundlesize/dist/ +**/custom-elements.json ## types *.d.ts diff --git a/package.json b/package.json index 565ea817d..78d689dd7 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ "lint:prettier": "prettier \"**/*.js\" --list-different || (echo '↑↑ these files are not prettier formatted ↑↑' && exit 1)", "lint:types": "tsc", "lint:versions": "node ./scripts/lint-versions.js", + "postinstall": "npm run custom-elements-manifest", "release": "npm run build:types && npm run build:docs && changeset publish", "start": "npm run storybook", "storybook": "start-storybook -p 9001", diff --git a/packages/accordion/custom-elements.json b/packages/accordion/custom-elements.json deleted file mode 100644 index 5a503872c..000000000 --- a/packages/accordion/custom-elements.json +++ /dev/null @@ -1,152 +0,0 @@ -{ - "schemaVersion": "0.1.0", - "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": { - "text": "number" - } - } - ] - }, - { - "kind": "method", - "name": "__handleInvokerKeydown", - "privacy": "public", - "parameters": [ - { - "name": "e", - "type": { - "text": "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": { - "text": "number" - } - } - ] - } - ], - "tagName": "lion-accordion" - } - ], - "exports": [ - { - "kind": "js", - "name": "LionAccordion", - "declaration": { - "name": "LionAccordion", - "module": "./src/LionAccordion.js" - } - } - ] - } - ] -} \ No newline at end of file diff --git a/packages/accordion/package.json b/packages/accordion/package.json index 1bf11d291..1b90cca19 100644 --- a/packages/accordion/package.json +++ b/packages/accordion/package.json @@ -15,6 +15,7 @@ "files": [ "*.d.ts", "*.js", + "custom-elements.json", "docs", "src", "test", @@ -27,7 +28,7 @@ "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", - "prepublishOnly": "../../scripts/npm-prepublish.js", + "prepublishOnly": "../../scripts/npm-prepublish.js && npm run custom-elements-manifest", "test": "cd ../../ && npm run test:browser -- --group accordion" }, "sideEffects": [ @@ -49,4 +50,4 @@ "./lion-accordion": "./lion-accordion.js" }, "customElementsManifest": "custom-elements.json" -} \ No newline at end of file +} diff --git a/packages/ajax/custom-elements.json b/packages/ajax/custom-elements.json deleted file mode 100644 index a41e90a67..000000000 --- a/packages/ajax/custom-elements.json +++ /dev/null @@ -1,473 +0,0 @@ -{ - "schemaVersion": "0.1.0", - "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": "AjaxClient", - "declaration": { - "name": "AjaxClient", - "module": "./src/AjaxClient.js" - } - }, - { - "kind": "js", - "name": "AjaxClientFetchError", - "declaration": { - "name": "AjaxClientFetchError", - "module": "./src/AjaxClientFetchError.js" - } - }, - { - "kind": "js", - "name": "acceptLanguageRequestInterceptor", - "declaration": { - "name": "acceptLanguageRequestInterceptor", - "module": "./src/interceptors.js" - } - }, - { - "kind": "js", - "name": "createXSRFRequestInterceptor", - "declaration": { - "name": "createXSRFRequestInterceptor", - "module": "./src/interceptors.js" - } - }, - { - "kind": "js", - "name": "getCookie", - "declaration": { - "name": "getCookie", - "module": "./src/interceptors.js" - } - }, - { - "kind": "js", - "name": "cacheRequestInterceptorFactory", - "declaration": { - "name": "cacheRequestInterceptorFactory", - "module": "./src/interceptors-cache.js" - } - }, - { - "kind": "js", - "name": "cacheResponseInterceptorFactory", - "declaration": { - "name": "cacheResponseInterceptorFactory", - "module": "./src/interceptors-cache.js" - } - }, - { - "kind": "js", - "name": "validateOptions", - "declaration": { - "name": "validateOptions", - "module": "./src/interceptors-cache.js" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "./src/AjaxClient.js", - "declarations": [ - { - "kind": "class", - "name": "AjaxClient", - "members": [ - { - "kind": "field", - "name": "options", - "privacy": "public" - }, - { - "kind": "method", - "name": "addRequestInterceptor", - "privacy": "public", - "parameters": [ - { - "name": "requestInterceptor", - "type": { - "text": "RequestInterceptor" - } - } - ] - }, - { - "kind": "method", - "name": "removeRequestInterceptor", - "privacy": "public", - "parameters": [ - { - "name": "requestInterceptor", - "type": { - "text": "RequestInterceptor" - } - } - ] - }, - { - "kind": "method", - "name": "addResponseInterceptor", - "privacy": "public", - "parameters": [ - { - "name": "responseInterceptor", - "type": { - "text": "ResponseInterceptor" - } - } - ] - }, - { - "kind": "method", - "name": "removeResponseInterceptor", - "privacy": "public", - "parameters": [ - { - "name": "responseInterceptor", - "type": { - "text": "ResponseInterceptor" - } - } - ] - }, - { - "kind": "method", - "name": "request", - "privacy": "public", - "description": "Makes a fetch request, calling the registered fetch request and response\ninterceptors.", - "return": { - "type": { - "text": "Promise" - } - }, - "parameters": [ - { - "name": "info", - "type": { - "text": "RequestInfo" - } - }, - { - "name": "init", - "type": { - "text": "RequestInit & Partial" - }, - "optional": true - } - ] - }, - { - "kind": "method", - "name": "requestJson", - "privacy": "public", - "description": "Makes a fetch request, calling the registered fetch request and response\ninterceptors. Encodes/decodes the request and response body as JSON.", - "return": { - "type": { - "text": "Promise<{ response: Response, body: T }>" - } - }, - "parameters": [ - { - "name": "info", - "type": { - "text": "RequestInfo" - } - }, - { - "name": "init", - "type": { - "text": "LionRequestInit" - }, - "optional": true - } - ] - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "AjaxClient", - "declaration": { - "name": "AjaxClient", - "module": "./src/AjaxClient.js" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "./src/AjaxClientFetchError.js", - "declarations": [ - { - "kind": "class", - "name": "AjaxClientFetchError", - "superclass": { - "name": "Error", - "module": "./src/AjaxClientFetchError.js" - } - } - ], - "exports": [ - { - "kind": "js", - "name": "AjaxClientFetchError", - "declaration": { - "name": "AjaxClientFetchError", - "module": "./src/AjaxClientFetchError.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": { - "text": "AjaxClient" - }, - "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-cache.js", - "declarations": [ - { - "kind": "variable", - "name": "searchParamSerializer", - "description": "Serialize search parameters into url query string parameters.\nIf params === null, returns ''" - }, - { - "kind": "variable", - "name": "validateOptions", - "description": "", - "type": { - "text": "ValidatedCacheOptions" - } - }, - { - "kind": "variable", - "name": "cacheRequestInterceptorFactory", - "description": "Request interceptor to return relevant cached requests" - }, - { - "kind": "variable", - "name": "cacheResponseInterceptorFactory", - "description": "Response interceptor to cache relevant requests" - } - ], - "exports": [ - { - "kind": "js", - "name": "searchParamSerializer", - "declaration": { - "name": "searchParamSerializer", - "module": "./src/interceptors-cache.js" - } - }, - { - "kind": "js", - "name": "validateOptions", - "declaration": { - "name": "validateOptions", - "module": "./src/interceptors-cache.js" - } - }, - { - "kind": "js", - "name": "cacheRequestInterceptorFactory", - "declaration": { - "name": "cacheRequestInterceptorFactory", - "module": "./src/interceptors-cache.js" - } - }, - { - "kind": "js", - "name": "cacheResponseInterceptorFactory", - "declaration": { - "name": "cacheResponseInterceptorFactory", - "module": "./src/interceptors-cache.js" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "./src/interceptors.js", - "declarations": [ - { - "kind": "function", - "name": "getCookie", - "return": { - "type": { - "text": "string | null" - } - }, - "parameters": [ - { - "name": "name", - "type": { - "text": "string" - }, - "description": "the cookie name" - }, - { - "name": "_document", - "type": { - "text": "Document | { cookie: string }" - }, - "description": "overwriteable for testing", - "default": "document" - } - ] - }, - { - "kind": "function", - "name": "acceptLanguageRequestInterceptor", - "description": "Transforms a request, adding an accept-language header with the current application's locale\nif it has not already been set.", - "parameters": [ - { - "name": "request" - } - ] - }, - { - "kind": "function", - "name": "createXSRFRequestInterceptor", - "description": "Creates a request transformer that adds a XSRF header for protecting\nagainst cross-site request forgery.", - "return": { - "type": { - "text": "RequestInterceptor" - } - }, - "parameters": [ - { - "name": "cookieName", - "type": { - "text": "string" - }, - "description": "the cookie name" - }, - { - "name": "headerName", - "type": { - "text": "string" - }, - "description": "the header name" - }, - { - "name": "_document", - "type": { - "text": "Document | { cookie: string }" - }, - "description": "overwriteable for testing", - "default": "document" - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "getCookie", - "declaration": { - "name": "getCookie", - "module": "./src/interceptors.js" - } - }, - { - "kind": "js", - "name": "acceptLanguageRequestInterceptor", - "declaration": { - "name": "acceptLanguageRequestInterceptor", - "module": "./src/interceptors.js" - } - }, - { - "kind": "js", - "name": "createXSRFRequestInterceptor", - "declaration": { - "name": "createXSRFRequestInterceptor", - "module": "./src/interceptors.js" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "./src/typedef.js", - "declarations": [], - "exports": [] - }, - { - "kind": "javascript-module", - "path": "./types/types.d.ts", - "declarations": [], - "exports": [] - }, - { - "kind": "javascript-module", - "path": "./docs/cache-technical-docs.md", - "declarations": [], - "exports": [] - } - ] -} \ No newline at end of file diff --git a/packages/ajax/package.json b/packages/ajax/package.json index 6f449fa51..95c5f686b 100644 --- a/packages/ajax/package.json +++ b/packages/ajax/package.json @@ -15,6 +15,7 @@ "files": [ "*.d.ts", "*.js", + "custom-elements.json", "docs", "src", "test", @@ -27,7 +28,7 @@ "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", - "prepublishOnly": "../../scripts/npm-prepublish.js", + "prepublishOnly": "../../scripts/npm-prepublish.js && npm run custom-elements-manifest", "test": "cd ../../ && npm run test:browser -- --group ajax" }, "keywords": [ @@ -42,4 +43,4 @@ }, "exports": "./index.js", "customElementsManifest": "custom-elements.json" -} \ No newline at end of file +} diff --git a/packages/button/custom-elements.json b/packages/button/custom-elements.json deleted file mode 100644 index 71f86d9df..000000000 --- a/packages/button/custom-elements.json +++ /dev/null @@ -1,232 +0,0 @@ -{ - "schemaVersion": "0.1.0", - "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", - "type": { - "text": "HTMLButtonElement" - } - }, - { - "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": { - "text": "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": { - "text": "KeyboardEvent" - } - } - ] - }, - { - "kind": "method", - "name": "__keyupHandler", - "privacy": "public", - "parameters": [ - { - "name": "e", - "type": { - "text": "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": { - "text": "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" - } - } - ] - } - ] -} \ No newline at end of file diff --git a/packages/button/package.json b/packages/button/package.json index a5537d7cd..1d535696b 100644 --- a/packages/button/package.json +++ b/packages/button/package.json @@ -15,6 +15,7 @@ "files": [ "*.d.ts", "*.js", + "custom-elements.json", "docs", "src", "test", @@ -27,7 +28,7 @@ "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", - "prepublishOnly": "../../scripts/npm-prepublish.js", + "prepublishOnly": "../../scripts/npm-prepublish.js && npm run custom-elements-manifest", "test": "cd ../../ && npm run test:browser -- --group button" }, "sideEffects": [ @@ -49,4 +50,4 @@ "./lion-button": "./lion-button.js" }, "customElementsManifest": "custom-elements.json" -} \ No newline at end of file +} diff --git a/packages/calendar/custom-elements.json b/packages/calendar/custom-elements.json deleted file mode 100644 index f13c15984..000000000 --- a/packages/calendar/custom-elements.json +++ /dev/null @@ -1,1495 +0,0 @@ -{ - "schemaVersion": "0.1.0", - "readme": "", - "modules": [ - { - "kind": "javascript-module", - "path": "./index.js", - "declarations": [], - "exports": [ - { - "kind": "js", - "name": "isSameDate", - "declaration": { - "name": "isSameDate", - "module": "./src/utils/isSameDate.js" - } - }, - { - "kind": "js", - "name": "LionCalendar", - "declaration": { - "name": "LionCalendar", - "module": "./src/LionCalendar.js" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "./lion-calendar.js", - "declarations": [], - "exports": [ - { - "kind": "custom-element-definition", - "name": "lion-calendar", - "declaration": { - "name": "LionCalendar", - "module": "./src/LionCalendar.js" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "./test-helpers.js", - "declarations": [], - "exports": [ - { - "kind": "js", - "name": "CalendarObject", - "declaration": { - "name": "CalendarObject", - "module": "./test-helpers/CalendarObject.js" - } - }, - { - "kind": "js", - "name": "DayObject", - "declaration": { - "name": "DayObject", - "module": "./test-helpers/DayObject.js" - } - }, - { - "kind": "js", - "name": "weekdayNames", - "declaration": { - "name": "weekdayNames", - "module": "./test-helpers/weekdayNames.js" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "./src/LionCalendar.js", - "declarations": [ - { - "kind": "class", - "name": "LionCalendar", - "events": [ - { - "name": "user-selected-date-changed", - "type": { - "text": "CustomEvent" - } - } - ], - "mixins": [ - { - "name": "LocalizeMixin", - "package": "@lion/localize" - } - ], - "superclass": { - "name": "LitElement", - "package": "@lion/core" - }, - "members": [ - { - "kind": "field", - "name": "localizeNamespaces", - "static": true, - "privacy": "public" - }, - { - "kind": "field", - "name": "minDate", - "privacy": "public", - "default": "new Date(0)" - }, - { - "kind": "field", - "name": "maxDate", - "privacy": "public", - "default": "new Date(8640000000000000)" - }, - { - "kind": "field", - "name": "disableDates", - "privacy": "public" - }, - { - "kind": "field", - "name": "selectedDate", - "privacy": "public" - }, - { - "kind": "field", - "name": "centralDate", - "privacy": "public", - "type": { - "text": "Date" - }, - "default": "this.__today" - }, - { - "kind": "field", - "name": "firstDayOfWeek", - "privacy": "public", - "default": "0" - }, - { - "kind": "field", - "name": "weekdayHeaderNotation", - "privacy": "public", - "default": "'short'" - }, - { - "kind": "field", - "name": "locale", - "privacy": "public", - "default": "''" - }, - { - "kind": "field", - "name": "__focusedDate", - "privacy": "public", - "type": { - "text": "Date | null" - }, - "default": "null" - }, - { - "kind": "field", - "name": "__data", - "privacy": "public", - "type": { - "text": "{months: Month[]}" - }, - "default": "{ months: [] }" - }, - { - "kind": "field", - "name": "focusedDate", - "privacy": "public" - }, - { - "kind": "method", - "name": "goToNextMonth", - "privacy": "public" - }, - { - "kind": "method", - "name": "goToPreviousMonth", - "privacy": "public" - }, - { - "kind": "method", - "name": "goToNextYear", - "privacy": "public" - }, - { - "kind": "method", - "name": "goToPreviousYear", - "privacy": "public" - }, - { - "kind": "method", - "name": "focusDate", - "privacy": "public", - "parameters": [ - { - "name": "date", - "type": { - "text": "Date" - } - } - ] - }, - { - "kind": "method", - "name": "focusCentralDate", - "privacy": "public" - }, - { - "kind": "method", - "name": "focusSelectedDate", - "privacy": "public" - }, - { - "kind": "method", - "name": "requestUpdateInternal", - "privacy": "public", - "parameters": [ - { - "name": "name", - "type": { - "text": "string" - } - }, - { - "name": "oldValue", - "type": { - "text": "?" - } - } - ] - }, - { - "kind": "method", - "name": "__calculateInitialCentralDate", - "privacy": "public" - }, - { - "kind": "method", - "name": "__renderMonthNavigation", - "privacy": "public", - "parameters": [ - { - "name": "month", - "type": { - "text": "string" - } - }, - { - "name": "year", - "type": { - "text": "number" - } - } - ] - }, - { - "kind": "method", - "name": "__renderYearNavigation", - "privacy": "public", - "parameters": [ - { - "name": "month", - "type": { - "text": "string" - } - }, - { - "name": "year", - "type": { - "text": "number" - } - } - ] - }, - { - "kind": "method", - "name": "__renderNavigation", - "privacy": "public" - }, - { - "kind": "method", - "name": "__renderData", - "privacy": "public" - }, - { - "kind": "method", - "name": "__getPreviousDisabled", - "privacy": "public", - "parameters": [ - { - "name": "type", - "type": { - "text": "string" - } - }, - { - "name": "previousMonth", - "type": { - "text": "string" - } - }, - { - "name": "previousYear", - "type": { - "text": "number" - } - } - ] - }, - { - "kind": "method", - "name": "__getNextDisabled", - "privacy": "public", - "parameters": [ - { - "name": "type", - "type": { - "text": "string" - } - }, - { - "name": "nextMonth", - "type": { - "text": "string" - } - }, - { - "name": "nextYear", - "type": { - "text": "number" - } - } - ] - }, - { - "kind": "method", - "name": "__renderPreviousButton", - "privacy": "public", - "parameters": [ - { - "name": "type", - "type": { - "text": "string" - } - }, - { - "name": "previousMonth", - "type": { - "text": "string" - } - }, - { - "name": "previousYear", - "type": { - "text": "number" - } - } - ] - }, - { - "kind": "method", - "name": "__renderNextButton", - "privacy": "public", - "parameters": [ - { - "name": "type", - "type": { - "text": "string" - } - }, - { - "name": "nextMonth", - "type": { - "text": "string" - } - }, - { - "name": "nextYear", - "type": { - "text": "number" - } - } - ] - }, - { - "kind": "method", - "name": "__getNavigationLabel", - "privacy": "public", - "parameters": [ - { - "name": "mode", - "type": { - "text": "string" - } - }, - { - "name": "type", - "type": { - "text": "string" - } - }, - { - "name": "month", - "type": { - "text": "string" - } - }, - { - "name": "year", - "type": { - "text": "number" - } - } - ] - }, - { - "kind": "method", - "name": "__coreDayPreprocessor", - "privacy": "public", - "parameters": [ - { - "name": "_day", - "type": { - "text": "Day" - } - }, - { - "name": "param1", - "type": { - "text": "*" - } - } - ] - }, - { - "kind": "method", - "name": "__createData", - "privacy": "public", - "parameters": [ - { - "name": "options", - "type": { - "text": "Day" - }, - "optional": true - } - ] - }, - { - "kind": "method", - "name": "__disableDatesChanged", - "privacy": "public" - }, - { - "kind": "method", - "name": "__dateSelectedByUser", - "privacy": "public", - "parameters": [ - { - "name": "selectedDate", - "type": { - "text": "Date" - } - } - ] - }, - { - "kind": "method", - "name": "__centralDateChanged", - "privacy": "public" - }, - { - "kind": "method", - "name": "__focusedDateChanged", - "privacy": "public" - }, - { - "kind": "method", - "name": "__ensureValidCentralDate", - "privacy": "public" - }, - { - "kind": "method", - "name": "__isEnabledDate", - "privacy": "public", - "parameters": [ - { - "name": "date", - "type": { - "text": "Date" - } - } - ] - }, - { - "kind": "method", - "name": "__findBestEnabledDateFor", - "privacy": "public", - "parameters": [ - { - "name": "date", - "type": { - "text": "Date" - } - }, - { - "name": "opts", - "type": { - "text": "Object" - } - }, - { - "name": "opts.mode", - "type": { - "text": "String" - }, - "description": "Find best date in `future/past/both`", - "optional": true - } - ] - }, - { - "kind": "method", - "name": "__clickDateDelegation", - "privacy": "public", - "parameters": [ - { - "name": "ev", - "type": { - "text": "Event" - } - } - ] - }, - { - "kind": "method", - "name": "__focusDateDelegation", - "privacy": "public" - }, - { - "kind": "method", - "name": "__blurDateDelegation", - "privacy": "public" - }, - { - "kind": "method", - "name": "__keyboardNavigationEvent", - "privacy": "public", - "parameters": [ - { - "name": "ev", - "type": { - "text": "KeyboardEvent" - } - } - ] - }, - { - "kind": "method", - "name": "__modifyDate", - "privacy": "public", - "parameters": [ - { - "name": "modify", - "type": { - "text": "number" - } - }, - { - "name": "opts", - "type": { - "text": "Object" - } - }, - { - "name": "opts.dateType", - "type": { - "text": "string" - } - }, - { - "name": "opts.type", - "type": { - "text": "string" - } - }, - { - "name": "opts.mode", - "type": { - "text": "string" - } - } - ] - }, - { - "kind": "method", - "name": "__getLocale", - "privacy": "public" - } - ], - "tagName": "lion-calendar" - } - ], - "exports": [ - { - "kind": "js", - "name": "LionCalendar", - "declaration": { - "name": "LionCalendar", - "module": "./src/LionCalendar.js" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "./src/calendarStyle.js", - "declarations": [ - { - "kind": "variable", - "name": "calendarStyle" - } - ], - "exports": [ - { - "kind": "js", - "name": "calendarStyle", - "declaration": { - "name": "calendarStyle", - "module": "./src/calendarStyle.js" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "./test-helpers/CalendarObject.js", - "declarations": [ - { - "kind": "class", - "name": "CalendarObject", - "members": [ - { - "kind": "field", - "name": "rootEl", - "privacy": "public" - }, - { - "kind": "field", - "name": "headerEl", - "privacy": "public" - }, - { - "kind": "field", - "name": "yearHeadingEl", - "privacy": "public" - }, - { - "kind": "field", - "name": "monthHeadingEl", - "privacy": "public" - }, - { - "kind": "field", - "name": "nextYearButtonEl", - "privacy": "public" - }, - { - "kind": "field", - "name": "previousYearButtonEl", - "privacy": "public" - }, - { - "kind": "field", - "name": "nextMonthButtonEl", - "privacy": "public" - }, - { - "kind": "field", - "name": "previousMonthButtonEl", - "privacy": "public" - }, - { - "kind": "field", - "name": "gridEl", - "privacy": "public" - }, - { - "kind": "field", - "name": "weekdayHeaderEls", - "privacy": "public" - }, - { - "kind": "field", - "name": "dayEls", - "privacy": "public" - }, - { - "kind": "field", - "name": "previousMonthDayEls", - "privacy": "public" - }, - { - "kind": "field", - "name": "nextMonthDayEls", - "privacy": "public" - }, - { - "kind": "field", - "name": "dayObjs", - "privacy": "public" - }, - { - "kind": "field", - "name": "previousMonthDayObjs", - "privacy": "public" - }, - { - "kind": "field", - "name": "nextMonthDayObjs", - "privacy": "public" - }, - { - "kind": "method", - "name": "getDayEl", - "privacy": "public", - "parameters": [ - { - "name": "monthDayNumber", - "type": { - "text": "number" - } - } - ] - }, - { - "kind": "method", - "name": "getDayObj", - "privacy": "public", - "parameters": [ - { - "name": "monthDayNumber", - "type": { - "text": "number" - } - } - ] - }, - { - "kind": "field", - "name": "selectedDayObj", - "privacy": "public" - }, - { - "kind": "field", - "name": "centralDayObj", - "privacy": "public" - }, - { - "kind": "field", - "name": "focusedDayObj", - "privacy": "public" - }, - { - "kind": "method", - "name": "checkForAllDayObjs", - "privacy": "public", - "parameters": [ - { - "name": "condition", - "type": { - "text": "function" - }, - "description": ": condition that should apply for \"filter\" days\nExample: \"(dayObj) => dayObj.selected\"" - }, - { - "name": "filter", - "type": { - "text": "number[]|function" - }, - "description": "month day numbers for which condition should apply.\n- Example 1: \"[15, 20]\"\n- Example 2: \"(dayNumber) => dayNumber === 15\" (1 based ,not zero based)", - "optional": true - } - ] - }, - { - "kind": "field", - "name": "activeMonth", - "privacy": "public" - }, - { - "kind": "field", - "name": "activeYear", - "privacy": "public" - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "CalendarObject", - "declaration": { - "name": "CalendarObject", - "module": "./test-helpers/CalendarObject.js" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "./test-helpers/DayObject.js", - "declarations": [ - { - "kind": "class", - "name": "DayObject", - "members": [ - { - "kind": "field", - "name": "calendarShadowRoot", - "privacy": "public" - }, - { - "kind": "field", - "name": "cellEl", - "privacy": "public" - }, - { - "kind": "field", - "name": "buttonEl", - "privacy": "public" - }, - { - "kind": "field", - "name": "isDisabled", - "privacy": "public" - }, - { - "kind": "field", - "name": "isSelected", - "privacy": "public" - }, - { - "kind": "field", - "name": "isToday", - "privacy": "public" - }, - { - "kind": "field", - "name": "isCentral", - "privacy": "public" - }, - { - "kind": "field", - "name": "isFocused", - "privacy": "public" - }, - { - "kind": "field", - "name": "monthday", - "privacy": "public" - }, - { - "kind": "field", - "name": "weekdayNameShort", - "privacy": "public" - }, - { - "kind": "field", - "name": "weekdayNameLong", - "privacy": "public" - }, - { - "kind": "field", - "name": "cellIndex", - "privacy": "public" - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "DayObject", - "declaration": { - "name": "DayObject", - "module": "./test-helpers/DayObject.js" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "./test-helpers/weekdayNames.js", - "declarations": [ - { - "kind": "variable", - "name": "weekdayNames" - } - ], - "exports": [ - { - "kind": "js", - "name": "weekdayNames", - "declaration": { - "name": "weekdayNames", - "module": "./test-helpers/weekdayNames.js" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "./test/demos.screenshots-test.js", - "declarations": [], - "exports": [] - }, - { - "kind": "javascript-module", - "path": "./types/day.d.ts", - "declarations": [], - "exports": [] - }, - { - "kind": "javascript-module", - "path": "./translations/bg.js", - "declarations": [], - "exports": [ - { - "kind": "js", - "name": "default", - "declaration": { - "module": "./translations/bg.js" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "./translations/cs.js", - "declarations": [], - "exports": [ - { - "kind": "js", - "name": "default", - "declaration": { - "module": "./translations/cs.js" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "./translations/de.js", - "declarations": [], - "exports": [ - { - "kind": "js", - "name": "default", - "declaration": { - "module": "./translations/de.js" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "./translations/en.js", - "declarations": [], - "exports": [ - { - "kind": "js", - "name": "default", - "declaration": { - "module": "./translations/en.js" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "./translations/es.js", - "declarations": [], - "exports": [ - { - "kind": "js", - "name": "default", - "declaration": { - "module": "./translations/es.js" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "./translations/fr.js", - "declarations": [], - "exports": [ - { - "kind": "js", - "name": "default", - "declaration": { - "module": "./translations/fr.js" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "./translations/hu.js", - "declarations": [], - "exports": [ - { - "kind": "js", - "name": "default", - "declaration": { - "module": "./translations/hu.js" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "./translations/it.js", - "declarations": [], - "exports": [ - { - "kind": "js", - "name": "default", - "declaration": { - "module": "./translations/it.js" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "./translations/nl.js", - "declarations": [], - "exports": [ - { - "kind": "js", - "name": "default", - "declaration": { - "module": "./translations/nl.js" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "./translations/pl.js", - "declarations": [], - "exports": [ - { - "kind": "js", - "name": "default", - "declaration": { - "module": "./translations/pl.js" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "./translations/ro.js", - "declarations": [], - "exports": [ - { - "kind": "js", - "name": "default", - "declaration": { - "module": "./translations/ro.js" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "./translations/ru.js", - "declarations": [], - "exports": [ - { - "kind": "js", - "name": "default", - "declaration": { - "module": "./translations/ru.js" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "./translations/sk.js", - "declarations": [], - "exports": [ - { - "kind": "js", - "name": "default", - "declaration": { - "module": "./translations/sk.js" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "./translations/uk.js", - "declarations": [], - "exports": [ - { - "kind": "js", - "name": "default", - "declaration": { - "module": "./translations/uk.js" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "./translations/zh.js", - "declarations": [], - "exports": [ - { - "kind": "js", - "name": "default", - "declaration": { - "module": "./translations/zh.js" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "./src/utils/createDay.js", - "declarations": [ - { - "kind": "function", - "name": "createDay", - "return": { - "type": { - "text": "Day" - } - }, - "parameters": [ - { - "name": "date,", - "type": { - "text": "Date" - } - }, - { - "name": "date", - "default": "new Date()" - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "createDay", - "declaration": { - "name": "createDay", - "module": "./src/utils/createDay.js" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "./src/utils/createMonth.js", - "declarations": [ - { - "kind": "function", - "name": "createMonth", - "return": { - "type": { - "text": "Month" - } - }, - "parameters": [ - { - "name": "date", - "type": { - "text": "Date" - } - }, - { - "name": "opts", - "type": { - "text": "Object" - } - }, - { - "name": "opts.firstDayOfWeek", - "type": { - "text": "number" - }, - "optional": true - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "createMonth", - "declaration": { - "name": "createMonth", - "module": "./src/utils/createMonth.js" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "./src/utils/createMultipleMonth.js", - "declarations": [ - { - "kind": "function", - "name": "createMultipleMonth", - "return": { - "type": { - "text": "{months: Month[]}" - } - }, - "parameters": [ - { - "name": "date", - "type": { - "text": "Date" - } - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "createMultipleMonth", - "declaration": { - "name": "createMultipleMonth", - "module": "./src/utils/createMultipleMonth.js" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "./src/utils/createWeek.js", - "declarations": [ - { - "kind": "function", - "name": "createWeek", - "return": { - "type": { - "text": "Week" - } - }, - "parameters": [ - { - "name": "date", - "type": { - "text": "Date" - } - }, - { - "name": "opts", - "type": { - "text": "Object" - } - }, - { - "name": "opts.firstDayOfWeek", - "type": { - "text": "number" - }, - "optional": true - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "createWeek", - "declaration": { - "name": "createWeek", - "module": "./src/utils/createWeek.js" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "./src/utils/dataTemplate.js", - "declarations": [ - { - "kind": "function", - "name": "dataTemplate", - "parameters": [ - { - "name": "data", - "type": { - "text": "{months: {weeks: {days: Day[]}[]}[]}" - } - }, - { - "name": "opts", - "type": { - "text": "{ weekdaysShort: string[], weekdays: string[], monthsLabels?: string[], dayTemplate?: (day: TemplateResult }" - } - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "dataTemplate", - "declaration": { - "name": "dataTemplate", - "module": "./src/utils/dataTemplate.js" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "./src/utils/dayTemplate.js", - "declarations": [ - { - "kind": "function", - "name": "dayTemplate", - "parameters": [ - { - "name": "day", - "type": { - "text": "Day" - } - }, - { - "name": "opts", - "type": { - "text": "{ weekdays: string[], monthsLabels?: string[] }" - } - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "dayTemplate", - "declaration": { - "name": "dayTemplate", - "module": "./src/utils/dayTemplate.js" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "./src/utils/getFirstDayNextMonth.js", - "declarations": [ - { - "kind": "function", - "name": "getFirstDayNextMonth", - "description": "Gives the first day of the next month", - "return": { - "type": { - "text": "Date" - } - }, - "parameters": [ - { - "name": "date", - "type": { - "text": "Date" - } - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "getFirstDayNextMonth", - "declaration": { - "name": "getFirstDayNextMonth", - "module": "./src/utils/getFirstDayNextMonth.js" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "./src/utils/getLastDayPreviousMonth.js", - "declarations": [ - { - "kind": "function", - "name": "getLastDayPreviousMonth", - "description": "Gives the last day of the previous month", - "return": { - "type": { - "text": "Date" - } - }, - "parameters": [ - { - "name": "date", - "type": { - "text": "Date" - } - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "getLastDayPreviousMonth", - "declaration": { - "name": "getLastDayPreviousMonth", - "module": "./src/utils/getLastDayPreviousMonth.js" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "./src/utils/isSameDate.js", - "declarations": [ - { - "kind": "function", - "name": "isSameDate", - "description": "Compares if two days are the same", - "return": { - "type": { - "text": "boolean" - } - }, - "parameters": [ - { - "name": "day1", - "type": { - "text": "Date" - } - }, - { - "name": "day2", - "type": { - "text": "Date" - } - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "isSameDate", - "declaration": { - "name": "isSameDate", - "module": "./src/utils/isSameDate.js" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "./test/utils/snapshots/monthTemplate_en-GB_Sunday_2018-12.js", - "declarations": [], - "exports": [ - { - "kind": "js", - "name": "default", - "declaration": { - "module": "./test/utils/snapshots/monthTemplate_en-GB_Sunday_2018-12.js" - } - } - ] - } - ] -} \ No newline at end of file diff --git a/packages/calendar/package.json b/packages/calendar/package.json index 4a0cf82ca..bbffe2579 100644 --- a/packages/calendar/package.json +++ b/packages/calendar/package.json @@ -15,6 +15,7 @@ "files": [ "*.d.ts", "*.js", + "custom-elements.json", "docs", "src", "test", @@ -27,7 +28,7 @@ "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", - "prepublishOnly": "../../scripts/npm-prepublish.js", + "prepublishOnly": "../../scripts/npm-prepublish.js && npm run custom-elements-manifest", "test": "cd ../../ && npm run test:browser -- --group calendar" }, "sideEffects": [ @@ -51,4 +52,4 @@ "./test-helpers": "./test-helpers.js" }, "customElementsManifest": "custom-elements.json" -} \ No newline at end of file +} diff --git a/packages/checkbox-group/custom-elements.json b/packages/checkbox-group/custom-elements.json deleted file mode 100644 index dacec87c8..000000000 --- a/packages/checkbox-group/custom-elements.json +++ /dev/null @@ -1,255 +0,0 @@ -{ - "schemaVersion": "0.1.0", - "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": { - "text": "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": { - "text": "PropertyValues " - } - } - ] - } - ], - "tagName": "lion-checkbox-indeterminate" - } - ], - "exports": [ - { - "kind": "js", - "name": "LionCheckboxIndeterminate", - "declaration": { - "name": "LionCheckboxIndeterminate", - "module": "./src/LionCheckboxIndeterminate.js" - } - } - ] - } - ] -} \ No newline at end of file diff --git a/packages/checkbox-group/package.json b/packages/checkbox-group/package.json index d159c9f58..ff4b4def9 100644 --- a/packages/checkbox-group/package.json +++ b/packages/checkbox-group/package.json @@ -15,6 +15,7 @@ "files": [ "*.d.ts", "*.js", + "custom-elements.json", "docs", "src", "test", @@ -27,7 +28,7 @@ "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", - "prepublishOnly": "../../scripts/npm-prepublish.js", + "prepublishOnly": "../../scripts/npm-prepublish.js && npm run custom-elements-manifest", "test": "cd ../../ && npm run test:browser -- --group checkbox-group" }, "sideEffects": [ @@ -55,4 +56,4 @@ "./lion-checkbox-indeterminate": "./lion-checkbox-indeterminate.js" }, "customElementsManifest": "custom-elements.json" -} \ No newline at end of file +} diff --git a/packages/collapsible/custom-elements.json b/packages/collapsible/custom-elements.json deleted file mode 100644 index 3a2af2aaf..000000000 --- a/packages/collapsible/custom-elements.json +++ /dev/null @@ -1,423 +0,0 @@ -{ - "schemaVersion": "0.1.0", - "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": { - "text": "Object" - }, - "description": "element node and its options" - }, - { - "name": "options.contentNode", - "type": { - "text": "HTMLElement" - } - } - ] - }, - { - "kind": "method", - "name": "_hideAnimation", - "privacy": "public", - "description": "Trigger hide animation and wait for transition to be finished.", - "parameters": [ - { - "name": "options", - "type": { - "text": "Object" - }, - "description": "element node and its options" - }, - { - "name": "options.contentNode", - "type": { - "text": "HTMLElement" - } - } - ] - }, - { - "kind": "method", - "name": "_waitForTransition", - "privacy": "public", - "description": "Wait until the transition event is finished.", - "return": { - "type": { - "text": "Promise" - } - }, - "parameters": [ - { - "name": "options", - "type": { - "text": "Object" - }, - "description": "element node and its options" - }, - { - "name": "options.contentNode", - "type": { - "text": "HTMLElement" - } - } - ] - }, - { - "kind": "method", - "name": "__calculateHeight", - "privacy": "private", - "description": "Calculate total content height after collapsible opens", - "parameters": [ - { - "name": "contentNode", - "type": { - "text": "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": { - "text": "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": { - "text": "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": { - "text": "Object" - } - } - ] - }, - { - "kind": "method", - "name": "_hideAnimation", - "privacy": "protected", - "description": "Hide animation implementation in sub-classer.", - "parameters": [ - { - "name": "opts", - "type": { - "text": "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" - } - } - ] - } - ] -} \ No newline at end of file diff --git a/packages/collapsible/package.json b/packages/collapsible/package.json index da7806f03..707c5c227 100644 --- a/packages/collapsible/package.json +++ b/packages/collapsible/package.json @@ -15,6 +15,7 @@ "files": [ "*.d.ts", "*.js", + "custom-elements.json", "docs", "src", "test", @@ -27,7 +28,7 @@ "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", - "prepublishOnly": "../../scripts/npm-prepublish.js", + "prepublishOnly": "../../scripts/npm-prepublish.js && npm run custom-elements-manifest", "test": "cd ../../ && npm run test:browser -- --group collapsible" }, "sideEffects": [ @@ -52,4 +53,4 @@ "./lion-collapsible": "./lion-collapsible.js" }, "customElementsManifest": "custom-elements.json" -} \ No newline at end of file +} diff --git a/packages/combobox/custom-elements.json b/packages/combobox/custom-elements.json deleted file mode 100644 index bb4521f77..000000000 --- a/packages/combobox/custom-elements.json +++ /dev/null @@ -1,3990 +0,0 @@ -{ - "schemaVersion": "0.1.0", - "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": { - "text": "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": { - "text": "LionOption" - } - }, - { - "name": "highlight", - "type": { - "text": "boolean" - } - } - ] - }, - { - "kind": "method", - "name": "_selectedElementsTemplate", - "privacy": "public" - }, - { - "kind": "method", - "name": "__textboxOnKeyup", - "privacy": "public", - "parameters": [ - { - "name": "ev", - "type": { - "text": "{ 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": { - "text": "'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": { - "text": "'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", - "type": { - "text": "SlotsMap" - } - }, - { - "kind": "field", - "name": "_comboboxNode", - "privacy": "public", - "type": { - "text": "HTMLElement" - } - }, - { - "kind": "field", - "name": "_selectionDisplayNode", - "privacy": "public", - "type": { - "text": "SelectionDisplay | null" - } - }, - { - "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": { - "text": "'disabled'|'modelValue'|'readOnly'" - } - }, - { - "name": "oldValue", - "type": { - "text": "unknown" - } - } - ] - }, - { - "kind": "method", - "name": "updated", - "privacy": "public", - "parameters": [ - { - "name": "changedProperties", - "type": { - "text": "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": { - "text": "LionOption" - } - }, - { - "name": "textboxValue", - "type": { - "text": "string" - }, - "description": "current ._inputNode value" - } - ] - }, - { - "kind": "method", - "name": "_showOverlayCondition", - "privacy": "public", - "parameters": [ - { - "name": "options", - "type": { - "text": "{ currentValue: string, lastKey:string }" - } - } - ] - }, - { - "kind": "method", - "name": "_textboxOnInput", - "privacy": "public", - "parameters": [ - { - "name": "ev", - "type": { - "text": "Event" - } - } - ] - }, - { - "kind": "method", - "name": "_textboxOnKeydown", - "privacy": "public", - "parameters": [ - { - "name": "ev", - "type": { - "text": "KeyboardEvent" - } - } - ] - }, - { - "kind": "method", - "name": "_listboxOnClick", - "privacy": "public", - "parameters": [ - { - "name": "ev", - "type": { - "text": "MouseEvent" - } - } - ] - }, - { - "kind": "method", - "name": "_setTextboxValue", - "privacy": "public", - "parameters": [ - { - "name": "v", - "type": { - "text": "string" - } - } - ] - }, - { - "kind": "method", - "name": "__onOverlayClose", - "privacy": "public" - }, - { - "kind": "method", - "name": "_repropagationCondition", - "privacy": "public", - "parameters": [ - { - "name": "target", - "type": { - "text": "EventTarget & ChoiceInputHost" - } - } - ] - }, - { - "kind": "method", - "name": "_onFilterMatch", - "privacy": "public", - "parameters": [ - { - "name": "option", - "type": { - "text": "LionOption & {__originalInnerHTML?:string}" - } - }, - { - "name": "matchingString", - "type": { - "text": "string" - } - } - ] - }, - { - "kind": "method", - "name": "_onFilterUnmatch", - "privacy": "public", - "parameters": [ - { - "name": "option", - "type": { - "text": "LionOption & {__originalInnerHTML?:string}" - } - }, - { - "name": "curValue", - "type": { - "text": "string" - }, - "optional": true - }, - { - "name": "prevValue", - "type": { - "text": "string" - }, - "optional": true - } - ] - }, - { - "kind": "method", - "name": "__computeUserIntendsAutoFill", - "privacy": "public", - "description": "Computes whether a user intends to autofill (inline autocomplete textbox)", - "parameters": [ - { - "name": "config", - "type": { - "text": "{ 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": { - "text": "KeyboardEvent" - } - } - ] - }, - { - "kind": "method", - "name": "_syncToTextboxCondition", - "privacy": "public", - "parameters": [ - { - "name": "modelValue", - "type": { - "text": "string|string[]" - } - }, - { - "name": "oldModelValue", - "type": { - "text": "string|string[]" - } - } - ] - }, - { - "kind": "method", - "name": "_syncToTextboxMultiple", - "privacy": "public", - "parameters": [ - { - "name": "modelValue", - "type": { - "text": "string[]" - } - }, - { - "name": "oldModelValue", - "type": { - "text": "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": { - "text": "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": { - "text": "'branches'|'tags'" - }, - "default": "'branches'" - }, - { - "kind": "field", - "name": "isDesktop", - "privacy": "public" - }, - { - "kind": "method", - "name": "render", - "privacy": "public" - }, - { - "kind": "field", - "name": "_comboboxNode", - "privacy": "public", - "type": { - "text": "HTMLElement" - } - }, - { - "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": { - "text": "'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": { - "text": "'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", - "type": { - "text": "SelectionDisplay | null" - }, - "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": { - "text": "'disabled'|'modelValue'|'readOnly'" - } - }, - { - "name": "oldValue", - "type": { - "text": "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": { - "text": "LionOption" - } - }, - { - "name": "textboxValue", - "type": { - "text": "string" - }, - "description": "current ._inputNode value" - } - ], - "inheritedFrom": { - "name": "LionCombobox", - "module": "./src/LionCombobox.js" - } - }, - { - "kind": "method", - "name": "_showOverlayCondition", - "privacy": "public", - "parameters": [ - { - "name": "options", - "type": { - "text": "{ currentValue: string, lastKey:string }" - } - } - ], - "inheritedFrom": { - "name": "LionCombobox", - "module": "./src/LionCombobox.js" - } - }, - { - "kind": "method", - "name": "_textboxOnInput", - "privacy": "public", - "parameters": [ - { - "name": "ev", - "type": { - "text": "Event" - } - } - ], - "inheritedFrom": { - "name": "LionCombobox", - "module": "./src/LionCombobox.js" - } - }, - { - "kind": "method", - "name": "_listboxOnClick", - "privacy": "public", - "parameters": [ - { - "name": "ev", - "type": { - "text": "MouseEvent" - } - } - ], - "inheritedFrom": { - "name": "LionCombobox", - "module": "./src/LionCombobox.js" - } - }, - { - "kind": "method", - "name": "_setTextboxValue", - "privacy": "public", - "parameters": [ - { - "name": "v", - "type": { - "text": "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": { - "text": "EventTarget & ChoiceInputHost" - } - } - ], - "inheritedFrom": { - "name": "LionCombobox", - "module": "./src/LionCombobox.js" - } - }, - { - "kind": "method", - "name": "_onFilterMatch", - "privacy": "public", - "parameters": [ - { - "name": "option", - "type": { - "text": "LionOption & {__originalInnerHTML?:string}" - } - }, - { - "name": "matchingString", - "type": { - "text": "string" - } - } - ], - "inheritedFrom": { - "name": "LionCombobox", - "module": "./src/LionCombobox.js" - } - }, - { - "kind": "method", - "name": "_onFilterUnmatch", - "privacy": "public", - "parameters": [ - { - "name": "option", - "type": { - "text": "LionOption & {__originalInnerHTML?:string}" - } - }, - { - "name": "curValue", - "type": { - "text": "string" - }, - "optional": true - }, - { - "name": "prevValue", - "type": { - "text": "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": { - "text": "{ 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": { - "text": "KeyboardEvent" - } - } - ], - "inheritedFrom": { - "name": "LionCombobox", - "module": "./src/LionCombobox.js" - } - }, - { - "kind": "method", - "name": "_syncToTextboxCondition", - "privacy": "public", - "parameters": [ - { - "name": "modelValue", - "type": { - "text": "string|string[]" - } - }, - { - "name": "oldModelValue", - "type": { - "text": "string|string[]" - } - } - ], - "inheritedFrom": { - "name": "LionCombobox", - "module": "./src/LionCombobox.js" - } - }, - { - "kind": "method", - "name": "_syncToTextboxMultiple", - "privacy": "public", - "parameters": [ - { - "name": "modelValue", - "type": { - "text": "string[]" - } - }, - { - "name": "oldModelValue", - "type": { - "text": "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": { - "text": "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": { - "text": "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": { - "text": "'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": { - "text": "'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", - "type": { - "text": "HTMLElement" - }, - "inheritedFrom": { - "name": "LionCombobox", - "module": "./src/LionCombobox.js" - } - }, - { - "kind": "field", - "name": "_selectionDisplayNode", - "privacy": "public", - "type": { - "text": "SelectionDisplay | null" - }, - "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": { - "text": "'disabled'|'modelValue'|'readOnly'" - } - }, - { - "name": "oldValue", - "type": { - "text": "unknown" - } - } - ], - "inheritedFrom": { - "name": "LionCombobox", - "module": "./src/LionCombobox.js" - } - }, - { - "kind": "method", - "name": "updated", - "privacy": "public", - "parameters": [ - { - "name": "changedProperties", - "type": { - "text": "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": { - "text": "LionOption" - } - }, - { - "name": "textboxValue", - "type": { - "text": "string" - }, - "description": "current ._inputNode value" - } - ], - "inheritedFrom": { - "name": "LionCombobox", - "module": "./src/LionCombobox.js" - } - }, - { - "kind": "method", - "name": "_textboxOnInput", - "privacy": "public", - "parameters": [ - { - "name": "ev", - "type": { - "text": "Event" - } - } - ], - "inheritedFrom": { - "name": "LionCombobox", - "module": "./src/LionCombobox.js" - } - }, - { - "kind": "method", - "name": "_textboxOnKeydown", - "privacy": "public", - "parameters": [ - { - "name": "ev", - "type": { - "text": "KeyboardEvent" - } - } - ], - "inheritedFrom": { - "name": "LionCombobox", - "module": "./src/LionCombobox.js" - } - }, - { - "kind": "method", - "name": "_listboxOnClick", - "privacy": "public", - "parameters": [ - { - "name": "ev", - "type": { - "text": "MouseEvent" - } - } - ], - "inheritedFrom": { - "name": "LionCombobox", - "module": "./src/LionCombobox.js" - } - }, - { - "kind": "method", - "name": "_setTextboxValue", - "privacy": "public", - "parameters": [ - { - "name": "v", - "type": { - "text": "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": { - "text": "EventTarget & ChoiceInputHost" - } - } - ], - "inheritedFrom": { - "name": "LionCombobox", - "module": "./src/LionCombobox.js" - } - }, - { - "kind": "method", - "name": "_onFilterMatch", - "privacy": "public", - "parameters": [ - { - "name": "option", - "type": { - "text": "LionOption & {__originalInnerHTML?:string}" - } - }, - { - "name": "matchingString", - "type": { - "text": "string" - } - } - ], - "inheritedFrom": { - "name": "LionCombobox", - "module": "./src/LionCombobox.js" - } - }, - { - "kind": "method", - "name": "_onFilterUnmatch", - "privacy": "public", - "parameters": [ - { - "name": "option", - "type": { - "text": "LionOption & {__originalInnerHTML?:string}" - } - }, - { - "name": "curValue", - "type": { - "text": "string" - }, - "optional": true - }, - { - "name": "prevValue", - "type": { - "text": "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": { - "text": "{ 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": { - "text": "KeyboardEvent" - } - } - ], - "inheritedFrom": { - "name": "LionCombobox", - "module": "./src/LionCombobox.js" - } - }, - { - "kind": "method", - "name": "_syncToTextboxMultiple", - "privacy": "public", - "parameters": [ - { - "name": "modelValue", - "type": { - "text": "string[]" - } - }, - { - "name": "oldModelValue", - "type": { - "text": "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": { - "text": "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": { - "text": "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": { - "text": "'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": { - "text": "'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", - "type": { - "text": "SlotsMap" - }, - "inheritedFrom": { - "name": "LionCombobox", - "module": "./src/LionCombobox.js" - } - }, - { - "kind": "field", - "name": "_comboboxNode", - "privacy": "public", - "type": { - "text": "HTMLElement" - }, - "inheritedFrom": { - "name": "LionCombobox", - "module": "./src/LionCombobox.js" - } - }, - { - "kind": "field", - "name": "_selectionDisplayNode", - "privacy": "public", - "type": { - "text": "SelectionDisplay | null" - }, - "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": { - "text": "'disabled'|'modelValue'|'readOnly'" - } - }, - { - "name": "oldValue", - "type": { - "text": "unknown" - } - } - ], - "inheritedFrom": { - "name": "LionCombobox", - "module": "./src/LionCombobox.js" - } - }, - { - "kind": "method", - "name": "updated", - "privacy": "public", - "parameters": [ - { - "name": "changedProperties", - "type": { - "text": "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": { - "text": "LionOption" - } - }, - { - "name": "textboxValue", - "type": { - "text": "string" - }, - "description": "current ._inputNode value" - } - ], - "inheritedFrom": { - "name": "LionCombobox", - "module": "./src/LionCombobox.js" - } - }, - { - "kind": "method", - "name": "_showOverlayCondition", - "privacy": "public", - "parameters": [ - { - "name": "options", - "type": { - "text": "{ currentValue: string, lastKey:string }" - } - } - ], - "inheritedFrom": { - "name": "LionCombobox", - "module": "./src/LionCombobox.js" - } - }, - { - "kind": "method", - "name": "_textboxOnInput", - "privacy": "public", - "parameters": [ - { - "name": "ev", - "type": { - "text": "Event" - } - } - ], - "inheritedFrom": { - "name": "LionCombobox", - "module": "./src/LionCombobox.js" - } - }, - { - "kind": "method", - "name": "_textboxOnKeydown", - "privacy": "public", - "parameters": [ - { - "name": "ev", - "type": { - "text": "KeyboardEvent" - } - } - ], - "inheritedFrom": { - "name": "LionCombobox", - "module": "./src/LionCombobox.js" - } - }, - { - "kind": "method", - "name": "_listboxOnClick", - "privacy": "public", - "parameters": [ - { - "name": "ev", - "type": { - "text": "MouseEvent" - } - } - ], - "inheritedFrom": { - "name": "LionCombobox", - "module": "./src/LionCombobox.js" - } - }, - { - "kind": "method", - "name": "_setTextboxValue", - "privacy": "public", - "parameters": [ - { - "name": "v", - "type": { - "text": "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": { - "text": "EventTarget & ChoiceInputHost" - } - } - ], - "inheritedFrom": { - "name": "LionCombobox", - "module": "./src/LionCombobox.js" - } - }, - { - "kind": "method", - "name": "_onFilterMatch", - "privacy": "public", - "parameters": [ - { - "name": "option", - "type": { - "text": "LionOption & {__originalInnerHTML?:string}" - } - }, - { - "name": "matchingString", - "type": { - "text": "string" - } - } - ], - "inheritedFrom": { - "name": "LionCombobox", - "module": "./src/LionCombobox.js" - } - }, - { - "kind": "method", - "name": "_onFilterUnmatch", - "privacy": "public", - "parameters": [ - { - "name": "option", - "type": { - "text": "LionOption & {__originalInnerHTML?:string}" - } - }, - { - "name": "curValue", - "type": { - "text": "string" - }, - "optional": true - }, - { - "name": "prevValue", - "type": { - "text": "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": { - "text": "{ 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": { - "text": "KeyboardEvent" - } - } - ], - "inheritedFrom": { - "name": "LionCombobox", - "module": "./src/LionCombobox.js" - } - }, - { - "kind": "method", - "name": "_syncToTextboxCondition", - "privacy": "public", - "parameters": [ - { - "name": "modelValue", - "type": { - "text": "string|string[]" - } - }, - { - "name": "oldModelValue", - "type": { - "text": "string|string[]" - } - } - ], - "inheritedFrom": { - "name": "LionCombobox", - "module": "./src/LionCombobox.js" - } - }, - { - "kind": "method", - "name": "_syncToTextboxMultiple", - "privacy": "public", - "parameters": [ - { - "name": "modelValue", - "type": { - "text": "string[]" - } - }, - { - "name": "oldModelValue", - "type": { - "text": "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": { - "text": "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": { - "text": "string" - } - } - ] - }, - { - "kind": "method", - "name": "onFilterUnmatch", - "privacy": "public", - "parameters": [ - { - "name": "curValue", - "type": { - "text": "string" - }, - "optional": true - }, - { - "name": "prevValue", - "type": { - "text": "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": { - "text": "LionOption" - } - }, - { - "name": "textboxValue", - "type": { - "text": "string" - }, - "description": "current ._inputNode value" - } - ] - }, - { - "kind": "method", - "name": "_syncToTextboxCondition", - "privacy": "public" - }, - { - "kind": "field", - "name": "autocomplete", - "privacy": "public", - "type": { - "text": "'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": { - "text": "'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", - "type": { - "text": "HTMLElement" - }, - "inheritedFrom": { - "name": "LionCombobox", - "module": "./src/LionCombobox.js" - } - }, - { - "kind": "field", - "name": "_selectionDisplayNode", - "privacy": "public", - "type": { - "text": "SelectionDisplay | null" - }, - "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": { - "text": "'disabled'|'modelValue'|'readOnly'" - } - }, - { - "name": "oldValue", - "type": { - "text": "unknown" - } - } - ], - "inheritedFrom": { - "name": "LionCombobox", - "module": "./src/LionCombobox.js" - } - }, - { - "kind": "method", - "name": "updated", - "privacy": "public", - "parameters": [ - { - "name": "changedProperties", - "type": { - "text": "PropertyValues " - } - } - ], - "inheritedFrom": { - "name": "LionCombobox", - "module": "./src/LionCombobox.js" - } - }, - { - "kind": "method", - "name": "_showOverlayCondition", - "privacy": "public", - "parameters": [ - { - "name": "options", - "type": { - "text": "{ currentValue: string, lastKey:string }" - } - } - ], - "inheritedFrom": { - "name": "LionCombobox", - "module": "./src/LionCombobox.js" - } - }, - { - "kind": "method", - "name": "_textboxOnInput", - "privacy": "public", - "parameters": [ - { - "name": "ev", - "type": { - "text": "Event" - } - } - ], - "inheritedFrom": { - "name": "LionCombobox", - "module": "./src/LionCombobox.js" - } - }, - { - "kind": "method", - "name": "_textboxOnKeydown", - "privacy": "public", - "parameters": [ - { - "name": "ev", - "type": { - "text": "KeyboardEvent" - } - } - ], - "inheritedFrom": { - "name": "LionCombobox", - "module": "./src/LionCombobox.js" - } - }, - { - "kind": "method", - "name": "_listboxOnClick", - "privacy": "public", - "parameters": [ - { - "name": "ev", - "type": { - "text": "MouseEvent" - } - } - ], - "inheritedFrom": { - "name": "LionCombobox", - "module": "./src/LionCombobox.js" - } - }, - { - "kind": "method", - "name": "_setTextboxValue", - "privacy": "public", - "parameters": [ - { - "name": "v", - "type": { - "text": "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": { - "text": "EventTarget & ChoiceInputHost" - } - } - ], - "inheritedFrom": { - "name": "LionCombobox", - "module": "./src/LionCombobox.js" - } - }, - { - "kind": "method", - "name": "_onFilterMatch", - "privacy": "public", - "parameters": [ - { - "name": "option", - "type": { - "text": "LionOption & {__originalInnerHTML?:string}" - } - }, - { - "name": "matchingString", - "type": { - "text": "string" - } - } - ], - "inheritedFrom": { - "name": "LionCombobox", - "module": "./src/LionCombobox.js" - } - }, - { - "kind": "method", - "name": "_onFilterUnmatch", - "privacy": "public", - "parameters": [ - { - "name": "option", - "type": { - "text": "LionOption & {__originalInnerHTML?:string}" - } - }, - { - "name": "curValue", - "type": { - "text": "string" - }, - "optional": true - }, - { - "name": "prevValue", - "type": { - "text": "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": { - "text": "{ 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": { - "text": "KeyboardEvent" - } - } - ], - "inheritedFrom": { - "name": "LionCombobox", - "module": "./src/LionCombobox.js" - } - }, - { - "kind": "method", - "name": "_syncToTextboxMultiple", - "privacy": "public", - "parameters": [ - { - "name": "modelValue", - "type": { - "text": "string[]" - } - }, - { - "name": "oldModelValue", - "type": { - "text": "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": { - "text": "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": [] - } - ] -} \ No newline at end of file diff --git a/packages/combobox/package.json b/packages/combobox/package.json index 6122c9667..8b443603f 100644 --- a/packages/combobox/package.json +++ b/packages/combobox/package.json @@ -15,6 +15,7 @@ "files": [ "*.d.ts", "*.js", + "custom-elements.json", "docs", "src", "test", @@ -27,7 +28,7 @@ "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", - "prepublishOnly": "../../scripts/npm-prepublish.js", + "prepublishOnly": "../../scripts/npm-prepublish.js && npm run custom-elements-manifest", "test": "cd ../../ && npm run test:browser -- --group combobox" }, "sideEffects": [ @@ -62,4 +63,4 @@ "./lion-combobox": "./lion-combobox.js" }, "customElementsManifest": "custom-elements.json" -} \ No newline at end of file +} diff --git a/packages/core/custom-elements.json b/packages/core/custom-elements.json deleted file mode 100644 index 248cfccf4..000000000 --- a/packages/core/custom-elements.json +++ /dev/null @@ -1,1497 +0,0 @@ -{ - "schemaVersion": "0.1.0", - "readme": "", - "modules": [ - { - "kind": "javascript-module", - "path": "./closestPolyfill.js", - "declarations": [], - "exports": [] - }, - { - "kind": "javascript-module", - "path": "./differentKeyEventNamesShimIE.js", - "declarations": [], - "exports": [] - }, - { - "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": { - "text": "Delegations" - } - }, - { - "kind": "method", - "name": "_connectDelegateMixin", - "privacy": "protected", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "__setupPropertyDelegation", - "privacy": "private", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "__initialAttributeDelegation", - "privacy": "private", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "__emptyEventListenerQueue", - "privacy": "private", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "__emptyPropertiesQueue", - "privacy": "private", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "connectedCallback", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "updated", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - }, - "parameters": [ - { - "name": "changedProperties", - "type": { - "text": "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": { - "text": "boolean" - } - }, - { - "kind": "method", - "name": "makeRequestToBeDisabled", - "privacy": "public", - "description": "Makes request to make the element disabled", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "retractRequestToBeDisabled", - "privacy": "public", - "description": "Retract request to make the element disabled and restore disabled to previous", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "__internalSetDisabled", - "privacy": "private", - "return": { - "type": { - "text": "void" - } - }, - "parameters": [ - { - "name": "value", - "type": { - "text": "boolean" - } - } - ] - }, - { - "kind": "field", - "name": "_requestedToBeDisabled", - "privacy": "protected", - "type": { - "text": "boolean" - } - } - ] - }, - { - "kind": "function", - "name": "DisabledMixinImplementation", - "return": { - "type": { - "text": "T & Constructor & typeof DisabledHost" - } - }, - "parameters": [ - { - "name": "superclass", - "type": { - "text": "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": { - "text": "number" - } - }, - { - "kind": "method", - "name": "makeRequestToBeDisabled", - "privacy": "public", - "description": "Makes request to make the element disabled and set the tabindex", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "retractRequestToBeDisabled", - "privacy": "public", - "description": "Retract request to make the element disabled and restore disabled and tabindex to previous", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "__internalSetTabIndex", - "privacy": "private", - "return": { - "type": { - "text": "void" - } - }, - "parameters": [ - { - "name": "value", - "type": { - "text": "boolean" - } - } - ] - }, - { - "kind": "method", - "name": "firstUpdated", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - }, - "parameters": [ - { - "name": "changedProperties", - "type": { - "text": "import('lit-element').PropertyValues" - } - } - ] - } - ] - }, - { - "kind": "function", - "name": "DisabledWithTabIndexMixinImplementation", - "return": { - "type": { - "text": "T & Constructor & Constructor" - } - }, - "parameters": [ - { - "name": "superclass", - "type": { - "text": "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": { - "text": "SlotsMap" - } - }, - { - "kind": "method", - "name": "_connectSlotMixin", - "privacy": "protected", - "description": "Starts the creation of slots", - "return": { - "type": { - "text": "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": { - "text": "boolean" - } - }, - "parameters": [ - { - "name": "slotName", - "type": { - "text": "string" - }, - "description": "Name of the slot" - } - ] - }, - { - "kind": "method", - "name": "connectedCallback", - "privacy": "public", - "return": { - "type": { - "text": "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": { - "text": "T & Constructor & typeof SlotHost" - } - }, - "parameters": [ - { - "name": "superclass", - "type": { - "text": "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": { - "text": "void" - } - }, - "parameters": [ - { - "name": "updateStyles", - "type": { - "text": "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": [] - } - ] -} \ No newline at end of file diff --git a/packages/core/package.json b/packages/core/package.json index af7f8dc3e..4ac1138ec 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -15,6 +15,7 @@ "files": [ "*.d.ts", "*.js", + "custom-elements.json", "docs", "src", "test", @@ -27,7 +28,7 @@ "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", - "prepublishOnly": "../../scripts/npm-prepublish.js", + "prepublishOnly": "../../scripts/npm-prepublish.js && npm run custom-elements-manifest", "test": "cd ../../ && npm run test:browser -- --group core" }, "sideEffects": [ @@ -54,4 +55,4 @@ "./differentKeyEventNamesShimIE": "./src/differentKeyEventNamesShimIE.js" }, "customElementsManifest": "custom-elements.json" -} \ No newline at end of file +} diff --git a/packages/dialog/custom-elements.json b/packages/dialog/custom-elements.json deleted file mode 100644 index 86e495e83..000000000 --- a/packages/dialog/custom-elements.json +++ /dev/null @@ -1,163 +0,0 @@ -{ - "schemaVersion": "0.1.0", - "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": { - "text": "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" - } - } - ] - } - ] -} \ No newline at end of file diff --git a/packages/dialog/package.json b/packages/dialog/package.json index 1e596f2c6..170bb0929 100644 --- a/packages/dialog/package.json +++ b/packages/dialog/package.json @@ -15,6 +15,7 @@ "files": [ "*.d.ts", "*.js", + "custom-elements.json", "docs", "src", "test", @@ -27,7 +28,7 @@ "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", - "prepublishOnly": "../../scripts/npm-prepublish.js", + "prepublishOnly": "../../scripts/npm-prepublish.js && npm run custom-elements-manifest", "test": "cd ../../ && npm run test:browser -- --group dialog" }, "sideEffects": [ @@ -51,4 +52,4 @@ "./lion-dialog": "./lion-dialog.js" }, "customElementsManifest": "custom-elements.json" -} \ No newline at end of file +} diff --git a/packages/fieldset/custom-elements.json b/packages/fieldset/custom-elements.json deleted file mode 100644 index a07dc0450..000000000 --- a/packages/fieldset/custom-elements.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "schemaVersion": "0.1.0", - "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" - } - } - ] - } - ] -} \ No newline at end of file diff --git a/packages/fieldset/package.json b/packages/fieldset/package.json index d586911bd..9e0c2fb3c 100644 --- a/packages/fieldset/package.json +++ b/packages/fieldset/package.json @@ -15,6 +15,7 @@ "files": [ "*.d.ts", "*.js", + "custom-elements.json", "docs", "src", "test", @@ -27,7 +28,7 @@ "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", - "prepublishOnly": "../../scripts/npm-prepublish.js", + "prepublishOnly": "../../scripts/npm-prepublish.js && npm run custom-elements-manifest", "test": "cd ../../ && npm run test:browser -- --group fieldset" }, "sideEffects": [ @@ -51,4 +52,4 @@ "./lion-fieldset": "./lion-fieldset.js" }, "customElementsManifest": "custom-elements.json" -} \ No newline at end of file +} diff --git a/packages/form-core/custom-elements.json b/packages/form-core/custom-elements.json deleted file mode 100644 index e5adf98f9..000000000 --- a/packages/form-core/custom-elements.json +++ /dev/null @@ -1,10396 +0,0 @@ -{ - "schemaVersion": "0.1.0", - "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", - "parameters": [ - { - "name": "superclass", - "type": { - "text": "LitElement>" - }, - "description": "" - } - ], - "events": [ - { - "name": "focus", - "type": { - "text": "Event" - } - }, - { - "name": "blur", - "type": { - "text": "Event" - } - }, - { - "name": "focusin", - "type": { - "text": "Event" - } - }, - { - "name": "focusout", - "type": { - "text": "Event" - } - } - ], - "mixins": [ - { - "name": "FormControlMixin", - "module": "/src/FormControlMixin.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" - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "FocusMixin", - "declaration": { - "name": "FocusMixin", - "module": "./src/FocusMixin.js" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "./src/FormControlMixin.js", - "declarations": [ - { - "kind": "mixin", - "name": "FormControlMixin", - "parameters": [ - { - "name": "superclass", - "type": { - "text": "LitElement>" - }, - "description": "" - } - ], - "events": [ - { - "name": "form-element-name-changed", - "type": { - "text": "CustomEvent" - } - }, - { - "name": "model-value-changed", - "type": { - "text": "CustomEvent" - } - } - ], - "mixins": [ - { - "name": "FormRegisteringMixin", - "module": "/src/registration/FormRegisteringMixin.js" - }, - { - "name": "DisabledMixin", - "package": "@lion/core" - }, - { - "name": "SlotMixin", - "package": "@lion/core" - } - ], - "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": { - "text": "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": { - "text": "HTMLElement[]" - }, - "default": "[]" - }, - { - "kind": "field", - "name": "_ariaDescribedNodes", - "privacy": "public", - "type": { - "text": "HTMLElement[]" - }, - "default": "[]" - }, - { - "kind": "field", - "name": "_repropagationRole", - "privacy": "public", - "type": { - "text": "'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": { - "text": "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": { - "text": "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": { - "text": "string" - } - }, - { - "name": "nodes", - "type": { - "text": "HTMLElement[]" - } - }, - { - "name": "reorder", - "type": { - "text": "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": { - "text": "TemplateResult" - } - } - }, - { - "kind": "method", - "name": "_groupTwoTemplate", - "privacy": "public", - "return": { - "type": { - "text": "TemplateResult" - } - } - }, - { - "kind": "method", - "name": "_labelTemplate", - "privacy": "public", - "return": { - "type": { - "text": "TemplateResult" - } - } - }, - { - "kind": "method", - "name": "_helpTextTemplate", - "privacy": "public", - "return": { - "type": { - "text": "TemplateResult" - } - } - }, - { - "kind": "method", - "name": "_inputGroupTemplate", - "privacy": "public", - "return": { - "type": { - "text": "TemplateResult" - } - } - }, - { - "kind": "method", - "name": "_inputGroupBeforeTemplate", - "privacy": "public", - "return": { - "type": { - "text": "TemplateResult" - } - } - }, - { - "kind": "method", - "name": "_inputGroupPrefixTemplate", - "privacy": "public", - "return": { - "type": { - "text": "TemplateResult | nothing" - } - } - }, - { - "kind": "method", - "name": "_inputGroupInputTemplate", - "privacy": "public", - "return": { - "type": { - "text": "TemplateResult" - } - } - }, - { - "kind": "method", - "name": "_inputGroupSuffixTemplate", - "privacy": "public", - "return": { - "type": { - "text": "TemplateResult | nothing" - } - } - }, - { - "kind": "method", - "name": "_inputGroupAfterTemplate", - "privacy": "public", - "return": { - "type": { - "text": "TemplateResult" - } - } - }, - { - "kind": "method", - "name": "_feedbackTemplate", - "privacy": "public", - "return": { - "type": { - "text": "TemplateResult" - } - } - }, - { - "kind": "method", - "name": "_isEmpty", - "privacy": "public", - "return": { - "type": { - "text": "boolean" - } - }, - "parameters": [ - { - "name": "modelValue", - "type": { - "text": "?" - }, - "default": "this.modelValue" - } - ] - }, - { - "kind": "method", - "name": "_getAriaDescriptionElements", - "privacy": "public", - "return": { - "type": { - "text": "Array." - } - } - }, - { - "kind": "method", - "name": "addToAriaLabelledBy", - "privacy": "public", - "description": "Meant for Application Developers wanting to add to aria-labelledby attribute.", - "parameters": [ - { - "name": "element", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "customConfig", - "type": { - "text": "{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": { - "text": "HTMLElement" - } - }, - { - "name": "customConfig", - "type": { - "text": "{idPrefix?:string; reorder?: boolean}" - }, - "default": "{}" - } - ] - }, - { - "kind": "method", - "name": "__getDirectSlotChild", - "privacy": "public", - "return": { - "type": { - "text": "HTMLElement | undefined" - } - }, - "parameters": [ - { - "name": "slotName", - "type": { - "text": "string" - } - } - ] - }, - { - "kind": "method", - "name": "__dispatchInitialModelValueChangedEvent", - "privacy": "public" - }, - { - "kind": "method", - "name": "_onBeforeRepropagateChildrenValues", - "privacy": "public", - "parameters": [ - { - "name": "ev", - "type": { - "text": "CustomEvent" - } - } - ] - }, - { - "kind": "method", - "name": "__repropagateChildrenValues", - "privacy": "public", - "parameters": [ - { - "name": "ev", - "type": { - "text": "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": { - "text": "EventTarget & ChoiceInputHost" - } - } - ] - }, - { - "kind": "method", - "name": "_onLabelClick", - "privacy": "public" - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "FormControlMixin", - "declaration": { - "name": "FormControlMixin", - "module": "./src/FormControlMixin.js" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "./src/FormatMixin.js", - "declarations": [ - { - "kind": "mixin", - "name": "FormatMixin", - "parameters": [ - { - "name": "superclass", - "type": { - "text": "LitElement>" - }, - "description": "" - } - ], - "events": [ - { - "name": "model-value-changed", - "type": { - "text": "CustomEvent" - } - }, - { - "name": "user-input-changed", - "type": { - "text": "CustomEvent" - } - } - ], - "mixins": [ - { - "name": "ValidateMixin", - "module": "/src/validate/ValidateMixin.js" - }, - { - "name": "FormControlMixin", - "module": "/src/FormControlMixin.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": { - "text": "string" - } - }, - { - "name": "oldVal", - "type": { - "text": "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": { - "text": "*" - } - }, - "parameters": [ - { - "name": "v", - "type": { - "text": "string" - }, - "description": "formattedValue: the formatted value inside " - }, - { - "name": "opts", - "type": { - "text": "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": { - "text": "string" - } - }, - "parameters": [ - { - "name": "v", - "type": { - "text": "*" - }, - "description": "modelValue: can be an Object, Number, String depending on the\ninput type(date, number, email etc)" - }, - { - "name": "opts", - "type": { - "text": "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": { - "text": "string" - } - }, - "parameters": [ - { - "name": "v", - "type": { - "text": "?" - }, - "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": { - "text": "?" - } - }, - "parameters": [ - { - "name": "v", - "type": { - "text": "?" - }, - "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": { - "text": "{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": { - "text": "?" - } - }, - "parameters": [ - { - "name": "value", - "type": { - "text": "string|undefined" - }, - "default": "this.formattedValue" - } - ] - }, - { - "kind": "method", - "name": "__callFormatter", - "privacy": "public", - "return": { - "type": { - "text": "string|undefined" - } - } - }, - { - "kind": "method", - "name": "_onModelValueChanged", - "privacy": "public", - "description": "Observer Handlers", - "parameters": [ - { - "name": "args", - "type": { - "text": "{ modelValue: unknown; }[]" - } - } - ] - }, - { - "kind": "method", - "name": "_dispatchModelValueChangedEvent", - "privacy": "public", - "parameters": [ - { - "name": "args", - "type": { - "text": "{ 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": { - "text": "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" - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "FormatMixin", - "declaration": { - "name": "FormatMixin", - "module": "./src/FormatMixin.js" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "./src/InteractionStateMixin.js", - "declarations": [ - { - "kind": "mixin", - "name": "InteractionStateMixin", - "parameters": [ - { - "name": "superclass", - "type": { - "text": "LitElement>" - }, - "description": "" - } - ], - "events": [ - { - "name": "touched-changed", - "type": { - "text": "CustomEvent" - } - }, - { - "name": "dirty-changed", - "type": { - "text": "CustomEvent" - } - } - ], - "mixins": [ - { - "name": "FormControlMixin", - "module": "/src/FormControlMixin.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": { - "text": "PropertyKey" - } - }, - { - "name": "oldVal", - "type": { - "text": "*" - } - } - ] - }, - { - "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." - } - ] - } - ], - "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": { - "text": "CustomEvent" - } - }, - { - "name": "form-element-name-changed", - "type": { - "text": "CustomEvent" - }, - "inheritedFrom": { - "name": "FormControlMixin", - "module": "./src/FormControlMixin.js" - } - }, - { - "name": "model-value-changed", - "type": { - "text": "CustomEvent" - }, - "inheritedFrom": { - "name": "FormControlMixin", - "module": "./src/FormControlMixin.js" - } - }, - { - "name": "touched-changed", - "type": { - "text": "CustomEvent" - }, - "inheritedFrom": { - "name": "InteractionStateMixin", - "module": "./src/InteractionStateMixin.js" - } - }, - { - "name": "dirty-changed", - "type": { - "text": "CustomEvent" - }, - "inheritedFrom": { - "name": "InteractionStateMixin", - "module": "./src/InteractionStateMixin.js" - } - }, - { - "name": "focus", - "type": { - "text": "Event" - }, - "inheritedFrom": { - "name": "FocusMixin", - "module": "./src/FocusMixin.js" - } - }, - { - "name": "blur", - "type": { - "text": "Event" - }, - "inheritedFrom": { - "name": "FocusMixin", - "module": "./src/FocusMixin.js" - } - }, - { - "name": "focusin", - "type": { - "text": "Event" - }, - "inheritedFrom": { - "name": "FocusMixin", - "module": "./src/FocusMixin.js" - } - }, - { - "name": "focusout", - "type": { - "text": "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": { - "text": "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": { - "text": "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": { - "text": "HTMLElement[]" - }, - "default": "[]", - "inheritedFrom": { - "name": "FormControlMixin", - "module": "./src/FormControlMixin.js" - } - }, - { - "kind": "field", - "name": "_ariaDescribedNodes", - "privacy": "public", - "type": { - "text": "HTMLElement[]" - }, - "default": "[]", - "inheritedFrom": { - "name": "FormControlMixin", - "module": "./src/FormControlMixin.js" - } - }, - { - "kind": "field", - "name": "_repropagationRole", - "privacy": "public", - "type": { - "text": "'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": { - "text": "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": { - "text": "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": { - "text": "string" - } - }, - { - "name": "nodes", - "type": { - "text": "HTMLElement[]" - } - }, - { - "name": "reorder", - "type": { - "text": "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": { - "text": "TemplateResult" - } - }, - "inheritedFrom": { - "name": "FormControlMixin", - "module": "./src/FormControlMixin.js" - } - }, - { - "kind": "method", - "name": "_groupTwoTemplate", - "privacy": "public", - "return": { - "type": { - "text": "TemplateResult" - } - }, - "inheritedFrom": { - "name": "FormControlMixin", - "module": "./src/FormControlMixin.js" - } - }, - { - "kind": "method", - "name": "_labelTemplate", - "privacy": "public", - "return": { - "type": { - "text": "TemplateResult" - } - }, - "inheritedFrom": { - "name": "FormControlMixin", - "module": "./src/FormControlMixin.js" - } - }, - { - "kind": "method", - "name": "_helpTextTemplate", - "privacy": "public", - "return": { - "type": { - "text": "TemplateResult" - } - }, - "inheritedFrom": { - "name": "FormControlMixin", - "module": "./src/FormControlMixin.js" - } - }, - { - "kind": "method", - "name": "_inputGroupTemplate", - "privacy": "public", - "return": { - "type": { - "text": "TemplateResult" - } - }, - "inheritedFrom": { - "name": "FormControlMixin", - "module": "./src/FormControlMixin.js" - } - }, - { - "kind": "method", - "name": "_inputGroupBeforeTemplate", - "privacy": "public", - "return": { - "type": { - "text": "TemplateResult" - } - }, - "inheritedFrom": { - "name": "FormControlMixin", - "module": "./src/FormControlMixin.js" - } - }, - { - "kind": "method", - "name": "_inputGroupPrefixTemplate", - "privacy": "public", - "return": { - "type": { - "text": "TemplateResult | nothing" - } - }, - "inheritedFrom": { - "name": "FormControlMixin", - "module": "./src/FormControlMixin.js" - } - }, - { - "kind": "method", - "name": "_inputGroupInputTemplate", - "privacy": "public", - "return": { - "type": { - "text": "TemplateResult" - } - }, - "inheritedFrom": { - "name": "FormControlMixin", - "module": "./src/FormControlMixin.js" - } - }, - { - "kind": "method", - "name": "_inputGroupSuffixTemplate", - "privacy": "public", - "return": { - "type": { - "text": "TemplateResult | nothing" - } - }, - "inheritedFrom": { - "name": "FormControlMixin", - "module": "./src/FormControlMixin.js" - } - }, - { - "kind": "method", - "name": "_inputGroupAfterTemplate", - "privacy": "public", - "return": { - "type": { - "text": "TemplateResult" - } - }, - "inheritedFrom": { - "name": "FormControlMixin", - "module": "./src/FormControlMixin.js" - } - }, - { - "kind": "method", - "name": "_feedbackTemplate", - "privacy": "public", - "return": { - "type": { - "text": "TemplateResult" - } - }, - "inheritedFrom": { - "name": "FormControlMixin", - "module": "./src/FormControlMixin.js" - } - }, - { - "kind": "method", - "name": "_isEmpty", - "privacy": "public", - "return": { - "type": { - "text": "boolean" - } - }, - "parameters": [ - { - "name": "modelValue", - "type": { - "text": "?" - }, - "default": "this.modelValue" - } - ], - "inheritedFrom": { - "name": "FormControlMixin", - "module": "./src/FormControlMixin.js" - } - }, - { - "kind": "method", - "name": "_getAriaDescriptionElements", - "privacy": "public", - "return": { - "type": { - "text": "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": { - "text": "HTMLElement" - } - }, - { - "name": "customConfig", - "type": { - "text": "{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": { - "text": "HTMLElement" - } - }, - { - "name": "customConfig", - "type": { - "text": "{idPrefix?:string; reorder?: boolean}" - }, - "default": "{}" - } - ], - "inheritedFrom": { - "name": "FormControlMixin", - "module": "./src/FormControlMixin.js" - } - }, - { - "kind": "method", - "name": "__getDirectSlotChild", - "privacy": "public", - "return": { - "type": { - "text": "HTMLElement | undefined" - } - }, - "parameters": [ - { - "name": "slotName", - "type": { - "text": "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": { - "text": "CustomEvent" - } - } - ], - "inheritedFrom": { - "name": "FormControlMixin", - "module": "./src/FormControlMixin.js" - } - }, - { - "kind": "method", - "name": "__repropagateChildrenValues", - "privacy": "public", - "parameters": [ - { - "name": "ev", - "type": { - "text": "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": { - "text": "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": { - "text": "PropertyKey" - } - }, - { - "name": "oldVal", - "type": { - "text": "*" - } - } - ], - "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": { - "text": "*" - } - }, - "parameters": [ - { - "name": "v", - "type": { - "text": "string" - }, - "description": "formattedValue: the formatted value inside " - }, - { - "name": "opts", - "type": { - "text": "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": { - "text": "string" - } - }, - "parameters": [ - { - "name": "v", - "type": { - "text": "*" - }, - "description": "modelValue: can be an Object, Number, String depending on the\ninput type(date, number, email etc)" - }, - { - "name": "opts", - "type": { - "text": "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": { - "text": "string" - } - }, - "parameters": [ - { - "name": "v", - "type": { - "text": "?" - }, - "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": { - "text": "?" - } - }, - "parameters": [ - { - "name": "v", - "type": { - "text": "?" - }, - "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": { - "text": "{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": { - "text": "?" - } - }, - "parameters": [ - { - "name": "value", - "type": { - "text": "string|undefined" - }, - "default": "this.formattedValue" - } - ], - "inheritedFrom": { - "name": "FormatMixin", - "module": "./src/FormatMixin.js" - } - }, - { - "kind": "method", - "name": "__callFormatter", - "privacy": "public", - "return": { - "type": { - "text": "string|undefined" - } - }, - "inheritedFrom": { - "name": "FormatMixin", - "module": "./src/FormatMixin.js" - } - }, - { - "kind": "method", - "name": "_onModelValueChanged", - "privacy": "public", - "description": "Observer Handlers", - "parameters": [ - { - "name": "args", - "type": { - "text": "{ modelValue: unknown; }[]" - } - } - ], - "inheritedFrom": { - "name": "FormatMixin", - "module": "./src/FormatMixin.js" - } - }, - { - "kind": "method", - "name": "_dispatchModelValueChangedEvent", - "privacy": "public", - "parameters": [ - { - "name": "args", - "type": { - "text": "{ 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": { - "text": "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", - "parameters": [ - { - "name": "superclass}", - "type": { - "text": "NativeTextField>" - }, - "description": "superclass" - } - ], - "members": [ - { - "kind": "field", - "name": "selectionStart", - "privacy": "public", - "type": { - "text": "number" - } - }, - { - "kind": "field", - "name": "selectionEnd", - "privacy": "public", - "type": { - "text": "number" - } - }, - { - "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": { - "text": "string" - }, - "description": "The value that should be saved." - } - ] - } - ] - } - ], - "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": { - "text": "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": { - "text": "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": { - "text": "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": { - "text": "boolean" - } - }, - { - "kind": "method", - "name": "connectedCallback", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "disconnectedCallback", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "focus", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "blur", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "__onFocus", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "__onBlur", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "__registerEventsForFocusMixin", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "__teardownEventsForFocusMixin", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - } - ] - }, - { - "kind": "function", - "name": "FocusImplementation", - "return": { - "type": { - "text": "T & Constructor & FocusHost & Constructor & typeof FormControlHost" - } - }, - "parameters": [ - { - "name": "superclass", - "type": { - "text": "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": { - "text": "boolean" - } - }, - { - "kind": "field", - "name": "name", - "privacy": "public", - "type": { - "text": "string" - } - }, - { - "kind": "field", - "name": "modelValue", - "privacy": "public", - "type": { - "text": "unknown" - } - }, - { - "kind": "field", - "name": "label", - "privacy": "public", - "type": { - "text": "string" - } - }, - { - "kind": "field", - "name": "__label", - "privacy": "public", - "type": { - "text": "string | undefined" - } - }, - { - "kind": "field", - "name": "helpText", - "privacy": "public", - "type": { - "text": "string" - } - }, - { - "kind": "field", - "name": "__helpText", - "privacy": "public", - "type": { - "text": "string | undefined" - } - }, - { - "kind": "field", - "name": "fieldName", - "privacy": "public" - }, - { - "kind": "field", - "name": "__fieldName", - "privacy": "public", - "type": { - "text": "string | undefined" - } - }, - { - "kind": "field", - "name": "slots", - "privacy": "public", - "type": { - "text": "SlotsMap" - } - }, - { - "kind": "field", - "name": "_inputNode", - "privacy": "public", - "type": { - "text": "HTMLElementWithValue" - } - }, - { - "kind": "field", - "name": "_labelNode", - "privacy": "public", - "type": { - "text": "HTMLElement" - } - }, - { - "kind": "field", - "name": "_helpTextNode", - "privacy": "public", - "type": { - "text": "HTMLElement" - } - }, - { - "kind": "field", - "name": "_feedbackNode", - "privacy": "public", - "type": { - "text": "LionValidationFeedback | undefined" - } - }, - { - "kind": "field", - "name": "_inputId", - "privacy": "public", - "type": { - "text": "string" - } - }, - { - "kind": "field", - "name": "_ariaLabelledNodes", - "privacy": "public", - "type": { - "text": "HTMLElement[]" - } - }, - { - "kind": "field", - "name": "_ariaDescribedNodes", - "privacy": "public", - "type": { - "text": "HTMLElement[]" - } - }, - { - "kind": "field", - "name": "_repropagationRole", - "privacy": "public", - "type": { - "text": "'child' | 'choice-group' | 'fieldset'" - } - }, - { - "kind": "field", - "name": "_isRepropagationEndpoint", - "privacy": "public", - "type": { - "text": "boolean" - } - }, - { - "kind": "method", - "name": "connectedCallback", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "updated", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - }, - "parameters": [ - { - "name": "changedProperties", - "type": { - "text": "import('@lion/core').PropertyValues" - } - } - ] - }, - { - "kind": "method", - "name": "render", - "privacy": "public", - "return": { - "type": { - "text": "TemplateResult" - } - } - }, - { - "kind": "method", - "name": "_groupOneTemplate", - "privacy": "public", - "return": { - "type": { - "text": "TemplateResult" - } - } - }, - { - "kind": "method", - "name": "_groupTwoTemplate", - "privacy": "public", - "return": { - "type": { - "text": "TemplateResult" - } - } - }, - { - "kind": "method", - "name": "_labelTemplate", - "privacy": "public", - "return": { - "type": { - "text": "TemplateResult" - } - } - }, - { - "kind": "method", - "name": "_helpTextTemplate", - "privacy": "public", - "return": { - "type": { - "text": "TemplateResult" - } - } - }, - { - "kind": "method", - "name": "_inputGroupTemplate", - "privacy": "public", - "return": { - "type": { - "text": "TemplateResult" - } - } - }, - { - "kind": "method", - "name": "_inputGroupBeforeTemplate", - "privacy": "public", - "return": { - "type": { - "text": "TemplateResult" - } - } - }, - { - "kind": "method", - "name": "_inputGroupPrefixTemplate", - "privacy": "public", - "return": { - "type": { - "text": "TemplateResult | typeof nothing" - } - } - }, - { - "kind": "method", - "name": "_inputGroupInputTemplate", - "privacy": "public", - "return": { - "type": { - "text": "TemplateResult" - } - } - }, - { - "kind": "method", - "name": "_inputGroupSuffixTemplate", - "privacy": "public", - "return": { - "type": { - "text": "TemplateResult | typeof nothing" - } - } - }, - { - "kind": "method", - "name": "_inputGroupAfterTemplate", - "privacy": "public", - "return": { - "type": { - "text": "TemplateResult" - } - } - }, - { - "kind": "method", - "name": "_feedbackTemplate", - "privacy": "public", - "return": { - "type": { - "text": "TemplateResult" - } - } - }, - { - "kind": "method", - "name": "_triggerInitialModelValueChangedEvent", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "_enhanceLightDomClasses", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "_enhanceLightDomA11y", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "_enhanceLightDomA11yForAdditionalSlots", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - }, - "parameters": [ - { - "name": "additionalSlots", - "type": { - "text": "string[]" - } - } - ] - }, - { - "kind": "method", - "name": "__reflectAriaAttr", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - }, - "parameters": [ - { - "name": "attrName", - "type": { - "text": "string" - } - }, - { - "name": "nodes", - "type": { - "text": "HTMLElement[]" - } - }, - { - "name": "reorder", - "type": { - "text": "boolean | undefined" - } - } - ] - }, - { - "kind": "method", - "name": "_isEmpty", - "privacy": "public", - "return": { - "type": { - "text": "boolean" - } - }, - "parameters": [ - { - "name": "modelValue", - "type": { - "text": "unknown" - } - } - ] - }, - { - "kind": "method", - "name": "_getAriaDescriptionElements", - "privacy": "public", - "return": { - "type": { - "text": "HTMLElement[]" - } - } - }, - { - "kind": "method", - "name": "addToAriaLabelledBy", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - }, - "parameters": [ - { - "name": "element", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "customConfig", - "type": { - "text": "{\n idPrefix?: string | undefined;\n reorder?: boolean | undefined;\n }" - } - } - ] - }, - { - "kind": "field", - "name": "__reorderAriaLabelledNodes", - "privacy": "public", - "type": { - "text": "boolean | undefined" - } - }, - { - "kind": "method", - "name": "addToAriaDescribedBy", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - }, - "parameters": [ - { - "name": "element", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "customConfig", - "type": { - "text": "{\n idPrefix?: string | undefined;\n reorder?: boolean | undefined;\n }" - } - } - ] - }, - { - "kind": "field", - "name": "__reorderAriaDescribedNodes", - "privacy": "public", - "type": { - "text": "boolean | undefined" - } - }, - { - "kind": "method", - "name": "__getDirectSlotChild", - "privacy": "public", - "return": { - "type": { - "text": "HTMLElement" - } - }, - "parameters": [ - { - "name": "slotName", - "type": { - "text": "string" - } - } - ] - }, - { - "kind": "method", - "name": "__dispatchInitialModelValueChangedEvent", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "field", - "name": "__repropagateChildrenInitialized", - "privacy": "public", - "type": { - "text": "boolean | undefined" - } - }, - { - "kind": "method", - "name": "_onBeforeRepropagateChildrenValues", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - }, - "parameters": [ - { - "name": "ev", - "type": { - "text": "CustomEvent" - } - } - ] - }, - { - "kind": "method", - "name": "__repropagateChildrenValues", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - }, - "parameters": [ - { - "name": "ev", - "type": { - "text": "CustomEvent" - } - } - ] - } - ] - }, - { - "kind": "function", - "name": "FormControlImplementation", - "return": { - "type": { - "text": "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": { - "text": "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": { - "text": "string" - } - }, - { - "kind": "field", - "name": "serializedValue", - "privacy": "public", - "type": { - "text": "string" - } - }, - { - "kind": "field", - "name": "formatOn", - "privacy": "public", - "type": { - "text": "string" - } - }, - { - "kind": "field", - "name": "formatOptions", - "privacy": "public", - "type": { - "text": "FormatNumberOptions" - } - }, - { - "kind": "field", - "name": "__preventRecursiveTrigger", - "privacy": "public", - "type": { - "text": "boolean" - } - }, - { - "kind": "field", - "name": "__isHandlingUserInput", - "privacy": "public", - "type": { - "text": "boolean" - } - }, - { - "kind": "method", - "name": "parser", - "privacy": "public", - "return": { - "type": { - "text": "unknown" - } - }, - "parameters": [ - { - "name": "v", - "type": { - "text": "string" - } - }, - { - "name": "opts", - "type": { - "text": "FormatNumberOptions" - } - } - ] - }, - { - "kind": "method", - "name": "formatter", - "privacy": "public", - "return": { - "type": { - "text": "string" - } - }, - "parameters": [ - { - "name": "v", - "type": { - "text": "unknown" - } - }, - { - "name": "opts", - "type": { - "text": "FormatNumberOptions" - } - } - ] - }, - { - "kind": "method", - "name": "serializer", - "privacy": "public", - "return": { - "type": { - "text": "string" - } - }, - "parameters": [ - { - "name": "v", - "type": { - "text": "unknown" - } - } - ] - }, - { - "kind": "method", - "name": "deserializer", - "privacy": "public", - "return": { - "type": { - "text": "unknown" - } - }, - "parameters": [ - { - "name": "v", - "type": { - "text": "string" - } - } - ] - }, - { - "kind": "field", - "name": "value", - "privacy": "public", - "type": { - "text": "string" - } - }, - { - "kind": "method", - "name": "_calculateValues", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - }, - "parameters": [ - { - "name": "opts", - "type": { - "text": "{ source: 'model' | 'serialized' | 'formatted' | null }" - } - } - ] - }, - { - "kind": "method", - "name": "__callParser", - "privacy": "public", - "return": { - "type": { - "text": "object" - } - }, - "parameters": [ - { - "name": "value", - "type": { - "text": "string | undefined" - } - } - ] - }, - { - "kind": "method", - "name": "__callFormatter", - "privacy": "public", - "return": { - "type": { - "text": "string" - } - } - }, - { - "kind": "method", - "name": "_onModelValueChanged", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - }, - "parameters": [ - { - "name": "arg", - "type": { - "text": "{ modelValue: unknown }" - } - } - ] - }, - { - "kind": "method", - "name": "_dispatchModelValueChangedEvent", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "_syncValueUpwards", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "_reflectBackFormattedValueToUser", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "_reflectBackFormattedValueDebounced", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "_reflectBackOn", - "privacy": "public", - "return": { - "type": { - "text": "boolean" - } - } - }, - { - "kind": "method", - "name": "_proxyInputEvent", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "_onUserInputChanged", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "connectedCallback", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "disconnectedCallback", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - } - ] - }, - { - "kind": "function", - "name": "FormatImplementation", - "return": { - "type": { - "text": "T &\n Constructor &\n FormatHost &\n Constructor &\n typeof ValidateHost &\n Constructor &\n typeof FormControlHost" - } - }, - "parameters": [ - { - "name": "superclass", - "type": { - "text": "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": { - "text": "boolean" - } - }, - { - "kind": "field", - "name": "filled", - "privacy": "public", - "type": { - "text": "boolean" - } - }, - { - "kind": "field", - "name": "touched", - "privacy": "public", - "type": { - "text": "boolean" - } - }, - { - "kind": "field", - "name": "dirty", - "privacy": "public", - "type": { - "text": "boolean" - } - }, - { - "kind": "field", - "name": "submitted", - "privacy": "public", - "type": { - "text": "boolean" - } - }, - { - "kind": "field", - "name": "_leaveEvent", - "privacy": "public", - "type": { - "text": "string" - } - }, - { - "kind": "field", - "name": "_valueChangedEvent", - "privacy": "public", - "type": { - "text": "string" - } - }, - { - "kind": "method", - "name": "connectedCallback", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "disconnectedCallback", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "initInteractionState", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "resetInteractionState", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "_iStateOnLeave", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "_iStateOnValueChange", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "_onTouchedChanged", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "_onDirtyChanged", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - } - ] - }, - { - "kind": "function", - "name": "InteractionStateImplementation", - "return": { - "type": { - "text": "T &\n Constructor &\n typeof InteractionStateHost &\n Constructor &\n typeof FormControlHost" - } - }, - "parameters": [ - { - "name": "superclass", - "type": { - "text": "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": { - "text": "HTMLTextAreaElement | HTMLInputElement" - } - }, - { - "kind": "field", - "name": "name", - "privacy": "public", - "type": { - "text": "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": { - "text": "HTMLElement[]" - }, - "default": "[]", - "inheritedFrom": { - "name": "FormControlMixin", - "module": "./src/FormControlMixin.js" - } - }, - { - "kind": "field", - "name": "_ariaDescribedNodes", - "privacy": "public", - "type": { - "text": "HTMLElement[]" - }, - "default": "[]", - "inheritedFrom": { - "name": "FormControlMixin", - "module": "./src/FormControlMixin.js" - } - }, - { - "kind": "field", - "name": "_repropagationRole", - "privacy": "public", - "type": { - "text": "'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": { - "text": "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": { - "text": "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": { - "text": "string" - } - }, - { - "name": "nodes", - "type": { - "text": "HTMLElement[]" - } - }, - { - "name": "reorder", - "type": { - "text": "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": { - "text": "TemplateResult" - } - }, - "inheritedFrom": { - "name": "FormControlMixin", - "module": "./src/FormControlMixin.js" - } - }, - { - "kind": "method", - "name": "_groupTwoTemplate", - "privacy": "public", - "return": { - "type": { - "text": "TemplateResult" - } - }, - "inheritedFrom": { - "name": "FormControlMixin", - "module": "./src/FormControlMixin.js" - } - }, - { - "kind": "method", - "name": "_labelTemplate", - "privacy": "public", - "return": { - "type": { - "text": "TemplateResult" - } - }, - "inheritedFrom": { - "name": "FormControlMixin", - "module": "./src/FormControlMixin.js" - } - }, - { - "kind": "method", - "name": "_helpTextTemplate", - "privacy": "public", - "return": { - "type": { - "text": "TemplateResult" - } - }, - "inheritedFrom": { - "name": "FormControlMixin", - "module": "./src/FormControlMixin.js" - } - }, - { - "kind": "method", - "name": "_inputGroupTemplate", - "privacy": "public", - "return": { - "type": { - "text": "TemplateResult" - } - }, - "inheritedFrom": { - "name": "FormControlMixin", - "module": "./src/FormControlMixin.js" - } - }, - { - "kind": "method", - "name": "_inputGroupBeforeTemplate", - "privacy": "public", - "return": { - "type": { - "text": "TemplateResult" - } - }, - "inheritedFrom": { - "name": "FormControlMixin", - "module": "./src/FormControlMixin.js" - } - }, - { - "kind": "method", - "name": "_inputGroupPrefixTemplate", - "privacy": "public", - "return": { - "type": { - "text": "TemplateResult | nothing" - } - }, - "inheritedFrom": { - "name": "FormControlMixin", - "module": "./src/FormControlMixin.js" - } - }, - { - "kind": "method", - "name": "_inputGroupInputTemplate", - "privacy": "public", - "return": { - "type": { - "text": "TemplateResult" - } - }, - "inheritedFrom": { - "name": "FormControlMixin", - "module": "./src/FormControlMixin.js" - } - }, - { - "kind": "method", - "name": "_inputGroupSuffixTemplate", - "privacy": "public", - "return": { - "type": { - "text": "TemplateResult | nothing" - } - }, - "inheritedFrom": { - "name": "FormControlMixin", - "module": "./src/FormControlMixin.js" - } - }, - { - "kind": "method", - "name": "_inputGroupAfterTemplate", - "privacy": "public", - "return": { - "type": { - "text": "TemplateResult" - } - }, - "inheritedFrom": { - "name": "FormControlMixin", - "module": "./src/FormControlMixin.js" - } - }, - { - "kind": "method", - "name": "_feedbackTemplate", - "privacy": "public", - "return": { - "type": { - "text": "TemplateResult" - } - }, - "inheritedFrom": { - "name": "FormControlMixin", - "module": "./src/FormControlMixin.js" - } - }, - { - "kind": "method", - "name": "_isEmpty", - "privacy": "public", - "return": { - "type": { - "text": "boolean" - } - }, - "parameters": [ - { - "name": "modelValue", - "type": { - "text": "?" - }, - "default": "this.modelValue" - } - ], - "inheritedFrom": { - "name": "FormControlMixin", - "module": "./src/FormControlMixin.js" - } - }, - { - "kind": "method", - "name": "_getAriaDescriptionElements", - "privacy": "public", - "return": { - "type": { - "text": "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": { - "text": "HTMLElement" - } - }, - { - "name": "customConfig", - "type": { - "text": "{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": { - "text": "HTMLElement" - } - }, - { - "name": "customConfig", - "type": { - "text": "{idPrefix?:string; reorder?: boolean}" - }, - "default": "{}" - } - ], - "inheritedFrom": { - "name": "FormControlMixin", - "module": "./src/FormControlMixin.js" - } - }, - { - "kind": "method", - "name": "__getDirectSlotChild", - "privacy": "public", - "return": { - "type": { - "text": "HTMLElement | undefined" - } - }, - "parameters": [ - { - "name": "slotName", - "type": { - "text": "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": { - "text": "CustomEvent" - } - } - ], - "inheritedFrom": { - "name": "FormControlMixin", - "module": "./src/FormControlMixin.js" - } - }, - { - "kind": "method", - "name": "__repropagateChildrenValues", - "privacy": "public", - "parameters": [ - { - "name": "ev", - "type": { - "text": "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": { - "text": "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": { - "text": "PropertyKey" - } - }, - { - "name": "oldVal", - "type": { - "text": "*" - } - } - ], - "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": { - "text": "*" - } - }, - "parameters": [ - { - "name": "v", - "type": { - "text": "string" - }, - "description": "formattedValue: the formatted value inside " - }, - { - "name": "opts", - "type": { - "text": "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": { - "text": "string" - } - }, - "parameters": [ - { - "name": "v", - "type": { - "text": "*" - }, - "description": "modelValue: can be an Object, Number, String depending on the\ninput type(date, number, email etc)" - }, - { - "name": "opts", - "type": { - "text": "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": { - "text": "string" - } - }, - "parameters": [ - { - "name": "v", - "type": { - "text": "?" - }, - "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": { - "text": "?" - } - }, - "parameters": [ - { - "name": "v", - "type": { - "text": "?" - }, - "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": { - "text": "{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": { - "text": "?" - } - }, - "parameters": [ - { - "name": "value", - "type": { - "text": "string|undefined" - }, - "default": "this.formattedValue" - } - ], - "inheritedFrom": { - "name": "FormatMixin", - "module": "./src/FormatMixin.js" - } - }, - { - "kind": "method", - "name": "__callFormatter", - "privacy": "public", - "return": { - "type": { - "text": "string|undefined" - } - }, - "inheritedFrom": { - "name": "FormatMixin", - "module": "./src/FormatMixin.js" - } - }, - { - "kind": "method", - "name": "_onModelValueChanged", - "privacy": "public", - "description": "Observer Handlers", - "parameters": [ - { - "name": "args", - "type": { - "text": "{ modelValue: unknown; }[]" - } - } - ], - "inheritedFrom": { - "name": "FormatMixin", - "module": "./src/FormatMixin.js" - } - }, - { - "kind": "method", - "name": "_dispatchModelValueChangedEvent", - "privacy": "public", - "parameters": [ - { - "name": "args", - "type": { - "text": "{ 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": { - "text": "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": { - "text": "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": { - "text": "CustomEvent" - }, - "inheritedFrom": { - "name": "FormControlMixin", - "module": "./src/FormControlMixin.js" - } - }, - { - "name": "model-value-changed", - "type": { - "text": "CustomEvent" - }, - "inheritedFrom": { - "name": "FormControlMixin", - "module": "./src/FormControlMixin.js" - } - }, - { - "name": "touched-changed", - "type": { - "text": "CustomEvent" - }, - "inheritedFrom": { - "name": "InteractionStateMixin", - "module": "./src/InteractionStateMixin.js" - } - }, - { - "name": "dirty-changed", - "type": { - "text": "CustomEvent" - }, - "inheritedFrom": { - "name": "InteractionStateMixin", - "module": "./src/InteractionStateMixin.js" - } - }, - { - "name": "focus", - "type": { - "text": "Event" - }, - "inheritedFrom": { - "name": "FocusMixin", - "module": "./src/FocusMixin.js" - } - }, - { - "name": "blur", - "type": { - "text": "Event" - }, - "inheritedFrom": { - "name": "FocusMixin", - "module": "./src/FocusMixin.js" - } - }, - { - "name": "focusin", - "type": { - "text": "Event" - }, - "inheritedFrom": { - "name": "FocusMixin", - "module": "./src/FocusMixin.js" - } - }, - { - "name": "focusout", - "type": { - "text": "Event" - }, - "inheritedFrom": { - "name": "FocusMixin", - "module": "./src/FocusMixin.js" - } - }, - { - "name": "user-input-changed", - "type": { - "text": "CustomEvent" - }, - "inheritedFrom": { - "name": "FormatMixin", - "module": "./src/FormatMixin.js" - } - } - ] - }, - { - "kind": "class", - "name": "NativeTextFieldHost", - "members": [ - { - "kind": "field", - "name": "selectionStart", - "privacy": "public", - "type": { - "text": "number" - } - }, - { - "kind": "field", - "name": "selectionEnd", - "privacy": "public", - "type": { - "text": "number" - } - } - ] - }, - { - "kind": "function", - "name": "NativeTextFieldImplementation", - "return": { - "type": { - "text": "T & Constructor & NativeTextFieldHost & typeof NativeTextField" - } - }, - "parameters": [ - { - "name": "superclass", - "type": { - "text": "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", - "parameters": [ - { - "name": "superclass", - "type": { - "text": "LitElement>" - }, - "description": "" - } - ], - "mixins": [ - { - "name": "FormRegistrarMixin", - "module": "/src/registration/FormRegistrarMixin.js" - }, - { - "name": "InteractionStateMixin", - "module": "/src/choice-group/InteractionStateMixin.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": { - "text": "PropertyValues" - } - } - ] - }, - { - "kind": "method", - "name": "disconnectedCallback", - "privacy": "public" - }, - { - "kind": "method", - "name": "addFormElement", - "privacy": "public", - "parameters": [ - { - "name": "child", - "type": { - "text": "FormControl" - } - }, - { - "name": "indexToInsertAt", - "type": { - "text": "number" - } - } - ] - }, - { - "kind": "method", - "name": "_triggerInitialModelValueChangedEvent", - "privacy": "public" - }, - { - "kind": "method", - "name": "_getFromAllFormElements", - "privacy": "public", - "parameters": [ - { - "name": "property", - "type": { - "text": "string" - } - }, - { - "name": "filterCondition", - "default": "() => true" - } - ] - }, - { - "kind": "method", - "name": "_throwWhenInvalidChildModelValue", - "privacy": "public", - "parameters": [ - { - "name": "child", - "type": { - "text": "FormControl" - } - } - ] - }, - { - "kind": "method", - "name": "_isEmpty", - "privacy": "public" - }, - { - "kind": "method", - "name": "_checkSingleChoiceElements", - "privacy": "public", - "parameters": [ - { - "name": "ev", - "type": { - "text": "CustomEvent & {target:FormControl}" - } - } - ] - }, - { - "kind": "method", - "name": "_getCheckedElements", - "privacy": "public" - }, - { - "kind": "method", - "name": "_setCheckedElements", - "privacy": "public", - "parameters": [ - { - "name": "value", - "type": { - "text": "string | any[]" - } - }, - { - "name": "check", - "type": { - "text": "Function" - } - } - ] - }, - { - "kind": "method", - "name": "__setChoiceGroupTouched", - "privacy": "public" - }, - { - "kind": "method", - "name": "_onBeforeRepropagateChildrenValues", - "privacy": "public", - "parameters": [ - { - "name": "ev", - "type": { - "text": "CustomEvent" - } - } - ] - } - ] - } - ], - "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", - "parameters": [ - { - "name": "superclass", - "type": { - "text": "LitElement>" - }, - "description": "" - } - ], - "mixins": [ - { - "name": "FormatMixin", - "module": "/src/choice-group/FormatMixin.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": { - "text": "string" - } - }, - { - "name": "oldValue", - "type": { - "text": "any" - } - } - ] - }, - { - "kind": "method", - "name": "firstUpdated", - "privacy": "public", - "parameters": [ - { - "name": "changedProperties", - "type": { - "text": "PropertyValues " - } - } - ] - }, - { - "kind": "method", - "name": "updated", - "privacy": "public", - "parameters": [ - { - "name": "changedProperties", - "type": { - "text": "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": { - "text": "Event" - } - } - ] - }, - { - "kind": "method", - "name": "_toggleChecked", - "privacy": "public", - "parameters": [ - { - "name": "ev", - "type": { - "text": "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": { - "text": "boolean" - } - } - ] - }, - { - "kind": "method", - "name": "__syncCheckedToModel", - "privacy": "public", - "parameters": [ - { - "name": "checked", - "type": { - "text": "any" - } - } - ] - }, - { - "kind": "method", - "name": "__syncCheckedToInputElement", - "privacy": "public" - }, - { - "kind": "method", - "name": "_proxyInputEvent", - "privacy": "public" - }, - { - "kind": "method", - "name": "_onModelValueChanged", - "privacy": "public", - "parameters": [ - { - "name": "newV", - "type": { - "text": "{ modelValue:unknown }" - } - }, - { - "name": "old", - "type": { - "text": "{ modelValue:unknown }" - }, - "optional": true - } - ] - }, - { - "kind": "method", - "name": "parser", - "privacy": "public" - }, - { - "kind": "method", - "name": "formatter", - "privacy": "public", - "parameters": [ - { - "name": "modelValue", - "type": { - "text": "ChoiceInputModelValue " - } - } - ] - }, - { - "kind": "method", - "name": "clear", - "privacy": "public" - }, - { - "kind": "method", - "name": "_isEmpty", - "privacy": "public", - "description": "Used for required validator." - }, - { - "kind": "method", - "name": "_syncValueUpwards", - "privacy": "public" - } - ] - } - ], - "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": { - "text": "unknown" - }, - "optional": true - }, - { - "name": "options", - "type": { - "text": "string | undefined" - }, - "optional": true - }, - { - "name": "config", - "type": { - "text": "{ 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", - "parameters": [ - { - "name": "superclass", - "type": { - "text": "LitElement>" - }, - "description": "" - } - ], - "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" - }, - { - "name": "SlotMixin", - "package": "@lion/core" - } - ], - "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": { - "text": "PropertyValues " - } - } - ] - }, - { - "kind": "method", - "name": "__setupOutsideClickHandling", - "privacy": "public" - }, - { - "kind": "method", - "name": "_checkForOutsideClick", - "privacy": "public", - "parameters": [ - { - "name": "event", - "type": { - "text": "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": { - "text": "string" - } - }, - { - "name": "filterFn", - "default": "(/** @type {FormControl} */ el) => !el.disabled" - } - ] - }, - { - "kind": "method", - "name": "_setValueForAllFormElements", - "privacy": "public", - "parameters": [ - { - "name": "property", - "type": { - "text": "string | number" - } - }, - { - "name": "value", - "type": { - "text": "any" - } - } - ] - }, - { - "kind": "method", - "name": "_setValueMapForAllFormElements", - "privacy": "public", - "parameters": [ - { - "name": "property", - "type": { - "text": "string" - } - }, - { - "name": "values", - "type": { - "text": "{ [x: string]: any; }" - } - } - ] - }, - { - "kind": "method", - "name": "_anyFormElementHas", - "privacy": "public", - "parameters": [ - { - "name": "property", - "type": { - "text": "string" - } - } - ] - }, - { - "kind": "method", - "name": "_anyFormElementHasFeedbackFor", - "privacy": "public", - "parameters": [ - { - "name": "state", - "type": { - "text": "string" - }, - "description": "one of ValidateHost.validationTypes" - } - ] - }, - { - "kind": "method", - "name": "_everyFormElementHas", - "privacy": "public", - "parameters": [ - { - "name": "property", - "type": { - "text": "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": { - "text": "Event" - } - } - ] - }, - { - "kind": "method", - "name": "_syncFocused", - "privacy": "public" - }, - { - "kind": "method", - "name": "_onFocusOut", - "privacy": "public", - "parameters": [ - { - "name": "ev", - "type": { - "text": "Event" - } - } - ] - }, - { - "kind": "method", - "name": "_syncDirty", - "privacy": "public" - }, - { - "kind": "method", - "name": "__linkChildrenMessagesToParent", - "privacy": "public", - "parameters": [ - { - "name": "child", - "type": { - "text": "FormControl" - } - } - ] - }, - { - "kind": "method", - "name": "addFormElement", - "privacy": "public", - "parameters": [ - { - "name": "child", - "type": { - "text": "FormControl" - } - }, - { - "name": "indexToInsertAt", - "type": { - "text": "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": { - "text": "FormControl" - }, - "description": "the child: lion-field/lion-input/lion-textarea" - }, - { - "name": "descriptionElements", - "type": { - "text": "HTMLElement[]" - }, - "description": "description elements like feedback and help-text" - } - ] - }, - { - "kind": "method", - "name": "removeFormElement", - "privacy": "public", - "parameters": [ - { - "name": "el", - "type": { - "text": "FormRegisteringHost" - } - } - ] - } - ] - } - ], - "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": { - "text": "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/utils/AsyncQueue.js", - "declarations": [ - { - "kind": "class", - "name": "AsyncQueue", - "members": [ - { - "kind": "method", - "name": "add", - "privacy": "public", - "parameters": [ - { - "name": "task", - "type": { - "text": "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": { - "text": "HTMLElement[]" - } - }, - "parameters": [ - { - "name": "descriptionElements", - "type": { - "text": "HTMLElement[]" - }, - "description": "holds references to description or label elements whose\nid should be returned" - }, - { - "name": "opts", - "type": { - "text": "Object" - } - }, - { - "name": "opts.reverse", - "type": { - "text": "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": { - "text": "string" - } - }, - "parameters": [ - { - "name": "str", - "type": { - "text": "string" - } - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "pascalCase", - "declaration": { - "name": "pascalCase", - "module": "./src/utils/pascalCase.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": { - "text": "Object" - } - }, - { - "name": "opts.message", - "type": { - "text": "string | Node | TemplateResult " - }, - "description": "message or feedback node or TemplateResult" - }, - { - "name": "opts.type", - "type": { - "text": "string" - }, - "optional": true - }, - { - "name": "opts.validator", - "type": { - "text": "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": { - "text": "boolean" - } - }, - "parameters": [ - { - "name": "context", - "type": { - "text": "Object" - } - }, - { - "name": "context.regularValidationResult", - "type": { - "text": "Validator[]" - } - }, - { - "name": "context.prevValidationResult", - "type": { - "text": "Validator[] | undefined" - } - }, - { - "name": "context.validators", - "type": { - "text": "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": "mixin", - "name": "ValidateMixinImplementation", - "parameters": [ - { - "name": "superclass", - "type": { - "text": "LitElement>" - }, - "description": "" - } - ], - "events": [ - { - "name": "showsFeedbackForChanged", - "type": { - "text": "Event" - } - }, - { - "type": { - "text": "Event" - } - }, - { - "name": "shouldShowFeedbackForChanged", - "type": { - "text": "Event" - } - }, - { - "name": "validate-performed", - "type": { - "text": "Event" - }, - "description": "private event that should be listened to by LionFieldSet" - } - ], - "mixins": [ - { - "name": "FormControlMixin", - "module": "/src/validate/FormControlMixin.js" - }, - { - "name": "SyncUpdatableMixin", - "module": "/src/utils/SyncUpdatableMixin.js" - }, - { - "name": "DisabledMixin", - "package": "@lion/core" - }, - { - "name": "SlotMixin", - "package": "@lion/core" - }, - { - "name": "ScopedElementsMixin", - "package": "@lion/core" - } - ], - "members": [ - { - "kind": "field", - "name": "scopedElements", - "static": true, - "privacy": "public" - }, - { - "kind": "field", - "name": "validators", - "privacy": "public", - "type": { - "text": "Validator[]" - }, - "default": "[]" - }, - { - "kind": "field", - "name": "hasFeedbackFor", - "privacy": "public", - "type": { - "text": "string[]" - }, - "default": "[]" - }, - { - "kind": "field", - "name": "shouldShowFeedbackFor", - "privacy": "public", - "type": { - "text": "string[]" - }, - "default": "[]" - }, - { - "kind": "field", - "name": "showsFeedbackFor", - "privacy": "public", - "type": { - "text": "string[]" - }, - "default": "[]" - }, - { - "kind": "field", - "name": "validationStates", - "privacy": "public", - "type": { - "text": "Object.>" - }, - "default": "{}" - }, - { - "kind": "field", - "name": "isPending", - "privacy": "public", - "default": "false" - }, - { - "kind": "field", - "name": "defaultValidators", - "privacy": "public", - "type": { - "text": "Validator[]" - }, - "default": "[]" - }, - { - "kind": "field", - "name": "_visibleMessagesAmount", - "privacy": "public", - "default": "1" - }, - { - "kind": "field", - "name": "validationTypes", - "static": true, - "privacy": "public" - }, - { - "kind": "field", - "name": "slots", - "privacy": "public" - }, - { - "kind": "field", - "name": "_allValidators", - "privacy": "public" - }, - { - "kind": "method", - "name": "connectedCallback", - "privacy": "public" - }, - { - "kind": "method", - "name": "disconnectedCallback", - "privacy": "public" - }, - { - "kind": "method", - "name": "firstUpdated", - "privacy": "public", - "parameters": [ - { - "name": "changedProperties", - "type": { - "text": "PropertyValues" - } - } - ] - }, - { - "kind": "method", - "name": "updateSync", - "privacy": "public", - "parameters": [ - { - "name": "name", - "type": { - "text": "string" - } - }, - { - "name": "oldValue", - "type": { - "text": "?" - } - } - ] - }, - { - "kind": "method", - "name": "validate", - "privacy": "public", - "parameters": [ - { - "name": "opts", - "type": { - "text": "{ clearCurrentResult?: boolean }" - }, - "optional": true - } - ] - }, - { - "kind": "method", - "name": "__storePrevResult", - "privacy": "public" - }, - { - "kind": "method", - "name": "__executeValidators", - "privacy": "public" - }, - { - "kind": "method", - "name": "__executeSyncValidators", - "privacy": "public", - "parameters": [ - { - "name": "syncValidators", - "type": { - "text": "Validator[]" - } - }, - { - "name": "value", - "type": { - "text": "unknown" - } - }, - { - "name": "opts", - "type": { - "text": "{ hasAsync: boolean }" - } - } - ] - }, - { - "kind": "method", - "name": "__executeAsyncValidators", - "privacy": "public", - "parameters": [ - { - "name": "asyncValidators", - "type": { - "text": "Validator[]" - }, - "description": "all Validators except required and ResultValidators" - }, - { - "name": "value", - "type": { - "text": "?" - } - } - ] - }, - { - "kind": "method", - "name": "__executeResultValidators", - "privacy": "public", - "parameters": [ - { - "name": "regularValidationResult", - "type": { - "text": "Validator[]" - }, - "description": "result of steps 1-3" - } - ] - }, - { - "kind": "method", - "name": "__finishValidation", - "privacy": "public", - "parameters": [ - { - "name": "options", - "type": { - "text": "object" - } - }, - { - "name": "options.source", - "type": { - "text": "'sync'|'async'" - } - }, - { - "name": "options.hasAsync", - "type": { - "text": "boolean" - }, - "description": "whether async validators are configured in this run.\nIf not, we have nothing left to wait for.", - "optional": true - } - ] - }, - { - "kind": "method", - "name": "__clearValidationResults", - "privacy": "public" - }, - { - "kind": "method", - "name": "__onValidatorUpdated", - "privacy": "public", - "parameters": [ - { - "name": "e", - "type": { - "text": "Event|CustomEvent" - } - } - ] - }, - { - "kind": "method", - "name": "__setupValidators", - "privacy": "public" - }, - { - "kind": "method", - "name": "__isEmpty", - "privacy": "public", - "parameters": [ - { - "name": "v", - "type": { - "text": "?" - } - } - ] - }, - { - "kind": "method", - "name": "__getFeedbackMessages", - "privacy": "public", - "return": { - "type": { - "text": "Promise." - } - }, - "parameters": [ - { - "name": "validators", - "type": { - "text": "Validator[]" - }, - "description": "list of objects having a .getMessage method" - } - ] - }, - { - "kind": "method", - "name": "_updateFeedbackComponent", - "privacy": "public" - }, - { - "kind": "method", - "name": "_showFeedbackConditionFor", - "privacy": "public", - "description": "Show the validity feedback when returning true, don't show when false", - "parameters": [ - { - "name": "type", - "type": { - "text": "string" - } - } - ] - }, - { - "kind": "method", - "name": "_hasFeedbackVisibleFor", - "privacy": "public", - "parameters": [ - { - "name": "type", - "type": { - "text": "string" - } - } - ] - }, - { - "kind": "method", - "name": "updated", - "privacy": "public", - "parameters": [ - { - "name": "changedProperties", - "type": { - "text": "PropertyValues" - } - } - ] - }, - { - "kind": "method", - "name": "_updateShouldShowFeedbackFor", - "privacy": "public" - }, - { - "kind": "method", - "name": "_prioritizeAndFilterFeedback", - "privacy": "public", - "return": { - "type": { - "text": "Validator[]" - } - }, - "parameters": [ - { - "name": "opts", - "type": { - "text": "{ validationResult: Validator[] }" - } - } - ] - } - ], - "attributes": [ - { - "name": "shows-feedback-for", - "fieldName": "showsFeedbackFor" - }, - { - "name": "is-pending", - "fieldName": "isPending" - } - ] - }, - { - "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": { - "text": "*" - }, - "description": "" - }, - { - "name": "MessageData.fieldName", - "type": { - "text": "string" - }, - "description": "" - }, - { - "name": "MessageData.formControl", - "type": { - "text": "HTMLElement" - }, - "description": "" - }, - { - "name": "MessageData.type", - "type": { - "text": "string" - }, - "description": "" - }, - { - "name": "MessageData.config", - "type": { - "text": "Object." - }, - "description": "" - }, - { - "name": "MessageData.name", - "type": { - "text": "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": { - "text": "Boolean|Promise" - } - }, - "parameters": [ - { - "name": "modelValue", - "type": { - "text": "?" - }, - "optional": true - }, - { - "name": "param", - "type": { - "text": "?" - }, - "optional": true - }, - { - "name": "config", - "type": { - "text": "{}" - }, - "optional": true - } - ] - }, - { - "kind": "field", - "name": "param", - "privacy": "public" - }, - { - "kind": "field", - "name": "config", - "privacy": "public" - }, - { - "kind": "method", - "name": "_getMessage", - "privacy": "public", - "return": { - "type": { - "text": "Promise" - } - }, - "parameters": [ - { - "name": "data", - "type": { - "text": "MessageData" - }, - "optional": true - } - ] - }, - { - "kind": "method", - "name": "getMessage", - "privacy": "public", - "static": true, - "return": { - "type": { - "text": "Promise" - } - }, - "parameters": [ - { - "name": "data", - "type": { - "text": "MessageData" - }, - "optional": true - } - ] - }, - { - "kind": "method", - "name": "onFormControlConnect", - "privacy": "public", - "parameters": [ - { - "name": "formControl", - "type": { - "text": "HTMLElement" - } - } - ] - }, - { - "kind": "method", - "name": "onFormControlDisconnect", - "privacy": "public", - "parameters": [ - { - "name": "formControl", - "type": { - "text": "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": "./types/choice-group/ChoiceGroupMixinTypes.d.ts", - "declarations": [ - { - "kind": "class", - "name": "ChoiceGroupHost", - "members": [ - { - "kind": "field", - "name": "multipleChoice", - "privacy": "public", - "type": { - "text": "boolean" - } - }, - { - "kind": "method", - "name": "connectedCallback", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "disconnectedCallback", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "field", - "name": "modelValue", - "privacy": "public", - "type": { - "text": "any" - } - }, - { - "kind": "field", - "name": "serializedValue", - "privacy": "public", - "type": { - "text": "string" - } - }, - { - "kind": "field", - "name": "formattedValue", - "privacy": "public", - "type": { - "text": "string" - } - }, - { - "kind": "method", - "name": "connectedCallback", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "disconnectedCallback", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "addFormElement", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - }, - "parameters": [ - { - "name": "child", - "type": { - "text": "FormControlHost" - } - }, - { - "name": "indexToInsertAt", - "type": { - "text": "number" - } - } - ] - }, - { - "kind": "method", - "name": "_triggerInitialModelValueChangedEvent", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "_getFromAllFormElements", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - }, - "parameters": [ - { - "name": "property", - "type": { - "text": "string" - } - }, - { - "name": "filterCondition", - "type": { - "text": "Function" - } - } - ] - }, - { - "kind": "method", - "name": "_throwWhenInvalidChildModelValue", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - }, - "parameters": [ - { - "name": "child", - "type": { - "text": "FormControlHost" - } - } - ] - }, - { - "kind": "method", - "name": "_isEmpty", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "_checkSingleChoiceElements", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - }, - "parameters": [ - { - "name": "ev", - "type": { - "text": "Event" - } - } - ] - }, - { - "kind": "method", - "name": "_getCheckedElements", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "_setCheckedElements", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - }, - "parameters": [ - { - "name": "value", - "type": { - "text": "any" - } - }, - { - "name": "check", - "type": { - "text": "boolean" - } - } - ] - }, - { - "kind": "method", - "name": "__setChoiceGroupTouched", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "__delegateNameAttribute", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - }, - "parameters": [ - { - "name": "child", - "type": { - "text": "FormControlHost" - } - } - ] - }, - { - "kind": "method", - "name": "_onBeforeRepropagateChildrenValues", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - }, - "parameters": [ - { - "name": "ev", - "type": { - "text": "Event" - } - } - ] - } - ] - }, - { - "kind": "function", - "name": "ChoiceGroupImplementation", - "return": { - "type": { - "text": "T &\n Constructor &\n ChoiceGroupHost &\n Constructor &\n typeof FormRegistrarHost &\n Constructor &\n typeof InteractionStateHost" - } - }, - "parameters": [ - { - "name": "superclass", - "type": { - "text": "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": { - "text": "ChoiceInputModelValue" - } - }, - { - "kind": "field", - "name": "serializedValue", - "privacy": "public", - "type": { - "text": "ChoiceInputSerializedValue" - } - }, - { - "kind": "field", - "name": "checked", - "privacy": "public", - "type": { - "text": "boolean" - } - }, - { - "kind": "field", - "name": "choiceValue", - "privacy": "public", - "type": { - "text": "any" - } - }, - { - "kind": "method", - "name": "requestUpdateInternal", - "privacy": "protected", - "return": { - "type": { - "text": "void" - } - }, - "parameters": [ - { - "name": "name", - "type": { - "text": "string" - } - }, - { - "name": "oldValue", - "type": { - "text": "any" - } - } - ] - }, - { - "kind": "method", - "name": "firstUpdated", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - }, - "parameters": [ - { - "name": "changedProperties", - "type": { - "text": "Map" - } - } - ] - }, - { - "kind": "method", - "name": "updated", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - }, - "parameters": [ - { - "name": "changedProperties", - "type": { - "text": "Map" - } - } - ] - }, - { - "kind": "method", - "name": "render", - "privacy": "public", - "return": { - "type": { - "text": "TemplateResult" - } - } - }, - { - "kind": "method", - "name": "_choiceGraphicTemplate", - "privacy": "public", - "return": { - "type": { - "text": "TemplateResult" - } - } - }, - { - "kind": "method", - "name": "_afterTemplate", - "privacy": "public", - "return": { - "type": { - "text": "TemplateResult" - } - } - }, - { - "kind": "method", - "name": "connectedCallback", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "disconnectedCallback", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "_preventDuplicateLabelClick", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - }, - "parameters": [ - { - "name": "ev", - "type": { - "text": "Event" - } - } - ] - }, - { - "kind": "method", - "name": "_syncNameToParentFormGroup", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "_toggleChecked", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - }, - "parameters": [ - { - "name": "ev", - "type": { - "text": "Event" - } - } - ] - }, - { - "kind": "method", - "name": "__syncModelCheckedToChecked", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - }, - "parameters": [ - { - "name": "checked", - "type": { - "text": "boolean" - } - } - ] - }, - { - "kind": "method", - "name": "__syncCheckedToModel", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - }, - "parameters": [ - { - "name": "checked", - "type": { - "text": "boolean" - } - } - ] - }, - { - "kind": "method", - "name": "__syncCheckedToInputElement", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "field", - "name": "__isHandlingUserInput", - "privacy": "public", - "type": { - "text": "boolean" - } - }, - { - "kind": "method", - "name": "_proxyInputEvent", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "_onModelValueChanged", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - }, - "parameters": [ - { - "name": "newV", - "type": { - "text": "{ modelValue: ChoiceInputModelValue }" - } - }, - { - "name": "oldV", - "type": { - "text": "{ modelValue: ChoiceInputModelValue }" - } - } - ] - }, - { - "kind": "method", - "name": "parser", - "privacy": "public", - "return": { - "type": { - "text": "any" - } - } - }, - { - "kind": "method", - "name": "formatter", - "privacy": "public", - "return": { - "type": { - "text": "string" - } - }, - "parameters": [ - { - "name": "modelValue", - "type": { - "text": "ChoiceInputModelValue" - } - } - ] - }, - { - "kind": "method", - "name": "_isEmpty", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "_syncValueUpwards", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "field", - "name": "type", - "privacy": "public", - "type": { - "text": "string" - } - }, - { - "kind": "field", - "name": "_inputNode", - "privacy": "public", - "type": { - "text": "HTMLElement" - } - } - ] - }, - { - "kind": "function", - "name": "ChoiceInputImplementation", - "return": { - "type": { - "text": "T &\n Constructor &\n ChoiceInputHost &\n Constructor &\n FormatHost &\n HTMLElement" - } - }, - "parameters": [ - { - "name": "superclass", - "type": { - "text": "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": { - "text": "void" - } - } - }, - { - "kind": "field", - "name": "_inputNode", - "privacy": "public", - "type": { - "text": "HTMLElement" - } - }, - { - "kind": "method", - "name": "submitGroup", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "resetGroup", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "field", - "name": "prefilled", - "privacy": "public", - "type": { - "text": "boolean" - } - }, - { - "kind": "field", - "name": "touched", - "privacy": "public", - "type": { - "text": "boolean" - } - }, - { - "kind": "field", - "name": "dirty", - "privacy": "public", - "type": { - "text": "boolean" - } - }, - { - "kind": "field", - "name": "submitted", - "privacy": "public", - "type": { - "text": "boolean" - } - }, - { - "kind": "field", - "name": "serializedValue", - "privacy": "public", - "type": { - "text": "{ [key: string]: any }" - } - }, - { - "kind": "field", - "name": "modelValue", - "privacy": "public", - "type": { - "text": "{ [x: string]: any }" - } - }, - { - "kind": "field", - "name": "formattedValue", - "privacy": "public", - "type": { - "text": "string" - } - }, - { - "kind": "field", - "name": "children", - "privacy": "public", - "type": { - "text": "Array" - } - }, - { - "kind": "field", - "name": "_initialModelValue", - "privacy": "public", - "type": { - "text": "{ [x: string]: any }" - } - }, - { - "kind": "method", - "name": "_setValueForAllFormElements", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - }, - "parameters": [ - { - "name": "property", - "type": { - "text": "string" - } - }, - { - "name": "value", - "type": { - "text": "any" - } - } - ] - }, - { - "kind": "method", - "name": "resetInteractionState", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "clearGroup", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - } - ] - }, - { - "kind": "function", - "name": "FormGroupImplementation", - "return": { - "type": { - "text": "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": { - "text": "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": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "disconnectedCallback", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "field", - "name": "_parentFormGroup", - "privacy": "public", - "type": { - "text": "FormRegistrarHost" - } - } - ] - }, - { - "kind": "function", - "name": "FormRegisteringImplementation", - "return": { - "type": { - "text": "T & Constructor & typeof FormRegisteringHost" - } - }, - "parameters": [ - { - "name": "superclass", - "type": { - "text": "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": { - "text": "FormRegistrarHost" - } - } - ] - }, - { - "kind": "class", - "name": "FormRegistrarHost", - "members": [ - { - "kind": "field", - "name": "_isFormOrFieldset", - "privacy": "public", - "type": { - "text": "boolean" - } - }, - { - "kind": "field", - "name": "formElements", - "privacy": "public", - "type": { - "text": "FormControlsCollection & { [x: string]: any }" - } - }, - { - "kind": "method", - "name": "addFormElement", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - }, - "parameters": [ - { - "name": "child", - "type": { - "text": "| (FormControlHost & ElementWithParentFormGroup)\n | (FormControlHost & HTMLElement)\n | (HTMLElement & ElementWithParentFormGroup)" - } - }, - { - "name": "indexToInsertAt", - "type": { - "text": "number" - } - } - ] - }, - { - "kind": "method", - "name": "removeFormElement", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - }, - "parameters": [ - { - "name": "child", - "type": { - "text": "FormRegisteringHost" - } - } - ] - }, - { - "kind": "method", - "name": "_onRequestToAddFormElement", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - }, - "parameters": [ - { - "name": "e", - "type": { - "text": "CustomEvent" - } - } - ] - }, - { - "kind": "method", - "name": "isRegisteredFormElement", - "privacy": "public", - "return": { - "type": { - "text": "boolean" - } - }, - "parameters": [ - { - "name": "el", - "type": { - "text": "FormControlHost" - } - } - ] - }, - { - "kind": "field", - "name": "registrationComplete", - "privacy": "public", - "type": { - "text": "Promise" - } - } - ] - }, - { - "kind": "function", - "name": "FormRegistrarImplementation", - "return": { - "type": { - "text": "T &\n Constructor &\n typeof FormRegistrarHost &\n Constructor &\n typeof FormRegisteringHost" - } - }, - "parameters": [ - { - "name": "superclass", - "type": { - "text": "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": { - "text": "HTMLElement" - } - }, - { - "kind": "method", - "name": "__redispatchEventForFormRegistrarPortalMixin", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - }, - "parameters": [ - { - "name": "ev", - "type": { - "text": "CustomEvent" - } - } - ] - } - ] - }, - { - "kind": "function", - "name": "FormRegistrarPortalImplementation", - "return": { - "type": { - "text": "T & Constructor & FormRegistrarPortalHost" - } - }, - "parameters": [ - { - "name": "superclass", - "type": { - "text": "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": { - "text": "boolean" - } - }, - "parameters": [ - { - "name": "name", - "type": { - "text": "string" - } - }, - { - "name": "newValue", - "type": { - "text": "any" - } - }, - { - "name": "oldValue", - "type": { - "text": "any" - } - } - ] - }, - { - "kind": "method", - "name": "updateSync", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - }, - "parameters": [ - { - "name": "name", - "type": { - "text": "string" - } - }, - { - "name": "oldValue", - "type": { - "text": "any" - } - } - ] - }, - { - "kind": "method", - "name": "__syncUpdatableInitialize", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "field", - "name": "__SyncUpdatableNamespace", - "privacy": "public", - "type": { - "text": "SyncUpdatableNamespace" - } - }, - { - "kind": "method", - "name": "firstUpdated", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - }, - "parameters": [ - { - "name": "changedProperties", - "type": { - "text": "PropertyValues" - } - } - ] - }, - { - "kind": "method", - "name": "disconnectedCallback", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - } - ] - }, - { - "kind": "function", - "name": "SyncUpdatableImplementation", - "return": { - "type": { - "text": "T & Constructor & typeof SyncUpdatableHost" - } - }, - "parameters": [ - { - "name": "superclass", - "type": { - "text": "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": { - "text": "Validator[]" - } - }, - { - "kind": "field", - "name": "hasFeedbackFor", - "privacy": "public", - "type": { - "text": "string[]" - } - }, - { - "kind": "field", - "name": "shouldShowFeedbackFor", - "privacy": "public", - "type": { - "text": "string[]" - } - }, - { - "kind": "field", - "name": "showsFeedbackFor", - "privacy": "public", - "type": { - "text": "string[]" - } - }, - { - "kind": "field", - "name": "validationStates", - "privacy": "public", - "type": { - "text": "{ [key: string]: { [key: string]: Object } }" - } - }, - { - "kind": "field", - "name": "isPending", - "privacy": "public", - "type": { - "text": "boolean" - } - }, - { - "kind": "field", - "name": "defaultValidators", - "privacy": "public", - "type": { - "text": "Validator[]" - } - }, - { - "kind": "field", - "name": "_visibleMessagesAmount", - "privacy": "public", - "type": { - "text": "number" - } - }, - { - "kind": "field", - "name": "fieldName", - "privacy": "public", - "type": { - "text": "string" - } - }, - { - "kind": "field", - "name": "validationTypes", - "static": true, - "privacy": "public", - "type": { - "text": "string[]" - } - }, - { - "kind": "field", - "name": "slots", - "privacy": "public", - "type": { - "text": "SlotsMap" - } - }, - { - "kind": "field", - "name": "_feedbackNode", - "privacy": "public", - "type": { - "text": "LionValidationFeedback" - } - }, - { - "kind": "field", - "name": "_allValidators", - "privacy": "public", - "type": { - "text": "Validator[]" - } - }, - { - "kind": "field", - "name": "__syncValidationResult", - "privacy": "public", - "type": { - "text": "Validator[]" - } - }, - { - "kind": "field", - "name": "__asyncValidationResult", - "privacy": "public", - "type": { - "text": "Validator[]" - } - }, - { - "kind": "field", - "name": "__validationResult", - "privacy": "public", - "type": { - "text": "Validator[]" - } - }, - { - "kind": "field", - "name": "__prevValidationResult", - "privacy": "public", - "type": { - "text": "Validator[]" - } - }, - { - "kind": "method", - "name": "connectedCallback", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "disconnectedCallback", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "firstUpdated", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - }, - "parameters": [ - { - "name": "changedProperties", - "type": { - "text": "import('@lion/core').PropertyValues" - } - } - ] - }, - { - "kind": "method", - "name": "updateSync", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - }, - "parameters": [ - { - "name": "name", - "type": { - "text": "string" - } - }, - { - "name": "oldValue", - "type": { - "text": "unknown" - } - } - ] - }, - { - "kind": "method", - "name": "updated", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - }, - "parameters": [ - { - "name": "changedProperties", - "type": { - "text": "import('@lion/core').PropertyValues" - } - } - ] - }, - { - "kind": "method", - "name": "validate", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - }, - "parameters": [ - { - "name": "opts", - "type": { - "text": "{ clearCurrentResult?: boolean }" - } - } - ] - }, - { - "kind": "method", - "name": "__storePrevResult", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "__executeValidators", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "field", - "name": "validateComplete", - "privacy": "public", - "type": { - "text": "Promise" - } - }, - { - "kind": "field", - "name": "feedbackComplete", - "privacy": "public", - "type": { - "text": "Promise" - } - }, - { - "kind": "method", - "name": "__validateCompleteResolve", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "__executeSyncValidators", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - }, - "parameters": [ - { - "name": "syncValidators", - "type": { - "text": "Validator[]" - } - }, - { - "name": "value", - "type": { - "text": "unknown" - } - }, - { - "name": "opts", - "type": { - "text": "{ hasAsync: boolean }" - } - } - ] - }, - { - "kind": "method", - "name": "__executeAsyncValidators", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - }, - "parameters": [ - { - "name": "asyncValidators", - "type": { - "text": "Validator[]" - } - }, - { - "name": "value", - "type": { - "text": "unknown" - } - } - ] - }, - { - "kind": "method", - "name": "__executeResultValidators", - "privacy": "public", - "return": { - "type": { - "text": "Validator[]" - } - }, - "parameters": [ - { - "name": "regularValidationResult", - "type": { - "text": "Validator[]" - } - } - ] - }, - { - "kind": "method", - "name": "__finishValidation", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - }, - "parameters": [ - { - "name": "options", - "type": { - "text": "{ source: 'sync' | 'async'; hasAsync?: boolean }" - } - } - ] - }, - { - "kind": "method", - "name": "__clearValidationResults", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "__onValidatorUpdated", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - }, - "parameters": [ - { - "name": "e", - "type": { - "text": "Event | CustomEvent" - } - } - ] - }, - { - "kind": "method", - "name": "__setupValidators", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "__isEmpty", - "privacy": "public", - "return": { - "type": { - "text": "boolean" - } - }, - "parameters": [ - { - "name": "v", - "type": { - "text": "unknown" - } - } - ] - }, - { - "kind": "method", - "name": "__getFeedbackMessages", - "privacy": "public", - "return": { - "type": { - "text": "Promise" - } - }, - "parameters": [ - { - "name": "validators", - "type": { - "text": "Validator[]" - } - } - ] - }, - { - "kind": "method", - "name": "_updateFeedbackComponent", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "_showFeedbackConditionFor", - "privacy": "public", - "return": { - "type": { - "text": "boolean" - } - }, - "parameters": [ - { - "name": "type", - "type": { - "text": "string" - } - } - ] - }, - { - "kind": "method", - "name": "_hasFeedbackVisibleFor", - "privacy": "public", - "return": { - "type": { - "text": "boolean" - } - }, - "parameters": [ - { - "name": "type", - "type": { - "text": "string" - } - } - ] - }, - { - "kind": "method", - "name": "_updateShouldShowFeedbackFor", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "_prioritizeAndFilterFeedback", - "privacy": "public", - "return": { - "type": { - "text": "Validator[]" - } - }, - "parameters": [ - { - "name": "opts", - "type": { - "text": "{ validationResult: Validator[] }" - } - } - ] - } - ] - }, - { - "kind": "function", - "name": "ValidateImplementation", - "return": { - "type": { - "text": "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": { - "text": "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": { - "text": "boolean" - } - }, - "parameters": [ - { - "name": "context", - "type": { - "text": "Object" - } - }, - { - "name": "context.regularValidationResult", - "type": { - "text": "Validator[]" - } - }, - { - "name": "context.prevValidationResult", - "type": { - "text": "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": { - "text": "?" - } - } - ] - } - ] - }, - { - "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": { - "text": "?" - } - }, - { - "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": { - "text": "?" - } - }, - { - "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": { - "text": "?" - } - } - ] - } - ] - }, - { - "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": { - "text": "?" - } - }, - { - "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": { - "text": "?" - } - } - ] - } - ] - }, - { - "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": { - "text": "?" - } - }, - { - "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": { - "text": "?" - } - }, - { - "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": { - "text": "?" - } - } - ] - } - ] - } - ], - "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": { - "text": "FormControlHost & HTMLElement" - } - } - ] - }, - { - "kind": "method", - "name": "onFormControlDisconnect", - "privacy": "public", - "parameters": [ - { - "name": "formControl", - "type": { - "text": "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": { - "text": "?" - } - } - ] - } - ] - }, - { - "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": { - "text": "?" - } - }, - { - "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": { - "text": "?" - } - }, - { - "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": { - "text": "?" - } - }, - { - "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": { - "text": "?" - } - } - ] - } - ] - }, - { - "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": { - "text": "?" - } - } - ] - } - ] - }, - { - "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": { - "text": "?" - } - }, - { - "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": [] - } - ] -} \ No newline at end of file diff --git a/packages/form-core/package.json b/packages/form-core/package.json index cf32affa6..f99f4c0b5 100644 --- a/packages/form-core/package.json +++ b/packages/form-core/package.json @@ -15,6 +15,7 @@ "files": [ "*.d.ts", "*.js", + "custom-elements.json", "docs", "src", "test", @@ -27,7 +28,7 @@ "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", - "prepublishOnly": "../../scripts/npm-prepublish.js", + "prepublishOnly": "../../scripts/npm-prepublish.js && npm run custom-elements-manifest", "test": "cd ../../ && npm run test:browser -- --group form-core" }, "sideEffects": [ @@ -54,4 +55,4 @@ "./lion-validation-feedback": "./lion-validation-feedback.js" }, "customElementsManifest": "custom-elements.json" -} \ No newline at end of file +} diff --git a/packages/form-integrations/custom-elements.json b/packages/form-integrations/custom-elements.json deleted file mode 100644 index 68af5acf3..000000000 --- a/packages/form-integrations/custom-elements.json +++ /dev/null @@ -1,182 +0,0 @@ -{ - "schemaVersion": "0.1.0", - "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": [] - } - ] -} \ No newline at end of file diff --git a/packages/form-integrations/package.json b/packages/form-integrations/package.json index 2d919d5cd..da36889da 100644 --- a/packages/form-integrations/package.json +++ b/packages/form-integrations/package.json @@ -15,6 +15,7 @@ "files": [ "*.d.ts", "*.js", + "custom-elements.json", "docs", "src", "test", @@ -27,7 +28,7 @@ "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", - "prepublishOnly": "../../scripts/npm-prepublish.js", + "prepublishOnly": "../../scripts/npm-prepublish.js && npm run custom-elements-manifest", "test": "cd ../../ && npm run test:browser -- --group form-integrations" }, "sideEffects": [ @@ -68,4 +69,4 @@ }, "exports": "./index.js", "customElementsManifest": "custom-elements.json" -} \ No newline at end of file +} diff --git a/packages/form/custom-elements.json b/packages/form/custom-elements.json deleted file mode 100644 index 0216b17d8..000000000 --- a/packages/form/custom-elements.json +++ /dev/null @@ -1,138 +0,0 @@ -{ - "schemaVersion": "0.1.0", - "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": { - "text": "Event" - } - }, - { - "name": "reset", - "type": { - "text": "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": { - "text": "Event" - } - } - ] - }, - { - "kind": "method", - "name": "reset", - "privacy": "public" - }, - { - "kind": "method", - "name": "_reset", - "privacy": "public", - "parameters": [ - { - "name": "ev", - "type": { - "text": "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" - } - } - ] - } - ] -} \ No newline at end of file diff --git a/packages/form/package.json b/packages/form/package.json index 23111285d..241362998 100644 --- a/packages/form/package.json +++ b/packages/form/package.json @@ -15,6 +15,7 @@ "files": [ "*.d.ts", "*.js", + "custom-elements.json", "docs", "src", "test", @@ -27,7 +28,7 @@ "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", - "prepublishOnly": "../../scripts/npm-prepublish.js", + "prepublishOnly": "../../scripts/npm-prepublish.js && npm run custom-elements-manifest", "test": "cd ../../ && npm run test:browser -- --group form" }, "sideEffects": [ @@ -49,4 +50,4 @@ "./lion-form": "./lion-form.js" }, "customElementsManifest": "custom-elements.json" -} \ No newline at end of file +} diff --git a/packages/helpers/custom-elements.json b/packages/helpers/custom-elements.json deleted file mode 100644 index d5afbdbaf..000000000 --- a/packages/helpers/custom-elements.json +++ /dev/null @@ -1,322 +0,0 @@ -{ - "schemaVersion": "0.1.0", - "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": { - "text": "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": { - "text": "TemplateResult" - } - }, - "parameters": [ - { - "name": "content", - "type": { - "text": "string" - } - } - ] - }, - { - "kind": "method", - "name": "__appendLog", - "privacy": "public", - "parameters": [ - { - "name": "content", - "type": { - "text": "string" - } - } - ] - }, - { - "kind": "method", - "name": "__isConsecutiveDuplicateLog", - "privacy": "public", - "parameters": [ - { - "name": "content", - "type": { - "text": "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": { - "text": "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": { - "text": "Array.<[]>" - }, - "description": "array of arrays giving the order of each level" - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "sortEachDepth", - "declaration": { - "name": "sortEachDepth", - "module": "./sortEachDepth/src/sortEachDepth.js" - } - } - ] - } - ] -} \ No newline at end of file diff --git a/packages/helpers/package.json b/packages/helpers/package.json index d4baa298c..b412e9fb7 100644 --- a/packages/helpers/package.json +++ b/packages/helpers/package.json @@ -50,4 +50,4 @@ "./sb-locale-switcher": "./sb-locale-switcher.js" }, "customElementsManifest": "custom-elements.json" -} \ No newline at end of file +} diff --git a/packages/helpers/sb-action-logger/custom-elements.json b/packages/helpers/sb-action-logger/custom-elements.json deleted file mode 100644 index fb97ea31b..000000000 --- a/packages/helpers/sb-action-logger/custom-elements.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "version": 0, - "tags": [ - { - "name": "sb-action-logger", - "description": "A visual element to show action logs in Storybook demos", - "properties": [ - { - "name": "title", - "type": "String", - "description": "The title of action logger", - "default": "Action Logger" - }, - { - "name": "simple", - "type": "Boolean", - "description": "Simple mode, which only shows a single log", - "default": "false" - } - ], - "events": [], - "slots": [], - "cssProperties": [ - { - "name": "--sb-action-logger-title-color", - "description": "Color of the title", - "type": "Color" - }, - { - "name": "--sb-action-logger-text-color", - "description": "Color of the logs' text", - "type": "Color" - }, - { - "name": "--sb-action-logger-cue-color-primary", - "description": "Primary color of the visual cue", - "type": "Color" - }, - { - "name": "--sb-action-logger-cue-color-secondary", - "description": "Secondary color of the visual cue", - "type": "Color" - }, - { - "name": "--sb-action-logger-cue-duration", - "description": "Duration of the visual cue", - "type": "Number" - } - ] - } - ] -} diff --git a/packages/icon/custom-elements.json b/packages/icon/custom-elements.json deleted file mode 100644 index 8f0e6cee8..000000000 --- a/packages/icon/custom-elements.json +++ /dev/null @@ -1,894 +0,0 @@ -{ - "schemaVersion": "0.1.0", - "readme": "", - "modules": [ - { - "kind": "javascript-module", - "path": "./index.js", - "declarations": [], - "exports": [ - { - "kind": "js", - "name": "LionIcon", - "declaration": { - "name": "LionIcon", - "module": "./src/LionIcon.js" - } - }, - { - "kind": "js", - "name": "IconManager", - "declaration": { - "name": "IconManager", - "module": "./src/IconManager.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": { - "text": "string" - } - }, - { - "name": "iconResolver", - "type": { - "text": "(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": { - "text": "string" - } - } - ] - }, - { - "kind": "method", - "name": "resolveIcon", - "privacy": "public", - "description": "Resolves icon for the given parameters. Returns the icon as a svg string.", - "return": { - "type": { - "text": "Promise" - } - }, - "parameters": [ - { - "name": "namespace", - "type": { - "text": "string" - } - }, - { - "name": "iconset", - "type": { - "text": "string" - } - }, - { - "name": "icon", - "type": { - "text": "string" - } - } - ] - }, - { - "kind": "method", - "name": "resolveIconForId", - "privacy": "public", - "description": "Resolves icon for the given icon id. Returns the icon as a svg string.", - "return": { - "type": { - "text": "Promise" - } - }, - "parameters": [ - { - "name": "iconId", - "type": { - "text": "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": { - "text": "TemplateResult | nothing" - } - } - ] - }, - { - "kind": "field", - "name": "_iconManager", - "privacy": "public" - }, - { - "kind": "method", - "name": "_onIconIdChanged", - "privacy": "public", - "parameters": [ - { - "name": "prevIconId", - "type": { - "text": "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" - } - } - ] - } - ] -} \ No newline at end of file diff --git a/packages/icon/package.json b/packages/icon/package.json index 74d786ac3..66ebbbeac 100644 --- a/packages/icon/package.json +++ b/packages/icon/package.json @@ -15,6 +15,7 @@ "files": [ "*.d.ts", "*.js", + "custom-elements.json", "docs", "src", "test", @@ -27,7 +28,7 @@ "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", - "prepublishOnly": "../../scripts/npm-prepublish.js", + "prepublishOnly": "../../scripts/npm-prepublish.js && npm run custom-elements-manifest", "test": "cd ../../ && npm run test:browser -- --group icon" }, "sideEffects": [ @@ -51,4 +52,4 @@ "./lion-icon": "./lion-icon.js" }, "customElementsManifest": "custom-elements.json" -} \ No newline at end of file +} diff --git a/packages/input-amount/custom-elements.json b/packages/input-amount/custom-elements.json deleted file mode 100644 index dde717bd6..000000000 --- a/packages/input-amount/custom-elements.json +++ /dev/null @@ -1,283 +0,0 @@ -{ - "schemaVersion": "0.1.0", - "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": { - "text": "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": { - "text": "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": { - "text": "Object" - } - }, - { - "name": "opts.currency", - "type": { - "text": "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": { - "text": "number" - }, - "description": "Number to format" - }, - { - "name": "givenOptions", - "type": { - "text": "FormatOptions" - }, - "optional": true - } - ] - }, - { - "kind": "function", - "name": "formatCurrencyLabel", - "parameters": [ - { - "name": "currency", - "type": { - "text": "string" - } - }, - { - "name": "locale", - "type": { - "text": "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": { - "text": "string" - }, - "description": "Number to be parsed" - }, - { - "name": "options", - "type": { - "text": "object" - }, - "description": "Locale Options", - "optional": true - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "parseAmount", - "declaration": { - "name": "parseAmount", - "module": "./src/parsers.js" - } - } - ] - } - ] -} \ No newline at end of file diff --git a/packages/input-amount/package.json b/packages/input-amount/package.json index a4625660f..25187398a 100644 --- a/packages/input-amount/package.json +++ b/packages/input-amount/package.json @@ -15,6 +15,7 @@ "files": [ "*.d.ts", "*.js", + "custom-elements.json", "docs", "src", "test", @@ -27,7 +28,7 @@ "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", - "prepublishOnly": "../../scripts/npm-prepublish.js", + "prepublishOnly": "../../scripts/npm-prepublish.js && npm run custom-elements-manifest", "test": "cd ../../ && npm run test:browser -- --group input-amount" }, "sideEffects": [ @@ -53,4 +54,4 @@ "./lion-input-amount": "./lion-input-amount.js" }, "customElementsManifest": "custom-elements.json" -} \ No newline at end of file +} diff --git a/packages/input-date/custom-elements.json b/packages/input-date/custom-elements.json deleted file mode 100644 index 83abd6311..000000000 --- a/packages/input-date/custom-elements.json +++ /dev/null @@ -1,124 +0,0 @@ -{ - "schemaVersion": "0.1.0", - "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": { - "text": "PropertyValues " - } - } - ] - }, - { - "kind": "method", - "name": "connectedCallback", - "privacy": "public" - }, - { - "kind": "method", - "name": "serializer", - "privacy": "public", - "parameters": [ - { - "name": "modelValue", - "type": { - "text": "Date" - } - } - ] - }, - { - "kind": "method", - "name": "deserializer", - "privacy": "public", - "parameters": [ - { - "name": "serializedValue", - "type": { - "text": "string" - } - } - ] - } - ], - "tagName": "lion-input-date" - } - ], - "exports": [ - { - "kind": "js", - "name": "LionInputDate", - "declaration": { - "name": "LionInputDate", - "module": "./src/LionInputDate.js" - } - } - ] - } - ] -} \ No newline at end of file diff --git a/packages/input-date/package.json b/packages/input-date/package.json index 316ea13b2..c6d5e5800 100644 --- a/packages/input-date/package.json +++ b/packages/input-date/package.json @@ -15,6 +15,7 @@ "files": [ "*.d.ts", "*.js", + "custom-elements.json", "docs", "src", "test", @@ -27,7 +28,7 @@ "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", - "prepublishOnly": "../../scripts/npm-prepublish.js", + "prepublishOnly": "../../scripts/npm-prepublish.js && npm run custom-elements-manifest", "test": "cd ../../ && npm run test:browser -- --group input-date" }, "sideEffects": [ @@ -53,4 +54,4 @@ "./lion-input-date": "./lion-input-date.js" }, "customElementsManifest": "custom-elements.json" -} \ No newline at end of file +} diff --git a/packages/input-datepicker/custom-elements.json b/packages/input-datepicker/custom-elements.json deleted file mode 100644 index 39e305ed3..000000000 --- a/packages/input-datepicker/custom-elements.json +++ /dev/null @@ -1,923 +0,0 @@ -{ - "schemaVersion": "0.1.0", - "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": { - "text": "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": { - "text": "PropertyKey" - } - }, - { - "name": "oldValue", - "type": { - "text": "?" - } - } - ] - }, - { - "kind": "method", - "name": "__toggleInvokerDisabled", - "privacy": "public" - }, - { - "kind": "method", - "name": "firstUpdated", - "privacy": "public", - "parameters": [ - { - "name": "changedProperties", - "type": { - "text": "PropertyValues " - } - } - ] - }, - { - "kind": "method", - "name": "updated", - "privacy": "public", - "parameters": [ - { - "name": "changedProperties", - "type": { - "text": "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": { - "text": "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": { - "text": "{ 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": { - "text": "Date|undefined" - } - }, - "parameters": [ - { - "name": "modelValue", - "type": { - "text": "?" - } - } - ] - }, - { - "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": { - "text": "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": { - "text": "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" - } - } - ] - } - ] -} \ No newline at end of file diff --git a/packages/input-datepicker/package.json b/packages/input-datepicker/package.json index e0e65064d..bd6a8daca 100644 --- a/packages/input-datepicker/package.json +++ b/packages/input-datepicker/package.json @@ -15,6 +15,7 @@ "files": [ "*.d.ts", "*.js", + "custom-elements.json", "docs", "src", "test", @@ -27,7 +28,7 @@ "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", - "prepublishOnly": "../../scripts/npm-prepublish.js", + "prepublishOnly": "../../scripts/npm-prepublish.js && npm run custom-elements-manifest", "test": "cd ../../ && npm run test:browser -- --group input-datepicker" }, "sideEffects": [ @@ -59,4 +60,4 @@ "./lion-input-datepicker": "./lion-input-datepicker.js" }, "customElementsManifest": "custom-elements.json" -} \ No newline at end of file +} diff --git a/packages/input-email/custom-elements.json b/packages/input-email/custom-elements.json deleted file mode 100644 index 0f2ac909c..000000000 --- a/packages/input-email/custom-elements.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "schemaVersion": "0.1.0", - "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" - } - } - ] - } - ] -} \ No newline at end of file diff --git a/packages/input-email/package.json b/packages/input-email/package.json index c2323e6cc..d37460db4 100644 --- a/packages/input-email/package.json +++ b/packages/input-email/package.json @@ -15,6 +15,7 @@ "files": [ "*.d.ts", "*.js", + "custom-elements.json", "docs", "src", "test", @@ -27,7 +28,7 @@ "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", - "prepublishOnly": "../../scripts/npm-prepublish.js", + "prepublishOnly": "../../scripts/npm-prepublish.js && npm run custom-elements-manifest", "test": "cd ../../ && npm run test:browser -- --group input-email" }, "sideEffects": [ @@ -53,4 +54,4 @@ "./lion-input-email": "./lion-input-email.js" }, "customElementsManifest": "custom-elements.json" -} \ No newline at end of file +} diff --git a/packages/input-iban/custom-elements.json b/packages/input-iban/custom-elements.json deleted file mode 100644 index 0aa684954..000000000 --- a/packages/input-iban/custom-elements.json +++ /dev/null @@ -1,954 +0,0 @@ -{ - "schemaVersion": "0.1.0", - "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": { - "text": "string" - } - }, - "parameters": [ - { - "name": "modelValue", - "type": { - "text": "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": { - "text": "string|undefined" - } - }, - "parameters": [ - { - "name": "viewValue", - "type": { - "text": "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": { - "text": "string" - } - } - ] - }, - { - "kind": "method", - "name": "getMessage", - "privacy": "public", - "static": true, - "return": { - "type": { - "text": "Promise" - } - }, - "parameters": [ - { - "name": "data", - "type": { - "text": "object" - }, - "optional": true - }, - { - "name": "data.modelValue", - "type": { - "text": "*" - }, - "optional": true - }, - { - "name": "data.fieldName", - "type": { - "text": "string" - }, - "optional": true - }, - { - "name": "data.params", - "type": { - "text": "*" - }, - "optional": true - }, - { - "name": "data.type", - "type": { - "text": "string" - }, - "optional": true - }, - { - "name": "data.config", - "type": { - "text": "Object." - }, - "optional": true - }, - { - "name": "data.name", - "type": { - "text": "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": { - "text": "Boolean" - } - }, - "parameters": [ - { - "name": "value", - "type": { - "text": "string" - } - } - ] - }, - { - "kind": "method", - "name": "getMessage", - "privacy": "public", - "static": true, - "return": { - "type": { - "text": "Promise" - } - }, - "parameters": [ - { - "name": "data", - "type": { - "text": "object" - }, - "optional": true - }, - { - "name": "data.modelValue", - "type": { - "text": "*" - }, - "optional": true - }, - { - "name": "data.fieldName", - "type": { - "text": "string" - }, - "optional": true - }, - { - "name": "data.params", - "type": { - "text": "*" - }, - "optional": true - }, - { - "name": "data.type", - "type": { - "text": "string" - }, - "optional": true - }, - { - "name": "data.config", - "type": { - "text": "Object." - }, - "optional": true - }, - { - "name": "data.name", - "type": { - "text": "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": { - "text": "Boolean" - } - }, - "parameters": [ - { - "name": "value", - "type": { - "text": "string" - } - } - ] - }, - { - "kind": "method", - "name": "getMessage", - "privacy": "public", - "static": true, - "return": { - "type": { - "text": "Promise" - } - }, - "parameters": [ - { - "name": "data", - "type": { - "text": "object" - }, - "optional": true - }, - { - "name": "data.modelValue", - "type": { - "text": "*" - }, - "optional": true - }, - { - "name": "data.fieldName", - "type": { - "text": "string" - }, - "optional": true - }, - { - "name": "data.params", - "type": { - "text": "*" - }, - "optional": true - }, - { - "name": "data.type", - "type": { - "text": "string" - }, - "optional": true - }, - { - "name": "data.config", - "type": { - "text": "Object." - }, - "optional": true - }, - { - "name": "data.name", - "type": { - "text": "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" - } - } - ] - } - ] -} \ No newline at end of file diff --git a/packages/input-iban/package.json b/packages/input-iban/package.json index d8fb75bd7..50c3a391d 100644 --- a/packages/input-iban/package.json +++ b/packages/input-iban/package.json @@ -15,6 +15,7 @@ "files": [ "*.d.ts", "*.js", + "custom-elements.json", "docs", "src", "test", @@ -27,7 +28,7 @@ "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", - "prepublishOnly": "../../scripts/npm-prepublish.js", + "prepublishOnly": "../../scripts/npm-prepublish.js && npm run custom-elements-manifest", "test": "cd ../../ && npm run test:browser -- --group input-iban" }, "sideEffects": [ @@ -54,4 +55,4 @@ "./lion-input-iban": "./lion-input-iban.js" }, "customElementsManifest": "custom-elements.json" -} \ No newline at end of file +} diff --git a/packages/input-range/custom-elements.json b/packages/input-range/custom-elements.json deleted file mode 100644 index 4a9e627a9..000000000 --- a/packages/input-range/custom-elements.json +++ /dev/null @@ -1,190 +0,0 @@ -{ - "schemaVersion": "0.1.0", - "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": { - "text": "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": { - "text": "PropertyValues " - } - } - ] - }, - { - "kind": "method", - "name": "firstUpdated", - "privacy": "public", - "parameters": [ - { - "name": "changedProperties", - "type": { - "text": "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" - } - } - ] - } - ] -} \ No newline at end of file diff --git a/packages/input-range/package.json b/packages/input-range/package.json index ebedebed7..5b5da50f4 100644 --- a/packages/input-range/package.json +++ b/packages/input-range/package.json @@ -15,6 +15,7 @@ "files": [ "*.d.ts", "*.js", + "custom-elements.json", "docs", "src", "test", @@ -27,7 +28,7 @@ "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", - "prepublishOnly": "../../scripts/npm-prepublish.js", + "prepublishOnly": "../../scripts/npm-prepublish.js && npm run custom-elements-manifest", "test": "cd ../../ && npm run test:browser -- --group input-range" }, "sideEffects": [ @@ -52,4 +53,4 @@ "./lion-input-range": "./lion-input-range.js" }, "customElementsManifest": "custom-elements.json" -} \ No newline at end of file +} diff --git a/packages/input-stepper/custom-elements.json b/packages/input-stepper/custom-elements.json deleted file mode 100644 index 02651d4b4..000000000 --- a/packages/input-stepper/custom-elements.json +++ /dev/null @@ -1,272 +0,0 @@ -{ - "schemaVersion": "0.1.0", - "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": { - "text": "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": { - "text": "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": { - "text": "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": { - "text": "HTMLButtonElement|Object" - } - }, - "parameters": [ - { - "name": "slotName", - "type": { - "text": "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": { - "text": "Element|null" - } - } - }, - { - "kind": "method", - "name": "__getDecrementButtonNode", - "privacy": "public", - "description": "Get the decrement button node", - "return": { - "type": { - "text": "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": { - "text": "String|TemplateResult" - } - } - }, - { - "kind": "method", - "name": "_incrementorSignTemplate", - "privacy": "public", - "description": "Get the incrementor button sign template", - "return": { - "type": { - "text": "String|TemplateResult" - } - } - }, - { - "kind": "method", - "name": "_decrementorTemplate", - "privacy": "public", - "description": "Get the increment button template", - "return": { - "type": { - "text": "TemplateResult" - } - } - }, - { - "kind": "method", - "name": "_incrementorTemplate", - "privacy": "public", - "description": "Get the decrement button template", - "return": { - "type": { - "text": "TemplateResult" - } - } - } - ], - "tagName": "lion-input-stepper" - } - ], - "exports": [ - { - "kind": "js", - "name": "LionInputStepper", - "declaration": { - "name": "LionInputStepper", - "module": "./src/LionInputStepper.js" - } - } - ] - } - ] -} \ No newline at end of file diff --git a/packages/input-stepper/package.json b/packages/input-stepper/package.json index bc75cce69..2c7c5bc2d 100644 --- a/packages/input-stepper/package.json +++ b/packages/input-stepper/package.json @@ -15,6 +15,7 @@ "files": [ "*.d.ts", "*.js", + "custom-elements.json", "docs", "src", "test", @@ -27,7 +28,7 @@ "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", - "prepublishOnly": "../../scripts/npm-prepublish.js", + "prepublishOnly": "../../scripts/npm-prepublish.js && npm run custom-elements-manifest", "test": "cd ../../ && npm run test:browser -- --group input-stepper" }, "sideEffects": [ @@ -52,4 +53,4 @@ "./lion-input-stepper": "./lion-input-stepper.js" }, "customElementsManifest": "custom-elements.json" -} \ No newline at end of file +} diff --git a/packages/input/custom-elements.json b/packages/input/custom-elements.json deleted file mode 100644 index 366dce913..000000000 --- a/packages/input/custom-elements.json +++ /dev/null @@ -1,161 +0,0 @@ -{ - "schemaVersion": "0.1.0", - "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" - } - ], - "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": { - "text": "PropertyKey" - } - }, - { - "name": "oldValue", - "type": { - "text": "?" - } - } - ] - }, - { - "kind": "method", - "name": "firstUpdated", - "privacy": "public", - "parameters": [ - { - "name": "changedProperties", - "type": { - "text": "PropertyValues " - } - } - ] - }, - { - "kind": "method", - "name": "updated", - "privacy": "public", - "parameters": [ - { - "name": "changedProperties", - "type": { - "text": "PropertyValues " - } - } - ] - }, - { - "kind": "method", - "name": "__delegateReadOnly", - "privacy": "public" - } - ], - "tagName": "lion-input" - } - ], - "exports": [ - { - "kind": "js", - "name": "LionInput", - "declaration": { - "name": "LionInput", - "module": "./src/LionInput.js" - } - } - ] - } - ] -} \ No newline at end of file diff --git a/packages/input/package.json b/packages/input/package.json index 96fd361a6..3e765c83c 100644 --- a/packages/input/package.json +++ b/packages/input/package.json @@ -15,6 +15,7 @@ "files": [ "*.d.ts", "*.js", + "custom-elements.json", "docs", "src", "test", @@ -27,7 +28,7 @@ "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", - "prepublishOnly": "../../scripts/npm-prepublish.js", + "prepublishOnly": "../../scripts/npm-prepublish.js && npm run custom-elements-manifest", "test": "cd ../../ && npm run test:browser -- --group input" }, "sideEffects": [ @@ -49,4 +50,4 @@ "./lion-input": "./lion-input.js" }, "customElementsManifest": "custom-elements.json" -} \ No newline at end of file +} diff --git a/packages/listbox/custom-elements.json b/packages/listbox/custom-elements.json deleted file mode 100644 index 95627f93a..000000000 --- a/packages/listbox/custom-elements.json +++ /dev/null @@ -1,1886 +0,0 @@ -{ - "schemaVersion": "0.1.0", - "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", - "type": { - "text": "HTMLElement" - } - }, - { - "kind": "field", - "name": "_listboxSlot", - "privacy": "public", - "type": { - "text": "HTMLElement" - } - }, - { - "kind": "field", - "name": "_scrollTargetNode", - "privacy": "public", - "type": { - "text": "HTMLElement" - } - }, - { - "kind": "field", - "name": "_activeDescendantOwnerNode", - "privacy": "public", - "type": { - "text": "HTMLElement" - } - }, - { - "kind": "field", - "name": "serializedValue", - "privacy": "public" - }, - { - "kind": "field", - "name": "activeIndex", - "privacy": "public" - }, - { - "kind": "field", - "name": "checkedIndex", - "privacy": "public", - "type": { - "text": "number | number[]" - } - }, - { - "kind": "method", - "name": "connectedCallback", - "privacy": "public" - }, - { - "kind": "method", - "name": "firstUpdated", - "privacy": "public", - "parameters": [ - { - "name": "changedProperties", - "type": { - "text": "PropertyValues " - } - } - ] - }, - { - "kind": "method", - "name": "updated", - "privacy": "public", - "parameters": [ - { - "name": "changedProperties", - "type": { - "text": "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": { - "text": "number|number[]" - } - } - ] - }, - { - "kind": "method", - "name": "addFormElement", - "privacy": "public", - "parameters": [ - { - "name": "child", - "type": { - "text": "LionOption" - } - }, - { - "name": "indexToInsertAt", - "type": { - "text": "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": { - "text": "number" - } - }, - { - "name": "offset", - "type": { - "text": "number" - }, - "optional": true, - "default": "1" - } - ] - }, - { - "kind": "method", - "name": "_getPreviousEnabledOption", - "privacy": "public", - "parameters": [ - { - "name": "currentIndex", - "type": { - "text": "number" - } - }, - { - "name": "offset", - "type": { - "text": "number" - }, - "optional": true, - "default": "-1" - } - ] - }, - { - "kind": "method", - "name": "_onChildActiveChanged", - "privacy": "public", - "parameters": [ - { - "name": "ev", - "type": { - "text": "Event & { target: LionOption }" - } - } - ] - }, - { - "kind": "method", - "name": "_listboxOnKeyDown", - "privacy": "public", - "parameters": [ - { - "name": "ev", - "type": { - "text": "KeyboardEvent" - }, - "description": "the keydown event object" - } - ] - }, - { - "kind": "method", - "name": "_listboxOnClick", - "privacy": "public", - "parameters": [ - { - "name": "ev", - "type": { - "text": "MouseEvent" - } - } - ] - }, - { - "kind": "method", - "name": "_listboxOnKeyUp", - "privacy": "public", - "parameters": [ - { - "name": "ev", - "type": { - "text": "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": { - "text": "LionOption | null" - } - } - ] - }, - { - "kind": "method", - "name": "_uncheckChildren", - "privacy": "public", - "parameters": [ - { - "name": "exclude", - "type": { - "text": "LionOption|LionOption[]" - }, - "optional": true, - "default": "[]" - } - ] - }, - { - "kind": "method", - "name": "__onChildCheckedChanged", - "privacy": "public", - "parameters": [ - { - "name": "cfgOrEvent", - "type": { - "text": "Event & { target: LionOption }" - } - } - ] - }, - { - "kind": "method", - "name": "__setAttributeForAllFormElements", - "privacy": "public", - "description": "// TODO: add to choiceGroup", - "parameters": [ - { - "name": "attribute", - "type": { - "text": "string" - } - }, - { - "name": "value", - "type": { - "text": "number" - } - } - ] - }, - { - "kind": "method", - "name": "__proxyChildModelValueChanged", - "privacy": "public", - "parameters": [ - { - "name": "ev", - "type": { - "text": "CustomEvent & { target: LionOption; }" - } - } - ] - }, - { - "kind": "method", - "name": "__getEnabledOption", - "privacy": "public", - "parameters": [ - { - "name": "currentIndex", - "type": { - "text": "number" - } - }, - { - "name": "offset", - "type": { - "text": "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": { - "text": "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" - } - ] - } - ], - "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": { - "text": "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": { - "text": "Boolean" - } - }, - { - "kind": "field", - "name": "rotateKeyboardNavigation", - "privacy": "public", - "type": { - "text": "Boolean" - } - }, - { - "kind": "field", - "name": "orientation", - "privacy": "public", - "type": { - "text": "'vertical' | 'horizontal'" - } - }, - { - "kind": "field", - "name": "hasNoDefaultSelected", - "privacy": "public", - "type": { - "text": "boolean" - } - }, - { - "kind": "field", - "name": "singleOption", - "privacy": "public", - "type": { - "text": "boolean" - } - }, - { - "kind": "field", - "name": "checkedIndex", - "privacy": "public", - "type": { - "text": "number | number[]" - } - }, - { - "kind": "field", - "name": "activeIndex", - "privacy": "public", - "type": { - "text": "number" - } - }, - { - "kind": "field", - "name": "formElements", - "privacy": "public", - "type": { - "text": "LionOption[]" - } - }, - { - "kind": "method", - "name": "setCheckedIndex", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - }, - "parameters": [ - { - "name": "index", - "type": { - "text": "number | number[]" - } - } - ] - }, - { - "kind": "method", - "name": "reset", - "privacy": "public", - "description": "Reset interaction states and modelValue", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "field", - "name": "_scrollTargetNode", - "privacy": "protected", - "type": { - "text": "LionOptions" - } - }, - { - "kind": "field", - "name": "_listboxNode", - "privacy": "protected", - "type": { - "text": "LionOptions" - } - }, - { - "kind": "field", - "name": "_listboxReceivesNoFocus", - "privacy": "protected", - "type": { - "text": "boolean" - } - }, - { - "kind": "method", - "name": "_uncheckChildren", - "privacy": "protected", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "__setupListboxNode", - "privacy": "private", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "_getPreviousEnabledOption", - "privacy": "protected", - "return": { - "type": { - "text": "number" - } - }, - "parameters": [ - { - "name": "currentIndex", - "type": { - "text": "number" - } - }, - { - "name": "offset", - "type": { - "text": "number" - } - } - ] - }, - { - "kind": "method", - "name": "_getNextEnabledOption", - "privacy": "protected", - "return": { - "type": { - "text": "number" - } - }, - "parameters": [ - { - "name": "currentIndex", - "type": { - "text": "number" - } - }, - { - "name": "offset", - "type": { - "text": "number" - } - } - ] - }, - { - "kind": "method", - "name": "_listboxOnKeyDown", - "privacy": "protected", - "return": { - "type": { - "text": "void" - } - }, - "parameters": [ - { - "name": "ev", - "type": { - "text": "KeyboardEvent" - } - } - ] - }, - { - "kind": "method", - "name": "_listboxOnKeyUp", - "privacy": "protected", - "return": { - "type": { - "text": "void" - } - }, - "parameters": [ - { - "name": "ev", - "type": { - "text": "KeyboardEvent" - } - } - ] - }, - { - "kind": "method", - "name": "_setupListboxNode", - "privacy": "protected", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "_teardownListboxNode", - "privacy": "protected", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "_listboxOnClick", - "privacy": "protected", - "return": { - "type": { - "text": "void" - } - }, - "parameters": [ - { - "name": "ev", - "type": { - "text": "MouseEvent" - } - } - ] - }, - { - "kind": "method", - "name": "_setupListboxInteractions", - "privacy": "protected", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "_onChildActiveChanged", - "privacy": "protected", - "return": { - "type": { - "text": "void" - } - }, - "parameters": [ - { - "name": "ev", - "type": { - "text": "Event" - } - } - ] - }, - { - "kind": "field", - "name": "_activeDescendantOwnerNode", - "privacy": "protected", - "type": { - "text": "HTMLElement" - } - } - ] - }, - { - "kind": "function", - "name": "ListboxImplementation", - "return": { - "type": { - "text": "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": { - "text": "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" - } - } - ] - } - ] -} \ No newline at end of file diff --git a/packages/listbox/package.json b/packages/listbox/package.json index 67759cfb0..aac194104 100644 --- a/packages/listbox/package.json +++ b/packages/listbox/package.json @@ -15,10 +15,11 @@ "files": [ "*.d.ts", "*.js", + "custom-elements.json", "docs", "src", "test", - "test-suites", + "test-helpers", "translations", "types" ], @@ -27,7 +28,7 @@ "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", - "prepublishOnly": "../../scripts/npm-prepublish.js", + "prepublishOnly": "../../scripts/npm-prepublish.js && npm run custom-elements-manifest", "test": "cd ../../ && npm run test:browser -- --group listbox" }, "sideEffects": [ @@ -56,4 +57,4 @@ "./lion-options": "./lion-options.js" }, "customElementsManifest": "custom-elements.json" -} \ No newline at end of file +} diff --git a/packages/localize/custom-elements.json b/packages/localize/custom-elements.json deleted file mode 100644 index 4726f40c1..000000000 --- a/packages/localize/custom-elements.json +++ /dev/null @@ -1,2701 +0,0 @@ -{ - "schemaVersion": "0.1.0", - "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": { - "text": "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": { - "text": "string" - } - } - ] - }, - { - "kind": "method", - "name": "__handleLanguageOnly", - "privacy": "public", - "parameters": [ - { - "name": "value", - "type": { - "text": "string" - } - } - ] - }, - { - "kind": "field", - "name": "loadingComplete", - "privacy": "public" - }, - { - "kind": "method", - "name": "reset", - "privacy": "public" - }, - { - "kind": "method", - "name": "addData", - "privacy": "public", - "parameters": [ - { - "name": "locale", - "type": { - "text": "string" - } - }, - { - "name": "namespace", - "type": { - "text": "string" - } - }, - { - "name": "data", - "type": { - "text": "object" - } - } - ] - }, - { - "kind": "method", - "name": "setupNamespaceLoader", - "privacy": "public", - "parameters": [ - { - "name": "pattern", - "type": { - "text": "RegExp|string" - } - }, - { - "name": "loader", - "type": { - "text": "function" - } - } - ] - }, - { - "kind": "method", - "name": "loadNamespaces", - "privacy": "public", - "return": { - "type": { - "text": "Promise." - } - }, - "parameters": [ - { - "name": "namespaces", - "type": { - "text": "NamespaceObject[]" - } - }, - { - "name": "options", - "type": { - "text": "Object" - }, - "optional": true - }, - { - "name": "options.locale", - "type": { - "text": "string" - }, - "optional": true - } - ] - }, - { - "kind": "method", - "name": "loadNamespace", - "privacy": "public", - "return": { - "type": { - "text": "Promise." - } - }, - "parameters": [ - { - "name": "namespaceObj", - "type": { - "text": "NamespaceObject" - } - }, - { - "name": "options", - "type": { - "text": "Object" - }, - "optional": true - }, - { - "name": "options.locale", - "type": { - "text": "string" - }, - "optional": true - } - ] - }, - { - "kind": "method", - "name": "msg", - "privacy": "public", - "return": { - "type": { - "text": "string" - } - }, - "parameters": [ - { - "name": "keys", - "type": { - "text": "string | string[]" - } - }, - { - "name": "vars", - "type": { - "text": "Object." - }, - "optional": true - }, - { - "name": "opts", - "type": { - "text": "Object" - }, - "optional": true, - "default": "{}" - }, - { - "name": "opts.locale", - "type": { - "text": "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": { - "text": "string" - } - }, - { - "name": "namespace", - "type": { - "text": "string" - } - } - ] - }, - { - "kind": "method", - "name": "_getCachedNamespaceLoaderPromise", - "privacy": "public", - "parameters": [ - { - "name": "locale", - "type": { - "text": "string" - } - }, - { - "name": "namespace", - "type": { - "text": "string" - } - } - ] - }, - { - "kind": "method", - "name": "_loadNamespaceData", - "privacy": "public", - "return": { - "type": { - "text": "Promise." - } - }, - "parameters": [ - { - "name": "locale", - "type": { - "text": "string" - } - }, - { - "name": "namespaceObj", - "type": { - "text": "NamespaceObject" - } - }, - { - "name": "isDynamicImport", - "type": { - "text": "boolean" - } - }, - { - "name": "namespace", - "type": { - "text": "string" - } - } - ] - }, - { - "kind": "method", - "name": "_getNamespaceLoader", - "privacy": "public", - "parameters": [ - { - "name": "namespaceObj", - "type": { - "text": "NamespaceObject" - } - }, - { - "name": "isDynamicImport", - "type": { - "text": "boolean" - } - }, - { - "name": "namespace", - "type": { - "text": "string" - } - } - ] - }, - { - "kind": "method", - "name": "_getNamespaceLoaderPromise", - "privacy": "public", - "return": { - "type": { - "text": "Promise." - } - }, - "parameters": [ - { - "name": "loader", - "type": { - "text": "function" - } - }, - { - "name": "locale", - "type": { - "text": "string" - } - }, - { - "name": "namespace", - "type": { - "text": "string" - } - }, - { - "name": "fallbackLocale", - "type": { - "text": "string" - }, - "optional": true, - "default": "this._fallbackLocale" - } - ] - }, - { - "kind": "method", - "name": "_cacheNamespaceLoaderPromise", - "privacy": "public", - "parameters": [ - { - "name": "locale", - "type": { - "text": "string" - } - }, - { - "name": "namespace", - "type": { - "text": "string" - } - }, - { - "name": "promise", - "type": { - "text": "Promise." - } - } - ] - }, - { - "kind": "method", - "name": "_lookupNamespaceLoader", - "privacy": "public", - "return": { - "type": { - "text": "function|null" - } - }, - "parameters": [ - { - "name": "namespace", - "type": { - "text": "string" - } - } - ] - }, - { - "kind": "method", - "name": "_getLangFromLocale", - "privacy": "public", - "return": { - "type": { - "text": "string" - } - }, - "parameters": [ - { - "name": "locale", - "type": { - "text": "string" - } - } - ] - }, - { - "kind": "method", - "name": "addEventListener", - "privacy": "public", - "parameters": [ - { - "name": "type", - "type": { - "text": "string" - } - }, - { - "name": "listener", - "type": { - "text": "EventListener" - } - }, - { - "name": "options", - "type": { - "text": "...Object" - } - } - ] - }, - { - "kind": "method", - "name": "removeEventListener", - "privacy": "public", - "parameters": [ - { - "name": "type", - "type": { - "text": "string" - } - }, - { - "name": "listener", - "type": { - "text": "EventListener" - } - }, - { - "name": "options", - "type": { - "text": "...Object" - } - } - ] - }, - { - "kind": "method", - "name": "dispatchEvent", - "privacy": "public", - "parameters": [ - { - "name": "event", - "type": { - "text": "CustomEvent" - } - } - ] - }, - { - "kind": "method", - "name": "_onLocaleChanged", - "privacy": "public", - "return": { - "type": { - "text": "undefined" - } - }, - "parameters": [ - { - "name": "newLocale", - "type": { - "text": "string" - } - }, - { - "name": "oldLocale", - "type": { - "text": "string" - } - } - ] - }, - { - "kind": "method", - "name": "_loadAllMissing", - "privacy": "public", - "return": { - "type": { - "text": "Promise." - } - }, - "parameters": [ - { - "name": "newLocale", - "type": { - "text": "string" - } - }, - { - "name": "oldLocale", - "type": { - "text": "string" - } - } - ] - }, - { - "kind": "method", - "name": "_getMessageForKeys", - "privacy": "public", - "return": { - "type": { - "text": "string | undefined" - } - }, - "parameters": [ - { - "name": "keys", - "type": { - "text": "string | string[]" - } - }, - { - "name": "locale", - "type": { - "text": "string" - } - } - ] - }, - { - "kind": "method", - "name": "_getMessageForKey", - "privacy": "public", - "return": { - "type": { - "text": "string" - } - }, - "parameters": [ - { - "name": "key", - "type": { - "text": "string | undefined" - } - }, - { - "name": "locale", - "type": { - "text": "string" - } - } - ] - }, - { - "kind": "method", - "name": "setDatePostProcessorForLocale", - "privacy": "public", - "parameters": [ - { - "name": "options", - "type": { - "text": "{locale:string, postProcessor:DatePostProcessor}" - } - } - ] - }, - { - "kind": "method", - "name": "setNumberPostProcessorForLocale", - "privacy": "public", - "parameters": [ - { - "name": "options", - "type": { - "text": "{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", - "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": { - "text": "Promise." - } - } - }, - { - "kind": "method", - "name": "connectedCallback", - "privacy": "public" - }, - { - "kind": "method", - "name": "disconnectedCallback", - "privacy": "public" - }, - { - "kind": "method", - "name": "msgLit", - "privacy": "public", - "return": { - "type": { - "text": "string | function" - } - }, - "parameters": [ - { - "name": "keys", - "type": { - "text": "string | string[]" - } - }, - { - "name": "variables", - "type": { - "text": "Object." - } - }, - { - "name": "options", - "type": { - "text": "Object" - }, - "optional": true - }, - { - "name": "options.locale", - "type": { - "text": "string" - }, - "optional": true - } - ] - }, - { - "kind": "method", - "name": "__getUniqueNamespaces", - "privacy": "public", - "return": { - "type": { - "text": "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": { - "text": "CustomEvent" - } - } - ] - }, - { - "kind": "method", - "name": "onLocaleReady", - "privacy": "public" - }, - { - "kind": "method", - "name": "onLocaleChanged", - "privacy": "public", - "parameters": [ - { - "name": "newLocale", - "type": { - "text": "string" - } - }, - { - "name": "oldLocale", - "type": { - "text": "string" - } - } - ] - }, - { - "kind": "method", - "name": "onLocaleUpdated", - "privacy": "public" - } - ] - } - ], - "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": { - "text": "boolean" - } - }, - "parameters": [ - { - "name": "obj", - "type": { - "text": "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": { - "text": "LocalizeManager" - } - }, - { - "kind": "function", - "name": "setLocalize", - "parameters": [ - { - "name": "newLocalize", - "type": { - "text": "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": { - "text": "string" - } - }, - { - "name": "data", - "type": { - "text": "Object" - } - } - ] - }, - { - "kind": "function", - "name": "setupEmptyFakeImportsFor", - "parameters": [ - { - "name": "namespaces", - "type": { - "text": "string[]" - } - }, - { - "name": "locales", - "type": { - "text": "string[]" - } - } - ] - }, - { - "kind": "function", - "name": "resetFakeImport" - }, - { - "kind": "function", - "name": "fakeImport", - "return": { - "type": { - "text": "Promise." - } - }, - "parameters": [ - { - "name": "path", - "type": { - "text": "string" - } - }, - { - "name": "ms", - "type": { - "text": "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": { - "text": "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": { - "text": "string" - } - }, - "parameters": [ - { - "name": "date", - "type": { - "text": "Date" - } - }, - { - "name": "options", - "type": { - "text": "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": { - "text": "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": { - "text": "string[]" - } - }, - "parameters": [ - { - "name": "options", - "type": { - "text": "Object" - }, - "optional": true - }, - { - "name": "options.locale", - "type": { - "text": "string" - }, - "description": "locale", - "optional": true - }, - { - "name": "options.style", - "type": { - "text": "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": { - "text": "string[]" - } - }, - "parameters": [ - { - "name": "options", - "type": { - "text": "Object" - }, - "optional": true - }, - { - "name": "options.locale", - "type": { - "text": "string" - }, - "description": "locale", - "optional": true - }, - { - "name": "options.style", - "type": { - "text": "string" - }, - "description": "long, short or narrow", - "optional": true - }, - { - "name": "options.firstDayOfWeek", - "type": { - "text": "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": { - "text": "Date" - } - }, - "parameters": [ - { - "name": "date", - "type": { - "text": "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": { - "text": "Date | undefined" - } - }, - "parameters": [ - { - "name": "dateString", - "type": { - "text": "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": { - "text": "string" - } - }, - "parameters": [ - { - "name": "number", - "type": { - "text": "number" - }, - "description": "Number to be formatted" - }, - { - "name": "options", - "type": { - "text": "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": { - "text": "number" - } - }, - "parameters": [ - { - "name": "number", - "type": { - "text": "number" - } - }, - { - "name": "roundMode", - "type": { - "text": "string" - } - } - ] - }, - { - "kind": "function", - "name": "formatNumberToParts", - "description": "Splits a number up in parts for integer, fraction, group, literal, decimal and currency.", - "return": { - "type": { - "text": "string | FormatNumberPart[]" - } - }, - "parameters": [ - { - "name": "number", - "type": { - "text": "number" - }, - "description": "Number to split up" - }, - { - "name": "options", - "type": { - "text": "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": { - "text": "string" - } - }, - "parameters": [ - { - "name": "currencyIso", - "type": { - "text": "string" - }, - "description": "iso code like USD" - }, - { - "name": "options", - "type": { - "text": "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": { - "text": "string" - } - }, - "parameters": [ - { - "name": "locale", - "type": { - "text": "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": { - "text": "number" - } - }, - "parameters": [ - { - "name": "currency", - "type": { - "text": "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": { - "text": "string" - } - }, - "parameters": [ - { - "name": "locale", - "type": { - "text": "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": { - "text": "string" - } - }, - "parameters": [ - { - "name": "currency", - "type": { - "text": "string" - } - }, - { - "name": "locale", - "type": { - "text": "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": { - "text": "string" - } - }, - "parameters": [ - { - "name": "locale", - "type": { - "text": "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": { - "text": "string" - } - }, - "parameters": [ - { - "name": "dateString", - "type": { - "text": "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": { - "text": "string" - } - }, - "parameters": [ - { - "name": "dateAsString", - "type": { - "text": "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": { - "text": "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": { - "text": "string" - } - }, - "parameters": [ - { - "name": "str", - "type": { - "text": "string" - } - }, - { - "name": "locale", - "type": { - "text": "string" - }, - "optional": true, - "default": "''" - }, - { - "name": "options", - "type": { - "text": "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": { - "text": "string" - } - }, - "parameters": [ - { - "name": "n", - "type": { - "text": "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": { - "text": "string" - } - }, - "parameters": [ - { - "name": "date", - "type": { - "text": "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": { - "text": "ArrayLike. | null" - } - }, - "parameters": [ - { - "name": "dateAsString", - "type": { - "text": "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": { - "text": "string" - } - }, - "parameters": [ - { - "name": "dateAsString", - "type": { - "text": "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": { - "text": "string" - } - }, - "parameters": [ - { - "name": "returnIfNaN", - "type": { - "text": "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": { - "text": "string" - } - }, - "parameters": [ - { - "name": "value", - "type": { - "text": "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": { - "text": "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": { - "text": "FormatNumberPart[]" - } - }, - "parameters": [ - { - "name": "formattedParts", - "type": { - "text": "FormatNumberPart[]" - } - }, - { - "name": "groupSeparator", - "type": { - "text": "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": { - "text": "FormatNumberPart[]" - } - }, - "parameters": [ - { - "name": "formattedParts", - "type": { - "text": "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": { - "text": "FormatNumberPart[]" - } - }, - "parameters": [ - { - "name": "formattedParts", - "type": { - "text": "FormatNumberPart[]" - } - }, - { - "name": "options", - "type": { - "text": "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": { - "text": "FormatNumberPart[]" - } - }, - "parameters": [ - { - "name": "formattedParts", - "type": { - "text": "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": { - "text": "FormatNumberPart[]" - } - }, - "parameters": [ - { - "name": "formattedParts", - "type": { - "text": "FormatNumberPart[]" - } - }, - { - "name": "options", - "type": { - "text": "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": { - "text": "FormatNumberPart[]" - } - }, - "parameters": [ - { - "name": "formattedParts", - "type": { - "text": "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": { - "text": "FormatNumberPart[]" - } - }, - "parameters": [ - { - "name": "formattedParts", - "type": { - "text": "FormatNumberPart[]" - } - }, - { - "name": "options", - "type": { - "text": "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": { - "text": "FormatNumberPart[]" - } - }, - "parameters": [ - { - "name": "formattedParts", - "type": { - "text": "FormatNumberPart[]" - } - }, - { - "name": "options", - "type": { - "text": "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": { - "text": "FormatNumberPart[]" - } - }, - "parameters": [ - { - "name": "formattedParts", - "type": { - "text": "FormatNumberPart[]" - } - }, - { - "name": "options", - "type": { - "text": "FormatNumberOptions" - }, - "default": "{}" - }, - { - "name": "_locale", - "type": { - "text": "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": [] - } - ] -} \ No newline at end of file diff --git a/packages/localize/package.json b/packages/localize/package.json index 23c9884bb..c0508f236 100644 --- a/packages/localize/package.json +++ b/packages/localize/package.json @@ -15,6 +15,7 @@ "files": [ "*.d.ts", "*.js", + "custom-elements.json", "docs", "src", "test", @@ -27,7 +28,7 @@ "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", - "prepublishOnly": "../../scripts/npm-prepublish.js", + "prepublishOnly": "../../scripts/npm-prepublish.js && npm run custom-elements-manifest", "test": "cd ../../ && npm run test:browser -- --group localize" }, "sideEffects": false, @@ -49,4 +50,4 @@ "./test-helpers": "./test-helpers.js" }, "customElementsManifest": "custom-elements.json" -} \ No newline at end of file +} diff --git a/packages/overlays/custom-elements.json b/packages/overlays/custom-elements.json deleted file mode 100644 index 2424f0f0a..000000000 --- a/packages/overlays/custom-elements.json +++ /dev/null @@ -1,3100 +0,0 @@ -{ - "schemaVersion": "0.1.0", - "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": { - "text": "OverlayConfig" - }, - "default": "{}", - "inheritedFrom": { - "name": "OverlayMixin", - "module": "./src/OverlayMixin.js" - } - }, - { - "kind": "method", - "name": "requestUpdateInternal", - "privacy": "public", - "parameters": [ - { - "name": "name", - "type": { - "text": "string" - } - }, - { - "name": "oldValue", - "type": { - "text": "any" - } - } - ], - "inheritedFrom": { - "name": "OverlayMixin", - "module": "./src/OverlayMixin.js" - } - }, - { - "kind": "method", - "name": "_defineOverlay", - "privacy": "public", - "return": { - "type": { - "text": "OverlayController" - } - }, - "parameters": [ - { - "name": "config", - "type": { - "text": "DefineOverlayConfig" - } - } - ], - "inheritedFrom": { - "name": "OverlayMixin", - "module": "./src/OverlayMixin.js" - } - }, - { - "kind": "method", - "name": "updated", - "privacy": "public", - "parameters": [ - { - "name": "changedProperties", - "type": { - "text": "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": { - "text": "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": { - "text": "Event" - }, - "inheritedFrom": { - "name": "OverlayMixin", - "module": "./src/OverlayMixin.js" - } - }, - { - "name": "before-closed", - "type": { - "text": "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", - "parameters": [ - { - "name": "superclass", - "type": { - "text": "LitElement>" - }, - "description": "" - } - ], - "mixins": [ - { - "name": "OverlayMixin", - "module": "/src/OverlayMixin.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": { - "text": "OverlayConfig" - } - } - }, - { - "kind": "method", - "name": "_getPopperArrowConfig", - "privacy": "public", - "return": { - "type": { - "text": "Partial" - } - }, - "parameters": [ - { - "name": "popperConfigToExtendFrom", - "type": { - "text": "Partial" - } - } - ] - }, - { - "kind": "method", - "name": "__setupRepositionCompletePromise", - "privacy": "public" - }, - { - "kind": "field", - "name": "_arrowNode", - "privacy": "public" - }, - { - "kind": "method", - "name": "__syncFromPopperState", - "privacy": "public", - "parameters": [ - { - "name": "data", - "type": { - "text": "Partial" - } - } - ] - } - ] - }, - { - "kind": "variable", - "name": "ArrowMixinImplementation", - "description": "", - "type": { - "text": "LitElement>" - } - } - ], - "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": { - "text": "CustomEvent" - } - }, - { - "name": "show", - "type": { - "text": "Event" - } - }, - { - "name": "before-hide", - "type": { - "text": "CustomEvent" - } - }, - { - "name": "hide", - "type": { - "text": "Event" - } - } - ], - "superclass": { - "name": "EventTargetShim", - "package": "@lion/core" - }, - "members": [ - { - "kind": "field", - "name": "invoker", - "privacy": "public", - "type": { - "text": "HTMLElement | undefined" - } - }, - { - "kind": "field", - "name": "content", - "privacy": "public", - "type": { - "text": "HTMLElement" - } - }, - { - "kind": "field", - "name": "placementMode", - "privacy": "public", - "type": { - "text": "'global' | 'local' | undefined" - } - }, - { - "kind": "field", - "name": "invokerNode", - "privacy": "public", - "type": { - "text": "HTMLElement | undefined" - } - }, - { - "kind": "field", - "name": "referenceNode", - "privacy": "public", - "type": { - "text": "HTMLElement" - } - }, - { - "kind": "field", - "name": "contentNode", - "privacy": "public", - "type": { - "text": "HTMLElement" - } - }, - { - "kind": "field", - "name": "contentWrapperNode", - "privacy": "public", - "type": { - "text": "HTMLElement" - } - }, - { - "kind": "field", - "name": "backdropNode", - "privacy": "public", - "type": { - "text": "HTMLElement" - } - }, - { - "kind": "field", - "name": "elementToFocusAfterHide", - "privacy": "public", - "type": { - "text": "HTMLElement" - } - }, - { - "kind": "field", - "name": "hasBackdrop", - "privacy": "public", - "type": { - "text": "boolean" - } - }, - { - "kind": "field", - "name": "isBlocking", - "privacy": "public", - "type": { - "text": "boolean" - } - }, - { - "kind": "field", - "name": "preventsScroll", - "privacy": "public", - "type": { - "text": "boolean" - } - }, - { - "kind": "field", - "name": "trapsKeyboardFocus", - "privacy": "public", - "type": { - "text": "boolean" - } - }, - { - "kind": "field", - "name": "hidesOnEsc", - "privacy": "public", - "type": { - "text": "boolean" - } - }, - { - "kind": "field", - "name": "hidesOnOutsideClick", - "privacy": "public", - "type": { - "text": "boolean" - } - }, - { - "kind": "field", - "name": "hidesOnOutsideEsc", - "privacy": "public", - "type": { - "text": "boolean" - } - }, - { - "kind": "field", - "name": "inheritsReferenceWidth", - "privacy": "public", - "type": { - "text": "'max' | 'full' | 'min' | 'none' | undefined " - } - }, - { - "kind": "field", - "name": "handlesAccessibility", - "privacy": "public", - "type": { - "text": "boolean" - } - }, - { - "kind": "field", - "name": "isTooltip", - "privacy": "public", - "type": { - "text": "boolean" - } - }, - { - "kind": "field", - "name": "invokerRelation", - "privacy": "public", - "type": { - "text": "'label' | 'description'| undefined" - } - }, - { - "kind": "field", - "name": "popperConfig", - "privacy": "public", - "type": { - "text": "PopperOptions" - } - }, - { - "kind": "field", - "name": "viewportConfig", - "privacy": "public", - "type": { - "text": "ViewportConfig" - } - }, - { - "kind": "field", - "name": "_renderTarget", - "privacy": "public", - "type": { - "text": "HTMLElement" - } - }, - { - "kind": "field", - "name": "_referenceNode", - "privacy": "public", - "type": { - "text": "HTMLElement | undefined" - } - }, - { - "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": { - "text": " OverlayConfig " - } - } - ] - }, - { - "kind": "method", - "name": "__validateConfiguration", - "privacy": "public", - "parameters": [ - { - "name": "newConfig", - "type": { - "text": "OverlayConfig" - } - } - ] - }, - { - "kind": "method", - "name": "_init", - "privacy": "public", - "parameters": [ - { - "name": "options", - "type": { - "text": "{ 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": { - "text": "{ 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": { - "text": "{ phase: OverlayPhase }" - } - } - ] - }, - { - "kind": "method", - "name": "__setupTeardownAccessibility", - "privacy": "public", - "parameters": [ - { - "name": "config", - "type": { - "text": "{ phase: OverlayPhase }" - } - } - ] - }, - { - "kind": "method", - "name": "__storeOriginalAttrs", - "privacy": "public", - "parameters": [ - { - "name": "node", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "attrs", - "type": { - "text": "string[]" - } - } - ] - }, - { - "kind": "method", - "name": "__restoreOriginalAttrs", - "privacy": "public" - }, - { - "kind": "field", - "name": "isShown", - "privacy": "public" - }, - { - "kind": "method", - "name": "show", - "privacy": "public", - "parameters": [ - { - "name": "elementToFocusAfterHide", - "type": { - "text": "HTMLElement" - }, - "default": "this.elementToFocusAfterHide" - } - ] - }, - { - "kind": "method", - "name": "_handlePosition", - "privacy": "public", - "parameters": [ - { - "name": "config", - "type": { - "text": "{ phase: OverlayPhase }" - } - } - ] - }, - { - "kind": "method", - "name": "_keepBodySize", - "privacy": "public", - "parameters": [ - { - "name": "config", - "type": { - "text": "{ 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": { - "text": "{backdropNode:HTMLElement, contentNode:HTMLElement}" - } - } - ] - }, - { - "kind": "method", - "name": "_transitionHide", - "privacy": "public", - "parameters": [ - { - "name": "hideConfig", - "type": { - "text": "{backdropNode:HTMLElement, contentNode:HTMLElement}" - } - } - ] - }, - { - "kind": "method", - "name": "transitionShow", - "privacy": "public", - "description": "To be overridden by subclassers", - "parameters": [ - { - "name": "showConfig", - "type": { - "text": "{backdropNode:HTMLElement, contentNode:HTMLElement}" - } - } - ] - }, - { - "kind": "method", - "name": "_transitionShow", - "privacy": "public", - "parameters": [ - { - "name": "showConfig", - "type": { - "text": "{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": { - "text": "{ phase: OverlayPhase }" - } - } - ] - }, - { - "kind": "method", - "name": "_handlePreventsScroll", - "privacy": "public", - "parameters": [ - { - "name": "config", - "type": { - "text": "{ phase: OverlayPhase }" - } - } - ] - }, - { - "kind": "method", - "name": "_handleBlocking", - "privacy": "public", - "parameters": [ - { - "name": "config", - "type": { - "text": "{ 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": { - "text": "{ animation?: boolean, phase: OverlayPhase }" - } - } - ] - }, - { - "kind": "field", - "name": "hasActiveTrapsKeyboardFocus", - "privacy": "public" - }, - { - "kind": "method", - "name": "_handleTrapsKeyboardFocus", - "privacy": "public", - "parameters": [ - { - "name": "config", - "type": { - "text": "{ 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": { - "text": "{ phase: OverlayPhase }" - } - } - ] - }, - { - "kind": "method", - "name": "_handleHidesOnOutsideEsc", - "privacy": "public", - "parameters": [ - { - "name": "config", - "type": { - "text": "{ phase: OverlayPhase }" - } - } - ] - }, - { - "kind": "method", - "name": "_handleInheritsReferenceWidth", - "privacy": "public" - }, - { - "kind": "method", - "name": "_handleHidesOnOutsideClick", - "privacy": "public", - "parameters": [ - { - "name": "config", - "type": { - "text": "{ phase: OverlayPhase }" - } - } - ] - }, - { - "kind": "method", - "name": "_handleAccessibility", - "privacy": "public", - "parameters": [ - { - "name": "config", - "type": { - "text": "{ 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": { - "text": "Event" - } - }, - { - "name": "before-closed", - "type": { - "text": "CustomEvent" - } - }, - { - "name": "before-closed", - "type": { - "text": "CustomEvent" - } - } - ], - "attributes": [ - { - "name": "opened", - "fieldName": "opened" - } - ], - "members": [ - { - "kind": "field", - "name": "opened", - "privacy": "public", - "default": "false" - }, - { - "kind": "field", - "name": "config", - "privacy": "public", - "type": { - "text": "OverlayConfig" - }, - "default": "{}" - }, - { - "kind": "method", - "name": "requestUpdateInternal", - "privacy": "public", - "parameters": [ - { - "name": "name", - "type": { - "text": "string" - } - }, - { - "name": "oldValue", - "type": { - "text": "any" - } - } - ] - }, - { - "kind": "method", - "name": "_defineOverlay", - "privacy": "public", - "return": { - "type": { - "text": "OverlayController" - } - }, - "parameters": [ - { - "name": "config", - "type": { - "text": "DefineOverlayConfig" - } - } - ] - }, - { - "kind": "method", - "name": "_defineOverlayConfig", - "privacy": "public", - "return": { - "type": { - "text": "OverlayConfig" - } - } - }, - { - "kind": "method", - "name": "updated", - "privacy": "public", - "parameters": [ - { - "name": "changedProperties", - "type": { - "text": "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": { - "text": "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": { - "text": "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": { - "text": "OverlayController" - } - }, - "parameters": [ - { - "name": "ctrlToAdd", - "type": { - "text": "OverlayController" - }, - "description": "controller of the newly added overlay" - } - ] - }, - { - "kind": "method", - "name": "remove", - "privacy": "public", - "parameters": [ - { - "name": "ctrlToRemove", - "type": { - "text": "OverlayController" - } - } - ] - }, - { - "kind": "method", - "name": "show", - "privacy": "public", - "parameters": [ - { - "name": "ctrlToShow", - "type": { - "text": "OverlayController" - } - } - ] - }, - { - "kind": "method", - "name": "hide", - "privacy": "public", - "parameters": [ - { - "name": "ctrlToHide", - "type": { - "text": "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": { - "text": "'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": { - "text": "OverlayController" - } - } - ] - }, - { - "kind": "method", - "name": "retractRequestToShowOnly", - "privacy": "public", - "parameters": [ - { - "name": "blockingCtrl", - "type": { - "text": "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": { - "text": "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": "./types/ArrowMixinTypes.d.ts", - "declarations": [ - { - "kind": "class", - "name": "ArrowHost", - "members": [ - { - "kind": "field", - "name": "hasArrow", - "privacy": "public", - "type": { - "text": "boolean" - } - }, - { - "kind": "field", - "name": "repositionComplete", - "privacy": "public", - "type": { - "text": "Promise" - } - }, - { - "kind": "method", - "name": "render", - "privacy": "public", - "return": { - "type": { - "text": "TemplateResult" - } - } - }, - { - "kind": "method", - "name": "_arrowTemplate", - "privacy": "public", - "return": { - "type": { - "text": "TemplateResult" - } - } - }, - { - "kind": "method", - "name": "_arrowNodeTemplate", - "privacy": "public", - "return": { - "type": { - "text": "TemplateResult" - } - } - }, - { - "kind": "method", - "name": "_defineOverlayConfig", - "privacy": "public", - "return": { - "type": { - "text": "OverlayConfig" - } - } - }, - { - "kind": "method", - "name": "_getPopperArrowConfig", - "privacy": "public", - "return": { - "type": { - "text": "Partial" - } - }, - "parameters": [ - { - "name": "popperConfigToExtendFrom", - "type": { - "text": "Partial" - } - } - ] - }, - { - "kind": "method", - "name": "__setupRepositionCompletePromise", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "field", - "name": "_arrowNode", - "privacy": "public", - "type": { - "text": "Element | null" - } - }, - { - "kind": "method", - "name": "__syncFromPopperState", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - }, - "parameters": [ - { - "name": "data", - "type": { - "text": "Partial" - } - } - ] - } - ] - }, - { - "kind": "function", - "name": "ArrowImplementation", - "return": { - "type": { - "text": "T & Constructor & ArrowHost" - } - }, - "parameters": [ - { - "name": "superclass", - "type": { - "text": "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": { - "text": "Boolean" - } - }, - { - "kind": "field", - "name": "config", - "privacy": "public", - "type": { - "text": "OverlayConfig" - } - }, - { - "kind": "method", - "name": "open", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "close", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "toggle", - "privacy": "public", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "field", - "name": "_overlayCtrl", - "privacy": "protected", - "type": { - "text": "OverlayController" - } - }, - { - "kind": "field", - "name": "_overlayInvokerNode", - "privacy": "protected", - "type": { - "text": "HTMLElement" - } - }, - { - "kind": "field", - "name": "_overlayBackdropNode", - "privacy": "protected", - "type": { - "text": "HTMLElement" - } - }, - { - "kind": "field", - "name": "_overlayContentNode", - "privacy": "protected", - "type": { - "text": "HTMLElement" - } - }, - { - "kind": "field", - "name": "_overlayContentWrapperNode", - "privacy": "protected", - "type": { - "text": "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": { - "text": "OverlayController" - } - }, - "parameters": [ - { - "name": "config", - "type": { - "text": "DefineOverlayConfig" - } - } - ] - }, - { - "kind": "method", - "name": "_defineOverlayConfig", - "privacy": "protected", - "return": { - "type": { - "text": "OverlayConfig" - } - } - }, - { - "kind": "method", - "name": "_setupOpenCloseListeners", - "privacy": "protected", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "_teardownOpenCloseListeners", - "privacy": "protected", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "_setupOverlayCtrl", - "privacy": "protected", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "_teardownOverlayCtrl", - "privacy": "protected", - "return": { - "type": { - "text": "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": { - "text": "Promise" - } - }, - "parameters": [ - { - "name": "newOpened", - "type": { - "text": "Boolean" - } - } - ] - }, - { - "kind": "method", - "name": "__setupSyncFromOverlayController", - "privacy": "private", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "__teardownSyncFromOverlayController", - "privacy": "private", - "return": { - "type": { - "text": "void" - } - } - }, - { - "kind": "method", - "name": "__syncToOverlayController", - "privacy": "private", - "return": { - "type": { - "text": "void" - } - } - } - ] - }, - { - "kind": "function", - "name": "OverlayImplementation", - "return": { - "type": { - "text": "T & Constructor & typeof OverlayHost" - } - }, - "parameters": [ - { - "name": "superclass", - "type": { - "text": "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": "./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": "./docs/directives/ref.js", - "declarations": [ - { - "kind": "variable", - "name": "ref", - "description": "will be used to store reference to attribute names like #myElement", - "type": { - "text": "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": { - "text": "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": { - "text": "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": { - "text": "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": { - "text": "HTMLElement" - }, - "description": "The root element" - }, - { - "name": "e", - "type": { - "text": "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": { - "text": "{ disconnect: () => void }" - } - }, - "parameters": [ - { - "name": "rootElement", - "type": { - "text": "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": { - "text": "boolean" - } - }, - "parameters": [ - { - "name": "el", - "type": { - "text": "HTMLElement|ShadowRoot" - } - }, - { - "name": "targetEl", - "type": { - "text": "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": { - "text": "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": { - "text": "HTMLElement[]" - } - }, - "parameters": [ - { - "name": "element", - "type": { - "text": "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": { - "text": "HTMLElement" - } - } - ] - }, - { - "kind": "function", - "name": "unsetSiblingsInert", - "description": "Removes inert and aria-hidden attribute from sibling elements", - "parameters": [ - { - "name": "element", - "type": { - "text": "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": { - "text": "boolean" - } - }, - "parameters": [ - { - "name": "a", - "type": { - "text": "Partial" - } - }, - { - "name": "b", - "type": { - "text": "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": { - "text": "boolean" - } - }, - "parameters": [ - { - "name": "element", - "type": { - "text": "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": { - "text": "HTMLElement[]" - } - }, - "parameters": [ - { - "name": "elements", - "type": { - "text": "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": { - "text": "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": [] - } - ] -} \ No newline at end of file diff --git a/packages/overlays/package.json b/packages/overlays/package.json index 0af19d05d..00a0bba96 100644 --- a/packages/overlays/package.json +++ b/packages/overlays/package.json @@ -15,6 +15,7 @@ "files": [ "*.d.ts", "*.js", + "custom-elements.json", "docs", "src", "test", @@ -27,7 +28,7 @@ "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", - "prepublishOnly": "../../scripts/npm-prepublish.js", + "prepublishOnly": "../../scripts/npm-prepublish.js && npm run custom-elements-manifest", "test": "cd ../../ && npm run test:browser -- --group overlays" }, "sideEffects": [ @@ -54,4 +55,4 @@ "./test-suites/*": "./test-suites/*" }, "customElementsManifest": "custom-elements.json" -} \ No newline at end of file +} diff --git a/packages/pagination/custom-elements.json b/packages/pagination/custom-elements.json deleted file mode 100644 index 198a9d9a8..000000000 --- a/packages/pagination/custom-elements.json +++ /dev/null @@ -1,457 +0,0 @@ -{ - "schemaVersion": "0.1.0", - "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": { - "text": "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": { - "text": "Number" - }, - "description": "page number to be set" - } - ] - }, - { - "kind": "method", - "name": "__calculateNavList", - "privacy": "private", - "description": "Calculate nav list based on current page selection.", - "return": { - "type": { - "text": "(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": { - "text": "TemplateResult" - } - }, - "parameters": [ - { - "name": "label", - "type": { - "text": "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": { - "text": "TemplateResult" - } - }, - "parameters": [ - { - "name": "label", - "type": { - "text": "String" - }, - "description": "namespace label i.e. next or previous" - }, - { - "name": "pageNumber", - "type": { - "text": "Number" - }, - "description": "page number to be set" - }, - { - "name": "namespace", - "type": { - "text": "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": { - "text": "TemplateResult" - } - }, - "parameters": [ - { - "name": "label", - "type": { - "text": "String" - }, - "description": "namespace label i.e. next or previous" - } - ] - }, - { - "kind": "method", - "name": "_renderNavList", - "privacy": "protected", - "description": "Render navigation list", - "return": { - "type": { - "text": "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" - } - } - ] - } - ] -} \ No newline at end of file diff --git a/packages/pagination/package.json b/packages/pagination/package.json index f4d2a9a54..433323785 100644 --- a/packages/pagination/package.json +++ b/packages/pagination/package.json @@ -15,6 +15,7 @@ "files": [ "*.d.ts", "*.js", + "custom-elements.json", "docs", "src", "test", @@ -27,7 +28,7 @@ "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", - "prepublishOnly": "../../scripts/npm-prepublish.js", + "prepublishOnly": "../../scripts/npm-prepublish.js && npm run custom-elements-manifest", "test": "cd ../../ && npm run test:browser -- --group pagination" }, "sideEffects": [ @@ -50,4 +51,4 @@ "./lion-pagination": "./lion-pagination.js" }, "customElementsManifest": "custom-elements.json" -} \ No newline at end of file +} diff --git a/packages/progress-indicator/custom-elements.json b/packages/progress-indicator/custom-elements.json deleted file mode 100644 index 674a41a06..000000000 --- a/packages/progress-indicator/custom-elements.json +++ /dev/null @@ -1,361 +0,0 @@ -{ - "schemaVersion": "0.1.0", - "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" - } - } - ] - } - ] -} \ No newline at end of file diff --git a/packages/progress-indicator/package.json b/packages/progress-indicator/package.json index c21baf7ec..4d3694147 100644 --- a/packages/progress-indicator/package.json +++ b/packages/progress-indicator/package.json @@ -15,8 +15,11 @@ "files": [ "*.d.ts", "*.js", + "custom-elements.json", + "docs", "src", "test", + "test-helpers", "translations", "types" ], @@ -25,7 +28,7 @@ "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", - "prepublishOnly": "../../scripts/npm-prepublish.js", + "prepublishOnly": "../../scripts/npm-prepublish.js && npm run custom-elements-manifest", "test": "cd ../../ && npm run test:browser -- --group progress-indicator" }, "sideEffects": [ @@ -50,4 +53,4 @@ "./lion-progress-indicator": "./lion-progress-indicator.js" }, "customElementsManifest": "custom-elements.json" -} \ No newline at end of file +} diff --git a/packages/radio-group/custom-elements.json b/packages/radio-group/custom-elements.json deleted file mode 100644 index d2b35650f..000000000 --- a/packages/radio-group/custom-elements.json +++ /dev/null @@ -1,139 +0,0 @@ -{ - "schemaVersion": "0.1.0", - "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" - } - } - ] - } - ] -} \ No newline at end of file diff --git a/packages/radio-group/package.json b/packages/radio-group/package.json index 189c4bc53..484a2e75a 100644 --- a/packages/radio-group/package.json +++ b/packages/radio-group/package.json @@ -15,6 +15,7 @@ "files": [ "*.d.ts", "*.js", + "custom-elements.json", "docs", "src", "test", @@ -27,7 +28,7 @@ "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", - "prepublishOnly": "../../scripts/npm-prepublish.js", + "prepublishOnly": "../../scripts/npm-prepublish.js && npm run custom-elements-manifest", "test": "cd ../../ && npm run test:browser -- --group radio-group" }, "sideEffects": [ @@ -53,4 +54,4 @@ "./lion-radio-group": "./lion-radio-group.js" }, "customElementsManifest": "custom-elements.json" -} \ No newline at end of file +} diff --git a/packages/select-rich/custom-elements.json b/packages/select-rich/custom-elements.json deleted file mode 100644 index 5d985626a..000000000 --- a/packages/select-rich/custom-elements.json +++ /dev/null @@ -1,563 +0,0 @@ -{ - "schemaVersion": "0.1.0", - "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": { - "text": "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": { - "text": "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": { - "text": "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": { - "text": "'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", - "type": { - "text": "LionSelectInvoker" - } - }, - { - "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": { - "text": "string" - } - }, - { - "name": "oldValue", - "type": { - "text": "unknown" - } - } - ] - }, - { - "kind": "method", - "name": "updated", - "privacy": "public", - "parameters": [ - { - "name": "changedProperties", - "type": { - "text": "PropertyValues " - } - } - ] - }, - { - "kind": "method", - "name": "addFormElement", - "privacy": "public", - "parameters": [ - { - "name": "child", - "type": { - "text": "LionOption & FormControlHost" - } - }, - { - "name": "indexToInsertAt", - "type": { - "text": "Number" - } - } - ] - }, - { - "kind": "method", - "name": "removeFormElement", - "privacy": "public", - "parameters": [ - { - "name": "child", - "type": { - "text": "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": { - "text": "KeyboardEvent" - } - } - ] - }, - { - "kind": "method", - "name": "_listboxOnKeyDown", - "privacy": "public", - "parameters": [ - { - "name": "ev", - "type": { - "text": "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": [] - } - ] -} \ No newline at end of file diff --git a/packages/select-rich/package.json b/packages/select-rich/package.json index e15119bfb..addc16386 100644 --- a/packages/select-rich/package.json +++ b/packages/select-rich/package.json @@ -15,6 +15,7 @@ "files": [ "*.d.ts", "*.js", + "custom-elements.json", "docs", "src", "test", @@ -27,7 +28,7 @@ "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", - "prepublishOnly": "../../scripts/npm-prepublish.js", + "prepublishOnly": "../../scripts/npm-prepublish.js && npm run custom-elements-manifest", "test": "cd ../../ && npm run test:browser -- --group select-rich" }, "sideEffects": [ @@ -61,4 +62,4 @@ "./lion-select-rich": "./lion-select-rich.js" }, "customElementsManifest": "custom-elements.json" -} \ No newline at end of file +} diff --git a/packages/select/custom-elements.json b/packages/select/custom-elements.json deleted file mode 100644 index 528016080..000000000 --- a/packages/select/custom-elements.json +++ /dev/null @@ -1,104 +0,0 @@ -{ - "schemaVersion": "0.1.0", - "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": { - "text": "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": { - "text": "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" - } - } - ] - } - ] -} \ No newline at end of file diff --git a/packages/select/package.json b/packages/select/package.json index 1a9e11433..9e044bb82 100644 --- a/packages/select/package.json +++ b/packages/select/package.json @@ -15,6 +15,7 @@ "files": [ "*.d.ts", "*.js", + "custom-elements.json", "docs", "src", "test", @@ -27,7 +28,7 @@ "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", - "prepublishOnly": "../../scripts/npm-prepublish.js", + "prepublishOnly": "../../scripts/npm-prepublish.js && npm run custom-elements-manifest", "test": "cd ../../ && npm run test:browser -- --group select" }, "sideEffects": [ @@ -50,4 +51,4 @@ "./lion-select": "./lion-select.js" }, "customElementsManifest": "custom-elements.json" -} \ No newline at end of file +} diff --git a/packages/singleton-manager/custom-elements.json b/packages/singleton-manager/custom-elements.json deleted file mode 100644 index f03f58ceb..000000000 --- a/packages/singleton-manager/custom-elements.json +++ /dev/null @@ -1,901 +0,0 @@ -{ - "schemaVersion": "0.1.0", - "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": { - "text": "string" - } - }, - { - "name": "value", - "type": { - "text": "any" - } - } - ] - }, - { - "kind": "method", - "name": "get", - "privacy": "public", - "return": { - "type": { - "text": "" - } - }, - "parameters": [ - { - "name": "key", - "type": { - "text": "string" - } - } - ] - }, - { - "kind": "method", - "name": "has", - "privacy": "public", - "parameters": [ - { - "name": "key", - "type": { - "text": "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": { - "text": "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": { - "text": "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": { - "text": "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-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/singleton-complex/node_modules/page-b/page-b.js", - "declarations": [ - { - "kind": "class", - "name": "PageB", - "events": [ - { - "name": "request-instance", - "type": { - "text": "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/fail/node_modules/page-b/node_modules/overlays/index.js", - "declarations": [ - { - "kind": "class", - "name": "OverlaysManager", - "members": [ - { - "kind": "field", - "name": "name", - "type": { - "text": "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": { - "text": "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": { - "text": "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" - } - } - ] - } - ] -} \ No newline at end of file diff --git a/packages/singleton-manager/package.json b/packages/singleton-manager/package.json index 51be90ad7..b338daf5c 100644 --- a/packages/singleton-manager/package.json +++ b/packages/singleton-manager/package.json @@ -43,4 +43,4 @@ }, "exports": "./index.js", "customElementsManifest": "custom-elements.json" -} \ No newline at end of file +} diff --git a/packages/steps/custom-elements.json b/packages/steps/custom-elements.json deleted file mode 100644 index 4d6191d70..000000000 --- a/packages/steps/custom-elements.json +++ /dev/null @@ -1,336 +0,0 @@ -{ - "schemaVersion": "0.1.0", - "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": { - "text": "CustomEvent" - } - }, - { - "name": "leave", - "type": { - "text": "CustomEvent" - } - }, - { - "name": "skip", - "type": { - "text": "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": { - "text": "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": { - "text": "CustomEvent" - } - } - ], - "superclass": { - "name": "LitElement", - "package": "@lion/core" - }, - "attributes": [ - { - "name": "data", - "fieldName": "data" - }, - { - "name": "current", - "fieldName": "current" - } - ], - "members": [ - { - "kind": "field", - "name": "data", - "privacy": "public", - "type": { - "text": "{[key: string]: ?}" - }, - "default": "{}" - }, - { - "kind": "field", - "name": "current", - "privacy": "public", - "type": { - "text": "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": { - "text": "number" - } - }, - { - "name": "oldCurrent", - "type": { - "text": "number" - } - } - ] - }, - { - "kind": "method", - "name": "_changeStep", - "privacy": "public", - "parameters": [ - { - "name": "newCurrent", - "type": { - "text": "number" - } - }, - { - "name": "oldCurrent", - "type": { - "text": "number" - } - } - ] - }, - { - "kind": "method", - "name": "_dispatchTransitionEvent", - "privacy": "public", - "parameters": [ - { - "name": "fromStep", - "type": { - "text": "{number: number, element: LionStep}" - } - }, - { - "name": "toStep", - "type": { - "text": "{number: number, element: LionStep}" - } - } - ] - }, - { - "kind": "method", - "name": "_onCurrentChanged", - "privacy": "public", - "parameters": [ - { - "name": "newValues", - "type": { - "text": "{current: number}" - } - }, - { - "name": "oldValues", - "type": { - "text": "{current: number}" - } - } - ] - } - ], - "tagName": "lion-steps" - } - ], - "exports": [ - { - "kind": "js", - "name": "LionSteps", - "declaration": { - "name": "LionSteps", - "module": "./src/LionSteps.js" - } - } - ] - } - ] -} \ No newline at end of file diff --git a/packages/steps/package.json b/packages/steps/package.json index 2cdd2abe9..948613644 100644 --- a/packages/steps/package.json +++ b/packages/steps/package.json @@ -15,6 +15,7 @@ "files": [ "*.d.ts", "*.js", + "custom-elements.json", "docs", "src", "test", @@ -27,7 +28,7 @@ "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", - "prepublishOnly": "../../scripts/npm-prepublish.js", + "prepublishOnly": "../../scripts/npm-prepublish.js && npm run custom-elements-manifest", "test": "cd ../../ && npm run test:browser -- --group steps" }, "sideEffects": [ @@ -51,4 +52,4 @@ "./lion-steps": "./lion-steps.js" }, "customElementsManifest": "custom-elements.json" -} \ No newline at end of file +} diff --git a/packages/switch/custom-elements.json b/packages/switch/custom-elements.json deleted file mode 100644 index b08a8c743..000000000 --- a/packages/switch/custom-elements.json +++ /dev/null @@ -1,286 +0,0 @@ -{ - "schemaVersion": "0.1.0", - "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": { - "text": "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": { - "text": "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": { - "text": "KeyboardEvent" - } - } - ] - }, - { - "kind": "method", - "name": "__handleKeyup", - "privacy": "public", - "parameters": [ - { - "name": "e", - "type": { - "text": "KeyboardEvent" - } - } - ] - }, - { - "kind": "method", - "name": "requestUpdateInternal", - "privacy": "public", - "description": "We synchronously update aria-checked to support voice over on safari.", - "parameters": [ - { - "name": "name", - "type": { - "text": "PropertyKey" - } - }, - { - "name": "oldValue", - "type": { - "text": "?" - } - } - ] - } - ], - "tagName": "lion-switch-button" - } - ], - "exports": [ - { - "kind": "js", - "name": "LionSwitchButton", - "declaration": { - "name": "LionSwitchButton", - "module": "./src/LionSwitchButton.js" - } - } - ] - } - ] -} \ No newline at end of file diff --git a/packages/switch/package.json b/packages/switch/package.json index 0bd9c5b61..7b6a933fd 100644 --- a/packages/switch/package.json +++ b/packages/switch/package.json @@ -15,6 +15,7 @@ "files": [ "*.d.ts", "*.js", + "custom-elements.json", "docs", "src", "test", @@ -27,7 +28,7 @@ "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", - "prepublishOnly": "../../scripts/npm-prepublish.js", + "prepublishOnly": "../../scripts/npm-prepublish.js && npm run custom-elements-manifest", "test": "cd ../../ && npm run test:browser -- --group switch" }, "sideEffects": [ @@ -53,4 +54,4 @@ "./lion-switch-button": "./lion-switch-button.js" }, "customElementsManifest": "custom-elements.json" -} \ No newline at end of file +} diff --git a/packages/tabs/custom-elements.json b/packages/tabs/custom-elements.json deleted file mode 100644 index bb92be91a..000000000 --- a/packages/tabs/custom-elements.json +++ /dev/null @@ -1,160 +0,0 @@ -{ - "schemaVersion": "0.1.0", - "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": { - "text": "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": { - "text": "EventHandlerNonNull" - } - }, - "parameters": [ - { - "name": "index", - "type": { - "text": "number" - } - } - ] - }, - { - "kind": "method", - "name": "__handleButtonKeyup", - "privacy": "public", - "parameters": [ - { - "name": "ev", - "type": { - "text": "Event" - } - } - ] - }, - { - "kind": "method", - "name": "_setSelectedIndexWithFocus", - "privacy": "public", - "parameters": [ - { - "name": "value", - "type": { - "text": "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" - } - } - ] - } - ] -} \ No newline at end of file diff --git a/packages/tabs/package.json b/packages/tabs/package.json index 3800c8095..161bfa8f1 100644 --- a/packages/tabs/package.json +++ b/packages/tabs/package.json @@ -15,6 +15,7 @@ "files": [ "*.d.ts", "*.js", + "custom-elements.json", "docs", "src", "test", @@ -27,7 +28,7 @@ "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", - "prepublishOnly": "../../scripts/npm-prepublish.js", + "prepublishOnly": "../../scripts/npm-prepublish.js && npm run custom-elements-manifest", "test": "cd ../../ && npm run test:browser -- --group tabs" }, "sideEffects": [ @@ -44,9 +45,9 @@ "publishConfig": { "access": "public" }, + "customElementsManifest": "custom-elements.json", "exports": { ".": "./index.js", "./lion-tabs": "./lion-tabs.js" - }, - "customElementsManifest": "custom-elements.json" -} \ No newline at end of file + } +} diff --git a/packages/textarea/custom-elements.json b/packages/textarea/custom-elements.json deleted file mode 100644 index bd87a4b34..000000000 --- a/packages/textarea/custom-elements.json +++ /dev/null @@ -1,170 +0,0 @@ -{ - "schemaVersion": "0.1.0", - "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": { - "text": "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" - } - } - ] - } - ] -} \ No newline at end of file diff --git a/packages/textarea/package.json b/packages/textarea/package.json index 564ebdad0..3c1e9a690 100644 --- a/packages/textarea/package.json +++ b/packages/textarea/package.json @@ -15,6 +15,7 @@ "files": [ "*.d.ts", "*.js", + "custom-elements.json", "docs", "src", "test", @@ -27,7 +28,7 @@ "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", - "prepublishOnly": "../../scripts/npm-prepublish.js", + "prepublishOnly": "../../scripts/npm-prepublish.js && npm run custom-elements-manifest", "test": "cd ../../ && npm run test:browser -- --group textarea" }, "sideEffects": [ @@ -52,4 +53,4 @@ "./lion-textarea": "./lion-textarea.js" }, "customElementsManifest": "custom-elements.json" -} \ No newline at end of file +} diff --git a/packages/tooltip/custom-elements.json b/packages/tooltip/custom-elements.json deleted file mode 100644 index 7934c02ed..000000000 --- a/packages/tooltip/custom-elements.json +++ /dev/null @@ -1,134 +0,0 @@ -{ - "schemaVersion": "0.1.0", - "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": { - "text": "'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" - } - } - ] - } - ] -} \ No newline at end of file diff --git a/packages/tooltip/package.json b/packages/tooltip/package.json index 47fee47af..c2d9115e0 100644 --- a/packages/tooltip/package.json +++ b/packages/tooltip/package.json @@ -15,6 +15,7 @@ "files": [ "*.d.ts", "*.js", + "custom-elements.json", "docs", "src", "test", @@ -27,7 +28,7 @@ "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", - "prepublishOnly": "../../scripts/npm-prepublish.js", + "prepublishOnly": "../../scripts/npm-prepublish.js && npm run custom-elements-manifest", "test": "cd ../../ && npm run test:browser -- --group tooltip" }, "sideEffects": [ @@ -51,4 +52,4 @@ "./lion-tooltip": "./lion-tooltip.js" }, "customElementsManifest": "custom-elements.json" -} \ No newline at end of file +} diff --git a/packages/validate-messages/custom-elements.json b/packages/validate-messages/custom-elements.json deleted file mode 100644 index 52d563dc1..000000000 --- a/packages/validate-messages/custom-elements.json +++ /dev/null @@ -1,503 +0,0 @@ -{ - "schemaVersion": "0.1.0", - "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" - } - } - ] - } - ] -} \ No newline at end of file diff --git a/packages/validate-messages/package.json b/packages/validate-messages/package.json index 0fbb74f03..7c9d3f498 100644 --- a/packages/validate-messages/package.json +++ b/packages/validate-messages/package.json @@ -15,6 +15,7 @@ "files": [ "*.d.ts", "*.js", + "custom-elements.json", "docs", "src", "test", @@ -27,7 +28,7 @@ "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", - "prepublishOnly": "../../scripts/npm-prepublish.js", + "prepublishOnly": "../../scripts/npm-prepublish.js && npm run custom-elements-manifest", "test": "cd ../../ && npm run test:browser -- --group validate-messages" }, "dependencies": { @@ -47,4 +48,4 @@ }, "exports": "./index.js", "customElementsManifest": "custom-elements.json" -} \ No newline at end of file +}