@luftborn/custom-elements 1.1.38 → 1.1.41

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 (95) hide show
  1. package/demo/index.html +147 -2
  2. package/demo/index.js +451 -325
  3. package/demo/index.min.js +450 -324
  4. package/demo/index.min.js.map +1 -1
  5. package/dist/elements/Address/AddressElement.js +6 -4
  6. package/dist/elements/Address/AddressElement.js.map +1 -1
  7. package/dist/elements/BankField/BankFieldElement.js +4 -2
  8. package/dist/elements/BankField/BankFieldElement.js.map +1 -1
  9. package/dist/elements/CPRElement/CPRElement.js +4 -2
  10. package/dist/elements/CPRElement/CPRElement.js.map +1 -1
  11. package/dist/elements/CVRElement/CVRElement.js +4 -2
  12. package/dist/elements/CVRElement/CVRElement.js.map +1 -1
  13. package/dist/elements/CheckBoxElement/CheckBoxElement.js +5 -2
  14. package/dist/elements/CheckBoxElement/CheckBoxElement.js.map +1 -1
  15. package/dist/elements/CustomRegularExpression/CustomRegularExpressionElement.js +4 -2
  16. package/dist/elements/CustomRegularExpression/CustomRegularExpressionElement.js.map +1 -1
  17. package/dist/elements/DateField/DateFieldElement.js +4 -2
  18. package/dist/elements/DateField/DateFieldElement.js.map +1 -1
  19. package/dist/elements/DropDownList/DropDownListElement.js +6 -3
  20. package/dist/elements/DropDownList/DropDownListElement.js.map +1 -1
  21. package/dist/elements/EmailField/EmailFieldElement.js +4 -2
  22. package/dist/elements/EmailField/EmailFieldElement.js.map +1 -1
  23. package/dist/elements/FileField/FileFieldElement.js +4 -2
  24. package/dist/elements/FileField/FileFieldElement.js.map +1 -1
  25. package/dist/elements/IdentificationElement/IdentificationElement.js +4 -2
  26. package/dist/elements/IdentificationElement/IdentificationElement.js.map +1 -1
  27. package/dist/elements/InternationaPhoneNumber/InternationaPhoneNumberElement.js +4 -2
  28. package/dist/elements/InternationaPhoneNumber/InternationaPhoneNumberElement.js.map +1 -1
  29. package/dist/elements/NumericField/NumericFieldElement.js +4 -2
  30. package/dist/elements/NumericField/NumericFieldElement.js.map +1 -1
  31. package/dist/elements/RadioButtonGroup/RadioButtonGroupElement.js +5 -2
  32. package/dist/elements/RadioButtonGroup/RadioButtonGroupElement.js.map +1 -1
  33. package/dist/elements/TextAreaElement/TextAreaElement.js +4 -2
  34. package/dist/elements/TextAreaElement/TextAreaElement.js.map +1 -1
  35. package/dist/elements/TextField/TextFieldElement.js +4 -2
  36. package/dist/elements/TextField/TextFieldElement.js.map +1 -1
  37. package/dist/elements/TypeAhead/TypeAheadElement.js +4 -2
  38. package/dist/elements/TypeAhead/TypeAheadElement.js.map +1 -1
  39. package/dist/framework/CustomInputElement.d.ts +2 -0
  40. package/dist/framework/CustomInputElement.js +21 -2
  41. package/dist/framework/CustomInputElement.js.map +1 -1
  42. package/dist/framework/Language/Languages/DanishDictionary.js +3 -1
  43. package/dist/framework/Language/Languages/DanishDictionary.js.map +1 -1
  44. package/dist/framework/Language/Languages/EnglishDictionary.js +3 -1
  45. package/dist/framework/Language/Languages/EnglishDictionary.js.map +1 -1
  46. package/node_modules/@webcomponents/webcomponentsjs/CHANGELOG.md +61 -0
  47. package/node_modules/@webcomponents/webcomponentsjs/README.md +64 -47
  48. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-ce.js +14 -24
  49. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-ce.js.map +1 -1
  50. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-pf_dom.js +60 -0
  51. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-pf_dom.js.map +1 -0
  52. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-pf_js.js +95 -0
  53. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-pf_js.js.map +1 -0
  54. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-sd-ce-pf.js +290 -250
  55. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-sd-ce-pf.js.map +1 -1
  56. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-sd-ce.js +184 -177
  57. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-sd-ce.js.map +1 -1
  58. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-sd.js +151 -135
  59. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-sd.js.map +1 -1
  60. package/node_modules/@webcomponents/webcomponentsjs/package.json +30 -29
  61. package/node_modules/@webcomponents/webcomponentsjs/src/entrypoints/webcomponents-bundle-index.js +5 -3
  62. package/node_modules/@webcomponents/webcomponentsjs/src/entrypoints/webcomponents-ce-index.js +1 -1
  63. package/node_modules/@webcomponents/webcomponentsjs/src/entrypoints/webcomponents-pf_dom-index.js +17 -0
  64. package/node_modules/@webcomponents/webcomponentsjs/src/entrypoints/webcomponents-pf_js-index.js +13 -0
  65. package/node_modules/@webcomponents/webcomponentsjs/src/entrypoints/webcomponents-sd-ce-index.js +1 -1
  66. package/node_modules/@webcomponents/webcomponentsjs/src/entrypoints/webcomponents-sd-ce-pf-index.js +4 -7
  67. package/node_modules/@webcomponents/webcomponentsjs/src/entrypoints/webcomponents-sd-index.js +1 -1
  68. package/node_modules/@webcomponents/webcomponentsjs/src/flag-parser.js +69 -0
  69. package/node_modules/@webcomponents/webcomponentsjs/src/platform/baseuri.js +28 -0
  70. package/node_modules/@webcomponents/webcomponentsjs/src/platform/child-node/after.js +47 -0
  71. package/node_modules/@webcomponents/webcomponentsjs/src/platform/child-node/before.js +40 -0
  72. package/node_modules/@webcomponents/webcomponentsjs/src/platform/child-node/index.js +14 -0
  73. package/node_modules/@webcomponents/webcomponentsjs/src/platform/child-node/remove.js +37 -0
  74. package/node_modules/@webcomponents/webcomponentsjs/src/platform/child-node/replace-with.js +42 -0
  75. package/node_modules/@webcomponents/webcomponentsjs/src/platform/custom-event.js +79 -0
  76. package/node_modules/@webcomponents/webcomponentsjs/src/platform/es6-misc.js +38 -0
  77. package/node_modules/@webcomponents/webcomponentsjs/src/platform/get-attribute-names.js +27 -0
  78. package/node_modules/@webcomponents/webcomponentsjs/src/platform/matches.js +21 -0
  79. package/node_modules/@webcomponents/webcomponentsjs/src/platform/parent-node/append.js +31 -0
  80. package/node_modules/@webcomponents/webcomponentsjs/src/platform/parent-node/index.js +13 -0
  81. package/node_modules/@webcomponents/webcomponentsjs/src/platform/parent-node/prepend.js +42 -0
  82. package/node_modules/@webcomponents/webcomponentsjs/src/platform/parent-node/replace-children.js +45 -0
  83. package/node_modules/@webcomponents/webcomponentsjs/src/platform/promise.js +50 -0
  84. package/node_modules/@webcomponents/webcomponentsjs/src/platform/svg-element-class-list.js +28 -0
  85. package/node_modules/@webcomponents/webcomponentsjs/src/platform/symbol.js +64 -0
  86. package/node_modules/@webcomponents/webcomponentsjs/src/unresolved.js +32 -0
  87. package/node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.d.ts +174 -0
  88. package/node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js +299 -250
  89. package/node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js.map +1 -1
  90. package/node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js +49 -28
  91. package/package.json +2 -2
  92. package/src/elements/CheckBoxElement/CheckBoxElement.ts +1 -0
  93. package/src/elements/DropDownList/DropDownListElement.ts +2 -0
  94. package/src/elements/RadioButtonGroup/RadioButtonGroupElement.ts +1 -0
  95. package/src/framework/CustomInputElement.ts +19 -2
@@ -1,60 +1,60 @@
1
1
  {
2
- "_args": [
3
- [
4
- "@webcomponents/webcomponentsjs@2.4.3",
5
- "C:\\Luftborn\\EsignatuR\\Forms\\JSCustomComponents\\custom-input-elements"
6
- ]
7
- ],
8
- "_from": "@webcomponents/webcomponentsjs@2.4.3",
9
- "_id": "@webcomponents/webcomponentsjs@2.4.3",
2
+ "_from": "@webcomponents/webcomponentsjs@^2.4.3",
3
+ "_id": "@webcomponents/webcomponentsjs@2.6.0",
10
4
  "_inBundle": false,
11
- "_integrity": "sha512-cV4+sAmshf8ysU2USutrSRYQkJzEYKHsRCGa0CkMElGpG5747VHtkfsW3NdVIBV/m2MDKXTDydT4lkrysH7IFA==",
5
+ "_integrity": "sha512-Moog+Smx3ORTbWwuPqoclr+uvfLnciVd6wdCaVscHPrxbmQ/IJKm3wbB7hpzJtXWjAq2l/6QMlO85aZiOdtv5Q==",
12
6
  "_location": "/@webcomponents/webcomponentsjs",
13
7
  "_phantomChildren": {},
14
8
  "_requested": {
15
- "type": "version",
9
+ "type": "range",
16
10
  "registry": true,
17
- "raw": "@webcomponents/webcomponentsjs@2.4.3",
11
+ "raw": "@webcomponents/webcomponentsjs@^2.4.3",
18
12
  "name": "@webcomponents/webcomponentsjs",
19
13
  "escapedName": "@webcomponents%2fwebcomponentsjs",
20
14
  "scope": "@webcomponents",
21
- "rawSpec": "2.4.3",
15
+ "rawSpec": "^2.4.3",
22
16
  "saveSpec": null,
23
- "fetchSpec": "2.4.3"
17
+ "fetchSpec": "^2.4.3"
24
18
  },
25
19
  "_requiredBy": [
26
20
  "/"
27
21
  ],
28
- "_resolved": "https://registry.npmjs.org/@webcomponents/webcomponentsjs/-/webcomponentsjs-2.4.3.tgz",
29
- "_spec": "2.4.3",
30
- "_where": "C:\\Luftborn\\EsignatuR\\Forms\\JSCustomComponents\\custom-input-elements",
22
+ "_resolved": "https://registry.npmjs.org/@webcomponents/webcomponentsjs/-/webcomponentsjs-2.6.0.tgz",
23
+ "_shasum": "7d1674c40bddf0c6dd974c44ffd34512fe7274ff",
24
+ "_spec": "@webcomponents/webcomponentsjs@^2.4.3",
25
+ "_where": "C:\\eSignatur\\JSCustomComponents\\custom-input-elements",
31
26
  "author": {
32
27
  "name": "The Polymer Project Authors",
33
28
  "url": "https://polymer.github.io/AUTHORS.txt"
34
29
  },
35
30
  "bugs": {
36
- "url": "https://github.com/webcomponents/polyfills/issues"
31
+ "url": "https://github.com/webcomponents/polyfills/issues?q=is%3Aissue+is%3Aopen+label%3A\"Package%3A+webcomponentsjs\""
37
32
  },
33
+ "bundleDependencies": false,
34
+ "deprecated": false,
38
35
  "description": "Web Components Polyfills",
39
36
  "devDependencies": {
40
- "@webcomponents/custom-elements": "^1.4.1",
41
- "@webcomponents/shadycss": "^1.9.6",
42
- "@webcomponents/shadydom": "^1.7.3",
43
- "@webcomponents/template": "^1.4.2",
44
- "@webcomponents/url": "^0.7.5",
37
+ "@webcomponents/custom-elements": "^1.5.0",
38
+ "@webcomponents/shadycss": "^1.11.0",
39
+ "@webcomponents/shadydom": "^1.9.0",
40
+ "@webcomponents/template": "^1.5.0",
41
+ "@webcomponents/url": "^0.7.8",
45
42
  "babel-preset-minify": "^0.4.3",
46
43
  "get-own-property-symbols": "^0.9.2",
44
+ "gulp-concat": "^2.6.1",
47
45
  "promise-polyfill": "^8.0.0"
48
46
  },
49
47
  "files": [
50
48
  "bundles/**/*",
51
- "src/entrypoints/**/*",
49
+ "CHANGELOG.md",
52
50
  "custom-elements-es5-adapter.js",
51
+ "src/**/*.js",
52
+ "webcomponents-bundle.d.ts",
53
53
  "webcomponents-bundle.js*",
54
54
  "webcomponents-loader.js"
55
55
  ],
56
- "gitHead": "9f73cf59a68fcbd789426cb476e6c21946796958",
57
- "homepage": "https://webcomponents.org/polyfills",
56
+ "gitHead": "966c28a79fcd46dedc4367be6b93404565ab9cf6",
57
+ "homepage": "https://github.com/webcomponents/polyfills/tree/master/packages/webcomponentsjs",
58
58
  "keywords": [
59
59
  "webcomponents",
60
60
  "web-components",
@@ -69,14 +69,15 @@
69
69
  },
70
70
  "repository": {
71
71
  "type": "git",
72
- "url": "git+https://github.com/webcomponents/polyfills.git"
72
+ "url": "git+https://github.com/webcomponents/polyfills.git",
73
+ "directory": "packages/webcomponentsjs"
73
74
  },
74
75
  "scripts": {
75
- "build": "gulp",
76
+ "build": "tsc && gulp",
77
+ "build:watch": "chokidar --initial --follow-symlinks 'src/entrypoints/**/*.js' 'ts_src/**/*.ts' 'node_modules/@webcomponents/**/*.js' -c 'npm run build'",
76
78
  "clean": "gulp clean",
77
- "lint": "eslint src",
78
79
  "prepack": "npm run build",
79
80
  "regen-package-lock": "rm -rf node_modules package-lock.json; npm install"
80
81
  },
81
- "version": "2.4.3"
82
+ "version": "2.6.0"
82
83
  }
@@ -38,16 +38,18 @@ function flushAndFire() {
38
38
  flusher && flusher();
39
39
  shouldFlush = true;
40
40
  window.WebComponents.ready = true;
41
- document.dispatchEvent(new CustomEvent('WebComponentsReady', { bubbles: true }));
41
+ document.dispatchEvent(
42
+ new CustomEvent('WebComponentsReady', {bubbles: true})
43
+ );
42
44
  }
43
45
 
44
46
  if (document.readyState !== 'complete') {
45
47
  // this script may come between DCL and load, so listen for both, and cancel load listener if DCL fires
46
- window.addEventListener('load', flushAndFire)
48
+ window.addEventListener('load', flushAndFire);
47
49
  window.addEventListener('DOMContentLoaded', () => {
48
50
  window.removeEventListener('load', flushAndFire);
49
51
  flushAndFire();
50
52
  });
51
53
  } else {
52
54
  flushAndFire();
53
- }
55
+ }
@@ -14,4 +14,4 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
14
14
  * Used in: Safari 10
15
15
  */
16
16
 
17
- import '../../node_modules/@webcomponents/custom-elements/src/custom-elements.js';
17
+ import '../../node_modules/@webcomponents/custom-elements/src/custom-elements.js';
@@ -0,0 +1,17 @@
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
+
11
+ import '../platform/custom-event.js';
12
+ import '../platform/baseuri.js';
13
+ import '../platform/get-attribute-names.js';
14
+ import '../platform/matches.js';
15
+ import '../platform/parent-node/index.js';
16
+ import '../platform/child-node/index.js';
17
+ import '../platform/svg-element-class-list.js';
@@ -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
+
11
+ import '../platform/es6-misc.js';
12
+ import '../platform/promise.js';
13
+ import '../platform/symbol.js';
@@ -16,4 +16,4 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
16
16
 
17
17
  import '../../node_modules/@webcomponents/shadydom/src/shadydom.js';
18
18
  import '../../node_modules/@webcomponents/custom-elements/src/custom-elements.js';
19
- import '../../node_modules/@webcomponents/shadycss/entrypoints/scoping-shim.js';
19
+ import '../../node_modules/@webcomponents/shadycss/entrypoints/scoping-shim.js';
@@ -14,15 +14,12 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
14
14
  * Used in: IE 11
15
15
  */
16
16
 
17
- import '../platform/es6-misc.js';
18
- import '../platform/custom-event.js';
17
+ import './webcomponents-pf_js-index.js';
18
+ import './webcomponents-pf_dom-index.js';
19
+ import '../unresolved.js';
20
+ import '../flag-parser.js';
19
21
  import '../../node_modules/@webcomponents/template/template.js';
20
- import '../platform/promise.js';
21
- import '../platform/symbol.js';
22
- import '../platform/flag-parser.js';
23
22
  import '../../node_modules/@webcomponents/shadydom/src/shadydom.js';
24
23
  import '../../node_modules/@webcomponents/custom-elements/src/custom-elements.js';
25
24
  import '../../node_modules/@webcomponents/shadycss/entrypoints/scoping-shim.js';
26
25
  import '../../node_modules/@webcomponents/url/url.js';
27
- import '../platform/baseuri.js';
28
- import '../platform/unresolved.js';
@@ -15,4 +15,4 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
15
15
  */
16
16
 
17
17
  import '../../node_modules/@webcomponents/shadydom/src/shadydom.js';
18
- import '../../node_modules/@webcomponents/shadycss/entrypoints/scoping-shim.js';
18
+ import '../../node_modules/@webcomponents/shadycss/entrypoints/scoping-shim.js';
@@ -0,0 +1,69 @@
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
+ // Establish scope.
12
+ const extendedWindow = window;
13
+ extendedWindow['WebComponents'] = extendedWindow['WebComponents'] || {
14
+ 'flags': {},
15
+ };
16
+ // loading script
17
+ const file = 'webcomponents-bundle';
18
+ const script = document.querySelector('script[src*="' + file + '"]');
19
+ const flagMatcher = /wc-(.+)/;
20
+ // Note(rictic): a lot of this code looks wrong. Should we be pulling
21
+ // the flags local variable off of window.WebComponents.flags? If not
22
+ // then why check for noOpts, which can't possibly have been set?
23
+ // Flags. Convert url arguments to flags
24
+ const flags = {};
25
+ if (!flags['noOpts']) {
26
+ // from url
27
+ location.search
28
+ .slice(1)
29
+ .split('&')
30
+ .forEach(function (option) {
31
+ const parts = option.split('=');
32
+ let match;
33
+ if (parts[0] && (match = parts[0].match(flagMatcher))) {
34
+ flags[match[1]] = parts[1] || true;
35
+ }
36
+ });
37
+ // from script
38
+ if (script) {
39
+ for (let i = 0, a; (a = script.attributes[i]); i++) {
40
+ if (a.name !== 'src') {
41
+ flags[a.name] = a.value || true;
42
+ }
43
+ }
44
+ }
45
+ // log flags
46
+ const log = {};
47
+ if (flags['log'] && flags['log']['split']) {
48
+ const parts = flags['log'].split(',');
49
+ parts.forEach(function (f) {
50
+ log[f] = true;
51
+ });
52
+ }
53
+ flags['log'] = log;
54
+ }
55
+ // exports
56
+ extendedWindow['WebComponents']['flags'] = flags;
57
+ const forceShady = flags['shadydom'];
58
+ if (forceShady) {
59
+ extendedWindow['ShadyDOM'] = extendedWindow['ShadyDOM'] || {};
60
+ extendedWindow['ShadyDOM']['force'] = forceShady;
61
+ const noPatch = flags['noPatch'];
62
+ extendedWindow['ShadyDOM']['noPatch'] = noPatch === 'true' ? true : noPatch;
63
+ }
64
+ const forceCE = (flags['register'] || flags['ce']);
65
+ if (forceCE && window['customElements']) {
66
+ extendedWindow['customElements']['forcePolyfill'] = forceCE;
67
+ }
68
+ export {};
69
+ //# sourceMappingURL=flag-parser.js.map
@@ -0,0 +1,28 @@
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
+ // Implement Node.baseURI for IE 11
12
+ // adapted from
13
+ // https://github.com/webcomponents/html-imports/blob/v1.2.0/src/html-imports.js
14
+ const native_baseURI = Object.getOwnPropertyDescriptor(Node.prototype, 'baseURI');
15
+ if (!native_baseURI) {
16
+ Object.defineProperty(Node.prototype, 'baseURI', {
17
+ get() {
18
+ // this.ownerDocument is `null` for documents
19
+ const doc = this.ownerDocument || this;
20
+ const base = doc.querySelector('base[href]');
21
+ return (base && base.href) || window.location.href;
22
+ },
23
+ configurable: true,
24
+ enumerable: true,
25
+ });
26
+ }
27
+ export {};
28
+ //# sourceMappingURL=baseuri.js.map
@@ -0,0 +1,47 @@
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, _c, _d;
11
+ const nativeInsertBefore = Node.prototype.insertBefore;
12
+ const nativeGetParentNode = (_b = (_a = Object.getOwnPropertyDescriptor(Node.prototype, 'parentNode')) === null || _a === void 0 ? void 0 : _a.get) !== null && _b !== void 0 ? _b :
13
+ // In Safari 9, the `parentNode` descriptor's `get` and `set` are undefined.
14
+ function () {
15
+ return this.parentNode;
16
+ };
17
+ const nativeGetNextSibling = (_d = (_c = Object.getOwnPropertyDescriptor(Node.prototype, 'nextSibling')) === null || _c === void 0 ? void 0 : _c.get) !== null && _d !== void 0 ? _d :
18
+ // In Safari 9, the `nextSibling` descriptor's `get` and `set` are
19
+ // undefined.
20
+ function () {
21
+ return this.nextSibling;
22
+ };
23
+ const installAfter = (constructor) => {
24
+ const prototype = constructor.prototype;
25
+ if (prototype.hasOwnProperty('after')) {
26
+ return;
27
+ }
28
+ Object.defineProperty(prototype, 'after', {
29
+ configurable: true,
30
+ enumerable: true,
31
+ writable: true,
32
+ value: function after(...args) {
33
+ const parentNode = nativeGetParentNode.call(this);
34
+ if (parentNode === null) {
35
+ return;
36
+ }
37
+ const nextSibling = nativeGetNextSibling.call(this);
38
+ for (const arg of args) {
39
+ nativeInsertBefore.call(parentNode, typeof arg === 'string' ? document.createTextNode(arg) : arg, nextSibling);
40
+ }
41
+ },
42
+ });
43
+ };
44
+ installAfter(CharacterData);
45
+ installAfter(Element);
46
+ export {};
47
+ //# sourceMappingURL=after.js.map
@@ -0,0 +1,40 @@
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 nativeGetParentNode = (_b = (_a = Object.getOwnPropertyDescriptor(Node.prototype, 'parentNode')) === null || _a === void 0 ? void 0 : _a.get) !== null && _b !== void 0 ? _b :
13
+ // In Safari 9, the `parentNode` descriptor's `get` and `set` are undefined.
14
+ function () {
15
+ return this.parentNode;
16
+ };
17
+ const installBefore = (constructor) => {
18
+ const prototype = constructor.prototype;
19
+ if (prototype.hasOwnProperty('before')) {
20
+ return;
21
+ }
22
+ Object.defineProperty(prototype, 'before', {
23
+ configurable: true,
24
+ enumerable: true,
25
+ writable: true,
26
+ value: function before(...args) {
27
+ const parentNode = nativeGetParentNode.call(this);
28
+ if (parentNode === null) {
29
+ return;
30
+ }
31
+ for (const arg of args) {
32
+ nativeInsertBefore.call(parentNode, typeof arg === 'string' ? document.createTextNode(arg) : arg, this);
33
+ }
34
+ },
35
+ });
36
+ };
37
+ installBefore(CharacterData);
38
+ installBefore(Element);
39
+ export {};
40
+ //# sourceMappingURL=before.js.map
@@ -0,0 +1,14 @@
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 './after.js';
11
+ import './before.js';
12
+ import './remove.js';
13
+ import './replace-with.js';
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,37 @@
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 nativeRemoveChild = Node.prototype.removeChild;
12
+ const nativeGetParentNode = (_b = (_a = Object.getOwnPropertyDescriptor(Node.prototype, 'parentNode')) === null || _a === void 0 ? void 0 : _a.get) !== null && _b !== void 0 ? _b :
13
+ // In Safari 9, the `parentNode` descriptor's `get` and `set` are undefined.
14
+ function () {
15
+ return this.parentNode;
16
+ };
17
+ const installRemove = (constructor) => {
18
+ const prototype = constructor.prototype;
19
+ if (prototype.hasOwnProperty('remove')) {
20
+ return;
21
+ }
22
+ Object.defineProperty(prototype, 'remove', {
23
+ configurable: true,
24
+ enumerable: true,
25
+ writable: true,
26
+ value: function remove() {
27
+ const parentNode = nativeGetParentNode.call(this);
28
+ if (parentNode) {
29
+ nativeRemoveChild.call(parentNode, this);
30
+ }
31
+ },
32
+ });
33
+ };
34
+ installRemove(CharacterData);
35
+ installRemove(Element);
36
+ export {};
37
+ //# sourceMappingURL=remove.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 nativeRemoveChild = Node.prototype.removeChild;
13
+ const nativeGetParentNode = (_b = (_a = Object.getOwnPropertyDescriptor(Node.prototype, 'parentNode')) === null || _a === void 0 ? void 0 : _a.get) !== null && _b !== void 0 ? _b :
14
+ // In Safari 9, the `parentNode` descriptor's `get` and `set` are undefined.
15
+ function () {
16
+ return this.parentNode;
17
+ };
18
+ const installReplaceWith = (constructor) => {
19
+ const prototype = constructor.prototype;
20
+ if (prototype.hasOwnProperty('replaceWith')) {
21
+ return;
22
+ }
23
+ Object.defineProperty(prototype, 'replaceWith', {
24
+ configurable: true,
25
+ enumerable: true,
26
+ writable: true,
27
+ value: function replaceWith(...args) {
28
+ const parentNode = nativeGetParentNode.call(this);
29
+ if (parentNode === null) {
30
+ return;
31
+ }
32
+ for (const arg of args) {
33
+ nativeInsertBefore.call(parentNode, typeof arg === 'string' ? document.createTextNode(arg) : arg, this);
34
+ }
35
+ nativeRemoveChild.call(parentNode, this);
36
+ },
37
+ });
38
+ };
39
+ installReplaceWith(CharacterData);
40
+ installReplaceWith(Element);
41
+ export {};
42
+ //# sourceMappingURL=replace-with.js.map
@@ -0,0 +1,79 @@
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
+ // defaultPrevented is broken in IE.
12
+ // https://connect.microsoft.com/IE/feedback/details/790389/event-defaultprevented-returns-false-after-preventdefault-was-called
13
+ const workingDefaultPrevented = (() => {
14
+ const e = document.createEvent('Event');
15
+ e.initEvent('foo', true, true);
16
+ e.preventDefault();
17
+ return e.defaultPrevented;
18
+ })();
19
+ if (!workingDefaultPrevented) {
20
+ const origPreventDefault = Event.prototype.preventDefault;
21
+ Event.prototype.preventDefault = function () {
22
+ if (!this.cancelable) {
23
+ return;
24
+ }
25
+ origPreventDefault.call(this);
26
+ Object.defineProperty(this, 'defaultPrevented', {
27
+ get() {
28
+ return true;
29
+ },
30
+ configurable: true,
31
+ });
32
+ };
33
+ }
34
+ const isIE = /Trident/.test(navigator.userAgent);
35
+ // Event constructor shim
36
+ if (!window.Event || (isIE && typeof window.Event !== 'function')) {
37
+ const origEvent = window.Event;
38
+ window['Event'] = ((inType, params) => {
39
+ params = params || {};
40
+ const e = document.createEvent('Event');
41
+ e.initEvent(inType, Boolean(params.bubbles), Boolean(params.cancelable));
42
+ return e;
43
+ });
44
+ if (origEvent) {
45
+ for (const i in origEvent) {
46
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
47
+ window['Event'][i] = origEvent[i];
48
+ }
49
+ window['Event'].prototype = origEvent.prototype;
50
+ }
51
+ }
52
+ // CustomEvent constructor shim
53
+ if (!window.CustomEvent || (isIE && typeof window.CustomEvent !== 'function')) {
54
+ window['CustomEvent'] = ((inType, params) => {
55
+ params = params || {};
56
+ const e = document.createEvent('CustomEvent');
57
+ e.initCustomEvent(inType, Boolean(params.bubbles), Boolean(params.cancelable), params.detail);
58
+ return e;
59
+ });
60
+ window['CustomEvent'].prototype = window.Event.prototype;
61
+ }
62
+ if (!window.MouseEvent || (isIE && typeof window.MouseEvent !== 'function')) {
63
+ const origMouseEvent = window.MouseEvent;
64
+ window['MouseEvent'] = ((inType, params) => {
65
+ params = params || {};
66
+ const e = document.createEvent('MouseEvent');
67
+ e.initMouseEvent(inType, Boolean(params.bubbles), Boolean(params.cancelable), params.view || window, params.detail, params.screenX, params.screenY, params.clientX, params.clientY, params.ctrlKey, params.altKey, params.shiftKey, params.metaKey, params.button, params.relatedTarget);
68
+ return e;
69
+ });
70
+ if (origMouseEvent) {
71
+ for (const j in origMouseEvent) {
72
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
73
+ window.MouseEvent[j] = origMouseEvent[j];
74
+ }
75
+ }
76
+ window['MouseEvent'].prototype = origMouseEvent.prototype;
77
+ }
78
+ export {};
79
+ //# sourceMappingURL=custom-event.js.map
@@ -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