@luftborn/custom-elements 1.1.41 → 1.1.43

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 (26) hide show
  1. package/demo/index.html +2 -2
  2. package/node_modules/@webcomponents/webcomponentsjs/CHANGELOG.md +15 -0
  3. package/node_modules/@webcomponents/webcomponentsjs/README.md +13 -0
  4. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-ce.js +31 -31
  5. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-ce.js.map +1 -1
  6. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-pf_dom.js +15 -13
  7. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-pf_dom.js.map +1 -1
  8. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-pf_js.js.map +1 -1
  9. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-sd-ce-pf.js +237 -223
  10. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-sd-ce-pf.js.map +1 -1
  11. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-sd-ce.js +188 -176
  12. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-sd-ce.js.map +1 -1
  13. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-sd.js +155 -144
  14. package/node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-sd.js.map +1 -1
  15. package/node_modules/@webcomponents/webcomponentsjs/package.json +11 -12
  16. package/node_modules/@webcomponents/webcomponentsjs/src/entrypoints/webcomponents-pf_dom-index.js +2 -0
  17. package/node_modules/@webcomponents/webcomponentsjs/src/platform/event-listener-options.js +122 -0
  18. package/node_modules/@webcomponents/webcomponentsjs/src/platform/toggle-attribute.js +39 -0
  19. package/node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.d.ts +1 -0
  20. package/node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js +239 -225
  21. package/node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js.map +1 -1
  22. package/node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js +35 -3
  23. package/package.json +2 -2
  24. package/demo/index.js +0 -6427
  25. package/demo/index.min.js +0 -6428
  26. package/demo/index.min.js.map +0 -1
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@webcomponents/webcomponentsjs@^2.4.3",
3
- "_id": "@webcomponents/webcomponentsjs@2.6.0",
3
+ "_id": "@webcomponents/webcomponentsjs@2.8.0",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-Moog+Smx3ORTbWwuPqoclr+uvfLnciVd6wdCaVscHPrxbmQ/IJKm3wbB7hpzJtXWjAq2l/6QMlO85aZiOdtv5Q==",
5
+ "_integrity": "sha512-loGD63sacRzOzSJgQnB9ZAhaQGkN7wl2Zuw7tsphI5Isa0irijrRo6EnJii/GgjGefIFO8AIO7UivzRhFaEk9w==",
6
6
  "_location": "/@webcomponents/webcomponentsjs",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -19,10 +19,10 @@
19
19
  "_requiredBy": [
20
20
  "/"
21
21
  ],
22
- "_resolved": "https://registry.npmjs.org/@webcomponents/webcomponentsjs/-/webcomponentsjs-2.6.0.tgz",
23
- "_shasum": "7d1674c40bddf0c6dd974c44ffd34512fe7274ff",
22
+ "_resolved": "https://registry.npmjs.org/@webcomponents/webcomponentsjs/-/webcomponentsjs-2.8.0.tgz",
23
+ "_shasum": "ab21f027594fa827c1889e8b646da7be27c7908a",
24
24
  "_spec": "@webcomponents/webcomponentsjs@^2.4.3",
25
- "_where": "C:\\eSignatur\\JSCustomComponents\\custom-input-elements",
25
+ "_where": "C:\\eSignatur\\npm repos\\ss\\JSCustomComponents\\custom-input-elements",
26
26
  "author": {
27
27
  "name": "The Polymer Project Authors",
28
28
  "url": "https://polymer.github.io/AUTHORS.txt"
@@ -34,11 +34,11 @@
34
34
  "deprecated": false,
35
35
  "description": "Web Components Polyfills",
36
36
  "devDependencies": {
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",
37
+ "@webcomponents/custom-elements": "^1.6.0",
38
+ "@webcomponents/shadycss": "^1.11.2",
39
+ "@webcomponents/shadydom": "^1.11.0",
40
+ "@webcomponents/template": "^1.5.1",
41
+ "@webcomponents/url": "^0.7.9",
42
42
  "babel-preset-minify": "^0.4.3",
43
43
  "get-own-property-symbols": "^0.9.2",
44
44
  "gulp-concat": "^2.6.1",
@@ -53,7 +53,6 @@
53
53
  "webcomponents-bundle.js*",
54
54
  "webcomponents-loader.js"
55
55
  ],
56
- "gitHead": "966c28a79fcd46dedc4367be6b93404565ab9cf6",
57
56
  "homepage": "https://github.com/webcomponents/polyfills/tree/master/packages/webcomponentsjs",
58
57
  "keywords": [
59
58
  "webcomponents",
@@ -79,5 +78,5 @@
79
78
  "prepack": "npm run build",
80
79
  "regen-package-lock": "rm -rf node_modules package-lock.json; npm install"
81
80
  },
82
- "version": "2.6.0"
81
+ "version": "2.8.0"
83
82
  }
@@ -9,9 +9,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9
9
  */
10
10
 
11
11
  import '../platform/custom-event.js';
12
+ import '../platform/event-listener-options.js';
12
13
  import '../platform/baseuri.js';
13
14
  import '../platform/get-attribute-names.js';
14
15
  import '../platform/matches.js';
15
16
  import '../platform/parent-node/index.js';
16
17
  import '../platform/child-node/index.js';
17
18
  import '../platform/svg-element-class-list.js';
19
+ import '../platform/toggle-attribute.js';
@@ -0,0 +1,122 @@
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
+ var _a;
12
+ // Older browsers like IE do not support an object as the options parameter
13
+ // to add/removeEventListener.
14
+ // https://connect.microsoft.com/IE/feedback/details/790389/event-defaultprevented-returns-false-after-preventdefault-was-called
15
+ const supportsEventOptions = (() => {
16
+ let supported = false;
17
+ let onceSupported = false;
18
+ const eventOptions = {
19
+ get capture() {
20
+ supported = true;
21
+ return true;
22
+ },
23
+ get once() {
24
+ onceSupported = true;
25
+ return true;
26
+ },
27
+ };
28
+ let callCount = 0;
29
+ const listener = () => {
30
+ callCount++;
31
+ };
32
+ const d = document.createElement('div');
33
+ // NOTE: These will be unpatched at this point.
34
+ d.addEventListener('click', listener, eventOptions);
35
+ let fullySupported = supported && onceSupported;
36
+ // Once + capture broken on Edge >= 17 < 79.
37
+ if (fullySupported) {
38
+ d.dispatchEvent(new Event('click'));
39
+ d.dispatchEvent(new Event('click'));
40
+ fullySupported = callCount == 1;
41
+ }
42
+ d.removeEventListener('click', listener, eventOptions);
43
+ return fullySupported;
44
+ })();
45
+ const nativeEventTarget = (_a = window.EventTarget) !== null && _a !== void 0 ? _a : window.Node;
46
+ if (!supportsEventOptions &&
47
+ 'addEventListener' in nativeEventTarget.prototype) {
48
+ const parseEventOptions = (optionsOrCapture) => {
49
+ let capture, once;
50
+ if (optionsOrCapture &&
51
+ (typeof optionsOrCapture === 'object' ||
52
+ typeof optionsOrCapture === 'function')) {
53
+ capture = Boolean(optionsOrCapture.capture);
54
+ once = Boolean(optionsOrCapture.once);
55
+ }
56
+ else {
57
+ capture = Boolean(optionsOrCapture);
58
+ once = false;
59
+ }
60
+ return {
61
+ capture,
62
+ once,
63
+ };
64
+ };
65
+ const origAddEventListener = nativeEventTarget.prototype.addEventListener;
66
+ const origRemoveEventListener = nativeEventTarget.prototype.removeEventListener;
67
+ const captureListenerMap = new WeakMap();
68
+ const listenerMap = new WeakMap();
69
+ const getListenerMap = (target, type, capture) => {
70
+ const elMap = capture ? captureListenerMap : listenerMap;
71
+ let typeMap = elMap.get(target);
72
+ if (typeMap === undefined) {
73
+ elMap.set(target, (typeMap = new Map()));
74
+ }
75
+ let listeners = typeMap.get(type);
76
+ if (listeners === undefined) {
77
+ typeMap.set(type, (listeners = new WeakMap()));
78
+ }
79
+ return listeners;
80
+ };
81
+ nativeEventTarget.prototype.addEventListener = function (type, listener, options) {
82
+ if (listener == null) {
83
+ return;
84
+ }
85
+ const { capture, once } = parseEventOptions(options);
86
+ const map = getListenerMap(this, type, capture);
87
+ if (!map.has(listener)) {
88
+ const cachedListener = once
89
+ ? (e) => {
90
+ map.delete(listener);
91
+ origRemoveEventListener.call(this, type, cachedListener, capture);
92
+ if (typeof listener === 'function') {
93
+ return listener.call(this, e);
94
+ }
95
+ if (typeof (listener === null || listener === void 0 ? void 0 : listener.handleEvent) === 'function') {
96
+ return listener.handleEvent(e);
97
+ }
98
+ }
99
+ : null;
100
+ map.set(listener, cachedListener);
101
+ // Note, the cached listener is null if no wrapper is used to avoid
102
+ // a strong ref to it;
103
+ origAddEventListener.call(this, type, cachedListener !== null && cachedListener !== void 0 ? cachedListener : listener, capture);
104
+ }
105
+ };
106
+ nativeEventTarget.prototype.removeEventListener = function (type, listener, options) {
107
+ if (listener == null) {
108
+ return;
109
+ }
110
+ const { capture } = parseEventOptions(options);
111
+ const map = getListenerMap(this, type, capture);
112
+ const cachedListener = map.get(listener);
113
+ if (cachedListener !== undefined) {
114
+ map.delete(listener);
115
+ // Note, the cached listener is null if no wrapper was used so that a
116
+ // strong ref to it is not kept.
117
+ origRemoveEventListener.call(this, type, cachedListener !== null && cachedListener !== void 0 ? cachedListener : listener, capture);
118
+ }
119
+ };
120
+ }
121
+ export {};
122
+ //# sourceMappingURL=event-listener-options.js.map
@@ -0,0 +1,39 @@
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 = Element.prototype;
12
+ const nativeHasAttribute = Element.prototype.hasAttribute;
13
+ const nativeSetAttribute = Element.prototype.setAttribute;
14
+ const nativeRemoveAttribute = Element.prototype.removeAttribute;
15
+ if (!Element_prototype.hasOwnProperty('toggleAttribute')) {
16
+ Element_prototype.toggleAttribute = function toggleAttribute(name, force) {
17
+ if (force === undefined) {
18
+ if (nativeHasAttribute.call(this, name)) {
19
+ nativeRemoveAttribute.call(this, name);
20
+ return false;
21
+ }
22
+ else {
23
+ nativeSetAttribute.call(this, name, '');
24
+ return true;
25
+ }
26
+ }
27
+ if (force) {
28
+ if (!nativeHasAttribute.call(this, name)) {
29
+ nativeSetAttribute.call(this, name, '');
30
+ }
31
+ return true;
32
+ }
33
+ // force is falsey
34
+ nativeRemoveAttribute.call(this, name);
35
+ return false;
36
+ };
37
+ }
38
+ export {};
39
+ //# sourceMappingURL=toggle-attribute.js.map
@@ -138,6 +138,7 @@ declare global {
138
138
  };
139
139
  noPatch: boolean | string;
140
140
  patchElementProto: (node: Object) => void;
141
+ querySelectorImplementation?: 'native' | 'selectorEngine';
141
142
  wrap: (node: Node) => Node;
142
143
  }
143
144