@supersoniks/concorde 1.1.46 → 1.1.47
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 +0 -0
- package/cli.js +0 -0
- package/concorde-core.bundle.js +20 -22
- package/concorde-core.es.js +777 -955
- package/concorde-customer.bundle.js +129 -0
- package/concorde-customer.es.js +22004 -0
- package/core/_types/types.d.ts +0 -1
- package/core/components/functional/date/date.js +15 -7
- package/core/components/functional/fetch/fetch.d.ts +1 -0
- package/core/components/functional/list/list.d.ts +33 -18
- package/core/components/functional/list/list.js +12 -22
- package/core/components/functional/queue/queue.d.ts +0 -2
- package/core/components/functional/queue/queue.js +11 -37
- package/core/components/functional/sdui/sdui.d.ts +1 -3
- package/core/components/functional/sdui/sdui.js +0 -3
- package/core/components/ui/_css/type.js +12 -12
- package/core/components/ui/button/button.d.ts +1 -0
- package/core/components/ui/button/button.js +37 -12
- package/core/components/ui/form/input/input.d.ts +0 -1
- package/core/components/ui/form/input/input.js +3 -10
- package/core/components/ui/form/input-autocomplete/input-autocomplete.d.ts +13 -93
- package/core/components/ui/form/input-autocomplete/input-autocomplete.js +52 -181
- package/core/components/ui/image/image.d.ts +2 -0
- package/core/components/ui/image/image.js +28 -0
- package/core/components/ui/pop/pop.js +6 -17
- package/core/components/ui/theme/css/tailwind.css +0 -0
- package/core/components/ui/theme/css/tailwind.d.ts +0 -0
- package/core/components/ui/theme/theme.js +8 -6
- package/core/components/ui/toast/toast.d.ts +1 -1
- package/core/components/ui/toast/types.d.ts +1 -1
- package/core/components/ui/ui.d.ts +0 -1
- package/core/components/ui/ui.js +0 -1
- package/core/mixins/Fetcher.d.ts +1 -0
- package/core/mixins/Fetcher.js +9 -10
- package/core/mixins/FormElement.d.ts +0 -1
- package/core/mixins/FormElement.js +2 -6
- package/core/utils/LocationHandler.js +9 -3
- package/core/utils/PublisherProxy.d.ts +0 -1
- package/core/utils/PublisherProxy.js +0 -1
- package/img/concorde-logo.svg +0 -0
- package/img/concorde.png +0 -0
- package/img/concorde_def.png +0 -0
- package/mixins.d.ts +1 -0
- package/package.json +1 -1
- package/svg/regular/plane.svg +0 -0
- package/svg/solid/plane.svg +0 -0
package/concorde-core.es.js
CHANGED
|
@@ -365,7 +365,6 @@ function isComplex(value) {
|
|
|
365
365
|
const _PublisherProxy = class {
|
|
366
366
|
constructor(target, parentProxPub) {
|
|
367
367
|
this._proxies_ = /* @__PURE__ */ new Map();
|
|
368
|
-
this._key_ = "";
|
|
369
368
|
this._is_savable_ = false;
|
|
370
369
|
this._invalidateListeners_ = /* @__PURE__ */ new Set();
|
|
371
370
|
this._assignListeners_ = /* @__PURE__ */ new Set();
|
|
@@ -1124,8 +1123,8 @@ function i$5(i2, n2) {
|
|
|
1124
1123
|
* Copyright 2021 Google LLC
|
|
1125
1124
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1126
1125
|
*/
|
|
1127
|
-
var n$
|
|
1128
|
-
const e$6 = null != (null === (n$
|
|
1126
|
+
var n$6;
|
|
1127
|
+
const e$6 = null != (null === (n$6 = window.HTMLSlotElement) || void 0 === n$6 ? void 0 : n$6.prototype.assignedElements) ? (o2, n2) => o2.assignedElements(n2) : (o2, n2) => o2.assignedNodes(n2).filter((o3) => o3.nodeType === Node.ELEMENT_NODE);
|
|
1129
1128
|
function l$6(n2) {
|
|
1130
1129
|
const { slot: l2, selector: t2 } = null != n2 ? n2 : {};
|
|
1131
1130
|
return o$a({ descriptor: (o2) => ({ get() {
|
|
@@ -1147,15 +1146,15 @@ function o$9(o2, n2, r2) {
|
|
|
1147
1146
|
return null !== (t2 = null == n3 ? void 0 : n3.assignedNodes(l2)) && void 0 !== t2 ? t2 : [];
|
|
1148
1147
|
}, enumerable: true, configurable: true }) });
|
|
1149
1148
|
}
|
|
1150
|
-
var __defProp$
|
|
1151
|
-
var __getOwnPropDesc$
|
|
1152
|
-
var __decorateClass$
|
|
1153
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
1149
|
+
var __defProp$17 = Object.defineProperty;
|
|
1150
|
+
var __getOwnPropDesc$17 = Object.getOwnPropertyDescriptor;
|
|
1151
|
+
var __decorateClass$17 = (decorators, target, key, kind) => {
|
|
1152
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$17(target, key) : target;
|
|
1154
1153
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
1155
1154
|
if (decorator = decorators[i2])
|
|
1156
1155
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
1157
1156
|
if (kind && result)
|
|
1158
|
-
__defProp$
|
|
1157
|
+
__defProp$17(target, key, result);
|
|
1159
1158
|
return result;
|
|
1160
1159
|
};
|
|
1161
1160
|
let keepDebugOnMouseOut = false;
|
|
@@ -1421,43 +1420,43 @@ const Subscriber$1 = (superClass, type) => {
|
|
|
1421
1420
|
};
|
|
1422
1421
|
let SubscriberElement = _SubscriberElement;
|
|
1423
1422
|
SubscriberElement.instanceCounter = 0;
|
|
1424
|
-
__decorateClass$
|
|
1423
|
+
__decorateClass$17([
|
|
1425
1424
|
e$7({ type: Boolean })
|
|
1426
1425
|
], SubscriberElement.prototype, "displayContents", 2);
|
|
1427
|
-
__decorateClass$
|
|
1426
|
+
__decorateClass$17([
|
|
1428
1427
|
e$7({ type: Boolean })
|
|
1429
1428
|
], SubscriberElement.prototype, "noAutoFill", 2);
|
|
1430
|
-
__decorateClass$
|
|
1429
|
+
__decorateClass$17([
|
|
1431
1430
|
e$7({ type: Boolean })
|
|
1432
1431
|
], SubscriberElement.prototype, "forceAutoFill", 2);
|
|
1433
|
-
__decorateClass$
|
|
1432
|
+
__decorateClass$17([
|
|
1434
1433
|
e$7({ type: Object })
|
|
1435
1434
|
], SubscriberElement.prototype, "propertyMap", 2);
|
|
1436
|
-
__decorateClass$
|
|
1435
|
+
__decorateClass$17([
|
|
1437
1436
|
e$7({ type: String, attribute: "data-title" })
|
|
1438
1437
|
], SubscriberElement.prototype, "title", 2);
|
|
1439
|
-
__decorateClass$
|
|
1438
|
+
__decorateClass$17([
|
|
1440
1439
|
e$7({ reflect: true })
|
|
1441
1440
|
], SubscriberElement.prototype, "dataProvider", 2);
|
|
1442
|
-
__decorateClass$
|
|
1441
|
+
__decorateClass$17([
|
|
1443
1442
|
e$7()
|
|
1444
1443
|
], SubscriberElement.prototype, "bindPublisher", 2);
|
|
1445
|
-
__decorateClass$
|
|
1444
|
+
__decorateClass$17([
|
|
1446
1445
|
e$7()
|
|
1447
1446
|
], SubscriberElement.prototype, "props", 1);
|
|
1448
1447
|
return SubscriberElement;
|
|
1449
1448
|
};
|
|
1450
1449
|
if (!window.SonicPublisherManager)
|
|
1451
1450
|
window.SonicPublisherManager = PublisherManager$1;
|
|
1452
|
-
var __defProp$
|
|
1453
|
-
var __getOwnPropDesc$
|
|
1454
|
-
var __decorateClass$
|
|
1455
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
1451
|
+
var __defProp$16 = Object.defineProperty;
|
|
1452
|
+
var __getOwnPropDesc$16 = Object.getOwnPropertyDescriptor;
|
|
1453
|
+
var __decorateClass$16 = (decorators, target, key, kind) => {
|
|
1454
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$16(target, key) : target;
|
|
1456
1455
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
1457
1456
|
if (decorator = decorators[i2])
|
|
1458
1457
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
1459
1458
|
if (kind && result)
|
|
1460
|
-
__defProp$
|
|
1459
|
+
__defProp$16(target, key, result);
|
|
1461
1460
|
return result;
|
|
1462
1461
|
};
|
|
1463
1462
|
const TemplatesContainer$1 = (superClass) => {
|
|
@@ -1484,7 +1483,7 @@ const TemplatesContainer$1 = (superClass) => {
|
|
|
1484
1483
|
super.connectedCallback();
|
|
1485
1484
|
}
|
|
1486
1485
|
}
|
|
1487
|
-
__decorateClass$
|
|
1486
|
+
__decorateClass$16([
|
|
1488
1487
|
e$7({ type: Array })
|
|
1489
1488
|
], TemplatesContainerElement.prototype, "templates", 2);
|
|
1490
1489
|
return TemplatesContainerElement;
|
|
@@ -1494,7 +1493,7 @@ const TemplatesContainer$1 = (superClass) => {
|
|
|
1494
1493
|
* Copyright 2019 Google LLC
|
|
1495
1494
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1496
1495
|
*/
|
|
1497
|
-
const t$2 = window, e$5 = t$2.ShadowRoot && (void 0 === t$2.ShadyCSS || t$2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s$6 = Symbol(), n$
|
|
1496
|
+
const t$2 = window, e$5 = t$2.ShadowRoot && (void 0 === t$2.ShadyCSS || t$2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s$6 = Symbol(), n$5 = /* @__PURE__ */ new WeakMap();
|
|
1498
1497
|
class o$8 {
|
|
1499
1498
|
constructor(t2, e2, n2) {
|
|
1500
1499
|
if (this._$cssResult$ = true, n2 !== s$6)
|
|
@@ -1506,7 +1505,7 @@ class o$8 {
|
|
|
1506
1505
|
const s2 = this.t;
|
|
1507
1506
|
if (e$5 && void 0 === t2) {
|
|
1508
1507
|
const e2 = void 0 !== s2 && 1 === s2.length;
|
|
1509
|
-
e2 && (t2 = n$
|
|
1508
|
+
e2 && (t2 = n$5.get(s2)), void 0 === t2 && ((this.o = t2 = new CSSStyleSheet()).replaceSync(this.cssText), e2 && n$5.set(s2, t2));
|
|
1510
1509
|
}
|
|
1511
1510
|
return t2;
|
|
1512
1511
|
}
|
|
@@ -1540,7 +1539,7 @@ const r$5 = (t2) => new o$8("string" == typeof t2 ? t2 : t2 + "", void 0, s$6),
|
|
|
1540
1539
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1541
1540
|
*/
|
|
1542
1541
|
var s$5;
|
|
1543
|
-
const e$4 = window, r$4 = e$4.trustedTypes, h$3 = r$4 ? r$4.emptyScript : "", o$7 = e$4.reactiveElementPolyfillSupport, n$
|
|
1542
|
+
const e$4 = window, r$4 = e$4.trustedTypes, h$3 = r$4 ? r$4.emptyScript : "", o$7 = e$4.reactiveElementPolyfillSupport, n$4 = { toAttribute(t2, i2) {
|
|
1544
1543
|
switch (i2) {
|
|
1545
1544
|
case Boolean:
|
|
1546
1545
|
t2 = t2 ? h$3 : null;
|
|
@@ -1568,8 +1567,8 @@ const e$4 = window, r$4 = e$4.trustedTypes, h$3 = r$4 ? r$4.emptyScript : "", o$
|
|
|
1568
1567
|
}
|
|
1569
1568
|
}
|
|
1570
1569
|
return s2;
|
|
1571
|
-
} }, a$
|
|
1572
|
-
class d$
|
|
1570
|
+
} }, a$2 = (t2, i2) => i2 !== t2 && (i2 == i2 || t2 == t2), l$5 = { attribute: true, type: String, converter: n$4, reflect: false, hasChanged: a$2 };
|
|
1571
|
+
class d$1 extends HTMLElement {
|
|
1573
1572
|
constructor() {
|
|
1574
1573
|
super(), this._$Ei = /* @__PURE__ */ new Map(), this.isUpdatePending = false, this.hasUpdated = false, this._$El = null, this.u();
|
|
1575
1574
|
}
|
|
@@ -1673,7 +1672,7 @@ class d$2 extends HTMLElement {
|
|
|
1673
1672
|
var e2;
|
|
1674
1673
|
const r2 = this.constructor._$Ep(t2, s2);
|
|
1675
1674
|
if (void 0 !== r2 && true === s2.reflect) {
|
|
1676
|
-
const h2 = (void 0 !== (null === (e2 = s2.converter) || void 0 === e2 ? void 0 : e2.toAttribute) ? s2.converter : n$
|
|
1675
|
+
const h2 = (void 0 !== (null === (e2 = s2.converter) || void 0 === e2 ? void 0 : e2.toAttribute) ? s2.converter : n$4).toAttribute(i2, s2.type);
|
|
1677
1676
|
this._$El = t2, null == h2 ? this.removeAttribute(r2) : this.setAttribute(r2, h2), this._$El = null;
|
|
1678
1677
|
}
|
|
1679
1678
|
}
|
|
@@ -1681,13 +1680,13 @@ class d$2 extends HTMLElement {
|
|
|
1681
1680
|
var s2;
|
|
1682
1681
|
const e2 = this.constructor, r2 = e2._$Ev.get(t2);
|
|
1683
1682
|
if (void 0 !== r2 && this._$El !== r2) {
|
|
1684
|
-
const t3 = e2.getPropertyOptions(r2), h2 = "function" == typeof t3.converter ? { fromAttribute: t3.converter } : void 0 !== (null === (s2 = t3.converter) || void 0 === s2 ? void 0 : s2.fromAttribute) ? t3.converter : n$
|
|
1683
|
+
const t3 = e2.getPropertyOptions(r2), h2 = "function" == typeof t3.converter ? { fromAttribute: t3.converter } : void 0 !== (null === (s2 = t3.converter) || void 0 === s2 ? void 0 : s2.fromAttribute) ? t3.converter : n$4;
|
|
1685
1684
|
this._$El = r2, this[r2] = h2.fromAttribute(i2, t3.type), this._$El = null;
|
|
1686
1685
|
}
|
|
1687
1686
|
}
|
|
1688
1687
|
requestUpdate(t2, i2, s2) {
|
|
1689
1688
|
let e2 = true;
|
|
1690
|
-
void 0 !== t2 && (((s2 = s2 || this.constructor.getPropertyOptions(t2)).hasChanged || a$
|
|
1689
|
+
void 0 !== t2 && (((s2 = s2 || this.constructor.getPropertyOptions(t2)).hasChanged || a$2)(this[t2], i2) ? (this._$AL.has(t2) || this._$AL.set(t2, i2), true === s2.reflect && this._$El !== t2 && (void 0 === this._$EC && (this._$EC = /* @__PURE__ */ new Map()), this._$EC.set(t2, s2))) : e2 = false), !this.isUpdatePending && e2 && (this._$E_ = this._$Ej());
|
|
1691
1690
|
}
|
|
1692
1691
|
async _$Ej() {
|
|
1693
1692
|
this.isUpdatePending = true;
|
|
@@ -1748,14 +1747,14 @@ class d$2 extends HTMLElement {
|
|
|
1748
1747
|
firstUpdated(t2) {
|
|
1749
1748
|
}
|
|
1750
1749
|
}
|
|
1751
|
-
d$
|
|
1750
|
+
d$1.finalized = true, d$1.elementProperties = /* @__PURE__ */ new Map(), d$1.elementStyles = [], d$1.shadowRootOptions = { mode: "open" }, null == o$7 || o$7({ ReactiveElement: d$1 }), (null !== (s$5 = e$4.reactiveElementVersions) && void 0 !== s$5 ? s$5 : e$4.reactiveElementVersions = []).push("1.6.1");
|
|
1752
1751
|
/**
|
|
1753
1752
|
* @license
|
|
1754
1753
|
* Copyright 2017 Google LLC
|
|
1755
1754
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1756
1755
|
*/
|
|
1757
1756
|
var t$1;
|
|
1758
|
-
const i$3 = window, s$4 = i$3.trustedTypes, e$3 = s$4 ? s$4.createPolicy("lit-html", { createHTML: (t2) => t2 }) : void 0, o$6 = `lit$${(Math.random() + "").slice(9)}$`, n$
|
|
1757
|
+
const i$3 = window, s$4 = i$3.trustedTypes, e$3 = s$4 ? s$4.createPolicy("lit-html", { createHTML: (t2) => t2 }) : void 0, o$6 = `lit$${(Math.random() + "").slice(9)}$`, n$3 = "?" + o$6, l$4 = `<${n$3}>`, h$2 = document, r$3 = (t2 = "") => h$2.createComment(t2), d = (t2) => null === t2 || "object" != typeof t2 && "function" != typeof t2, u$2 = Array.isArray, c$3 = (t2) => u$2(t2) || "function" == typeof (null == t2 ? void 0 : t2[Symbol.iterator]), v = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, a$1 = /-->/g, f$2 = />/g, _ = RegExp(`>|[
|
|
1759
1758
|
\f\r](?:([^\\s"'>=/]+)([
|
|
1760
1759
|
\f\r]*=[
|
|
1761
1760
|
\f\r]*(?:[^
|
|
@@ -1766,7 +1765,7 @@ const i$3 = window, s$4 = i$3.trustedTypes, e$3 = s$4 ? s$4.createPolicy("lit-ht
|
|
|
1766
1765
|
const s3 = t2[i3];
|
|
1767
1766
|
let e2, u3, c2 = -1, g2 = 0;
|
|
1768
1767
|
for (; g2 < s3.length && (d2.lastIndex = g2, u3 = d2.exec(s3), null !== u3); )
|
|
1769
|
-
g2 = d2.lastIndex, d2 === v ? "!--" === u3[1] ? d2 = a$
|
|
1768
|
+
g2 = d2.lastIndex, d2 === v ? "!--" === u3[1] ? d2 = a$1 : void 0 !== u3[1] ? d2 = f$2 : void 0 !== u3[2] ? ($$1.test(u3[2]) && (h2 = RegExp("</" + u3[2], "g")), d2 = _) : void 0 !== u3[3] && (d2 = _) : d2 === _ ? ">" === u3[0] ? (d2 = null != h2 ? h2 : v, c2 = -1) : void 0 === u3[1] ? c2 = -2 : (c2 = d2.lastIndex - u3[2].length, e2 = u3[1], d2 = void 0 === u3[3] ? _ : '"' === u3[3] ? p$2 : m$1) : d2 === p$2 || d2 === m$1 ? d2 = _ : d2 === a$1 || d2 === f$2 ? d2 = v : (d2 = _, h2 = void 0);
|
|
1770
1769
|
const y2 = d2 === _ && t2[i3 + 1].startsWith("/>") ? " " : "";
|
|
1771
1770
|
r2 += d2 === v ? s3 + l$4 : c2 >= 0 ? (n2.push(e2), s3.slice(0, c2) + "$lit$" + s3.slice(c2) + o$6 + y2) : s3 + o$6 + (-2 === c2 ? (n2.push(void 0), i3) : y2);
|
|
1772
1771
|
}
|
|
@@ -1811,7 +1810,7 @@ class C {
|
|
|
1811
1810
|
}
|
|
1812
1811
|
}
|
|
1813
1812
|
} else if (8 === l2.nodeType)
|
|
1814
|
-
if (l2.data === n$
|
|
1813
|
+
if (l2.data === n$3)
|
|
1815
1814
|
c2.push({ type: 2, index: h2 });
|
|
1816
1815
|
else {
|
|
1817
1816
|
let t3 = -1;
|
|
@@ -1831,7 +1830,7 @@ function P(t2, i2, s2 = t2, e2) {
|
|
|
1831
1830
|
if (i2 === x$1)
|
|
1832
1831
|
return i2;
|
|
1833
1832
|
let r2 = void 0 !== e2 ? null === (o2 = s2._$Co) || void 0 === o2 ? void 0 : o2[e2] : s2._$Cl;
|
|
1834
|
-
const u2 = d
|
|
1833
|
+
const u2 = d(i2) ? void 0 : i2._$litDirective$;
|
|
1835
1834
|
return (null == r2 ? void 0 : r2.constructor) !== u2 && (null === (n2 = null == r2 ? void 0 : r2._$AO) || void 0 === n2 || n2.call(r2, false), void 0 === u2 ? r2 = void 0 : (r2 = new u2(t2), r2._$AT(t2, s2, e2)), void 0 !== e2 ? (null !== (l2 = (h2 = s2)._$Co) && void 0 !== l2 ? l2 : h2._$Co = [])[e2] = r2 : s2._$Cl = r2), void 0 !== r2 && (i2 = P(t2, r2._$AS(t2, i2.values), r2, e2)), i2;
|
|
1836
1835
|
}
|
|
1837
1836
|
class V {
|
|
@@ -1885,7 +1884,7 @@ class N {
|
|
|
1885
1884
|
return this._$AB;
|
|
1886
1885
|
}
|
|
1887
1886
|
_$AI(t2, i2 = this) {
|
|
1888
|
-
t2 = P(this, t2, i2), d
|
|
1887
|
+
t2 = P(this, t2, i2), d(t2) ? t2 === b$1 || null == t2 || "" === t2 ? (this._$AH !== b$1 && this._$AR(), this._$AH = b$1) : t2 !== this._$AH && t2 !== x$1 && this.g(t2) : void 0 !== t2._$litType$ ? this.$(t2) : void 0 !== t2.nodeType ? this.T(t2) : c$3(t2) ? this.k(t2) : this.g(t2);
|
|
1889
1888
|
}
|
|
1890
1889
|
O(t2, i2 = this._$AB) {
|
|
1891
1890
|
return this._$AA.parentNode.insertBefore(t2, i2);
|
|
@@ -1894,7 +1893,7 @@ class N {
|
|
|
1894
1893
|
this._$AH !== t2 && (this._$AR(), this._$AH = this.O(t2));
|
|
1895
1894
|
}
|
|
1896
1895
|
g(t2) {
|
|
1897
|
-
this._$AH !== b$1 && d
|
|
1896
|
+
this._$AH !== b$1 && d(this._$AH) ? this._$AA.nextSibling.data = t2 : this.T(h$2.createTextNode(t2)), this._$AH = t2;
|
|
1898
1897
|
}
|
|
1899
1898
|
$(t2) {
|
|
1900
1899
|
var i2;
|
|
@@ -1944,12 +1943,12 @@ class S$1 {
|
|
|
1944
1943
|
const o2 = this.strings;
|
|
1945
1944
|
let n2 = false;
|
|
1946
1945
|
if (void 0 === o2)
|
|
1947
|
-
t2 = P(this, t2, i2, 0), n2 = !d
|
|
1946
|
+
t2 = P(this, t2, i2, 0), n2 = !d(t2) || t2 !== this._$AH && t2 !== x$1, n2 && (this._$AH = t2);
|
|
1948
1947
|
else {
|
|
1949
1948
|
const e3 = t2;
|
|
1950
1949
|
let l2, h2;
|
|
1951
1950
|
for (t2 = o2[0], l2 = 0; l2 < o2.length - 1; l2++)
|
|
1952
|
-
h2 = P(this, e3[s2 + l2], i2, l2), h2 === x$1 && (h2 = this._$AH[l2]), n2 || (n2 = !d
|
|
1951
|
+
h2 = P(this, e3[s2 + l2], i2, l2), h2 === x$1 && (h2 = this._$AH[l2]), n2 || (n2 = !d(h2) || h2 !== this._$AH[l2]), h2 === b$1 ? t2 = b$1 : t2 !== b$1 && (t2 += (null != h2 ? h2 : "") + o2[l2 + 1]), this._$AH[l2] = h2;
|
|
1953
1952
|
}
|
|
1954
1953
|
n2 && !e2 && this.j(t2);
|
|
1955
1954
|
}
|
|
@@ -2001,7 +2000,7 @@ class I {
|
|
|
2001
2000
|
P(this, t2);
|
|
2002
2001
|
}
|
|
2003
2002
|
}
|
|
2004
|
-
const L = { P: "$lit$", A: o$6, M: n$
|
|
2003
|
+
const L = { P: "$lit$", A: o$6, M: n$3, C: 1, L: E, R: V, D: c$3, V: P, I: N, H: S$1, N: k, U: H, B: M, F: I }, z = i$3.litHtmlPolyfillSupport;
|
|
2005
2004
|
null == z || z(C, N), (null !== (t$1 = i$3.litHtmlVersions) && void 0 !== t$1 ? t$1 : i$3.litHtmlVersions = []).push("2.6.1");
|
|
2006
2005
|
const Z = (t2, i2, s2) => {
|
|
2007
2006
|
var e2, o2;
|
|
@@ -2019,7 +2018,7 @@ const Z = (t2, i2, s2) => {
|
|
|
2019
2018
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2020
2019
|
*/
|
|
2021
2020
|
var l$3, o$5;
|
|
2022
|
-
class s$3 extends d$
|
|
2021
|
+
class s$3 extends d$1 {
|
|
2023
2022
|
constructor() {
|
|
2024
2023
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
2025
2024
|
}
|
|
@@ -2045,21 +2044,21 @@ class s$3 extends d$2 {
|
|
|
2045
2044
|
}
|
|
2046
2045
|
}
|
|
2047
2046
|
s$3.finalized = true, s$3._$litElement$ = true, null === (l$3 = globalThis.litElementHydrateSupport) || void 0 === l$3 || l$3.call(globalThis, { LitElement: s$3 });
|
|
2048
|
-
const n$
|
|
2049
|
-
null == n$
|
|
2047
|
+
const n$2 = globalThis.litElementPolyfillSupport;
|
|
2048
|
+
null == n$2 || n$2({ LitElement: s$3 });
|
|
2050
2049
|
(null !== (o$5 = globalThis.litElementVersions) && void 0 !== o$5 ? o$5 : globalThis.litElementVersions = []).push("3.2.2");
|
|
2051
|
-
var __defProp$
|
|
2052
|
-
var __getOwnPropDesc$
|
|
2053
|
-
var __decorateClass$
|
|
2054
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
2050
|
+
var __defProp$15 = Object.defineProperty;
|
|
2051
|
+
var __getOwnPropDesc$15 = Object.getOwnPropertyDescriptor;
|
|
2052
|
+
var __decorateClass$15 = (decorators, target, key, kind) => {
|
|
2053
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$15(target, key) : target;
|
|
2055
2054
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
2056
2055
|
if (decorator = decorators[i2])
|
|
2057
2056
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
2058
2057
|
if (kind && result)
|
|
2059
|
-
__defProp$
|
|
2058
|
+
__defProp$15(target, key, result);
|
|
2060
2059
|
return result;
|
|
2061
2060
|
};
|
|
2062
|
-
const tagName
|
|
2061
|
+
const tagName$_ = "sonic-date";
|
|
2063
2062
|
let SonicDate = class extends Subscriber$1(TemplatesContainer$1(s$3)) {
|
|
2064
2063
|
constructor() {
|
|
2065
2064
|
super(...arguments);
|
|
@@ -2119,9 +2118,6 @@ let SonicDate = class extends Subscriber$1(TemplatesContainer$1(s$3)) {
|
|
|
2119
2118
|
options
|
|
2120
2119
|
);
|
|
2121
2120
|
parts = format.formatRangeToParts(start, end);
|
|
2122
|
-
if (this.designMode) {
|
|
2123
|
-
parts.forEach((part) => part.hidden = part.value.trim() == ",");
|
|
2124
|
-
}
|
|
2125
2121
|
if (!isSameDay) {
|
|
2126
2122
|
const to = parts.find(
|
|
2127
2123
|
(part) => part.type == "literal" && part.source == "shared" && part.value.trim().length > 0
|
|
@@ -2131,12 +2127,22 @@ let SonicDate = class extends Subscriber$1(TemplatesContainer$1(s$3)) {
|
|
|
2131
2127
|
to.type = "to";
|
|
2132
2128
|
}
|
|
2133
2129
|
if (!this.designMode)
|
|
2134
|
-
parts.unshift({
|
|
2130
|
+
parts.unshift({
|
|
2131
|
+
type: "from",
|
|
2132
|
+
value: this.duAu[0] + " ",
|
|
2133
|
+
source: "shared"
|
|
2134
|
+
});
|
|
2135
2135
|
}
|
|
2136
2136
|
} else {
|
|
2137
|
-
const format = new Intl.DateTimeFormat(
|
|
2137
|
+
const format = new Intl.DateTimeFormat(
|
|
2138
|
+
this.language || this.pageLanguage,
|
|
2139
|
+
options
|
|
2140
|
+
);
|
|
2138
2141
|
parts = format.formatToParts(start);
|
|
2139
2142
|
}
|
|
2143
|
+
if (this.designMode) {
|
|
2144
|
+
parts.forEach((part) => part.hidden = part.value.trim() == ",");
|
|
2145
|
+
}
|
|
2140
2146
|
parts[0].value = Format$1.ucFirst(parts[0].value);
|
|
2141
2147
|
return parts.filter((p2) => p2.hidden !== true);
|
|
2142
2148
|
}
|
|
@@ -2192,65 +2198,65 @@ let SonicDate = class extends Subscriber$1(TemplatesContainer$1(s$3)) {
|
|
|
2192
2198
|
})}`;
|
|
2193
2199
|
}
|
|
2194
2200
|
};
|
|
2195
|
-
__decorateClass$
|
|
2201
|
+
__decorateClass$15([
|
|
2196
2202
|
e$7()
|
|
2197
2203
|
], SonicDate.prototype, "wording_billet_periode_validite", 1);
|
|
2198
|
-
__decorateClass$
|
|
2204
|
+
__decorateClass$15([
|
|
2199
2205
|
e$7({ type: Boolean })
|
|
2200
2206
|
], SonicDate.prototype, "designMode", 2);
|
|
2201
|
-
__decorateClass$
|
|
2207
|
+
__decorateClass$15([
|
|
2202
2208
|
e$7({ type: String })
|
|
2203
2209
|
], SonicDate.prototype, "time_zone", 2);
|
|
2204
|
-
__decorateClass$
|
|
2210
|
+
__decorateClass$15([
|
|
2205
2211
|
e$7({ type: Number })
|
|
2206
2212
|
], SonicDate.prototype, "date", 2);
|
|
2207
|
-
__decorateClass$
|
|
2213
|
+
__decorateClass$15([
|
|
2208
2214
|
e$7({ type: String })
|
|
2209
2215
|
], SonicDate.prototype, "date_string", 2);
|
|
2210
|
-
__decorateClass$
|
|
2216
|
+
__decorateClass$15([
|
|
2211
2217
|
e$7({ type: String })
|
|
2212
2218
|
], SonicDate.prototype, "start_date_string", 2);
|
|
2213
|
-
__decorateClass$
|
|
2219
|
+
__decorateClass$15([
|
|
2214
2220
|
e$7({ type: String })
|
|
2215
2221
|
], SonicDate.prototype, "end_date_string", 2);
|
|
2216
|
-
__decorateClass$
|
|
2222
|
+
__decorateClass$15([
|
|
2217
2223
|
e$7({ type: Number })
|
|
2218
2224
|
], SonicDate.prototype, "start_date", 2);
|
|
2219
|
-
__decorateClass$
|
|
2225
|
+
__decorateClass$15([
|
|
2220
2226
|
e$7({ type: Number })
|
|
2221
2227
|
], SonicDate.prototype, "end_date", 2);
|
|
2222
|
-
__decorateClass$
|
|
2228
|
+
__decorateClass$15([
|
|
2223
2229
|
e$7({ type: String })
|
|
2224
2230
|
], SonicDate.prototype, "era", 2);
|
|
2225
|
-
__decorateClass$
|
|
2231
|
+
__decorateClass$15([
|
|
2226
2232
|
e$7({ type: String })
|
|
2227
2233
|
], SonicDate.prototype, "year", 2);
|
|
2228
|
-
__decorateClass$
|
|
2234
|
+
__decorateClass$15([
|
|
2229
2235
|
e$7({ type: String })
|
|
2230
2236
|
], SonicDate.prototype, "month", 2);
|
|
2231
|
-
__decorateClass$
|
|
2237
|
+
__decorateClass$15([
|
|
2232
2238
|
e$7({ type: String })
|
|
2233
2239
|
], SonicDate.prototype, "day", 2);
|
|
2234
|
-
__decorateClass$
|
|
2240
|
+
__decorateClass$15([
|
|
2235
2241
|
e$7({ type: String })
|
|
2236
2242
|
], SonicDate.prototype, "weekday", 2);
|
|
2237
|
-
__decorateClass$
|
|
2243
|
+
__decorateClass$15([
|
|
2238
2244
|
e$7({ type: String })
|
|
2239
2245
|
], SonicDate.prototype, "hour", 2);
|
|
2240
|
-
__decorateClass$
|
|
2246
|
+
__decorateClass$15([
|
|
2241
2247
|
e$7({ type: String })
|
|
2242
2248
|
], SonicDate.prototype, "minute", 2);
|
|
2243
|
-
__decorateClass$
|
|
2249
|
+
__decorateClass$15([
|
|
2244
2250
|
e$7({ type: String })
|
|
2245
2251
|
], SonicDate.prototype, "language", 2);
|
|
2246
|
-
__decorateClass$
|
|
2252
|
+
__decorateClass$15([
|
|
2247
2253
|
e$7({ type: Boolean })
|
|
2248
2254
|
], SonicDate.prototype, "renderIf", 2);
|
|
2249
|
-
__decorateClass$
|
|
2255
|
+
__decorateClass$15([
|
|
2250
2256
|
e$7({ type: Boolean })
|
|
2251
2257
|
], SonicDate.prototype, "now", 2);
|
|
2252
|
-
SonicDate = __decorateClass$
|
|
2253
|
-
e$8(tagName
|
|
2258
|
+
SonicDate = __decorateClass$15([
|
|
2259
|
+
e$8(tagName$_)
|
|
2254
2260
|
], SonicDate);
|
|
2255
2261
|
const _LocationHandler = class {
|
|
2256
2262
|
static listen() {
|
|
@@ -2258,7 +2264,10 @@ const _LocationHandler = class {
|
|
|
2258
2264
|
if (!_LocationHandler.listening) {
|
|
2259
2265
|
return;
|
|
2260
2266
|
}
|
|
2261
|
-
const newURL = (_a2 = document.location) == null ? void 0 : _a2.href.replace(
|
|
2267
|
+
const newURL = (_a2 = document.location) == null ? void 0 : _a2.href.replace(
|
|
2268
|
+
document.location.origin,
|
|
2269
|
+
""
|
|
2270
|
+
);
|
|
2262
2271
|
if (_LocationHandler.prevURL && _LocationHandler.prevURL != newURL) {
|
|
2263
2272
|
_LocationHandler.prevURL = newURL;
|
|
2264
2273
|
_LocationHandler.listeners.forEach((listener) => {
|
|
@@ -2335,8 +2344,9 @@ const _LocationHandler = class {
|
|
|
2335
2344
|
document.location.href = to;
|
|
2336
2345
|
}
|
|
2337
2346
|
static updateComponentActiveState(component) {
|
|
2338
|
-
if (component.autoActive == "disabled")
|
|
2347
|
+
if (component.autoActive == "disabled") {
|
|
2339
2348
|
return;
|
|
2349
|
+
}
|
|
2340
2350
|
if (component.href && component.href.indexOf("http") != 0) {
|
|
2341
2351
|
const url1 = new URL(component.href, document.location.href);
|
|
2342
2352
|
const url2 = new URL(component.location || "", document.location.origin);
|
|
@@ -2355,7 +2365,10 @@ const _LocationHandler = class {
|
|
|
2355
2365
|
let LocationHandler$1 = _LocationHandler;
|
|
2356
2366
|
LocationHandler$1.listeners = [];
|
|
2357
2367
|
LocationHandler$1.listening = false;
|
|
2358
|
-
LocationHandler$1.prevURL = (_a = document.location) == null ? void 0 : _a.href.replace(
|
|
2368
|
+
LocationHandler$1.prevURL = (_a = document.location) == null ? void 0 : _a.href.replace(
|
|
2369
|
+
document.location.origin,
|
|
2370
|
+
""
|
|
2371
|
+
);
|
|
2359
2372
|
/**
|
|
2360
2373
|
* @license
|
|
2361
2374
|
* Copyright 2017 Google LLC
|
|
@@ -2413,15 +2426,15 @@ const i$1 = e$2(class extends i$2 {
|
|
|
2413
2426
|
return x$1;
|
|
2414
2427
|
}
|
|
2415
2428
|
});
|
|
2416
|
-
var __defProp$
|
|
2417
|
-
var __getOwnPropDesc$
|
|
2418
|
-
var __decorateClass$
|
|
2419
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
2429
|
+
var __defProp$14 = Object.defineProperty;
|
|
2430
|
+
var __getOwnPropDesc$14 = Object.getOwnPropertyDescriptor;
|
|
2431
|
+
var __decorateClass$14 = (decorators, target, key, kind) => {
|
|
2432
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$14(target, key) : target;
|
|
2420
2433
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
2421
2434
|
if (decorator = decorators[i2])
|
|
2422
2435
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
2423
2436
|
if (kind && result)
|
|
2424
|
-
__defProp$
|
|
2437
|
+
__defProp$14(target, key, result);
|
|
2425
2438
|
return result;
|
|
2426
2439
|
};
|
|
2427
2440
|
const keyboardLoops = /* @__PURE__ */ new Map();
|
|
@@ -2584,20 +2597,15 @@ const Form$2 = (superClass) => {
|
|
|
2584
2597
|
next = loop[index - 1];
|
|
2585
2598
|
}
|
|
2586
2599
|
}
|
|
2587
|
-
const elt = (_a2 = next == null ? void 0 : next.shadowRoot) == null ? void 0 : _a2.querySelector(
|
|
2588
|
-
selector
|
|
2589
|
-
);
|
|
2600
|
+
const elt = (_a2 = next == null ? void 0 : next.shadowRoot) == null ? void 0 : _a2.querySelector(selector);
|
|
2590
2601
|
if (elt && elt.focus) {
|
|
2591
2602
|
elt.focus();
|
|
2592
2603
|
e2.preventDefault();
|
|
2593
|
-
e2.stopPropagation();
|
|
2594
2604
|
}
|
|
2595
2605
|
});
|
|
2596
2606
|
}
|
|
2597
2607
|
connectedCallback() {
|
|
2598
|
-
this.formDataProvider = this.getAncestorAttributeValue(
|
|
2599
|
-
"formDataProvider"
|
|
2600
|
-
);
|
|
2608
|
+
this.formDataProvider = this.getAncestorAttributeValue("formDataProvider");
|
|
2601
2609
|
super.connectedCallback();
|
|
2602
2610
|
this.addKeyboardNavigation();
|
|
2603
2611
|
}
|
|
@@ -2612,34 +2620,34 @@ const Form$2 = (superClass) => {
|
|
|
2612
2620
|
}
|
|
2613
2621
|
}
|
|
2614
2622
|
}
|
|
2615
|
-
__decorateClass$
|
|
2623
|
+
__decorateClass$14([
|
|
2616
2624
|
e$7({ type: Boolean, reflect: true })
|
|
2617
2625
|
], FormElement2.prototype, "touched", 2);
|
|
2618
|
-
__decorateClass$
|
|
2626
|
+
__decorateClass$14([
|
|
2619
2627
|
e$7({ type: Boolean })
|
|
2620
2628
|
], FormElement2.prototype, "error", 2);
|
|
2621
|
-
__decorateClass$
|
|
2629
|
+
__decorateClass$14([
|
|
2622
2630
|
e$7({ type: Boolean })
|
|
2623
2631
|
], FormElement2.prototype, "autofocus", 2);
|
|
2624
|
-
__decorateClass$
|
|
2632
|
+
__decorateClass$14([
|
|
2625
2633
|
e$7({ type: Boolean })
|
|
2626
2634
|
], FormElement2.prototype, "required", 2);
|
|
2627
|
-
__decorateClass$
|
|
2635
|
+
__decorateClass$14([
|
|
2628
2636
|
e$7()
|
|
2629
2637
|
], FormElement2.prototype, "forceAutoFill", 2);
|
|
2630
|
-
__decorateClass$
|
|
2638
|
+
__decorateClass$14([
|
|
2631
2639
|
e$7({ type: Boolean })
|
|
2632
2640
|
], FormElement2.prototype, "disabled", 2);
|
|
2633
|
-
__decorateClass$
|
|
2641
|
+
__decorateClass$14([
|
|
2634
2642
|
e$7({ type: String, attribute: "data-aria-label" })
|
|
2635
2643
|
], FormElement2.prototype, "ariaLabel", 2);
|
|
2636
|
-
__decorateClass$
|
|
2644
|
+
__decorateClass$14([
|
|
2637
2645
|
e$7({ type: String, attribute: "data-aria-labelledby" })
|
|
2638
2646
|
], FormElement2.prototype, "ariaLabelledby", 2);
|
|
2639
|
-
__decorateClass$
|
|
2647
|
+
__decorateClass$14([
|
|
2640
2648
|
e$7()
|
|
2641
2649
|
], FormElement2.prototype, "name", 1);
|
|
2642
|
-
__decorateClass$
|
|
2650
|
+
__decorateClass$14([
|
|
2643
2651
|
e$7()
|
|
2644
2652
|
], FormElement2.prototype, "value", 1);
|
|
2645
2653
|
return FormElement2;
|
|
@@ -2804,15 +2812,15 @@ window["concorde-utils"] = {
|
|
|
2804
2812
|
PublisherManager,
|
|
2805
2813
|
api
|
|
2806
2814
|
};
|
|
2807
|
-
var __defProp$
|
|
2808
|
-
var __getOwnPropDesc$
|
|
2809
|
-
var __decorateClass$
|
|
2810
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
2815
|
+
var __defProp$13 = Object.defineProperty;
|
|
2816
|
+
var __getOwnPropDesc$13 = Object.getOwnPropertyDescriptor;
|
|
2817
|
+
var __decorateClass$13 = (decorators, target, key, kind) => {
|
|
2818
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$13(target, key) : target;
|
|
2811
2819
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
2812
2820
|
if (decorator = decorators[i2])
|
|
2813
2821
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
2814
2822
|
if (kind && result)
|
|
2815
|
-
__defProp$
|
|
2823
|
+
__defProp$13(target, key, result);
|
|
2816
2824
|
return result;
|
|
2817
2825
|
};
|
|
2818
2826
|
const Form$1 = (superClass) => {
|
|
@@ -3053,22 +3061,22 @@ const Form$1 = (superClass) => {
|
|
|
3053
3061
|
}
|
|
3054
3062
|
}
|
|
3055
3063
|
}
|
|
3056
|
-
__decorateClass$
|
|
3064
|
+
__decorateClass$13([
|
|
3057
3065
|
e$7()
|
|
3058
3066
|
], FormCheckable2.prototype, "value", 1);
|
|
3059
|
-
__decorateClass$
|
|
3067
|
+
__decorateClass$13([
|
|
3060
3068
|
e$7()
|
|
3061
3069
|
], FormCheckable2.prototype, "forceAutoFill", 2);
|
|
3062
|
-
__decorateClass$
|
|
3070
|
+
__decorateClass$13([
|
|
3063
3071
|
e$7({ type: Boolean })
|
|
3064
3072
|
], FormCheckable2.prototype, "unique", 2);
|
|
3065
|
-
__decorateClass$
|
|
3073
|
+
__decorateClass$13([
|
|
3066
3074
|
e$7({ type: Boolean })
|
|
3067
3075
|
], FormCheckable2.prototype, "radio", 2);
|
|
3068
|
-
__decorateClass$
|
|
3076
|
+
__decorateClass$13([
|
|
3069
3077
|
e$7({ type: Boolean })
|
|
3070
3078
|
], FormCheckable2.prototype, "unCheckOnDisconnect", 2);
|
|
3071
|
-
__decorateClass$
|
|
3079
|
+
__decorateClass$13([
|
|
3072
3080
|
e$7()
|
|
3073
3081
|
], FormCheckable2.prototype, "checked", 1);
|
|
3074
3082
|
return FormCheckable2;
|
|
@@ -3080,18 +3088,18 @@ const Form$1 = (superClass) => {
|
|
|
3080
3088
|
*/
|
|
3081
3089
|
const l$2 = (l2) => null != l2 ? l2 : b$1;
|
|
3082
3090
|
const fontSize = i$4`:host{--sc-fs:1rem;--sc-lh:1.2;font-size:var(--sc-fs);line-height:var(--sc-lh)}:host([size="2xs"]){--sc-fs:0.625rem}:host([size=xs]){--sc-fs:0.75rem}:host([size=sm]){--sc-fs:0.875rem}:host([size=lg]){--sc-fs:1.125rem}:host([size=xl]){--sc-fs:1.25rem}:host([size="2xl"]){--sc-fs:1.5rem}`;
|
|
3083
|
-
var __defProp$
|
|
3084
|
-
var __getOwnPropDesc$
|
|
3085
|
-
var __decorateClass$
|
|
3086
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
3091
|
+
var __defProp$12 = Object.defineProperty;
|
|
3092
|
+
var __getOwnPropDesc$12 = Object.getOwnPropertyDescriptor;
|
|
3093
|
+
var __decorateClass$12 = (decorators, target, key, kind) => {
|
|
3094
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$12(target, key) : target;
|
|
3087
3095
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
3088
3096
|
if (decorator = decorators[i2])
|
|
3089
3097
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
3090
3098
|
if (kind && result)
|
|
3091
|
-
__defProp$
|
|
3099
|
+
__defProp$12(target, key, result);
|
|
3092
3100
|
return result;
|
|
3093
3101
|
};
|
|
3094
|
-
const tagName$
|
|
3102
|
+
const tagName$Z = "sonic-button";
|
|
3095
3103
|
let Button = class extends Form$1(Form$2(Subscriber$1(s$3))) {
|
|
3096
3104
|
constructor() {
|
|
3097
3105
|
super(...arguments);
|
|
@@ -3117,7 +3125,6 @@ let Button = class extends Form$1(Form$2(Subscriber$1(s$3))) {
|
|
|
3117
3125
|
this._href = value;
|
|
3118
3126
|
if (this.href && this.href.indexOf("http") != 0) {
|
|
3119
3127
|
LocationHandler$1.onChange(this);
|
|
3120
|
-
this.location = document.location.href.replace(document.location.origin, "");
|
|
3121
3128
|
} else
|
|
3122
3129
|
LocationHandler$1.offChange(this);
|
|
3123
3130
|
this.requestUpdate();
|
|
@@ -3166,7 +3173,12 @@ let Button = class extends Form$1(Form$2(Subscriber$1(s$3))) {
|
|
|
3166
3173
|
}
|
|
3167
3174
|
set location(value) {
|
|
3168
3175
|
this._location = value;
|
|
3169
|
-
|
|
3176
|
+
this.requestUpdate();
|
|
3177
|
+
}
|
|
3178
|
+
updated(changedProperties) {
|
|
3179
|
+
if (changedProperties.has("location") || changedProperties.has("href") || changedProperties.has("autoActive")) {
|
|
3180
|
+
LocationHandler$1.updateComponentActiveState(this);
|
|
3181
|
+
}
|
|
3170
3182
|
}
|
|
3171
3183
|
render() {
|
|
3172
3184
|
const btnStyles = {
|
|
@@ -3187,88 +3199,91 @@ let Button = class extends Form$1(Form$2(Subscriber$1(s$3))) {
|
|
|
3187
3199
|
};
|
|
3188
3200
|
Button.styles = [
|
|
3189
3201
|
fontSize,
|
|
3190
|
-
i$4`*{box-sizing:border-box}:host{--sc-btn-gap:0.35em;--sc-btn-py:0.25em;--sc-btn-px:1.1em;--sc-btn-fs:var(--sc-fs, 1rem);--sc-btn-fw:var(--sc-btn-font-weight);--sc-btn-ff:var(--sc-btn-font-family);--sc-btn-height:var(--sc-form-height);--btn-color:var(--sc-btn-color, var(--sc-base-content));--btn-bg:var(--sc-btn-bg, var(--sc-base-100));--sc-btn-border-style:solid;--sc-btn-border-width:var(--sc-form-border-width);--sc-btn-border-color:transparent;--btn-outline-bg-hover:var(
|
|
3202
|
+
i$4`*{box-sizing:border-box}:host{--sc-btn-gap:0.35em;--sc-btn-py:0.25em;--sc-btn-px:1.1em;--sc-btn-fs:var(--sc-fs, 1rem);--sc-btn-fw:var(--sc-btn-font-weight);--sc-btn-ff:var(--sc-btn-font-family);--sc-btn-height:var(--sc-form-height);--btn-color:var(--sc-btn-color, var(--sc-base-content));--btn-bg:var(--sc-btn-bg, var(--sc-base-100));--sc-btn-border-style:solid;--sc-btn-border-width:var(--sc-form-border-width);--sc-btn-border-color:transparent;--btn-outline-bg-hover:var(
|
|
3203
|
+
--sc-btn-outline-bg-hover,
|
|
3204
|
+
var(--sc-base-100)
|
|
3205
|
+
);--sc-btn-ghost-bg-hover:var(--sc-base-100);--sc-btn-active-color:var(--sc-base);--sc-btn-hover-filter:brightness(0.98);--sc-btn-active-filter:brightness(0.97);--sc-btn-active-bg:var(--sc-base-content);--sc-item-rounded-tr:var(--sc-btn-rounded);--sc-item-rounded-tl:var(--sc-btn-rounded);--sc-item-rounded-bl:var(--sc-btn-rounded);--sc-item-rounded-br:var(--sc-btn-rounded);display:inline-flex;vertical-align:middle;box-sizing:border-box;-webkit-print-color-adjust:exact}:host a{display:contents;color:unset}:host button{display:flex;flex:1;box-sizing:border-box;align-items:center;justify-content:center;font-family:var(--sc-btn-ff);font-weight:var(--sc-btn-fw);font-size:var(--sc-btn-fs);cursor:pointer;text-align:center;line-height:1.1;border-radius:var(--sc-item-rounded-tl) var(--sc-item-rounded-tr) var(--sc-item-rounded-br) var(--sc-item-rounded-bl);background:var(--btn-bg);color:var(--btn-color);padding-top:var(--sc-btn-py);padding-bottom:var(--sc-btn-py);padding-left:var(--sc-btn-px);padding-right:var(--sc-btn-px);border:var(--sc-btn-border-width) var(--sc-btn-border-style) var(--sc-btn-border-color);min-height:var(--sc-btn-height)}:host button.has-prefix-or-suffix{gap:var(--sc-btn-gap)}:host button:focus,:host button:hover{filter:var(--sc-btn-hover-filter)}:host button:active{filter:var(--sc-btn-active-filter)}:host([type=default]) button{--btn-color:var(--sc-base-content);--btn-bg:var(--sc-base-100)}:host([type=primary]) button{--btn-color:var(--sc-primary-content);--btn-bg:var(--sc-primary)}:host([type=warning]) button{--btn-color:var(--sc-warning-content);--btn-bg:var(--sc-warning)}:host([type=danger]) button{--btn-color:var(--sc-danger-content);--btn-bg:var(--sc-danger)}:host([type=info]) button{--btn-color:var(--sc-info-content);--btn-bg:var(--sc-info)}:host([type=success]) button{--btn-color:var(--sc-success-content);--btn-bg:var(--sc-success)}:host([type=neutral]) button{--btn-color:var(--sc-base);--btn-bg:var(--sc-base-600)}:host([type=custom]) button{--btn-color:var(--sc-btn-custom-color);--btn-bg:var(--sc-btn-custom-bg)}:host([variant=unstyled]){display:inline-block}:host([variant=unstyled]) button{all:unset;display:contents;cursor:pointer;--sc-btn-height:auto;--sc-btn-width:auto}:host(:not([disabled])) button:focus{box-shadow:0 0 0 .18rem var(--sc-base-300);border-color:var(--sc-base-300)!important;outline:0}:host([variant=ghost][type]) button{color:var(--btn-bg);background:0 0}:host([variant=ghost][type=default]) button{color:var(--btn-color);background:0 0}:host([variant=ghost]) button:hover{background:var(--sc-btn-ghost-bg-hover);filter:none}:host([active][variant=ghost]) button{background:var(--sc-btn-ghost-bg-hover);filter:none}:host([active][variant=ghost]) button:hover{filter:var(--sc-btn-hover-filter)}:host([variant=outline][type]) button{border-color:var(--btn-bg);color:var(--btn-bg);background:0 0}:host([variant=outline][type=default]) button{border-color:var(--sc-base-400);color:var(--sc-base-500);background:0 0}:host([variant=outline]) button:hover{background:var(--btn-outline-bg-hover)}:host([variant=link]:not([size])){vertical-align:baseline;margin-left:.25em;margin-right:.25em}:host([variant=link]:not([size])){font-size:inherit}:host([variant=link]) button{text-decoration:underline;padding:0;background:0 0;border:none;font-size:inherit;min-height:0;color:inherit}:host([variant=link][type]) button{color:var(--btn-bg)}:host([variant=link][type=default]) button{color:inherit}:host([variant=link]) button:focus,:host([variant=link]) button:hover{text-decoration:none}:host([shape=circle]) button{border-radius:50%}:host([shape=circle]) button,:host([shape=square]) button{width:var(--sc-btn-height);height:var(--sc-btn-height);padding:0;align-items:center;justify-content:0;text-align:center!important}:host([shape=block]),:host([shape=block]) button{width:100%}:host([disabled]){opacity:.3;pointer-events:none;user-select:none}:host([active]:not([variant=ghost]):not([variant=unstyled])) button{background:var(--sc-btn-active-bg);color:var(--sc-btn-active-color);border-color:var(--sc-btn-active-bg)}:host([align=left]) button{text-align:left}:host([align=right]) button{text-align:right}.main-slot{flex-grow:1;display:block}:host([minWidth]) .main-slot{flex-grow:0}slot[name=prefix],slot[name=suffix]{flex-shrink:0}::slotted(sonic-icon){min-width:1em;text-align:center}:host([icon]) ::slotted(sonic-icon){font-size:1.2em;vertical-align:middle}sonic-tooltip{display:contents}:host(:not([active])) ::slotted([swap=on]){display:none!important}:host([active]) ::slotted([swap=off]){display:none!important}:host([loading]){pointer-events:none;position:relative}:host([loading]) slot{opacity:0!important;pointer-events:none}:host([loading]) .loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;line-height:0;height:var(--sc-btn-ff);width:var(--sc-btn-ff);animation:rotation 2s infinite linear}@keyframes rotation{from{transform-origin:50% 50%;transform:translate(-50%,-50%) rotate(0)}to{transform-origin:50% 50%;transform:translate(-50%,-50%) rotate(359deg)}}`
|
|
3191
3206
|
];
|
|
3192
|
-
__decorateClass$
|
|
3207
|
+
__decorateClass$12([
|
|
3193
3208
|
e$7({ type: String, reflect: true })
|
|
3194
3209
|
], Button.prototype, "type", 2);
|
|
3195
|
-
__decorateClass$
|
|
3210
|
+
__decorateClass$12([
|
|
3196
3211
|
e$7({ type: String, reflect: true })
|
|
3197
3212
|
], Button.prototype, "variant", 2);
|
|
3198
|
-
__decorateClass$
|
|
3213
|
+
__decorateClass$12([
|
|
3199
3214
|
e$7({ type: String, reflect: true })
|
|
3200
3215
|
], Button.prototype, "size", 2);
|
|
3201
|
-
__decorateClass$
|
|
3216
|
+
__decorateClass$12([
|
|
3202
3217
|
e$7({ type: String, reflect: true })
|
|
3203
3218
|
], Button.prototype, "shape", 2);
|
|
3204
|
-
__decorateClass$
|
|
3219
|
+
__decorateClass$12([
|
|
3205
3220
|
e$7({ type: String })
|
|
3206
3221
|
], Button.prototype, "direction", 2);
|
|
3207
|
-
__decorateClass$
|
|
3222
|
+
__decorateClass$12([
|
|
3208
3223
|
e$7({ type: String, reflect: true })
|
|
3209
3224
|
], Button.prototype, "alignItems", 2);
|
|
3210
|
-
__decorateClass$
|
|
3225
|
+
__decorateClass$12([
|
|
3211
3226
|
e$7({ type: String })
|
|
3212
3227
|
], Button.prototype, "justify", 2);
|
|
3213
|
-
__decorateClass$
|
|
3228
|
+
__decorateClass$12([
|
|
3214
3229
|
e$7({ type: String, reflect: true })
|
|
3215
3230
|
], Button.prototype, "align", 2);
|
|
3216
|
-
__decorateClass$
|
|
3231
|
+
__decorateClass$12([
|
|
3217
3232
|
e$7({ type: String })
|
|
3218
3233
|
], Button.prototype, "minWidth", 2);
|
|
3219
|
-
__decorateClass$
|
|
3234
|
+
__decorateClass$12([
|
|
3220
3235
|
e$7({ type: Boolean, reflect: true })
|
|
3221
3236
|
], Button.prototype, "icon", 2);
|
|
3222
|
-
__decorateClass$
|
|
3237
|
+
__decorateClass$12([
|
|
3223
3238
|
e$7({ type: String })
|
|
3224
3239
|
], Button.prototype, "autoActive", 2);
|
|
3225
|
-
__decorateClass$
|
|
3240
|
+
__decorateClass$12([
|
|
3226
3241
|
e$7({ type: Boolean, reflect: true })
|
|
3227
3242
|
], Button.prototype, "loading", 2);
|
|
3228
|
-
__decorateClass$
|
|
3243
|
+
__decorateClass$12([
|
|
3229
3244
|
t$3()
|
|
3230
3245
|
], Button.prototype, "hasPrefix", 2);
|
|
3231
|
-
__decorateClass$
|
|
3246
|
+
__decorateClass$12([
|
|
3232
3247
|
t$3()
|
|
3233
3248
|
], Button.prototype, "hasSuffix", 2);
|
|
3234
|
-
__decorateClass$
|
|
3249
|
+
__decorateClass$12([
|
|
3235
3250
|
l$6({ flatten: true, slot: "prefix" })
|
|
3236
3251
|
], Button.prototype, "prefixes", 2);
|
|
3237
|
-
__decorateClass$
|
|
3252
|
+
__decorateClass$12([
|
|
3238
3253
|
l$6({ flatten: true, slot: "suffix" })
|
|
3239
3254
|
], Button.prototype, "suffixes", 2);
|
|
3240
|
-
__decorateClass$
|
|
3255
|
+
__decorateClass$12([
|
|
3241
3256
|
e$7({ type: String })
|
|
3242
3257
|
], Button.prototype, "target", 2);
|
|
3243
|
-
__decorateClass$
|
|
3258
|
+
__decorateClass$12([
|
|
3244
3259
|
e$7({ type: String })
|
|
3245
3260
|
], Button.prototype, "href", 1);
|
|
3246
|
-
__decorateClass$
|
|
3261
|
+
__decorateClass$12([
|
|
3247
3262
|
e$7({ type: String })
|
|
3248
3263
|
], Button.prototype, "goBack", 2);
|
|
3249
|
-
__decorateClass$
|
|
3264
|
+
__decorateClass$12([
|
|
3250
3265
|
e$7({ type: Boolean })
|
|
3251
3266
|
], Button.prototype, "pushState", 2);
|
|
3252
|
-
__decorateClass$
|
|
3267
|
+
__decorateClass$12([
|
|
3253
3268
|
e$7({ type: Boolean, reflect: true })
|
|
3254
3269
|
], Button.prototype, "active", 2);
|
|
3255
|
-
Button = __decorateClass$
|
|
3256
|
-
e$8(tagName$
|
|
3270
|
+
Button = __decorateClass$12([
|
|
3271
|
+
e$8(tagName$Z)
|
|
3257
3272
|
], Button);
|
|
3258
3273
|
const inline = i$4`:host([align=left]) .sonic-loader--inline{margin-left:0}:host([align=right]) .sonic-loader--inline{margin-left:auto;margin-right:0}.sonic-loader--inline{display:block;position:relative;width:80px;height:80px;margin:auto;z-index:20}.sonic-loader--inline div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:var(--sc-loader-bg);animation-timing-function:cubic-bezier(0,1,1,0)}.sonic-loader--inline div:nth-child(1){left:8px;animation:lds-ellipsis1 .6s infinite}.sonic-loader--inline div:nth-child(2){left:8px;animation:lds-ellipsis2 .6s infinite}.sonic-loader--inline div:nth-child(3){left:32px;animation:lds-ellipsis2 .6s infinite}.sonic-loader--inline div:nth-child(4){left:56px;animation:lds-ellipsis3 .6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0,0)}100%{transform:translate(24px,0)}}`;
|
|
3259
3274
|
const fixed = i$4`@keyframes sonic-loader--fixed{0%{transform:scale(0);opacity:0}5%{opacity:1}70%{opacity:90%}100%{transform:scale(1);opacity:0}}.sonic-loader--fixed{position:fixed;top:50%;left:50%;transform:transateY(-50%) translateX(-50%);z-index:999}.sonic-loader--fixed>div:nth-child(2){animation-delay:-.5s}.sonic-loader--fixed>div:nth-child(3){animation-delay:-.2s}.sonic-loader--fixed>div:nth-child(4){display:none!important}.sonic-loader--fixed>div{background-color:var(--sc-loader-bg);width:5rem;height:5rem;border-radius:100%;margin:2px;animation-fill-mode:both;position:absolute;top:0;opacity:0;margin:0;top:-2.5rem;left:-2.5rem;width:5rem;height:5rem;animation:sonic-loader--fixed 1s 0s linear infinite}`;
|
|
3260
|
-
var __defProp$
|
|
3261
|
-
var __getOwnPropDesc$
|
|
3262
|
-
var __decorateClass$
|
|
3263
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
3275
|
+
var __defProp$11 = Object.defineProperty;
|
|
3276
|
+
var __getOwnPropDesc$11 = Object.getOwnPropertyDescriptor;
|
|
3277
|
+
var __decorateClass$11 = (decorators, target, key, kind) => {
|
|
3278
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$11(target, key) : target;
|
|
3264
3279
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
3265
3280
|
if (decorator = decorators[i2])
|
|
3266
3281
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
3267
3282
|
if (kind && result)
|
|
3268
|
-
__defProp$
|
|
3283
|
+
__defProp$11(target, key, result);
|
|
3269
3284
|
return result;
|
|
3270
3285
|
};
|
|
3271
|
-
const tagName$
|
|
3286
|
+
const tagName$Y = "sonic-loader";
|
|
3272
3287
|
let Loader = class extends s$3 {
|
|
3273
3288
|
constructor() {
|
|
3274
3289
|
super(...arguments);
|
|
@@ -3306,18 +3321,18 @@ Loader.styles = [
|
|
|
3306
3321
|
i$4`:host{--sc-loader-bg:var(--sc-primary, currentColor);pointer-events:none}.sonic-loader{opacity:0;animation:showLoader .5s .5s forwards}.sonic-loader--inline{animation-delay:0s}@keyframes showLoader{0%{opacity:0}100%{opacity:1}}`
|
|
3307
3322
|
];
|
|
3308
3323
|
Loader.callCounter = 0;
|
|
3309
|
-
__decorateClass$
|
|
3324
|
+
__decorateClass$11([
|
|
3310
3325
|
e$7({ type: String })
|
|
3311
3326
|
], Loader.prototype, "mode", 2);
|
|
3312
|
-
Loader = __decorateClass$
|
|
3313
|
-
e$8(tagName$
|
|
3327
|
+
Loader = __decorateClass$11([
|
|
3328
|
+
e$8(tagName$Y)
|
|
3314
3329
|
], Loader);
|
|
3315
3330
|
/**
|
|
3316
3331
|
* @license
|
|
3317
3332
|
* Copyright 2020 Google LLC
|
|
3318
3333
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3319
3334
|
*/
|
|
3320
|
-
const { I: l$1 } = L,
|
|
3335
|
+
const { I: l$1 } = L, e$1 = (o2) => void 0 === o2.strings, c$2 = () => document.createComment(""), r$2 = (o2, t2, i2) => {
|
|
3321
3336
|
var n2;
|
|
3322
3337
|
const d2 = o2._$AA.parentNode, v2 = void 0 === t2 ? o2._$AB : t2._$AA;
|
|
3323
3338
|
if (void 0 === i2) {
|
|
@@ -3347,8 +3362,6 @@ const { I: l$1 } = L, n$2 = (o2, l2) => void 0 === l2 ? void 0 !== (null == o2 ?
|
|
|
3347
3362
|
const o3 = t2.nextSibling;
|
|
3348
3363
|
t2.remove(), t2 = o3;
|
|
3349
3364
|
}
|
|
3350
|
-
}, a$1 = (o2) => {
|
|
3351
|
-
o2._$AR();
|
|
3352
3365
|
};
|
|
3353
3366
|
/**
|
|
3354
3367
|
* @license
|
|
@@ -3834,18 +3847,18 @@ Icons.fontAwesomeNext = {
|
|
|
3834
3847
|
}
|
|
3835
3848
|
};
|
|
3836
3849
|
Icons.default = _Icons.fontAwesomeNext;
|
|
3837
|
-
var __defProp$
|
|
3838
|
-
var __getOwnPropDesc$
|
|
3839
|
-
var __decorateClass$
|
|
3840
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
3850
|
+
var __defProp$10 = Object.defineProperty;
|
|
3851
|
+
var __getOwnPropDesc$10 = Object.getOwnPropertyDescriptor;
|
|
3852
|
+
var __decorateClass$10 = (decorators, target, key, kind) => {
|
|
3853
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$10(target, key) : target;
|
|
3841
3854
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
3842
3855
|
if (decorator = decorators[i2])
|
|
3843
3856
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
3844
3857
|
if (kind && result)
|
|
3845
|
-
__defProp$
|
|
3858
|
+
__defProp$10(target, key, result);
|
|
3846
3859
|
return result;
|
|
3847
3860
|
};
|
|
3848
|
-
const tagName$
|
|
3861
|
+
const tagName$X = "sonic-icon";
|
|
3849
3862
|
let Icon = class extends s$3 {
|
|
3850
3863
|
constructor() {
|
|
3851
3864
|
super(...arguments);
|
|
@@ -3899,28 +3912,28 @@ let Icon = class extends s$3 {
|
|
|
3899
3912
|
}
|
|
3900
3913
|
};
|
|
3901
3914
|
Icon.styles = i$4`:host{line-height:0;width:fit-content;height:fit-content;vertical-align:-.125em}svg{height:var(--sc-icon-size,1em);width:var(--sc-icon-size,1em)}svg:not([fill=none]){fill:currentColor}svg[fill=none]{stroke-width:2}:host([size="2xs"]) svg{--sc-icon-size:0.625em}:host([size=xs]) svg{--sc-icon-size:0.75em}:host([size=sm]) svg{--sc-icon-size:0.875em}:host([size=lg]) svg{--sc-icon-size:1.25em}:host([size=xl]) svg{--sc-icon-size:1.5em}:host([size="2xl"]) svg{--sc-icon-size:2em}:host([size="3xl"]) svg{--sc-icon-size:2.8em}`;
|
|
3902
|
-
__decorateClass$
|
|
3915
|
+
__decorateClass$10([
|
|
3903
3916
|
e$7({ type: String })
|
|
3904
3917
|
], Icon.prototype, "name", 1);
|
|
3905
|
-
__decorateClass$
|
|
3918
|
+
__decorateClass$10([
|
|
3906
3919
|
e$7({ type: String })
|
|
3907
3920
|
], Icon.prototype, "prefix", 1);
|
|
3908
|
-
__decorateClass$
|
|
3921
|
+
__decorateClass$10([
|
|
3909
3922
|
e$7({ type: String })
|
|
3910
3923
|
], Icon.prototype, "library", 1);
|
|
3911
|
-
Icon = __decorateClass$
|
|
3912
|
-
e$8(tagName$
|
|
3924
|
+
Icon = __decorateClass$10([
|
|
3925
|
+
e$8(tagName$X)
|
|
3913
3926
|
], Icon);
|
|
3914
3927
|
const customScroll = i$4`.custom-scroll{overflow:auto!important;overflow-y:overlay!important}.custom-scroll::-webkit-scrollbar{width:.5rem;height:.5rem;border:solid .15rem transparent;border-radius:var(--sc-rounded);background:0 0}.custom-scroll::-webkit-scrollbar-thumb{box-shadow:inset 0 0 2rem 2rem var(--sc-scrollbar-bg);border-radius:var(--sc-rounded);border:solid .15rem transparent}`;
|
|
3915
|
-
var __defProp
|
|
3916
|
-
var __getOwnPropDesc
|
|
3917
|
-
var __decorateClass
|
|
3918
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc
|
|
3928
|
+
var __defProp$$ = Object.defineProperty;
|
|
3929
|
+
var __getOwnPropDesc$$ = Object.getOwnPropertyDescriptor;
|
|
3930
|
+
var __decorateClass$$ = (decorators, target, key, kind) => {
|
|
3931
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$$(target, key) : target;
|
|
3919
3932
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
3920
3933
|
if (decorator = decorators[i2])
|
|
3921
3934
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
3922
3935
|
if (kind && result)
|
|
3923
|
-
__defProp
|
|
3936
|
+
__defProp$$(target, key, result);
|
|
3924
3937
|
return result;
|
|
3925
3938
|
};
|
|
3926
3939
|
const icon$1 = {
|
|
@@ -3929,7 +3942,7 @@ const icon$1 = {
|
|
|
3929
3942
|
error: "warning-circled-outline",
|
|
3930
3943
|
info: "info-empty"
|
|
3931
3944
|
};
|
|
3932
|
-
const tagName$
|
|
3945
|
+
const tagName$W = "sonic-toast-item";
|
|
3933
3946
|
let SonicToastItem = class extends s$3 {
|
|
3934
3947
|
constructor() {
|
|
3935
3948
|
super(...arguments);
|
|
@@ -3981,48 +3994,48 @@ SonicToastItem.styles = [
|
|
|
3981
3994
|
customScroll,
|
|
3982
3995
|
i$4`*{box-sizing:border-box}:host{display:block;pointer-events:auto;position:relative;--sc-toast-status-color:transparent;--sc-toast-color:var(--sc-base-content);--sc-toast-bg:var(--sc-base);--sc-toast-rounded:var(--sc-rounded-md);--sc-toast-shadow:var(--sc-shadow-lg)}.fixed-area{position:fixed;bottom:1.25rem;right:1.25rem;z-index:10000;display:flex;flex-direction:column-reverse}.sonic-toast{position:relative;pointer-events:auto;overflow:hidden;line-height:1.25;color:var(--sc-toast-color);box-shadow:var(--sc-toast-shadow);border-radius:var(--sc-toast-rounded);background:var(--sc-toast-bg)}.sonic-toast-content{padding:1em 2.5rem 1em 1em;display:flex;gap:.5rem;overflow:auto;position:relative}.sonic-toast-text{align-self:center;margin-top:auto;margin-bottom:auto;max-width:70ch;line-height:1.2}.sonic-toast-text a,::slotted(a:not(.btn)){color:inherit!important;text-decoration:underline!important;text-underline-offset:.15rem}.sonic-toast-text :is(p, ul, ol, hr, h1, h2, h3, h4, h5, h6),::slotted(:is(p,ul,ol,hr,h1,h2,h3,h4,h5,h6)){margin:0 0 .3em!important}.sonic-toast-text li,::slotted(li){margin-bottom:.15em!important}.sonic-toast-text>:is(p,ul,ol,hr,h1,h2,h3,h4,h5,h6):last-child,::slotted(:is(p,ul,ol,hr,h1,h2,h3,h4,h5,h6):last-child){margin-bottom:0!important}.sonic-toast-close{all:unset;position:absolute;z-index:4;pointer-events:initial;right:.5em;top:.5em;width:1.5rem;height:1.5rem;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;text-align:center;opacity:.5;background:rgba(0,0,0,0)}.sonic-toast-close:focus,.sonic-toast-close:hover{opacity:1;background:rgba(0,0,0,.075)}.sonic-toast-close svg{width:1rem;height:1rem;object-fit:contain;object-position:center center}.sonic-toast-title{font-weight:700;font-size:1.15rem;margin:.15em 0 .25em;line-height:1.2}.success{--sc-toast-status-color:var(--sc-success);--sc-toast-title-color:var(--sc-toast-status-color)}.error{--sc-toast-status-color:var(--sc-danger);--sc-toast-title-color:var(--sc-toast-status-color)}.warning{--sc-toast-status-color:var(--sc-warning);--sc-toast-title-color:var(--sc-toast-status-color)}.info{--sc-toast-status-color:var(--sc-info);--sc-toast-title-color:var(--sc-toast-status-color)}.error,.info,.success,.warning{border-top:3px solid var(--sc-toast-status-color,currentColor)}.sonic-toast:before{content:"";display:block;position:absolute;left:0;top:0;right:0;bottom:0;opacity:.05;pointer-events:none;transition:.2s;border-radius:var(--sc-toast-rounded);background-color:var(--sc-toast-status-color)}.sonic-toast:hover:before{opacity:.025}.error .sonic-toast-icon,.info .sonic-toast-icon,.success .sonic-toast-icon,.warning .sonic-toast-icon{color:var(--sc-toast-status-color,currentColor)}.sonic-toast-icon{position:sticky;top:0}.ghost{opacity:.85;pointer-events:none}`
|
|
3983
3996
|
];
|
|
3984
|
-
__decorateClass
|
|
3997
|
+
__decorateClass$$([
|
|
3985
3998
|
e$7({ type: String })
|
|
3986
3999
|
], SonicToastItem.prototype, "title", 2);
|
|
3987
|
-
__decorateClass
|
|
4000
|
+
__decorateClass$$([
|
|
3988
4001
|
e$7({ type: String })
|
|
3989
4002
|
], SonicToastItem.prototype, "id", 2);
|
|
3990
|
-
__decorateClass
|
|
4003
|
+
__decorateClass$$([
|
|
3991
4004
|
e$7({ type: String })
|
|
3992
4005
|
], SonicToastItem.prototype, "text", 2);
|
|
3993
|
-
__decorateClass
|
|
4006
|
+
__decorateClass$$([
|
|
3994
4007
|
e$7({ type: String })
|
|
3995
4008
|
], SonicToastItem.prototype, "status", 2);
|
|
3996
|
-
__decorateClass
|
|
4009
|
+
__decorateClass$$([
|
|
3997
4010
|
e$7({ type: Boolean })
|
|
3998
4011
|
], SonicToastItem.prototype, "ghost", 2);
|
|
3999
|
-
__decorateClass
|
|
4012
|
+
__decorateClass$$([
|
|
4000
4013
|
e$7({ type: Boolean })
|
|
4001
4014
|
], SonicToastItem.prototype, "preserve", 2);
|
|
4002
|
-
__decorateClass
|
|
4015
|
+
__decorateClass$$([
|
|
4003
4016
|
e$7({ type: Boolean })
|
|
4004
4017
|
], SonicToastItem.prototype, "dismissForever", 2);
|
|
4005
|
-
__decorateClass
|
|
4018
|
+
__decorateClass$$([
|
|
4006
4019
|
e$7({ type: String })
|
|
4007
4020
|
], SonicToastItem.prototype, "maxHeight", 2);
|
|
4008
|
-
__decorateClass
|
|
4021
|
+
__decorateClass$$([
|
|
4009
4022
|
t$3()
|
|
4010
4023
|
], SonicToastItem.prototype, "visible", 2);
|
|
4011
|
-
SonicToastItem = __decorateClass
|
|
4012
|
-
e$8(tagName$
|
|
4024
|
+
SonicToastItem = __decorateClass$$([
|
|
4025
|
+
e$8(tagName$W)
|
|
4013
4026
|
], SonicToastItem);
|
|
4014
|
-
var __defProp
|
|
4015
|
-
var __getOwnPropDesc
|
|
4016
|
-
var __decorateClass
|
|
4017
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc
|
|
4027
|
+
var __defProp$_ = Object.defineProperty;
|
|
4028
|
+
var __getOwnPropDesc$_ = Object.getOwnPropertyDescriptor;
|
|
4029
|
+
var __decorateClass$_ = (decorators, target, key, kind) => {
|
|
4030
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$_(target, key) : target;
|
|
4018
4031
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
4019
4032
|
if (decorator = decorators[i2])
|
|
4020
4033
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4021
4034
|
if (kind && result)
|
|
4022
|
-
__defProp
|
|
4035
|
+
__defProp$_(target, key, result);
|
|
4023
4036
|
return result;
|
|
4024
4037
|
};
|
|
4025
|
-
const tagName$
|
|
4038
|
+
const tagName$V = "sonic-toast";
|
|
4026
4039
|
let SonicToast$1 = class extends s$3 {
|
|
4027
4040
|
constructor() {
|
|
4028
4041
|
super(...arguments);
|
|
@@ -4137,24 +4150,24 @@ let SonicToast$1 = class extends s$3 {
|
|
|
4137
4150
|
});
|
|
4138
4151
|
}
|
|
4139
4152
|
};
|
|
4140
|
-
__decorateClass
|
|
4153
|
+
__decorateClass$_([
|
|
4141
4154
|
e$7({ type: Array })
|
|
4142
4155
|
], SonicToast$1.prototype, "toasts", 2);
|
|
4143
|
-
SonicToast$1 = __decorateClass
|
|
4144
|
-
e$8(tagName$
|
|
4156
|
+
SonicToast$1 = __decorateClass$_([
|
|
4157
|
+
e$8(tagName$V)
|
|
4145
4158
|
], SonicToast$1);
|
|
4146
4159
|
if (typeof window !== "undefined") {
|
|
4147
4160
|
window.SonicToast = SonicToast$1;
|
|
4148
4161
|
}
|
|
4149
|
-
var __defProp$
|
|
4150
|
-
var __getOwnPropDesc$
|
|
4151
|
-
var __decorateClass$
|
|
4152
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
4162
|
+
var __defProp$Z = Object.defineProperty;
|
|
4163
|
+
var __getOwnPropDesc$Z = Object.getOwnPropertyDescriptor;
|
|
4164
|
+
var __decorateClass$Z = (decorators, target, key, kind) => {
|
|
4165
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$Z(target, key) : target;
|
|
4153
4166
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
4154
4167
|
if (decorator = decorators[i2])
|
|
4155
4168
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4156
4169
|
if (kind && result)
|
|
4157
|
-
__defProp$
|
|
4170
|
+
__defProp$Z(target, key, result);
|
|
4158
4171
|
return result;
|
|
4159
4172
|
};
|
|
4160
4173
|
const Fetcher$1 = (superClass, propsType) => {
|
|
@@ -4286,10 +4299,14 @@ const Fetcher$1 = (superClass, propsType) => {
|
|
|
4286
4299
|
};
|
|
4287
4300
|
this.iObserver = new IntersectionObserver((entries) => this.onIntersection(entries), options);
|
|
4288
4301
|
let elt = this.shadowRoot ? this.shadowRoot.children[0] : this.children[0];
|
|
4289
|
-
if (elt
|
|
4302
|
+
if ((elt == null ? void 0 : elt.nodeName.toLocaleLowerCase()) == "slot")
|
|
4290
4303
|
elt = elt.children[0];
|
|
4291
4304
|
if (!elt || elt.nodeName.toLocaleLowerCase() == "template") {
|
|
4292
4305
|
elt = document.createElement("span");
|
|
4306
|
+
const style = elt.style;
|
|
4307
|
+
style.position = "absolute";
|
|
4308
|
+
style.pointerEvents = "none";
|
|
4309
|
+
this.lazyLoadSpan = elt;
|
|
4293
4310
|
this.appendChild(elt);
|
|
4294
4311
|
}
|
|
4295
4312
|
if (elt) {
|
|
@@ -4299,42 +4316,44 @@ const Fetcher$1 = (superClass, propsType) => {
|
|
|
4299
4316
|
}
|
|
4300
4317
|
}
|
|
4301
4318
|
onIntersection(entries) {
|
|
4302
|
-
var _a2;
|
|
4319
|
+
var _a2, _b;
|
|
4303
4320
|
for (const e2 of entries) {
|
|
4304
4321
|
if (e2.isIntersecting && this.isFirstLoad) {
|
|
4305
4322
|
this._fetchData();
|
|
4306
|
-
(_a2 = this.
|
|
4323
|
+
(_a2 = this.lazyLoadSpan) == null ? void 0 : _a2.remove();
|
|
4324
|
+
this.lazyLoadSpan = void 0;
|
|
4325
|
+
(_b = this.iObserver) == null ? void 0 : _b.disconnect();
|
|
4307
4326
|
break;
|
|
4308
4327
|
}
|
|
4309
4328
|
}
|
|
4310
4329
|
}
|
|
4311
4330
|
}
|
|
4312
|
-
__decorateClass$
|
|
4331
|
+
__decorateClass$Z([
|
|
4313
4332
|
e$7()
|
|
4314
4333
|
], FetcherElement.prototype, "props", 1);
|
|
4315
|
-
__decorateClass$
|
|
4334
|
+
__decorateClass$Z([
|
|
4316
4335
|
e$7({ type: String })
|
|
4317
4336
|
], FetcherElement.prototype, "endPoint", 1);
|
|
4318
|
-
__decorateClass$
|
|
4337
|
+
__decorateClass$Z([
|
|
4319
4338
|
e$7()
|
|
4320
4339
|
], FetcherElement.prototype, "requestId", 2);
|
|
4321
|
-
__decorateClass$
|
|
4340
|
+
__decorateClass$Z([
|
|
4322
4341
|
e$7({ type: Number })
|
|
4323
4342
|
], FetcherElement.prototype, "refetchEveryMs", 2);
|
|
4324
4343
|
return FetcherElement;
|
|
4325
4344
|
};
|
|
4326
|
-
var __defProp$
|
|
4327
|
-
var __getOwnPropDesc$
|
|
4328
|
-
var __decorateClass$
|
|
4329
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
4345
|
+
var __defProp$Y = Object.defineProperty;
|
|
4346
|
+
var __getOwnPropDesc$Y = Object.getOwnPropertyDescriptor;
|
|
4347
|
+
var __decorateClass$Y = (decorators, target, key, kind) => {
|
|
4348
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$Y(target, key) : target;
|
|
4330
4349
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
4331
4350
|
if (decorator = decorators[i2])
|
|
4332
4351
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4333
4352
|
if (kind && result)
|
|
4334
|
-
__defProp$
|
|
4353
|
+
__defProp$Y(target, key, result);
|
|
4335
4354
|
return result;
|
|
4336
4355
|
};
|
|
4337
|
-
const tagName$
|
|
4356
|
+
const tagName$U = "sonic-fetch";
|
|
4338
4357
|
let Fetch = class extends Fetcher$1(Subscriber$1(s$3)) {
|
|
4339
4358
|
render() {
|
|
4340
4359
|
return y`<slot></slot>`;
|
|
@@ -4343,21 +4362,21 @@ let Fetch = class extends Fetcher$1(Subscriber$1(s$3)) {
|
|
|
4343
4362
|
Fetch.styles = [
|
|
4344
4363
|
i$4`:host{display:contents}`
|
|
4345
4364
|
];
|
|
4346
|
-
Fetch = __decorateClass$
|
|
4347
|
-
e$8(tagName$
|
|
4365
|
+
Fetch = __decorateClass$Y([
|
|
4366
|
+
e$8(tagName$U)
|
|
4348
4367
|
], Fetch);
|
|
4349
|
-
var __defProp$
|
|
4350
|
-
var __getOwnPropDesc$
|
|
4351
|
-
var __decorateClass$
|
|
4352
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
4368
|
+
var __defProp$X = Object.defineProperty;
|
|
4369
|
+
var __getOwnPropDesc$X = Object.getOwnPropertyDescriptor;
|
|
4370
|
+
var __decorateClass$X = (decorators, target, key, kind) => {
|
|
4371
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$X(target, key) : target;
|
|
4353
4372
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
4354
4373
|
if (decorator = decorators[i2])
|
|
4355
4374
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4356
4375
|
if (kind && result)
|
|
4357
|
-
__defProp$
|
|
4376
|
+
__defProp$X(target, key, result);
|
|
4358
4377
|
return result;
|
|
4359
4378
|
};
|
|
4360
|
-
const tagName$
|
|
4379
|
+
const tagName$T = "sonic-if";
|
|
4361
4380
|
let SonicIF = class extends s$3 {
|
|
4362
4381
|
constructor() {
|
|
4363
4382
|
super(...arguments);
|
|
@@ -4370,11 +4389,11 @@ let SonicIF = class extends s$3 {
|
|
|
4370
4389
|
}
|
|
4371
4390
|
};
|
|
4372
4391
|
SonicIF.styles = i$4`:host{display:contents}`;
|
|
4373
|
-
__decorateClass$
|
|
4392
|
+
__decorateClass$X([
|
|
4374
4393
|
e$7({ type: Boolean })
|
|
4375
4394
|
], SonicIF.prototype, "condition", 2);
|
|
4376
|
-
SonicIF = __decorateClass$
|
|
4377
|
-
e$8(tagName$
|
|
4395
|
+
SonicIF = __decorateClass$X([
|
|
4396
|
+
e$8(tagName$T)
|
|
4378
4397
|
], SonicIF);
|
|
4379
4398
|
/**
|
|
4380
4399
|
* @license
|
|
@@ -4390,18 +4409,18 @@ const o$2 = e$2(class extends i$2 {
|
|
|
4390
4409
|
return this.ft === r2 ? x$1 : (this.ft = r2, document.importNode(r2.content, true));
|
|
4391
4410
|
}
|
|
4392
4411
|
});
|
|
4393
|
-
var __defProp$
|
|
4394
|
-
var __getOwnPropDesc$
|
|
4395
|
-
var __decorateClass$
|
|
4396
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
4412
|
+
var __defProp$W = Object.defineProperty;
|
|
4413
|
+
var __getOwnPropDesc$W = Object.getOwnPropertyDescriptor;
|
|
4414
|
+
var __decorateClass$W = (decorators, target, key, kind) => {
|
|
4415
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$W(target, key) : target;
|
|
4397
4416
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
4398
4417
|
if (decorator = decorators[i2])
|
|
4399
4418
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4400
4419
|
if (kind && result)
|
|
4401
|
-
__defProp$
|
|
4420
|
+
__defProp$W(target, key, result);
|
|
4402
4421
|
return result;
|
|
4403
4422
|
};
|
|
4404
|
-
const tagName$
|
|
4423
|
+
const tagName$S = "sonic-subscriber";
|
|
4405
4424
|
let SonicSubscriber = class extends Subscriber$1(s$3) {
|
|
4406
4425
|
constructor() {
|
|
4407
4426
|
super(...arguments);
|
|
@@ -4422,21 +4441,21 @@ let SonicSubscriber = class extends Subscriber$1(s$3) {
|
|
|
4422
4441
|
return y`<slot></slot>`;
|
|
4423
4442
|
}
|
|
4424
4443
|
};
|
|
4425
|
-
SonicSubscriber = __decorateClass$
|
|
4426
|
-
e$8(tagName$
|
|
4444
|
+
SonicSubscriber = __decorateClass$W([
|
|
4445
|
+
e$8(tagName$S)
|
|
4427
4446
|
], SonicSubscriber);
|
|
4428
|
-
var __defProp$
|
|
4429
|
-
var __getOwnPropDesc$
|
|
4430
|
-
var __decorateClass$
|
|
4431
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
4447
|
+
var __defProp$V = Object.defineProperty;
|
|
4448
|
+
var __getOwnPropDesc$V = Object.getOwnPropertyDescriptor;
|
|
4449
|
+
var __decorateClass$V = (decorators, target, key, kind) => {
|
|
4450
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$V(target, key) : target;
|
|
4432
4451
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
4433
4452
|
if (decorator = decorators[i2])
|
|
4434
4453
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4435
4454
|
if (kind && result)
|
|
4436
|
-
__defProp$
|
|
4455
|
+
__defProp$V(target, key, result);
|
|
4437
4456
|
return result;
|
|
4438
4457
|
};
|
|
4439
|
-
const tagName$
|
|
4458
|
+
const tagName$R = "sonic-list";
|
|
4440
4459
|
let List = class extends Fetcher$1(Subscriber$1(TemplatesContainer$1(s$3))) {
|
|
4441
4460
|
constructor() {
|
|
4442
4461
|
super(...arguments);
|
|
@@ -4520,29 +4539,39 @@ let List = class extends Fetcher$1(Subscriber$1(TemplatesContainer$1(s$3))) {
|
|
|
4520
4539
|
return b$1;
|
|
4521
4540
|
if (typeof key != "string" && typeof key != "number")
|
|
4522
4541
|
return b$1;
|
|
4523
|
-
const
|
|
4524
|
-
|
|
4542
|
+
const isLastChild = index >= length - 1;
|
|
4543
|
+
const indexMod2 = index % 2;
|
|
4544
|
+
const childPublisher = this.publisher[key];
|
|
4545
|
+
childPublisher._key_ = key + "";
|
|
4546
|
+
childPublisher._metadata_ = {
|
|
4547
|
+
...childPublisher._metadata_.get(),
|
|
4548
|
+
key,
|
|
4549
|
+
even: indexMod2 == 0,
|
|
4550
|
+
odd: indexMod2 == 1,
|
|
4551
|
+
onlyChild: length == 1,
|
|
4552
|
+
firstChild: index == 0,
|
|
4553
|
+
lastChild: isLastChild
|
|
4554
|
+
};
|
|
4525
4555
|
counter++;
|
|
4526
|
-
const isNotLast = index < length - 1;
|
|
4527
4556
|
if (templatePart)
|
|
4528
4557
|
counter = -1;
|
|
4529
4558
|
return item && y`<sonic-subscriber ?debug="${this.defferedDebug === true}" .bindPublisher="${function() {
|
|
4530
|
-
return
|
|
4531
|
-
}}" .propertyMap?="${this.itemPropertyMap}" dataProvider="${this.dataProvider}/list-item/${key}">${templatePart ? o$2(templatePart) : o$2(this.templateList[counter % templateCount])}</sonic-subscriber>${separator &&
|
|
4559
|
+
return childPublisher;
|
|
4560
|
+
}}" .propertyMap?="${this.itemPropertyMap}" dataProvider="${this.dataProvider}/list-item/${key}">${templatePart ? o$2(templatePart) : o$2(this.templateList[counter % templateCount])}</sonic-subscriber>${separator && !isLastChild ? o$2(separator) : b$1}`;
|
|
4532
4561
|
})}`;
|
|
4533
4562
|
}
|
|
4534
4563
|
};
|
|
4535
|
-
__decorateClass$
|
|
4564
|
+
__decorateClass$V([
|
|
4536
4565
|
e$7({ type: Object })
|
|
4537
4566
|
], List.prototype, "itemPropertyMap", 2);
|
|
4538
|
-
__decorateClass$
|
|
4567
|
+
__decorateClass$V([
|
|
4539
4568
|
e$7({ type: String })
|
|
4540
4569
|
], List.prototype, "templateKey", 2);
|
|
4541
|
-
__decorateClass$
|
|
4570
|
+
__decorateClass$V([
|
|
4542
4571
|
e$7({ type: String })
|
|
4543
4572
|
], List.prototype, "idKey", 2);
|
|
4544
|
-
List = __decorateClass$
|
|
4545
|
-
e$8(tagName$
|
|
4573
|
+
List = __decorateClass$V([
|
|
4574
|
+
e$8(tagName$R)
|
|
4546
4575
|
], List);
|
|
4547
4576
|
/**
|
|
4548
4577
|
* @license
|
|
@@ -4556,18 +4585,18 @@ function* o$1(o2, f2) {
|
|
|
4556
4585
|
yield f2(t2, i2++);
|
|
4557
4586
|
}
|
|
4558
4587
|
}
|
|
4559
|
-
var __defProp$
|
|
4560
|
-
var __getOwnPropDesc$
|
|
4561
|
-
var __decorateClass$
|
|
4562
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
4588
|
+
var __defProp$U = Object.defineProperty;
|
|
4589
|
+
var __getOwnPropDesc$U = Object.getOwnPropertyDescriptor;
|
|
4590
|
+
var __decorateClass$U = (decorators, target, key, kind) => {
|
|
4591
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$U(target, key) : target;
|
|
4563
4592
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
4564
4593
|
if (decorator = decorators[i2])
|
|
4565
4594
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4566
4595
|
if (kind && result)
|
|
4567
|
-
__defProp$
|
|
4596
|
+
__defProp$U(target, key, result);
|
|
4568
4597
|
return result;
|
|
4569
4598
|
};
|
|
4570
|
-
const tagName$
|
|
4599
|
+
const tagName$Q = "sonic-queue";
|
|
4571
4600
|
let Queue = class extends Subscriber$1(s$3) {
|
|
4572
4601
|
constructor() {
|
|
4573
4602
|
super(...arguments);
|
|
@@ -4583,7 +4612,6 @@ let Queue = class extends Subscriber$1(s$3) {
|
|
|
4583
4612
|
this.resultCount = 0;
|
|
4584
4613
|
this.noLazyload = false;
|
|
4585
4614
|
this.filteredFields = "";
|
|
4586
|
-
this.instanceId = 0;
|
|
4587
4615
|
this.localStorage = "disabled";
|
|
4588
4616
|
this.filterPublisher = null;
|
|
4589
4617
|
this.searchHash = "";
|
|
@@ -4603,22 +4631,19 @@ let Queue = class extends Subscriber$1(s$3) {
|
|
|
4603
4631
|
return;
|
|
4604
4632
|
}
|
|
4605
4633
|
async connectedCallback() {
|
|
4606
|
-
this.instanceId = Queue.instanceCounter++;
|
|
4607
4634
|
this.localStorage = this.getAttribute("localStorage") || this.localStorage;
|
|
4608
4635
|
this.removeAttribute("localStorage");
|
|
4609
4636
|
this.noShadowDom = "";
|
|
4610
4637
|
this.defferedDebug = this.hasAttribute("debug") || null;
|
|
4611
4638
|
if (!this.dataProvider)
|
|
4612
|
-
this.dataProvider = this.dataProviderExpression || "sonic-queue-" +
|
|
4639
|
+
this.dataProvider = this.dataProviderExpression || "sonic-queue-" + Queue.instanceCounter++ + "-" + Math.random().toString(36).substring(7);
|
|
4613
4640
|
if (!this.dataProviderExpression) {
|
|
4614
4641
|
this.dataProviderExpression = HTML.getAncestorAttributeValue(this.parentElement, "dataProvider") || "";
|
|
4615
4642
|
}
|
|
4616
4643
|
super.connectedCallback();
|
|
4617
4644
|
this.key = this.getAttribute("key");
|
|
4618
4645
|
if (!this.templates)
|
|
4619
|
-
this.templates = Array.from(
|
|
4620
|
-
this.querySelectorAll("template")
|
|
4621
|
-
);
|
|
4646
|
+
this.templates = Array.from(this.querySelectorAll("template"));
|
|
4622
4647
|
this.lastRequestTime = new Date().getTime();
|
|
4623
4648
|
await PublisherManager$1.getInstance().isLocalStrorageReady;
|
|
4624
4649
|
this.configFilter();
|
|
@@ -4682,7 +4707,6 @@ let Queue = class extends Subscriber$1(s$3) {
|
|
|
4682
4707
|
const newTime = new Date().getTime();
|
|
4683
4708
|
const requestDuration = newTime - this.lastRequestTime;
|
|
4684
4709
|
if (!this.nextHadEvent && e2) {
|
|
4685
|
-
this.publisher.resultCount = 0;
|
|
4686
4710
|
this.resultCount = 0;
|
|
4687
4711
|
}
|
|
4688
4712
|
this.nextHadEvent = !!e2;
|
|
@@ -4705,9 +4729,7 @@ let Queue = class extends Subscriber$1(s$3) {
|
|
|
4705
4729
|
offset = parseInt(item.offset.toString()) + parseInt(item.limit.toString());
|
|
4706
4730
|
}
|
|
4707
4731
|
if (requestDuration > 0 && e2 && !this.localStorage)
|
|
4708
|
-
this.limit = Math.round(
|
|
4709
|
-
this.limit / requestDuration * this.targetRequestDuration
|
|
4710
|
-
);
|
|
4732
|
+
this.limit = Math.round(this.limit / requestDuration * this.targetRequestDuration);
|
|
4711
4733
|
if (this.limit < 1)
|
|
4712
4734
|
this.limit = 1;
|
|
4713
4735
|
if (this.limit > 15)
|
|
@@ -4719,7 +4741,7 @@ let Queue = class extends Subscriber$1(s$3) {
|
|
|
4719
4741
|
const filterData = (_a2 = this.filterPublisher) == null ? void 0 : _a2.get();
|
|
4720
4742
|
const filteredFieldsArray = this.filteredFields.split(" ");
|
|
4721
4743
|
for (const f2 in filterData) {
|
|
4722
|
-
if (this.filteredFields && filteredFieldsArray.includes(f2) || filterData[f2] == null
|
|
4744
|
+
if (this.filteredFields && !filteredFieldsArray.includes(f2) || filterData[f2] == null)
|
|
4723
4745
|
continue;
|
|
4724
4746
|
searchParams.set(f2, filterData[f2]);
|
|
4725
4747
|
}
|
|
@@ -4731,8 +4753,7 @@ let Queue = class extends Subscriber$1(s$3) {
|
|
|
4731
4753
|
...this.props,
|
|
4732
4754
|
{
|
|
4733
4755
|
id: searchParams.toString() + "/" + this.props.length,
|
|
4734
|
-
dataProvider
|
|
4735
|
-
endPoint: dataProvider,
|
|
4756
|
+
dataProvider,
|
|
4736
4757
|
offset,
|
|
4737
4758
|
limit: this.limit
|
|
4738
4759
|
}
|
|
@@ -4744,71 +4765,65 @@ let Queue = class extends Subscriber$1(s$3) {
|
|
|
4744
4765
|
render() {
|
|
4745
4766
|
if (!Array.isArray(this.props))
|
|
4746
4767
|
return b$1;
|
|
4747
|
-
let lazyload = !this.noLazyload;
|
|
4748
|
-
if (this.props.length == 1) {
|
|
4749
|
-
lazyload = false;
|
|
4750
|
-
}
|
|
4751
4768
|
return y`${o$1(this.props, (item, index) => {
|
|
4752
4769
|
var _a2;
|
|
4753
|
-
const templates = index == 0 ? this.templates : (_a2 = this.templates) == null ? void 0 : _a2.filter(
|
|
4754
|
-
|
|
4755
|
-
);
|
|
4756
|
-
return y`<sonic-list fetch cache="${this.cache}" displayContents lazyBoundsRatio="${this.lazyBoundsRatio}" ?lazyload="${lazyload}" localStorage="${this.localStorage}" requestId="${this.requestId}" .itemPropertyMap="${this.itemPropertyMap}" ?debug="${this.defferedDebug === true}" @load="${this.next}" key="${this.key}" @loading="${this.resetDuration}" dataProvider="${item.dataProvider}" endPoint="${item.endPoint}" idKey="${this.idKey}" .templates="${templates}"></sonic-list>`;
|
|
4770
|
+
const templates = index == 0 ? this.templates : (_a2 = this.templates) == null ? void 0 : _a2.filter((elt) => elt.getAttribute("data-value") != "no-item");
|
|
4771
|
+
return y`<sonic-list fetch cache="${this.cache}" displayContents lazyBoundsRatio="${this.lazyBoundsRatio}" ?lazyload="${!this.noLazyload}" localStorage="${this.localStorage}" requestId="${this.requestId}" .itemPropertyMap="${this.itemPropertyMap}" ?debug="${this.defferedDebug === true}" @load="${this.next}" key="${this.key}" @loading="${this.resetDuration}" dataProvider="${item.dataProvider}" idKey="${this.idKey}" .templates="${templates}"></sonic-list>`;
|
|
4757
4772
|
})}`;
|
|
4758
4773
|
}
|
|
4759
4774
|
};
|
|
4760
4775
|
Queue.instanceCounter = 0;
|
|
4761
|
-
__decorateClass$
|
|
4776
|
+
__decorateClass$U([
|
|
4762
4777
|
e$7({ type: Array })
|
|
4763
4778
|
], Queue.prototype, "templates", 2);
|
|
4764
|
-
__decorateClass$
|
|
4779
|
+
__decorateClass$U([
|
|
4765
4780
|
e$7({ type: Object })
|
|
4766
4781
|
], Queue.prototype, "itemPropertyMap", 2);
|
|
4767
|
-
__decorateClass$
|
|
4782
|
+
__decorateClass$U([
|
|
4768
4783
|
e$7()
|
|
4769
4784
|
], Queue.prototype, "cache", 2);
|
|
4770
|
-
__decorateClass$
|
|
4785
|
+
__decorateClass$U([
|
|
4771
4786
|
e$7()
|
|
4772
4787
|
], Queue.prototype, "targetRequestDuration", 2);
|
|
4773
|
-
__decorateClass$
|
|
4788
|
+
__decorateClass$U([
|
|
4774
4789
|
e$7()
|
|
4775
4790
|
], Queue.prototype, "limit", 2);
|
|
4776
|
-
__decorateClass$
|
|
4791
|
+
__decorateClass$U([
|
|
4777
4792
|
e$7()
|
|
4778
4793
|
], Queue.prototype, "lazyBoundsRatio", 2);
|
|
4779
|
-
__decorateClass$
|
|
4794
|
+
__decorateClass$U([
|
|
4780
4795
|
e$7()
|
|
4781
4796
|
], Queue.prototype, "offset", 2);
|
|
4782
|
-
__decorateClass$
|
|
4797
|
+
__decorateClass$U([
|
|
4783
4798
|
e$7()
|
|
4784
4799
|
], Queue.prototype, "resultCount", 2);
|
|
4785
|
-
__decorateClass$
|
|
4800
|
+
__decorateClass$U([
|
|
4786
4801
|
e$7({ type: Boolean })
|
|
4787
4802
|
], Queue.prototype, "noLazyload", 2);
|
|
4788
|
-
__decorateClass$
|
|
4803
|
+
__decorateClass$U([
|
|
4789
4804
|
e$7()
|
|
4790
4805
|
], Queue.prototype, "filteredFields", 2);
|
|
4791
|
-
__decorateClass$
|
|
4806
|
+
__decorateClass$U([
|
|
4792
4807
|
e$7({ type: String })
|
|
4793
4808
|
], Queue.prototype, "dataProviderExpression", 2);
|
|
4794
|
-
__decorateClass$
|
|
4809
|
+
__decorateClass$U([
|
|
4795
4810
|
e$7({ type: String })
|
|
4796
4811
|
], Queue.prototype, "idKey", 2);
|
|
4797
|
-
Queue = __decorateClass$
|
|
4798
|
-
e$8(tagName$
|
|
4812
|
+
Queue = __decorateClass$U([
|
|
4813
|
+
e$8(tagName$Q)
|
|
4799
4814
|
], Queue);
|
|
4800
|
-
var __defProp$
|
|
4801
|
-
var __getOwnPropDesc$
|
|
4802
|
-
var __decorateClass$
|
|
4803
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
4815
|
+
var __defProp$T = Object.defineProperty;
|
|
4816
|
+
var __getOwnPropDesc$T = Object.getOwnPropertyDescriptor;
|
|
4817
|
+
var __decorateClass$T = (decorators, target, key, kind) => {
|
|
4818
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$T(target, key) : target;
|
|
4804
4819
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
4805
4820
|
if (decorator = decorators[i2])
|
|
4806
4821
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4807
4822
|
if (kind && result)
|
|
4808
|
-
__defProp$
|
|
4823
|
+
__defProp$T(target, key, result);
|
|
4809
4824
|
return result;
|
|
4810
4825
|
};
|
|
4811
|
-
const tagName$
|
|
4826
|
+
const tagName$P = "sonic-submit";
|
|
4812
4827
|
let Submit = class extends Subscriber$1(s$3) {
|
|
4813
4828
|
constructor() {
|
|
4814
4829
|
super(...arguments);
|
|
@@ -4970,23 +4985,23 @@ let Submit = class extends Subscriber$1(s$3) {
|
|
|
4970
4985
|
}
|
|
4971
4986
|
};
|
|
4972
4987
|
Submit.styles = i$4`[data-disabled]{opacity:.3;pointer-events:none;user-select:none}`;
|
|
4973
|
-
__decorateClass$
|
|
4988
|
+
__decorateClass$T([
|
|
4974
4989
|
e$7({ type: String })
|
|
4975
4990
|
], Submit.prototype, "submitResultKey", 2);
|
|
4976
|
-
__decorateClass$
|
|
4991
|
+
__decorateClass$T([
|
|
4977
4992
|
e$7({ type: Boolean })
|
|
4978
4993
|
], Submit.prototype, "disabled", 2);
|
|
4979
|
-
__decorateClass$
|
|
4994
|
+
__decorateClass$T([
|
|
4980
4995
|
e$7({ type: String })
|
|
4981
4996
|
], Submit.prototype, "endPoint", 2);
|
|
4982
|
-
__decorateClass$
|
|
4997
|
+
__decorateClass$T([
|
|
4983
4998
|
e$7()
|
|
4984
4999
|
], Submit.prototype, "name", 2);
|
|
4985
|
-
__decorateClass$
|
|
5000
|
+
__decorateClass$T([
|
|
4986
5001
|
e$7()
|
|
4987
5002
|
], Submit.prototype, "value", 2);
|
|
4988
|
-
Submit = __decorateClass$
|
|
4989
|
-
e$8(tagName$
|
|
5003
|
+
Submit = __decorateClass$T([
|
|
5004
|
+
e$8(tagName$P)
|
|
4990
5005
|
], Submit);
|
|
4991
5006
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
4992
5007
|
var urlPattern = { exports: {} };
|
|
@@ -5425,18 +5440,18 @@ var urlPattern = { exports: {} };
|
|
|
5425
5440
|
});
|
|
5426
5441
|
})(urlPattern, urlPattern.exports);
|
|
5427
5442
|
var UrlPattern = urlPattern.exports;
|
|
5428
|
-
var __defProp$
|
|
5429
|
-
var __getOwnPropDesc$
|
|
5430
|
-
var __decorateClass$
|
|
5431
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5443
|
+
var __defProp$S = Object.defineProperty;
|
|
5444
|
+
var __getOwnPropDesc$S = Object.getOwnPropertyDescriptor;
|
|
5445
|
+
var __decorateClass$S = (decorators, target, key, kind) => {
|
|
5446
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$S(target, key) : target;
|
|
5432
5447
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
5433
5448
|
if (decorator = decorators[i2])
|
|
5434
5449
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5435
5450
|
if (kind && result)
|
|
5436
|
-
__defProp$
|
|
5451
|
+
__defProp$S(target, key, result);
|
|
5437
5452
|
return result;
|
|
5438
5453
|
};
|
|
5439
|
-
const tagName$
|
|
5454
|
+
const tagName$O = "sonic-router";
|
|
5440
5455
|
let SonicRouter = class extends Subscriber$1(TemplatesContainer$1(s$3)) {
|
|
5441
5456
|
constructor() {
|
|
5442
5457
|
super(...arguments);
|
|
@@ -5509,24 +5524,24 @@ let SonicRouter = class extends Subscriber$1(TemplatesContainer$1(s$3)) {
|
|
|
5509
5524
|
)}`;
|
|
5510
5525
|
}
|
|
5511
5526
|
};
|
|
5512
|
-
__decorateClass$
|
|
5527
|
+
__decorateClass$S([
|
|
5513
5528
|
e$7()
|
|
5514
5529
|
], SonicRouter.prototype, "location", 1);
|
|
5515
|
-
SonicRouter = __decorateClass$
|
|
5516
|
-
e$8(tagName$
|
|
5530
|
+
SonicRouter = __decorateClass$S([
|
|
5531
|
+
e$8(tagName$O)
|
|
5517
5532
|
], SonicRouter);
|
|
5518
|
-
var __defProp$
|
|
5519
|
-
var __getOwnPropDesc$
|
|
5520
|
-
var __decorateClass$
|
|
5521
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5533
|
+
var __defProp$R = Object.defineProperty;
|
|
5534
|
+
var __getOwnPropDesc$R = Object.getOwnPropertyDescriptor;
|
|
5535
|
+
var __decorateClass$R = (decorators, target, key, kind) => {
|
|
5536
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$R(target, key) : target;
|
|
5522
5537
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
5523
5538
|
if (decorator = decorators[i2])
|
|
5524
5539
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5525
5540
|
if (kind && result)
|
|
5526
|
-
__defProp$
|
|
5541
|
+
__defProp$R(target, key, result);
|
|
5527
5542
|
return result;
|
|
5528
5543
|
};
|
|
5529
|
-
const tagName$
|
|
5544
|
+
const tagName$N = "sonic-redirect";
|
|
5530
5545
|
let SonicRedirect = class extends Subscriber$1(s$3) {
|
|
5531
5546
|
connectedCallback() {
|
|
5532
5547
|
this.noShadowDom = "";
|
|
@@ -5555,21 +5570,21 @@ let SonicRedirect = class extends Subscriber$1(s$3) {
|
|
|
5555
5570
|
}
|
|
5556
5571
|
}
|
|
5557
5572
|
};
|
|
5558
|
-
SonicRedirect = __decorateClass$
|
|
5559
|
-
e$8(tagName$
|
|
5573
|
+
SonicRedirect = __decorateClass$R([
|
|
5574
|
+
e$8(tagName$N)
|
|
5560
5575
|
], SonicRedirect);
|
|
5561
|
-
var __defProp$
|
|
5562
|
-
var __getOwnPropDesc$
|
|
5563
|
-
var __decorateClass$
|
|
5564
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5576
|
+
var __defProp$Q = Object.defineProperty;
|
|
5577
|
+
var __getOwnPropDesc$Q = Object.getOwnPropertyDescriptor;
|
|
5578
|
+
var __decorateClass$Q = (decorators, target, key, kind) => {
|
|
5579
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$Q(target, key) : target;
|
|
5565
5580
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
5566
5581
|
if (decorator = decorators[i2])
|
|
5567
5582
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5568
5583
|
if (kind && result)
|
|
5569
|
-
__defProp$
|
|
5584
|
+
__defProp$Q(target, key, result);
|
|
5570
5585
|
return result;
|
|
5571
5586
|
};
|
|
5572
|
-
const tagName$
|
|
5587
|
+
const tagName$M = "sonic-states";
|
|
5573
5588
|
let SonicStates = class extends Subscriber$1(TemplatesContainer$1(s$3)) {
|
|
5574
5589
|
constructor() {
|
|
5575
5590
|
super(...arguments);
|
|
@@ -5667,27 +5682,27 @@ let SonicStates = class extends Subscriber$1(TemplatesContainer$1(s$3)) {
|
|
|
5667
5682
|
)}`;
|
|
5668
5683
|
}
|
|
5669
5684
|
};
|
|
5670
|
-
__decorateClass$
|
|
5685
|
+
__decorateClass$Q([
|
|
5671
5686
|
e$7()
|
|
5672
5687
|
], SonicStates.prototype, "state", 2);
|
|
5673
|
-
__decorateClass$
|
|
5688
|
+
__decorateClass$Q([
|
|
5674
5689
|
e$7({ type: Boolean, reflect: true })
|
|
5675
5690
|
], SonicStates.prototype, "inverted", 2);
|
|
5676
|
-
SonicStates = __decorateClass$
|
|
5677
|
-
e$8(tagName$
|
|
5691
|
+
SonicStates = __decorateClass$Q([
|
|
5692
|
+
e$8(tagName$M)
|
|
5678
5693
|
], SonicStates);
|
|
5679
|
-
var __defProp$
|
|
5680
|
-
var __getOwnPropDesc$
|
|
5681
|
-
var __decorateClass$
|
|
5682
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5694
|
+
var __defProp$P = Object.defineProperty;
|
|
5695
|
+
var __getOwnPropDesc$P = Object.getOwnPropertyDescriptor;
|
|
5696
|
+
var __decorateClass$P = (decorators, target, key, kind) => {
|
|
5697
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$P(target, key) : target;
|
|
5683
5698
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
5684
5699
|
if (decorator = decorators[i2])
|
|
5685
5700
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5686
5701
|
if (kind && result)
|
|
5687
|
-
__defProp$
|
|
5702
|
+
__defProp$P(target, key, result);
|
|
5688
5703
|
return result;
|
|
5689
5704
|
};
|
|
5690
|
-
const tagName$
|
|
5705
|
+
const tagName$L = "sonic-scope";
|
|
5691
5706
|
let SonicScope = class extends s$3 {
|
|
5692
5707
|
createRenderRoot() {
|
|
5693
5708
|
return this;
|
|
@@ -5696,21 +5711,21 @@ let SonicScope = class extends s$3 {
|
|
|
5696
5711
|
return y`<slot></slot>`;
|
|
5697
5712
|
}
|
|
5698
5713
|
};
|
|
5699
|
-
SonicScope = __decorateClass$
|
|
5700
|
-
e$8(tagName$
|
|
5714
|
+
SonicScope = __decorateClass$P([
|
|
5715
|
+
e$8(tagName$L)
|
|
5701
5716
|
], SonicScope);
|
|
5702
|
-
var __defProp$
|
|
5703
|
-
var __getOwnPropDesc$
|
|
5704
|
-
var __decorateClass$
|
|
5705
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5717
|
+
var __defProp$O = Object.defineProperty;
|
|
5718
|
+
var __getOwnPropDesc$O = Object.getOwnPropertyDescriptor;
|
|
5719
|
+
var __decorateClass$O = (decorators, target, key, kind) => {
|
|
5720
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$O(target, key) : target;
|
|
5706
5721
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
5707
5722
|
if (decorator = decorators[i2])
|
|
5708
5723
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5709
5724
|
if (kind && result)
|
|
5710
|
-
__defProp$
|
|
5725
|
+
__defProp$O(target, key, result);
|
|
5711
5726
|
return result;
|
|
5712
5727
|
};
|
|
5713
|
-
const tagName$
|
|
5728
|
+
const tagName$K = "sonic-example";
|
|
5714
5729
|
let SonicComponent$2 = class extends Subscriber$1(s$3) {
|
|
5715
5730
|
constructor() {
|
|
5716
5731
|
super(...arguments);
|
|
@@ -5720,11 +5735,11 @@ let SonicComponent$2 = class extends Subscriber$1(s$3) {
|
|
|
5720
5735
|
return y`<div>${this.text}</div>`;
|
|
5721
5736
|
}
|
|
5722
5737
|
};
|
|
5723
|
-
__decorateClass$
|
|
5738
|
+
__decorateClass$O([
|
|
5724
5739
|
e$7()
|
|
5725
5740
|
], SonicComponent$2.prototype, "text", 2);
|
|
5726
|
-
SonicComponent$2 = __decorateClass$
|
|
5727
|
-
e$8(tagName$
|
|
5741
|
+
SonicComponent$2 = __decorateClass$O([
|
|
5742
|
+
e$8(tagName$K)
|
|
5728
5743
|
], SonicComponent$2);
|
|
5729
5744
|
const checkbox = {
|
|
5730
5745
|
tagName: "sonic-checkbox"
|
|
@@ -6040,15 +6055,15 @@ class SDUIDescriptorTransformer {
|
|
|
6040
6055
|
}
|
|
6041
6056
|
}
|
|
6042
6057
|
}
|
|
6043
|
-
var __defProp$
|
|
6044
|
-
var __getOwnPropDesc$
|
|
6045
|
-
var __decorateClass$
|
|
6046
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6058
|
+
var __defProp$N = Object.defineProperty;
|
|
6059
|
+
var __getOwnPropDesc$N = Object.getOwnPropertyDescriptor;
|
|
6060
|
+
var __decorateClass$N = (decorators, target, key, kind) => {
|
|
6061
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$N(target, key) : target;
|
|
6047
6062
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
6048
6063
|
if (decorator = decorators[i2])
|
|
6049
6064
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6050
6065
|
if (kind && result)
|
|
6051
|
-
__defProp$
|
|
6066
|
+
__defProp$N(target, key, result);
|
|
6052
6067
|
return result;
|
|
6053
6068
|
};
|
|
6054
6069
|
const Form = (superClass) => {
|
|
@@ -6096,22 +6111,22 @@ const Form = (superClass) => {
|
|
|
6096
6111
|
this.requestUpdate();
|
|
6097
6112
|
}
|
|
6098
6113
|
}
|
|
6099
|
-
__decorateClass$
|
|
6114
|
+
__decorateClass$N([
|
|
6100
6115
|
e$7()
|
|
6101
6116
|
], FormInput2.prototype, "forceAutoFill", 2);
|
|
6102
|
-
__decorateClass$
|
|
6117
|
+
__decorateClass$N([
|
|
6103
6118
|
e$7({ type: String })
|
|
6104
6119
|
], FormInput2.prototype, "type", 1);
|
|
6105
|
-
__decorateClass$
|
|
6120
|
+
__decorateClass$N([
|
|
6106
6121
|
e$7()
|
|
6107
6122
|
], FormInput2.prototype, "description", 1);
|
|
6108
|
-
__decorateClass$
|
|
6123
|
+
__decorateClass$N([
|
|
6109
6124
|
e$7()
|
|
6110
6125
|
], FormInput2.prototype, "label", 1);
|
|
6111
|
-
__decorateClass$
|
|
6126
|
+
__decorateClass$N([
|
|
6112
6127
|
e$7({ type: Number })
|
|
6113
6128
|
], FormInput2.prototype, "tabindex", 2);
|
|
6114
|
-
__decorateClass$
|
|
6129
|
+
__decorateClass$N([
|
|
6115
6130
|
e$7({ type: String })
|
|
6116
6131
|
], FormInput2.prototype, "autocomplete", 2);
|
|
6117
6132
|
return FormInput2;
|
|
@@ -6131,18 +6146,18 @@ window["concorde-mixins"] = {
|
|
|
6131
6146
|
Subscriber,
|
|
6132
6147
|
TemplatesContainer
|
|
6133
6148
|
};
|
|
6134
|
-
var __defProp$
|
|
6135
|
-
var __getOwnPropDesc$
|
|
6136
|
-
var __decorateClass$
|
|
6137
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6149
|
+
var __defProp$M = Object.defineProperty;
|
|
6150
|
+
var __getOwnPropDesc$M = Object.getOwnPropertyDescriptor;
|
|
6151
|
+
var __decorateClass$M = (decorators, target, key, kind) => {
|
|
6152
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$M(target, key) : target;
|
|
6138
6153
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
6139
6154
|
if (decorator = decorators[i2])
|
|
6140
6155
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6141
6156
|
if (kind && result)
|
|
6142
|
-
__defProp$
|
|
6157
|
+
__defProp$M(target, key, result);
|
|
6143
6158
|
return result;
|
|
6144
6159
|
};
|
|
6145
|
-
const tagName$
|
|
6160
|
+
const tagName$J = "sonic-sdui";
|
|
6146
6161
|
let SonicSDUI = class extends Fetcher(Subscriber(s$3)) {
|
|
6147
6162
|
constructor() {
|
|
6148
6163
|
super(...arguments);
|
|
@@ -6307,24 +6322,24 @@ let SonicSDUI = class extends Fetcher(Subscriber(s$3)) {
|
|
|
6307
6322
|
}
|
|
6308
6323
|
}
|
|
6309
6324
|
};
|
|
6310
|
-
__decorateClass$
|
|
6325
|
+
__decorateClass$M([
|
|
6311
6326
|
e$7()
|
|
6312
6327
|
], SonicSDUI.prototype, "sduiKey", 2);
|
|
6313
|
-
__decorateClass$
|
|
6328
|
+
__decorateClass$M([
|
|
6314
6329
|
e$7()
|
|
6315
6330
|
], SonicSDUI.prototype, "messagesKey", 2);
|
|
6316
|
-
SonicSDUI = __decorateClass$
|
|
6317
|
-
e$8(tagName$
|
|
6331
|
+
SonicSDUI = __decorateClass$M([
|
|
6332
|
+
e$8(tagName$J)
|
|
6318
6333
|
], SonicSDUI);
|
|
6319
|
-
var __defProp$
|
|
6320
|
-
var __getOwnPropDesc$
|
|
6321
|
-
var __decorateClass$
|
|
6322
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6334
|
+
var __defProp$L = Object.defineProperty;
|
|
6335
|
+
var __getOwnPropDesc$L = Object.getOwnPropertyDescriptor;
|
|
6336
|
+
var __decorateClass$L = (decorators, target, key, kind) => {
|
|
6337
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$L(target, key) : target;
|
|
6323
6338
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
6324
6339
|
if (decorator = decorators[i2])
|
|
6325
6340
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6326
6341
|
if (kind && result)
|
|
6327
|
-
__defProp$
|
|
6342
|
+
__defProp$L(target, key, result);
|
|
6328
6343
|
return result;
|
|
6329
6344
|
};
|
|
6330
6345
|
let SonicMix = class extends Subscriber(s$3) {
|
|
@@ -6406,24 +6421,24 @@ let SonicMix = class extends Subscriber(s$3) {
|
|
|
6406
6421
|
SonicMix.styles = [
|
|
6407
6422
|
i$4`:host{display:contents}`
|
|
6408
6423
|
];
|
|
6409
|
-
__decorateClass$
|
|
6424
|
+
__decorateClass$L([
|
|
6410
6425
|
e$7({ type: Object })
|
|
6411
6426
|
], SonicMix.prototype, "composition", 1);
|
|
6412
|
-
SonicMix = __decorateClass$
|
|
6427
|
+
SonicMix = __decorateClass$L([
|
|
6413
6428
|
e$8("sonic-mix")
|
|
6414
6429
|
], SonicMix);
|
|
6415
|
-
var __defProp$
|
|
6416
|
-
var __getOwnPropDesc$
|
|
6417
|
-
var __decorateClass$
|
|
6418
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6430
|
+
var __defProp$K = Object.defineProperty;
|
|
6431
|
+
var __getOwnPropDesc$K = Object.getOwnPropertyDescriptor;
|
|
6432
|
+
var __decorateClass$K = (decorators, target, key, kind) => {
|
|
6433
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$K(target, key) : target;
|
|
6419
6434
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
6420
6435
|
if (decorator = decorators[i2])
|
|
6421
6436
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6422
6437
|
if (kind && result)
|
|
6423
|
-
__defProp$
|
|
6438
|
+
__defProp$K(target, key, result);
|
|
6424
6439
|
return result;
|
|
6425
6440
|
};
|
|
6426
|
-
const tagName$
|
|
6441
|
+
const tagName$I = "sonic-value";
|
|
6427
6442
|
let SonicValue = class extends Subscriber(s$3) {
|
|
6428
6443
|
connectedCallback() {
|
|
6429
6444
|
this.setAttribute("subDataProvider", this.getAttribute("key"));
|
|
@@ -6435,8 +6450,8 @@ let SonicValue = class extends Subscriber(s$3) {
|
|
|
6435
6450
|
return y`${o$3(this.props.toString())}<slot name="prefix"></slot><slot></slot><slot name="suffix"></slot>`;
|
|
6436
6451
|
}
|
|
6437
6452
|
};
|
|
6438
|
-
SonicValue = __decorateClass$
|
|
6439
|
-
e$8(tagName$
|
|
6453
|
+
SonicValue = __decorateClass$K([
|
|
6454
|
+
e$8(tagName$I)
|
|
6440
6455
|
], SonicValue);
|
|
6441
6456
|
const coreVariables = i$4`:host{--sc-font-family-base:"Inter var","Inter",-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;--sc-font-weight-base:400;--sc-font-style-base:normal;--sc-headings-font-family:var(--sc-font-family-base),sans-serif;--sc-headings-font-style:var(--sc-font-style-base);--sc-headings-line-height:1.1;--sc-headings-font-weight:700;--sc-headings-text-transform:none;--sc-btn-font-weight:var(--sc-font-weight-base);--sc-btn-font-family:var(--sc-font-family-base);--sc-btn-font-style:var(--sc-font-style-base);--sc-rounded-sm:calc(var(--sc-rounded) * 0.5);--sc-rounded:0.375rem;--sc-rounded-md:calc(var(--sc-rounded) * 1.8);--sc-rounded-lg:calc(var(--sc-rounded) * 3);--sc-rounded-xl:calc(var(--sc-rounded) * 7);--sc-rounded-size-intensity:calc((1em - 1rem) * 0.4);--sc-btn-rounded-intensity:1.4;--sc-btn-font-weight:500;--sc-btn-rounded:calc(
|
|
6442
6457
|
(var(--sc-rounded) + var(--sc-rounded-size-intensity)) *
|
|
@@ -6448,18 +6463,18 @@ const coreVariables = i$4`:host{--sc-font-family-base:"Inter var","Inter",-apple
|
|
|
6448
6463
|
const light = i$4`:host{--sc-primary:var(--sc-base-800);--sc-info:#2563eb;--sc-danger:#f43f5e;--sc-warning:#f97316;--sc-success:#14b8a6;--sc-primary-content:var(--sc-base);--sc-info-content:var(--sc-base);--sc-danger-content:var(--sc-base);--sc-warning-content:var(--sc-base);--sc-success-content:var(--sc-base);--sc-base:#fff;--sc-base-50:#f8fafc;--sc-base-100:#f1f5f9;--sc-base-200:#e2e8f0;--sc-base-300:#cbd5e1;--sc-base-400:#94a3b8;--sc-base-500:#64748b;--sc-base-600:#475569;--sc-base-700:#334155;--sc-base-800:#1e293b;--sc-base-900:#0f172a;--sc-base-content:var(--sc-base-700);--sc-input-bg:var(--sc-base-100);--sc-input-color:var(--sc-base-content)}`;
|
|
6449
6464
|
const darkCss = i$4``;
|
|
6450
6465
|
const dark = i$4`:host([theme=dark]){${darkCss}}@media (prefers-color-scheme:dark){:host([theme=auto]){${darkCss}}}`;
|
|
6451
|
-
var __defProp$
|
|
6452
|
-
var __getOwnPropDesc$
|
|
6453
|
-
var __decorateClass$
|
|
6454
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6466
|
+
var __defProp$J = Object.defineProperty;
|
|
6467
|
+
var __getOwnPropDesc$J = Object.getOwnPropertyDescriptor;
|
|
6468
|
+
var __decorateClass$J = (decorators, target, key, kind) => {
|
|
6469
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$J(target, key) : target;
|
|
6455
6470
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
6456
6471
|
if (decorator = decorators[i2])
|
|
6457
6472
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6458
6473
|
if (kind && result)
|
|
6459
|
-
__defProp$
|
|
6474
|
+
__defProp$J(target, key, result);
|
|
6460
6475
|
return result;
|
|
6461
6476
|
};
|
|
6462
|
-
const tagName$
|
|
6477
|
+
const tagName$H = "sonic-theme";
|
|
6463
6478
|
let Theme = class extends s$3 {
|
|
6464
6479
|
constructor() {
|
|
6465
6480
|
super(...arguments);
|
|
@@ -6474,6 +6489,7 @@ let Theme = class extends s$3 {
|
|
|
6474
6489
|
this.postCSSVars();
|
|
6475
6490
|
}
|
|
6476
6491
|
postCSSVars() {
|
|
6492
|
+
var _a2;
|
|
6477
6493
|
const stylesheets = document.styleSheets;
|
|
6478
6494
|
const ssLength = stylesheets.length;
|
|
6479
6495
|
const fontUrls = [];
|
|
@@ -6482,14 +6498,18 @@ let Theme = class extends s$3 {
|
|
|
6482
6498
|
if (ss.href && (ss.href.includes("googleapis") || ss.href.includes("typekit.net")))
|
|
6483
6499
|
fontUrls.push(ss.href);
|
|
6484
6500
|
}
|
|
6501
|
+
const theme = {
|
|
6502
|
+
variables: this.getCssVariables(),
|
|
6503
|
+
fonts: fontUrls
|
|
6504
|
+
};
|
|
6505
|
+
(_a2 = PublisherManager.get("sonic-theme")) == null ? void 0 : _a2.set(theme);
|
|
6485
6506
|
document.querySelectorAll("iframe").forEach(
|
|
6486
6507
|
(elt) => {
|
|
6487
|
-
var
|
|
6488
|
-
return (
|
|
6508
|
+
var _a3;
|
|
6509
|
+
return (_a3 = elt.contentWindow) == null ? void 0 : _a3.postMessage(
|
|
6489
6510
|
{
|
|
6490
6511
|
type: "SonicTheme",
|
|
6491
|
-
|
|
6492
|
-
fonts: fontUrls
|
|
6512
|
+
...theme
|
|
6493
6513
|
},
|
|
6494
6514
|
"*"
|
|
6495
6515
|
);
|
|
@@ -6508,7 +6528,6 @@ let Theme = class extends s$3 {
|
|
|
6508
6528
|
...Theme.styles.map((s2) => s2.styleSheet),
|
|
6509
6529
|
...Array.from(document.styleSheets)
|
|
6510
6530
|
];
|
|
6511
|
-
console.log(stylesheets);
|
|
6512
6531
|
for (const stylesheet of stylesheets) {
|
|
6513
6532
|
try {
|
|
6514
6533
|
if (!stylesheet)
|
|
@@ -6543,33 +6562,33 @@ Theme.styles = [
|
|
|
6543
6562
|
coreVariables,
|
|
6544
6563
|
i$4`:host([background]){display:block!important;background:var(--sc-body-bg)!important;min-height:100vh}:host([color]){color:var(--sc-base-content)}:host([font]){font-family:var(--sc-font-family-base),sans-serif;font-weight:var(--sc-font-weight-base);font-style:var(--sc-font-style-base)}`
|
|
6545
6564
|
];
|
|
6546
|
-
__decorateClass$
|
|
6565
|
+
__decorateClass$J([
|
|
6547
6566
|
e$7({ type: String, reflect: true })
|
|
6548
6567
|
], Theme.prototype, "theme", 2);
|
|
6549
|
-
__decorateClass$
|
|
6568
|
+
__decorateClass$J([
|
|
6550
6569
|
e$7({ type: Boolean, reflect: true })
|
|
6551
6570
|
], Theme.prototype, "background", 2);
|
|
6552
|
-
__decorateClass$
|
|
6571
|
+
__decorateClass$J([
|
|
6553
6572
|
e$7({ type: Boolean, reflect: true })
|
|
6554
6573
|
], Theme.prototype, "color", 2);
|
|
6555
|
-
__decorateClass$
|
|
6574
|
+
__decorateClass$J([
|
|
6556
6575
|
e$7({ type: Boolean, reflect: true })
|
|
6557
6576
|
], Theme.prototype, "font", 2);
|
|
6558
|
-
Theme = __decorateClass$
|
|
6559
|
-
e$8(tagName$
|
|
6577
|
+
Theme = __decorateClass$J([
|
|
6578
|
+
e$8(tagName$H)
|
|
6560
6579
|
], Theme);
|
|
6561
|
-
var __defProp$
|
|
6562
|
-
var __getOwnPropDesc$
|
|
6563
|
-
var __decorateClass$
|
|
6564
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6580
|
+
var __defProp$I = Object.defineProperty;
|
|
6581
|
+
var __getOwnPropDesc$I = Object.getOwnPropertyDescriptor;
|
|
6582
|
+
var __decorateClass$I = (decorators, target, key, kind) => {
|
|
6583
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$I(target, key) : target;
|
|
6565
6584
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
6566
6585
|
if (decorator = decorators[i2])
|
|
6567
6586
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6568
6587
|
if (kind && result)
|
|
6569
|
-
__defProp$
|
|
6588
|
+
__defProp$I(target, key, result);
|
|
6570
6589
|
return result;
|
|
6571
6590
|
};
|
|
6572
|
-
const tagName$
|
|
6591
|
+
const tagName$G = "sonic-badge";
|
|
6573
6592
|
let Badge = class extends s$3 {
|
|
6574
6593
|
constructor() {
|
|
6575
6594
|
super(...arguments);
|
|
@@ -6585,20 +6604,20 @@ Badge.styles = [
|
|
|
6585
6604
|
fontSize,
|
|
6586
6605
|
i$4`:host{--sc-badge-gap:0.3em;--sc-badge-py:0.17em;--sc-badge-px:0.66em;--sc-fs:1rem;--sc-badge-color:var(--sc-base-content, #1f2937);--sc-badge-bg:var(--sc-base-200, #e5e7eb);--sc-badge-border-with:var(--sc-form-border-width, 0.1rem);--sc-badge-border-color:transparent;--sc-badge-border:var(--sc-badge-border-with) solid var(--sc-badge-border-color);--sc-badge-rounded:0.85em;--sc-badge-fw:var(--sc-font-weight-base);display:inline-flex;align-items:center;box-sizing:border-box;line-height:var(--sc-lh);border-radius:var(--sc-badge-rounded);background:var(--sc-badge-bg);color:var(--sc-badge-color);font-family:var(--sc-badge-ff,var(--sc-font-family-base,inherit));font-weight:var(--sc-badge-fw);padding-top:var(--sc-badge-py);padding-bottom:var(--sc-badge-py);padding-left:var(--sc-badge-px);padding-right:var(--sc-badge-px);min-height:calc(var(--sc-badge-px) * 2);border:var(--sc-badge-border);-webkit-print-color-adjust:exact}:host([type=primary]){--sc-badge-color:var(--sc-primary-content);--sc-badge-bg:var(--sc-primary)}:host([type=warning]){--sc-badge-color:var(--sc-warning-content);--sc-badge-bg:var(--sc-warning)}:host([type=danger]){--sc-badge-color:var(--sc-danger-content);--sc-badge-bg:var(--sc-danger)}:host([type=info]){--sc-badge-color:var(--sc-info-content);--sc-badge-bg:var(--sc-info)}:host([type=success]){--sc-badge-color:var(--sc-success-content);--sc-badge-bg:var(--sc-success)}:host([type=neutral]){--sc-badge-color:var(--sc-base);--sc-badge-bg:var(--sc-base-content)}:host{font-size:var(--sc-fs);gap:var(--sc-badge-gap)}:host([size="2xs"]){--sc-badge-gap:0.35em}:host([size=xs]){--sc-badge-gap:0.35em}:host([size=sm]){--sc-badge-gap:0.35em}:host([size=lg]){--sc-lh:1.2;--sc-badge-gap:0.5em}:host([size=xl]){--sc-lh:1.2;--sc-badge-gap:0.5em}:host([contrast]){--sc-badge-color:var(--sc-contrast-content);--sc-badge-bg:var(--sc-contrast)}:host([variant=outline][type]){border-width:var(--sc-badge-border-with)!important;border-color:var(--sc-badge-bg);color:var(--sc-badge-bg);background:0 0}:host([variant=outline][type=default]){border-color:var(--sc-base-400);color:var(--sc-base-500);background:0 0}:host([variant=ghost][type]){color:var(--sc-badge-bg);background:0 0;padding:0}:host([variant=ghost][type=default]){color:var(--sc-badge-color);background:0 0}:host([ellipsis]){flex-wrap:nowrap;white-space:nowrap;max-width:100%}:host([ellipsis]) slot{overflow:hidden;display:block;text-overflow:ellipsis;white-space:nowrap;max-width:100%}slot[name=prefix],slot[name=suffix]{flex-shrink:0}`
|
|
6587
6606
|
];
|
|
6588
|
-
__decorateClass$
|
|
6607
|
+
__decorateClass$I([
|
|
6589
6608
|
e$7({ type: String, reflect: true })
|
|
6590
6609
|
], Badge.prototype, "type", 2);
|
|
6591
|
-
__decorateClass$
|
|
6610
|
+
__decorateClass$I([
|
|
6592
6611
|
e$7({ type: String, reflect: true })
|
|
6593
6612
|
], Badge.prototype, "variant", 2);
|
|
6594
|
-
__decorateClass$
|
|
6613
|
+
__decorateClass$I([
|
|
6595
6614
|
e$7({ type: String, reflect: true })
|
|
6596
6615
|
], Badge.prototype, "size", 2);
|
|
6597
|
-
__decorateClass$
|
|
6616
|
+
__decorateClass$I([
|
|
6598
6617
|
e$7({ type: Boolean, reflect: true })
|
|
6599
6618
|
], Badge.prototype, "ellipsis", 2);
|
|
6600
|
-
Badge = __decorateClass$
|
|
6601
|
-
e$8(tagName$
|
|
6619
|
+
Badge = __decorateClass$I([
|
|
6620
|
+
e$8(tagName$G)
|
|
6602
6621
|
], Badge);
|
|
6603
6622
|
class Electron {
|
|
6604
6623
|
static fixBlankLink(link) {
|
|
@@ -6611,18 +6630,18 @@ class Electron {
|
|
|
6611
6630
|
}
|
|
6612
6631
|
}
|
|
6613
6632
|
}
|
|
6614
|
-
var __defProp$
|
|
6615
|
-
var __getOwnPropDesc$
|
|
6616
|
-
var __decorateClass$
|
|
6617
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6633
|
+
var __defProp$H = Object.defineProperty;
|
|
6634
|
+
var __getOwnPropDesc$H = Object.getOwnPropertyDescriptor;
|
|
6635
|
+
var __decorateClass$H = (decorators, target, key, kind) => {
|
|
6636
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$H(target, key) : target;
|
|
6618
6637
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
6619
6638
|
if (decorator = decorators[i2])
|
|
6620
6639
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6621
6640
|
if (kind && result)
|
|
6622
|
-
__defProp$
|
|
6641
|
+
__defProp$H(target, key, result);
|
|
6623
6642
|
return result;
|
|
6624
6643
|
};
|
|
6625
|
-
const tagName$
|
|
6644
|
+
const tagName$F = "sonic-link";
|
|
6626
6645
|
let Link = class extends s$3 {
|
|
6627
6646
|
constructor() {
|
|
6628
6647
|
super(...arguments);
|
|
@@ -6671,33 +6690,33 @@ let Link = class extends s$3 {
|
|
|
6671
6690
|
Link.styles = [
|
|
6672
6691
|
i$4`a{color:inherit;text-decoration:none;display:contents}`
|
|
6673
6692
|
];
|
|
6674
|
-
__decorateClass$
|
|
6693
|
+
__decorateClass$H([
|
|
6675
6694
|
e$7({ type: String })
|
|
6676
6695
|
], Link.prototype, "href", 2);
|
|
6677
|
-
__decorateClass$
|
|
6696
|
+
__decorateClass$H([
|
|
6678
6697
|
e$7({ type: String })
|
|
6679
6698
|
], Link.prototype, "autoActive", 2);
|
|
6680
|
-
__decorateClass$
|
|
6699
|
+
__decorateClass$H([
|
|
6681
6700
|
e$7({ type: String })
|
|
6682
6701
|
], Link.prototype, "target", 1);
|
|
6683
|
-
__decorateClass$
|
|
6702
|
+
__decorateClass$H([
|
|
6684
6703
|
e$7({ type: Boolean })
|
|
6685
6704
|
], Link.prototype, "pushState", 2);
|
|
6686
|
-
Link = __decorateClass$
|
|
6687
|
-
e$8(tagName$
|
|
6705
|
+
Link = __decorateClass$H([
|
|
6706
|
+
e$8(tagName$F)
|
|
6688
6707
|
], Link);
|
|
6689
|
-
var __defProp$
|
|
6690
|
-
var __getOwnPropDesc$
|
|
6691
|
-
var __decorateClass$
|
|
6692
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6708
|
+
var __defProp$G = Object.defineProperty;
|
|
6709
|
+
var __getOwnPropDesc$G = Object.getOwnPropertyDescriptor;
|
|
6710
|
+
var __decorateClass$G = (decorators, target, key, kind) => {
|
|
6711
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$G(target, key) : target;
|
|
6693
6712
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
6694
6713
|
if (decorator = decorators[i2])
|
|
6695
6714
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6696
6715
|
if (kind && result)
|
|
6697
|
-
__defProp$
|
|
6716
|
+
__defProp$G(target, key, result);
|
|
6698
6717
|
return result;
|
|
6699
6718
|
};
|
|
6700
|
-
const tagName$
|
|
6719
|
+
const tagName$E = "sonic-progress";
|
|
6701
6720
|
let Progress = class extends s$3 {
|
|
6702
6721
|
constructor() {
|
|
6703
6722
|
super(...arguments);
|
|
@@ -6714,23 +6733,23 @@ Progress.styles = [
|
|
|
6714
6733
|
fontSize,
|
|
6715
6734
|
i$4`:host{--sc-progress-bg:var(--sc-input-bg, var(--sc-base-100, #f5f5f5));--sc-progress-color:var(--sc-base-content, #1f2937);--sc-progress-height:0.6em;--sc-progress-fs:var(--sc-fs, 1rem);--sc-progress-fw:500;--sc-progress-rounded:var(--sc-rounded-lg);display:block;line-height:1.2;font-weight:var(--sc-progress-fw);font-size:var(--sc-progress-fs)}progress{position:relative;width:100%;-webkit-appearance:none;appearance:none;overflow:hidden;border:none;height:var(--sc-progress-height);border-radius:var(--sc-progress-rounded);background-color:var(--sc-progress-bg);color:var(--sc-progress-color)}progress::-moz-progress-bar{background-color:var(--sc-progress-color);border-radius:var(--sc-progress-rounded)}progress:not([value])::-moz-progress-bar{background-color:var(--sc-progress-bg)}progress::-webkit-progress-bar{background-color:var(--sc-progress-bg)}progress::-webkit-progress-value{background-color:var(--sc-progress-color);border-radius:var(--sc-progress-rounded)}progress:indeterminate:after{background-color:var(--sc-progress-color);content:"";position:absolute;top:0;bottom:0;left:-40%;width:33.333333%;border-radius:var(--sc-progress-rounded);animation:progress-loading 3s infinite ease-in-out}@keyframes progress-loading{50%{left:107%}}:host([type=warning]){--sc-progress-color:var(--sc-warning)}:host([type=danger]){--sc-progress-color:var(--sc-danger)}:host([type=info]){--sc-progress-color:var(--sc-info)}:host([type=success]){--sc-progress-color:var(--sc-success)}:host([invert]){--sc-progress-bg:rgba(200, 200, 200, 0.1)}:host([type=default][invert]){--sc-progress-color:var(--sc-base)}slot[name=remaining]{font-weight:var(--sc-font-weight-base);font-size:.85em;margin-top:.5em}slot[name=remaining]::slotted(*){margin-left:auto}slot:not([name]){color:var(--sc-progress-color)}.slot-container{display:flex;justify-content:space-between;gap:.5em;margin-top:.15em}`
|
|
6716
6735
|
];
|
|
6717
|
-
__decorateClass$
|
|
6736
|
+
__decorateClass$G([
|
|
6718
6737
|
e$7({ type: Number })
|
|
6719
6738
|
], Progress.prototype, "value", 2);
|
|
6720
|
-
__decorateClass$
|
|
6739
|
+
__decorateClass$G([
|
|
6721
6740
|
e$7({ type: Number })
|
|
6722
6741
|
], Progress.prototype, "max", 2);
|
|
6723
|
-
__decorateClass$
|
|
6742
|
+
__decorateClass$G([
|
|
6724
6743
|
e$7({ type: Boolean })
|
|
6725
6744
|
], Progress.prototype, "invert", 2);
|
|
6726
|
-
__decorateClass$
|
|
6745
|
+
__decorateClass$G([
|
|
6727
6746
|
e$7({ type: String, reflect: true })
|
|
6728
6747
|
], Progress.prototype, "type", 2);
|
|
6729
|
-
__decorateClass$
|
|
6748
|
+
__decorateClass$G([
|
|
6730
6749
|
e$7({ type: String, reflect: true })
|
|
6731
6750
|
], Progress.prototype, "size", 2);
|
|
6732
|
-
Progress = __decorateClass$
|
|
6733
|
-
e$8(tagName$
|
|
6751
|
+
Progress = __decorateClass$G([
|
|
6752
|
+
e$8(tagName$E)
|
|
6734
6753
|
], Progress);
|
|
6735
6754
|
const passwordToggle = i$4`.password-toggle{color:var(--sc-input-c);font-size:var(--sc-input-fs);cursor:pointer;margin-right:calc(-.5 * var(--sc-input-px))}:host([inlineContent]) .has-suffix .password-toggle{margin-right:0}`;
|
|
6736
6755
|
const label = i$4`:host{--sc-label-fs:var(--sc-fs, 1rem);--sc-label-fw:var(--sc-label-font-weight)}label{font-size:var(--sc-label-fs);font-weight:var(--sc-label-fw);line-height:1.2}.form-label{margin-bottom:.22em;display:block}`;
|
|
@@ -6769,18 +6788,18 @@ const o = e$2(class extends i$2 {
|
|
|
6769
6788
|
return x$1;
|
|
6770
6789
|
}
|
|
6771
6790
|
});
|
|
6772
|
-
var __defProp$
|
|
6773
|
-
var __getOwnPropDesc$
|
|
6774
|
-
var __decorateClass$
|
|
6775
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6791
|
+
var __defProp$F = Object.defineProperty;
|
|
6792
|
+
var __getOwnPropDesc$F = Object.getOwnPropertyDescriptor;
|
|
6793
|
+
var __decorateClass$F = (decorators, target, key, kind) => {
|
|
6794
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$F(target, key) : target;
|
|
6776
6795
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
6777
6796
|
if (decorator = decorators[i2])
|
|
6778
6797
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6779
6798
|
if (kind && result)
|
|
6780
|
-
__defProp$
|
|
6799
|
+
__defProp$F(target, key, result);
|
|
6781
6800
|
return result;
|
|
6782
6801
|
};
|
|
6783
|
-
const tagName$
|
|
6802
|
+
const tagName$D = "sonic-input";
|
|
6784
6803
|
let Input = class extends Form(Form$2(Subscriber$1(s$3))) {
|
|
6785
6804
|
constructor() {
|
|
6786
6805
|
super(...arguments);
|
|
@@ -6824,9 +6843,6 @@ let Input = class extends Form(Form$2(Subscriber$1(s$3))) {
|
|
|
6824
6843
|
this.hasSlotOrProps();
|
|
6825
6844
|
super.willUpdate(changedProperties);
|
|
6826
6845
|
}
|
|
6827
|
-
setSelectionRange(start, end) {
|
|
6828
|
-
this.input.setSelectionRange(start, end);
|
|
6829
|
-
}
|
|
6830
6846
|
hasSlotOrProps() {
|
|
6831
6847
|
var _a2, _b, _c, _d;
|
|
6832
6848
|
this.hasLabel = this.label || ((_a2 = this.slotLabelNodes) == null ? void 0 : _a2.length) ? true : false;
|
|
@@ -6847,10 +6863,7 @@ let Input = class extends Form(Form$2(Subscriber$1(s$3))) {
|
|
|
6847
6863
|
}
|
|
6848
6864
|
if (this.changeTimeoutId)
|
|
6849
6865
|
clearTimeout(this.changeTimeoutId);
|
|
6850
|
-
this.changeTimeoutId = setTimeout(
|
|
6851
|
-
() => super.handleChange(e2),
|
|
6852
|
-
parseInt(this.getAttribute("inputDelayMs"))
|
|
6853
|
-
);
|
|
6866
|
+
this.changeTimeoutId = setTimeout(() => super.handleChange(e2), parseInt(this.getAttribute("inputDelayMs")));
|
|
6854
6867
|
}
|
|
6855
6868
|
togglePasswordVisibility() {
|
|
6856
6869
|
this.isPassword = !this.isPassword;
|
|
@@ -6864,9 +6877,7 @@ let Input = class extends Form(Form$2(Subscriber$1(s$3))) {
|
|
|
6864
6877
|
"no-suffix": !this.hasSuffix,
|
|
6865
6878
|
"no-prefix": !this.hasPrefix
|
|
6866
6879
|
};
|
|
6867
|
-
return y`<label for="form-element" class="${this.hasLabel ? "form-label" : "hidden"}">${this.label ? o$3(this.label) : ""}<slot name="label" @slotchange="${this.hasSlotOrProps}"></slot></label><div @click="${this.inlineContentFocus}" class="form-control ${o(
|
|
6868
|
-
slotClasses
|
|
6869
|
-
)}"><div class="${this.inlineContent ? "form-element form-element-wrapper" : "contents"}"><slot name="prefix" @slotchange="${this.hasSlotOrProps}"></slot><input id="form-element" part="input" class="form-element input" @input="${this.handleChange}" @blur="${this.handleBlur}" type="${this.type}" disabled="${l$2(this.disabled)}" ?readonly="${this.readonly}" ?autofocus="${this.autofocus}" list="${l$2(this.list)}" tabindex="${l$2(this.tabindex)}" pattern="${l$2(this.pattern)}" min="${l$2(this.min)}" max="${l$2(this.max)}" step="${l$2(this.step)}" src="${l$2(this.src)}" minlength="${l$2(this.minlength)}" maxlength="${l$2(this.maxlength)}" placeholder="${l$2(this.placeholder)}" required="${l$2(this.required)}" autocomplete="${l$2(this.autocomplete)}" aria-label="${l$2(this.ariaLabel)}" aria-labelledby="${l$2(this.ariaLabelledby)}" .name="${this.name}" .value="${this.value}"> ${this.showPasswordToggle ? y`<sonic-button shape="circle" class="password-toggle" @click="${this.togglePasswordVisibility}" aria-label="Toggle password visibility" variant="unstyled"><sonic-icon library="heroicons" name="${this.isPassword ? "eye" : "eye-slash"}"></sonic-icon></sonic-button>` : ""}<slot name="suffix" @slotchange="${this.hasSlotOrProps}"></slot></div></div><slot name="description" @slotchange="${this.hasSlotOrProps}" class="${this.hasDescription ? "form-description" : "hidden"}">${this.description ? y`${o$3(this.description)}` : ""}</slot><slot name="list"></slot>`;
|
|
6880
|
+
return y`<label for="form-element" class="${this.hasLabel ? "form-label" : "hidden"}">${this.label ? o$3(this.label) : ""}<slot name="label" @slotchange="${this.hasSlotOrProps}"></slot></label><div @click="${this.inlineContentFocus}" class="form-control ${o(slotClasses)}"><div class="${this.inlineContent ? "form-element form-element-wrapper" : "contents"}"><slot name="prefix" @slotchange="${this.hasSlotOrProps}"></slot><input id="form-element" part="input" class="form-element input" @input="${this.handleChange}" @blur="${this.handleBlur}" type="${this.type}" disabled="${l$2(this.disabled)}" ?readonly="${this.readonly}" ?autofocus="${this.autofocus}" list="${l$2(this.list)}" tabindex="${l$2(this.tabindex)}" pattern="${l$2(this.pattern)}" min="${l$2(this.min)}" max="${l$2(this.max)}" step="${l$2(this.step)}" src="${l$2(this.src)}" minlength="${l$2(this.minlength)}" maxlength="${l$2(this.maxlength)}" placeholder="${l$2(this.placeholder)}" required="${l$2(this.required)}" autocomplete="${l$2(this.autocomplete)}" aria-label="${l$2(this.ariaLabel)}" aria-labelledby="${l$2(this.ariaLabelledby)}" .name="${this.name}" .value="${this.value}"> ${this.showPasswordToggle ? y`<sonic-button shape="circle" class="password-toggle" @click="${this.togglePasswordVisibility}" aria-label="Toggle password visibility" variant="unstyled"><sonic-icon library="heroicons" name="${this.isPassword ? "eye" : "eye-slash"}"></sonic-icon></sonic-button>` : ""}<slot name="suffix" @slotchange="${this.hasSlotOrProps}"></slot></div></div><slot name="description" @slotchange="${this.hasSlotOrProps}" class="${this.hasDescription ? "form-description" : "hidden"}">${this.description ? y`${o$3(this.description)}` : ""}</slot><slot name="list"></slot>`;
|
|
6870
6881
|
}
|
|
6871
6882
|
};
|
|
6872
6883
|
Input.styles = [
|
|
@@ -6877,93 +6888,93 @@ Input.styles = [
|
|
|
6877
6888
|
passwordToggle,
|
|
6878
6889
|
i$4`:host([type=hidden]){appearance:none!important;display:none!important}:host>.form-control{position:relative}`
|
|
6879
6890
|
];
|
|
6880
|
-
__decorateClass$
|
|
6891
|
+
__decorateClass$F([
|
|
6881
6892
|
e$7({ type: String, reflect: true })
|
|
6882
6893
|
], Input.prototype, "size", 2);
|
|
6883
|
-
__decorateClass$
|
|
6894
|
+
__decorateClass$F([
|
|
6884
6895
|
e$7({ type: String })
|
|
6885
6896
|
], Input.prototype, "list", 2);
|
|
6886
|
-
__decorateClass$
|
|
6897
|
+
__decorateClass$F([
|
|
6887
6898
|
e$7({ type: String })
|
|
6888
6899
|
], Input.prototype, "placeholder", 2);
|
|
6889
|
-
__decorateClass$
|
|
6900
|
+
__decorateClass$F([
|
|
6890
6901
|
e$7({ type: String })
|
|
6891
6902
|
], Input.prototype, "pattern", 2);
|
|
6892
|
-
__decorateClass$
|
|
6903
|
+
__decorateClass$F([
|
|
6893
6904
|
e$7({ type: String })
|
|
6894
6905
|
], Input.prototype, "min", 2);
|
|
6895
|
-
__decorateClass$
|
|
6906
|
+
__decorateClass$F([
|
|
6896
6907
|
e$7({ type: String })
|
|
6897
6908
|
], Input.prototype, "max", 2);
|
|
6898
|
-
__decorateClass$
|
|
6909
|
+
__decorateClass$F([
|
|
6899
6910
|
e$7({ type: Boolean })
|
|
6900
6911
|
], Input.prototype, "readonly", 2);
|
|
6901
|
-
__decorateClass$
|
|
6912
|
+
__decorateClass$F([
|
|
6902
6913
|
e$7({ type: Number })
|
|
6903
6914
|
], Input.prototype, "step", 2);
|
|
6904
|
-
__decorateClass$
|
|
6915
|
+
__decorateClass$F([
|
|
6905
6916
|
e$7({ type: Number })
|
|
6906
6917
|
], Input.prototype, "minlength", 2);
|
|
6907
|
-
__decorateClass$
|
|
6918
|
+
__decorateClass$F([
|
|
6908
6919
|
e$7({ type: Number })
|
|
6909
6920
|
], Input.prototype, "maxlength", 2);
|
|
6910
|
-
__decorateClass$
|
|
6921
|
+
__decorateClass$F([
|
|
6911
6922
|
e$7({ type: String })
|
|
6912
6923
|
], Input.prototype, "src", 2);
|
|
6913
|
-
__decorateClass$
|
|
6924
|
+
__decorateClass$F([
|
|
6914
6925
|
e$7({ type: Boolean, reflect: true })
|
|
6915
6926
|
], Input.prototype, "inlineContent", 2);
|
|
6916
|
-
__decorateClass$
|
|
6927
|
+
__decorateClass$F([
|
|
6917
6928
|
e$7({ type: Boolean })
|
|
6918
6929
|
], Input.prototype, "disableInlineContentFocus", 2);
|
|
6919
|
-
__decorateClass$
|
|
6930
|
+
__decorateClass$F([
|
|
6920
6931
|
e$7({ type: Boolean })
|
|
6921
6932
|
], Input.prototype, "showPasswordToggle", 2);
|
|
6922
|
-
__decorateClass$
|
|
6933
|
+
__decorateClass$F([
|
|
6923
6934
|
o$9({ slot: "label" })
|
|
6924
6935
|
], Input.prototype, "slotLabelNodes", 2);
|
|
6925
|
-
__decorateClass$
|
|
6936
|
+
__decorateClass$F([
|
|
6926
6937
|
o$9({ slot: "description" })
|
|
6927
6938
|
], Input.prototype, "slotDescriptionNodes", 2);
|
|
6928
|
-
__decorateClass$
|
|
6939
|
+
__decorateClass$F([
|
|
6929
6940
|
o$9({ slot: "suffix" })
|
|
6930
6941
|
], Input.prototype, "slotSuffixNodes", 2);
|
|
6931
|
-
__decorateClass$
|
|
6942
|
+
__decorateClass$F([
|
|
6932
6943
|
o$9({ slot: "prefix" })
|
|
6933
6944
|
], Input.prototype, "slotPrefixNodes", 2);
|
|
6934
|
-
__decorateClass$
|
|
6945
|
+
__decorateClass$F([
|
|
6935
6946
|
i$5("input")
|
|
6936
6947
|
], Input.prototype, "input", 2);
|
|
6937
|
-
__decorateClass$
|
|
6948
|
+
__decorateClass$F([
|
|
6938
6949
|
t$3()
|
|
6939
6950
|
], Input.prototype, "hasDescription", 2);
|
|
6940
|
-
__decorateClass$
|
|
6951
|
+
__decorateClass$F([
|
|
6941
6952
|
t$3()
|
|
6942
6953
|
], Input.prototype, "hasLabel", 2);
|
|
6943
|
-
__decorateClass$
|
|
6954
|
+
__decorateClass$F([
|
|
6944
6955
|
t$3()
|
|
6945
6956
|
], Input.prototype, "hasSuffix", 2);
|
|
6946
|
-
__decorateClass$
|
|
6957
|
+
__decorateClass$F([
|
|
6947
6958
|
t$3()
|
|
6948
6959
|
], Input.prototype, "hasPrefix", 2);
|
|
6949
|
-
__decorateClass$
|
|
6960
|
+
__decorateClass$F([
|
|
6950
6961
|
t$3()
|
|
6951
6962
|
], Input.prototype, "isPassword", 2);
|
|
6952
|
-
Input = __decorateClass$
|
|
6953
|
-
e$8(tagName$
|
|
6963
|
+
Input = __decorateClass$F([
|
|
6964
|
+
e$8(tagName$D)
|
|
6954
6965
|
], Input);
|
|
6955
|
-
var __defProp$
|
|
6956
|
-
var __getOwnPropDesc$
|
|
6957
|
-
var __decorateClass$
|
|
6958
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6966
|
+
var __defProp$E = Object.defineProperty;
|
|
6967
|
+
var __getOwnPropDesc$E = Object.getOwnPropertyDescriptor;
|
|
6968
|
+
var __decorateClass$E = (decorators, target, key, kind) => {
|
|
6969
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$E(target, key) : target;
|
|
6959
6970
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
6960
6971
|
if (decorator = decorators[i2])
|
|
6961
6972
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6962
6973
|
if (kind && result)
|
|
6963
|
-
__defProp$
|
|
6974
|
+
__defProp$E(target, key, result);
|
|
6964
6975
|
return result;
|
|
6965
6976
|
};
|
|
6966
|
-
const tagName$
|
|
6977
|
+
const tagName$C = "sonic-pop";
|
|
6967
6978
|
let Pop = class extends s$3 {
|
|
6968
6979
|
constructor() {
|
|
6969
6980
|
super(...arguments);
|
|
@@ -6975,9 +6986,7 @@ let Pop = class extends s$3 {
|
|
|
6975
6986
|
this.positioningRuns = false;
|
|
6976
6987
|
this.lastContentX = 0;
|
|
6977
6988
|
this.lastContentY = 0;
|
|
6978
|
-
this.resizeObserver = new ResizeObserver(
|
|
6979
|
-
() => this.computePosition(this.placement)
|
|
6980
|
-
);
|
|
6989
|
+
this.resizeObserver = new ResizeObserver(() => this.computePosition(this.placement));
|
|
6981
6990
|
}
|
|
6982
6991
|
runPositioningLoop() {
|
|
6983
6992
|
if (!this.positioningRuns)
|
|
@@ -7005,22 +7014,18 @@ let Pop = class extends s$3 {
|
|
|
7005
7014
|
this.lastContentY = 0;
|
|
7006
7015
|
this.runPositioningLoop();
|
|
7007
7016
|
}
|
|
7008
|
-
this.dispatchEvent(new CustomEvent("show"));
|
|
7009
7017
|
}
|
|
7010
7018
|
_hide() {
|
|
7011
7019
|
this.open = false;
|
|
7012
7020
|
this.popContent.setAttribute("tabindex", "-1");
|
|
7013
7021
|
this.positioningRuns = false;
|
|
7014
|
-
this.dispatchEvent(new CustomEvent("hide"));
|
|
7015
7022
|
}
|
|
7016
7023
|
_handleClosePop(e2) {
|
|
7017
7024
|
const path = e2.composedPath();
|
|
7018
7025
|
const target = path[0];
|
|
7019
7026
|
Pop.pops.forEach((pop) => {
|
|
7020
7027
|
const popContainsTarget = path.includes(pop);
|
|
7021
|
-
const popContentContainsTarget = path.includes(
|
|
7022
|
-
pop.querySelector('[slot="content"]')
|
|
7023
|
-
);
|
|
7028
|
+
const popContentContainsTarget = path.includes(pop.querySelector('[slot="content"]'));
|
|
7024
7029
|
const isCloseManual = HTML$1.getAncestorAttributeValue(target, "data-on-select") === "keep";
|
|
7025
7030
|
if (e2.type == "pointerdown" && popContainsTarget)
|
|
7026
7031
|
return;
|
|
@@ -7124,42 +7129,42 @@ Pop.pops = /* @__PURE__ */ new Set();
|
|
|
7124
7129
|
Pop.styles = [
|
|
7125
7130
|
i$4`:host{display:inline-block;vertical-align:middle}slot[name=content]{max-width:80vw;background-color:var(--sc-base);position:absolute;z-index:50;display:block;transform:translateY(1rem) scale(.95);opacity:0;pointer-events:none;transition-duration:.15s;transition-timing-function:ease;transition-property:all;border-radius:min(calc(var(--sc-btn-rounded) * 2),.4em)}slot[name=content].is-open:not(.is-empty){transform:translateY(0) scale(1);opacity:1;pointer-events:auto;transition-property:scale,opacity;transition-timing-function:cubic-bezier(.25,.25,.42,1.225)}:host([shadow=md]) slot[name=content],:host([shadow=true]) slot[name=content],:host([shadow]) slot[name=content]{box-shadow:var(--sc-shadow)}:host([shadow=sm]) slot[name=content]{box-shadow:var(--sc-shadow-sm)}:host([shadow=none]) slot[name=content]{box-shadow:none}:host([shadow=lg]) slot[name=content]{box-shadow:var(--sc-shadow-lg)}:host([inline]){vertical-align:baseline}`
|
|
7126
7131
|
];
|
|
7127
|
-
__decorateClass$
|
|
7132
|
+
__decorateClass$E([
|
|
7128
7133
|
t$3()
|
|
7129
7134
|
], Pop.prototype, "open", 2);
|
|
7130
|
-
__decorateClass$
|
|
7135
|
+
__decorateClass$E([
|
|
7131
7136
|
i$5("slot:not([name=content])")
|
|
7132
7137
|
], Pop.prototype, "popBtn", 2);
|
|
7133
|
-
__decorateClass$
|
|
7138
|
+
__decorateClass$E([
|
|
7134
7139
|
i$5("slot[name=content]")
|
|
7135
7140
|
], Pop.prototype, "popContent", 2);
|
|
7136
|
-
__decorateClass$
|
|
7141
|
+
__decorateClass$E([
|
|
7137
7142
|
e$7({ type: Boolean })
|
|
7138
7143
|
], Pop.prototype, "noToggle", 2);
|
|
7139
|
-
__decorateClass$
|
|
7144
|
+
__decorateClass$E([
|
|
7140
7145
|
e$7({ type: Boolean, reflect: true })
|
|
7141
7146
|
], Pop.prototype, "inline", 2);
|
|
7142
|
-
__decorateClass$
|
|
7147
|
+
__decorateClass$E([
|
|
7143
7148
|
e$7({ type: String, reflect: true })
|
|
7144
7149
|
], Pop.prototype, "shadow", 2);
|
|
7145
|
-
__decorateClass$
|
|
7150
|
+
__decorateClass$E([
|
|
7146
7151
|
e$7({ type: String })
|
|
7147
7152
|
], Pop.prototype, "placement", 2);
|
|
7148
|
-
Pop = __decorateClass$
|
|
7149
|
-
e$8(tagName$
|
|
7153
|
+
Pop = __decorateClass$E([
|
|
7154
|
+
e$8(tagName$C)
|
|
7150
7155
|
], Pop);
|
|
7151
|
-
var __defProp$
|
|
7152
|
-
var __getOwnPropDesc$
|
|
7153
|
-
var __decorateClass$
|
|
7154
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7156
|
+
var __defProp$D = Object.defineProperty;
|
|
7157
|
+
var __getOwnPropDesc$D = Object.getOwnPropertyDescriptor;
|
|
7158
|
+
var __decorateClass$D = (decorators, target, key, kind) => {
|
|
7159
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$D(target, key) : target;
|
|
7155
7160
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
7156
7161
|
if (decorator = decorators[i2])
|
|
7157
7162
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7158
7163
|
if (kind && result)
|
|
7159
|
-
__defProp$
|
|
7164
|
+
__defProp$D(target, key, result);
|
|
7160
7165
|
return result;
|
|
7161
7166
|
};
|
|
7162
|
-
const tagName$
|
|
7167
|
+
const tagName$B = "sonic-menu-item";
|
|
7163
7168
|
let MenuItem = class extends Button {
|
|
7164
7169
|
constructor() {
|
|
7165
7170
|
super();
|
|
@@ -7180,200 +7185,116 @@ let MenuItem = class extends Button {
|
|
|
7180
7185
|
super.connectedCallback();
|
|
7181
7186
|
}
|
|
7182
7187
|
};
|
|
7183
|
-
MenuItem = __decorateClass$
|
|
7184
|
-
e$8(tagName$
|
|
7188
|
+
MenuItem = __decorateClass$D([
|
|
7189
|
+
e$8(tagName$B)
|
|
7185
7190
|
], MenuItem);
|
|
7186
|
-
var __defProp$
|
|
7187
|
-
var __getOwnPropDesc$
|
|
7188
|
-
var __decorateClass$
|
|
7189
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7191
|
+
var __defProp$C = Object.defineProperty;
|
|
7192
|
+
var __getOwnPropDesc$C = Object.getOwnPropertyDescriptor;
|
|
7193
|
+
var __decorateClass$C = (decorators, target, key, kind) => {
|
|
7194
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$C(target, key) : target;
|
|
7190
7195
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
7191
7196
|
if (decorator = decorators[i2])
|
|
7192
7197
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7193
7198
|
if (kind && result)
|
|
7194
|
-
__defProp$
|
|
7199
|
+
__defProp$C(target, key, result);
|
|
7195
7200
|
return result;
|
|
7196
7201
|
};
|
|
7197
|
-
let InputAutocomplete = class extends TemplatesContainer(
|
|
7198
|
-
FormInput(FormElement(Subscriber(s$3)))
|
|
7199
|
-
) {
|
|
7202
|
+
let InputAutocomplete = class extends TemplatesContainer(Subscriber(s$3)) {
|
|
7200
7203
|
constructor() {
|
|
7201
7204
|
super(...arguments);
|
|
7202
|
-
this.
|
|
7205
|
+
this._name = "";
|
|
7206
|
+
this.forceAutoFill = false;
|
|
7203
7207
|
this.placeholder = "";
|
|
7204
7208
|
this.filteredFields = "";
|
|
7205
7209
|
this.readonly = null;
|
|
7206
7210
|
this.dataProviderExpression = "";
|
|
7207
7211
|
this.key = "";
|
|
7208
|
-
this.
|
|
7209
|
-
this.
|
|
7210
|
-
this.initSearchDataProvider = "";
|
|
7211
|
-
this.queueDataProvider = "";
|
|
7212
|
-
this.initQueueDataProvider = "";
|
|
7213
|
-
this.lastValidSearch = "";
|
|
7214
|
-
this.updateSearchParameter = (value) => {
|
|
7215
|
-
if (value == "") {
|
|
7216
|
-
this.lastValidSearch = "";
|
|
7217
|
-
return;
|
|
7218
|
-
}
|
|
7219
|
-
this.queryQueueListItem(
|
|
7220
|
-
this.queueDataProvider,
|
|
7221
|
-
this.findSelection,
|
|
7222
|
-
this.setSearchFromSelection
|
|
7223
|
-
);
|
|
7224
|
-
};
|
|
7225
|
-
this.initSearchParameter = () => {
|
|
7226
|
-
this.queryQueueListItem(
|
|
7227
|
-
this.initQueueDataProvider,
|
|
7228
|
-
this.findSelection,
|
|
7229
|
-
this.setSearchFromSelection
|
|
7230
|
-
);
|
|
7231
|
-
};
|
|
7232
|
-
this.selectListItem = (listItem) => {
|
|
7233
|
-
var _a2;
|
|
7234
|
-
(_a2 = this.formValuePublisher) == null ? void 0 : _a2.set(listItem[this.name]);
|
|
7235
|
-
};
|
|
7236
|
-
this.findSearchedItem = (listItem) => {
|
|
7237
|
-
var _a2;
|
|
7238
|
-
return listItem[this.searchParameter || this.name] == ((_a2 = this.searchPublisher) == null ? void 0 : _a2.get());
|
|
7239
|
-
};
|
|
7240
|
-
this.findSelection = (listItem) => {
|
|
7241
|
-
return listItem[this.name] == this.value;
|
|
7242
|
-
};
|
|
7243
|
-
this.setSearchFromSelection = (listItem) => {
|
|
7244
|
-
var _a2;
|
|
7245
|
-
this.lastValidSearch = listItem[this.searchParameter || this.name];
|
|
7246
|
-
(_a2 = this.searchPublisher) == null ? void 0 : _a2.set(this.lastValidSearch);
|
|
7247
|
-
};
|
|
7248
|
-
this.updateActiveSelection = () => {
|
|
7249
|
-
var _a2, _b, _c;
|
|
7250
|
-
this.queryQueueListItem(
|
|
7251
|
-
this.queueDataProvider,
|
|
7252
|
-
this.findSearchedItem,
|
|
7253
|
-
this.selectListItem
|
|
7254
|
-
);
|
|
7255
|
-
if (!this.select && this.lastValidSearch && this.lastValidSearch != ((_a2 = this.searchPublisher) == null ? void 0 : _a2.get()) && ((_b = this.formValuePublisher) == null ? void 0 : _b.get())) {
|
|
7256
|
-
(_c = this.formValuePublisher) == null ? void 0 : _c.set("");
|
|
7257
|
-
}
|
|
7258
|
-
};
|
|
7212
|
+
this.value = "";
|
|
7213
|
+
this.formDataProvider = "";
|
|
7259
7214
|
}
|
|
7260
|
-
|
|
7261
|
-
|
|
7262
|
-
super.connectedCallback();
|
|
7263
|
-
const searchParameter = this.searchParameter || this.name;
|
|
7264
|
-
const formDataProvider = this.getAncestorAttributeValue("formDataProvider");
|
|
7265
|
-
const dpPrefix = formDataProvider + "__autocomplete";
|
|
7266
|
-
this.initSearchDataProvider = `${dpPrefix}_init_search__`;
|
|
7267
|
-
this.initQueueDataProvider = `${dpPrefix}_init_queue__`;
|
|
7268
|
-
this.searchDataProvider = `${dpPrefix}_search__`;
|
|
7269
|
-
this.queueDataProvider = `${dpPrefix}_queue__`;
|
|
7270
|
-
const getPublisher = PublisherManager.get;
|
|
7271
|
-
this.searchPublisher = getPublisher(this.searchDataProvider)[searchParameter];
|
|
7272
|
-
this.formValuePublisher = getPublisher(formDataProvider)[this.name];
|
|
7273
|
-
this.countPublisher = getPublisher(this.queueDataProvider).resultCount;
|
|
7274
|
-
this.initCountPublisher = getPublisher(
|
|
7275
|
-
this.initQueueDataProvider
|
|
7276
|
-
).resultCount;
|
|
7277
|
-
if (this.value) {
|
|
7278
|
-
PublisherManager.get(this.initSearchDataProvider)[this.name] = this.value;
|
|
7279
|
-
}
|
|
7280
|
-
(_a2 = this.initCountPublisher) == null ? void 0 : _a2.onAssign(this.initSearchParameter);
|
|
7281
|
-
(_b = this.formValuePublisher) == null ? void 0 : _b.onAssign(this.updateSearchParameter);
|
|
7282
|
-
(_c = this.countPublisher) == null ? void 0 : _c.onAssign(this.updateActiveSelection);
|
|
7215
|
+
get name() {
|
|
7216
|
+
return this._name;
|
|
7283
7217
|
}
|
|
7284
|
-
|
|
7285
|
-
|
|
7286
|
-
|
|
7287
|
-
|
|
7288
|
-
|
|
7289
|
-
(_c = this.countPublisher) == null ? void 0 : _c.offAssign(this.updateActiveSelection);
|
|
7290
|
-
const getPublisher = PublisherManager.get;
|
|
7291
|
-
getPublisher(this.initSearchDataProvider).delete();
|
|
7292
|
-
getPublisher(this.initQueueDataProvider).delete();
|
|
7293
|
-
getPublisher(this.searchDataProvider).delete();
|
|
7294
|
-
getPublisher(this.queueDataProvider).delete();
|
|
7295
|
-
}
|
|
7296
|
-
queryQueueListItem(queueDataProvider, itemFinder, itemMutator) {
|
|
7297
|
-
const queuePublisher = PublisherManager.get(queueDataProvider);
|
|
7298
|
-
let listItem;
|
|
7299
|
-
const listsDescriptors = queuePublisher.get();
|
|
7300
|
-
if (!Array.isArray(listsDescriptors))
|
|
7301
|
-
return;
|
|
7302
|
-
for (const listDescriptor of listsDescriptors) {
|
|
7303
|
-
const list = PublisherManager.get(listDescriptor.dataProvider).get();
|
|
7304
|
-
if (!Array.isArray(list))
|
|
7305
|
-
continue;
|
|
7306
|
-
listItem = list.find(itemFinder);
|
|
7307
|
-
console.log(listItem);
|
|
7308
|
-
if (listItem) {
|
|
7309
|
-
break;
|
|
7310
|
-
}
|
|
7311
|
-
}
|
|
7312
|
-
if (listItem) {
|
|
7313
|
-
itemMutator(listItem);
|
|
7314
|
-
}
|
|
7218
|
+
set name(value) {
|
|
7219
|
+
if (this.hasAttribute("name") && !this.forceAutoFill)
|
|
7220
|
+
value = this.getAttribute("name");
|
|
7221
|
+
this._name = value;
|
|
7222
|
+
this.requestUpdate();
|
|
7315
7223
|
}
|
|
7316
|
-
|
|
7317
|
-
|
|
7318
|
-
(_a2 = this.querySelector("sonic-input")) == null ? void 0 : _a2.setSelectionRange(start, end);
|
|
7224
|
+
get description() {
|
|
7225
|
+
return this._description;
|
|
7319
7226
|
}
|
|
7320
|
-
|
|
7321
|
-
|
|
7322
|
-
|
|
7323
|
-
|
|
7324
|
-
|
|
7325
|
-
|
|
7326
|
-
|
|
7327
|
-
|
|
7328
|
-
|
|
7329
|
-
|
|
7227
|
+
set description(value) {
|
|
7228
|
+
if (this.hasAttribute("description") && !this.forceAutoFill)
|
|
7229
|
+
value = this.getAttribute("description");
|
|
7230
|
+
this._description = value;
|
|
7231
|
+
this.requestUpdate();
|
|
7232
|
+
}
|
|
7233
|
+
get label() {
|
|
7234
|
+
return this._label;
|
|
7235
|
+
}
|
|
7236
|
+
set label(value) {
|
|
7237
|
+
if (this.hasAttribute("label") && !this.forceAutoFill)
|
|
7238
|
+
value = this.getAttribute("label");
|
|
7239
|
+
this._label = value;
|
|
7240
|
+
this.requestUpdate();
|
|
7241
|
+
}
|
|
7242
|
+
connectedCallback() {
|
|
7243
|
+
this.formDataProvider = this.getAncestorAttributeValue("formDataProvider");
|
|
7244
|
+
super.connectedCallback();
|
|
7330
7245
|
}
|
|
7331
7246
|
render() {
|
|
7332
|
-
return y`<sonic-pop noToggle style="display:block"
|
|
7247
|
+
return y`<sonic-pop noToggle style="display:block"><sonic-input type="search" data-keyboard-nav="nav-autocomplete" label="${l$2(this.label)}" description="${l$2(this.description)}" name="${l$2(this.name)}" value="${l$2(this.value)}" autocomplete="off" clearable></sonic-input><sonic-menu slot="content"><sonic-queue filteredFields="${this.filteredFields}" dataProviderExpression="${this.dataProviderExpression}" dataFilterProvider="${this.formDataProvider}" key="${this.key}" .templates="${this.templateList}" displayContents></sonic-queue></sonic-menu></sonic-pop>`;
|
|
7333
7248
|
}
|
|
7334
7249
|
};
|
|
7335
7250
|
InputAutocomplete.styles = [
|
|
7336
7251
|
i$4`:host{display:block}`
|
|
7337
7252
|
];
|
|
7338
|
-
__decorateClass$
|
|
7339
|
-
e$7(
|
|
7340
|
-
], InputAutocomplete.prototype, "
|
|
7341
|
-
__decorateClass$
|
|
7253
|
+
__decorateClass$C([
|
|
7254
|
+
e$7()
|
|
7255
|
+
], InputAutocomplete.prototype, "name", 1);
|
|
7256
|
+
__decorateClass$C([
|
|
7257
|
+
e$7()
|
|
7258
|
+
], InputAutocomplete.prototype, "forceAutoFill", 2);
|
|
7259
|
+
__decorateClass$C([
|
|
7260
|
+
e$7()
|
|
7261
|
+
], InputAutocomplete.prototype, "description", 1);
|
|
7262
|
+
__decorateClass$C([
|
|
7263
|
+
e$7()
|
|
7264
|
+
], InputAutocomplete.prototype, "label", 1);
|
|
7265
|
+
__decorateClass$C([
|
|
7342
7266
|
e$7({ type: String })
|
|
7343
7267
|
], InputAutocomplete.prototype, "placeholder", 2);
|
|
7344
|
-
__decorateClass$
|
|
7268
|
+
__decorateClass$C([
|
|
7345
7269
|
e$7()
|
|
7346
7270
|
], InputAutocomplete.prototype, "filteredFields", 2);
|
|
7347
|
-
__decorateClass$
|
|
7271
|
+
__decorateClass$C([
|
|
7348
7272
|
e$7({ type: Boolean })
|
|
7349
7273
|
], InputAutocomplete.prototype, "readonly", 2);
|
|
7350
|
-
__decorateClass$
|
|
7274
|
+
__decorateClass$C([
|
|
7351
7275
|
e$7({ type: String })
|
|
7352
7276
|
], InputAutocomplete.prototype, "dataProviderExpression", 2);
|
|
7353
|
-
__decorateClass$
|
|
7354
|
-
e$7({ type: Boolean })
|
|
7355
|
-
], InputAutocomplete.prototype, "select", 2);
|
|
7356
|
-
__decorateClass$D([
|
|
7277
|
+
__decorateClass$C([
|
|
7357
7278
|
e$7({ type: String })
|
|
7358
7279
|
], InputAutocomplete.prototype, "key", 2);
|
|
7359
|
-
__decorateClass$
|
|
7280
|
+
__decorateClass$C([
|
|
7360
7281
|
e$7({ type: String })
|
|
7361
|
-
], InputAutocomplete.prototype, "
|
|
7362
|
-
InputAutocomplete = __decorateClass$
|
|
7282
|
+
], InputAutocomplete.prototype, "value", 2);
|
|
7283
|
+
InputAutocomplete = __decorateClass$C([
|
|
7363
7284
|
e$8("sonic-input-autocomplete")
|
|
7364
7285
|
], InputAutocomplete);
|
|
7365
|
-
var __defProp$
|
|
7366
|
-
var __getOwnPropDesc$
|
|
7367
|
-
var __decorateClass$
|
|
7368
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7286
|
+
var __defProp$B = Object.defineProperty;
|
|
7287
|
+
var __getOwnPropDesc$B = Object.getOwnPropertyDescriptor;
|
|
7288
|
+
var __decorateClass$B = (decorators, target, key, kind) => {
|
|
7289
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$B(target, key) : target;
|
|
7369
7290
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
7370
7291
|
if (decorator = decorators[i2])
|
|
7371
7292
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7372
7293
|
if (kind && result)
|
|
7373
|
-
__defProp$
|
|
7294
|
+
__defProp$B(target, key, result);
|
|
7374
7295
|
return result;
|
|
7375
7296
|
};
|
|
7376
|
-
const tagName$
|
|
7297
|
+
const tagName$A = "sonic-password-helper";
|
|
7377
7298
|
let SonicComponent$1 = class extends Subscriber(s$3) {
|
|
7378
7299
|
constructor() {
|
|
7379
7300
|
super(...arguments);
|
|
@@ -7425,63 +7346,63 @@ let SonicComponent$1 = class extends Subscriber(s$3) {
|
|
|
7425
7346
|
return y`<div>${this.wording_password_helper_decription}</div><div>${this.getIcon(this.hasEnoughChars)} ${this.wording_password_helper_min_length}</div><div>${this.getIcon(this.hasMinuscule)} ${this.wording_password_helper_lower_case}</div><div>${this.getIcon(this.hasMajuscule)} ${this.wording_password_helper_upper_case}</div><div>${this.getIcon(this.hasNumber)} ${this.wording_password_helper_number}</div><div>${this.getIcon(this.hasSpecialChar)} ${this.wording_password_helper_special_char}</div>`;
|
|
7426
7347
|
}
|
|
7427
7348
|
};
|
|
7428
|
-
__decorateClass$
|
|
7349
|
+
__decorateClass$B([
|
|
7429
7350
|
e$7()
|
|
7430
7351
|
], SonicComponent$1.prototype, "name", 2);
|
|
7431
|
-
__decorateClass$
|
|
7352
|
+
__decorateClass$B([
|
|
7432
7353
|
e$7()
|
|
7433
7354
|
], SonicComponent$1.prototype, "minChars", 2);
|
|
7434
|
-
__decorateClass$
|
|
7355
|
+
__decorateClass$B([
|
|
7435
7356
|
t$3()
|
|
7436
7357
|
], SonicComponent$1.prototype, "hasNoChar", 2);
|
|
7437
|
-
__decorateClass$
|
|
7358
|
+
__decorateClass$B([
|
|
7438
7359
|
t$3()
|
|
7439
7360
|
], SonicComponent$1.prototype, "hasEnoughChars", 2);
|
|
7440
|
-
__decorateClass$
|
|
7361
|
+
__decorateClass$B([
|
|
7441
7362
|
t$3()
|
|
7442
7363
|
], SonicComponent$1.prototype, "hasMinuscule", 2);
|
|
7443
|
-
__decorateClass$
|
|
7364
|
+
__decorateClass$B([
|
|
7444
7365
|
t$3()
|
|
7445
7366
|
], SonicComponent$1.prototype, "hasMajuscule", 2);
|
|
7446
|
-
__decorateClass$
|
|
7367
|
+
__decorateClass$B([
|
|
7447
7368
|
t$3()
|
|
7448
7369
|
], SonicComponent$1.prototype, "hasNumber", 2);
|
|
7449
|
-
__decorateClass$
|
|
7370
|
+
__decorateClass$B([
|
|
7450
7371
|
t$3()
|
|
7451
7372
|
], SonicComponent$1.prototype, "hasSpecialChar", 2);
|
|
7452
|
-
__decorateClass$
|
|
7373
|
+
__decorateClass$B([
|
|
7453
7374
|
e$7()
|
|
7454
7375
|
], SonicComponent$1.prototype, "wording_password_helper_decription", 2);
|
|
7455
|
-
__decorateClass$
|
|
7376
|
+
__decorateClass$B([
|
|
7456
7377
|
e$7()
|
|
7457
7378
|
], SonicComponent$1.prototype, "wording_password_helper_min_length", 2);
|
|
7458
|
-
__decorateClass$
|
|
7379
|
+
__decorateClass$B([
|
|
7459
7380
|
e$7()
|
|
7460
7381
|
], SonicComponent$1.prototype, "wording_password_helper_lower_case", 2);
|
|
7461
|
-
__decorateClass$
|
|
7382
|
+
__decorateClass$B([
|
|
7462
7383
|
e$7()
|
|
7463
7384
|
], SonicComponent$1.prototype, "wording_password_helper_upper_case", 2);
|
|
7464
|
-
__decorateClass$
|
|
7385
|
+
__decorateClass$B([
|
|
7465
7386
|
e$7()
|
|
7466
7387
|
], SonicComponent$1.prototype, "wording_password_helper_number", 2);
|
|
7467
|
-
__decorateClass$
|
|
7388
|
+
__decorateClass$B([
|
|
7468
7389
|
e$7()
|
|
7469
7390
|
], SonicComponent$1.prototype, "wording_password_helper_special_char", 2);
|
|
7470
|
-
SonicComponent$1 = __decorateClass$
|
|
7471
|
-
e$8(tagName$
|
|
7391
|
+
SonicComponent$1 = __decorateClass$B([
|
|
7392
|
+
e$8(tagName$A)
|
|
7472
7393
|
], SonicComponent$1);
|
|
7473
|
-
var __defProp$
|
|
7474
|
-
var __getOwnPropDesc$
|
|
7475
|
-
var __decorateClass$
|
|
7476
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7394
|
+
var __defProp$A = Object.defineProperty;
|
|
7395
|
+
var __getOwnPropDesc$A = Object.getOwnPropertyDescriptor;
|
|
7396
|
+
var __decorateClass$A = (decorators, target, key, kind) => {
|
|
7397
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$A(target, key) : target;
|
|
7477
7398
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
7478
7399
|
if (decorator = decorators[i2])
|
|
7479
7400
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7480
7401
|
if (kind && result)
|
|
7481
|
-
__defProp$
|
|
7402
|
+
__defProp$A(target, key, result);
|
|
7482
7403
|
return result;
|
|
7483
7404
|
};
|
|
7484
|
-
const tagName$
|
|
7405
|
+
const tagName$z = "sonic-same-value-helper";
|
|
7485
7406
|
let SonicComponent = class extends Subscriber(s$3) {
|
|
7486
7407
|
constructor() {
|
|
7487
7408
|
super(...arguments);
|
|
@@ -7521,39 +7442,39 @@ let SonicComponent = class extends Subscriber(s$3) {
|
|
|
7521
7442
|
return y`<span>${this.areEqual ? o$3(this.descriptionWhenEqual) : o$3(this.descriptionWhenNotEqual)}</span>`;
|
|
7522
7443
|
}
|
|
7523
7444
|
};
|
|
7524
|
-
__decorateClass$
|
|
7445
|
+
__decorateClass$A([
|
|
7525
7446
|
e$7()
|
|
7526
7447
|
], SonicComponent.prototype, "name", 2);
|
|
7527
|
-
__decorateClass$
|
|
7448
|
+
__decorateClass$A([
|
|
7528
7449
|
e$7()
|
|
7529
7450
|
], SonicComponent.prototype, "sameValueAs", 2);
|
|
7530
|
-
__decorateClass$
|
|
7451
|
+
__decorateClass$A([
|
|
7531
7452
|
e$7()
|
|
7532
7453
|
], SonicComponent.prototype, "descriptionWhenEqual", 2);
|
|
7533
|
-
__decorateClass$
|
|
7454
|
+
__decorateClass$A([
|
|
7534
7455
|
e$7()
|
|
7535
7456
|
], SonicComponent.prototype, "descriptionWhenNotEqual", 2);
|
|
7536
|
-
__decorateClass$
|
|
7457
|
+
__decorateClass$A([
|
|
7537
7458
|
t$3()
|
|
7538
7459
|
], SonicComponent.prototype, "areEqual", 2);
|
|
7539
|
-
__decorateClass$
|
|
7460
|
+
__decorateClass$A([
|
|
7540
7461
|
t$3()
|
|
7541
7462
|
], SonicComponent.prototype, "hasNoChar", 2);
|
|
7542
|
-
SonicComponent = __decorateClass$
|
|
7543
|
-
e$8(tagName$
|
|
7463
|
+
SonicComponent = __decorateClass$A([
|
|
7464
|
+
e$8(tagName$z)
|
|
7544
7465
|
], SonicComponent);
|
|
7545
|
-
var __defProp$
|
|
7546
|
-
var __getOwnPropDesc$
|
|
7547
|
-
var __decorateClass$
|
|
7548
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7466
|
+
var __defProp$z = Object.defineProperty;
|
|
7467
|
+
var __getOwnPropDesc$z = Object.getOwnPropertyDescriptor;
|
|
7468
|
+
var __decorateClass$z = (decorators, target, key, kind) => {
|
|
7469
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$z(target, key) : target;
|
|
7549
7470
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
7550
7471
|
if (decorator = decorators[i2])
|
|
7551
7472
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7552
7473
|
if (kind && result)
|
|
7553
|
-
__defProp$
|
|
7474
|
+
__defProp$z(target, key, result);
|
|
7554
7475
|
return result;
|
|
7555
7476
|
};
|
|
7556
|
-
const tagName$
|
|
7477
|
+
const tagName$y = "sonic-checkbox";
|
|
7557
7478
|
let Checkbox = class extends Form$1(
|
|
7558
7479
|
Form(Form$2(Subscriber$1(s$3)))
|
|
7559
7480
|
) {
|
|
@@ -7588,45 +7509,45 @@ Checkbox.styles = [
|
|
|
7588
7509
|
fontSize,
|
|
7589
7510
|
i$4`:host{--sc-checkbox-border-width:var(--sc-form-border-width);--sc-checkbox-border-color:var(--sc-input-border-color);--sc-checkbox-bg:var(--sc-input-bg);--sc-checkbox-color:transparent}*{box-sizing:border-box}.checkbox-container{min-height:1.4em;display:flex;gap:.5em;line-height:1.2;align-items:flex-start;font-size:var(--sc-fs)}.icon-container{position:relative;display:flex;flex-shrink:0}input{box-sizing:border-box;appearance:none;flex-shrink:0;height:calc(var(--sc-fs) * 1.25);width:calc(var(--sc-fs) * 1.25);display:block;cursor:pointer;border-radius:.25em;transition:.2s;outline:0;margin:0;background-color:var(--sc-checkbox-bg);border:var(--sc-checkbox-border-width) solid var(--sc-checkbox-border-color)}:host(:not([disabled])) input:active,input:focus{box-shadow:0 0 0 2px var(--sc-primary)}:host(:not([disabled])) label{cursor:pointer}sonic-icon{line-height:0;position:absolute;top:50%;left:50%;transform:translateX(-50%) translateY(-50%) scale(0);transition:transform .2s ease-in-out;color:var(--sc-checkbox-color)}.description{color:var(--sc-base-400);font-size:.85em;margin-top:.2em;display:block}input:checked,input[checked],input[data-indeterminate]{--sc-checkbox-border-color:var(--sc-primary);--sc-checkbox-bg:var(--sc-primary)}input:checked+sonic-icon,input[checked]+sonic-icon,input[data-indeterminate]+sonic-icon{--sc-checkbox-color:var(--sc-primary-content);transform:translateX(-50%) translateY(-50%) scale(1)}.disabled{cursor:not-allowed}.disabled input{opacity:.4}.disabled .checkbox-text{opacity:.6}:host(:not([disabled])) label:hover input{filter:brightness(.97)}::slotted(a){color:inherit;text-decoration:underline!important}::slotted(a:hover){text-decoration:none!important}.hidden{display:none}`
|
|
7590
7511
|
];
|
|
7591
|
-
__decorateClass$
|
|
7512
|
+
__decorateClass$z([
|
|
7592
7513
|
e$7({ type: Boolean, reflect: true })
|
|
7593
7514
|
], Checkbox.prototype, "touched", 2);
|
|
7594
|
-
__decorateClass$
|
|
7515
|
+
__decorateClass$z([
|
|
7595
7516
|
e$7({ type: String })
|
|
7596
7517
|
], Checkbox.prototype, "iconName", 2);
|
|
7597
|
-
__decorateClass$
|
|
7518
|
+
__decorateClass$z([
|
|
7598
7519
|
e$7({ type: String })
|
|
7599
7520
|
], Checkbox.prototype, "indeterminateIconName", 2);
|
|
7600
|
-
__decorateClass$
|
|
7521
|
+
__decorateClass$z([
|
|
7601
7522
|
e$7({ type: Boolean })
|
|
7602
7523
|
], Checkbox.prototype, "showAsIndeterminate", 2);
|
|
7603
|
-
__decorateClass$
|
|
7524
|
+
__decorateClass$z([
|
|
7604
7525
|
e$7({ type: Boolean })
|
|
7605
7526
|
], Checkbox.prototype, "hasDescription", 2);
|
|
7606
|
-
__decorateClass$
|
|
7527
|
+
__decorateClass$z([
|
|
7607
7528
|
e$7({ type: Boolean })
|
|
7608
7529
|
], Checkbox.prototype, "hasLabel", 2);
|
|
7609
|
-
__decorateClass$
|
|
7530
|
+
__decorateClass$z([
|
|
7610
7531
|
o$9()
|
|
7611
7532
|
], Checkbox.prototype, "slotLabelNodes", 2);
|
|
7612
|
-
__decorateClass$
|
|
7533
|
+
__decorateClass$z([
|
|
7613
7534
|
o$9({ slot: "description" })
|
|
7614
7535
|
], Checkbox.prototype, "slotDescriptionNodes", 2);
|
|
7615
|
-
Checkbox = __decorateClass$
|
|
7616
|
-
e$8(tagName$
|
|
7536
|
+
Checkbox = __decorateClass$z([
|
|
7537
|
+
e$8(tagName$y)
|
|
7617
7538
|
], Checkbox);
|
|
7618
|
-
var __defProp$
|
|
7619
|
-
var __getOwnPropDesc$
|
|
7620
|
-
var __decorateClass$
|
|
7621
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7539
|
+
var __defProp$y = Object.defineProperty;
|
|
7540
|
+
var __getOwnPropDesc$y = Object.getOwnPropertyDescriptor;
|
|
7541
|
+
var __decorateClass$y = (decorators, target, key, kind) => {
|
|
7542
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$y(target, key) : target;
|
|
7622
7543
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
7623
7544
|
if (decorator = decorators[i2])
|
|
7624
7545
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7625
7546
|
if (kind && result)
|
|
7626
|
-
__defProp$
|
|
7547
|
+
__defProp$y(target, key, result);
|
|
7627
7548
|
return result;
|
|
7628
7549
|
};
|
|
7629
|
-
const tagName$
|
|
7550
|
+
const tagName$x = "sonic-radio";
|
|
7630
7551
|
let Radio = class extends Checkbox {
|
|
7631
7552
|
constructor() {
|
|
7632
7553
|
super();
|
|
@@ -7641,21 +7562,21 @@ Radio.styles = [
|
|
|
7641
7562
|
Checkbox.styles,
|
|
7642
7563
|
i$4`:host input{border-radius:50%}:host sonic-icon{border-radius:50%;overflow:hidden;background-color:var(--sc-primary-content);line-height:0;display:block;font-size:1em;height:.6em;width:.6em}`
|
|
7643
7564
|
];
|
|
7644
|
-
Radio = __decorateClass$
|
|
7645
|
-
e$8(tagName$
|
|
7565
|
+
Radio = __decorateClass$y([
|
|
7566
|
+
e$8(tagName$x)
|
|
7646
7567
|
], Radio);
|
|
7647
|
-
var __defProp$
|
|
7648
|
-
var __getOwnPropDesc$
|
|
7649
|
-
var __decorateClass$
|
|
7650
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7568
|
+
var __defProp$x = Object.defineProperty;
|
|
7569
|
+
var __getOwnPropDesc$x = Object.getOwnPropertyDescriptor;
|
|
7570
|
+
var __decorateClass$x = (decorators, target, key, kind) => {
|
|
7571
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$x(target, key) : target;
|
|
7651
7572
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
7652
7573
|
if (decorator = decorators[i2])
|
|
7653
7574
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7654
7575
|
if (kind && result)
|
|
7655
|
-
__defProp$
|
|
7576
|
+
__defProp$x(target, key, result);
|
|
7656
7577
|
return result;
|
|
7657
7578
|
};
|
|
7658
|
-
const tagName$
|
|
7579
|
+
const tagName$w = "sonic-select";
|
|
7659
7580
|
let Select = class extends Form$2(Subscriber$1(s$3)) {
|
|
7660
7581
|
constructor() {
|
|
7661
7582
|
super(...arguments);
|
|
@@ -7786,75 +7707,75 @@ Select.styles = [
|
|
|
7786
7707
|
description,
|
|
7787
7708
|
i$4`.form-element{appearance:none}:host([disabled]) sonic-icon{opacity:0}@supports selector(:has(*)){:host(:not([disabled])) .form-element:not(:has(option:only-child)){padding-right:max(1.275em,calc(1.5 * var(--sc-input-px)))}}@supports not selector(:has(*)){:host(:not([disabled])) .form-element{padding-right:max(1.275em,calc(1.5 * var(--sc-input-px)))}}.form-select-wrapper{position:relative;width:100%}sonic-icon{position:absolute;right:calc(.8 * var(--sc-input-px));top:50%;pointer-events:none;transform:translateY(-50%);color:var(--sc-input-c)}option{padding:.1rem var(--sc-input-px);color:var(--sc-base-content);background:var(--sc-base)}select[multiple] option{background:0 0;padding:0}`
|
|
7788
7709
|
];
|
|
7789
|
-
__decorateClass$
|
|
7710
|
+
__decorateClass$x([
|
|
7790
7711
|
e$7({ type: String })
|
|
7791
7712
|
], Select.prototype, "valueKey", 2);
|
|
7792
|
-
__decorateClass$
|
|
7713
|
+
__decorateClass$x([
|
|
7793
7714
|
e$7({ type: String })
|
|
7794
7715
|
], Select.prototype, "wordingKey", 2);
|
|
7795
|
-
__decorateClass$
|
|
7716
|
+
__decorateClass$x([
|
|
7796
7717
|
e$7({ type: Boolean })
|
|
7797
7718
|
], Select.prototype, "multiple", 2);
|
|
7798
|
-
__decorateClass$
|
|
7719
|
+
__decorateClass$x([
|
|
7799
7720
|
e$7({ type: String, reflect: true })
|
|
7800
7721
|
], Select.prototype, "size", 2);
|
|
7801
|
-
__decorateClass$
|
|
7722
|
+
__decorateClass$x([
|
|
7802
7723
|
e$7({ type: Number })
|
|
7803
7724
|
], Select.prototype, "selectSize", 2);
|
|
7804
|
-
__decorateClass$
|
|
7725
|
+
__decorateClass$x([
|
|
7805
7726
|
e$7({ type: Array })
|
|
7806
7727
|
], Select.prototype, "options", 1);
|
|
7807
|
-
__decorateClass$
|
|
7728
|
+
__decorateClass$x([
|
|
7808
7729
|
e$7({ reflect: true })
|
|
7809
7730
|
], Select.prototype, "value", 1);
|
|
7810
|
-
__decorateClass$
|
|
7731
|
+
__decorateClass$x([
|
|
7811
7732
|
e$7({ type: Boolean })
|
|
7812
7733
|
], Select.prototype, "forceAutoFill", 2);
|
|
7813
|
-
__decorateClass$
|
|
7734
|
+
__decorateClass$x([
|
|
7814
7735
|
e$7()
|
|
7815
7736
|
], Select.prototype, "description", 1);
|
|
7816
|
-
__decorateClass$
|
|
7737
|
+
__decorateClass$x([
|
|
7817
7738
|
e$7()
|
|
7818
7739
|
], Select.prototype, "label", 1);
|
|
7819
|
-
__decorateClass$
|
|
7740
|
+
__decorateClass$x([
|
|
7820
7741
|
o$9({ slot: "label" })
|
|
7821
7742
|
], Select.prototype, "slotLabelNodes", 2);
|
|
7822
|
-
__decorateClass$
|
|
7743
|
+
__decorateClass$x([
|
|
7823
7744
|
o$9({ slot: "description" })
|
|
7824
7745
|
], Select.prototype, "slotDescriptionNodes", 2);
|
|
7825
|
-
__decorateClass$
|
|
7746
|
+
__decorateClass$x([
|
|
7826
7747
|
o$9({ slot: "suffix" })
|
|
7827
7748
|
], Select.prototype, "slotSuffixNodes", 2);
|
|
7828
|
-
__decorateClass$
|
|
7749
|
+
__decorateClass$x([
|
|
7829
7750
|
o$9({ slot: "prefix" })
|
|
7830
7751
|
], Select.prototype, "slotPrefixNodes", 2);
|
|
7831
|
-
__decorateClass$
|
|
7752
|
+
__decorateClass$x([
|
|
7832
7753
|
t$3()
|
|
7833
7754
|
], Select.prototype, "hasDescription", 2);
|
|
7834
|
-
__decorateClass$
|
|
7755
|
+
__decorateClass$x([
|
|
7835
7756
|
t$3()
|
|
7836
7757
|
], Select.prototype, "hasLabel", 2);
|
|
7837
|
-
__decorateClass$
|
|
7758
|
+
__decorateClass$x([
|
|
7838
7759
|
t$3()
|
|
7839
7760
|
], Select.prototype, "hasSuffix", 2);
|
|
7840
|
-
__decorateClass$
|
|
7761
|
+
__decorateClass$x([
|
|
7841
7762
|
t$3()
|
|
7842
7763
|
], Select.prototype, "hasPrefix", 2);
|
|
7843
|
-
Select = __decorateClass$
|
|
7844
|
-
e$8(tagName$
|
|
7764
|
+
Select = __decorateClass$x([
|
|
7765
|
+
e$8(tagName$w)
|
|
7845
7766
|
], Select);
|
|
7846
|
-
var __defProp$
|
|
7847
|
-
var __getOwnPropDesc$
|
|
7848
|
-
var __decorateClass$
|
|
7849
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7767
|
+
var __defProp$w = Object.defineProperty;
|
|
7768
|
+
var __getOwnPropDesc$w = Object.getOwnPropertyDescriptor;
|
|
7769
|
+
var __decorateClass$w = (decorators, target, key, kind) => {
|
|
7770
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$w(target, key) : target;
|
|
7850
7771
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
7851
7772
|
if (decorator = decorators[i2])
|
|
7852
7773
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7853
7774
|
if (kind && result)
|
|
7854
|
-
__defProp$
|
|
7775
|
+
__defProp$w(target, key, result);
|
|
7855
7776
|
return result;
|
|
7856
7777
|
};
|
|
7857
|
-
const tagName$
|
|
7778
|
+
const tagName$v = "sonic-textarea";
|
|
7858
7779
|
let Textarea = class extends Form(Form$2(Subscriber$1(s$3))) {
|
|
7859
7780
|
constructor() {
|
|
7860
7781
|
super(...arguments);
|
|
@@ -7900,54 +7821,54 @@ Textarea.styles = [
|
|
|
7900
7821
|
customScroll,
|
|
7901
7822
|
i$4`textarea{font-size:inherit}`
|
|
7902
7823
|
];
|
|
7903
|
-
__decorateClass$
|
|
7824
|
+
__decorateClass$w([
|
|
7904
7825
|
e$7({ type: String })
|
|
7905
7826
|
], Textarea.prototype, "size", 2);
|
|
7906
|
-
__decorateClass$
|
|
7827
|
+
__decorateClass$w([
|
|
7907
7828
|
e$7({ type: Number })
|
|
7908
7829
|
], Textarea.prototype, "rows", 2);
|
|
7909
|
-
__decorateClass$
|
|
7830
|
+
__decorateClass$w([
|
|
7910
7831
|
e$7({ type: Number })
|
|
7911
7832
|
], Textarea.prototype, "cols", 2);
|
|
7912
|
-
__decorateClass$
|
|
7833
|
+
__decorateClass$w([
|
|
7913
7834
|
e$7({ type: Number })
|
|
7914
7835
|
], Textarea.prototype, "maxlength", 2);
|
|
7915
|
-
__decorateClass$
|
|
7836
|
+
__decorateClass$w([
|
|
7916
7837
|
e$7({ type: Number })
|
|
7917
7838
|
], Textarea.prototype, "minlength", 2);
|
|
7918
|
-
__decorateClass$
|
|
7839
|
+
__decorateClass$w([
|
|
7919
7840
|
e$7({ type: String })
|
|
7920
7841
|
], Textarea.prototype, "wrap", 2);
|
|
7921
|
-
__decorateClass$
|
|
7842
|
+
__decorateClass$w([
|
|
7922
7843
|
e$7({ type: Boolean })
|
|
7923
7844
|
], Textarea.prototype, "readonly", 2);
|
|
7924
|
-
__decorateClass$
|
|
7845
|
+
__decorateClass$w([
|
|
7925
7846
|
e$7({ type: String })
|
|
7926
7847
|
], Textarea.prototype, "placeholder", 2);
|
|
7927
|
-
__decorateClass$
|
|
7848
|
+
__decorateClass$w([
|
|
7928
7849
|
o$9({ slot: "label" })
|
|
7929
7850
|
], Textarea.prototype, "slotLabelNodes", 2);
|
|
7930
|
-
__decorateClass$
|
|
7851
|
+
__decorateClass$w([
|
|
7931
7852
|
o$9({ slot: "description" })
|
|
7932
7853
|
], Textarea.prototype, "slotDescriptionNodes", 2);
|
|
7933
|
-
__decorateClass$
|
|
7854
|
+
__decorateClass$w([
|
|
7934
7855
|
t$3()
|
|
7935
7856
|
], Textarea.prototype, "hasDescription", 2);
|
|
7936
|
-
__decorateClass$
|
|
7857
|
+
__decorateClass$w([
|
|
7937
7858
|
t$3()
|
|
7938
7859
|
], Textarea.prototype, "hasLabel", 2);
|
|
7939
|
-
Textarea = __decorateClass$
|
|
7940
|
-
e$8(tagName$
|
|
7860
|
+
Textarea = __decorateClass$w([
|
|
7861
|
+
e$8(tagName$v)
|
|
7941
7862
|
], Textarea);
|
|
7942
|
-
var __defProp$
|
|
7943
|
-
var __getOwnPropDesc$
|
|
7944
|
-
var __decorateClass$
|
|
7945
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7863
|
+
var __defProp$v = Object.defineProperty;
|
|
7864
|
+
var __getOwnPropDesc$v = Object.getOwnPropertyDescriptor;
|
|
7865
|
+
var __decorateClass$v = (decorators, target, key, kind) => {
|
|
7866
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$v(target, key) : target;
|
|
7946
7867
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
7947
7868
|
if (decorator = decorators[i2])
|
|
7948
7869
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7949
7870
|
if (kind && result)
|
|
7950
|
-
__defProp$
|
|
7871
|
+
__defProp$v(target, key, result);
|
|
7951
7872
|
return result;
|
|
7952
7873
|
};
|
|
7953
7874
|
let LegendDescription = class extends s$3 {
|
|
@@ -7958,21 +7879,21 @@ let LegendDescription = class extends s$3 {
|
|
|
7958
7879
|
LegendDescription.styles = [
|
|
7959
7880
|
i$4`:host{color:var(--sc-neutral-500);font-size:1.25rem;line-height:1.2;display:block;font-weight:var(--sc-font-weight-base);font-style:var(--sc-font-style-base);margin-top:.25em}`
|
|
7960
7881
|
];
|
|
7961
|
-
LegendDescription = __decorateClass$
|
|
7882
|
+
LegendDescription = __decorateClass$v([
|
|
7962
7883
|
e$8("sonic-legend-description")
|
|
7963
7884
|
], LegendDescription);
|
|
7964
|
-
var __defProp$
|
|
7965
|
-
var __getOwnPropDesc$
|
|
7966
|
-
var __decorateClass$
|
|
7967
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7885
|
+
var __defProp$u = Object.defineProperty;
|
|
7886
|
+
var __getOwnPropDesc$u = Object.getOwnPropertyDescriptor;
|
|
7887
|
+
var __decorateClass$u = (decorators, target, key, kind) => {
|
|
7888
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$u(target, key) : target;
|
|
7968
7889
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
7969
7890
|
if (decorator = decorators[i2])
|
|
7970
7891
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7971
7892
|
if (kind && result)
|
|
7972
|
-
__defProp$
|
|
7893
|
+
__defProp$u(target, key, result);
|
|
7973
7894
|
return result;
|
|
7974
7895
|
};
|
|
7975
|
-
const tagName$
|
|
7896
|
+
const tagName$u = "sonic-legend";
|
|
7976
7897
|
let Legend = class extends s$3 {
|
|
7977
7898
|
constructor() {
|
|
7978
7899
|
super(...arguments);
|
|
@@ -8003,39 +7924,39 @@ let Legend = class extends s$3 {
|
|
|
8003
7924
|
Legend.styles = [
|
|
8004
7925
|
i$4`:host{--sc-legend-font-size:1.5rem;--sc-legend-font-weight:var(--sc-font-weight-base);--sc-legend-font-style:var(--sc-headings-font-style);--sc-legend-family:var(--sc-headings-font-family);--sc-legend-line-height:var(--sc-headings-line-height);--sc-legend-color:var(--sc-base-content);display:flex;width:100%}legend{font-size:var(--sc-legend-font-size);font-weight:var(--sc-legend-font-weight);font-style:var(--sc-legend-font-style);font-family:var(--sc-legend-font-family);line-height:var(--sc-legend-line-height);color:var(--sc-legend-color);padding:0;display:flex;width:100%;align-items:flex-start;gap:.5em}slot[name=suffix]{display:block;margin-left:auto;flex-shrink:0}.legend-content{flex-grow:1}`
|
|
8005
7926
|
];
|
|
8006
|
-
__decorateClass$
|
|
7927
|
+
__decorateClass$u([
|
|
8007
7928
|
e$7({ type: Boolean })
|
|
8008
7929
|
], Legend.prototype, "forceAutoFill", 2);
|
|
8009
|
-
__decorateClass$
|
|
7930
|
+
__decorateClass$u([
|
|
8010
7931
|
e$7()
|
|
8011
7932
|
], Legend.prototype, "description", 1);
|
|
8012
|
-
__decorateClass$
|
|
7933
|
+
__decorateClass$u([
|
|
8013
7934
|
e$7()
|
|
8014
7935
|
], Legend.prototype, "label", 1);
|
|
8015
|
-
__decorateClass$
|
|
7936
|
+
__decorateClass$u([
|
|
8016
7937
|
e$7({ type: String })
|
|
8017
7938
|
], Legend.prototype, "iconName", 2);
|
|
8018
|
-
__decorateClass$
|
|
7939
|
+
__decorateClass$u([
|
|
8019
7940
|
e$7({ type: String })
|
|
8020
7941
|
], Legend.prototype, "iconLibrary", 2);
|
|
8021
|
-
__decorateClass$
|
|
7942
|
+
__decorateClass$u([
|
|
8022
7943
|
e$7({ type: String })
|
|
8023
7944
|
], Legend.prototype, "iconPrefix", 2);
|
|
8024
|
-
Legend = __decorateClass$
|
|
8025
|
-
e$8(tagName$
|
|
7945
|
+
Legend = __decorateClass$u([
|
|
7946
|
+
e$8(tagName$u)
|
|
8026
7947
|
], Legend);
|
|
8027
|
-
var __defProp$
|
|
8028
|
-
var __getOwnPropDesc$
|
|
8029
|
-
var __decorateClass$
|
|
8030
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7948
|
+
var __defProp$t = Object.defineProperty;
|
|
7949
|
+
var __getOwnPropDesc$t = Object.getOwnPropertyDescriptor;
|
|
7950
|
+
var __decorateClass$t = (decorators, target, key, kind) => {
|
|
7951
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$t(target, key) : target;
|
|
8031
7952
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
8032
7953
|
if (decorator = decorators[i2])
|
|
8033
7954
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8034
7955
|
if (kind && result)
|
|
8035
|
-
__defProp$
|
|
7956
|
+
__defProp$t(target, key, result);
|
|
8036
7957
|
return result;
|
|
8037
7958
|
};
|
|
8038
|
-
const tagName$
|
|
7959
|
+
const tagName$t = "sonic-fieldset";
|
|
8039
7960
|
let Fieldset = class extends Subscriber$1(s$3) {
|
|
8040
7961
|
constructor() {
|
|
8041
7962
|
super(...arguments);
|
|
@@ -8049,32 +7970,32 @@ let Fieldset = class extends Subscriber$1(s$3) {
|
|
|
8049
7970
|
Fieldset.styles = [
|
|
8050
7971
|
i$4`:host{--sc-fieldset-mt:0;--sc-fieldset-mb:1rem;--sc-fieldset-border-color:var(--sc-border-color);--sc-fieldset-border-width:var(--sc-form-border-width);margin-top:var(--sc-fieldset-mt);margin-bottom:var(--sc-fieldset-mb);display:block;border:var(--sc-fieldset-border-width) solid var(--sc-fieldset-border-color)!important;padding:1.8rem 1.25rem;border-radius:var(--sc-rounded-lg)}fieldset{all:unset;display:contents}:host([variant=ghost]),:host([variant=shadow]){--sc-fieldset-border-color:transparent}:host([variant=shadow]){--sc-fieldset-border-color:transparent;box-shadow:var(--sc-shadow-lg)}::slotted(sonic-legend),sonic-legend{margin-bottom:1.5rem;display:block}::slotted(sonic-legend:last-child){margin-bottom:0}`
|
|
8051
7972
|
];
|
|
8052
|
-
__decorateClass$
|
|
7973
|
+
__decorateClass$t([
|
|
8053
7974
|
e$7({ type: Boolean, reflect: true })
|
|
8054
7975
|
], Fieldset.prototype, "disabled", 2);
|
|
8055
|
-
__decorateClass$
|
|
7976
|
+
__decorateClass$t([
|
|
8056
7977
|
e$7({ type: String })
|
|
8057
7978
|
], Fieldset.prototype, "form", 2);
|
|
8058
|
-
__decorateClass$
|
|
7979
|
+
__decorateClass$t([
|
|
8059
7980
|
e$7({ type: String })
|
|
8060
7981
|
], Fieldset.prototype, "label", 2);
|
|
8061
|
-
__decorateClass$
|
|
7982
|
+
__decorateClass$t([
|
|
8062
7983
|
e$7({ type: String })
|
|
8063
7984
|
], Fieldset.prototype, "description", 2);
|
|
8064
|
-
__decorateClass$
|
|
7985
|
+
__decorateClass$t([
|
|
8065
7986
|
e$7({ type: String })
|
|
8066
7987
|
], Fieldset.prototype, "iconName", 2);
|
|
8067
|
-
__decorateClass$
|
|
7988
|
+
__decorateClass$t([
|
|
8068
7989
|
e$7({ type: String })
|
|
8069
7990
|
], Fieldset.prototype, "iconLibrary", 2);
|
|
8070
|
-
__decorateClass$
|
|
7991
|
+
__decorateClass$t([
|
|
8071
7992
|
e$7({ type: String })
|
|
8072
7993
|
], Fieldset.prototype, "iconPrefix", 2);
|
|
8073
|
-
__decorateClass$
|
|
7994
|
+
__decorateClass$t([
|
|
8074
7995
|
e$7({ type: String, reflect: true })
|
|
8075
7996
|
], Fieldset.prototype, "variant", 2);
|
|
8076
|
-
Fieldset = __decorateClass$
|
|
8077
|
-
e$8(tagName$
|
|
7997
|
+
Fieldset = __decorateClass$t([
|
|
7998
|
+
e$8(tagName$t)
|
|
8078
7999
|
], Fieldset);
|
|
8079
8000
|
class s {
|
|
8080
8001
|
constructor(s2, { target: t2, config: i2, callback: h2, skipInitial: e2 }) {
|
|
@@ -8106,18 +8027,18 @@ class s {
|
|
|
8106
8027
|
this.u.disconnect();
|
|
8107
8028
|
}
|
|
8108
8029
|
}
|
|
8109
|
-
var __defProp$
|
|
8110
|
-
var __getOwnPropDesc$
|
|
8111
|
-
var __decorateClass$
|
|
8112
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
8030
|
+
var __defProp$s = Object.defineProperty;
|
|
8031
|
+
var __getOwnPropDesc$s = Object.getOwnPropertyDescriptor;
|
|
8032
|
+
var __decorateClass$s = (decorators, target, key, kind) => {
|
|
8033
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$s(target, key) : target;
|
|
8113
8034
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
8114
8035
|
if (decorator = decorators[i2])
|
|
8115
8036
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8116
8037
|
if (kind && result)
|
|
8117
|
-
__defProp$
|
|
8038
|
+
__defProp$s(target, key, result);
|
|
8118
8039
|
return result;
|
|
8119
8040
|
};
|
|
8120
|
-
const tagName$
|
|
8041
|
+
const tagName$s = "sonic-form-layout";
|
|
8121
8042
|
let FormLayout = class extends Subscriber$1(s$3) {
|
|
8122
8043
|
constructor() {
|
|
8123
8044
|
super(...arguments);
|
|
@@ -8141,27 +8062,27 @@ let FormLayout = class extends Subscriber$1(s$3) {
|
|
|
8141
8062
|
FormLayout.styles = [
|
|
8142
8063
|
i$4`:host{display:block}div{display:grid;grid-gap:1.5rem;align-items:flex-start}.cq--md{grid-gap:1.75rem;grid-template-columns:repeat(2,minmax(0,1fr))}.one-form-element{grid-template-columns:1fr}::slotted(:not(sonic-input):not(sonic-select):not(sonic-input-autocomplete):not(.form-item-container)){grid-column:1/-1}::slotted(sonic-divider){--sc-divider-my:0}`
|
|
8143
8064
|
];
|
|
8144
|
-
__decorateClass$
|
|
8065
|
+
__decorateClass$s([
|
|
8145
8066
|
l$6({ flatten: true })
|
|
8146
8067
|
], FormLayout.prototype, "slottedElements", 2);
|
|
8147
|
-
__decorateClass$
|
|
8068
|
+
__decorateClass$s([
|
|
8148
8069
|
e$7({ type: Boolean })
|
|
8149
8070
|
], FormLayout.prototype, "oneFormElement", 2);
|
|
8150
|
-
FormLayout = __decorateClass$
|
|
8151
|
-
e$8(tagName$
|
|
8071
|
+
FormLayout = __decorateClass$s([
|
|
8072
|
+
e$8(tagName$s)
|
|
8152
8073
|
], FormLayout);
|
|
8153
|
-
var __defProp$
|
|
8154
|
-
var __getOwnPropDesc$
|
|
8155
|
-
var __decorateClass$
|
|
8156
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
8074
|
+
var __defProp$r = Object.defineProperty;
|
|
8075
|
+
var __getOwnPropDesc$r = Object.getOwnPropertyDescriptor;
|
|
8076
|
+
var __decorateClass$r = (decorators, target, key, kind) => {
|
|
8077
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$r(target, key) : target;
|
|
8157
8078
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
8158
8079
|
if (decorator = decorators[i2])
|
|
8159
8080
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8160
8081
|
if (kind && result)
|
|
8161
|
-
__defProp$
|
|
8082
|
+
__defProp$r(target, key, result);
|
|
8162
8083
|
return result;
|
|
8163
8084
|
};
|
|
8164
|
-
const tagName$
|
|
8085
|
+
const tagName$r = "sonic-form-actions";
|
|
8165
8086
|
let FormActions = class extends s$3 {
|
|
8166
8087
|
constructor() {
|
|
8167
8088
|
super(...arguments);
|
|
@@ -8179,27 +8100,27 @@ let FormActions = class extends s$3 {
|
|
|
8179
8100
|
FormActions.styles = [
|
|
8180
8101
|
i$4`:host{display:block}slot{display:flex;flex-wrap:wrap;gap:.3rem}`
|
|
8181
8102
|
];
|
|
8182
|
-
__decorateClass$
|
|
8103
|
+
__decorateClass$r([
|
|
8183
8104
|
e$7({ type: String })
|
|
8184
8105
|
], FormActions.prototype, "direction", 2);
|
|
8185
|
-
__decorateClass$
|
|
8106
|
+
__decorateClass$r([
|
|
8186
8107
|
e$7({ type: String })
|
|
8187
8108
|
], FormActions.prototype, "justify", 2);
|
|
8188
|
-
FormActions = __decorateClass$
|
|
8189
|
-
e$8(tagName$
|
|
8109
|
+
FormActions = __decorateClass$r([
|
|
8110
|
+
e$8(tagName$r)
|
|
8190
8111
|
], FormActions);
|
|
8191
|
-
var __defProp$
|
|
8192
|
-
var __getOwnPropDesc$
|
|
8193
|
-
var __decorateClass$
|
|
8194
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
8112
|
+
var __defProp$q = Object.defineProperty;
|
|
8113
|
+
var __getOwnPropDesc$q = Object.getOwnPropertyDescriptor;
|
|
8114
|
+
var __decorateClass$q = (decorators, target, key, kind) => {
|
|
8115
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$q(target, key) : target;
|
|
8195
8116
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
8196
8117
|
if (decorator = decorators[i2])
|
|
8197
8118
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8198
8119
|
if (kind && result)
|
|
8199
|
-
__defProp$
|
|
8120
|
+
__defProp$q(target, key, result);
|
|
8200
8121
|
return result;
|
|
8201
8122
|
};
|
|
8202
|
-
const tagName$
|
|
8123
|
+
const tagName$q = "sonic-group";
|
|
8203
8124
|
let Group = class extends s$3 {
|
|
8204
8125
|
constructor() {
|
|
8205
8126
|
super(...arguments);
|
|
@@ -8254,42 +8175,42 @@ Group.styles = [
|
|
|
8254
8175
|
description,
|
|
8255
8176
|
i$4`:host{display:inline-block;vertical-align:middle}.main-slot{width:100%;display:flex}.hidden{display:none}::slotted(sonic-button),::slotted(sonic-input),::slotted(sonic-select){flex-grow:1}`
|
|
8256
8177
|
];
|
|
8257
|
-
__decorateClass$
|
|
8178
|
+
__decorateClass$q([
|
|
8258
8179
|
e$7({ type: String })
|
|
8259
8180
|
], Group.prototype, "alignItems", 2);
|
|
8260
|
-
__decorateClass$
|
|
8181
|
+
__decorateClass$q([
|
|
8261
8182
|
e$7({ type: String })
|
|
8262
8183
|
], Group.prototype, "label", 2);
|
|
8263
|
-
__decorateClass$
|
|
8184
|
+
__decorateClass$q([
|
|
8264
8185
|
e$7({ type: String })
|
|
8265
8186
|
], Group.prototype, "description", 2);
|
|
8266
|
-
__decorateClass$
|
|
8187
|
+
__decorateClass$q([
|
|
8267
8188
|
o$9({ slot: "label" })
|
|
8268
8189
|
], Group.prototype, "slotLabelNodes", 2);
|
|
8269
|
-
__decorateClass$
|
|
8190
|
+
__decorateClass$q([
|
|
8270
8191
|
o$9({ slot: "description" })
|
|
8271
8192
|
], Group.prototype, "slotDescriptionNodes", 2);
|
|
8272
|
-
__decorateClass$
|
|
8193
|
+
__decorateClass$q([
|
|
8273
8194
|
t$3()
|
|
8274
8195
|
], Group.prototype, "hasDescription", 2);
|
|
8275
|
-
__decorateClass$
|
|
8196
|
+
__decorateClass$q([
|
|
8276
8197
|
t$3()
|
|
8277
8198
|
], Group.prototype, "hasLabel", 2);
|
|
8278
|
-
Group = __decorateClass$
|
|
8279
|
-
e$8(tagName$
|
|
8199
|
+
Group = __decorateClass$q([
|
|
8200
|
+
e$8(tagName$q)
|
|
8280
8201
|
], Group);
|
|
8281
|
-
var __defProp$
|
|
8282
|
-
var __getOwnPropDesc$
|
|
8283
|
-
var __decorateClass$
|
|
8284
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
8202
|
+
var __defProp$p = Object.defineProperty;
|
|
8203
|
+
var __getOwnPropDesc$p = Object.getOwnPropertyDescriptor;
|
|
8204
|
+
var __decorateClass$p = (decorators, target, key, kind) => {
|
|
8205
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$p(target, key) : target;
|
|
8285
8206
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
8286
8207
|
if (decorator = decorators[i2])
|
|
8287
8208
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8288
8209
|
if (kind && result)
|
|
8289
|
-
__defProp$
|
|
8210
|
+
__defProp$p(target, key, result);
|
|
8290
8211
|
return result;
|
|
8291
8212
|
};
|
|
8292
|
-
const tagName$
|
|
8213
|
+
const tagName$p = "sonic-image";
|
|
8293
8214
|
let Image = class extends s$3 {
|
|
8294
8215
|
constructor() {
|
|
8295
8216
|
super(...arguments);
|
|
@@ -8302,6 +8223,17 @@ let Image = class extends s$3 {
|
|
|
8302
8223
|
this.imageRendering = "auto";
|
|
8303
8224
|
this.cover = false;
|
|
8304
8225
|
}
|
|
8226
|
+
firstUpdated() {
|
|
8227
|
+
var _a2;
|
|
8228
|
+
if (this.transition) {
|
|
8229
|
+
const img = (_a2 = this.shadowRoot) == null ? void 0 : _a2.querySelector("img");
|
|
8230
|
+
if (!img)
|
|
8231
|
+
return;
|
|
8232
|
+
img.onload = function() {
|
|
8233
|
+
img.classList.add("loaded");
|
|
8234
|
+
};
|
|
8235
|
+
}
|
|
8236
|
+
}
|
|
8305
8237
|
render() {
|
|
8306
8238
|
const imgStyles = {
|
|
8307
8239
|
aspectRatio: this.cover ? "auto" : this.ratio,
|
|
@@ -8312,148 +8244,38 @@ let Image = class extends s$3 {
|
|
|
8312
8244
|
}
|
|
8313
8245
|
};
|
|
8314
8246
|
Image.styles = [
|
|
8315
|
-
i$4`:host{--sc-img-radius:0;--sc-img-bg:var(--sc-placeholder-bg);border-radius:var(--sc-img-radius);display:block;width:100%;background:var(--sc-img-bg)}img{width:100%;vertical-align:middle;object-fit:cover}img[src=""]{visibility:hidden}:host([rounded]){--sc-img-radius:var(--sc-rounded);overflow:hidden}:host([rounded=sm]){--sc-img-radius:var(--sc-rounded-sm)}:host([rounded=md]){--sc-img-radius:var(--sc-rounded-md)}:host([rounded=lg]){--sc-img-radius:var(--sc-rounded-lg)}:host([rounded=xl]){--sc-img-radius:var(--sc-rounded-xl)}:host([rounded=full]){--sc-img-radius:50%!important}:host([rounded=none]){--sc-img-radius:0!important}:host([cover]),:host([cover]) img,:host([cover])>div{position:absolute!important;left:0!important;top:0!important;right:0!important;bottom:0!important;height:100%!important;width:100%!important}`
|
|
8247
|
+
i$4`:host{--sc-img-radius:0;--sc-img-bg:var(--sc-placeholder-bg);border-radius:var(--sc-img-radius);display:block;width:100%;background:var(--sc-img-bg)}img{width:100%;vertical-align:middle;object-fit:cover}img[src=""]{visibility:hidden}:host([rounded]){--sc-img-radius:var(--sc-rounded);overflow:hidden}:host([rounded=sm]){--sc-img-radius:var(--sc-rounded-sm)}:host([rounded=md]){--sc-img-radius:var(--sc-rounded-md)}:host([rounded=lg]){--sc-img-radius:var(--sc-rounded-lg)}:host([rounded=xl]){--sc-img-radius:var(--sc-rounded-xl)}:host([rounded=full]){--sc-img-radius:50%!important}:host([rounded=none]){--sc-img-radius:0!important}:host([cover]),:host([cover]) img,:host([cover])>div{position:absolute!important;left:0!important;top:0!important;right:0!important;bottom:0!important;height:100%!important;width:100%!important}:host([transition]) img{opacity:0;transition:.25s}:host([transition=fade-scale-out]) img{scale:1.08;transition:opacity .3s linear,scale .3s cubic-bezier(.16,1,.3,1)}:host([transition]) img.loaded{opacity:1;scale:1}`
|
|
8316
8248
|
];
|
|
8317
|
-
__decorateClass$
|
|
8249
|
+
__decorateClass$p([
|
|
8318
8250
|
e$7({ type: String })
|
|
8319
8251
|
], Image.prototype, "rounded", 2);
|
|
8320
|
-
__decorateClass$
|
|
8252
|
+
__decorateClass$p([
|
|
8321
8253
|
e$7({ type: String })
|
|
8322
8254
|
], Image.prototype, "src", 2);
|
|
8323
|
-
__decorateClass$
|
|
8255
|
+
__decorateClass$p([
|
|
8324
8256
|
e$7({ type: String })
|
|
8325
8257
|
], Image.prototype, "alt", 2);
|
|
8326
|
-
__decorateClass$
|
|
8258
|
+
__decorateClass$p([
|
|
8327
8259
|
e$7({ type: String })
|
|
8328
8260
|
], Image.prototype, "loading", 2);
|
|
8329
|
-
__decorateClass$
|
|
8261
|
+
__decorateClass$p([
|
|
8262
|
+
e$7({ type: String, reflect: true })
|
|
8263
|
+
], Image.prototype, "transition", 2);
|
|
8264
|
+
__decorateClass$p([
|
|
8330
8265
|
e$7({ type: String })
|
|
8331
8266
|
], Image.prototype, "ratio", 2);
|
|
8332
|
-
__decorateClass$
|
|
8267
|
+
__decorateClass$p([
|
|
8333
8268
|
e$7({ type: String })
|
|
8334
8269
|
], Image.prototype, "objectPosition", 2);
|
|
8335
|
-
__decorateClass$
|
|
8270
|
+
__decorateClass$p([
|
|
8336
8271
|
e$7({ type: String })
|
|
8337
8272
|
], Image.prototype, "imageRendering", 2);
|
|
8338
|
-
__decorateClass$
|
|
8273
|
+
__decorateClass$p([
|
|
8339
8274
|
e$7({ type: Boolean, reflect: true })
|
|
8340
8275
|
], Image.prototype, "cover", 2);
|
|
8341
|
-
Image = __decorateClass$
|
|
8342
|
-
e$8(tagName$q)
|
|
8343
|
-
], Image);
|
|
8344
|
-
/**
|
|
8345
|
-
* @license
|
|
8346
|
-
* Copyright 2017 Google LLC
|
|
8347
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
8348
|
-
*/
|
|
8349
|
-
const d = e$2(class extends i$2 {
|
|
8350
|
-
constructor(t2) {
|
|
8351
|
-
super(t2), this.et = /* @__PURE__ */ new WeakMap();
|
|
8352
|
-
}
|
|
8353
|
-
render(t2) {
|
|
8354
|
-
return [t2];
|
|
8355
|
-
}
|
|
8356
|
-
update(s2, [e2]) {
|
|
8357
|
-
if (n$2(this.it) && (!n$2(e2) || this.it.strings !== e2.strings)) {
|
|
8358
|
-
const e3 = m(s2).pop();
|
|
8359
|
-
let o2 = this.et.get(this.it.strings);
|
|
8360
|
-
if (void 0 === o2) {
|
|
8361
|
-
const s3 = document.createDocumentFragment();
|
|
8362
|
-
o2 = Z(b$1, s3), o2.setConnected(false), this.et.set(this.it.strings, o2);
|
|
8363
|
-
}
|
|
8364
|
-
s$2(o2, [e3]), r$2(o2, void 0, e3);
|
|
8365
|
-
}
|
|
8366
|
-
if (n$2(e2)) {
|
|
8367
|
-
if (!n$2(this.it) || this.it.strings !== e2.strings) {
|
|
8368
|
-
const t2 = this.et.get(e2.strings);
|
|
8369
|
-
if (void 0 !== t2) {
|
|
8370
|
-
const i2 = m(t2).pop();
|
|
8371
|
-
a$1(s2), r$2(s2, void 0, i2), s$2(s2, [i2]);
|
|
8372
|
-
}
|
|
8373
|
-
}
|
|
8374
|
-
this.it = e2;
|
|
8375
|
-
} else
|
|
8376
|
-
this.it = void 0;
|
|
8377
|
-
return this.render(e2);
|
|
8378
|
-
}
|
|
8379
|
-
});
|
|
8380
|
-
var __defProp$p = Object.defineProperty;
|
|
8381
|
-
var __getOwnPropDesc$p = Object.getOwnPropertyDescriptor;
|
|
8382
|
-
var __decorateClass$p = (decorators, target, key, kind) => {
|
|
8383
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$p(target, key) : target;
|
|
8384
|
-
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
8385
|
-
if (decorator = decorators[i2])
|
|
8386
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8387
|
-
if (kind && result)
|
|
8388
|
-
__defProp$p(target, key, result);
|
|
8389
|
-
return result;
|
|
8390
|
-
};
|
|
8391
|
-
const tagName$p = "sonic-event-taxonomy";
|
|
8392
|
-
let Taxonomy = class extends s$3 {
|
|
8393
|
-
constructor() {
|
|
8394
|
-
super(...arguments);
|
|
8395
|
-
this.icon = { name: "" };
|
|
8396
|
-
this.taxonomy = [];
|
|
8397
|
-
this.separator = ", ";
|
|
8398
|
-
this.key = "";
|
|
8399
|
-
this.displayAll = false;
|
|
8400
|
-
this.contrast = false;
|
|
8401
|
-
this.type = "default";
|
|
8402
|
-
this.variant = "default";
|
|
8403
|
-
this.size = "md";
|
|
8404
|
-
}
|
|
8405
|
-
render() {
|
|
8406
|
-
if (!Array.isArray(this.taxonomy))
|
|
8407
|
-
return b$1;
|
|
8408
|
-
const key = this.key + "_display";
|
|
8409
|
-
const taxo = this.displayAll ? this.taxonomy : this.taxonomy.filter(
|
|
8410
|
-
(elt) => elt != null && (elt[key] === true || elt[key] == "1" || !Object.hasOwnProperty.call(elt, key))
|
|
8411
|
-
);
|
|
8412
|
-
if (taxo.length === 0) {
|
|
8413
|
-
this.style.display = "none";
|
|
8414
|
-
return b$1;
|
|
8415
|
-
}
|
|
8416
|
-
this.style.removeProperty("display");
|
|
8417
|
-
return d(y`<sonic-badge type="${this.type}" variant="${this.variant}" size="${this.size}" ?contrast="${this.contrast}"><sonic-icon slot="prefix" library="${l$2(this.icon.library)}" prefix="${l$2(this.icon.prefix)}" name="${l$2(this.icon.name)}"></sonic-icon><span class="taxonomy-list">${c$1(
|
|
8418
|
-
taxo,
|
|
8419
|
-
(item) => item[this.key + "_id"],
|
|
8420
|
-
(item) => {
|
|
8421
|
-
return y`<span>${item[this.key + "_name"] || item["name"]}</span><span class="sonic-taxonomy-separator">${o$3(this.separator)}</span>`;
|
|
8422
|
-
}
|
|
8423
|
-
)}</span></sonic-badge>`);
|
|
8424
|
-
}
|
|
8425
|
-
};
|
|
8426
|
-
Taxonomy.styles = i$4`:host .sonic-taxonomy-separator:last-child{display:none}.taxonomy-list{display:flex;flex-wrap:wrap}`;
|
|
8427
|
-
__decorateClass$p([
|
|
8428
|
-
e$7({ type: Object })
|
|
8429
|
-
], Taxonomy.prototype, "icon", 2);
|
|
8430
|
-
__decorateClass$p([
|
|
8431
|
-
e$7({ type: Array })
|
|
8432
|
-
], Taxonomy.prototype, "taxonomy", 2);
|
|
8433
|
-
__decorateClass$p([
|
|
8434
|
-
e$7({ type: String })
|
|
8435
|
-
], Taxonomy.prototype, "separator", 2);
|
|
8436
|
-
__decorateClass$p([
|
|
8437
|
-
e$7({ type: String })
|
|
8438
|
-
], Taxonomy.prototype, "key", 2);
|
|
8439
|
-
__decorateClass$p([
|
|
8440
|
-
e$7({ type: Boolean })
|
|
8441
|
-
], Taxonomy.prototype, "displayAll", 2);
|
|
8442
|
-
__decorateClass$p([
|
|
8443
|
-
e$7({ type: Boolean })
|
|
8444
|
-
], Taxonomy.prototype, "contrast", 2);
|
|
8445
|
-
__decorateClass$p([
|
|
8446
|
-
e$7({ type: String, reflect: true })
|
|
8447
|
-
], Taxonomy.prototype, "type", 2);
|
|
8448
|
-
__decorateClass$p([
|
|
8449
|
-
e$7({ type: String, reflect: true })
|
|
8450
|
-
], Taxonomy.prototype, "variant", 2);
|
|
8451
|
-
__decorateClass$p([
|
|
8452
|
-
e$7({ type: String, reflect: true })
|
|
8453
|
-
], Taxonomy.prototype, "size", 2);
|
|
8454
|
-
Taxonomy = __decorateClass$p([
|
|
8276
|
+
Image = __decorateClass$p([
|
|
8455
8277
|
e$8(tagName$p)
|
|
8456
|
-
],
|
|
8278
|
+
], Image);
|
|
8457
8279
|
var __defProp$o = Object.defineProperty;
|
|
8458
8280
|
var __getOwnPropDesc$o = Object.getOwnPropertyDescriptor;
|
|
8459
8281
|
var __decorateClass$o = (decorators, target, key, kind) => {
|