@luftborn/custom-elements 1.1.42 → 1.1.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (166) hide show
  1. package/dist/custom-form.d.ts +20 -0
  2. package/dist/custom-form.js +147 -0
  3. package/dist/custom-form.js.map +1 -0
  4. package/dist/elements/Address/AddressElement.d.ts +28 -0
  5. package/dist/elements/Address/AddressElement.js +207 -0
  6. package/dist/elements/Address/AddressElement.js.map +1 -0
  7. package/dist/elements/BankField/BankFieldElement.d.ts +22 -0
  8. package/dist/elements/BankField/BankFieldElement.js +128 -0
  9. package/dist/elements/BankField/BankFieldElement.js.map +1 -0
  10. package/dist/elements/CPRElement/CPRElement.d.ts +14 -0
  11. package/dist/elements/CPRElement/CPRElement.js +83 -0
  12. package/dist/elements/CPRElement/CPRElement.js.map +1 -0
  13. package/dist/elements/CVRElement/CVRElement.d.ts +14 -0
  14. package/dist/elements/CVRElement/CVRElement.js +83 -0
  15. package/dist/elements/CVRElement/CVRElement.js.map +1 -0
  16. package/dist/elements/CheckBoxElement/CheckBoxElement.d.ts +14 -0
  17. package/dist/elements/CheckBoxElement/CheckBoxElement.js +97 -0
  18. package/dist/elements/CheckBoxElement/CheckBoxElement.js.map +1 -0
  19. package/dist/elements/CustomRegularExpression/CustomRegularExpressionElement.d.ts +12 -0
  20. package/dist/elements/CustomRegularExpression/CustomRegularExpressionElement.js +83 -0
  21. package/dist/elements/CustomRegularExpression/CustomRegularExpressionElement.js.map +1 -0
  22. package/dist/elements/DateField/DateFieldElement.d.ts +12 -0
  23. package/dist/elements/DateField/DateFieldElement.js +86 -0
  24. package/dist/elements/DateField/DateFieldElement.js.map +1 -0
  25. package/dist/elements/DropDownList/DropDownListElement.d.ts +14 -0
  26. package/dist/elements/DropDownList/DropDownListElement.js +94 -0
  27. package/dist/elements/DropDownList/DropDownListElement.js.map +1 -0
  28. package/dist/elements/Elements.d.ts +18 -0
  29. package/dist/elements/Elements.js +38 -0
  30. package/dist/elements/Elements.js.map +1 -0
  31. package/dist/elements/EmailField/EmailFieldElement.d.ts +13 -0
  32. package/dist/elements/EmailField/EmailFieldElement.js +84 -0
  33. package/dist/elements/EmailField/EmailFieldElement.js.map +1 -0
  34. package/dist/elements/FileField/FileFieldElement.d.ts +12 -0
  35. package/dist/elements/FileField/FileFieldElement.js +84 -0
  36. package/dist/elements/FileField/FileFieldElement.js.map +1 -0
  37. package/dist/elements/IdentificationElement/IdentificationElement.d.ts +18 -0
  38. package/dist/elements/IdentificationElement/IdentificationElement.js +95 -0
  39. package/dist/elements/IdentificationElement/IdentificationElement.js.map +1 -0
  40. package/dist/elements/InternationaPhoneNumber/InternationaPhoneNumberElement.d.ts +16 -0
  41. package/dist/elements/InternationaPhoneNumber/InternationaPhoneNumberElement.js +109 -0
  42. package/dist/elements/InternationaPhoneNumber/InternationaPhoneNumberElement.js.map +1 -0
  43. package/dist/elements/NumericField/NumericFieldElement.d.ts +12 -0
  44. package/dist/elements/NumericField/NumericFieldElement.js +92 -0
  45. package/dist/elements/NumericField/NumericFieldElement.js.map +1 -0
  46. package/dist/elements/RadioButtonGroup/RadioButtonGroupElement.d.ts +14 -0
  47. package/dist/elements/RadioButtonGroup/RadioButtonGroupElement.js +100 -0
  48. package/dist/elements/RadioButtonGroup/RadioButtonGroupElement.js.map +1 -0
  49. package/dist/elements/TextAreaElement/TextAreaElement.d.ts +12 -0
  50. package/dist/elements/TextAreaElement/TextAreaElement.js +80 -0
  51. package/dist/elements/TextAreaElement/TextAreaElement.js.map +1 -0
  52. package/dist/elements/TextField/TextFieldElement.d.ts +12 -0
  53. package/dist/elements/TextField/TextFieldElement.js +80 -0
  54. package/dist/elements/TextField/TextFieldElement.js.map +1 -0
  55. package/dist/elements/TypeAhead/TypeAheadElement.d.ts +24 -0
  56. package/dist/elements/TypeAhead/TypeAheadElement.js +210 -0
  57. package/dist/elements/TypeAhead/TypeAheadElement.js.map +1 -0
  58. package/dist/framework/CustomEvents.d.ts +21 -0
  59. package/dist/framework/CustomEvents.js +48 -0
  60. package/dist/framework/CustomEvents.js.map +1 -0
  61. package/dist/framework/CustomInputElement.d.ts +50 -0
  62. package/dist/framework/CustomInputElement.js +258 -0
  63. package/dist/framework/CustomInputElement.js.map +1 -0
  64. package/dist/framework/Language/Languages/Base/BaseDictionary.d.ts +4 -0
  65. package/dist/framework/Language/Languages/Base/BaseDictionary.js +21 -0
  66. package/dist/framework/Language/Languages/Base/BaseDictionary.js.map +1 -0
  67. package/dist/framework/Language/Languages/DanishDictionary.d.ts +4 -0
  68. package/dist/framework/Language/Languages/DanishDictionary.js +40 -0
  69. package/dist/framework/Language/Languages/DanishDictionary.js.map +1 -0
  70. package/dist/framework/Language/Languages/EnglishDictionary.d.ts +4 -0
  71. package/dist/framework/Language/Languages/EnglishDictionary.js +40 -0
  72. package/dist/framework/Language/Languages/EnglishDictionary.js.map +1 -0
  73. package/dist/framework/Language/Translator.d.ts +6 -0
  74. package/dist/framework/Language/Translator.js +33 -0
  75. package/dist/framework/Language/Translator.js.map +1 -0
  76. package/dist/framework/Models/OptionWithDescription.d.ts +6 -0
  77. package/dist/framework/Models/OptionWithDescription.js +10 -0
  78. package/dist/framework/Models/OptionWithDescription.js.map +1 -0
  79. package/dist/framework/Polyfills/getAttributeNamesPolyfill.d.ts +1 -0
  80. package/dist/framework/Polyfills/getAttributeNamesPolyfill.js +18 -0
  81. package/dist/framework/Polyfills/getAttributeNamesPolyfill.js.map +1 -0
  82. package/dist/framework/Translations/CaseConverter.d.ts +5 -0
  83. package/dist/framework/Translations/CaseConverter.js +51 -0
  84. package/dist/framework/Translations/CaseConverter.js.map +1 -0
  85. package/dist/framework/Utilities/DomUtility.d.ts +3 -0
  86. package/dist/framework/Utilities/DomUtility.js +13 -0
  87. package/dist/framework/Utilities/DomUtility.js.map +1 -0
  88. package/dist/framework/Utilities/debouncer.d.ts +8 -0
  89. package/dist/framework/Utilities/debouncer.js +52 -0
  90. package/dist/framework/Utilities/debouncer.js.map +1 -0
  91. package/dist/framework/Validation/IValidator.interface.d.ts +3 -0
  92. package/dist/framework/Validation/IValidator.interface.js +3 -0
  93. package/dist/framework/Validation/IValidator.interface.js.map +1 -0
  94. package/dist/framework/Validation/Validators/BankAccount.d.ts +4 -0
  95. package/dist/framework/Validation/Validators/BankAccount.js +13 -0
  96. package/dist/framework/Validation/Validators/BankAccount.js.map +1 -0
  97. package/dist/framework/Validation/Validators/BankAccountRegistrationNumber.d.ts +4 -0
  98. package/dist/framework/Validation/Validators/BankAccountRegistrationNumber.js +13 -0
  99. package/dist/framework/Validation/Validators/BankAccountRegistrationNumber.js.map +1 -0
  100. package/dist/framework/Validation/Validators/BankIdNorway.d.ts +5 -0
  101. package/dist/framework/Validation/Validators/BankIdNorway.js +22 -0
  102. package/dist/framework/Validation/Validators/BankIdNorway.js.map +1 -0
  103. package/dist/framework/Validation/Validators/BankIdSweden.d.ts +5 -0
  104. package/dist/framework/Validation/Validators/BankIdSweden.js +22 -0
  105. package/dist/framework/Validation/Validators/BankIdSweden.js.map +1 -0
  106. package/dist/framework/Validation/Validators/CPR.d.ts +9 -0
  107. package/dist/framework/Validation/Validators/CPR.js +76 -0
  108. package/dist/framework/Validation/Validators/CPR.js.map +1 -0
  109. package/dist/framework/Validation/Validators/CVR.d.ts +5 -0
  110. package/dist/framework/Validation/Validators/CVR.js +31 -0
  111. package/dist/framework/Validation/Validators/CVR.js.map +1 -0
  112. package/dist/framework/custom-element.decorator.d.ts +9 -0
  113. package/dist/framework/custom-element.decorator.js +52 -0
  114. package/dist/framework/custom-element.decorator.js.map +1 -0
  115. package/dist/index.d.ts +7 -0
  116. package/dist/index.js +15 -0
  117. package/dist/index.js.map +1 -0
  118. package/node_modules/@webcomponents/webcomponentsjs/CHANGELOG.md +61 -0
  119. package/node_modules/@webcomponents/webcomponentsjs/LICENSE.md +19 -0
  120. package/node_modules/@webcomponents/webcomponentsjs/README.md +246 -0
  121. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-ce.js +63 -0
  122. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-ce.js.map +1 -0
  123. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-pf_dom.js +60 -0
  124. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-pf_dom.js.map +1 -0
  125. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-pf_js.js +95 -0
  126. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-pf_js.js.map +1 -0
  127. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-sd-ce-pf.js +360 -0
  128. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-sd-ce-pf.js.map +1 -0
  129. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-sd-ce.js +228 -0
  130. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-sd-ce.js.map +1 -0
  131. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-sd.js +185 -0
  132. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-sd.js.map +1 -0
  133. package/node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js +15 -0
  134. package/node_modules/@webcomponents/webcomponentsjs/package.json +84 -0
  135. package/node_modules/@webcomponents/webcomponentsjs/src/entrypoints/custom-elements-es5-adapter-index.js +16 -0
  136. package/node_modules/@webcomponents/webcomponentsjs/src/entrypoints/webcomponents-bundle-index.js +55 -0
  137. package/node_modules/@webcomponents/webcomponentsjs/src/entrypoints/webcomponents-ce-index.js +17 -0
  138. package/node_modules/@webcomponents/webcomponentsjs/src/entrypoints/webcomponents-pf_dom-index.js +17 -0
  139. package/node_modules/@webcomponents/webcomponentsjs/src/entrypoints/webcomponents-pf_js-index.js +13 -0
  140. package/node_modules/@webcomponents/webcomponentsjs/src/entrypoints/webcomponents-sd-ce-index.js +19 -0
  141. package/node_modules/@webcomponents/webcomponentsjs/src/entrypoints/webcomponents-sd-ce-pf-index.js +25 -0
  142. package/node_modules/@webcomponents/webcomponentsjs/src/entrypoints/webcomponents-sd-index.js +18 -0
  143. package/node_modules/@webcomponents/webcomponentsjs/src/flag-parser.js +69 -0
  144. package/node_modules/@webcomponents/webcomponentsjs/src/platform/baseuri.js +28 -0
  145. package/node_modules/@webcomponents/webcomponentsjs/src/platform/child-node/after.js +47 -0
  146. package/node_modules/@webcomponents/webcomponentsjs/src/platform/child-node/before.js +40 -0
  147. package/node_modules/@webcomponents/webcomponentsjs/src/platform/child-node/index.js +14 -0
  148. package/node_modules/@webcomponents/webcomponentsjs/src/platform/child-node/remove.js +37 -0
  149. package/node_modules/@webcomponents/webcomponentsjs/src/platform/child-node/replace-with.js +42 -0
  150. package/node_modules/@webcomponents/webcomponentsjs/src/platform/custom-event.js +79 -0
  151. package/node_modules/@webcomponents/webcomponentsjs/src/platform/es6-misc.js +38 -0
  152. package/node_modules/@webcomponents/webcomponentsjs/src/platform/get-attribute-names.js +27 -0
  153. package/node_modules/@webcomponents/webcomponentsjs/src/platform/matches.js +21 -0
  154. package/node_modules/@webcomponents/webcomponentsjs/src/platform/parent-node/append.js +31 -0
  155. package/node_modules/@webcomponents/webcomponentsjs/src/platform/parent-node/index.js +13 -0
  156. package/node_modules/@webcomponents/webcomponentsjs/src/platform/parent-node/prepend.js +42 -0
  157. package/node_modules/@webcomponents/webcomponentsjs/src/platform/parent-node/replace-children.js +45 -0
  158. package/node_modules/@webcomponents/webcomponentsjs/src/platform/promise.js +50 -0
  159. package/node_modules/@webcomponents/webcomponentsjs/src/platform/svg-element-class-list.js +28 -0
  160. package/node_modules/@webcomponents/webcomponentsjs/src/platform/symbol.js +64 -0
  161. package/node_modules/@webcomponents/webcomponentsjs/src/unresolved.js +32 -0
  162. package/node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.d.ts +174 -0
  163. package/node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js +370 -0
  164. package/node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js.map +1 -0
  165. package/node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js +206 -0
  166. package/package.json +3 -3
@@ -0,0 +1,38 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
4
+ * This code may only be used under the BSD style license found at
5
+ * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
6
+ * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
7
+ * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
8
+ * Google as part of the polymer project is also subject to an additional IP
9
+ * rights grant found at http://polymer.github.io/PATENTS.txt
10
+ */
11
+ if (!Array.from) {
12
+ Array.from = (object) => {
13
+ return [].slice.call(object);
14
+ };
15
+ }
16
+ if (!Object.assign) {
17
+ const assign = (target, source) => {
18
+ const n$ = Object.keys(source);
19
+ for (let i = 0; i < n$.length; i++) {
20
+ const p = n$[i];
21
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
22
+ target[p] = source[p];
23
+ }
24
+ };
25
+ Object.assign = function (target) {
26
+ // eslint-disable-next-line prefer-rest-params
27
+ const args = [].slice.call(arguments, 1);
28
+ for (let i = 0, s; i < args.length; i++) {
29
+ s = args[i];
30
+ if (s) {
31
+ assign(target, s);
32
+ }
33
+ }
34
+ return target;
35
+ };
36
+ }
37
+ export {};
38
+ //# sourceMappingURL=es6-misc.js.map
@@ -0,0 +1,27 @@
1
+ /**
2
+ @license
3
+ Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
4
+ This code may only be used under the BSD style license found at
5
+ http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
6
+ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
7
+ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
8
+ part of the polymer project is also subject to an additional IP rights grant
9
+ found at http://polymer.github.io/PATENTS.txt
10
+ */
11
+ var _a, _b;
12
+ const Element_prototype = Element.prototype;
13
+ // In IE11, the `attributes` descriptor is on `Node.prototype`.
14
+ const attributesDescriptor = (_a = Object.getOwnPropertyDescriptor(Element_prototype, 'attributes')) !== null && _a !== void 0 ? _a : Object.getOwnPropertyDescriptor(Node.prototype, 'attributes');
15
+ // In Safari 9, the `attributes` descriptor's getter is undefined. In Chrome 41,
16
+ // the `attributes` descriptor is a data descriptor on each Element instance.
17
+ const getAttributes = (_b = attributesDescriptor === null || attributesDescriptor === void 0 ? void 0 : attributesDescriptor.get) !== null && _b !== void 0 ? _b : function () {
18
+ return this.attributes;
19
+ };
20
+ const map = Array.prototype.map;
21
+ if (!Element_prototype.hasOwnProperty('getAttributeNames')) {
22
+ Element_prototype.getAttributeNames = function getAttributeNames() {
23
+ return map.call(getAttributes.call(this), (attr) => attr.name);
24
+ };
25
+ }
26
+ export {};
27
+ //# sourceMappingURL=get-attribute-names.js.map
@@ -0,0 +1,21 @@
1
+ /**
2
+ @license
3
+ Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
4
+ This code may only be used under the BSD style license found at
5
+ http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
6
+ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
7
+ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
8
+ part of the polymer project is also subject to an additional IP rights grant
9
+ found at http://polymer.github.io/PATENTS.txt
10
+ */
11
+ var _a;
12
+ const Element_prototype = Element.prototype;
13
+ if (!Element_prototype.hasOwnProperty('matches')) {
14
+ Element_prototype.matches =
15
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
16
+ (_a = Element_prototype.webkitMatchesSelector) !== null && _a !== void 0 ? _a :
17
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
18
+ Element_prototype.msMatchesSelector;
19
+ }
20
+ export {};
21
+ //# sourceMappingURL=matches.js.map
@@ -0,0 +1,31 @@
1
+ /**
2
+ @license
3
+ Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
4
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7
+ Code distributed by Google as part of the polymer project is also
8
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9
+ */
10
+ const nativeAppendChild = Node.prototype.appendChild;
11
+ const installAppend = (constructor) => {
12
+ const prototype = constructor.prototype;
13
+ if (prototype.hasOwnProperty('append')) {
14
+ return;
15
+ }
16
+ Object.defineProperty(prototype, 'append', {
17
+ configurable: true,
18
+ enumerable: true,
19
+ writable: true,
20
+ value: function append(...args) {
21
+ for (const arg of args) {
22
+ nativeAppendChild.call(this, typeof arg === 'string' ? document.createTextNode(arg) : arg);
23
+ }
24
+ },
25
+ });
26
+ };
27
+ installAppend(Document);
28
+ installAppend(DocumentFragment);
29
+ installAppend(Element);
30
+ export {};
31
+ //# sourceMappingURL=append.js.map
@@ -0,0 +1,13 @@
1
+ /**
2
+ @license
3
+ Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
4
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7
+ Code distributed by Google as part of the polymer project is also
8
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9
+ */
10
+ import './append.js';
11
+ import './prepend.js';
12
+ import './replace-children.js';
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,42 @@
1
+ /**
2
+ @license
3
+ Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
4
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7
+ Code distributed by Google as part of the polymer project is also
8
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9
+ */
10
+ var _a, _b;
11
+ const nativeInsertBefore = Node.prototype.insertBefore;
12
+ const nativeGetFirstChild =
13
+ // In Chrome 41, `firstChild` is a data descriptor on every instance, not a
14
+ // accessor descriptor on `Node.prototype`.
15
+ (_b = (_a = Object.getOwnPropertyDescriptor(Node.prototype, 'firstChild')) === null || _a === void 0 ? void 0 : _a.get) !== null && _b !== void 0 ? _b :
16
+ // In Safari 9, the `firstChild` descriptor's `get` and `set` are undefined.
17
+ function () {
18
+ return this.firstChild;
19
+ };
20
+ const installPrepend = (constructor) => {
21
+ const prototype = constructor.prototype;
22
+ if (prototype.hasOwnProperty('prepend')) {
23
+ return;
24
+ }
25
+ Object.defineProperty(prototype, 'prepend', {
26
+ configurable: true,
27
+ enumerable: true,
28
+ writable: true,
29
+ value: function prepend(...args) {
30
+ const firstChild = nativeGetFirstChild.call(this);
31
+ for (const arg of args) {
32
+ const newNode = typeof arg === 'string' ? document.createTextNode(arg) : arg;
33
+ nativeInsertBefore.call(this, newNode, firstChild);
34
+ }
35
+ },
36
+ });
37
+ };
38
+ installPrepend(Document);
39
+ installPrepend(DocumentFragment);
40
+ installPrepend(Element);
41
+ export {};
42
+ //# sourceMappingURL=prepend.js.map
@@ -0,0 +1,45 @@
1
+ /**
2
+ @license
3
+ Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
4
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7
+ Code distributed by Google as part of the polymer project is also
8
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9
+ */
10
+ var _a, _b;
11
+ const nativeAppendChild = Node.prototype.appendChild;
12
+ const nativeRemoveChild = Node.prototype.removeChild;
13
+ const nativeGetFirstChild =
14
+ // In Chrome 41, `firstChild` is a data descriptor on every instance, not a
15
+ // accessor descriptor on `Node.prototype`.
16
+ (_b = (_a = Object.getOwnPropertyDescriptor(Node.prototype, 'firstChild')) === null || _a === void 0 ? void 0 : _a.get) !== null && _b !== void 0 ? _b :
17
+ // In Safari 9, the `firstChild` descriptor's `get` and `set` are undefined.
18
+ function () {
19
+ return this.firstChild;
20
+ };
21
+ const installReplaceChildren = (constructor) => {
22
+ const prototype = constructor.prototype;
23
+ if (prototype.hasOwnProperty('replaceChildren')) {
24
+ return;
25
+ }
26
+ Object.defineProperty(prototype, 'replaceChildren', {
27
+ configurable: true,
28
+ enumerable: true,
29
+ writable: true,
30
+ value: function replaceChildren(...args) {
31
+ let child;
32
+ while ((child = nativeGetFirstChild.call(this)) !== null) {
33
+ nativeRemoveChild.call(this, child);
34
+ }
35
+ for (const arg of args) {
36
+ nativeAppendChild.call(this, typeof arg === 'string' ? document.createTextNode(arg) : arg);
37
+ }
38
+ },
39
+ });
40
+ };
41
+ installReplaceChildren(Document);
42
+ installReplaceChildren(DocumentFragment);
43
+ installReplaceChildren(Element);
44
+ export {};
45
+ //# sourceMappingURL=replace-children.js.map
@@ -0,0 +1,50 @@
1
+ /**
2
+ @license
3
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
4
+ This code may only be used under the BSD style license found at
5
+ http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
6
+ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
7
+ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
8
+ part of the polymer project is also subject to an additional IP rights grant
9
+ found at http://polymer.github.io/PATENTS.txt
10
+ */
11
+ import PromisePolyfill from 'promise-polyfill/src/index.js';
12
+ /*
13
+ Assign the ES6 promise polyfill to window ourselves instead of using the "auto"
14
+ polyfill to work around
15
+ https://github.com/webcomponents/webcomponentsjs/issues/837
16
+ */
17
+ if (!window.Promise) {
18
+ window.Promise = PromisePolyfill;
19
+ // save Promise API
20
+ /* eslint-disable no-self-assign */
21
+ // PromisePolyfill.prototype['catch'] = PromisePolyfill.prototype.catch;
22
+ PromisePolyfill.prototype['then'] = PromisePolyfill.prototype.then;
23
+ // PromisePolyfill.prototype['finally'] = PromisePolyfill.prototype.finally;
24
+ PromisePolyfill['all'] = PromisePolyfill.all;
25
+ PromisePolyfill['race'] = PromisePolyfill.race;
26
+ PromisePolyfill['resolve'] = PromisePolyfill.resolve;
27
+ PromisePolyfill['reject'] = PromisePolyfill.reject;
28
+ /* eslint-enable */
29
+ // approach copied from
30
+ // https://github.com/Polymer/polymer/blob/v3.0.2/lib/utils/async.js
31
+ const node = document.createTextNode('');
32
+ const twiddleNode = function twiddleNode() {
33
+ node.textContent = node.textContent.length > 0 ? '' : 'a';
34
+ };
35
+ /** @type {!Array<function():void>} */
36
+ const callbacks = [];
37
+ new MutationObserver(() => {
38
+ const len = callbacks.length;
39
+ for (let i = 0; i < len; i++) {
40
+ callbacks[i]();
41
+ }
42
+ callbacks.splice(0, len);
43
+ }).observe(node, { characterData: true });
44
+ // set _immediateFn to a MutationObserver for close-to-native timing
45
+ PromisePolyfill._immediateFn = (fn) => {
46
+ callbacks.push(fn);
47
+ twiddleNode();
48
+ };
49
+ }
50
+ //# sourceMappingURL=promise.js.map
@@ -0,0 +1,28 @@
1
+ /**
2
+ @license
3
+ Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
4
+ This code may only be used under the BSD style license found at
5
+ http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
6
+ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
7
+ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
8
+ part of the polymer project is also subject to an additional IP rights grant
9
+ found at http://polymer.github.io/PATENTS.txt
10
+ */
11
+ const Element_prototype = window.Element.prototype;
12
+ const HTMLElement_prototype = window.HTMLElement.prototype;
13
+ const SVGElement_prototype = window['SVGElement'].prototype;
14
+ // Thanks to @justinfagnani for finding this:
15
+ //
16
+ // In IE11, `classList` is only supported on `HTMLElement` instances: the
17
+ // descriptor is an own property of `HTMLElement.prototype` and is an accessor
18
+ // descriptor with `set` as `undefined` and no `get`. However, it seems to be
19
+ // implemented generically enough such that copying it to something in the
20
+ // prototype chain of `SVGElement` correctly adds support for `classList` (as
21
+ // far as `DOMTokenList` implemented in IE11).
22
+ if (HTMLElement_prototype.hasOwnProperty('classList') &&
23
+ !Element_prototype.hasOwnProperty('classList') &&
24
+ !SVGElement_prototype.hasOwnProperty('classList')) {
25
+ Object.defineProperty(Element_prototype, 'classList', Object.getOwnPropertyDescriptor(HTMLElement_prototype, 'classList'));
26
+ }
27
+ export {};
28
+ //# sourceMappingURL=svg-element-class-list.js.map
@@ -0,0 +1,64 @@
1
+ /**
2
+ @license
3
+ Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
4
+ This code may only be used under the BSD style license found at
5
+ http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
6
+ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
7
+ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
8
+ part of the polymer project is also subject to an additional IP rights grant
9
+ found at http://polymer.github.io/PATENTS.txt
10
+ */
11
+ // import polyfill for Symbol and Object.getOwnPropertySymbols
12
+ import 'get-own-property-symbols/build/get-own-property-symbols.max';
13
+ // Fix issue in toString patch when compiled into strict mode via closure
14
+ // https://github.com/es-shims/get-own-property-symbols/issues/16
15
+ const toString = Object.prototype.toString;
16
+ Object.prototype.toString = function () {
17
+ if (this === undefined) {
18
+ return '[object Undefined]';
19
+ }
20
+ else if (this === null) {
21
+ return '[object Null]';
22
+ }
23
+ else {
24
+ return toString.call(this);
25
+ }
26
+ };
27
+ // overwrite Object.keys to filter out symbols
28
+ Object.keys = function (obj) {
29
+ return Object.getOwnPropertyNames(obj).filter((name) => {
30
+ const prop = Object.getOwnPropertyDescriptor(obj, name);
31
+ return prop && prop.enumerable;
32
+ });
33
+ };
34
+ // implement iterators for IE 11
35
+ if (!String.prototype[Symbol.iterator] || !String.prototype.codePointAt) {
36
+ String.prototype[Symbol.iterator] = function* () {
37
+ for (let i = 0; i < this.length; i++) {
38
+ yield this[i];
39
+ }
40
+ };
41
+ }
42
+ if (!Set.prototype[Symbol.iterator]) {
43
+ Set.prototype[Symbol.iterator] = function* () {
44
+ const temp = [];
45
+ this.forEach((value) => {
46
+ temp.push(value);
47
+ });
48
+ for (let i = 0; i < temp.length; i++) {
49
+ yield temp[i];
50
+ }
51
+ };
52
+ }
53
+ if (!Map.prototype[Symbol.iterator]) {
54
+ Map.prototype[Symbol.iterator] = function* () {
55
+ const entries = [];
56
+ this.forEach((value, key) => {
57
+ entries.push([key, value]);
58
+ });
59
+ for (let i = 0; i < entries.length; i++) {
60
+ yield entries[i];
61
+ }
62
+ };
63
+ }
64
+ //# sourceMappingURL=symbol.js.map
@@ -0,0 +1,32 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
4
+ * This code may only be used under the BSD style license found at
5
+ * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
6
+ * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
7
+ * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
8
+ * Google as part of the polymer project is also subject to an additional IP
9
+ * rights grant found at http://polymer.github.io/PATENTS.txt
10
+ */
11
+ // It's desireable to provide a default stylesheet
12
+ // that's convenient for styling unresolved elements, but
13
+ // it's cumbersome to have to include this manually in every page.
14
+ // It would make sense to put inside some HTMLImport but
15
+ // the HTMLImports polyfill does not allow loading of stylesheets
16
+ // that block rendering. Therefore this injection is tolerated here.
17
+ //
18
+ // NOTE: position: relative fixes IE's failure to inherit opacity
19
+ // when a child is not statically positioned.
20
+ const style = document.createElement('style');
21
+ style.textContent =
22
+ '' +
23
+ 'body {' +
24
+ 'transition: opacity ease-in 0.2s;' +
25
+ ' } \n' +
26
+ 'body[unresolved] {' +
27
+ 'opacity: 0; display: block; overflow: hidden; position: relative;' +
28
+ ' } \n';
29
+ const head = document.querySelector('head');
30
+ head.insertBefore(style, head.firstChild);
31
+ export {};
32
+ //# sourceMappingURL=unresolved.js.map
@@ -0,0 +1,174 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2021 The Polymer Project Authors. All rights reserved. This
4
+ * code may only be used under the BSD style license found at
5
+ * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
6
+ * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
7
+ * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
8
+ * Google as part of the polymer project is also subject to an additional IP
9
+ * rights grant found at http://polymer.github.io/PATENTS.txt
10
+ */
11
+
12
+ // When building externally, this file is always assumed to be a module, but by
13
+ // default it isn't when building internally, so we need this export statement.
14
+ export {};
15
+
16
+ declare global {
17
+ // eslint-disable-next-line no-var
18
+ var WebComponents: {};
19
+ }
20
+
21
+ /**
22
+ * @license
23
+ * Copyright (c) 2021 The Polymer Project Authors. All rights reserved. This
24
+ * code may only be used under the BSD style license found at
25
+ * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
26
+ * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
27
+ * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
28
+ * Google as part of the polymer project is also subject to an additional IP
29
+ * rights grant found at http://polymer.github.io/PATENTS.txt
30
+ */
31
+
32
+ // When building externally, this file is always assumed to be a module, but by
33
+ // default it isn't when building internally, so we need this export statement.
34
+ export {};
35
+
36
+ declare global {
37
+ interface CustomElementRegistry {
38
+ forcePolyfill?: boolean;
39
+ polyfillWrapFlushCallback?(outer: (fn: () => void) => void): void;
40
+ noDocumentConstructionObserver?: boolean;
41
+ shadyDomFastWalk?: boolean;
42
+ }
43
+ }
44
+
45
+ /**
46
+ * @license
47
+ * Copyright (c) 2021 The Polymer Project Authors. All rights reserved. This
48
+ * code may only be used under the BSD style license found at
49
+ * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
50
+ * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
51
+ * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
52
+ * Google as part of the polymer project is also subject to an additional IP
53
+ * rights grant found at http://polymer.github.io/PATENTS.txt
54
+ */
55
+
56
+ // When building externally, this file is always assumed to be a module, but by
57
+ // default it isn't when building internally, so we need this export statement.
58
+ export {};
59
+
60
+ declare global {
61
+ interface ShadyCSSInterface {
62
+ styleElement(element: HTMLElement): void;
63
+ styleSubtree(
64
+ element: HTMLElement,
65
+ properties?: {[name: string]: string}
66
+ ): void;
67
+ prepareTemplate(
68
+ template: HTMLTemplateElement,
69
+ elementName: string,
70
+ elementExtends?: string
71
+ ): void;
72
+ prepareTemplateStyles(
73
+ template: HTMLTemplateElement,
74
+ elementName: string,
75
+ elementExtends?: string
76
+ ): void;
77
+ prepareTemplateDom(
78
+ template: HTMLTemplateElement,
79
+ elementName: string
80
+ ): void;
81
+ styleDocument(properties?: {[name: string]: string}): void;
82
+ flushCustomStyles(): void;
83
+ getComputedStyleValue(element: Element, property: string): string;
84
+ ScopingShim?: {
85
+ prepareAdoptedCssText(
86
+ cssTextArray: Array<string>,
87
+ elementName: string
88
+ ): void;
89
+ flush(): void;
90
+ };
91
+ ApplyShim?: Object;
92
+ CustomStyleInterface?: Object;
93
+ nativeCss: boolean;
94
+ nativeShadow: boolean;
95
+ cssBuild?: string;
96
+ disableRuntime: boolean;
97
+ }
98
+
99
+ interface ShadyCSSOptions {
100
+ shimcssproperties?: boolean;
101
+ shimshadow?: boolean;
102
+ cssBuild?: boolean;
103
+ disableRuntime?: boolean;
104
+ }
105
+
106
+ // This type alias exists because Tsickle will replace any type name used in the
107
+ // type of something with the same name with `?`. (Maybe a Closure limitation?)
108
+ // Making `ShadyCSS` an alias to an underlying type with a different name works
109
+ // around this because Tsickle appears to resolve type aliases in its output: it
110
+ // writes `undefined|ShadyCSSInterface` instead of `undefined|?` as the type for
111
+ // the `ShadyCSS` global.
112
+ type ShadyCSS = ShadyCSSInterface;
113
+ // eslint-disable-next-line no-var
114
+ var ShadyCSS: ShadyCSS | undefined;
115
+ }
116
+
117
+ /**
118
+ * @license
119
+ * Copyright (c) 2021 The Polymer Project Authors. All rights reserved. This
120
+ * code may only be used under the BSD style license found at
121
+ * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
122
+ * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
123
+ * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
124
+ * Google as part of the polymer project is also subject to an additional IP
125
+ * rights grant found at http://polymer.github.io/PATENTS.txt
126
+ */
127
+
128
+ // When building externally, this file is always assumed to be a module, but by
129
+ // default it isn't when building internally, so we need this export statement.
130
+ export {};
131
+
132
+ declare global {
133
+ interface ShadyDOMInterface {
134
+ flush: () => void;
135
+ inUse: boolean;
136
+ nativeMethods: {
137
+ querySelectorAll: typeof document.querySelectorAll;
138
+ };
139
+ noPatch: boolean | string;
140
+ patchElementProto: (node: Object) => void;
141
+ wrap: (node: Node) => Node;
142
+ }
143
+
144
+ // This type alias exists because Tsickle will replace any type name used in the
145
+ // type of something with the same name with `?`. (Maybe a Closure limitation?)
146
+ // Making `ShadyDOM` an alias to an underlying type with a different name works
147
+ // around this because Tsickle appears to resolve type aliases in its output: it
148
+ // writes `undefined|ShadyDOMInterface` instead of `undefined|?` as the type for
149
+ // the `ShadyDOM` global.
150
+ type ShadyDOM = ShadyDOMInterface;
151
+ // eslint-disable-next-line no-var
152
+ var ShadyDOM: ShadyDOM;
153
+ }
154
+
155
+ /**
156
+ * @license
157
+ * Copyright (c) 2021 The Polymer Project Authors. All rights reserved. This
158
+ * code may only be used under the BSD style license found at
159
+ * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
160
+ * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
161
+ * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
162
+ * Google as part of the polymer project is also subject to an additional IP
163
+ * rights grant found at http://polymer.github.io/PATENTS.txt
164
+ */
165
+
166
+ // When building externally, this file is always assumed to be a module, but by
167
+ // default it isn't when building internally, so we need this export statement.
168
+ export {};
169
+
170
+ declare global {
171
+ interface HTMLTemplateElementConstructor {
172
+ bootstrap(): void;
173
+ }
174
+ }