@digipair/skill-web-inputs 0.112.3 → 0.114.1
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.
- package/README.md +7 -0
- package/{index.cjs.js → dist/index.cjs.js} +299 -336
- package/{index.esm.js → dist/index.esm.js} +299 -334
- package/{libs/skill-web-inputs → dist}/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -0
- package/{libs/skill-web-inputs → dist}/src/lib/input-dom-attribute.element.d.ts +1 -0
- package/dist/src/lib/input-dom-attribute.element.d.ts.map +1 -0
- package/{libs/skill-web-inputs → dist}/src/lib/input-element.element.d.ts +1 -0
- package/dist/src/lib/input-element.element.d.ts.map +1 -0
- package/{libs/skill-web-inputs → dist}/src/lib/input-fetch.element.d.ts +1 -0
- package/dist/src/lib/input-fetch.element.d.ts.map +1 -0
- package/{libs/skill-web-inputs → dist}/src/lib/input-file.element.d.ts +1 -0
- package/dist/src/lib/input-file.element.d.ts.map +1 -0
- package/{libs/skill-web-inputs → dist}/src/lib/input-hidden.element.d.ts +1 -0
- package/dist/src/lib/input-hidden.element.d.ts.map +1 -0
- package/{libs/skill-web-inputs → dist}/src/lib/input-json.element.d.ts +1 -0
- package/dist/src/lib/input-json.element.d.ts.map +1 -0
- package/{libs/skill-web-inputs → dist}/src/lib/input-text.element.d.ts +1 -0
- package/dist/src/lib/input-text.element.d.ts.map +1 -0
- package/{libs/skill-web-inputs → dist}/src/lib/skill-web-inputs.d.ts +1 -0
- package/dist/src/lib/skill-web-inputs.d.ts.map +1 -0
- package/{libs/skill-web-inputs → dist}/src/lib/tools/css-selector.d.ts +1 -0
- package/dist/src/lib/tools/css-selector.d.ts.map +1 -0
- package/package.json +26 -5
- package/index.d.ts +0 -1
- /package/{index.cjs.d.ts → dist/index.d.ts} +0 -0
- /package/{schema.fr.json → dist/schema.fr.json} +0 -0
- /package/{schema.json → dist/schema.json} +0 -0
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
function __decorate(decorators, target, key, desc) {
|
|
6
4
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7
5
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -11,7 +9,7 @@ function __decorate(decorators, target, key, desc) {
|
|
|
11
9
|
function __metadata(metadataKey, metadataValue) {
|
|
12
10
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
|
13
11
|
}
|
|
14
|
-
typeof SuppressedError === "function" ? SuppressedError : function
|
|
12
|
+
typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
|
|
15
13
|
var e = new Error(message);
|
|
16
14
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
17
15
|
};
|
|
@@ -36,7 +34,6 @@ function _defineProperties$3(target, props) {
|
|
|
36
34
|
}
|
|
37
35
|
function _create_class$3(Constructor, protoProps, staticProps) {
|
|
38
36
|
if (protoProps) _defineProperties$3(Constructor.prototype, protoProps);
|
|
39
|
-
if (staticProps) _defineProperties$3(Constructor, staticProps);
|
|
40
37
|
return Constructor;
|
|
41
38
|
}
|
|
42
39
|
function _instanceof$2(left, right) {
|
|
@@ -46,11 +43,11 @@ function _instanceof$2(left, right) {
|
|
|
46
43
|
return left instanceof right;
|
|
47
44
|
}
|
|
48
45
|
}
|
|
49
|
-
var t$2 = globalThis, e$2 = t$2.ShadowRoot && (void 0 === t$2.ShadyCSS || t$2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s$
|
|
46
|
+
var t$2 = globalThis, e$2 = t$2.ShadowRoot && (void 0 === t$2.ShadyCSS || t$2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s$2 = Symbol(), o$4 = new WeakMap;
|
|
50
47
|
var n$3 = /*#__PURE__*/ function() {
|
|
51
48
|
function n(t, e, o) {
|
|
52
49
|
_class_call_check$3(this, n);
|
|
53
|
-
if (this._$cssResult$ =
|
|
50
|
+
if (this._$cssResult$ = true, o !== s$2) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
54
51
|
this.cssText = t, this.t = e;
|
|
55
52
|
}
|
|
56
53
|
_create_class$3(n, [
|
|
@@ -61,7 +58,7 @@ var n$3 = /*#__PURE__*/ function() {
|
|
|
61
58
|
var s = this.t;
|
|
62
59
|
if (e$2 && void 0 === t) {
|
|
63
60
|
var e1 = void 0 !== s && 1 === s.length;
|
|
64
|
-
e1 && (t = o$
|
|
61
|
+
e1 && (t = o$4.get(s)), void 0 === t && ((this.o = t = new CSSStyleSheet).replaceSync(this.cssText), e1 && o$4.set(s, t));
|
|
65
62
|
}
|
|
66
63
|
return t;
|
|
67
64
|
}
|
|
@@ -75,20 +72,20 @@ var n$3 = /*#__PURE__*/ function() {
|
|
|
75
72
|
]);
|
|
76
73
|
return n;
|
|
77
74
|
}();
|
|
78
|
-
var r$
|
|
79
|
-
return new n$3("string" == typeof t ? t : t + "", void 0, s$
|
|
75
|
+
var r$4 = function(t) {
|
|
76
|
+
return new n$3("string" == typeof t ? t : t + "", void 0, s$2);
|
|
80
77
|
}, i$3 = function(t) {
|
|
81
78
|
for(var _len = arguments.length, e = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){
|
|
82
79
|
e[_key - 1] = arguments[_key];
|
|
83
80
|
}
|
|
84
81
|
var o = 1 === t.length ? t[0] : e.reduce(function(e, s, o) {
|
|
85
82
|
return e + function(t) {
|
|
86
|
-
if (
|
|
83
|
+
if (true === t._$cssResult$) return t.cssText;
|
|
87
84
|
if ("number" == typeof t) return t;
|
|
88
85
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + t + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
89
86
|
}(s) + t[o + 1];
|
|
90
87
|
}, t[0]);
|
|
91
|
-
return new n$3(o, t, s$
|
|
88
|
+
return new n$3(o, t, s$2);
|
|
92
89
|
}, S$1 = function(s, o) {
|
|
93
90
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
94
91
|
if (e$2) s.adoptedStyleSheets = o.map(function(t) {
|
|
@@ -139,7 +136,7 @@ var r$5 = function(t) {
|
|
|
139
136
|
}
|
|
140
137
|
}
|
|
141
138
|
}
|
|
142
|
-
return r$
|
|
139
|
+
return r$4(e);
|
|
143
140
|
}(t) : t;
|
|
144
141
|
};
|
|
145
142
|
|
|
@@ -281,7 +278,7 @@ function _non_iterable_spread$9() {
|
|
|
281
278
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
282
279
|
}
|
|
283
280
|
function _possible_constructor_return$2(self, call) {
|
|
284
|
-
if (call && (_type_of$
|
|
281
|
+
if (call && (_type_of$5(call) === "object" || typeof call === "function")) {
|
|
285
282
|
return call;
|
|
286
283
|
}
|
|
287
284
|
return _assert_this_initialized$2(self);
|
|
@@ -299,7 +296,7 @@ function _sliced_to_array$2(arr, i) {
|
|
|
299
296
|
function _to_consumable_array$9(arr) {
|
|
300
297
|
return _array_without_holes$9(arr) || _iterable_to_array$9(arr) || _unsupported_iterable_to_array$a(arr) || _non_iterable_spread$9();
|
|
301
298
|
}
|
|
302
|
-
function _type_of$
|
|
299
|
+
function _type_of$5(obj) {
|
|
303
300
|
"@swc/helpers - typeof";
|
|
304
301
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
305
302
|
}
|
|
@@ -461,7 +458,7 @@ var _Symbol, _a, _a1;
|
|
|
461
458
|
* @license
|
|
462
459
|
* Copyright 2017 Google LLC
|
|
463
460
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
464
|
-
*/ var i$2 = Object.is, e$1 = Object.defineProperty,
|
|
461
|
+
*/ var i$2 = Object.is, e$1 = Object.defineProperty, h$1 = Object.getOwnPropertyDescriptor, r$3 = Object.getOwnPropertyNames, o$3 = Object.getOwnPropertySymbols, n$2 = Object.getPrototypeOf, a$1 = globalThis, c$1 = a$1.trustedTypes, l$1 = c$1 ? c$1.emptyScript : "", p$1 = a$1.reactiveElementPolyfillSupport, d$1 = function(t, s) {
|
|
465
462
|
return t;
|
|
466
463
|
}, u$1 = {
|
|
467
464
|
toAttribute: function toAttribute(t, s) {
|
|
@@ -496,25 +493,26 @@ var _Symbol, _a, _a1;
|
|
|
496
493
|
}
|
|
497
494
|
}, f$1 = function(t, s) {
|
|
498
495
|
return !i$2(t, s);
|
|
499
|
-
},
|
|
500
|
-
attribute:
|
|
496
|
+
}, b = {
|
|
497
|
+
attribute: true,
|
|
501
498
|
type: String,
|
|
502
499
|
converter: u$1,
|
|
503
|
-
reflect:
|
|
500
|
+
reflect: false,
|
|
501
|
+
useDefault: false,
|
|
504
502
|
hasChanged: f$1
|
|
505
503
|
};
|
|
506
504
|
var _metadata, _litPropertyMetadata;
|
|
507
505
|
(_metadata = (_Symbol = Symbol).metadata) !== null && _metadata !== void 0 ? _metadata : _Symbol.metadata = Symbol("metadata"), (_litPropertyMetadata = (_a = a$1).litPropertyMetadata) !== null && _litPropertyMetadata !== void 0 ? _litPropertyMetadata : _a.litPropertyMetadata = new WeakMap;
|
|
508
|
-
var
|
|
509
|
-
_inherits$2(
|
|
510
|
-
var _super = _create_super$2(
|
|
511
|
-
function
|
|
512
|
-
_class_call_check$2(this,
|
|
506
|
+
var y$1 = /*#__PURE__*/ function(HTMLElement1) {
|
|
507
|
+
_inherits$2(y, HTMLElement1);
|
|
508
|
+
var _super = _create_super$2(y);
|
|
509
|
+
function y() {
|
|
510
|
+
_class_call_check$2(this, y);
|
|
513
511
|
var _this;
|
|
514
|
-
_this = _super.call(this), _this._$Ep = void 0, _this.isUpdatePending =
|
|
512
|
+
_this = _super.call(this), _this._$Ep = void 0, _this.isUpdatePending = false, _this.hasUpdated = false, _this._$Em = null, _this._$Ev();
|
|
515
513
|
return _possible_constructor_return$2(_this);
|
|
516
514
|
}
|
|
517
|
-
_create_class$2(
|
|
515
|
+
_create_class$2(y, [
|
|
518
516
|
{
|
|
519
517
|
key: "_$Ev",
|
|
520
518
|
value: function _$Ev() {
|
|
@@ -582,7 +580,7 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
|
|
|
582
580
|
value: function connectedCallback() {
|
|
583
581
|
var _this__$EO;
|
|
584
582
|
var _this_renderRoot;
|
|
585
|
-
(_this_renderRoot = this.renderRoot) !== null && _this_renderRoot !== void 0 ? _this_renderRoot : this.renderRoot = this.createRenderRoot(), this.enableUpdating(
|
|
583
|
+
(_this_renderRoot = this.renderRoot) !== null && _this_renderRoot !== void 0 ? _this_renderRoot : this.renderRoot = this.createRenderRoot(), this.enableUpdating(true), (_this__$EO = this._$EO) === null || _this__$EO === void 0 ? void 0 : _this__$EO.forEach(function(t) {
|
|
586
584
|
var _t_hostConnected;
|
|
587
585
|
return (_t_hostConnected = t.hostConnected) === null || _t_hostConnected === void 0 ? void 0 : _t_hostConnected.call(t);
|
|
588
586
|
});
|
|
@@ -609,13 +607,13 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
|
|
|
609
607
|
}
|
|
610
608
|
},
|
|
611
609
|
{
|
|
612
|
-
key: "_$
|
|
613
|
-
value: function _$
|
|
610
|
+
key: "_$ET",
|
|
611
|
+
value: function _$ET(t, s) {
|
|
614
612
|
var i = this.constructor.elementProperties.get(t), e = this.constructor._$Eu(t, i);
|
|
615
|
-
if (void 0 !== e &&
|
|
613
|
+
if (void 0 !== e && true === i.reflect) {
|
|
616
614
|
var _i_converter;
|
|
617
|
-
var
|
|
618
|
-
this._$Em = t, null ==
|
|
615
|
+
var h = (void 0 !== ((_i_converter = i.converter) === null || _i_converter === void 0 ? void 0 : _i_converter.toAttribute) ? i.converter : u$1).toAttribute(s, i.type);
|
|
616
|
+
this._$Em = t, null == h ? this.removeAttribute(e) : this.setAttribute(e, h), this._$Em = null;
|
|
619
617
|
}
|
|
620
618
|
}
|
|
621
619
|
},
|
|
@@ -624,11 +622,14 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
|
|
|
624
622
|
value: function _$AK(t, s) {
|
|
625
623
|
var i = this.constructor, e = i._$Eh.get(t);
|
|
626
624
|
if (void 0 !== e && this._$Em !== e) {
|
|
627
|
-
var _t_converter;
|
|
628
|
-
var _$t = i.getPropertyOptions(e),
|
|
625
|
+
var _t_converter, _this__$Ej;
|
|
626
|
+
var _$t = i.getPropertyOptions(e), h = "function" == typeof _$t.converter ? {
|
|
629
627
|
fromAttribute: _$t.converter
|
|
630
628
|
} : void 0 !== ((_t_converter = _$t.converter) === null || _t_converter === void 0 ? void 0 : _t_converter.fromAttribute) ? _$t.converter : u$1;
|
|
631
|
-
this._$Em = e
|
|
629
|
+
this._$Em = e;
|
|
630
|
+
var r = h.fromAttribute(s, _$t.type);
|
|
631
|
+
var _ref;
|
|
632
|
+
this[e] = (_ref = r !== null && r !== void 0 ? r : (_this__$Ej = this._$Ej) === null || _this__$Ej === void 0 ? void 0 : _this__$Ej.get(e)) !== null && _ref !== void 0 ? _ref : r, this._$Em = null;
|
|
632
633
|
}
|
|
633
634
|
}
|
|
634
635
|
},
|
|
@@ -636,30 +637,33 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
|
|
|
636
637
|
key: "requestUpdate",
|
|
637
638
|
value: function requestUpdate(t, s, i) {
|
|
638
639
|
if (void 0 !== t) {
|
|
640
|
+
var _this__$Ej;
|
|
641
|
+
var e = this.constructor, h = this[t];
|
|
639
642
|
var _i_hasChanged;
|
|
640
|
-
if (i !== null && i !== void 0 ? i : i =
|
|
641
|
-
this.
|
|
643
|
+
if (i !== null && i !== void 0 ? i : i = e.getPropertyOptions(t), !(((_i_hasChanged = i.hasChanged) !== null && _i_hasChanged !== void 0 ? _i_hasChanged : f$1)(h, s) || i.useDefault && i.reflect && h === ((_this__$Ej = this._$Ej) === null || _this__$Ej === void 0 ? void 0 : _this__$Ej.get(t)) && !this.hasAttribute(e._$Eu(t, i)))) return;
|
|
644
|
+
this.C(t, s, i);
|
|
642
645
|
}
|
|
643
|
-
|
|
646
|
+
false === this.isUpdatePending && (this._$ES = this._$EP());
|
|
644
647
|
}
|
|
645
648
|
},
|
|
646
649
|
{
|
|
647
|
-
key: "
|
|
648
|
-
value: function
|
|
649
|
-
var
|
|
650
|
-
|
|
650
|
+
key: "C",
|
|
651
|
+
value: function C(t, s, param, r) {
|
|
652
|
+
var i = param.useDefault, e = param.reflect, h = param.wrapped;
|
|
653
|
+
var _this__$Ej, _ref, _this__$Eq;
|
|
654
|
+
i && !((_this__$Ej = this._$Ej) !== null && _this__$Ej !== void 0 ? _this__$Ej : this._$Ej = new Map).has(t) && (this._$Ej.set(t, (_ref = r !== null && r !== void 0 ? r : s) !== null && _ref !== void 0 ? _ref : this[t]), true !== h || void 0 !== r) || (this._$AL.has(t) || (this.hasUpdated || i || (s = void 0), this._$AL.set(t, s)), true === e && this._$Em !== t && ((_this__$Eq = this._$Eq) !== null && _this__$Eq !== void 0 ? _this__$Eq : this._$Eq = new Set).add(t));
|
|
651
655
|
}
|
|
652
656
|
},
|
|
653
657
|
{
|
|
654
|
-
key: "_$
|
|
655
|
-
value: function _$
|
|
658
|
+
key: "_$EP",
|
|
659
|
+
value: function _$EP() {
|
|
656
660
|
var _this = this;
|
|
657
661
|
return _async_to_generator(function() {
|
|
658
662
|
var t, _$t, _tmp;
|
|
659
663
|
return _ts_generator$1(this, function(_state) {
|
|
660
664
|
switch(_state.label){
|
|
661
665
|
case 0:
|
|
662
|
-
_this.isUpdatePending =
|
|
666
|
+
_this.isUpdatePending = true;
|
|
663
667
|
_state.label = 1;
|
|
664
668
|
case 1:
|
|
665
669
|
_state.trys.push([
|
|
@@ -749,7 +753,8 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
|
|
|
749
753
|
if (t1.size > 0) try {
|
|
750
754
|
for(var _iterator1 = t1[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
|
|
751
755
|
var _step_value1 = _sliced_to_array$2(_step1.value, 2), _$s1 = _step_value1[0], i = _step_value1[1];
|
|
752
|
-
|
|
756
|
+
var t2 = i.wrapped, e = this[_$s1];
|
|
757
|
+
!0 !== t2 || this._$AL.has(_$s1) || void 0 === e || this.C(_$s1, void 0, i, e);
|
|
753
758
|
}
|
|
754
759
|
} catch (err) {
|
|
755
760
|
_didIteratorError1 = true;
|
|
@@ -766,18 +771,18 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
|
|
|
766
771
|
}
|
|
767
772
|
}
|
|
768
773
|
}
|
|
769
|
-
var
|
|
774
|
+
var t3 = false;
|
|
770
775
|
var _$s2 = this._$AL;
|
|
771
776
|
try {
|
|
772
777
|
var _this__$EO;
|
|
773
|
-
|
|
778
|
+
t3 = this.shouldUpdate(_$s2), t3 ? (this.willUpdate(_$s2), (_this__$EO = this._$EO) === null || _this__$EO === void 0 ? void 0 : _this__$EO.forEach(function(t) {
|
|
774
779
|
var _t_hostUpdate;
|
|
775
780
|
return (_t_hostUpdate = t.hostUpdate) === null || _t_hostUpdate === void 0 ? void 0 : _t_hostUpdate.call(t);
|
|
776
|
-
}), this.update(_$s2)) : this._$
|
|
781
|
+
}), this.update(_$s2)) : this._$EM();
|
|
777
782
|
} catch (s) {
|
|
778
|
-
throw
|
|
783
|
+
throw t3 = false, this._$EM(), s;
|
|
779
784
|
}
|
|
780
|
-
|
|
785
|
+
t3 && this._$AE(_$s2);
|
|
781
786
|
}
|
|
782
787
|
},
|
|
783
788
|
{
|
|
@@ -791,13 +796,13 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
|
|
|
791
796
|
(_this__$EO = this._$EO) === null || _this__$EO === void 0 ? void 0 : _this__$EO.forEach(function(t) {
|
|
792
797
|
var _t_hostUpdated;
|
|
793
798
|
return (_t_hostUpdated = t.hostUpdated) === null || _t_hostUpdated === void 0 ? void 0 : _t_hostUpdated.call(t);
|
|
794
|
-
}), this.hasUpdated || (this.hasUpdated =
|
|
799
|
+
}), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t)), this.updated(t);
|
|
795
800
|
}
|
|
796
801
|
},
|
|
797
802
|
{
|
|
798
|
-
key: "_$
|
|
799
|
-
value: function _$
|
|
800
|
-
this._$AL = new Map, this.isUpdatePending =
|
|
803
|
+
key: "_$EM",
|
|
804
|
+
value: function _$EM() {
|
|
805
|
+
this._$AL = new Map, this.isUpdatePending = false;
|
|
801
806
|
}
|
|
802
807
|
},
|
|
803
808
|
{
|
|
@@ -815,16 +820,16 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
|
|
|
815
820
|
{
|
|
816
821
|
key: "shouldUpdate",
|
|
817
822
|
value: function shouldUpdate(t) {
|
|
818
|
-
return
|
|
823
|
+
return true;
|
|
819
824
|
}
|
|
820
825
|
},
|
|
821
826
|
{
|
|
822
827
|
key: "update",
|
|
823
828
|
value: function update(t) {
|
|
824
829
|
var _this = this;
|
|
825
|
-
this._$
|
|
826
|
-
return _this._$
|
|
827
|
-
})), this._$
|
|
830
|
+
this._$Eq && (this._$Eq = this._$Eq.forEach(function(t) {
|
|
831
|
+
return _this._$ET(t, _this[t]);
|
|
832
|
+
})), this._$EM();
|
|
828
833
|
}
|
|
829
834
|
},
|
|
830
835
|
{
|
|
@@ -852,35 +857,33 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
|
|
|
852
857
|
{
|
|
853
858
|
key: "createProperty",
|
|
854
859
|
value: function createProperty(t) {
|
|
855
|
-
var s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
856
|
-
if (s.state && (s.attribute =
|
|
857
|
-
var i = Symbol(),
|
|
858
|
-
void 0 !==
|
|
860
|
+
var s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : b;
|
|
861
|
+
if (s.state && (s.attribute = false), this._$Ei(), this.prototype.hasOwnProperty(t) && ((s = Object.create(s)).wrapped = true), this.elementProperties.set(t, s), !s.noAccessor) {
|
|
862
|
+
var i = Symbol(), h = this.getPropertyDescriptor(t, i, s);
|
|
863
|
+
void 0 !== h && e$1(this.prototype, t, h);
|
|
859
864
|
}
|
|
860
865
|
}
|
|
861
866
|
},
|
|
862
867
|
{
|
|
863
868
|
key: "getPropertyDescriptor",
|
|
864
869
|
value: function getPropertyDescriptor(t, s, i) {
|
|
865
|
-
var
|
|
866
|
-
var _ref = (
|
|
870
|
+
var _h;
|
|
871
|
+
var _ref = (_h = h$1(this.prototype, t)) !== null && _h !== void 0 ? _h : {
|
|
867
872
|
get: function get() {
|
|
868
873
|
return this[s];
|
|
869
874
|
},
|
|
870
875
|
set: function set(t) {
|
|
871
876
|
this[s] = t;
|
|
872
877
|
}
|
|
873
|
-
}, e = _ref.get,
|
|
878
|
+
}, e = _ref.get, r = _ref.set;
|
|
874
879
|
return {
|
|
875
|
-
get:
|
|
876
|
-
return e === null || e === void 0 ? void 0 : e.call(this);
|
|
877
|
-
},
|
|
880
|
+
get: e,
|
|
878
881
|
set: function set(s) {
|
|
879
|
-
var
|
|
880
|
-
|
|
882
|
+
var h = e === null || e === void 0 ? void 0 : e.call(this);
|
|
883
|
+
r === null || r === void 0 ? void 0 : r.call(this, s), this.requestUpdate(t, h, i);
|
|
881
884
|
},
|
|
882
|
-
configurable:
|
|
883
|
-
enumerable:
|
|
885
|
+
configurable: true,
|
|
886
|
+
enumerable: true
|
|
884
887
|
};
|
|
885
888
|
}
|
|
886
889
|
},
|
|
@@ -888,7 +891,7 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
|
|
|
888
891
|
key: "getPropertyOptions",
|
|
889
892
|
value: function getPropertyOptions(t) {
|
|
890
893
|
var _this_elementProperties_get;
|
|
891
|
-
return (_this_elementProperties_get = this.elementProperties.get(t)) !== null && _this_elementProperties_get !== void 0 ? _this_elementProperties_get :
|
|
894
|
+
return (_this_elementProperties_get = this.elementProperties.get(t)) !== null && _this_elementProperties_get !== void 0 ? _this_elementProperties_get : b;
|
|
892
895
|
}
|
|
893
896
|
},
|
|
894
897
|
{
|
|
@@ -903,8 +906,8 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
|
|
|
903
906
|
key: "finalize",
|
|
904
907
|
value: function finalize() {
|
|
905
908
|
if (this.hasOwnProperty(d$1("finalized"))) return;
|
|
906
|
-
if (this.finalized =
|
|
907
|
-
var t = this.properties, s = _to_consumable_array$9(
|
|
909
|
+
if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d$1("properties"))) {
|
|
910
|
+
var t = this.properties, s = _to_consumable_array$9(r$3(t)).concat(_to_consumable_array$9(o$3(t)));
|
|
908
911
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
909
912
|
try {
|
|
910
913
|
for(var _iterator = s[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
@@ -1009,18 +1012,18 @@ var b = /*#__PURE__*/ function(HTMLElement1) {
|
|
|
1009
1012
|
key: "_$Eu",
|
|
1010
1013
|
value: function _$Eu(t, s) {
|
|
1011
1014
|
var i = s.attribute;
|
|
1012
|
-
return
|
|
1015
|
+
return false === i ? void 0 : "string" == typeof i ? i : "string" == typeof t ? t.toLowerCase() : void 0;
|
|
1013
1016
|
}
|
|
1014
1017
|
}
|
|
1015
1018
|
]);
|
|
1016
|
-
return
|
|
1019
|
+
return y;
|
|
1017
1020
|
}(_wrap_native_super(HTMLElement));
|
|
1018
1021
|
var _reactiveElementVersions;
|
|
1019
|
-
|
|
1022
|
+
y$1.elementStyles = [], y$1.shadowRootOptions = {
|
|
1020
1023
|
mode: "open"
|
|
1021
|
-
},
|
|
1022
|
-
ReactiveElement:
|
|
1023
|
-
}), ((_reactiveElementVersions = (_a1 = a$1).reactiveElementVersions) !== null && _reactiveElementVersions !== void 0 ? _reactiveElementVersions : _a1.reactiveElementVersions = []).push("2.
|
|
1024
|
+
}, y$1[d$1("elementProperties")] = new Map, y$1[d$1("finalized")] = new Map, p$1 === null || p$1 === void 0 ? void 0 : p$1({
|
|
1025
|
+
ReactiveElement: y$1
|
|
1026
|
+
}), ((_reactiveElementVersions = (_a1 = a$1).reactiveElementVersions) !== null && _reactiveElementVersions !== void 0 ? _reactiveElementVersions : _a1.reactiveElementVersions = []).push("2.1.1");
|
|
1024
1027
|
|
|
1025
1028
|
/**
|
|
1026
1029
|
* @license
|
|
@@ -1115,7 +1118,7 @@ function _non_iterable_spread$8() {
|
|
|
1115
1118
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1116
1119
|
}
|
|
1117
1120
|
function _possible_constructor_return$1(self, call) {
|
|
1118
|
-
if (call && (_type_of$
|
|
1121
|
+
if (call && (_type_of$4(call) === "object" || typeof call === "function")) {
|
|
1119
1122
|
return call;
|
|
1120
1123
|
}
|
|
1121
1124
|
return _assert_this_initialized$1(self);
|
|
@@ -1133,7 +1136,7 @@ function _sliced_to_array$1(arr, i) {
|
|
|
1133
1136
|
function _to_consumable_array$8(arr) {
|
|
1134
1137
|
return _array_without_holes$8(arr) || _iterable_to_array$8(arr) || _unsupported_iterable_to_array$9(arr) || _non_iterable_spread$8();
|
|
1135
1138
|
}
|
|
1136
|
-
function _type_of$
|
|
1139
|
+
function _type_of$4(obj) {
|
|
1137
1140
|
"@swc/helpers - typeof";
|
|
1138
1141
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
1139
1142
|
}
|
|
@@ -1170,17 +1173,17 @@ function _create_super$1(Derived) {
|
|
|
1170
1173
|
};
|
|
1171
1174
|
}
|
|
1172
1175
|
var _t;
|
|
1173
|
-
var t$1 = globalThis, i$1 = t$1.trustedTypes, s = i$1 ? i$1.createPolicy("lit-html", {
|
|
1176
|
+
var t$1 = globalThis, i$1 = t$1.trustedTypes, s$1 = i$1 ? i$1.createPolicy("lit-html", {
|
|
1174
1177
|
createHTML: function(t) {
|
|
1175
1178
|
return t;
|
|
1176
1179
|
}
|
|
1177
|
-
}) : void 0, e = "$lit$", h = "lit$".concat(Math.random().toFixed(9).slice(2), "$"), o$
|
|
1178
|
-
return r$
|
|
1180
|
+
}) : void 0, e = "$lit$", h = "lit$".concat(Math.random().toFixed(9).slice(2), "$"), o$2 = "?" + h, n$1 = "<".concat(o$2, ">"), r$2 = document, l = function() {
|
|
1181
|
+
return r$2.createComment("");
|
|
1179
1182
|
}, c = function(t) {
|
|
1180
|
-
return null === t || "object" != typeof t && "function" != typeof t;
|
|
1183
|
+
return null === t || "object" != (typeof t === "undefined" ? "undefined" : _type_of$4(t)) && "function" != typeof t;
|
|
1181
1184
|
}, a = Array.isArray, u = function(t) {
|
|
1182
1185
|
return a(t) || "function" == typeof (t === null || t === void 0 ? void 0 : t[Symbol.iterator]);
|
|
1183
|
-
}, d = "[
|
|
1186
|
+
}, d = "[ \t\n\f\r]", f = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, v = /-->/g, _ = />/g, m = RegExp(">|".concat(d, "(?:([^\\s\"'>=/]+)(").concat(d, "*=").concat(d, "*(?:[^ \n\f\r\"'`<>=]|(\"|')|))|$)"), "g"), p = /'/g, g = /"/g, $ = /^(?:script|style|textarea|title)$/i, y = function(t) {
|
|
1184
1187
|
return function(i) {
|
|
1185
1188
|
for(var _len = arguments.length, s = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){
|
|
1186
1189
|
s[_key - 1] = arguments[_key];
|
|
@@ -1191,10 +1194,10 @@ var t$1 = globalThis, i$1 = t$1.trustedTypes, s = i$1 ? i$1.createPolicy("lit-ht
|
|
|
1191
1194
|
values: s
|
|
1192
1195
|
};
|
|
1193
1196
|
};
|
|
1194
|
-
}, x = y(1), T = Symbol.for("lit-noChange"), E = Symbol.for("lit-nothing"), A = new WeakMap, C = r$
|
|
1197
|
+
}, x = y(1), T = Symbol.for("lit-noChange"), E = Symbol.for("lit-nothing"), A = new WeakMap, C = r$2.createTreeWalker(r$2, 129);
|
|
1195
1198
|
function P(t, i) {
|
|
1196
1199
|
if (!a(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
1197
|
-
return void 0 !== s ? s.createHTML(i) : i;
|
|
1200
|
+
return void 0 !== s$1 ? s$1.createHTML(i) : i;
|
|
1198
1201
|
}
|
|
1199
1202
|
var V = function(t, i) {
|
|
1200
1203
|
var s = t.length - 1, o = [];
|
|
@@ -1269,7 +1272,7 @@ var N = /*#__PURE__*/ function() {
|
|
|
1269
1272
|
r.append(t3[s2], l());
|
|
1270
1273
|
}
|
|
1271
1274
|
}
|
|
1272
|
-
} else if (8 === r.nodeType) if (r.data === o$
|
|
1275
|
+
} else if (8 === r.nodeType) if (r.data === o$2) d.push({
|
|
1273
1276
|
type: 2,
|
|
1274
1277
|
index: c
|
|
1275
1278
|
});
|
|
@@ -1287,7 +1290,7 @@ var N = /*#__PURE__*/ function() {
|
|
|
1287
1290
|
{
|
|
1288
1291
|
key: "createElement",
|
|
1289
1292
|
value: function createElement(t, i) {
|
|
1290
|
-
var s = r$
|
|
1293
|
+
var s = r$2.createElement("template");
|
|
1291
1294
|
return s.innerHTML = t, s;
|
|
1292
1295
|
}
|
|
1293
1296
|
}
|
|
@@ -1302,7 +1305,7 @@ function S(t, i) {
|
|
|
1302
1305
|
var h = void 0 !== e ? (_s__$Co = s._$Co) === null || _s__$Co === void 0 ? void 0 : _s__$Co[e] : s._$Cl;
|
|
1303
1306
|
var o = c(i) ? void 0 : i._$litDirective$;
|
|
1304
1307
|
var __$Co;
|
|
1305
|
-
return (h === null || h === void 0 ? void 0 : h.constructor) !== o && (h === null || h === void 0 ? void 0 : (_h__$AO = h._$AO) === null || _h__$AO === void 0 ? void 0 : _h__$AO.call(h,
|
|
1308
|
+
return (h === null || h === void 0 ? void 0 : h.constructor) !== o && (h === null || h === void 0 ? void 0 : (_h__$AO = h._$AO) === null || _h__$AO === void 0 ? void 0 : _h__$AO.call(h, false), void 0 === o ? h = void 0 : (h = new o(t), h._$AT(t, s, e)), void 0 !== e ? ((__$Co = (_s = s)._$Co) !== null && __$Co !== void 0 ? __$Co : _s._$Co = [])[e] = h : s._$Cl = h), void 0 !== h && (i = S(t, h._$AS(t, i.values), h, e)), i;
|
|
1306
1309
|
}
|
|
1307
1310
|
var M = /*#__PURE__*/ function() {
|
|
1308
1311
|
function M(t, i) {
|
|
@@ -1326,7 +1329,7 @@ var M = /*#__PURE__*/ function() {
|
|
|
1326
1329
|
key: "u",
|
|
1327
1330
|
value: function u(t) {
|
|
1328
1331
|
var _t_creationScope;
|
|
1329
|
-
var _this__$AD = this._$AD, _this__$AD_el = _this__$AD.el, i = _this__$AD_el.content, s = _this__$AD.parts, e = ((_t_creationScope = t === null || t === void 0 ? void 0 : t.creationScope) !== null && _t_creationScope !== void 0 ? _t_creationScope : r$
|
|
1332
|
+
var _this__$AD = this._$AD, _this__$AD_el = _this__$AD.el, i = _this__$AD_el.content, s = _this__$AD.parts, e = ((_t_creationScope = t === null || t === void 0 ? void 0 : t.creationScope) !== null && _t_creationScope !== void 0 ? _t_creationScope : r$2).importNode(i, true);
|
|
1330
1333
|
C.currentNode = e;
|
|
1331
1334
|
var h = C.nextNode(), o = 0, n = 0, l = s[0];
|
|
1332
1335
|
for(; void 0 !== l;){
|
|
@@ -1336,7 +1339,7 @@ var M = /*#__PURE__*/ function() {
|
|
|
1336
1339
|
}
|
|
1337
1340
|
o !== (l === null || l === void 0 ? void 0 : l.index) && (h = C.nextNode(), o++);
|
|
1338
1341
|
}
|
|
1339
|
-
return C.currentNode = r$
|
|
1342
|
+
return C.currentNode = r$2, e;
|
|
1340
1343
|
}
|
|
1341
1344
|
},
|
|
1342
1345
|
{
|
|
@@ -1372,7 +1375,7 @@ var R = /*#__PURE__*/ function() {
|
|
|
1372
1375
|
function R(t, i, s, e) {
|
|
1373
1376
|
_class_call_check$1(this, R);
|
|
1374
1377
|
var _e_isConnected;
|
|
1375
|
-
this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = t, this._$AB = i, this._$AM = s, this.options = e, this._$Cv = (_e_isConnected = e === null || e === void 0 ? void 0 : e.isConnected) !== null && _e_isConnected !== void 0 ? _e_isConnected :
|
|
1378
|
+
this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = t, this._$AB = i, this._$AM = s, this.options = e, this._$Cv = (_e_isConnected = e === null || e === void 0 ? void 0 : e.isConnected) !== null && _e_isConnected !== void 0 ? _e_isConnected : true;
|
|
1376
1379
|
}
|
|
1377
1380
|
_create_class$1(R, [
|
|
1378
1381
|
{
|
|
@@ -1425,7 +1428,7 @@ var R = /*#__PURE__*/ function() {
|
|
|
1425
1428
|
{
|
|
1426
1429
|
key: "_",
|
|
1427
1430
|
value: function _(t) {
|
|
1428
|
-
this._$AH !== E && c(this._$AH) ? this._$AA.nextSibling.data = t : this.T(r$
|
|
1431
|
+
this._$AH !== E && c(this._$AH) ? this._$AA.nextSibling.data = t : this.T(r$2.createTextNode(t)), this._$AH = t;
|
|
1429
1432
|
}
|
|
1430
1433
|
},
|
|
1431
1434
|
{
|
|
@@ -1481,7 +1484,7 @@ var R = /*#__PURE__*/ function() {
|
|
|
1481
1484
|
value: function _$AR() {
|
|
1482
1485
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this._$AA.nextSibling, i = arguments.length > 1 ? arguments[1] : void 0;
|
|
1483
1486
|
var _this__$AP, _this;
|
|
1484
|
-
for((_this__$AP = (_this = this)._$AP) === null || _this__$AP === void 0 ? void 0 : _this__$AP.call(_this,
|
|
1487
|
+
for((_this__$AP = (_this = this)._$AP) === null || _this__$AP === void 0 ? void 0 : _this__$AP.call(_this, false, true, i); t !== this._$AB;){
|
|
1485
1488
|
var i1 = t.nextSibling;
|
|
1486
1489
|
t.remove(), t = i1;
|
|
1487
1490
|
}
|
|
@@ -1520,7 +1523,7 @@ var k = /*#__PURE__*/ function() {
|
|
|
1520
1523
|
value: function _$AI(t) {
|
|
1521
1524
|
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this, s = arguments.length > 2 ? arguments[2] : void 0, e = arguments.length > 3 ? arguments[3] : void 0;
|
|
1522
1525
|
var h = this.strings;
|
|
1523
|
-
var o =
|
|
1526
|
+
var o = false;
|
|
1524
1527
|
if (void 0 === h) t = S(this, t, i, 0), o = !c(t) || t !== this._$AH && t !== T, o && (this._$AH = t);
|
|
1525
1528
|
else {
|
|
1526
1529
|
var e1 = t;
|
|
@@ -1635,7 +1638,7 @@ var z = /*#__PURE__*/ function() {
|
|
|
1635
1638
|
}();
|
|
1636
1639
|
var j = t$1.litHtmlPolyfillSupport;
|
|
1637
1640
|
var _litHtmlVersions;
|
|
1638
|
-
j === null || j === void 0 ? void 0 : j(N, R), ((_litHtmlVersions = (_t = t$1).litHtmlVersions) !== null && _litHtmlVersions !== void 0 ? _litHtmlVersions : _t.litHtmlVersions = []).push("3.
|
|
1641
|
+
j === null || j === void 0 ? void 0 : j(N, R), ((_litHtmlVersions = (_t = t$1).litHtmlVersions) !== null && _litHtmlVersions !== void 0 ? _litHtmlVersions : _t.litHtmlVersions = []).push("3.3.1");
|
|
1639
1642
|
var B = function(t, i, s) {
|
|
1640
1643
|
var _s_renderBefore;
|
|
1641
1644
|
var e = (_s_renderBefore = s === null || s === void 0 ? void 0 : s.renderBefore) !== null && _s_renderBefore !== void 0 ? _s_renderBefore : i;
|
|
@@ -1670,7 +1673,6 @@ function _defineProperties(target, props) {
|
|
|
1670
1673
|
}
|
|
1671
1674
|
function _create_class(Constructor, protoProps, staticProps) {
|
|
1672
1675
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
1673
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
1674
1676
|
return Constructor;
|
|
1675
1677
|
}
|
|
1676
1678
|
function _get(target, property, receiver) {
|
|
@@ -1709,7 +1711,7 @@ function _inherits(subClass, superClass) {
|
|
|
1709
1711
|
if (superClass) _set_prototype_of(subClass, superClass);
|
|
1710
1712
|
}
|
|
1711
1713
|
function _possible_constructor_return(self, call) {
|
|
1712
|
-
if (call && (_type_of$
|
|
1714
|
+
if (call && (_type_of$3(call) === "object" || typeof call === "function")) {
|
|
1713
1715
|
return call;
|
|
1714
1716
|
}
|
|
1715
1717
|
return _assert_this_initialized(self);
|
|
@@ -1728,7 +1730,7 @@ function _super_prop_base(object, property) {
|
|
|
1728
1730
|
}
|
|
1729
1731
|
return object;
|
|
1730
1732
|
}
|
|
1731
|
-
function _type_of$
|
|
1733
|
+
function _type_of$3(obj) {
|
|
1732
1734
|
"@swc/helpers - typeof";
|
|
1733
1735
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
1734
1736
|
}
|
|
@@ -1756,17 +1758,18 @@ function _create_super(Derived) {
|
|
|
1756
1758
|
return _possible_constructor_return(this, result);
|
|
1757
1759
|
};
|
|
1758
1760
|
}
|
|
1759
|
-
var
|
|
1760
|
-
var
|
|
1761
|
+
var _s_litElementHydrateSupport;
|
|
1762
|
+
var _s;
|
|
1761
1763
|
/**
|
|
1762
1764
|
* @license
|
|
1763
1765
|
* Copyright 2017 Google LLC
|
|
1764
1766
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1765
|
-
*/ var
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1767
|
+
*/ var s = globalThis;
|
|
1768
|
+
var i = /*#__PURE__*/ function(t) {
|
|
1769
|
+
_inherits(i, t);
|
|
1770
|
+
var _super = _create_super(i);
|
|
1771
|
+
function i() {
|
|
1772
|
+
_class_call_check(this, i);
|
|
1770
1773
|
var _this;
|
|
1771
1774
|
_this = _super.call.apply(_super, [
|
|
1772
1775
|
this
|
|
@@ -1775,12 +1778,12 @@ var _globalThis1;
|
|
|
1775
1778
|
}, _this._$Do = void 0;
|
|
1776
1779
|
return _possible_constructor_return(_this);
|
|
1777
1780
|
}
|
|
1778
|
-
_create_class(
|
|
1781
|
+
_create_class(i, [
|
|
1779
1782
|
{
|
|
1780
1783
|
key: "createRenderRoot",
|
|
1781
1784
|
value: function createRenderRoot() {
|
|
1782
1785
|
var _this_renderOptions;
|
|
1783
|
-
var _$t = _get(_get_prototype_of(
|
|
1786
|
+
var _$t = _get(_get_prototype_of(i.prototype), "createRenderRoot", this).call(this);
|
|
1784
1787
|
var _renderBefore;
|
|
1785
1788
|
return (_renderBefore = (_this_renderOptions = this.renderOptions).renderBefore) !== null && _renderBefore !== void 0 ? _renderBefore : _this_renderOptions.renderBefore = _$t.firstChild, _$t;
|
|
1786
1789
|
}
|
|
@@ -1788,22 +1791,22 @@ var _globalThis1;
|
|
|
1788
1791
|
{
|
|
1789
1792
|
key: "update",
|
|
1790
1793
|
value: function update(t) {
|
|
1791
|
-
var
|
|
1792
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), _get(_get_prototype_of(
|
|
1794
|
+
var r = this.render();
|
|
1795
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), _get(_get_prototype_of(i.prototype), "update", this).call(this, t), this._$Do = B(r, this.renderRoot, this.renderOptions);
|
|
1793
1796
|
}
|
|
1794
1797
|
},
|
|
1795
1798
|
{
|
|
1796
1799
|
key: "connectedCallback",
|
|
1797
1800
|
value: function connectedCallback() {
|
|
1798
1801
|
var _this__$Do;
|
|
1799
|
-
_get(_get_prototype_of(
|
|
1802
|
+
_get(_get_prototype_of(i.prototype), "connectedCallback", this).call(this), (_this__$Do = this._$Do) === null || _this__$Do === void 0 ? void 0 : _this__$Do.setConnected(true);
|
|
1800
1803
|
}
|
|
1801
1804
|
},
|
|
1802
1805
|
{
|
|
1803
1806
|
key: "disconnectedCallback",
|
|
1804
1807
|
value: function disconnectedCallback() {
|
|
1805
1808
|
var _this__$Do;
|
|
1806
|
-
_get(_get_prototype_of(
|
|
1809
|
+
_get(_get_prototype_of(i.prototype), "disconnectedCallback", this).call(this), (_this__$Do = this._$Do) === null || _this__$Do === void 0 ? void 0 : _this__$Do.setConnected(false);
|
|
1807
1810
|
}
|
|
1808
1811
|
},
|
|
1809
1812
|
{
|
|
@@ -1813,17 +1816,17 @@ var _globalThis1;
|
|
|
1813
1816
|
}
|
|
1814
1817
|
}
|
|
1815
1818
|
]);
|
|
1816
|
-
return
|
|
1817
|
-
}(
|
|
1818
|
-
|
|
1819
|
-
LitElement:
|
|
1819
|
+
return i;
|
|
1820
|
+
}(y$1);
|
|
1821
|
+
i._$litElement$ = true, i["finalized"] = true, (_s_litElementHydrateSupport = s.litElementHydrateSupport) === null || _s_litElementHydrateSupport === void 0 ? void 0 : _s_litElementHydrateSupport.call(s, {
|
|
1822
|
+
LitElement: i
|
|
1820
1823
|
});
|
|
1821
|
-
var
|
|
1822
|
-
|
|
1823
|
-
LitElement:
|
|
1824
|
+
var o$1 = s.litElementPolyfillSupport;
|
|
1825
|
+
o$1 === null || o$1 === void 0 ? void 0 : o$1({
|
|
1826
|
+
LitElement: i
|
|
1824
1827
|
});
|
|
1825
1828
|
var _litElementVersions;
|
|
1826
|
-
((_litElementVersions = (
|
|
1829
|
+
((_litElementVersions = (_s = s).litElementVersions) !== null && _litElementVersions !== void 0 ? _litElementVersions : _s.litElementVersions = []).push("4.2.1");
|
|
1827
1830
|
|
|
1828
1831
|
/**
|
|
1829
1832
|
* @license
|
|
@@ -1837,73 +1840,25 @@ var _litElementVersions;
|
|
|
1837
1840
|
};
|
|
1838
1841
|
};
|
|
1839
1842
|
|
|
1840
|
-
function
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
value: value,
|
|
1844
|
-
enumerable: true,
|
|
1845
|
-
configurable: true,
|
|
1846
|
-
writable: true
|
|
1847
|
-
});
|
|
1848
|
-
} else {
|
|
1849
|
-
obj[key] = value;
|
|
1850
|
-
}
|
|
1851
|
-
return obj;
|
|
1852
|
-
}
|
|
1853
|
-
function _object_spread$1(target) {
|
|
1854
|
-
for(var i = 1; i < arguments.length; i++){
|
|
1855
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
1856
|
-
var ownKeys = Object.keys(source);
|
|
1857
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
1858
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
1859
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
1860
|
-
}));
|
|
1861
|
-
}
|
|
1862
|
-
ownKeys.forEach(function(key) {
|
|
1863
|
-
_define_property$2(target, key, source[key]);
|
|
1864
|
-
});
|
|
1865
|
-
}
|
|
1866
|
-
return target;
|
|
1867
|
-
}
|
|
1868
|
-
function ownKeys$1(object, enumerableOnly) {
|
|
1869
|
-
var keys = Object.keys(object);
|
|
1870
|
-
if (Object.getOwnPropertySymbols) {
|
|
1871
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
1872
|
-
if (enumerableOnly) {
|
|
1873
|
-
symbols = symbols.filter(function(sym) {
|
|
1874
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
1875
|
-
});
|
|
1876
|
-
}
|
|
1877
|
-
keys.push.apply(keys, symbols);
|
|
1878
|
-
}
|
|
1879
|
-
return keys;
|
|
1880
|
-
}
|
|
1881
|
-
function _object_spread_props$1(target, source) {
|
|
1882
|
-
source = source != null ? source : {};
|
|
1883
|
-
if (Object.getOwnPropertyDescriptors) {
|
|
1884
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
1885
|
-
} else {
|
|
1886
|
-
ownKeys$1(Object(source)).forEach(function(key) {
|
|
1887
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
1888
|
-
});
|
|
1889
|
-
}
|
|
1890
|
-
return target;
|
|
1843
|
+
function _type_of$2(obj) {
|
|
1844
|
+
"@swc/helpers - typeof";
|
|
1845
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
1891
1846
|
}
|
|
1892
1847
|
/**
|
|
1893
1848
|
* @license
|
|
1894
1849
|
* Copyright 2017 Google LLC
|
|
1895
1850
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1896
1851
|
*/ var o = {
|
|
1897
|
-
attribute:
|
|
1852
|
+
attribute: true,
|
|
1898
1853
|
type: String,
|
|
1899
1854
|
converter: u$1,
|
|
1900
|
-
reflect:
|
|
1855
|
+
reflect: false,
|
|
1901
1856
|
hasChanged: f$1
|
|
1902
1857
|
}, r$1 = function() {
|
|
1903
1858
|
var _$t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : o, _$e = arguments.length > 1 ? arguments[1] : void 0, r = arguments.length > 2 ? arguments[2] : void 0;
|
|
1904
1859
|
var n = r.kind, i = r.metadata;
|
|
1905
1860
|
var s = globalThis.litPropertyMetadata.get(i);
|
|
1906
|
-
if (void 0 === s && globalThis.litPropertyMetadata.set(i, s = new Map), s.set(r.name, _$t), "accessor" === n) {
|
|
1861
|
+
if (void 0 === s && globalThis.litPropertyMetadata.set(i, s = new Map), "setter" === n && ((_$t = Object.create(_$t)).wrapped = true), s.set(r.name, _$t), "accessor" === n) {
|
|
1907
1862
|
var o1 = r.name;
|
|
1908
1863
|
return {
|
|
1909
1864
|
set: function set(r) {
|
|
@@ -1911,7 +1866,7 @@ function _object_spread_props$1(target, source) {
|
|
|
1911
1866
|
_$e.set.call(this, r), this.requestUpdate(o1, n, _$t);
|
|
1912
1867
|
},
|
|
1913
1868
|
init: function init(e) {
|
|
1914
|
-
return void 0 !== e && this.
|
|
1869
|
+
return void 0 !== e && this.C(o1, void 0, _$t, e), e;
|
|
1915
1870
|
}
|
|
1916
1871
|
};
|
|
1917
1872
|
}
|
|
@@ -1926,11 +1881,9 @@ function _object_spread_props$1(target, source) {
|
|
|
1926
1881
|
};
|
|
1927
1882
|
function n(t) {
|
|
1928
1883
|
return function(e, o) {
|
|
1929
|
-
return "object" == typeof o ? r$1(t, e, o) : function(t, e, o) {
|
|
1884
|
+
return "object" == (typeof o === "undefined" ? "undefined" : _type_of$2(o)) ? r$1(t, e, o) : function(t, e, o) {
|
|
1930
1885
|
var r = e.hasOwnProperty(o);
|
|
1931
|
-
return e.constructor.createProperty(o, r ?
|
|
1932
|
-
wrapped: !0
|
|
1933
|
-
}) : t), r ? Object.getOwnPropertyDescriptor(e, o) : void 0;
|
|
1886
|
+
return e.constructor.createProperty(o, t), r ? Object.getOwnPropertyDescriptor(e, o) : void 0;
|
|
1934
1887
|
}(t, e, o);
|
|
1935
1888
|
};
|
|
1936
1889
|
}
|
|
@@ -1967,11 +1920,6 @@ function ownKeys(object, enumerableOnly) {
|
|
|
1967
1920
|
var keys = Object.keys(object);
|
|
1968
1921
|
if (Object.getOwnPropertySymbols) {
|
|
1969
1922
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
1970
|
-
if (enumerableOnly) {
|
|
1971
|
-
symbols = symbols.filter(function(sym) {
|
|
1972
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
1973
|
-
});
|
|
1974
|
-
}
|
|
1975
1923
|
keys.push.apply(keys, symbols);
|
|
1976
1924
|
}
|
|
1977
1925
|
return keys;
|
|
@@ -1993,18 +1941,54 @@ function _object_spread_props(target, source) {
|
|
|
1993
1941
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1994
1942
|
*/ function r(r) {
|
|
1995
1943
|
return n(_object_spread_props(_object_spread({}, r), {
|
|
1996
|
-
state:
|
|
1997
|
-
attribute:
|
|
1944
|
+
state: true,
|
|
1945
|
+
attribute: false
|
|
1998
1946
|
}));
|
|
1999
1947
|
}
|
|
2000
1948
|
|
|
2001
|
-
class InputFileElement extends
|
|
1949
|
+
class InputFileElement extends i {
|
|
2002
1950
|
get content() {
|
|
2003
1951
|
return this._content;
|
|
2004
1952
|
}
|
|
2005
1953
|
get value() {
|
|
2006
1954
|
return this._value;
|
|
2007
1955
|
}
|
|
1956
|
+
static{
|
|
1957
|
+
this.styles = i$3`
|
|
1958
|
+
.download {
|
|
1959
|
+
padding: 10px 15px;
|
|
1960
|
+
margin-bottom: 10px;
|
|
1961
|
+
line-height: 1.4;
|
|
1962
|
+
border: 1px solid var(--digipair-color-primary, #52dfdb);
|
|
1963
|
+
color: var(--digipair-color-primary, #52dfdb);
|
|
1964
|
+
align-self: flex-start;
|
|
1965
|
+
margin-right: auto;
|
|
1966
|
+
text-align: center;
|
|
1967
|
+
}
|
|
1968
|
+
|
|
1969
|
+
.download ui5-icon {
|
|
1970
|
+
color: var(--digipair-color-secondary, #52dfdb);
|
|
1971
|
+
}
|
|
1972
|
+
|
|
1973
|
+
.download.unloaded ui5-icon {
|
|
1974
|
+
color: var(--digipair-color-primary, #52dfdb);
|
|
1975
|
+
}
|
|
1976
|
+
|
|
1977
|
+
.download p {
|
|
1978
|
+
text-align: center;
|
|
1979
|
+
font-size: 12px;
|
|
1980
|
+
margin: 0;
|
|
1981
|
+
}
|
|
1982
|
+
|
|
1983
|
+
.download.unloaded {
|
|
1984
|
+
cursor: pointer;
|
|
1985
|
+
}
|
|
1986
|
+
|
|
1987
|
+
.download.loaded ui5-icon {
|
|
1988
|
+
float: left;
|
|
1989
|
+
}
|
|
1990
|
+
`;
|
|
1991
|
+
}
|
|
2008
1992
|
loadFile() {
|
|
2009
1993
|
const input = document.createElement('input');
|
|
2010
1994
|
input.type = 'file';
|
|
@@ -2054,7 +2038,37 @@ class InputFileElement extends r$2 {
|
|
|
2054
2038
|
this._value = '';
|
|
2055
2039
|
}
|
|
2056
2040
|
}
|
|
2057
|
-
|
|
2041
|
+
__decorate([
|
|
2042
|
+
n()
|
|
2043
|
+
], InputFileElement.prototype, "label", void 0);
|
|
2044
|
+
__decorate([
|
|
2045
|
+
n()
|
|
2046
|
+
], InputFileElement.prototype, "accept", void 0);
|
|
2047
|
+
__decorate([
|
|
2048
|
+
n()
|
|
2049
|
+
], InputFileElement.prototype, "multiple", void 0);
|
|
2050
|
+
__decorate([
|
|
2051
|
+
n()
|
|
2052
|
+
], InputFileElement.prototype, "required", void 0);
|
|
2053
|
+
__decorate([
|
|
2054
|
+
r()
|
|
2055
|
+
], InputFileElement.prototype, "state", void 0);
|
|
2056
|
+
__decorate([
|
|
2057
|
+
r()
|
|
2058
|
+
], InputFileElement.prototype, "_content", void 0);
|
|
2059
|
+
InputFileElement = __decorate([
|
|
2060
|
+
t('digipair-input-file')
|
|
2061
|
+
], InputFileElement);
|
|
2062
|
+
|
|
2063
|
+
class InputJsonElement extends i {
|
|
2064
|
+
get content() {
|
|
2065
|
+
return this._content;
|
|
2066
|
+
}
|
|
2067
|
+
get value() {
|
|
2068
|
+
return this._value;
|
|
2069
|
+
}
|
|
2070
|
+
static{
|
|
2071
|
+
this.styles = i$3`
|
|
2058
2072
|
.download {
|
|
2059
2073
|
padding: 10px 15px;
|
|
2060
2074
|
margin-bottom: 10px;
|
|
@@ -2088,34 +2102,6 @@ InputFileElement.styles = i$3`
|
|
|
2088
2102
|
float: left;
|
|
2089
2103
|
}
|
|
2090
2104
|
`;
|
|
2091
|
-
__decorate([
|
|
2092
|
-
n()
|
|
2093
|
-
], InputFileElement.prototype, "label", void 0);
|
|
2094
|
-
__decorate([
|
|
2095
|
-
n()
|
|
2096
|
-
], InputFileElement.prototype, "accept", void 0);
|
|
2097
|
-
__decorate([
|
|
2098
|
-
n()
|
|
2099
|
-
], InputFileElement.prototype, "multiple", void 0);
|
|
2100
|
-
__decorate([
|
|
2101
|
-
n()
|
|
2102
|
-
], InputFileElement.prototype, "required", void 0);
|
|
2103
|
-
__decorate([
|
|
2104
|
-
r()
|
|
2105
|
-
], InputFileElement.prototype, "state", void 0);
|
|
2106
|
-
__decorate([
|
|
2107
|
-
r()
|
|
2108
|
-
], InputFileElement.prototype, "_content", void 0);
|
|
2109
|
-
InputFileElement = __decorate([
|
|
2110
|
-
t('digipair-input-file')
|
|
2111
|
-
], InputFileElement);
|
|
2112
|
-
|
|
2113
|
-
class InputJsonElement extends r$2 {
|
|
2114
|
-
get content() {
|
|
2115
|
-
return this._content;
|
|
2116
|
-
}
|
|
2117
|
-
get value() {
|
|
2118
|
-
return this._value;
|
|
2119
2105
|
}
|
|
2120
2106
|
loadFile() {
|
|
2121
2107
|
const input = document.createElement('input');
|
|
@@ -2166,7 +2152,37 @@ class InputJsonElement extends r$2 {
|
|
|
2166
2152
|
this._value = '';
|
|
2167
2153
|
}
|
|
2168
2154
|
}
|
|
2169
|
-
|
|
2155
|
+
__decorate([
|
|
2156
|
+
n()
|
|
2157
|
+
], InputJsonElement.prototype, "label", void 0);
|
|
2158
|
+
__decorate([
|
|
2159
|
+
n()
|
|
2160
|
+
], InputJsonElement.prototype, "accept", void 0);
|
|
2161
|
+
__decorate([
|
|
2162
|
+
n()
|
|
2163
|
+
], InputJsonElement.prototype, "multiple", void 0);
|
|
2164
|
+
__decorate([
|
|
2165
|
+
n()
|
|
2166
|
+
], InputJsonElement.prototype, "required", void 0);
|
|
2167
|
+
__decorate([
|
|
2168
|
+
r()
|
|
2169
|
+
], InputJsonElement.prototype, "state", void 0);
|
|
2170
|
+
__decorate([
|
|
2171
|
+
r()
|
|
2172
|
+
], InputJsonElement.prototype, "_content", void 0);
|
|
2173
|
+
InputJsonElement = __decorate([
|
|
2174
|
+
t('digipair-input-json')
|
|
2175
|
+
], InputJsonElement);
|
|
2176
|
+
|
|
2177
|
+
class InputTextElement extends i {
|
|
2178
|
+
get content() {
|
|
2179
|
+
return this._content;
|
|
2180
|
+
}
|
|
2181
|
+
get value() {
|
|
2182
|
+
return this._value;
|
|
2183
|
+
}
|
|
2184
|
+
static{
|
|
2185
|
+
this.styles = i$3`
|
|
2170
2186
|
.download {
|
|
2171
2187
|
padding: 10px 15px;
|
|
2172
2188
|
margin-bottom: 10px;
|
|
@@ -2200,34 +2216,6 @@ InputJsonElement.styles = i$3`
|
|
|
2200
2216
|
float: left;
|
|
2201
2217
|
}
|
|
2202
2218
|
`;
|
|
2203
|
-
__decorate([
|
|
2204
|
-
n()
|
|
2205
|
-
], InputJsonElement.prototype, "label", void 0);
|
|
2206
|
-
__decorate([
|
|
2207
|
-
n()
|
|
2208
|
-
], InputJsonElement.prototype, "accept", void 0);
|
|
2209
|
-
__decorate([
|
|
2210
|
-
n()
|
|
2211
|
-
], InputJsonElement.prototype, "multiple", void 0);
|
|
2212
|
-
__decorate([
|
|
2213
|
-
n()
|
|
2214
|
-
], InputJsonElement.prototype, "required", void 0);
|
|
2215
|
-
__decorate([
|
|
2216
|
-
r()
|
|
2217
|
-
], InputJsonElement.prototype, "state", void 0);
|
|
2218
|
-
__decorate([
|
|
2219
|
-
r()
|
|
2220
|
-
], InputJsonElement.prototype, "_content", void 0);
|
|
2221
|
-
InputJsonElement = __decorate([
|
|
2222
|
-
t('digipair-input-json')
|
|
2223
|
-
], InputJsonElement);
|
|
2224
|
-
|
|
2225
|
-
class InputTextElement extends r$2 {
|
|
2226
|
-
get content() {
|
|
2227
|
-
return this._content;
|
|
2228
|
-
}
|
|
2229
|
-
get value() {
|
|
2230
|
-
return this._value;
|
|
2231
2219
|
}
|
|
2232
2220
|
loadFile() {
|
|
2233
2221
|
const input = document.createElement('input');
|
|
@@ -2278,40 +2266,6 @@ class InputTextElement extends r$2 {
|
|
|
2278
2266
|
this._value = '';
|
|
2279
2267
|
}
|
|
2280
2268
|
}
|
|
2281
|
-
InputTextElement.styles = i$3`
|
|
2282
|
-
.download {
|
|
2283
|
-
padding: 10px 15px;
|
|
2284
|
-
margin-bottom: 10px;
|
|
2285
|
-
line-height: 1.4;
|
|
2286
|
-
border: 1px solid var(--digipair-color-primary, #52dfdb);
|
|
2287
|
-
color: var(--digipair-color-primary, #52dfdb);
|
|
2288
|
-
align-self: flex-start;
|
|
2289
|
-
margin-right: auto;
|
|
2290
|
-
text-align: center;
|
|
2291
|
-
}
|
|
2292
|
-
|
|
2293
|
-
.download ui5-icon {
|
|
2294
|
-
color: var(--digipair-color-secondary, #52dfdb);
|
|
2295
|
-
}
|
|
2296
|
-
|
|
2297
|
-
.download.unloaded ui5-icon {
|
|
2298
|
-
color: var(--digipair-color-primary, #52dfdb);
|
|
2299
|
-
}
|
|
2300
|
-
|
|
2301
|
-
.download p {
|
|
2302
|
-
text-align: center;
|
|
2303
|
-
font-size: 12px;
|
|
2304
|
-
margin: 0;
|
|
2305
|
-
}
|
|
2306
|
-
|
|
2307
|
-
.download.unloaded {
|
|
2308
|
-
cursor: pointer;
|
|
2309
|
-
}
|
|
2310
|
-
|
|
2311
|
-
.download.loaded ui5-icon {
|
|
2312
|
-
float: left;
|
|
2313
|
-
}
|
|
2314
|
-
`;
|
|
2315
2269
|
__decorate([
|
|
2316
2270
|
n()
|
|
2317
2271
|
], InputTextElement.prototype, "label", void 0);
|
|
@@ -2334,7 +2288,7 @@ InputTextElement = __decorate([
|
|
|
2334
2288
|
t('digipair-input-text')
|
|
2335
2289
|
], InputTextElement);
|
|
2336
2290
|
|
|
2337
|
-
class DomAttributeElement extends
|
|
2291
|
+
class DomAttributeElement extends i {
|
|
2338
2292
|
get value() {
|
|
2339
2293
|
return this._value;
|
|
2340
2294
|
}
|
|
@@ -2344,8 +2298,7 @@ class DomAttributeElement extends r$2 {
|
|
|
2344
2298
|
}
|
|
2345
2299
|
async initialize() {
|
|
2346
2300
|
const element = document.querySelector(this.selector);
|
|
2347
|
-
|
|
2348
|
-
const value = (_element_this_attribute = element[this.attribute]) != null ? _element_this_attribute : element.getAttribute(this.attribute);
|
|
2301
|
+
const value = element[this.attribute] ?? element.getAttribute(this.attribute);
|
|
2349
2302
|
if (!(value instanceof Promise)) {
|
|
2350
2303
|
this._value = value;
|
|
2351
2304
|
return;
|
|
@@ -2386,8 +2339,12 @@ DomAttributeElement = __decorate([
|
|
|
2386
2339
|
|
|
2387
2340
|
/**
|
|
2388
2341
|
* Guard function that checks if provided `input` is an Element.
|
|
2389
|
-
*/ function
|
|
2390
|
-
|
|
2342
|
+
*/ function _type_of$1(obj) {
|
|
2343
|
+
"@swc/helpers - typeof";
|
|
2344
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
2345
|
+
}
|
|
2346
|
+
function isElement(input) {
|
|
2347
|
+
return (typeof input === "undefined" ? "undefined" : _type_of$1(input)) === "object" && input !== null && input.nodeType === Node.ELEMENT_NODE;
|
|
2391
2348
|
}
|
|
2392
2349
|
|
|
2393
2350
|
var OPERATOR = {
|
|
@@ -2476,7 +2433,8 @@ var DEFAULT_OPTIONS = {
|
|
|
2476
2433
|
combineBetweenSelectors: true,
|
|
2477
2434
|
root: null,
|
|
2478
2435
|
maxCombinations: Number.POSITIVE_INFINITY,
|
|
2479
|
-
maxCandidates: Number.POSITIVE_INFINITY
|
|
2436
|
+
maxCandidates: Number.POSITIVE_INFINITY,
|
|
2437
|
+
useScope: false
|
|
2480
2438
|
};
|
|
2481
2439
|
/**
|
|
2482
2440
|
* Makes sure returned value is a list containing only valid selector types.
|
|
@@ -2566,7 +2524,8 @@ var DEFAULT_OPTIONS = {
|
|
|
2566
2524
|
combineBetweenSelectors: !!options.combineBetweenSelectors,
|
|
2567
2525
|
includeTag: !!options.includeTag,
|
|
2568
2526
|
maxCombinations: sanitizeMaxNumber(options.maxCombinations),
|
|
2569
|
-
maxCandidates: sanitizeMaxNumber(options.maxCandidates)
|
|
2527
|
+
maxCandidates: sanitizeMaxNumber(options.maxCandidates),
|
|
2528
|
+
useScope: !!options.useScope
|
|
2570
2529
|
};
|
|
2571
2530
|
}
|
|
2572
2531
|
|
|
@@ -3626,25 +3585,28 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
3626
3585
|
}
|
|
3627
3586
|
/**
|
|
3628
3587
|
* Creates fallback selector for single element.
|
|
3629
|
-
*/ function getElementFallbackSelector(element) {
|
|
3630
|
-
var parentElements = getElementParents(element).reverse();
|
|
3588
|
+
*/ function getElementFallbackSelector(element, root) {
|
|
3589
|
+
var parentElements = getElementParents(element, root).reverse();
|
|
3631
3590
|
var elementsData = parentElements.map(function(element) {
|
|
3591
|
+
var _a;
|
|
3632
3592
|
var elementData = createElementData(element, [
|
|
3633
3593
|
CSS_SELECTOR_TYPE.nthchild
|
|
3634
3594
|
], OPERATOR.CHILD);
|
|
3635
|
-
elementData.selectors.nthchild.forEach(function(selectorData) {
|
|
3595
|
+
((_a = elementData.selectors.nthchild) !== null && _a !== void 0 ? _a : []).forEach(function(selectorData) {
|
|
3636
3596
|
selectorData.include = true;
|
|
3637
3597
|
});
|
|
3638
3598
|
return elementData;
|
|
3639
3599
|
});
|
|
3640
3600
|
return [
|
|
3641
|
-
":root"
|
|
3601
|
+
root ? ":scope" : ":root"
|
|
3642
3602
|
].concat(_to_consumable_array(elementsData.map(constructElementSelector))).join("");
|
|
3643
3603
|
}
|
|
3644
3604
|
/**
|
|
3645
3605
|
* Creates chain of :nth-child selectors from root to the elements.
|
|
3646
|
-
*/ function getFallbackSelector(elements) {
|
|
3647
|
-
return elements.map(
|
|
3606
|
+
*/ function getFallbackSelector(elements, root) {
|
|
3607
|
+
return elements.map(function(element) {
|
|
3608
|
+
return getElementFallbackSelector(element, root);
|
|
3609
|
+
}).join(SELECTOR_SEPARATOR);
|
|
3648
3610
|
}
|
|
3649
3611
|
|
|
3650
3612
|
/**
|
|
@@ -3679,7 +3641,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
3679
3641
|
return getCssSelector$1(element, options);
|
|
3680
3642
|
}).join(SELECTOR_SEPARATOR);
|
|
3681
3643
|
}
|
|
3682
|
-
return getFallbackSelector(elements);
|
|
3644
|
+
return getFallbackSelector(elements, options.useScope ? root : undefined);
|
|
3683
3645
|
}
|
|
3684
3646
|
|
|
3685
3647
|
function unescapeCSS(cssEscapedString) {
|
|
@@ -3690,13 +3652,49 @@ function getCssSelector(element, options = {}) {
|
|
|
3690
3652
|
return unescapeCSS(selector);
|
|
3691
3653
|
}
|
|
3692
3654
|
|
|
3693
|
-
class ElementElement extends
|
|
3655
|
+
class ElementElement extends i {
|
|
3694
3656
|
get content() {
|
|
3695
3657
|
return this._content;
|
|
3696
3658
|
}
|
|
3697
3659
|
get value() {
|
|
3698
3660
|
return this._value;
|
|
3699
3661
|
}
|
|
3662
|
+
static{
|
|
3663
|
+
this.styles = i$3`
|
|
3664
|
+
.digipair-input {
|
|
3665
|
+
padding: 10px 15px;
|
|
3666
|
+
margin-bottom: 10px;
|
|
3667
|
+
line-height: 1.4;
|
|
3668
|
+
border: 1px solid var(--digipair-color-primary, #52dfdb);
|
|
3669
|
+
color: var(--digipair-color-primary, #52dfdb);
|
|
3670
|
+
align-self: flex-start;
|
|
3671
|
+
margin-right: auto;
|
|
3672
|
+
text-align: center;
|
|
3673
|
+
}
|
|
3674
|
+
|
|
3675
|
+
.digipair-input ui5-icon {
|
|
3676
|
+
color: var(--digipair-color-secondary, #52dfdb);
|
|
3677
|
+
}
|
|
3678
|
+
|
|
3679
|
+
.digipair-input.unloaded ui5-icon {
|
|
3680
|
+
color: var(--digipair-color-primary, #52dfdb);
|
|
3681
|
+
}
|
|
3682
|
+
|
|
3683
|
+
.digipair-input p {
|
|
3684
|
+
text-align: center;
|
|
3685
|
+
font-size: 12px;
|
|
3686
|
+
margin: 0;
|
|
3687
|
+
}
|
|
3688
|
+
|
|
3689
|
+
.digipair-input.unloaded {
|
|
3690
|
+
cursor: pointer;
|
|
3691
|
+
}
|
|
3692
|
+
|
|
3693
|
+
.digipair-input.loaded ui5-icon {
|
|
3694
|
+
float: left;
|
|
3695
|
+
}
|
|
3696
|
+
`;
|
|
3697
|
+
}
|
|
3700
3698
|
loadElement() {
|
|
3701
3699
|
const digipairEl = document.querySelector('digipair-chatbot');
|
|
3702
3700
|
this.state = 'selecting';
|
|
@@ -3745,12 +3743,11 @@ class ElementElement extends r$2 {
|
|
|
3745
3743
|
}, 1);
|
|
3746
3744
|
};
|
|
3747
3745
|
const mouseout = (event)=>{
|
|
3748
|
-
var _event_target_closest;
|
|
3749
3746
|
if (event.target.closest('digipair-chatbot')) {
|
|
3750
3747
|
return;
|
|
3751
3748
|
}
|
|
3752
3749
|
unsetCurrentElement();
|
|
3753
|
-
|
|
3750
|
+
event.target.closest(this.filter)?.classList.add('digipair-input-element-selecting');
|
|
3754
3751
|
this.requestUpdate();
|
|
3755
3752
|
};
|
|
3756
3753
|
document.addEventListener('keydown', keydown);
|
|
@@ -3814,40 +3811,6 @@ class ElementElement extends r$2 {
|
|
|
3814
3811
|
this._value = '';
|
|
3815
3812
|
}
|
|
3816
3813
|
}
|
|
3817
|
-
ElementElement.styles = i$3`
|
|
3818
|
-
.digipair-input {
|
|
3819
|
-
padding: 10px 15px;
|
|
3820
|
-
margin-bottom: 10px;
|
|
3821
|
-
line-height: 1.4;
|
|
3822
|
-
border: 1px solid var(--digipair-color-primary, #52dfdb);
|
|
3823
|
-
color: var(--digipair-color-primary, #52dfdb);
|
|
3824
|
-
align-self: flex-start;
|
|
3825
|
-
margin-right: auto;
|
|
3826
|
-
text-align: center;
|
|
3827
|
-
}
|
|
3828
|
-
|
|
3829
|
-
.digipair-input ui5-icon {
|
|
3830
|
-
color: var(--digipair-color-secondary, #52dfdb);
|
|
3831
|
-
}
|
|
3832
|
-
|
|
3833
|
-
.digipair-input.unloaded ui5-icon {
|
|
3834
|
-
color: var(--digipair-color-primary, #52dfdb);
|
|
3835
|
-
}
|
|
3836
|
-
|
|
3837
|
-
.digipair-input p {
|
|
3838
|
-
text-align: center;
|
|
3839
|
-
font-size: 12px;
|
|
3840
|
-
margin: 0;
|
|
3841
|
-
}
|
|
3842
|
-
|
|
3843
|
-
.digipair-input.unloaded {
|
|
3844
|
-
cursor: pointer;
|
|
3845
|
-
}
|
|
3846
|
-
|
|
3847
|
-
.digipair-input.loaded ui5-icon {
|
|
3848
|
-
float: left;
|
|
3849
|
-
}
|
|
3850
|
-
`;
|
|
3851
3814
|
__decorate([
|
|
3852
3815
|
n()
|
|
3853
3816
|
], ElementElement.prototype, "label", void 0);
|
|
@@ -3870,7 +3833,7 @@ ElementElement = __decorate([
|
|
|
3870
3833
|
t('digipair-input-element')
|
|
3871
3834
|
], ElementElement);
|
|
3872
3835
|
|
|
3873
|
-
class FetchElement extends
|
|
3836
|
+
class FetchElement extends i {
|
|
3874
3837
|
get value() {
|
|
3875
3838
|
return this._value;
|
|
3876
3839
|
}
|
|
@@ -3915,7 +3878,7 @@ FetchElement = __decorate([
|
|
|
3915
3878
|
t('digipair-input-fetch')
|
|
3916
3879
|
], FetchElement);
|
|
3917
3880
|
|
|
3918
|
-
class HiddenElement extends
|
|
3881
|
+
class HiddenElement extends i {
|
|
3919
3882
|
render() {
|
|
3920
3883
|
return x``;
|
|
3921
3884
|
}
|