From efc743fe6a0cf1e36bf59ea55317eb76a299cb1b Mon Sep 17 00:00:00 2001 From: Joren Broekema Date: Mon, 15 Feb 2021 18:46:45 +0100 Subject: [PATCH] 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 +}