@supersoniks/concorde 1.1.46 → 1.1.48
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 +19 -21
- package/concorde-core.es.js +802 -822
- 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 +5 -0
- package/core/components/functional/list/list.d.ts +37 -18
- package/core/components/functional/list/list.js +12 -22
- package/core/components/functional/sdui/sdui.d.ts +5 -3
- package/core/components/functional/sdui/sdui.js +0 -3
- package/core/components/ui/_css/type.js +12 -12
- package/core/components/ui/badge/badge.js +3 -4
- package/core/components/ui/button/button.d.ts +5 -0
- package/core/components/ui/button/button.js +37 -12
- package/core/components/ui/form/checkbox/checkbox.d.ts +8 -0
- package/core/components/ui/form/css/form-control.js +7 -5
- package/core/components/ui/form/form-layout/form-layout.js +3 -1
- package/core/components/ui/form/input/input.d.ts +7 -1
- package/core/components/ui/form/input-autocomplete/input-autocomplete.d.ts +9 -0
- package/core/components/ui/form/input-autocomplete/input-autocomplete.js +37 -7
- package/core/components/ui/form/textarea/textarea.d.ts +4 -0
- package/core/components/ui/image/image.d.ts +2 -0
- package/core/components/ui/image/image.js +28 -0
- package/core/components/ui/modal/modal.d.ts +2 -0
- package/core/components/ui/modal/modal.js +6 -3
- 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/decorators/Subscriber.d.ts +3 -0
- package/core/decorators/Subscriber.js +78 -0
- package/core/mixins/Fetcher.d.ts +8 -1
- package/core/mixins/Fetcher.js +9 -10
- package/core/mixins/FormCheckable.d.ts +4 -0
- package/core/mixins/FormInput.d.ts +5 -4
- package/core/mixins/Subscriber.d.ts +4 -0
- package/core/mixins/Subscriber.js +30 -4
- 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 +13 -0
- package/package.json +2 -2
- 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;
|
|
@@ -1180,6 +1179,26 @@ const Subscriber$1 = (superClass, type) => {
|
|
|
1180
1179
|
this.props = v2;
|
|
1181
1180
|
};
|
|
1182
1181
|
}
|
|
1182
|
+
onConnected(callback) {
|
|
1183
|
+
if (!this.connectedCallbackCalls)
|
|
1184
|
+
this.connectedCallbackCalls = /* @__PURE__ */ new Set();
|
|
1185
|
+
this.connectedCallbackCalls.add(callback);
|
|
1186
|
+
}
|
|
1187
|
+
onDisconnected(callback) {
|
|
1188
|
+
if (!this.disconnectedCallbackCalls)
|
|
1189
|
+
this.disconnectedCallbackCalls = /* @__PURE__ */ new Set();
|
|
1190
|
+
this.disconnectedCallbackCalls.add(callback);
|
|
1191
|
+
}
|
|
1192
|
+
offConnected(callback) {
|
|
1193
|
+
if (!this.connectedCallbackCalls)
|
|
1194
|
+
this.connectedCallbackCalls = /* @__PURE__ */ new Set();
|
|
1195
|
+
this.connectedCallbackCalls.delete(callback);
|
|
1196
|
+
}
|
|
1197
|
+
offDisconnected(callback) {
|
|
1198
|
+
if (!this.disconnectedCallbackCalls)
|
|
1199
|
+
this.disconnectedCallbackCalls = /* @__PURE__ */ new Set();
|
|
1200
|
+
this.disconnectedCallbackCalls.delete(callback);
|
|
1201
|
+
}
|
|
1183
1202
|
hasAncestorAttribute(attributeName) {
|
|
1184
1203
|
return this.getAncestorAttributeValue(attributeName) != null;
|
|
1185
1204
|
}
|
|
@@ -1214,6 +1233,7 @@ const Subscriber$1 = (superClass, type) => {
|
|
|
1214
1233
|
this.style.removeProperty("display");
|
|
1215
1234
|
}
|
|
1216
1235
|
connectedCallback() {
|
|
1236
|
+
var _a2;
|
|
1217
1237
|
_SubscriberElement.instanceCounter++;
|
|
1218
1238
|
if (this.hasAttribute("lazyRendering")) {
|
|
1219
1239
|
const options = {
|
|
@@ -1240,9 +1260,11 @@ const Subscriber$1 = (superClass, type) => {
|
|
|
1240
1260
|
this.addDebugger();
|
|
1241
1261
|
}
|
|
1242
1262
|
super.connectedCallback();
|
|
1263
|
+
(_a2 = this.connectedCallbackCalls) == null ? void 0 : _a2.forEach((cb) => cb(this));
|
|
1243
1264
|
}
|
|
1244
1265
|
disconnectedCallback() {
|
|
1245
|
-
var _a2;
|
|
1266
|
+
var _a2, _b;
|
|
1267
|
+
(_a2 = this.disconnectedCallbackCalls) == null ? void 0 : _a2.forEach((cb) => cb(this));
|
|
1246
1268
|
this.removeDebugger();
|
|
1247
1269
|
super.disconnectedCallback();
|
|
1248
1270
|
if (this.publisher) {
|
|
@@ -1252,7 +1274,7 @@ const Subscriber$1 = (superClass, type) => {
|
|
|
1252
1274
|
if (this.wordingPublisher)
|
|
1253
1275
|
this.wordingPublisher.stopTemplateFilling(this);
|
|
1254
1276
|
if (this.onAssign)
|
|
1255
|
-
(
|
|
1277
|
+
(_b = this.publisher) == null ? void 0 : _b.offAssign(this.onAssign);
|
|
1256
1278
|
}
|
|
1257
1279
|
addDebugger() {
|
|
1258
1280
|
var _a2;
|
|
@@ -1343,7 +1365,8 @@ const Subscriber$1 = (superClass, type) => {
|
|
|
1343
1365
|
}
|
|
1344
1366
|
if (!hasWording)
|
|
1345
1367
|
return;
|
|
1346
|
-
const publisher = PublisherManager$1.get("sonic-wording");
|
|
1368
|
+
const publisher = PublisherManager$1.get("sonic-wording", { localStorageMode: "enabled" });
|
|
1369
|
+
await PublisherManager$1.getInstance().isLocalStrorageReady;
|
|
1347
1370
|
const wordingProvider = this.getAncestorAttributeValue("wordingProvider");
|
|
1348
1371
|
const api2 = new API(this.getApiConfiguration());
|
|
1349
1372
|
if (wordingProvider) {
|
|
@@ -1359,7 +1382,8 @@ const Subscriber$1 = (superClass, type) => {
|
|
|
1359
1382
|
}
|
|
1360
1383
|
}
|
|
1361
1384
|
if (wordings.length > 0) {
|
|
1362
|
-
const
|
|
1385
|
+
const calledURL = wordingProvider + "?labels[]=" + wordings.join("&labels[]=");
|
|
1386
|
+
const result = await api2.get(calledURL);
|
|
1363
1387
|
for (const elt in result) {
|
|
1364
1388
|
publisher["wording_" + elt] = result[elt];
|
|
1365
1389
|
}
|
|
@@ -1421,43 +1445,43 @@ const Subscriber$1 = (superClass, type) => {
|
|
|
1421
1445
|
};
|
|
1422
1446
|
let SubscriberElement = _SubscriberElement;
|
|
1423
1447
|
SubscriberElement.instanceCounter = 0;
|
|
1424
|
-
__decorateClass$
|
|
1448
|
+
__decorateClass$17([
|
|
1425
1449
|
e$7({ type: Boolean })
|
|
1426
1450
|
], SubscriberElement.prototype, "displayContents", 2);
|
|
1427
|
-
__decorateClass$
|
|
1451
|
+
__decorateClass$17([
|
|
1428
1452
|
e$7({ type: Boolean })
|
|
1429
1453
|
], SubscriberElement.prototype, "noAutoFill", 2);
|
|
1430
|
-
__decorateClass$
|
|
1454
|
+
__decorateClass$17([
|
|
1431
1455
|
e$7({ type: Boolean })
|
|
1432
1456
|
], SubscriberElement.prototype, "forceAutoFill", 2);
|
|
1433
|
-
__decorateClass$
|
|
1457
|
+
__decorateClass$17([
|
|
1434
1458
|
e$7({ type: Object })
|
|
1435
1459
|
], SubscriberElement.prototype, "propertyMap", 2);
|
|
1436
|
-
__decorateClass$
|
|
1460
|
+
__decorateClass$17([
|
|
1437
1461
|
e$7({ type: String, attribute: "data-title" })
|
|
1438
1462
|
], SubscriberElement.prototype, "title", 2);
|
|
1439
|
-
__decorateClass$
|
|
1463
|
+
__decorateClass$17([
|
|
1440
1464
|
e$7({ reflect: true })
|
|
1441
1465
|
], SubscriberElement.prototype, "dataProvider", 2);
|
|
1442
|
-
__decorateClass$
|
|
1466
|
+
__decorateClass$17([
|
|
1443
1467
|
e$7()
|
|
1444
1468
|
], SubscriberElement.prototype, "bindPublisher", 2);
|
|
1445
|
-
__decorateClass$
|
|
1469
|
+
__decorateClass$17([
|
|
1446
1470
|
e$7()
|
|
1447
1471
|
], SubscriberElement.prototype, "props", 1);
|
|
1448
1472
|
return SubscriberElement;
|
|
1449
1473
|
};
|
|
1450
1474
|
if (!window.SonicPublisherManager)
|
|
1451
1475
|
window.SonicPublisherManager = PublisherManager$1;
|
|
1452
|
-
var __defProp$
|
|
1453
|
-
var __getOwnPropDesc$
|
|
1454
|
-
var __decorateClass$
|
|
1455
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
1476
|
+
var __defProp$16 = Object.defineProperty;
|
|
1477
|
+
var __getOwnPropDesc$16 = Object.getOwnPropertyDescriptor;
|
|
1478
|
+
var __decorateClass$16 = (decorators, target, key, kind) => {
|
|
1479
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$16(target, key) : target;
|
|
1456
1480
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
1457
1481
|
if (decorator = decorators[i2])
|
|
1458
1482
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
1459
1483
|
if (kind && result)
|
|
1460
|
-
__defProp$
|
|
1484
|
+
__defProp$16(target, key, result);
|
|
1461
1485
|
return result;
|
|
1462
1486
|
};
|
|
1463
1487
|
const TemplatesContainer$1 = (superClass) => {
|
|
@@ -1484,7 +1508,7 @@ const TemplatesContainer$1 = (superClass) => {
|
|
|
1484
1508
|
super.connectedCallback();
|
|
1485
1509
|
}
|
|
1486
1510
|
}
|
|
1487
|
-
__decorateClass$
|
|
1511
|
+
__decorateClass$16([
|
|
1488
1512
|
e$7({ type: Array })
|
|
1489
1513
|
], TemplatesContainerElement.prototype, "templates", 2);
|
|
1490
1514
|
return TemplatesContainerElement;
|
|
@@ -1494,7 +1518,7 @@ const TemplatesContainer$1 = (superClass) => {
|
|
|
1494
1518
|
* Copyright 2019 Google LLC
|
|
1495
1519
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1496
1520
|
*/
|
|
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$
|
|
1521
|
+
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
1522
|
class o$8 {
|
|
1499
1523
|
constructor(t2, e2, n2) {
|
|
1500
1524
|
if (this._$cssResult$ = true, n2 !== s$6)
|
|
@@ -1506,7 +1530,7 @@ class o$8 {
|
|
|
1506
1530
|
const s2 = this.t;
|
|
1507
1531
|
if (e$5 && void 0 === t2) {
|
|
1508
1532
|
const e2 = void 0 !== s2 && 1 === s2.length;
|
|
1509
|
-
e2 && (t2 = n$
|
|
1533
|
+
e2 && (t2 = n$5.get(s2)), void 0 === t2 && ((this.o = t2 = new CSSStyleSheet()).replaceSync(this.cssText), e2 && n$5.set(s2, t2));
|
|
1510
1534
|
}
|
|
1511
1535
|
return t2;
|
|
1512
1536
|
}
|
|
@@ -1540,7 +1564,7 @@ const r$5 = (t2) => new o$8("string" == typeof t2 ? t2 : t2 + "", void 0, s$6),
|
|
|
1540
1564
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1541
1565
|
*/
|
|
1542
1566
|
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$
|
|
1567
|
+
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
1568
|
switch (i2) {
|
|
1545
1569
|
case Boolean:
|
|
1546
1570
|
t2 = t2 ? h$3 : null;
|
|
@@ -1568,8 +1592,8 @@ const e$4 = window, r$4 = e$4.trustedTypes, h$3 = r$4 ? r$4.emptyScript : "", o$
|
|
|
1568
1592
|
}
|
|
1569
1593
|
}
|
|
1570
1594
|
return s2;
|
|
1571
|
-
} }, a$
|
|
1572
|
-
class d$
|
|
1595
|
+
} }, a$2 = (t2, i2) => i2 !== t2 && (i2 == i2 || t2 == t2), l$5 = { attribute: true, type: String, converter: n$4, reflect: false, hasChanged: a$2 };
|
|
1596
|
+
class d$1 extends HTMLElement {
|
|
1573
1597
|
constructor() {
|
|
1574
1598
|
super(), this._$Ei = /* @__PURE__ */ new Map(), this.isUpdatePending = false, this.hasUpdated = false, this._$El = null, this.u();
|
|
1575
1599
|
}
|
|
@@ -1673,7 +1697,7 @@ class d$2 extends HTMLElement {
|
|
|
1673
1697
|
var e2;
|
|
1674
1698
|
const r2 = this.constructor._$Ep(t2, s2);
|
|
1675
1699
|
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$
|
|
1700
|
+
const h2 = (void 0 !== (null === (e2 = s2.converter) || void 0 === e2 ? void 0 : e2.toAttribute) ? s2.converter : n$4).toAttribute(i2, s2.type);
|
|
1677
1701
|
this._$El = t2, null == h2 ? this.removeAttribute(r2) : this.setAttribute(r2, h2), this._$El = null;
|
|
1678
1702
|
}
|
|
1679
1703
|
}
|
|
@@ -1681,13 +1705,13 @@ class d$2 extends HTMLElement {
|
|
|
1681
1705
|
var s2;
|
|
1682
1706
|
const e2 = this.constructor, r2 = e2._$Ev.get(t2);
|
|
1683
1707
|
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$
|
|
1708
|
+
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
1709
|
this._$El = r2, this[r2] = h2.fromAttribute(i2, t3.type), this._$El = null;
|
|
1686
1710
|
}
|
|
1687
1711
|
}
|
|
1688
1712
|
requestUpdate(t2, i2, s2) {
|
|
1689
1713
|
let e2 = true;
|
|
1690
|
-
void 0 !== t2 && (((s2 = s2 || this.constructor.getPropertyOptions(t2)).hasChanged || a$
|
|
1714
|
+
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
1715
|
}
|
|
1692
1716
|
async _$Ej() {
|
|
1693
1717
|
this.isUpdatePending = true;
|
|
@@ -1748,14 +1772,14 @@ class d$2 extends HTMLElement {
|
|
|
1748
1772
|
firstUpdated(t2) {
|
|
1749
1773
|
}
|
|
1750
1774
|
}
|
|
1751
|
-
d$
|
|
1775
|
+
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
1776
|
/**
|
|
1753
1777
|
* @license
|
|
1754
1778
|
* Copyright 2017 Google LLC
|
|
1755
1779
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1756
1780
|
*/
|
|
1757
1781
|
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$
|
|
1782
|
+
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
1783
|
\f\r](?:([^\\s"'>=/]+)([
|
|
1760
1784
|
\f\r]*=[
|
|
1761
1785
|
\f\r]*(?:[^
|
|
@@ -1766,7 +1790,7 @@ const i$3 = window, s$4 = i$3.trustedTypes, e$3 = s$4 ? s$4.createPolicy("lit-ht
|
|
|
1766
1790
|
const s3 = t2[i3];
|
|
1767
1791
|
let e2, u3, c2 = -1, g2 = 0;
|
|
1768
1792
|
for (; g2 < s3.length && (d2.lastIndex = g2, u3 = d2.exec(s3), null !== u3); )
|
|
1769
|
-
g2 = d2.lastIndex, d2 === v ? "!--" === u3[1] ? d2 = a$
|
|
1793
|
+
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
1794
|
const y2 = d2 === _ && t2[i3 + 1].startsWith("/>") ? " " : "";
|
|
1771
1795
|
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
1796
|
}
|
|
@@ -1811,7 +1835,7 @@ class C {
|
|
|
1811
1835
|
}
|
|
1812
1836
|
}
|
|
1813
1837
|
} else if (8 === l2.nodeType)
|
|
1814
|
-
if (l2.data === n$
|
|
1838
|
+
if (l2.data === n$3)
|
|
1815
1839
|
c2.push({ type: 2, index: h2 });
|
|
1816
1840
|
else {
|
|
1817
1841
|
let t3 = -1;
|
|
@@ -1831,7 +1855,7 @@ function P(t2, i2, s2 = t2, e2) {
|
|
|
1831
1855
|
if (i2 === x$1)
|
|
1832
1856
|
return i2;
|
|
1833
1857
|
let r2 = void 0 !== e2 ? null === (o2 = s2._$Co) || void 0 === o2 ? void 0 : o2[e2] : s2._$Cl;
|
|
1834
|
-
const u2 = d
|
|
1858
|
+
const u2 = d(i2) ? void 0 : i2._$litDirective$;
|
|
1835
1859
|
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
1860
|
}
|
|
1837
1861
|
class V {
|
|
@@ -1885,7 +1909,7 @@ class N {
|
|
|
1885
1909
|
return this._$AB;
|
|
1886
1910
|
}
|
|
1887
1911
|
_$AI(t2, i2 = this) {
|
|
1888
|
-
t2 = P(this, t2, i2), d
|
|
1912
|
+
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
1913
|
}
|
|
1890
1914
|
O(t2, i2 = this._$AB) {
|
|
1891
1915
|
return this._$AA.parentNode.insertBefore(t2, i2);
|
|
@@ -1894,7 +1918,7 @@ class N {
|
|
|
1894
1918
|
this._$AH !== t2 && (this._$AR(), this._$AH = this.O(t2));
|
|
1895
1919
|
}
|
|
1896
1920
|
g(t2) {
|
|
1897
|
-
this._$AH !== b$1 && d
|
|
1921
|
+
this._$AH !== b$1 && d(this._$AH) ? this._$AA.nextSibling.data = t2 : this.T(h$2.createTextNode(t2)), this._$AH = t2;
|
|
1898
1922
|
}
|
|
1899
1923
|
$(t2) {
|
|
1900
1924
|
var i2;
|
|
@@ -1944,12 +1968,12 @@ class S$1 {
|
|
|
1944
1968
|
const o2 = this.strings;
|
|
1945
1969
|
let n2 = false;
|
|
1946
1970
|
if (void 0 === o2)
|
|
1947
|
-
t2 = P(this, t2, i2, 0), n2 = !d
|
|
1971
|
+
t2 = P(this, t2, i2, 0), n2 = !d(t2) || t2 !== this._$AH && t2 !== x$1, n2 && (this._$AH = t2);
|
|
1948
1972
|
else {
|
|
1949
1973
|
const e3 = t2;
|
|
1950
1974
|
let l2, h2;
|
|
1951
1975
|
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
|
|
1976
|
+
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
1977
|
}
|
|
1954
1978
|
n2 && !e2 && this.j(t2);
|
|
1955
1979
|
}
|
|
@@ -2001,7 +2025,7 @@ class I {
|
|
|
2001
2025
|
P(this, t2);
|
|
2002
2026
|
}
|
|
2003
2027
|
}
|
|
2004
|
-
const L = { P: "$lit$", A: o$6, M: n$
|
|
2028
|
+
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
2029
|
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
2030
|
const Z = (t2, i2, s2) => {
|
|
2007
2031
|
var e2, o2;
|
|
@@ -2019,7 +2043,7 @@ const Z = (t2, i2, s2) => {
|
|
|
2019
2043
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2020
2044
|
*/
|
|
2021
2045
|
var l$3, o$5;
|
|
2022
|
-
class s$3 extends d$
|
|
2046
|
+
class s$3 extends d$1 {
|
|
2023
2047
|
constructor() {
|
|
2024
2048
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
2025
2049
|
}
|
|
@@ -2045,21 +2069,21 @@ class s$3 extends d$2 {
|
|
|
2045
2069
|
}
|
|
2046
2070
|
}
|
|
2047
2071
|
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$
|
|
2072
|
+
const n$2 = globalThis.litElementPolyfillSupport;
|
|
2073
|
+
null == n$2 || n$2({ LitElement: s$3 });
|
|
2050
2074
|
(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$
|
|
2075
|
+
var __defProp$15 = Object.defineProperty;
|
|
2076
|
+
var __getOwnPropDesc$15 = Object.getOwnPropertyDescriptor;
|
|
2077
|
+
var __decorateClass$15 = (decorators, target, key, kind) => {
|
|
2078
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$15(target, key) : target;
|
|
2055
2079
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
2056
2080
|
if (decorator = decorators[i2])
|
|
2057
2081
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
2058
2082
|
if (kind && result)
|
|
2059
|
-
__defProp$
|
|
2083
|
+
__defProp$15(target, key, result);
|
|
2060
2084
|
return result;
|
|
2061
2085
|
};
|
|
2062
|
-
const tagName
|
|
2086
|
+
const tagName$_ = "sonic-date";
|
|
2063
2087
|
let SonicDate = class extends Subscriber$1(TemplatesContainer$1(s$3)) {
|
|
2064
2088
|
constructor() {
|
|
2065
2089
|
super(...arguments);
|
|
@@ -2119,9 +2143,6 @@ let SonicDate = class extends Subscriber$1(TemplatesContainer$1(s$3)) {
|
|
|
2119
2143
|
options
|
|
2120
2144
|
);
|
|
2121
2145
|
parts = format.formatRangeToParts(start, end);
|
|
2122
|
-
if (this.designMode) {
|
|
2123
|
-
parts.forEach((part) => part.hidden = part.value.trim() == ",");
|
|
2124
|
-
}
|
|
2125
2146
|
if (!isSameDay) {
|
|
2126
2147
|
const to = parts.find(
|
|
2127
2148
|
(part) => part.type == "literal" && part.source == "shared" && part.value.trim().length > 0
|
|
@@ -2131,12 +2152,22 @@ let SonicDate = class extends Subscriber$1(TemplatesContainer$1(s$3)) {
|
|
|
2131
2152
|
to.type = "to";
|
|
2132
2153
|
}
|
|
2133
2154
|
if (!this.designMode)
|
|
2134
|
-
parts.unshift({
|
|
2155
|
+
parts.unshift({
|
|
2156
|
+
type: "from",
|
|
2157
|
+
value: this.duAu[0] + " ",
|
|
2158
|
+
source: "shared"
|
|
2159
|
+
});
|
|
2135
2160
|
}
|
|
2136
2161
|
} else {
|
|
2137
|
-
const format = new Intl.DateTimeFormat(
|
|
2162
|
+
const format = new Intl.DateTimeFormat(
|
|
2163
|
+
this.language || this.pageLanguage,
|
|
2164
|
+
options
|
|
2165
|
+
);
|
|
2138
2166
|
parts = format.formatToParts(start);
|
|
2139
2167
|
}
|
|
2168
|
+
if (this.designMode) {
|
|
2169
|
+
parts.forEach((part) => part.hidden = part.value.trim() == ",");
|
|
2170
|
+
}
|
|
2140
2171
|
parts[0].value = Format$1.ucFirst(parts[0].value);
|
|
2141
2172
|
return parts.filter((p2) => p2.hidden !== true);
|
|
2142
2173
|
}
|
|
@@ -2192,65 +2223,65 @@ let SonicDate = class extends Subscriber$1(TemplatesContainer$1(s$3)) {
|
|
|
2192
2223
|
})}`;
|
|
2193
2224
|
}
|
|
2194
2225
|
};
|
|
2195
|
-
__decorateClass$
|
|
2226
|
+
__decorateClass$15([
|
|
2196
2227
|
e$7()
|
|
2197
2228
|
], SonicDate.prototype, "wording_billet_periode_validite", 1);
|
|
2198
|
-
__decorateClass$
|
|
2229
|
+
__decorateClass$15([
|
|
2199
2230
|
e$7({ type: Boolean })
|
|
2200
2231
|
], SonicDate.prototype, "designMode", 2);
|
|
2201
|
-
__decorateClass$
|
|
2232
|
+
__decorateClass$15([
|
|
2202
2233
|
e$7({ type: String })
|
|
2203
2234
|
], SonicDate.prototype, "time_zone", 2);
|
|
2204
|
-
__decorateClass$
|
|
2235
|
+
__decorateClass$15([
|
|
2205
2236
|
e$7({ type: Number })
|
|
2206
2237
|
], SonicDate.prototype, "date", 2);
|
|
2207
|
-
__decorateClass$
|
|
2238
|
+
__decorateClass$15([
|
|
2208
2239
|
e$7({ type: String })
|
|
2209
2240
|
], SonicDate.prototype, "date_string", 2);
|
|
2210
|
-
__decorateClass$
|
|
2241
|
+
__decorateClass$15([
|
|
2211
2242
|
e$7({ type: String })
|
|
2212
2243
|
], SonicDate.prototype, "start_date_string", 2);
|
|
2213
|
-
__decorateClass$
|
|
2244
|
+
__decorateClass$15([
|
|
2214
2245
|
e$7({ type: String })
|
|
2215
2246
|
], SonicDate.prototype, "end_date_string", 2);
|
|
2216
|
-
__decorateClass$
|
|
2247
|
+
__decorateClass$15([
|
|
2217
2248
|
e$7({ type: Number })
|
|
2218
2249
|
], SonicDate.prototype, "start_date", 2);
|
|
2219
|
-
__decorateClass$
|
|
2250
|
+
__decorateClass$15([
|
|
2220
2251
|
e$7({ type: Number })
|
|
2221
2252
|
], SonicDate.prototype, "end_date", 2);
|
|
2222
|
-
__decorateClass$
|
|
2253
|
+
__decorateClass$15([
|
|
2223
2254
|
e$7({ type: String })
|
|
2224
2255
|
], SonicDate.prototype, "era", 2);
|
|
2225
|
-
__decorateClass$
|
|
2256
|
+
__decorateClass$15([
|
|
2226
2257
|
e$7({ type: String })
|
|
2227
2258
|
], SonicDate.prototype, "year", 2);
|
|
2228
|
-
__decorateClass$
|
|
2259
|
+
__decorateClass$15([
|
|
2229
2260
|
e$7({ type: String })
|
|
2230
2261
|
], SonicDate.prototype, "month", 2);
|
|
2231
|
-
__decorateClass$
|
|
2262
|
+
__decorateClass$15([
|
|
2232
2263
|
e$7({ type: String })
|
|
2233
2264
|
], SonicDate.prototype, "day", 2);
|
|
2234
|
-
__decorateClass$
|
|
2265
|
+
__decorateClass$15([
|
|
2235
2266
|
e$7({ type: String })
|
|
2236
2267
|
], SonicDate.prototype, "weekday", 2);
|
|
2237
|
-
__decorateClass$
|
|
2268
|
+
__decorateClass$15([
|
|
2238
2269
|
e$7({ type: String })
|
|
2239
2270
|
], SonicDate.prototype, "hour", 2);
|
|
2240
|
-
__decorateClass$
|
|
2271
|
+
__decorateClass$15([
|
|
2241
2272
|
e$7({ type: String })
|
|
2242
2273
|
], SonicDate.prototype, "minute", 2);
|
|
2243
|
-
__decorateClass$
|
|
2274
|
+
__decorateClass$15([
|
|
2244
2275
|
e$7({ type: String })
|
|
2245
2276
|
], SonicDate.prototype, "language", 2);
|
|
2246
|
-
__decorateClass$
|
|
2277
|
+
__decorateClass$15([
|
|
2247
2278
|
e$7({ type: Boolean })
|
|
2248
2279
|
], SonicDate.prototype, "renderIf", 2);
|
|
2249
|
-
__decorateClass$
|
|
2280
|
+
__decorateClass$15([
|
|
2250
2281
|
e$7({ type: Boolean })
|
|
2251
2282
|
], SonicDate.prototype, "now", 2);
|
|
2252
|
-
SonicDate = __decorateClass$
|
|
2253
|
-
e$8(tagName
|
|
2283
|
+
SonicDate = __decorateClass$15([
|
|
2284
|
+
e$8(tagName$_)
|
|
2254
2285
|
], SonicDate);
|
|
2255
2286
|
const _LocationHandler = class {
|
|
2256
2287
|
static listen() {
|
|
@@ -2258,7 +2289,10 @@ const _LocationHandler = class {
|
|
|
2258
2289
|
if (!_LocationHandler.listening) {
|
|
2259
2290
|
return;
|
|
2260
2291
|
}
|
|
2261
|
-
const newURL = (_a2 = document.location) == null ? void 0 : _a2.href.replace(
|
|
2292
|
+
const newURL = (_a2 = document.location) == null ? void 0 : _a2.href.replace(
|
|
2293
|
+
document.location.origin,
|
|
2294
|
+
""
|
|
2295
|
+
);
|
|
2262
2296
|
if (_LocationHandler.prevURL && _LocationHandler.prevURL != newURL) {
|
|
2263
2297
|
_LocationHandler.prevURL = newURL;
|
|
2264
2298
|
_LocationHandler.listeners.forEach((listener) => {
|
|
@@ -2335,8 +2369,9 @@ const _LocationHandler = class {
|
|
|
2335
2369
|
document.location.href = to;
|
|
2336
2370
|
}
|
|
2337
2371
|
static updateComponentActiveState(component) {
|
|
2338
|
-
if (component.autoActive == "disabled")
|
|
2372
|
+
if (component.autoActive == "disabled") {
|
|
2339
2373
|
return;
|
|
2374
|
+
}
|
|
2340
2375
|
if (component.href && component.href.indexOf("http") != 0) {
|
|
2341
2376
|
const url1 = new URL(component.href, document.location.href);
|
|
2342
2377
|
const url2 = new URL(component.location || "", document.location.origin);
|
|
@@ -2355,7 +2390,10 @@ const _LocationHandler = class {
|
|
|
2355
2390
|
let LocationHandler$1 = _LocationHandler;
|
|
2356
2391
|
LocationHandler$1.listeners = [];
|
|
2357
2392
|
LocationHandler$1.listening = false;
|
|
2358
|
-
LocationHandler$1.prevURL = (_a = document.location) == null ? void 0 : _a.href.replace(
|
|
2393
|
+
LocationHandler$1.prevURL = (_a = document.location) == null ? void 0 : _a.href.replace(
|
|
2394
|
+
document.location.origin,
|
|
2395
|
+
""
|
|
2396
|
+
);
|
|
2359
2397
|
/**
|
|
2360
2398
|
* @license
|
|
2361
2399
|
* Copyright 2017 Google LLC
|
|
@@ -2413,15 +2451,15 @@ const i$1 = e$2(class extends i$2 {
|
|
|
2413
2451
|
return x$1;
|
|
2414
2452
|
}
|
|
2415
2453
|
});
|
|
2416
|
-
var __defProp$
|
|
2417
|
-
var __getOwnPropDesc$
|
|
2418
|
-
var __decorateClass$
|
|
2419
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
2454
|
+
var __defProp$14 = Object.defineProperty;
|
|
2455
|
+
var __getOwnPropDesc$14 = Object.getOwnPropertyDescriptor;
|
|
2456
|
+
var __decorateClass$14 = (decorators, target, key, kind) => {
|
|
2457
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$14(target, key) : target;
|
|
2420
2458
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
2421
2459
|
if (decorator = decorators[i2])
|
|
2422
2460
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
2423
2461
|
if (kind && result)
|
|
2424
|
-
__defProp$
|
|
2462
|
+
__defProp$14(target, key, result);
|
|
2425
2463
|
return result;
|
|
2426
2464
|
};
|
|
2427
2465
|
const keyboardLoops = /* @__PURE__ */ new Map();
|
|
@@ -2612,34 +2650,34 @@ const Form$2 = (superClass) => {
|
|
|
2612
2650
|
}
|
|
2613
2651
|
}
|
|
2614
2652
|
}
|
|
2615
|
-
__decorateClass$
|
|
2653
|
+
__decorateClass$14([
|
|
2616
2654
|
e$7({ type: Boolean, reflect: true })
|
|
2617
2655
|
], FormElement2.prototype, "touched", 2);
|
|
2618
|
-
__decorateClass$
|
|
2656
|
+
__decorateClass$14([
|
|
2619
2657
|
e$7({ type: Boolean })
|
|
2620
2658
|
], FormElement2.prototype, "error", 2);
|
|
2621
|
-
__decorateClass$
|
|
2659
|
+
__decorateClass$14([
|
|
2622
2660
|
e$7({ type: Boolean })
|
|
2623
2661
|
], FormElement2.prototype, "autofocus", 2);
|
|
2624
|
-
__decorateClass$
|
|
2662
|
+
__decorateClass$14([
|
|
2625
2663
|
e$7({ type: Boolean })
|
|
2626
2664
|
], FormElement2.prototype, "required", 2);
|
|
2627
|
-
__decorateClass$
|
|
2665
|
+
__decorateClass$14([
|
|
2628
2666
|
e$7()
|
|
2629
2667
|
], FormElement2.prototype, "forceAutoFill", 2);
|
|
2630
|
-
__decorateClass$
|
|
2668
|
+
__decorateClass$14([
|
|
2631
2669
|
e$7({ type: Boolean })
|
|
2632
2670
|
], FormElement2.prototype, "disabled", 2);
|
|
2633
|
-
__decorateClass$
|
|
2671
|
+
__decorateClass$14([
|
|
2634
2672
|
e$7({ type: String, attribute: "data-aria-label" })
|
|
2635
2673
|
], FormElement2.prototype, "ariaLabel", 2);
|
|
2636
|
-
__decorateClass$
|
|
2674
|
+
__decorateClass$14([
|
|
2637
2675
|
e$7({ type: String, attribute: "data-aria-labelledby" })
|
|
2638
2676
|
], FormElement2.prototype, "ariaLabelledby", 2);
|
|
2639
|
-
__decorateClass$
|
|
2677
|
+
__decorateClass$14([
|
|
2640
2678
|
e$7()
|
|
2641
2679
|
], FormElement2.prototype, "name", 1);
|
|
2642
|
-
__decorateClass$
|
|
2680
|
+
__decorateClass$14([
|
|
2643
2681
|
e$7()
|
|
2644
2682
|
], FormElement2.prototype, "value", 1);
|
|
2645
2683
|
return FormElement2;
|
|
@@ -2804,15 +2842,15 @@ window["concorde-utils"] = {
|
|
|
2804
2842
|
PublisherManager,
|
|
2805
2843
|
api
|
|
2806
2844
|
};
|
|
2807
|
-
var __defProp$
|
|
2808
|
-
var __getOwnPropDesc$
|
|
2809
|
-
var __decorateClass$
|
|
2810
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
2845
|
+
var __defProp$13 = Object.defineProperty;
|
|
2846
|
+
var __getOwnPropDesc$13 = Object.getOwnPropertyDescriptor;
|
|
2847
|
+
var __decorateClass$13 = (decorators, target, key, kind) => {
|
|
2848
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$13(target, key) : target;
|
|
2811
2849
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
2812
2850
|
if (decorator = decorators[i2])
|
|
2813
2851
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
2814
2852
|
if (kind && result)
|
|
2815
|
-
__defProp$
|
|
2853
|
+
__defProp$13(target, key, result);
|
|
2816
2854
|
return result;
|
|
2817
2855
|
};
|
|
2818
2856
|
const Form$1 = (superClass) => {
|
|
@@ -3053,22 +3091,22 @@ const Form$1 = (superClass) => {
|
|
|
3053
3091
|
}
|
|
3054
3092
|
}
|
|
3055
3093
|
}
|
|
3056
|
-
__decorateClass$
|
|
3094
|
+
__decorateClass$13([
|
|
3057
3095
|
e$7()
|
|
3058
3096
|
], FormCheckable2.prototype, "value", 1);
|
|
3059
|
-
__decorateClass$
|
|
3097
|
+
__decorateClass$13([
|
|
3060
3098
|
e$7()
|
|
3061
3099
|
], FormCheckable2.prototype, "forceAutoFill", 2);
|
|
3062
|
-
__decorateClass$
|
|
3100
|
+
__decorateClass$13([
|
|
3063
3101
|
e$7({ type: Boolean })
|
|
3064
3102
|
], FormCheckable2.prototype, "unique", 2);
|
|
3065
|
-
__decorateClass$
|
|
3103
|
+
__decorateClass$13([
|
|
3066
3104
|
e$7({ type: Boolean })
|
|
3067
3105
|
], FormCheckable2.prototype, "radio", 2);
|
|
3068
|
-
__decorateClass$
|
|
3106
|
+
__decorateClass$13([
|
|
3069
3107
|
e$7({ type: Boolean })
|
|
3070
3108
|
], FormCheckable2.prototype, "unCheckOnDisconnect", 2);
|
|
3071
|
-
__decorateClass$
|
|
3109
|
+
__decorateClass$13([
|
|
3072
3110
|
e$7()
|
|
3073
3111
|
], FormCheckable2.prototype, "checked", 1);
|
|
3074
3112
|
return FormCheckable2;
|
|
@@ -3080,18 +3118,18 @@ const Form$1 = (superClass) => {
|
|
|
3080
3118
|
*/
|
|
3081
3119
|
const l$2 = (l2) => null != l2 ? l2 : b$1;
|
|
3082
3120
|
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$
|
|
3121
|
+
var __defProp$12 = Object.defineProperty;
|
|
3122
|
+
var __getOwnPropDesc$12 = Object.getOwnPropertyDescriptor;
|
|
3123
|
+
var __decorateClass$12 = (decorators, target, key, kind) => {
|
|
3124
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$12(target, key) : target;
|
|
3087
3125
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
3088
3126
|
if (decorator = decorators[i2])
|
|
3089
3127
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
3090
3128
|
if (kind && result)
|
|
3091
|
-
__defProp$
|
|
3129
|
+
__defProp$12(target, key, result);
|
|
3092
3130
|
return result;
|
|
3093
3131
|
};
|
|
3094
|
-
const tagName$
|
|
3132
|
+
const tagName$Z = "sonic-button";
|
|
3095
3133
|
let Button = class extends Form$1(Form$2(Subscriber$1(s$3))) {
|
|
3096
3134
|
constructor() {
|
|
3097
3135
|
super(...arguments);
|
|
@@ -3117,7 +3155,6 @@ let Button = class extends Form$1(Form$2(Subscriber$1(s$3))) {
|
|
|
3117
3155
|
this._href = value;
|
|
3118
3156
|
if (this.href && this.href.indexOf("http") != 0) {
|
|
3119
3157
|
LocationHandler$1.onChange(this);
|
|
3120
|
-
this.location = document.location.href.replace(document.location.origin, "");
|
|
3121
3158
|
} else
|
|
3122
3159
|
LocationHandler$1.offChange(this);
|
|
3123
3160
|
this.requestUpdate();
|
|
@@ -3166,7 +3203,12 @@ let Button = class extends Form$1(Form$2(Subscriber$1(s$3))) {
|
|
|
3166
3203
|
}
|
|
3167
3204
|
set location(value) {
|
|
3168
3205
|
this._location = value;
|
|
3169
|
-
|
|
3206
|
+
this.requestUpdate();
|
|
3207
|
+
}
|
|
3208
|
+
updated(changedProperties) {
|
|
3209
|
+
if (changedProperties.has("location") || changedProperties.has("href") || changedProperties.has("autoActive")) {
|
|
3210
|
+
LocationHandler$1.updateComponentActiveState(this);
|
|
3211
|
+
}
|
|
3170
3212
|
}
|
|
3171
3213
|
render() {
|
|
3172
3214
|
const btnStyles = {
|
|
@@ -3187,88 +3229,91 @@ let Button = class extends Form$1(Form$2(Subscriber$1(s$3))) {
|
|
|
3187
3229
|
};
|
|
3188
3230
|
Button.styles = [
|
|
3189
3231
|
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(
|
|
3232
|
+
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(
|
|
3233
|
+
--sc-btn-outline-bg-hover,
|
|
3234
|
+
var(--sc-base-100)
|
|
3235
|
+
);--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
3236
|
];
|
|
3192
|
-
__decorateClass$
|
|
3237
|
+
__decorateClass$12([
|
|
3193
3238
|
e$7({ type: String, reflect: true })
|
|
3194
3239
|
], Button.prototype, "type", 2);
|
|
3195
|
-
__decorateClass$
|
|
3240
|
+
__decorateClass$12([
|
|
3196
3241
|
e$7({ type: String, reflect: true })
|
|
3197
3242
|
], Button.prototype, "variant", 2);
|
|
3198
|
-
__decorateClass$
|
|
3243
|
+
__decorateClass$12([
|
|
3199
3244
|
e$7({ type: String, reflect: true })
|
|
3200
3245
|
], Button.prototype, "size", 2);
|
|
3201
|
-
__decorateClass$
|
|
3246
|
+
__decorateClass$12([
|
|
3202
3247
|
e$7({ type: String, reflect: true })
|
|
3203
3248
|
], Button.prototype, "shape", 2);
|
|
3204
|
-
__decorateClass$
|
|
3249
|
+
__decorateClass$12([
|
|
3205
3250
|
e$7({ type: String })
|
|
3206
3251
|
], Button.prototype, "direction", 2);
|
|
3207
|
-
__decorateClass$
|
|
3252
|
+
__decorateClass$12([
|
|
3208
3253
|
e$7({ type: String, reflect: true })
|
|
3209
3254
|
], Button.prototype, "alignItems", 2);
|
|
3210
|
-
__decorateClass$
|
|
3255
|
+
__decorateClass$12([
|
|
3211
3256
|
e$7({ type: String })
|
|
3212
3257
|
], Button.prototype, "justify", 2);
|
|
3213
|
-
__decorateClass$
|
|
3258
|
+
__decorateClass$12([
|
|
3214
3259
|
e$7({ type: String, reflect: true })
|
|
3215
3260
|
], Button.prototype, "align", 2);
|
|
3216
|
-
__decorateClass$
|
|
3261
|
+
__decorateClass$12([
|
|
3217
3262
|
e$7({ type: String })
|
|
3218
3263
|
], Button.prototype, "minWidth", 2);
|
|
3219
|
-
__decorateClass$
|
|
3264
|
+
__decorateClass$12([
|
|
3220
3265
|
e$7({ type: Boolean, reflect: true })
|
|
3221
3266
|
], Button.prototype, "icon", 2);
|
|
3222
|
-
__decorateClass$
|
|
3267
|
+
__decorateClass$12([
|
|
3223
3268
|
e$7({ type: String })
|
|
3224
3269
|
], Button.prototype, "autoActive", 2);
|
|
3225
|
-
__decorateClass$
|
|
3270
|
+
__decorateClass$12([
|
|
3226
3271
|
e$7({ type: Boolean, reflect: true })
|
|
3227
3272
|
], Button.prototype, "loading", 2);
|
|
3228
|
-
__decorateClass$
|
|
3273
|
+
__decorateClass$12([
|
|
3229
3274
|
t$3()
|
|
3230
3275
|
], Button.prototype, "hasPrefix", 2);
|
|
3231
|
-
__decorateClass$
|
|
3276
|
+
__decorateClass$12([
|
|
3232
3277
|
t$3()
|
|
3233
3278
|
], Button.prototype, "hasSuffix", 2);
|
|
3234
|
-
__decorateClass$
|
|
3279
|
+
__decorateClass$12([
|
|
3235
3280
|
l$6({ flatten: true, slot: "prefix" })
|
|
3236
3281
|
], Button.prototype, "prefixes", 2);
|
|
3237
|
-
__decorateClass$
|
|
3282
|
+
__decorateClass$12([
|
|
3238
3283
|
l$6({ flatten: true, slot: "suffix" })
|
|
3239
3284
|
], Button.prototype, "suffixes", 2);
|
|
3240
|
-
__decorateClass$
|
|
3285
|
+
__decorateClass$12([
|
|
3241
3286
|
e$7({ type: String })
|
|
3242
3287
|
], Button.prototype, "target", 2);
|
|
3243
|
-
__decorateClass$
|
|
3288
|
+
__decorateClass$12([
|
|
3244
3289
|
e$7({ type: String })
|
|
3245
3290
|
], Button.prototype, "href", 1);
|
|
3246
|
-
__decorateClass$
|
|
3291
|
+
__decorateClass$12([
|
|
3247
3292
|
e$7({ type: String })
|
|
3248
3293
|
], Button.prototype, "goBack", 2);
|
|
3249
|
-
__decorateClass$
|
|
3294
|
+
__decorateClass$12([
|
|
3250
3295
|
e$7({ type: Boolean })
|
|
3251
3296
|
], Button.prototype, "pushState", 2);
|
|
3252
|
-
__decorateClass$
|
|
3297
|
+
__decorateClass$12([
|
|
3253
3298
|
e$7({ type: Boolean, reflect: true })
|
|
3254
3299
|
], Button.prototype, "active", 2);
|
|
3255
|
-
Button = __decorateClass$
|
|
3256
|
-
e$8(tagName$
|
|
3300
|
+
Button = __decorateClass$12([
|
|
3301
|
+
e$8(tagName$Z)
|
|
3257
3302
|
], Button);
|
|
3258
3303
|
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
3304
|
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$
|
|
3305
|
+
var __defProp$11 = Object.defineProperty;
|
|
3306
|
+
var __getOwnPropDesc$11 = Object.getOwnPropertyDescriptor;
|
|
3307
|
+
var __decorateClass$11 = (decorators, target, key, kind) => {
|
|
3308
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$11(target, key) : target;
|
|
3264
3309
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
3265
3310
|
if (decorator = decorators[i2])
|
|
3266
3311
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
3267
3312
|
if (kind && result)
|
|
3268
|
-
__defProp$
|
|
3313
|
+
__defProp$11(target, key, result);
|
|
3269
3314
|
return result;
|
|
3270
3315
|
};
|
|
3271
|
-
const tagName$
|
|
3316
|
+
const tagName$Y = "sonic-loader";
|
|
3272
3317
|
let Loader = class extends s$3 {
|
|
3273
3318
|
constructor() {
|
|
3274
3319
|
super(...arguments);
|
|
@@ -3306,18 +3351,18 @@ Loader.styles = [
|
|
|
3306
3351
|
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
3352
|
];
|
|
3308
3353
|
Loader.callCounter = 0;
|
|
3309
|
-
__decorateClass$
|
|
3354
|
+
__decorateClass$11([
|
|
3310
3355
|
e$7({ type: String })
|
|
3311
3356
|
], Loader.prototype, "mode", 2);
|
|
3312
|
-
Loader = __decorateClass$
|
|
3313
|
-
e$8(tagName$
|
|
3357
|
+
Loader = __decorateClass$11([
|
|
3358
|
+
e$8(tagName$Y)
|
|
3314
3359
|
], Loader);
|
|
3315
3360
|
/**
|
|
3316
3361
|
* @license
|
|
3317
3362
|
* Copyright 2020 Google LLC
|
|
3318
3363
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3319
3364
|
*/
|
|
3320
|
-
const { I: l$1 } = L,
|
|
3365
|
+
const { I: l$1 } = L, e$1 = (o2) => void 0 === o2.strings, c$2 = () => document.createComment(""), r$2 = (o2, t2, i2) => {
|
|
3321
3366
|
var n2;
|
|
3322
3367
|
const d2 = o2._$AA.parentNode, v2 = void 0 === t2 ? o2._$AB : t2._$AA;
|
|
3323
3368
|
if (void 0 === i2) {
|
|
@@ -3347,8 +3392,6 @@ const { I: l$1 } = L, n$2 = (o2, l2) => void 0 === l2 ? void 0 !== (null == o2 ?
|
|
|
3347
3392
|
const o3 = t2.nextSibling;
|
|
3348
3393
|
t2.remove(), t2 = o3;
|
|
3349
3394
|
}
|
|
3350
|
-
}, a$1 = (o2) => {
|
|
3351
|
-
o2._$AR();
|
|
3352
3395
|
};
|
|
3353
3396
|
/**
|
|
3354
3397
|
* @license
|
|
@@ -3834,18 +3877,18 @@ Icons.fontAwesomeNext = {
|
|
|
3834
3877
|
}
|
|
3835
3878
|
};
|
|
3836
3879
|
Icons.default = _Icons.fontAwesomeNext;
|
|
3837
|
-
var __defProp$
|
|
3838
|
-
var __getOwnPropDesc$
|
|
3839
|
-
var __decorateClass$
|
|
3840
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
3880
|
+
var __defProp$10 = Object.defineProperty;
|
|
3881
|
+
var __getOwnPropDesc$10 = Object.getOwnPropertyDescriptor;
|
|
3882
|
+
var __decorateClass$10 = (decorators, target, key, kind) => {
|
|
3883
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$10(target, key) : target;
|
|
3841
3884
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
3842
3885
|
if (decorator = decorators[i2])
|
|
3843
3886
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
3844
3887
|
if (kind && result)
|
|
3845
|
-
__defProp$
|
|
3888
|
+
__defProp$10(target, key, result);
|
|
3846
3889
|
return result;
|
|
3847
3890
|
};
|
|
3848
|
-
const tagName$
|
|
3891
|
+
const tagName$X = "sonic-icon";
|
|
3849
3892
|
let Icon = class extends s$3 {
|
|
3850
3893
|
constructor() {
|
|
3851
3894
|
super(...arguments);
|
|
@@ -3899,28 +3942,28 @@ let Icon = class extends s$3 {
|
|
|
3899
3942
|
}
|
|
3900
3943
|
};
|
|
3901
3944
|
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$
|
|
3945
|
+
__decorateClass$10([
|
|
3903
3946
|
e$7({ type: String })
|
|
3904
3947
|
], Icon.prototype, "name", 1);
|
|
3905
|
-
__decorateClass$
|
|
3948
|
+
__decorateClass$10([
|
|
3906
3949
|
e$7({ type: String })
|
|
3907
3950
|
], Icon.prototype, "prefix", 1);
|
|
3908
|
-
__decorateClass$
|
|
3951
|
+
__decorateClass$10([
|
|
3909
3952
|
e$7({ type: String })
|
|
3910
3953
|
], Icon.prototype, "library", 1);
|
|
3911
|
-
Icon = __decorateClass$
|
|
3912
|
-
e$8(tagName$
|
|
3954
|
+
Icon = __decorateClass$10([
|
|
3955
|
+
e$8(tagName$X)
|
|
3913
3956
|
], Icon);
|
|
3914
3957
|
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
|
|
3958
|
+
var __defProp$$ = Object.defineProperty;
|
|
3959
|
+
var __getOwnPropDesc$$ = Object.getOwnPropertyDescriptor;
|
|
3960
|
+
var __decorateClass$$ = (decorators, target, key, kind) => {
|
|
3961
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$$(target, key) : target;
|
|
3919
3962
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
3920
3963
|
if (decorator = decorators[i2])
|
|
3921
3964
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
3922
3965
|
if (kind && result)
|
|
3923
|
-
__defProp
|
|
3966
|
+
__defProp$$(target, key, result);
|
|
3924
3967
|
return result;
|
|
3925
3968
|
};
|
|
3926
3969
|
const icon$1 = {
|
|
@@ -3929,7 +3972,7 @@ const icon$1 = {
|
|
|
3929
3972
|
error: "warning-circled-outline",
|
|
3930
3973
|
info: "info-empty"
|
|
3931
3974
|
};
|
|
3932
|
-
const tagName$
|
|
3975
|
+
const tagName$W = "sonic-toast-item";
|
|
3933
3976
|
let SonicToastItem = class extends s$3 {
|
|
3934
3977
|
constructor() {
|
|
3935
3978
|
super(...arguments);
|
|
@@ -3981,48 +4024,48 @@ SonicToastItem.styles = [
|
|
|
3981
4024
|
customScroll,
|
|
3982
4025
|
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
4026
|
];
|
|
3984
|
-
__decorateClass
|
|
4027
|
+
__decorateClass$$([
|
|
3985
4028
|
e$7({ type: String })
|
|
3986
4029
|
], SonicToastItem.prototype, "title", 2);
|
|
3987
|
-
__decorateClass
|
|
4030
|
+
__decorateClass$$([
|
|
3988
4031
|
e$7({ type: String })
|
|
3989
4032
|
], SonicToastItem.prototype, "id", 2);
|
|
3990
|
-
__decorateClass
|
|
4033
|
+
__decorateClass$$([
|
|
3991
4034
|
e$7({ type: String })
|
|
3992
4035
|
], SonicToastItem.prototype, "text", 2);
|
|
3993
|
-
__decorateClass
|
|
4036
|
+
__decorateClass$$([
|
|
3994
4037
|
e$7({ type: String })
|
|
3995
4038
|
], SonicToastItem.prototype, "status", 2);
|
|
3996
|
-
__decorateClass
|
|
4039
|
+
__decorateClass$$([
|
|
3997
4040
|
e$7({ type: Boolean })
|
|
3998
4041
|
], SonicToastItem.prototype, "ghost", 2);
|
|
3999
|
-
__decorateClass
|
|
4042
|
+
__decorateClass$$([
|
|
4000
4043
|
e$7({ type: Boolean })
|
|
4001
4044
|
], SonicToastItem.prototype, "preserve", 2);
|
|
4002
|
-
__decorateClass
|
|
4045
|
+
__decorateClass$$([
|
|
4003
4046
|
e$7({ type: Boolean })
|
|
4004
4047
|
], SonicToastItem.prototype, "dismissForever", 2);
|
|
4005
|
-
__decorateClass
|
|
4048
|
+
__decorateClass$$([
|
|
4006
4049
|
e$7({ type: String })
|
|
4007
4050
|
], SonicToastItem.prototype, "maxHeight", 2);
|
|
4008
|
-
__decorateClass
|
|
4051
|
+
__decorateClass$$([
|
|
4009
4052
|
t$3()
|
|
4010
4053
|
], SonicToastItem.prototype, "visible", 2);
|
|
4011
|
-
SonicToastItem = __decorateClass
|
|
4012
|
-
e$8(tagName$
|
|
4054
|
+
SonicToastItem = __decorateClass$$([
|
|
4055
|
+
e$8(tagName$W)
|
|
4013
4056
|
], SonicToastItem);
|
|
4014
|
-
var __defProp
|
|
4015
|
-
var __getOwnPropDesc
|
|
4016
|
-
var __decorateClass
|
|
4017
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc
|
|
4057
|
+
var __defProp$_ = Object.defineProperty;
|
|
4058
|
+
var __getOwnPropDesc$_ = Object.getOwnPropertyDescriptor;
|
|
4059
|
+
var __decorateClass$_ = (decorators, target, key, kind) => {
|
|
4060
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$_(target, key) : target;
|
|
4018
4061
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
4019
4062
|
if (decorator = decorators[i2])
|
|
4020
4063
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4021
4064
|
if (kind && result)
|
|
4022
|
-
__defProp
|
|
4065
|
+
__defProp$_(target, key, result);
|
|
4023
4066
|
return result;
|
|
4024
4067
|
};
|
|
4025
|
-
const tagName$
|
|
4068
|
+
const tagName$V = "sonic-toast";
|
|
4026
4069
|
let SonicToast$1 = class extends s$3 {
|
|
4027
4070
|
constructor() {
|
|
4028
4071
|
super(...arguments);
|
|
@@ -4137,24 +4180,24 @@ let SonicToast$1 = class extends s$3 {
|
|
|
4137
4180
|
});
|
|
4138
4181
|
}
|
|
4139
4182
|
};
|
|
4140
|
-
__decorateClass
|
|
4183
|
+
__decorateClass$_([
|
|
4141
4184
|
e$7({ type: Array })
|
|
4142
4185
|
], SonicToast$1.prototype, "toasts", 2);
|
|
4143
|
-
SonicToast$1 = __decorateClass
|
|
4144
|
-
e$8(tagName$
|
|
4186
|
+
SonicToast$1 = __decorateClass$_([
|
|
4187
|
+
e$8(tagName$V)
|
|
4145
4188
|
], SonicToast$1);
|
|
4146
4189
|
if (typeof window !== "undefined") {
|
|
4147
4190
|
window.SonicToast = SonicToast$1;
|
|
4148
4191
|
}
|
|
4149
|
-
var __defProp$
|
|
4150
|
-
var __getOwnPropDesc$
|
|
4151
|
-
var __decorateClass$
|
|
4152
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
4192
|
+
var __defProp$Z = Object.defineProperty;
|
|
4193
|
+
var __getOwnPropDesc$Z = Object.getOwnPropertyDescriptor;
|
|
4194
|
+
var __decorateClass$Z = (decorators, target, key, kind) => {
|
|
4195
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$Z(target, key) : target;
|
|
4153
4196
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
4154
4197
|
if (decorator = decorators[i2])
|
|
4155
4198
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4156
4199
|
if (kind && result)
|
|
4157
|
-
__defProp$
|
|
4200
|
+
__defProp$Z(target, key, result);
|
|
4158
4201
|
return result;
|
|
4159
4202
|
};
|
|
4160
4203
|
const Fetcher$1 = (superClass, propsType) => {
|
|
@@ -4286,10 +4329,14 @@ const Fetcher$1 = (superClass, propsType) => {
|
|
|
4286
4329
|
};
|
|
4287
4330
|
this.iObserver = new IntersectionObserver((entries) => this.onIntersection(entries), options);
|
|
4288
4331
|
let elt = this.shadowRoot ? this.shadowRoot.children[0] : this.children[0];
|
|
4289
|
-
if (elt
|
|
4332
|
+
if ((elt == null ? void 0 : elt.nodeName.toLocaleLowerCase()) == "slot")
|
|
4290
4333
|
elt = elt.children[0];
|
|
4291
4334
|
if (!elt || elt.nodeName.toLocaleLowerCase() == "template") {
|
|
4292
4335
|
elt = document.createElement("span");
|
|
4336
|
+
const style = elt.style;
|
|
4337
|
+
style.position = "absolute";
|
|
4338
|
+
style.pointerEvents = "none";
|
|
4339
|
+
this.lazyLoadSpan = elt;
|
|
4293
4340
|
this.appendChild(elt);
|
|
4294
4341
|
}
|
|
4295
4342
|
if (elt) {
|
|
@@ -4299,42 +4346,44 @@ const Fetcher$1 = (superClass, propsType) => {
|
|
|
4299
4346
|
}
|
|
4300
4347
|
}
|
|
4301
4348
|
onIntersection(entries) {
|
|
4302
|
-
var _a2;
|
|
4349
|
+
var _a2, _b;
|
|
4303
4350
|
for (const e2 of entries) {
|
|
4304
4351
|
if (e2.isIntersecting && this.isFirstLoad) {
|
|
4305
4352
|
this._fetchData();
|
|
4306
|
-
(_a2 = this.
|
|
4353
|
+
(_a2 = this.lazyLoadSpan) == null ? void 0 : _a2.remove();
|
|
4354
|
+
this.lazyLoadSpan = void 0;
|
|
4355
|
+
(_b = this.iObserver) == null ? void 0 : _b.disconnect();
|
|
4307
4356
|
break;
|
|
4308
4357
|
}
|
|
4309
4358
|
}
|
|
4310
4359
|
}
|
|
4311
4360
|
}
|
|
4312
|
-
__decorateClass$
|
|
4361
|
+
__decorateClass$Z([
|
|
4313
4362
|
e$7()
|
|
4314
4363
|
], FetcherElement.prototype, "props", 1);
|
|
4315
|
-
__decorateClass$
|
|
4364
|
+
__decorateClass$Z([
|
|
4316
4365
|
e$7({ type: String })
|
|
4317
4366
|
], FetcherElement.prototype, "endPoint", 1);
|
|
4318
|
-
__decorateClass$
|
|
4367
|
+
__decorateClass$Z([
|
|
4319
4368
|
e$7()
|
|
4320
4369
|
], FetcherElement.prototype, "requestId", 2);
|
|
4321
|
-
__decorateClass$
|
|
4370
|
+
__decorateClass$Z([
|
|
4322
4371
|
e$7({ type: Number })
|
|
4323
4372
|
], FetcherElement.prototype, "refetchEveryMs", 2);
|
|
4324
4373
|
return FetcherElement;
|
|
4325
4374
|
};
|
|
4326
|
-
var __defProp$
|
|
4327
|
-
var __getOwnPropDesc$
|
|
4328
|
-
var __decorateClass$
|
|
4329
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
4375
|
+
var __defProp$Y = Object.defineProperty;
|
|
4376
|
+
var __getOwnPropDesc$Y = Object.getOwnPropertyDescriptor;
|
|
4377
|
+
var __decorateClass$Y = (decorators, target, key, kind) => {
|
|
4378
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$Y(target, key) : target;
|
|
4330
4379
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
4331
4380
|
if (decorator = decorators[i2])
|
|
4332
4381
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4333
4382
|
if (kind && result)
|
|
4334
|
-
__defProp$
|
|
4383
|
+
__defProp$Y(target, key, result);
|
|
4335
4384
|
return result;
|
|
4336
4385
|
};
|
|
4337
|
-
const tagName$
|
|
4386
|
+
const tagName$U = "sonic-fetch";
|
|
4338
4387
|
let Fetch = class extends Fetcher$1(Subscriber$1(s$3)) {
|
|
4339
4388
|
render() {
|
|
4340
4389
|
return y`<slot></slot>`;
|
|
@@ -4343,21 +4392,21 @@ let Fetch = class extends Fetcher$1(Subscriber$1(s$3)) {
|
|
|
4343
4392
|
Fetch.styles = [
|
|
4344
4393
|
i$4`:host{display:contents}`
|
|
4345
4394
|
];
|
|
4346
|
-
Fetch = __decorateClass$
|
|
4347
|
-
e$8(tagName$
|
|
4395
|
+
Fetch = __decorateClass$Y([
|
|
4396
|
+
e$8(tagName$U)
|
|
4348
4397
|
], Fetch);
|
|
4349
|
-
var __defProp$
|
|
4350
|
-
var __getOwnPropDesc$
|
|
4351
|
-
var __decorateClass$
|
|
4352
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
4398
|
+
var __defProp$X = Object.defineProperty;
|
|
4399
|
+
var __getOwnPropDesc$X = Object.getOwnPropertyDescriptor;
|
|
4400
|
+
var __decorateClass$X = (decorators, target, key, kind) => {
|
|
4401
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$X(target, key) : target;
|
|
4353
4402
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
4354
4403
|
if (decorator = decorators[i2])
|
|
4355
4404
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4356
4405
|
if (kind && result)
|
|
4357
|
-
__defProp$
|
|
4406
|
+
__defProp$X(target, key, result);
|
|
4358
4407
|
return result;
|
|
4359
4408
|
};
|
|
4360
|
-
const tagName$
|
|
4409
|
+
const tagName$T = "sonic-if";
|
|
4361
4410
|
let SonicIF = class extends s$3 {
|
|
4362
4411
|
constructor() {
|
|
4363
4412
|
super(...arguments);
|
|
@@ -4370,11 +4419,11 @@ let SonicIF = class extends s$3 {
|
|
|
4370
4419
|
}
|
|
4371
4420
|
};
|
|
4372
4421
|
SonicIF.styles = i$4`:host{display:contents}`;
|
|
4373
|
-
__decorateClass$
|
|
4422
|
+
__decorateClass$X([
|
|
4374
4423
|
e$7({ type: Boolean })
|
|
4375
4424
|
], SonicIF.prototype, "condition", 2);
|
|
4376
|
-
SonicIF = __decorateClass$
|
|
4377
|
-
e$8(tagName$
|
|
4425
|
+
SonicIF = __decorateClass$X([
|
|
4426
|
+
e$8(tagName$T)
|
|
4378
4427
|
], SonicIF);
|
|
4379
4428
|
/**
|
|
4380
4429
|
* @license
|
|
@@ -4390,18 +4439,18 @@ const o$2 = e$2(class extends i$2 {
|
|
|
4390
4439
|
return this.ft === r2 ? x$1 : (this.ft = r2, document.importNode(r2.content, true));
|
|
4391
4440
|
}
|
|
4392
4441
|
});
|
|
4393
|
-
var __defProp$
|
|
4394
|
-
var __getOwnPropDesc$
|
|
4395
|
-
var __decorateClass$
|
|
4396
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
4442
|
+
var __defProp$W = Object.defineProperty;
|
|
4443
|
+
var __getOwnPropDesc$W = Object.getOwnPropertyDescriptor;
|
|
4444
|
+
var __decorateClass$W = (decorators, target, key, kind) => {
|
|
4445
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$W(target, key) : target;
|
|
4397
4446
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
4398
4447
|
if (decorator = decorators[i2])
|
|
4399
4448
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4400
4449
|
if (kind && result)
|
|
4401
|
-
__defProp$
|
|
4450
|
+
__defProp$W(target, key, result);
|
|
4402
4451
|
return result;
|
|
4403
4452
|
};
|
|
4404
|
-
const tagName$
|
|
4453
|
+
const tagName$S = "sonic-subscriber";
|
|
4405
4454
|
let SonicSubscriber = class extends Subscriber$1(s$3) {
|
|
4406
4455
|
constructor() {
|
|
4407
4456
|
super(...arguments);
|
|
@@ -4422,21 +4471,21 @@ let SonicSubscriber = class extends Subscriber$1(s$3) {
|
|
|
4422
4471
|
return y`<slot></slot>`;
|
|
4423
4472
|
}
|
|
4424
4473
|
};
|
|
4425
|
-
SonicSubscriber = __decorateClass$
|
|
4426
|
-
e$8(tagName$
|
|
4474
|
+
SonicSubscriber = __decorateClass$W([
|
|
4475
|
+
e$8(tagName$S)
|
|
4427
4476
|
], SonicSubscriber);
|
|
4428
|
-
var __defProp$
|
|
4429
|
-
var __getOwnPropDesc$
|
|
4430
|
-
var __decorateClass$
|
|
4431
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
4477
|
+
var __defProp$V = Object.defineProperty;
|
|
4478
|
+
var __getOwnPropDesc$V = Object.getOwnPropertyDescriptor;
|
|
4479
|
+
var __decorateClass$V = (decorators, target, key, kind) => {
|
|
4480
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$V(target, key) : target;
|
|
4432
4481
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
4433
4482
|
if (decorator = decorators[i2])
|
|
4434
4483
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4435
4484
|
if (kind && result)
|
|
4436
|
-
__defProp$
|
|
4485
|
+
__defProp$V(target, key, result);
|
|
4437
4486
|
return result;
|
|
4438
4487
|
};
|
|
4439
|
-
const tagName$
|
|
4488
|
+
const tagName$R = "sonic-list";
|
|
4440
4489
|
let List = class extends Fetcher$1(Subscriber$1(TemplatesContainer$1(s$3))) {
|
|
4441
4490
|
constructor() {
|
|
4442
4491
|
super(...arguments);
|
|
@@ -4520,29 +4569,39 @@ let List = class extends Fetcher$1(Subscriber$1(TemplatesContainer$1(s$3))) {
|
|
|
4520
4569
|
return b$1;
|
|
4521
4570
|
if (typeof key != "string" && typeof key != "number")
|
|
4522
4571
|
return b$1;
|
|
4523
|
-
const
|
|
4524
|
-
|
|
4572
|
+
const isLastChild = index >= length - 1;
|
|
4573
|
+
const indexMod2 = index % 2;
|
|
4574
|
+
const childPublisher = this.publisher[key];
|
|
4575
|
+
childPublisher._key_ = key + "";
|
|
4576
|
+
childPublisher._metadata_ = {
|
|
4577
|
+
...childPublisher._metadata_.get(),
|
|
4578
|
+
key,
|
|
4579
|
+
even: indexMod2 == 0,
|
|
4580
|
+
odd: indexMod2 == 1,
|
|
4581
|
+
onlyChild: length == 1,
|
|
4582
|
+
firstChild: index == 0,
|
|
4583
|
+
lastChild: isLastChild
|
|
4584
|
+
};
|
|
4525
4585
|
counter++;
|
|
4526
|
-
const isNotLast = index < length - 1;
|
|
4527
4586
|
if (templatePart)
|
|
4528
4587
|
counter = -1;
|
|
4529
4588
|
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 &&
|
|
4589
|
+
return childPublisher;
|
|
4590
|
+
}}" .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
4591
|
})}`;
|
|
4533
4592
|
}
|
|
4534
4593
|
};
|
|
4535
|
-
__decorateClass$
|
|
4594
|
+
__decorateClass$V([
|
|
4536
4595
|
e$7({ type: Object })
|
|
4537
4596
|
], List.prototype, "itemPropertyMap", 2);
|
|
4538
|
-
__decorateClass$
|
|
4597
|
+
__decorateClass$V([
|
|
4539
4598
|
e$7({ type: String })
|
|
4540
4599
|
], List.prototype, "templateKey", 2);
|
|
4541
|
-
__decorateClass$
|
|
4600
|
+
__decorateClass$V([
|
|
4542
4601
|
e$7({ type: String })
|
|
4543
4602
|
], List.prototype, "idKey", 2);
|
|
4544
|
-
List = __decorateClass$
|
|
4545
|
-
e$8(tagName$
|
|
4603
|
+
List = __decorateClass$V([
|
|
4604
|
+
e$8(tagName$R)
|
|
4546
4605
|
], List);
|
|
4547
4606
|
/**
|
|
4548
4607
|
* @license
|
|
@@ -4556,18 +4615,18 @@ function* o$1(o2, f2) {
|
|
|
4556
4615
|
yield f2(t2, i2++);
|
|
4557
4616
|
}
|
|
4558
4617
|
}
|
|
4559
|
-
var __defProp$
|
|
4560
|
-
var __getOwnPropDesc$
|
|
4561
|
-
var __decorateClass$
|
|
4562
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
4618
|
+
var __defProp$U = Object.defineProperty;
|
|
4619
|
+
var __getOwnPropDesc$U = Object.getOwnPropertyDescriptor;
|
|
4620
|
+
var __decorateClass$U = (decorators, target, key, kind) => {
|
|
4621
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$U(target, key) : target;
|
|
4563
4622
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
4564
4623
|
if (decorator = decorators[i2])
|
|
4565
4624
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4566
4625
|
if (kind && result)
|
|
4567
|
-
__defProp$
|
|
4626
|
+
__defProp$U(target, key, result);
|
|
4568
4627
|
return result;
|
|
4569
4628
|
};
|
|
4570
|
-
const tagName$
|
|
4629
|
+
const tagName$Q = "sonic-queue";
|
|
4571
4630
|
let Queue = class extends Subscriber$1(s$3) {
|
|
4572
4631
|
constructor() {
|
|
4573
4632
|
super(...arguments);
|
|
@@ -4758,57 +4817,57 @@ let Queue = class extends Subscriber$1(s$3) {
|
|
|
4758
4817
|
}
|
|
4759
4818
|
};
|
|
4760
4819
|
Queue.instanceCounter = 0;
|
|
4761
|
-
__decorateClass$
|
|
4820
|
+
__decorateClass$U([
|
|
4762
4821
|
e$7({ type: Array })
|
|
4763
4822
|
], Queue.prototype, "templates", 2);
|
|
4764
|
-
__decorateClass$
|
|
4823
|
+
__decorateClass$U([
|
|
4765
4824
|
e$7({ type: Object })
|
|
4766
4825
|
], Queue.prototype, "itemPropertyMap", 2);
|
|
4767
|
-
__decorateClass$
|
|
4826
|
+
__decorateClass$U([
|
|
4768
4827
|
e$7()
|
|
4769
4828
|
], Queue.prototype, "cache", 2);
|
|
4770
|
-
__decorateClass$
|
|
4829
|
+
__decorateClass$U([
|
|
4771
4830
|
e$7()
|
|
4772
4831
|
], Queue.prototype, "targetRequestDuration", 2);
|
|
4773
|
-
__decorateClass$
|
|
4832
|
+
__decorateClass$U([
|
|
4774
4833
|
e$7()
|
|
4775
4834
|
], Queue.prototype, "limit", 2);
|
|
4776
|
-
__decorateClass$
|
|
4835
|
+
__decorateClass$U([
|
|
4777
4836
|
e$7()
|
|
4778
4837
|
], Queue.prototype, "lazyBoundsRatio", 2);
|
|
4779
|
-
__decorateClass$
|
|
4838
|
+
__decorateClass$U([
|
|
4780
4839
|
e$7()
|
|
4781
4840
|
], Queue.prototype, "offset", 2);
|
|
4782
|
-
__decorateClass$
|
|
4841
|
+
__decorateClass$U([
|
|
4783
4842
|
e$7()
|
|
4784
4843
|
], Queue.prototype, "resultCount", 2);
|
|
4785
|
-
__decorateClass$
|
|
4844
|
+
__decorateClass$U([
|
|
4786
4845
|
e$7({ type: Boolean })
|
|
4787
4846
|
], Queue.prototype, "noLazyload", 2);
|
|
4788
|
-
__decorateClass$
|
|
4847
|
+
__decorateClass$U([
|
|
4789
4848
|
e$7()
|
|
4790
4849
|
], Queue.prototype, "filteredFields", 2);
|
|
4791
|
-
__decorateClass$
|
|
4850
|
+
__decorateClass$U([
|
|
4792
4851
|
e$7({ type: String })
|
|
4793
4852
|
], Queue.prototype, "dataProviderExpression", 2);
|
|
4794
|
-
__decorateClass$
|
|
4853
|
+
__decorateClass$U([
|
|
4795
4854
|
e$7({ type: String })
|
|
4796
4855
|
], Queue.prototype, "idKey", 2);
|
|
4797
|
-
Queue = __decorateClass$
|
|
4798
|
-
e$8(tagName$
|
|
4856
|
+
Queue = __decorateClass$U([
|
|
4857
|
+
e$8(tagName$Q)
|
|
4799
4858
|
], Queue);
|
|
4800
|
-
var __defProp$
|
|
4801
|
-
var __getOwnPropDesc$
|
|
4802
|
-
var __decorateClass$
|
|
4803
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
4859
|
+
var __defProp$T = Object.defineProperty;
|
|
4860
|
+
var __getOwnPropDesc$T = Object.getOwnPropertyDescriptor;
|
|
4861
|
+
var __decorateClass$T = (decorators, target, key, kind) => {
|
|
4862
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$T(target, key) : target;
|
|
4804
4863
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
4805
4864
|
if (decorator = decorators[i2])
|
|
4806
4865
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4807
4866
|
if (kind && result)
|
|
4808
|
-
__defProp$
|
|
4867
|
+
__defProp$T(target, key, result);
|
|
4809
4868
|
return result;
|
|
4810
4869
|
};
|
|
4811
|
-
const tagName$
|
|
4870
|
+
const tagName$P = "sonic-submit";
|
|
4812
4871
|
let Submit = class extends Subscriber$1(s$3) {
|
|
4813
4872
|
constructor() {
|
|
4814
4873
|
super(...arguments);
|
|
@@ -4970,23 +5029,23 @@ let Submit = class extends Subscriber$1(s$3) {
|
|
|
4970
5029
|
}
|
|
4971
5030
|
};
|
|
4972
5031
|
Submit.styles = i$4`[data-disabled]{opacity:.3;pointer-events:none;user-select:none}`;
|
|
4973
|
-
__decorateClass$
|
|
5032
|
+
__decorateClass$T([
|
|
4974
5033
|
e$7({ type: String })
|
|
4975
5034
|
], Submit.prototype, "submitResultKey", 2);
|
|
4976
|
-
__decorateClass$
|
|
5035
|
+
__decorateClass$T([
|
|
4977
5036
|
e$7({ type: Boolean })
|
|
4978
5037
|
], Submit.prototype, "disabled", 2);
|
|
4979
|
-
__decorateClass$
|
|
5038
|
+
__decorateClass$T([
|
|
4980
5039
|
e$7({ type: String })
|
|
4981
5040
|
], Submit.prototype, "endPoint", 2);
|
|
4982
|
-
__decorateClass$
|
|
5041
|
+
__decorateClass$T([
|
|
4983
5042
|
e$7()
|
|
4984
5043
|
], Submit.prototype, "name", 2);
|
|
4985
|
-
__decorateClass$
|
|
5044
|
+
__decorateClass$T([
|
|
4986
5045
|
e$7()
|
|
4987
5046
|
], Submit.prototype, "value", 2);
|
|
4988
|
-
Submit = __decorateClass$
|
|
4989
|
-
e$8(tagName$
|
|
5047
|
+
Submit = __decorateClass$T([
|
|
5048
|
+
e$8(tagName$P)
|
|
4990
5049
|
], Submit);
|
|
4991
5050
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
4992
5051
|
var urlPattern = { exports: {} };
|
|
@@ -5425,18 +5484,18 @@ var urlPattern = { exports: {} };
|
|
|
5425
5484
|
});
|
|
5426
5485
|
})(urlPattern, urlPattern.exports);
|
|
5427
5486
|
var UrlPattern = urlPattern.exports;
|
|
5428
|
-
var __defProp$
|
|
5429
|
-
var __getOwnPropDesc$
|
|
5430
|
-
var __decorateClass$
|
|
5431
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5487
|
+
var __defProp$S = Object.defineProperty;
|
|
5488
|
+
var __getOwnPropDesc$S = Object.getOwnPropertyDescriptor;
|
|
5489
|
+
var __decorateClass$S = (decorators, target, key, kind) => {
|
|
5490
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$S(target, key) : target;
|
|
5432
5491
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
5433
5492
|
if (decorator = decorators[i2])
|
|
5434
5493
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5435
5494
|
if (kind && result)
|
|
5436
|
-
__defProp$
|
|
5495
|
+
__defProp$S(target, key, result);
|
|
5437
5496
|
return result;
|
|
5438
5497
|
};
|
|
5439
|
-
const tagName$
|
|
5498
|
+
const tagName$O = "sonic-router";
|
|
5440
5499
|
let SonicRouter = class extends Subscriber$1(TemplatesContainer$1(s$3)) {
|
|
5441
5500
|
constructor() {
|
|
5442
5501
|
super(...arguments);
|
|
@@ -5509,24 +5568,24 @@ let SonicRouter = class extends Subscriber$1(TemplatesContainer$1(s$3)) {
|
|
|
5509
5568
|
)}`;
|
|
5510
5569
|
}
|
|
5511
5570
|
};
|
|
5512
|
-
__decorateClass$
|
|
5571
|
+
__decorateClass$S([
|
|
5513
5572
|
e$7()
|
|
5514
5573
|
], SonicRouter.prototype, "location", 1);
|
|
5515
|
-
SonicRouter = __decorateClass$
|
|
5516
|
-
e$8(tagName$
|
|
5574
|
+
SonicRouter = __decorateClass$S([
|
|
5575
|
+
e$8(tagName$O)
|
|
5517
5576
|
], SonicRouter);
|
|
5518
|
-
var __defProp$
|
|
5519
|
-
var __getOwnPropDesc$
|
|
5520
|
-
var __decorateClass$
|
|
5521
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5577
|
+
var __defProp$R = Object.defineProperty;
|
|
5578
|
+
var __getOwnPropDesc$R = Object.getOwnPropertyDescriptor;
|
|
5579
|
+
var __decorateClass$R = (decorators, target, key, kind) => {
|
|
5580
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$R(target, key) : target;
|
|
5522
5581
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
5523
5582
|
if (decorator = decorators[i2])
|
|
5524
5583
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5525
5584
|
if (kind && result)
|
|
5526
|
-
__defProp$
|
|
5585
|
+
__defProp$R(target, key, result);
|
|
5527
5586
|
return result;
|
|
5528
5587
|
};
|
|
5529
|
-
const tagName$
|
|
5588
|
+
const tagName$N = "sonic-redirect";
|
|
5530
5589
|
let SonicRedirect = class extends Subscriber$1(s$3) {
|
|
5531
5590
|
connectedCallback() {
|
|
5532
5591
|
this.noShadowDom = "";
|
|
@@ -5555,21 +5614,21 @@ let SonicRedirect = class extends Subscriber$1(s$3) {
|
|
|
5555
5614
|
}
|
|
5556
5615
|
}
|
|
5557
5616
|
};
|
|
5558
|
-
SonicRedirect = __decorateClass$
|
|
5559
|
-
e$8(tagName$
|
|
5617
|
+
SonicRedirect = __decorateClass$R([
|
|
5618
|
+
e$8(tagName$N)
|
|
5560
5619
|
], SonicRedirect);
|
|
5561
|
-
var __defProp$
|
|
5562
|
-
var __getOwnPropDesc$
|
|
5563
|
-
var __decorateClass$
|
|
5564
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5620
|
+
var __defProp$Q = Object.defineProperty;
|
|
5621
|
+
var __getOwnPropDesc$Q = Object.getOwnPropertyDescriptor;
|
|
5622
|
+
var __decorateClass$Q = (decorators, target, key, kind) => {
|
|
5623
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$Q(target, key) : target;
|
|
5565
5624
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
5566
5625
|
if (decorator = decorators[i2])
|
|
5567
5626
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5568
5627
|
if (kind && result)
|
|
5569
|
-
__defProp$
|
|
5628
|
+
__defProp$Q(target, key, result);
|
|
5570
5629
|
return result;
|
|
5571
5630
|
};
|
|
5572
|
-
const tagName$
|
|
5631
|
+
const tagName$M = "sonic-states";
|
|
5573
5632
|
let SonicStates = class extends Subscriber$1(TemplatesContainer$1(s$3)) {
|
|
5574
5633
|
constructor() {
|
|
5575
5634
|
super(...arguments);
|
|
@@ -5667,27 +5726,27 @@ let SonicStates = class extends Subscriber$1(TemplatesContainer$1(s$3)) {
|
|
|
5667
5726
|
)}`;
|
|
5668
5727
|
}
|
|
5669
5728
|
};
|
|
5670
|
-
__decorateClass$
|
|
5729
|
+
__decorateClass$Q([
|
|
5671
5730
|
e$7()
|
|
5672
5731
|
], SonicStates.prototype, "state", 2);
|
|
5673
|
-
__decorateClass$
|
|
5732
|
+
__decorateClass$Q([
|
|
5674
5733
|
e$7({ type: Boolean, reflect: true })
|
|
5675
5734
|
], SonicStates.prototype, "inverted", 2);
|
|
5676
|
-
SonicStates = __decorateClass$
|
|
5677
|
-
e$8(tagName$
|
|
5735
|
+
SonicStates = __decorateClass$Q([
|
|
5736
|
+
e$8(tagName$M)
|
|
5678
5737
|
], SonicStates);
|
|
5679
|
-
var __defProp$
|
|
5680
|
-
var __getOwnPropDesc$
|
|
5681
|
-
var __decorateClass$
|
|
5682
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5738
|
+
var __defProp$P = Object.defineProperty;
|
|
5739
|
+
var __getOwnPropDesc$P = Object.getOwnPropertyDescriptor;
|
|
5740
|
+
var __decorateClass$P = (decorators, target, key, kind) => {
|
|
5741
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$P(target, key) : target;
|
|
5683
5742
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
5684
5743
|
if (decorator = decorators[i2])
|
|
5685
5744
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5686
5745
|
if (kind && result)
|
|
5687
|
-
__defProp$
|
|
5746
|
+
__defProp$P(target, key, result);
|
|
5688
5747
|
return result;
|
|
5689
5748
|
};
|
|
5690
|
-
const tagName$
|
|
5749
|
+
const tagName$L = "sonic-scope";
|
|
5691
5750
|
let SonicScope = class extends s$3 {
|
|
5692
5751
|
createRenderRoot() {
|
|
5693
5752
|
return this;
|
|
@@ -5696,21 +5755,21 @@ let SonicScope = class extends s$3 {
|
|
|
5696
5755
|
return y`<slot></slot>`;
|
|
5697
5756
|
}
|
|
5698
5757
|
};
|
|
5699
|
-
SonicScope = __decorateClass$
|
|
5700
|
-
e$8(tagName$
|
|
5758
|
+
SonicScope = __decorateClass$P([
|
|
5759
|
+
e$8(tagName$L)
|
|
5701
5760
|
], SonicScope);
|
|
5702
|
-
var __defProp$
|
|
5703
|
-
var __getOwnPropDesc$
|
|
5704
|
-
var __decorateClass$
|
|
5705
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5761
|
+
var __defProp$O = Object.defineProperty;
|
|
5762
|
+
var __getOwnPropDesc$O = Object.getOwnPropertyDescriptor;
|
|
5763
|
+
var __decorateClass$O = (decorators, target, key, kind) => {
|
|
5764
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$O(target, key) : target;
|
|
5706
5765
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
5707
5766
|
if (decorator = decorators[i2])
|
|
5708
5767
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5709
5768
|
if (kind && result)
|
|
5710
|
-
__defProp$
|
|
5769
|
+
__defProp$O(target, key, result);
|
|
5711
5770
|
return result;
|
|
5712
5771
|
};
|
|
5713
|
-
const tagName$
|
|
5772
|
+
const tagName$K = "sonic-example";
|
|
5714
5773
|
let SonicComponent$2 = class extends Subscriber$1(s$3) {
|
|
5715
5774
|
constructor() {
|
|
5716
5775
|
super(...arguments);
|
|
@@ -5720,11 +5779,11 @@ let SonicComponent$2 = class extends Subscriber$1(s$3) {
|
|
|
5720
5779
|
return y`<div>${this.text}</div>`;
|
|
5721
5780
|
}
|
|
5722
5781
|
};
|
|
5723
|
-
__decorateClass$
|
|
5782
|
+
__decorateClass$O([
|
|
5724
5783
|
e$7()
|
|
5725
5784
|
], SonicComponent$2.prototype, "text", 2);
|
|
5726
|
-
SonicComponent$2 = __decorateClass$
|
|
5727
|
-
e$8(tagName$
|
|
5785
|
+
SonicComponent$2 = __decorateClass$O([
|
|
5786
|
+
e$8(tagName$K)
|
|
5728
5787
|
], SonicComponent$2);
|
|
5729
5788
|
const checkbox = {
|
|
5730
5789
|
tagName: "sonic-checkbox"
|
|
@@ -6040,15 +6099,15 @@ class SDUIDescriptorTransformer {
|
|
|
6040
6099
|
}
|
|
6041
6100
|
}
|
|
6042
6101
|
}
|
|
6043
|
-
var __defProp$
|
|
6044
|
-
var __getOwnPropDesc$
|
|
6045
|
-
var __decorateClass$
|
|
6046
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6102
|
+
var __defProp$N = Object.defineProperty;
|
|
6103
|
+
var __getOwnPropDesc$N = Object.getOwnPropertyDescriptor;
|
|
6104
|
+
var __decorateClass$N = (decorators, target, key, kind) => {
|
|
6105
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$N(target, key) : target;
|
|
6047
6106
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
6048
6107
|
if (decorator = decorators[i2])
|
|
6049
6108
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6050
6109
|
if (kind && result)
|
|
6051
|
-
__defProp$
|
|
6110
|
+
__defProp$N(target, key, result);
|
|
6052
6111
|
return result;
|
|
6053
6112
|
};
|
|
6054
6113
|
const Form = (superClass) => {
|
|
@@ -6096,22 +6155,22 @@ const Form = (superClass) => {
|
|
|
6096
6155
|
this.requestUpdate();
|
|
6097
6156
|
}
|
|
6098
6157
|
}
|
|
6099
|
-
__decorateClass$
|
|
6158
|
+
__decorateClass$N([
|
|
6100
6159
|
e$7()
|
|
6101
6160
|
], FormInput2.prototype, "forceAutoFill", 2);
|
|
6102
|
-
__decorateClass$
|
|
6161
|
+
__decorateClass$N([
|
|
6103
6162
|
e$7({ type: String })
|
|
6104
6163
|
], FormInput2.prototype, "type", 1);
|
|
6105
|
-
__decorateClass$
|
|
6164
|
+
__decorateClass$N([
|
|
6106
6165
|
e$7()
|
|
6107
6166
|
], FormInput2.prototype, "description", 1);
|
|
6108
|
-
__decorateClass$
|
|
6167
|
+
__decorateClass$N([
|
|
6109
6168
|
e$7()
|
|
6110
6169
|
], FormInput2.prototype, "label", 1);
|
|
6111
|
-
__decorateClass$
|
|
6170
|
+
__decorateClass$N([
|
|
6112
6171
|
e$7({ type: Number })
|
|
6113
6172
|
], FormInput2.prototype, "tabindex", 2);
|
|
6114
|
-
__decorateClass$
|
|
6173
|
+
__decorateClass$N([
|
|
6115
6174
|
e$7({ type: String })
|
|
6116
6175
|
], FormInput2.prototype, "autocomplete", 2);
|
|
6117
6176
|
return FormInput2;
|
|
@@ -6131,18 +6190,18 @@ window["concorde-mixins"] = {
|
|
|
6131
6190
|
Subscriber,
|
|
6132
6191
|
TemplatesContainer
|
|
6133
6192
|
};
|
|
6134
|
-
var __defProp$
|
|
6135
|
-
var __getOwnPropDesc$
|
|
6136
|
-
var __decorateClass$
|
|
6137
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6193
|
+
var __defProp$M = Object.defineProperty;
|
|
6194
|
+
var __getOwnPropDesc$M = Object.getOwnPropertyDescriptor;
|
|
6195
|
+
var __decorateClass$M = (decorators, target, key, kind) => {
|
|
6196
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$M(target, key) : target;
|
|
6138
6197
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
6139
6198
|
if (decorator = decorators[i2])
|
|
6140
6199
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6141
6200
|
if (kind && result)
|
|
6142
|
-
__defProp$
|
|
6201
|
+
__defProp$M(target, key, result);
|
|
6143
6202
|
return result;
|
|
6144
6203
|
};
|
|
6145
|
-
const tagName$
|
|
6204
|
+
const tagName$J = "sonic-sdui";
|
|
6146
6205
|
let SonicSDUI = class extends Fetcher(Subscriber(s$3)) {
|
|
6147
6206
|
constructor() {
|
|
6148
6207
|
super(...arguments);
|
|
@@ -6307,24 +6366,24 @@ let SonicSDUI = class extends Fetcher(Subscriber(s$3)) {
|
|
|
6307
6366
|
}
|
|
6308
6367
|
}
|
|
6309
6368
|
};
|
|
6310
|
-
__decorateClass$
|
|
6369
|
+
__decorateClass$M([
|
|
6311
6370
|
e$7()
|
|
6312
6371
|
], SonicSDUI.prototype, "sduiKey", 2);
|
|
6313
|
-
__decorateClass$
|
|
6372
|
+
__decorateClass$M([
|
|
6314
6373
|
e$7()
|
|
6315
6374
|
], SonicSDUI.prototype, "messagesKey", 2);
|
|
6316
|
-
SonicSDUI = __decorateClass$
|
|
6317
|
-
e$8(tagName$
|
|
6375
|
+
SonicSDUI = __decorateClass$M([
|
|
6376
|
+
e$8(tagName$J)
|
|
6318
6377
|
], SonicSDUI);
|
|
6319
|
-
var __defProp$
|
|
6320
|
-
var __getOwnPropDesc$
|
|
6321
|
-
var __decorateClass$
|
|
6322
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6378
|
+
var __defProp$L = Object.defineProperty;
|
|
6379
|
+
var __getOwnPropDesc$L = Object.getOwnPropertyDescriptor;
|
|
6380
|
+
var __decorateClass$L = (decorators, target, key, kind) => {
|
|
6381
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$L(target, key) : target;
|
|
6323
6382
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
6324
6383
|
if (decorator = decorators[i2])
|
|
6325
6384
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6326
6385
|
if (kind && result)
|
|
6327
|
-
__defProp$
|
|
6386
|
+
__defProp$L(target, key, result);
|
|
6328
6387
|
return result;
|
|
6329
6388
|
};
|
|
6330
6389
|
let SonicMix = class extends Subscriber(s$3) {
|
|
@@ -6406,24 +6465,24 @@ let SonicMix = class extends Subscriber(s$3) {
|
|
|
6406
6465
|
SonicMix.styles = [
|
|
6407
6466
|
i$4`:host{display:contents}`
|
|
6408
6467
|
];
|
|
6409
|
-
__decorateClass$
|
|
6468
|
+
__decorateClass$L([
|
|
6410
6469
|
e$7({ type: Object })
|
|
6411
6470
|
], SonicMix.prototype, "composition", 1);
|
|
6412
|
-
SonicMix = __decorateClass$
|
|
6471
|
+
SonicMix = __decorateClass$L([
|
|
6413
6472
|
e$8("sonic-mix")
|
|
6414
6473
|
], SonicMix);
|
|
6415
|
-
var __defProp$
|
|
6416
|
-
var __getOwnPropDesc$
|
|
6417
|
-
var __decorateClass$
|
|
6418
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6474
|
+
var __defProp$K = Object.defineProperty;
|
|
6475
|
+
var __getOwnPropDesc$K = Object.getOwnPropertyDescriptor;
|
|
6476
|
+
var __decorateClass$K = (decorators, target, key, kind) => {
|
|
6477
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$K(target, key) : target;
|
|
6419
6478
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
6420
6479
|
if (decorator = decorators[i2])
|
|
6421
6480
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6422
6481
|
if (kind && result)
|
|
6423
|
-
__defProp$
|
|
6482
|
+
__defProp$K(target, key, result);
|
|
6424
6483
|
return result;
|
|
6425
6484
|
};
|
|
6426
|
-
const tagName$
|
|
6485
|
+
const tagName$I = "sonic-value";
|
|
6427
6486
|
let SonicValue = class extends Subscriber(s$3) {
|
|
6428
6487
|
connectedCallback() {
|
|
6429
6488
|
this.setAttribute("subDataProvider", this.getAttribute("key"));
|
|
@@ -6435,8 +6494,8 @@ let SonicValue = class extends Subscriber(s$3) {
|
|
|
6435
6494
|
return y`${o$3(this.props.toString())}<slot name="prefix"></slot><slot></slot><slot name="suffix"></slot>`;
|
|
6436
6495
|
}
|
|
6437
6496
|
};
|
|
6438
|
-
SonicValue = __decorateClass$
|
|
6439
|
-
e$8(tagName$
|
|
6497
|
+
SonicValue = __decorateClass$K([
|
|
6498
|
+
e$8(tagName$I)
|
|
6440
6499
|
], SonicValue);
|
|
6441
6500
|
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
6501
|
(var(--sc-rounded) + var(--sc-rounded-size-intensity)) *
|
|
@@ -6448,18 +6507,18 @@ const coreVariables = i$4`:host{--sc-font-family-base:"Inter var","Inter",-apple
|
|
|
6448
6507
|
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
6508
|
const darkCss = i$4``;
|
|
6450
6509
|
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$
|
|
6510
|
+
var __defProp$J = Object.defineProperty;
|
|
6511
|
+
var __getOwnPropDesc$J = Object.getOwnPropertyDescriptor;
|
|
6512
|
+
var __decorateClass$J = (decorators, target, key, kind) => {
|
|
6513
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$J(target, key) : target;
|
|
6455
6514
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
6456
6515
|
if (decorator = decorators[i2])
|
|
6457
6516
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6458
6517
|
if (kind && result)
|
|
6459
|
-
__defProp$
|
|
6518
|
+
__defProp$J(target, key, result);
|
|
6460
6519
|
return result;
|
|
6461
6520
|
};
|
|
6462
|
-
const tagName$
|
|
6521
|
+
const tagName$H = "sonic-theme";
|
|
6463
6522
|
let Theme = class extends s$3 {
|
|
6464
6523
|
constructor() {
|
|
6465
6524
|
super(...arguments);
|
|
@@ -6474,6 +6533,7 @@ let Theme = class extends s$3 {
|
|
|
6474
6533
|
this.postCSSVars();
|
|
6475
6534
|
}
|
|
6476
6535
|
postCSSVars() {
|
|
6536
|
+
var _a2;
|
|
6477
6537
|
const stylesheets = document.styleSheets;
|
|
6478
6538
|
const ssLength = stylesheets.length;
|
|
6479
6539
|
const fontUrls = [];
|
|
@@ -6482,14 +6542,18 @@ let Theme = class extends s$3 {
|
|
|
6482
6542
|
if (ss.href && (ss.href.includes("googleapis") || ss.href.includes("typekit.net")))
|
|
6483
6543
|
fontUrls.push(ss.href);
|
|
6484
6544
|
}
|
|
6545
|
+
const theme = {
|
|
6546
|
+
variables: this.getCssVariables(),
|
|
6547
|
+
fonts: fontUrls
|
|
6548
|
+
};
|
|
6549
|
+
(_a2 = PublisherManager.get("sonic-theme")) == null ? void 0 : _a2.set(theme);
|
|
6485
6550
|
document.querySelectorAll("iframe").forEach(
|
|
6486
6551
|
(elt) => {
|
|
6487
|
-
var
|
|
6488
|
-
return (
|
|
6552
|
+
var _a3;
|
|
6553
|
+
return (_a3 = elt.contentWindow) == null ? void 0 : _a3.postMessage(
|
|
6489
6554
|
{
|
|
6490
6555
|
type: "SonicTheme",
|
|
6491
|
-
|
|
6492
|
-
fonts: fontUrls
|
|
6556
|
+
...theme
|
|
6493
6557
|
},
|
|
6494
6558
|
"*"
|
|
6495
6559
|
);
|
|
@@ -6508,7 +6572,6 @@ let Theme = class extends s$3 {
|
|
|
6508
6572
|
...Theme.styles.map((s2) => s2.styleSheet),
|
|
6509
6573
|
...Array.from(document.styleSheets)
|
|
6510
6574
|
];
|
|
6511
|
-
console.log(stylesheets);
|
|
6512
6575
|
for (const stylesheet of stylesheets) {
|
|
6513
6576
|
try {
|
|
6514
6577
|
if (!stylesheet)
|
|
@@ -6543,33 +6606,33 @@ Theme.styles = [
|
|
|
6543
6606
|
coreVariables,
|
|
6544
6607
|
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
6608
|
];
|
|
6546
|
-
__decorateClass$
|
|
6609
|
+
__decorateClass$J([
|
|
6547
6610
|
e$7({ type: String, reflect: true })
|
|
6548
6611
|
], Theme.prototype, "theme", 2);
|
|
6549
|
-
__decorateClass$
|
|
6612
|
+
__decorateClass$J([
|
|
6550
6613
|
e$7({ type: Boolean, reflect: true })
|
|
6551
6614
|
], Theme.prototype, "background", 2);
|
|
6552
|
-
__decorateClass$
|
|
6615
|
+
__decorateClass$J([
|
|
6553
6616
|
e$7({ type: Boolean, reflect: true })
|
|
6554
6617
|
], Theme.prototype, "color", 2);
|
|
6555
|
-
__decorateClass$
|
|
6618
|
+
__decorateClass$J([
|
|
6556
6619
|
e$7({ type: Boolean, reflect: true })
|
|
6557
6620
|
], Theme.prototype, "font", 2);
|
|
6558
|
-
Theme = __decorateClass$
|
|
6559
|
-
e$8(tagName$
|
|
6621
|
+
Theme = __decorateClass$J([
|
|
6622
|
+
e$8(tagName$H)
|
|
6560
6623
|
], Theme);
|
|
6561
|
-
var __defProp$
|
|
6562
|
-
var __getOwnPropDesc$
|
|
6563
|
-
var __decorateClass$
|
|
6564
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6624
|
+
var __defProp$I = Object.defineProperty;
|
|
6625
|
+
var __getOwnPropDesc$I = Object.getOwnPropertyDescriptor;
|
|
6626
|
+
var __decorateClass$I = (decorators, target, key, kind) => {
|
|
6627
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$I(target, key) : target;
|
|
6565
6628
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
6566
6629
|
if (decorator = decorators[i2])
|
|
6567
6630
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6568
6631
|
if (kind && result)
|
|
6569
|
-
__defProp$
|
|
6632
|
+
__defProp$I(target, key, result);
|
|
6570
6633
|
return result;
|
|
6571
6634
|
};
|
|
6572
|
-
const tagName$
|
|
6635
|
+
const tagName$G = "sonic-badge";
|
|
6573
6636
|
let Badge = class extends s$3 {
|
|
6574
6637
|
constructor() {
|
|
6575
6638
|
super(...arguments);
|
|
@@ -6583,22 +6646,22 @@ let Badge = class extends s$3 {
|
|
|
6583
6646
|
};
|
|
6584
6647
|
Badge.styles = [
|
|
6585
6648
|
fontSize,
|
|
6586
|
-
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-
|
|
6649
|
+
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-100, #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
6650
|
];
|
|
6588
|
-
__decorateClass$
|
|
6651
|
+
__decorateClass$I([
|
|
6589
6652
|
e$7({ type: String, reflect: true })
|
|
6590
6653
|
], Badge.prototype, "type", 2);
|
|
6591
|
-
__decorateClass$
|
|
6654
|
+
__decorateClass$I([
|
|
6592
6655
|
e$7({ type: String, reflect: true })
|
|
6593
6656
|
], Badge.prototype, "variant", 2);
|
|
6594
|
-
__decorateClass$
|
|
6657
|
+
__decorateClass$I([
|
|
6595
6658
|
e$7({ type: String, reflect: true })
|
|
6596
6659
|
], Badge.prototype, "size", 2);
|
|
6597
|
-
__decorateClass$
|
|
6660
|
+
__decorateClass$I([
|
|
6598
6661
|
e$7({ type: Boolean, reflect: true })
|
|
6599
6662
|
], Badge.prototype, "ellipsis", 2);
|
|
6600
|
-
Badge = __decorateClass$
|
|
6601
|
-
e$8(tagName$
|
|
6663
|
+
Badge = __decorateClass$I([
|
|
6664
|
+
e$8(tagName$G)
|
|
6602
6665
|
], Badge);
|
|
6603
6666
|
class Electron {
|
|
6604
6667
|
static fixBlankLink(link) {
|
|
@@ -6611,18 +6674,18 @@ class Electron {
|
|
|
6611
6674
|
}
|
|
6612
6675
|
}
|
|
6613
6676
|
}
|
|
6614
|
-
var __defProp$
|
|
6615
|
-
var __getOwnPropDesc$
|
|
6616
|
-
var __decorateClass$
|
|
6617
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6677
|
+
var __defProp$H = Object.defineProperty;
|
|
6678
|
+
var __getOwnPropDesc$H = Object.getOwnPropertyDescriptor;
|
|
6679
|
+
var __decorateClass$H = (decorators, target, key, kind) => {
|
|
6680
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$H(target, key) : target;
|
|
6618
6681
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
6619
6682
|
if (decorator = decorators[i2])
|
|
6620
6683
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6621
6684
|
if (kind && result)
|
|
6622
|
-
__defProp$
|
|
6685
|
+
__defProp$H(target, key, result);
|
|
6623
6686
|
return result;
|
|
6624
6687
|
};
|
|
6625
|
-
const tagName$
|
|
6688
|
+
const tagName$F = "sonic-link";
|
|
6626
6689
|
let Link = class extends s$3 {
|
|
6627
6690
|
constructor() {
|
|
6628
6691
|
super(...arguments);
|
|
@@ -6671,33 +6734,33 @@ let Link = class extends s$3 {
|
|
|
6671
6734
|
Link.styles = [
|
|
6672
6735
|
i$4`a{color:inherit;text-decoration:none;display:contents}`
|
|
6673
6736
|
];
|
|
6674
|
-
__decorateClass$
|
|
6737
|
+
__decorateClass$H([
|
|
6675
6738
|
e$7({ type: String })
|
|
6676
6739
|
], Link.prototype, "href", 2);
|
|
6677
|
-
__decorateClass$
|
|
6740
|
+
__decorateClass$H([
|
|
6678
6741
|
e$7({ type: String })
|
|
6679
6742
|
], Link.prototype, "autoActive", 2);
|
|
6680
|
-
__decorateClass$
|
|
6743
|
+
__decorateClass$H([
|
|
6681
6744
|
e$7({ type: String })
|
|
6682
6745
|
], Link.prototype, "target", 1);
|
|
6683
|
-
__decorateClass$
|
|
6746
|
+
__decorateClass$H([
|
|
6684
6747
|
e$7({ type: Boolean })
|
|
6685
6748
|
], Link.prototype, "pushState", 2);
|
|
6686
|
-
Link = __decorateClass$
|
|
6687
|
-
e$8(tagName$
|
|
6749
|
+
Link = __decorateClass$H([
|
|
6750
|
+
e$8(tagName$F)
|
|
6688
6751
|
], Link);
|
|
6689
|
-
var __defProp$
|
|
6690
|
-
var __getOwnPropDesc$
|
|
6691
|
-
var __decorateClass$
|
|
6692
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6752
|
+
var __defProp$G = Object.defineProperty;
|
|
6753
|
+
var __getOwnPropDesc$G = Object.getOwnPropertyDescriptor;
|
|
6754
|
+
var __decorateClass$G = (decorators, target, key, kind) => {
|
|
6755
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$G(target, key) : target;
|
|
6693
6756
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
6694
6757
|
if (decorator = decorators[i2])
|
|
6695
6758
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6696
6759
|
if (kind && result)
|
|
6697
|
-
__defProp$
|
|
6760
|
+
__defProp$G(target, key, result);
|
|
6698
6761
|
return result;
|
|
6699
6762
|
};
|
|
6700
|
-
const tagName$
|
|
6763
|
+
const tagName$E = "sonic-progress";
|
|
6701
6764
|
let Progress = class extends s$3 {
|
|
6702
6765
|
constructor() {
|
|
6703
6766
|
super(...arguments);
|
|
@@ -6714,28 +6777,28 @@ Progress.styles = [
|
|
|
6714
6777
|
fontSize,
|
|
6715
6778
|
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
6779
|
];
|
|
6717
|
-
__decorateClass$
|
|
6780
|
+
__decorateClass$G([
|
|
6718
6781
|
e$7({ type: Number })
|
|
6719
6782
|
], Progress.prototype, "value", 2);
|
|
6720
|
-
__decorateClass$
|
|
6783
|
+
__decorateClass$G([
|
|
6721
6784
|
e$7({ type: Number })
|
|
6722
6785
|
], Progress.prototype, "max", 2);
|
|
6723
|
-
__decorateClass$
|
|
6786
|
+
__decorateClass$G([
|
|
6724
6787
|
e$7({ type: Boolean })
|
|
6725
6788
|
], Progress.prototype, "invert", 2);
|
|
6726
|
-
__decorateClass$
|
|
6789
|
+
__decorateClass$G([
|
|
6727
6790
|
e$7({ type: String, reflect: true })
|
|
6728
6791
|
], Progress.prototype, "type", 2);
|
|
6729
|
-
__decorateClass$
|
|
6792
|
+
__decorateClass$G([
|
|
6730
6793
|
e$7({ type: String, reflect: true })
|
|
6731
6794
|
], Progress.prototype, "size", 2);
|
|
6732
|
-
Progress = __decorateClass$
|
|
6733
|
-
e$8(tagName$
|
|
6795
|
+
Progress = __decorateClass$G([
|
|
6796
|
+
e$8(tagName$E)
|
|
6734
6797
|
], Progress);
|
|
6735
6798
|
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
6799
|
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}`;
|
|
6737
6800
|
const description = i$4`.form-description{color:var(--sc-base-400);font-size:.85em;margin-top:.2em;display:block}`;
|
|
6738
|
-
const formControl = i$4`*{box-sizing:border-box}:host{--sc-input-height:var(--sc-form-height);--sc-input-c:var(--sc-input-color, var(--sc-base-content));--sc-input-b-width:var(--sc-form-border-width);--sc-input-b-color:var(--sc-input-border-color);--sc-item-rounded-tr:var(--sc-input-rounded);--sc-item-rounded-tl:var(--sc-input-rounded);--sc-item-rounded-bl:var(--sc-input-rounded);--sc-item-rounded-br:var(--sc-input-rounded);--sc-input-fs:var(--sc-fs, 1rem);--sc-input-ff:inherit;--sc-input-py:0.55em;--sc-input-px:clamp(0.3em, 8%, 1.1em);--sc-input-background:var(--sc-input-bg);--sc-input-addon-c:var(--sc-input-addon-color, var(--sc-base));--sc-input-addon-bg:var(--sc-input-c)}.form-element{display:block;flex-grow:1;width:100%;line-height:1.1;color:var(--sc-input-c);border-radius:var(--sc-item-rounded-tl) var(--sc-item-rounded-tr) var(--sc-item-rounded-br) var(--sc-item-rounded-bl);font-family:var(--sc-input-ff);background-color:var(--sc-input-background);border:var(--sc-input-b-width) solid var(--sc-input-b-color,var(--sc-base-300,#aaa));width:100%;font-size:var(--sc-input-fs);padding-top:var(--sc-input-py);padding-bottom:var(--sc-input-py);padding-left:var(--sc-input-px);padding-right:var(--sc-input-px);min-height:var(--sc-input-height)}.form-control{display:flex;width:100%}:host(:not([inlineContent])) .has-prefix slot[name=prefix],:host(:not([inlineContent])) .has-suffix slot[name=suffix]{min-width:var(--sc-input-height);box-sizing:border-box;display:flex;align-items:center;justify-content:center;line-height:1.1;flex-shrink:0;padding-left:clamp(.25em,3%,calc(.33 * var(--sc-input-px)));padding-right:clamp(.25em,3%,calc(.33 * var(--sc-input-px)))}:host(:not([inlineContent])) slot[name=prefix]{border-radius:var(--sc-item-rounded-tl) 0 0 var(--sc-item-rounded-bl);background-color:var(--sc-input-addon-bg);color:var(--sc-input-addon-c)}:host(:not([inlineContent])) slot[name=suffix]{border-radius:0 var(--sc-item-rounded-tr) var(--sc-item-rounded-br) 0;background-color:var(--sc-input-addon-bg);color:var(--sc-input-addon-c)}:host(:not([inlineContent])) .has-prefix .form-element{border-top-left-radius:0;border-bottom-left-radius:0}:host(:not([inlineContent])) .has-suffix .form-element{border-top-right-radius:0;border-bottom-right-radius:0}slot[name=prefix]::slotted(sonic-icon),slot[name=suffix]::slotted(sonic-icon){font-size:1.2em}.form-element .form-element,.form-element>slot{all:unset}:host([inlineContent]) .form-element{display:flex;align-items:center;gap:.35em;min-height:var(--sc-form-height)}:host([inlineContent]) .form-element .form-element{appearance:none;background:0 0;border:none;padding:0;display:block;width:50%;min-width:0;flex:1 1 auto;height:auto;min-height:auto;border-radius:0}:host([inlineContent]) slot[name=prefix]::slotted(*),:host([inlineContent]) slot[name=suffix]::slotted(*){display:block;flex:0 0 auto;max-width:100%;max-width:100
|
|
6801
|
+
const formControl = i$4`*{box-sizing:border-box}:host{--sc-input-height:var(--sc-form-height);--sc-input-c:var(--sc-input-color, var(--sc-base-content));--sc-input-b-width:var(--sc-form-border-width);--sc-input-b-color:var(--sc-input-border-color);--sc-item-rounded-tr:var(--sc-input-rounded);--sc-item-rounded-tl:var(--sc-input-rounded);--sc-item-rounded-bl:var(--sc-input-rounded);--sc-item-rounded-br:var(--sc-input-rounded);--sc-input-fs:var(--sc-fs, 1rem);--sc-input-ff:inherit;--sc-input-py:0.55em;--sc-input-px:clamp(0.3em, 8%, 1.1em);--sc-input-background:var(--sc-input-bg);--sc-input-addon-c:var(--sc-input-addon-color, var(--sc-base));--sc-input-addon-bg:var(--sc-input-c)}.form-element{display:block;flex-grow:1;width:100%;line-height:1.1;color:var(--sc-input-c);border-radius:var(--sc-item-rounded-tl) var(--sc-item-rounded-tr) var(--sc-item-rounded-br) var(--sc-item-rounded-bl);font-family:var(--sc-input-ff);background-color:var(--sc-input-background);border:var(--sc-input-b-width) solid var(--sc-input-b-color,var(--sc-base-300,#aaa));width:100%;font-size:var(--sc-input-fs);padding-top:var(--sc-input-py);padding-bottom:var(--sc-input-py);padding-left:var(--sc-input-px);padding-right:var(--sc-input-px);min-height:var(--sc-input-height)}.form-control{display:flex;width:100%}:host(:not([inlineContent])) .has-prefix slot[name=prefix],:host(:not([inlineContent])) .has-suffix slot[name=suffix]{min-width:var(--sc-input-height);box-sizing:border-box;display:flex;align-items:center;justify-content:center;line-height:1.1;flex-shrink:0;padding-left:clamp(.25em,3%,calc(.33 * var(--sc-input-px)));padding-right:clamp(.25em,3%,calc(.33 * var(--sc-input-px)))}:host(:not([inlineContent])) slot[name=prefix]{border-radius:var(--sc-item-rounded-tl) 0 0 var(--sc-item-rounded-bl);background-color:var(--sc-input-addon-bg);color:var(--sc-input-addon-c)}:host(:not([inlineContent])) slot[name=suffix]{border-radius:0 var(--sc-item-rounded-tr) var(--sc-item-rounded-br) 0;background-color:var(--sc-input-addon-bg);color:var(--sc-input-addon-c)}:host(:not([inlineContent])) .has-prefix .form-element{border-top-left-radius:0;border-bottom-left-radius:0}:host(:not([inlineContent])) .has-suffix .form-element{border-top-right-radius:0;border-bottom-right-radius:0}slot[name=prefix]::slotted(sonic-icon),slot[name=suffix]::slotted(sonic-icon){font-size:1.2em}.form-element .form-element,.form-element>slot{all:unset}:host([inlineContent]) .form-element{display:flex;align-items:center;gap:.35em;min-height:var(--sc-form-height)}:host([inlineContent]) .form-element .form-element{appearance:none;background:0 0;border:none;padding:0;display:block;width:50%;min-width:0;flex:1 1 auto;height:auto;min-height:auto;border-radius:0}:host([inlineContent]) slot[name=prefix]::slotted(*),:host([inlineContent]) slot[name=suffix]::slotted(*){display:block;flex:0 0 auto;max-width:100%;max-width:100%;white-space:nowrap}:host([inlineContent]) .has-suffix slot[name=suffix]{margin-right:calc(-.5 * var(--sc-input-px))}:host([inlineContent]) .has-prefix slot[name=prefix]{margin-left:calc(-.5 * var(--sc-input-px))}:host([inlineContent]) slot[name=suffix]::slotted(*){margin-left:auto}:host([inlineContent]) .no-prefix slot[name=prefix],:host([inlineContent]) .no-suffix slot[name=suffix]{display:none}:host([disabled]) .form-control{cursor:not-allowed}:host([variant=ghost]) .form-element{--sc-input-bg:transparent}:host([disabled]) .form-element{pointer-events:none;opacity:.5}:host([disabled]) .select-chevron{display:none}::placeholder{color:inherit;opacity:.45}:host([placehoderAsLabel]) ::placeholder{opacity:1}:focus::placeholder{opacity:0!important}.form-element:focus,.form-element:focus-visible,:host(:not([disabled])) .form-element:hover{filter:brightness(.97);outline:0}.form-label{margin-bottom:.22em;display:block}.form-description{color:var(--sc-base-400);font-size:.85em;margin-top:.2em;display:block}.hidden{display:none}.contents{display:contents}:host([error]){--sc-input-b-color:var(--sc-danger)}:host input:visited{display:none}:host([touched][required]) :not(:focus):invalid{--sc-input-b-color:var(--sc-danger);--sc-input-c:var(--sc-danger)}:host([touched][required]) :not(:focus):invalid+.select-chevron{--sc-input-c:var(--sc-danger)}:host([touched][required]) :not([value=""]):not(:focus):valid{--sc-input-b-color:var(--sc-success);--sc-input-c:var(--sc-success)}:host([touched][required]) :not(:focus):valid+.select-chevron{--sc-input-c:var(--sc-success)}:host([type=color]) .form-element{padding:0;border:0;min-width:var(--sc-input-height)}input[type=color]::-webkit-color-swatch-wrapper{padding:0}input[type=color]::-webkit-color-swatch{border:none;border-radius:var(--sc-item-rounded-tl) var(--sc-item-rounded-tr) var(--sc-item-rounded-br) var(--sc-item-rounded-bl)}:host([type=image]) .form-element{padding:0;border:none}input[type=reset],input[type=submit]{cursor:pointer}:host([type=search]){appearance:none!important}input[type=search]::-webkit-search-cancel-button{appearance:none;cursor:pointer;height:.65em;width:.65em;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pg0KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE2LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPg0KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCINCgkgd2lkdGg9IjEyMy4wNXB4IiBoZWlnaHQ9IjEyMy4wNXB4IiB2aWV3Qm94PSIwIDAgMTIzLjA1IDEyMy4wNSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTIzLjA1IDEyMy4wNTsiDQoJIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPGc+DQoJPHBhdGggZD0iTTEyMS4zMjUsMTAuOTI1bC04LjUtOC4zOTljLTIuMy0yLjMtNi4xLTIuMy04LjUsMGwtNDIuNCw0Mi4zOTlMMTguNzI2LDEuNzI2Yy0yLjMwMS0yLjMwMS02LjEwMS0yLjMwMS04LjUsMGwtOC41LDguNQ0KCQljLTIuMzAxLDIuMy0yLjMwMSw2LjEsMCw4LjVsNDMuMSw0My4xbC00Mi4zLDQyLjVjLTIuMywyLjMtMi4zLDYuMSwwLDguNWw4LjUsOC41YzIuMywyLjMsNi4xLDIuMyw4LjUsMGw0Mi4zOTktNDIuNGw0Mi40LDQyLjQNCgkJYzIuMywyLjMsNi4xLDIuMyw4LjUsMGw4LjUtOC41YzIuMy0yLjMsMi4zLTYuMSwwLTguNWwtNDIuNS00Mi40bDQyLjQtNDIuMzk5QzEyMy42MjUsMTcuMTI1LDEyMy42MjUsMTMuMzI1LDEyMS4zMjUsMTAuOTI1eiIvPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPC9zdmc+DQo=);background-size:contain;background-repeat:no-repeat}:host([align=center]) .form-element{text-align:center}:host([align=left]) .form-element{text-align:left}:host([align=right]) .form-element{text-align:right}:host([noAppearance]) input[type=number]::-webkit-inner-spin-button,:host([noAppearance]) input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}:host([noAppearance]) input[type=number]{-moz-appearance:textfield!important}`;
|
|
6739
6802
|
/**
|
|
6740
6803
|
* @license
|
|
6741
6804
|
* Copyright 2018 Google LLC
|
|
@@ -6769,18 +6832,18 @@ const o = e$2(class extends i$2 {
|
|
|
6769
6832
|
return x$1;
|
|
6770
6833
|
}
|
|
6771
6834
|
});
|
|
6772
|
-
var __defProp$
|
|
6773
|
-
var __getOwnPropDesc$
|
|
6774
|
-
var __decorateClass$
|
|
6775
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6835
|
+
var __defProp$F = Object.defineProperty;
|
|
6836
|
+
var __getOwnPropDesc$F = Object.getOwnPropertyDescriptor;
|
|
6837
|
+
var __decorateClass$F = (decorators, target, key, kind) => {
|
|
6838
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$F(target, key) : target;
|
|
6776
6839
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
6777
6840
|
if (decorator = decorators[i2])
|
|
6778
6841
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6779
6842
|
if (kind && result)
|
|
6780
|
-
__defProp$
|
|
6843
|
+
__defProp$F(target, key, result);
|
|
6781
6844
|
return result;
|
|
6782
6845
|
};
|
|
6783
|
-
const tagName$
|
|
6846
|
+
const tagName$D = "sonic-input";
|
|
6784
6847
|
let Input = class extends Form(Form$2(Subscriber$1(s$3))) {
|
|
6785
6848
|
constructor() {
|
|
6786
6849
|
super(...arguments);
|
|
@@ -6877,93 +6940,93 @@ Input.styles = [
|
|
|
6877
6940
|
passwordToggle,
|
|
6878
6941
|
i$4`:host([type=hidden]){appearance:none!important;display:none!important}:host>.form-control{position:relative}`
|
|
6879
6942
|
];
|
|
6880
|
-
__decorateClass$
|
|
6943
|
+
__decorateClass$F([
|
|
6881
6944
|
e$7({ type: String, reflect: true })
|
|
6882
6945
|
], Input.prototype, "size", 2);
|
|
6883
|
-
__decorateClass$
|
|
6946
|
+
__decorateClass$F([
|
|
6884
6947
|
e$7({ type: String })
|
|
6885
6948
|
], Input.prototype, "list", 2);
|
|
6886
|
-
__decorateClass$
|
|
6949
|
+
__decorateClass$F([
|
|
6887
6950
|
e$7({ type: String })
|
|
6888
6951
|
], Input.prototype, "placeholder", 2);
|
|
6889
|
-
__decorateClass$
|
|
6952
|
+
__decorateClass$F([
|
|
6890
6953
|
e$7({ type: String })
|
|
6891
6954
|
], Input.prototype, "pattern", 2);
|
|
6892
|
-
__decorateClass$
|
|
6955
|
+
__decorateClass$F([
|
|
6893
6956
|
e$7({ type: String })
|
|
6894
6957
|
], Input.prototype, "min", 2);
|
|
6895
|
-
__decorateClass$
|
|
6958
|
+
__decorateClass$F([
|
|
6896
6959
|
e$7({ type: String })
|
|
6897
6960
|
], Input.prototype, "max", 2);
|
|
6898
|
-
__decorateClass$
|
|
6961
|
+
__decorateClass$F([
|
|
6899
6962
|
e$7({ type: Boolean })
|
|
6900
6963
|
], Input.prototype, "readonly", 2);
|
|
6901
|
-
__decorateClass$
|
|
6964
|
+
__decorateClass$F([
|
|
6902
6965
|
e$7({ type: Number })
|
|
6903
6966
|
], Input.prototype, "step", 2);
|
|
6904
|
-
__decorateClass$
|
|
6967
|
+
__decorateClass$F([
|
|
6905
6968
|
e$7({ type: Number })
|
|
6906
6969
|
], Input.prototype, "minlength", 2);
|
|
6907
|
-
__decorateClass$
|
|
6970
|
+
__decorateClass$F([
|
|
6908
6971
|
e$7({ type: Number })
|
|
6909
6972
|
], Input.prototype, "maxlength", 2);
|
|
6910
|
-
__decorateClass$
|
|
6973
|
+
__decorateClass$F([
|
|
6911
6974
|
e$7({ type: String })
|
|
6912
6975
|
], Input.prototype, "src", 2);
|
|
6913
|
-
__decorateClass$
|
|
6976
|
+
__decorateClass$F([
|
|
6914
6977
|
e$7({ type: Boolean, reflect: true })
|
|
6915
6978
|
], Input.prototype, "inlineContent", 2);
|
|
6916
|
-
__decorateClass$
|
|
6979
|
+
__decorateClass$F([
|
|
6917
6980
|
e$7({ type: Boolean })
|
|
6918
6981
|
], Input.prototype, "disableInlineContentFocus", 2);
|
|
6919
|
-
__decorateClass$
|
|
6982
|
+
__decorateClass$F([
|
|
6920
6983
|
e$7({ type: Boolean })
|
|
6921
6984
|
], Input.prototype, "showPasswordToggle", 2);
|
|
6922
|
-
__decorateClass$
|
|
6985
|
+
__decorateClass$F([
|
|
6923
6986
|
o$9({ slot: "label" })
|
|
6924
6987
|
], Input.prototype, "slotLabelNodes", 2);
|
|
6925
|
-
__decorateClass$
|
|
6988
|
+
__decorateClass$F([
|
|
6926
6989
|
o$9({ slot: "description" })
|
|
6927
6990
|
], Input.prototype, "slotDescriptionNodes", 2);
|
|
6928
|
-
__decorateClass$
|
|
6991
|
+
__decorateClass$F([
|
|
6929
6992
|
o$9({ slot: "suffix" })
|
|
6930
6993
|
], Input.prototype, "slotSuffixNodes", 2);
|
|
6931
|
-
__decorateClass$
|
|
6994
|
+
__decorateClass$F([
|
|
6932
6995
|
o$9({ slot: "prefix" })
|
|
6933
6996
|
], Input.prototype, "slotPrefixNodes", 2);
|
|
6934
|
-
__decorateClass$
|
|
6997
|
+
__decorateClass$F([
|
|
6935
6998
|
i$5("input")
|
|
6936
6999
|
], Input.prototype, "input", 2);
|
|
6937
|
-
__decorateClass$
|
|
7000
|
+
__decorateClass$F([
|
|
6938
7001
|
t$3()
|
|
6939
7002
|
], Input.prototype, "hasDescription", 2);
|
|
6940
|
-
__decorateClass$
|
|
7003
|
+
__decorateClass$F([
|
|
6941
7004
|
t$3()
|
|
6942
7005
|
], Input.prototype, "hasLabel", 2);
|
|
6943
|
-
__decorateClass$
|
|
7006
|
+
__decorateClass$F([
|
|
6944
7007
|
t$3()
|
|
6945
7008
|
], Input.prototype, "hasSuffix", 2);
|
|
6946
|
-
__decorateClass$
|
|
7009
|
+
__decorateClass$F([
|
|
6947
7010
|
t$3()
|
|
6948
7011
|
], Input.prototype, "hasPrefix", 2);
|
|
6949
|
-
__decorateClass$
|
|
7012
|
+
__decorateClass$F([
|
|
6950
7013
|
t$3()
|
|
6951
7014
|
], Input.prototype, "isPassword", 2);
|
|
6952
|
-
Input = __decorateClass$
|
|
6953
|
-
e$8(tagName$
|
|
7015
|
+
Input = __decorateClass$F([
|
|
7016
|
+
e$8(tagName$D)
|
|
6954
7017
|
], Input);
|
|
6955
|
-
var __defProp$
|
|
6956
|
-
var __getOwnPropDesc$
|
|
6957
|
-
var __decorateClass$
|
|
6958
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7018
|
+
var __defProp$E = Object.defineProperty;
|
|
7019
|
+
var __getOwnPropDesc$E = Object.getOwnPropertyDescriptor;
|
|
7020
|
+
var __decorateClass$E = (decorators, target, key, kind) => {
|
|
7021
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$E(target, key) : target;
|
|
6959
7022
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
6960
7023
|
if (decorator = decorators[i2])
|
|
6961
7024
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6962
7025
|
if (kind && result)
|
|
6963
|
-
__defProp$
|
|
7026
|
+
__defProp$E(target, key, result);
|
|
6964
7027
|
return result;
|
|
6965
7028
|
};
|
|
6966
|
-
const tagName$
|
|
7029
|
+
const tagName$C = "sonic-pop";
|
|
6967
7030
|
let Pop = class extends s$3 {
|
|
6968
7031
|
constructor() {
|
|
6969
7032
|
super(...arguments);
|
|
@@ -7124,42 +7187,42 @@ Pop.pops = /* @__PURE__ */ new Set();
|
|
|
7124
7187
|
Pop.styles = [
|
|
7125
7188
|
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
7189
|
];
|
|
7127
|
-
__decorateClass$
|
|
7190
|
+
__decorateClass$E([
|
|
7128
7191
|
t$3()
|
|
7129
7192
|
], Pop.prototype, "open", 2);
|
|
7130
|
-
__decorateClass$
|
|
7193
|
+
__decorateClass$E([
|
|
7131
7194
|
i$5("slot:not([name=content])")
|
|
7132
7195
|
], Pop.prototype, "popBtn", 2);
|
|
7133
|
-
__decorateClass$
|
|
7196
|
+
__decorateClass$E([
|
|
7134
7197
|
i$5("slot[name=content]")
|
|
7135
7198
|
], Pop.prototype, "popContent", 2);
|
|
7136
|
-
__decorateClass$
|
|
7199
|
+
__decorateClass$E([
|
|
7137
7200
|
e$7({ type: Boolean })
|
|
7138
7201
|
], Pop.prototype, "noToggle", 2);
|
|
7139
|
-
__decorateClass$
|
|
7202
|
+
__decorateClass$E([
|
|
7140
7203
|
e$7({ type: Boolean, reflect: true })
|
|
7141
7204
|
], Pop.prototype, "inline", 2);
|
|
7142
|
-
__decorateClass$
|
|
7205
|
+
__decorateClass$E([
|
|
7143
7206
|
e$7({ type: String, reflect: true })
|
|
7144
7207
|
], Pop.prototype, "shadow", 2);
|
|
7145
|
-
__decorateClass$
|
|
7208
|
+
__decorateClass$E([
|
|
7146
7209
|
e$7({ type: String })
|
|
7147
7210
|
], Pop.prototype, "placement", 2);
|
|
7148
|
-
Pop = __decorateClass$
|
|
7149
|
-
e$8(tagName$
|
|
7211
|
+
Pop = __decorateClass$E([
|
|
7212
|
+
e$8(tagName$C)
|
|
7150
7213
|
], Pop);
|
|
7151
|
-
var __defProp$
|
|
7152
|
-
var __getOwnPropDesc$
|
|
7153
|
-
var __decorateClass$
|
|
7154
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7214
|
+
var __defProp$D = Object.defineProperty;
|
|
7215
|
+
var __getOwnPropDesc$D = Object.getOwnPropertyDescriptor;
|
|
7216
|
+
var __decorateClass$D = (decorators, target, key, kind) => {
|
|
7217
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$D(target, key) : target;
|
|
7155
7218
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
7156
7219
|
if (decorator = decorators[i2])
|
|
7157
7220
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7158
7221
|
if (kind && result)
|
|
7159
|
-
__defProp$
|
|
7222
|
+
__defProp$D(target, key, result);
|
|
7160
7223
|
return result;
|
|
7161
7224
|
};
|
|
7162
|
-
const tagName$
|
|
7225
|
+
const tagName$B = "sonic-menu-item";
|
|
7163
7226
|
let MenuItem = class extends Button {
|
|
7164
7227
|
constructor() {
|
|
7165
7228
|
super();
|
|
@@ -7180,18 +7243,48 @@ let MenuItem = class extends Button {
|
|
|
7180
7243
|
super.connectedCallback();
|
|
7181
7244
|
}
|
|
7182
7245
|
};
|
|
7183
|
-
MenuItem = __decorateClass$
|
|
7184
|
-
e$8(tagName$
|
|
7246
|
+
MenuItem = __decorateClass$D([
|
|
7247
|
+
e$8(tagName$B)
|
|
7185
7248
|
], MenuItem);
|
|
7186
|
-
|
|
7187
|
-
|
|
7188
|
-
|
|
7189
|
-
|
|
7249
|
+
class s {
|
|
7250
|
+
constructor(s2, { target: t2, config: i2, callback: h2, skipInitial: e2 }) {
|
|
7251
|
+
this.t = /* @__PURE__ */ new Set(), this.o = false, this.i = false, this.h = s2, null !== t2 && this.t.add(null != t2 ? t2 : s2), this.l = i2, this.o = null != e2 ? e2 : this.o, this.callback = h2, window.ResizeObserver ? (this.u = new ResizeObserver((s3) => {
|
|
7252
|
+
this.handleChanges(s3), this.h.requestUpdate();
|
|
7253
|
+
}), s2.addController(this)) : console.warn("ResizeController error: browser does not support ResizeObserver.");
|
|
7254
|
+
}
|
|
7255
|
+
handleChanges(s2) {
|
|
7256
|
+
var t2;
|
|
7257
|
+
this.value = null === (t2 = this.callback) || void 0 === t2 ? void 0 : t2.call(this, s2, this.u);
|
|
7258
|
+
}
|
|
7259
|
+
hostConnected() {
|
|
7260
|
+
for (const s2 of this.t)
|
|
7261
|
+
this.observe(s2);
|
|
7262
|
+
}
|
|
7263
|
+
hostDisconnected() {
|
|
7264
|
+
this.disconnect();
|
|
7265
|
+
}
|
|
7266
|
+
async hostUpdated() {
|
|
7267
|
+
!this.o && this.i && this.handleChanges([]), this.i = false;
|
|
7268
|
+
}
|
|
7269
|
+
observe(s2) {
|
|
7270
|
+
this.t.add(s2), this.u.observe(s2, this.l), this.i = true, this.h.requestUpdate();
|
|
7271
|
+
}
|
|
7272
|
+
unobserve(s2) {
|
|
7273
|
+
this.t.delete(s2), this.u.unobserve(s2);
|
|
7274
|
+
}
|
|
7275
|
+
disconnect() {
|
|
7276
|
+
this.u.disconnect();
|
|
7277
|
+
}
|
|
7278
|
+
}
|
|
7279
|
+
var __defProp$C = Object.defineProperty;
|
|
7280
|
+
var __getOwnPropDesc$C = Object.getOwnPropertyDescriptor;
|
|
7281
|
+
var __decorateClass$C = (decorators, target, key, kind) => {
|
|
7282
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$C(target, key) : target;
|
|
7190
7283
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
7191
7284
|
if (decorator = decorators[i2])
|
|
7192
7285
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7193
7286
|
if (kind && result)
|
|
7194
|
-
__defProp$
|
|
7287
|
+
__defProp$C(target, key, result);
|
|
7195
7288
|
return result;
|
|
7196
7289
|
};
|
|
7197
7290
|
let InputAutocomplete = class extends TemplatesContainer(
|
|
@@ -7206,6 +7299,8 @@ let InputAutocomplete = class extends TemplatesContainer(
|
|
|
7206
7299
|
this.dataProviderExpression = "";
|
|
7207
7300
|
this.key = "";
|
|
7208
7301
|
this.searchParameter = "";
|
|
7302
|
+
this.hasInputPrefix = false;
|
|
7303
|
+
this._resizeController = new s(this, {});
|
|
7209
7304
|
this.searchDataProvider = "";
|
|
7210
7305
|
this.initSearchDataProvider = "";
|
|
7211
7306
|
this.queueDataProvider = "";
|
|
@@ -7257,6 +7352,10 @@ let InputAutocomplete = class extends TemplatesContainer(
|
|
|
7257
7352
|
}
|
|
7258
7353
|
};
|
|
7259
7354
|
}
|
|
7355
|
+
hasSlotOrProps() {
|
|
7356
|
+
var _a2;
|
|
7357
|
+
this.hasInputPrefix = !!((_a2 = this.slotInputPrefixNodes) == null ? void 0 : _a2.length);
|
|
7358
|
+
}
|
|
7260
7359
|
connectedCallback() {
|
|
7261
7360
|
var _a2, _b, _c;
|
|
7262
7361
|
super.connectedCallback();
|
|
@@ -7304,7 +7403,6 @@ let InputAutocomplete = class extends TemplatesContainer(
|
|
|
7304
7403
|
if (!Array.isArray(list))
|
|
7305
7404
|
continue;
|
|
7306
7405
|
listItem = list.find(itemFinder);
|
|
7307
|
-
console.log(listItem);
|
|
7308
7406
|
if (listItem) {
|
|
7309
7407
|
break;
|
|
7310
7408
|
}
|
|
@@ -7329,51 +7427,58 @@ let InputAutocomplete = class extends TemplatesContainer(
|
|
|
7329
7427
|
(_c = this.searchPublisher) == null ? void 0 : _c.set(this.lastValidSearch);
|
|
7330
7428
|
}
|
|
7331
7429
|
render() {
|
|
7332
|
-
return y`<sonic-pop noToggle style="display:block" @hide="${this.handleHide}"><sonic-input
|
|
7430
|
+
return y`<sonic-pop noToggle style="display:block" @hide="${this.handleHide}"><sonic-input dataProvider="${this.initSearchDataProvider + Math.random()}" formDataProvider="${this.searchDataProvider}" type="search" data-keyboard-nav="${this.getAttribute("data-keyboard-nav") || ""}" label="${l$2(this.label)}" description="${l$2(this.description)}" name="${l$2(this.searchParameter || this.name)}" placeholder="${l$2(this.placeholder)}" ?readonly="${this.readonly}" autocomplete="off" clearable inlineContent size="${this.size}"><slot name="prefix" slot="prefix" @slotchange="${this.hasSlotOrProps}"></slot>${this.select ? y`<sonic-icon slot="suffix" class="select-chevron" name="nav-arrow-down" .size="${this.size}"></sonic-icon>` : b$1}</sonic-input><sonic-menu slot="content" class="custom-scroll" style="${this.offsetWidth ? `width: ${this.offsetWidth}px` : ""}"><sonic-queue dataProvider="${this.queueDataProvider}" filteredFields="${this.filteredFields}" dataProviderExpression="${this.dataProviderExpression}" dataFilterProvider="${this.searchDataProvider}" key="${this.key}" .templates="${this.templateList}" displayContents></sonic-queue><sonic-queue noLazyload dataProvider="${this.initQueueDataProvider}" filteredFields="${this.filteredFields}" dataProviderExpression="${this.dataProviderExpression}" dataFilterProvider="${this.initSearchDataProvider}" key="${this.key}" displayContents></sonic-queue></sonic-menu></sonic-pop>`;
|
|
7333
7431
|
}
|
|
7334
7432
|
};
|
|
7335
7433
|
InputAutocomplete.styles = [
|
|
7336
|
-
|
|
7434
|
+
customScroll,
|
|
7435
|
+
i$4`:host{display:block}sonic-menu{display:block;max-height:clamp(20rem,55vh,35rem);min-width:14rem;width:100%}`
|
|
7337
7436
|
];
|
|
7338
|
-
__decorateClass$
|
|
7437
|
+
__decorateClass$C([
|
|
7339
7438
|
e$7({ type: String })
|
|
7340
7439
|
], InputAutocomplete.prototype, "size", 2);
|
|
7341
|
-
__decorateClass$
|
|
7440
|
+
__decorateClass$C([
|
|
7342
7441
|
e$7({ type: String })
|
|
7343
7442
|
], InputAutocomplete.prototype, "placeholder", 2);
|
|
7344
|
-
__decorateClass$
|
|
7443
|
+
__decorateClass$C([
|
|
7345
7444
|
e$7()
|
|
7346
7445
|
], InputAutocomplete.prototype, "filteredFields", 2);
|
|
7347
|
-
__decorateClass$
|
|
7446
|
+
__decorateClass$C([
|
|
7348
7447
|
e$7({ type: Boolean })
|
|
7349
7448
|
], InputAutocomplete.prototype, "readonly", 2);
|
|
7350
|
-
__decorateClass$
|
|
7449
|
+
__decorateClass$C([
|
|
7351
7450
|
e$7({ type: String })
|
|
7352
7451
|
], InputAutocomplete.prototype, "dataProviderExpression", 2);
|
|
7353
|
-
__decorateClass$
|
|
7452
|
+
__decorateClass$C([
|
|
7354
7453
|
e$7({ type: Boolean })
|
|
7355
7454
|
], InputAutocomplete.prototype, "select", 2);
|
|
7356
|
-
__decorateClass$
|
|
7455
|
+
__decorateClass$C([
|
|
7357
7456
|
e$7({ type: String })
|
|
7358
7457
|
], InputAutocomplete.prototype, "key", 2);
|
|
7359
|
-
__decorateClass$
|
|
7458
|
+
__decorateClass$C([
|
|
7360
7459
|
e$7({ type: String })
|
|
7361
7460
|
], InputAutocomplete.prototype, "searchParameter", 2);
|
|
7362
|
-
|
|
7461
|
+
__decorateClass$C([
|
|
7462
|
+
o$9({ slot: "prefix" })
|
|
7463
|
+
], InputAutocomplete.prototype, "slotInputPrefixNodes", 2);
|
|
7464
|
+
__decorateClass$C([
|
|
7465
|
+
t$3()
|
|
7466
|
+
], InputAutocomplete.prototype, "hasInputPrefix", 2);
|
|
7467
|
+
InputAutocomplete = __decorateClass$C([
|
|
7363
7468
|
e$8("sonic-input-autocomplete")
|
|
7364
7469
|
], InputAutocomplete);
|
|
7365
|
-
var __defProp$
|
|
7366
|
-
var __getOwnPropDesc$
|
|
7367
|
-
var __decorateClass$
|
|
7368
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7470
|
+
var __defProp$B = Object.defineProperty;
|
|
7471
|
+
var __getOwnPropDesc$B = Object.getOwnPropertyDescriptor;
|
|
7472
|
+
var __decorateClass$B = (decorators, target, key, kind) => {
|
|
7473
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$B(target, key) : target;
|
|
7369
7474
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
7370
7475
|
if (decorator = decorators[i2])
|
|
7371
7476
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7372
7477
|
if (kind && result)
|
|
7373
|
-
__defProp$
|
|
7478
|
+
__defProp$B(target, key, result);
|
|
7374
7479
|
return result;
|
|
7375
7480
|
};
|
|
7376
|
-
const tagName$
|
|
7481
|
+
const tagName$A = "sonic-password-helper";
|
|
7377
7482
|
let SonicComponent$1 = class extends Subscriber(s$3) {
|
|
7378
7483
|
constructor() {
|
|
7379
7484
|
super(...arguments);
|
|
@@ -7425,63 +7530,63 @@ let SonicComponent$1 = class extends Subscriber(s$3) {
|
|
|
7425
7530
|
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
7531
|
}
|
|
7427
7532
|
};
|
|
7428
|
-
__decorateClass$
|
|
7533
|
+
__decorateClass$B([
|
|
7429
7534
|
e$7()
|
|
7430
7535
|
], SonicComponent$1.prototype, "name", 2);
|
|
7431
|
-
__decorateClass$
|
|
7536
|
+
__decorateClass$B([
|
|
7432
7537
|
e$7()
|
|
7433
7538
|
], SonicComponent$1.prototype, "minChars", 2);
|
|
7434
|
-
__decorateClass$
|
|
7539
|
+
__decorateClass$B([
|
|
7435
7540
|
t$3()
|
|
7436
7541
|
], SonicComponent$1.prototype, "hasNoChar", 2);
|
|
7437
|
-
__decorateClass$
|
|
7542
|
+
__decorateClass$B([
|
|
7438
7543
|
t$3()
|
|
7439
7544
|
], SonicComponent$1.prototype, "hasEnoughChars", 2);
|
|
7440
|
-
__decorateClass$
|
|
7545
|
+
__decorateClass$B([
|
|
7441
7546
|
t$3()
|
|
7442
7547
|
], SonicComponent$1.prototype, "hasMinuscule", 2);
|
|
7443
|
-
__decorateClass$
|
|
7548
|
+
__decorateClass$B([
|
|
7444
7549
|
t$3()
|
|
7445
7550
|
], SonicComponent$1.prototype, "hasMajuscule", 2);
|
|
7446
|
-
__decorateClass$
|
|
7551
|
+
__decorateClass$B([
|
|
7447
7552
|
t$3()
|
|
7448
7553
|
], SonicComponent$1.prototype, "hasNumber", 2);
|
|
7449
|
-
__decorateClass$
|
|
7554
|
+
__decorateClass$B([
|
|
7450
7555
|
t$3()
|
|
7451
7556
|
], SonicComponent$1.prototype, "hasSpecialChar", 2);
|
|
7452
|
-
__decorateClass$
|
|
7557
|
+
__decorateClass$B([
|
|
7453
7558
|
e$7()
|
|
7454
7559
|
], SonicComponent$1.prototype, "wording_password_helper_decription", 2);
|
|
7455
|
-
__decorateClass$
|
|
7560
|
+
__decorateClass$B([
|
|
7456
7561
|
e$7()
|
|
7457
7562
|
], SonicComponent$1.prototype, "wording_password_helper_min_length", 2);
|
|
7458
|
-
__decorateClass$
|
|
7563
|
+
__decorateClass$B([
|
|
7459
7564
|
e$7()
|
|
7460
7565
|
], SonicComponent$1.prototype, "wording_password_helper_lower_case", 2);
|
|
7461
|
-
__decorateClass$
|
|
7566
|
+
__decorateClass$B([
|
|
7462
7567
|
e$7()
|
|
7463
7568
|
], SonicComponent$1.prototype, "wording_password_helper_upper_case", 2);
|
|
7464
|
-
__decorateClass$
|
|
7569
|
+
__decorateClass$B([
|
|
7465
7570
|
e$7()
|
|
7466
7571
|
], SonicComponent$1.prototype, "wording_password_helper_number", 2);
|
|
7467
|
-
__decorateClass$
|
|
7572
|
+
__decorateClass$B([
|
|
7468
7573
|
e$7()
|
|
7469
7574
|
], SonicComponent$1.prototype, "wording_password_helper_special_char", 2);
|
|
7470
|
-
SonicComponent$1 = __decorateClass$
|
|
7471
|
-
e$8(tagName$
|
|
7575
|
+
SonicComponent$1 = __decorateClass$B([
|
|
7576
|
+
e$8(tagName$A)
|
|
7472
7577
|
], SonicComponent$1);
|
|
7473
|
-
var __defProp$
|
|
7474
|
-
var __getOwnPropDesc$
|
|
7475
|
-
var __decorateClass$
|
|
7476
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7578
|
+
var __defProp$A = Object.defineProperty;
|
|
7579
|
+
var __getOwnPropDesc$A = Object.getOwnPropertyDescriptor;
|
|
7580
|
+
var __decorateClass$A = (decorators, target, key, kind) => {
|
|
7581
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$A(target, key) : target;
|
|
7477
7582
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
7478
7583
|
if (decorator = decorators[i2])
|
|
7479
7584
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7480
7585
|
if (kind && result)
|
|
7481
|
-
__defProp$
|
|
7586
|
+
__defProp$A(target, key, result);
|
|
7482
7587
|
return result;
|
|
7483
7588
|
};
|
|
7484
|
-
const tagName$
|
|
7589
|
+
const tagName$z = "sonic-same-value-helper";
|
|
7485
7590
|
let SonicComponent = class extends Subscriber(s$3) {
|
|
7486
7591
|
constructor() {
|
|
7487
7592
|
super(...arguments);
|
|
@@ -7521,39 +7626,39 @@ let SonicComponent = class extends Subscriber(s$3) {
|
|
|
7521
7626
|
return y`<span>${this.areEqual ? o$3(this.descriptionWhenEqual) : o$3(this.descriptionWhenNotEqual)}</span>`;
|
|
7522
7627
|
}
|
|
7523
7628
|
};
|
|
7524
|
-
__decorateClass$
|
|
7629
|
+
__decorateClass$A([
|
|
7525
7630
|
e$7()
|
|
7526
7631
|
], SonicComponent.prototype, "name", 2);
|
|
7527
|
-
__decorateClass$
|
|
7632
|
+
__decorateClass$A([
|
|
7528
7633
|
e$7()
|
|
7529
7634
|
], SonicComponent.prototype, "sameValueAs", 2);
|
|
7530
|
-
__decorateClass$
|
|
7635
|
+
__decorateClass$A([
|
|
7531
7636
|
e$7()
|
|
7532
7637
|
], SonicComponent.prototype, "descriptionWhenEqual", 2);
|
|
7533
|
-
__decorateClass$
|
|
7638
|
+
__decorateClass$A([
|
|
7534
7639
|
e$7()
|
|
7535
7640
|
], SonicComponent.prototype, "descriptionWhenNotEqual", 2);
|
|
7536
|
-
__decorateClass$
|
|
7641
|
+
__decorateClass$A([
|
|
7537
7642
|
t$3()
|
|
7538
7643
|
], SonicComponent.prototype, "areEqual", 2);
|
|
7539
|
-
__decorateClass$
|
|
7644
|
+
__decorateClass$A([
|
|
7540
7645
|
t$3()
|
|
7541
7646
|
], SonicComponent.prototype, "hasNoChar", 2);
|
|
7542
|
-
SonicComponent = __decorateClass$
|
|
7543
|
-
e$8(tagName$
|
|
7647
|
+
SonicComponent = __decorateClass$A([
|
|
7648
|
+
e$8(tagName$z)
|
|
7544
7649
|
], SonicComponent);
|
|
7545
|
-
var __defProp$
|
|
7546
|
-
var __getOwnPropDesc$
|
|
7547
|
-
var __decorateClass$
|
|
7548
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7650
|
+
var __defProp$z = Object.defineProperty;
|
|
7651
|
+
var __getOwnPropDesc$z = Object.getOwnPropertyDescriptor;
|
|
7652
|
+
var __decorateClass$z = (decorators, target, key, kind) => {
|
|
7653
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$z(target, key) : target;
|
|
7549
7654
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
7550
7655
|
if (decorator = decorators[i2])
|
|
7551
7656
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7552
7657
|
if (kind && result)
|
|
7553
|
-
__defProp$
|
|
7658
|
+
__defProp$z(target, key, result);
|
|
7554
7659
|
return result;
|
|
7555
7660
|
};
|
|
7556
|
-
const tagName$
|
|
7661
|
+
const tagName$y = "sonic-checkbox";
|
|
7557
7662
|
let Checkbox = class extends Form$1(
|
|
7558
7663
|
Form(Form$2(Subscriber$1(s$3)))
|
|
7559
7664
|
) {
|
|
@@ -7588,45 +7693,45 @@ Checkbox.styles = [
|
|
|
7588
7693
|
fontSize,
|
|
7589
7694
|
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
7695
|
];
|
|
7591
|
-
__decorateClass$
|
|
7696
|
+
__decorateClass$z([
|
|
7592
7697
|
e$7({ type: Boolean, reflect: true })
|
|
7593
7698
|
], Checkbox.prototype, "touched", 2);
|
|
7594
|
-
__decorateClass$
|
|
7699
|
+
__decorateClass$z([
|
|
7595
7700
|
e$7({ type: String })
|
|
7596
7701
|
], Checkbox.prototype, "iconName", 2);
|
|
7597
|
-
__decorateClass$
|
|
7702
|
+
__decorateClass$z([
|
|
7598
7703
|
e$7({ type: String })
|
|
7599
7704
|
], Checkbox.prototype, "indeterminateIconName", 2);
|
|
7600
|
-
__decorateClass$
|
|
7705
|
+
__decorateClass$z([
|
|
7601
7706
|
e$7({ type: Boolean })
|
|
7602
7707
|
], Checkbox.prototype, "showAsIndeterminate", 2);
|
|
7603
|
-
__decorateClass$
|
|
7708
|
+
__decorateClass$z([
|
|
7604
7709
|
e$7({ type: Boolean })
|
|
7605
7710
|
], Checkbox.prototype, "hasDescription", 2);
|
|
7606
|
-
__decorateClass$
|
|
7711
|
+
__decorateClass$z([
|
|
7607
7712
|
e$7({ type: Boolean })
|
|
7608
7713
|
], Checkbox.prototype, "hasLabel", 2);
|
|
7609
|
-
__decorateClass$
|
|
7714
|
+
__decorateClass$z([
|
|
7610
7715
|
o$9()
|
|
7611
7716
|
], Checkbox.prototype, "slotLabelNodes", 2);
|
|
7612
|
-
__decorateClass$
|
|
7717
|
+
__decorateClass$z([
|
|
7613
7718
|
o$9({ slot: "description" })
|
|
7614
7719
|
], Checkbox.prototype, "slotDescriptionNodes", 2);
|
|
7615
|
-
Checkbox = __decorateClass$
|
|
7616
|
-
e$8(tagName$
|
|
7720
|
+
Checkbox = __decorateClass$z([
|
|
7721
|
+
e$8(tagName$y)
|
|
7617
7722
|
], Checkbox);
|
|
7618
|
-
var __defProp$
|
|
7619
|
-
var __getOwnPropDesc$
|
|
7620
|
-
var __decorateClass$
|
|
7621
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7723
|
+
var __defProp$y = Object.defineProperty;
|
|
7724
|
+
var __getOwnPropDesc$y = Object.getOwnPropertyDescriptor;
|
|
7725
|
+
var __decorateClass$y = (decorators, target, key, kind) => {
|
|
7726
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$y(target, key) : target;
|
|
7622
7727
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
7623
7728
|
if (decorator = decorators[i2])
|
|
7624
7729
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7625
7730
|
if (kind && result)
|
|
7626
|
-
__defProp$
|
|
7731
|
+
__defProp$y(target, key, result);
|
|
7627
7732
|
return result;
|
|
7628
7733
|
};
|
|
7629
|
-
const tagName$
|
|
7734
|
+
const tagName$x = "sonic-radio";
|
|
7630
7735
|
let Radio = class extends Checkbox {
|
|
7631
7736
|
constructor() {
|
|
7632
7737
|
super();
|
|
@@ -7641,21 +7746,21 @@ Radio.styles = [
|
|
|
7641
7746
|
Checkbox.styles,
|
|
7642
7747
|
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
7748
|
];
|
|
7644
|
-
Radio = __decorateClass$
|
|
7645
|
-
e$8(tagName$
|
|
7749
|
+
Radio = __decorateClass$y([
|
|
7750
|
+
e$8(tagName$x)
|
|
7646
7751
|
], Radio);
|
|
7647
|
-
var __defProp$
|
|
7648
|
-
var __getOwnPropDesc$
|
|
7649
|
-
var __decorateClass$
|
|
7650
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7752
|
+
var __defProp$x = Object.defineProperty;
|
|
7753
|
+
var __getOwnPropDesc$x = Object.getOwnPropertyDescriptor;
|
|
7754
|
+
var __decorateClass$x = (decorators, target, key, kind) => {
|
|
7755
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$x(target, key) : target;
|
|
7651
7756
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
7652
7757
|
if (decorator = decorators[i2])
|
|
7653
7758
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7654
7759
|
if (kind && result)
|
|
7655
|
-
__defProp$
|
|
7760
|
+
__defProp$x(target, key, result);
|
|
7656
7761
|
return result;
|
|
7657
7762
|
};
|
|
7658
|
-
const tagName$
|
|
7763
|
+
const tagName$w = "sonic-select";
|
|
7659
7764
|
let Select = class extends Form$2(Subscriber$1(s$3)) {
|
|
7660
7765
|
constructor() {
|
|
7661
7766
|
super(...arguments);
|
|
@@ -7786,75 +7891,75 @@ Select.styles = [
|
|
|
7786
7891
|
description,
|
|
7787
7892
|
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
7893
|
];
|
|
7789
|
-
__decorateClass$
|
|
7894
|
+
__decorateClass$x([
|
|
7790
7895
|
e$7({ type: String })
|
|
7791
7896
|
], Select.prototype, "valueKey", 2);
|
|
7792
|
-
__decorateClass$
|
|
7897
|
+
__decorateClass$x([
|
|
7793
7898
|
e$7({ type: String })
|
|
7794
7899
|
], Select.prototype, "wordingKey", 2);
|
|
7795
|
-
__decorateClass$
|
|
7900
|
+
__decorateClass$x([
|
|
7796
7901
|
e$7({ type: Boolean })
|
|
7797
7902
|
], Select.prototype, "multiple", 2);
|
|
7798
|
-
__decorateClass$
|
|
7903
|
+
__decorateClass$x([
|
|
7799
7904
|
e$7({ type: String, reflect: true })
|
|
7800
7905
|
], Select.prototype, "size", 2);
|
|
7801
|
-
__decorateClass$
|
|
7906
|
+
__decorateClass$x([
|
|
7802
7907
|
e$7({ type: Number })
|
|
7803
7908
|
], Select.prototype, "selectSize", 2);
|
|
7804
|
-
__decorateClass$
|
|
7909
|
+
__decorateClass$x([
|
|
7805
7910
|
e$7({ type: Array })
|
|
7806
7911
|
], Select.prototype, "options", 1);
|
|
7807
|
-
__decorateClass$
|
|
7912
|
+
__decorateClass$x([
|
|
7808
7913
|
e$7({ reflect: true })
|
|
7809
7914
|
], Select.prototype, "value", 1);
|
|
7810
|
-
__decorateClass$
|
|
7915
|
+
__decorateClass$x([
|
|
7811
7916
|
e$7({ type: Boolean })
|
|
7812
7917
|
], Select.prototype, "forceAutoFill", 2);
|
|
7813
|
-
__decorateClass$
|
|
7918
|
+
__decorateClass$x([
|
|
7814
7919
|
e$7()
|
|
7815
7920
|
], Select.prototype, "description", 1);
|
|
7816
|
-
__decorateClass$
|
|
7921
|
+
__decorateClass$x([
|
|
7817
7922
|
e$7()
|
|
7818
7923
|
], Select.prototype, "label", 1);
|
|
7819
|
-
__decorateClass$
|
|
7924
|
+
__decorateClass$x([
|
|
7820
7925
|
o$9({ slot: "label" })
|
|
7821
7926
|
], Select.prototype, "slotLabelNodes", 2);
|
|
7822
|
-
__decorateClass$
|
|
7927
|
+
__decorateClass$x([
|
|
7823
7928
|
o$9({ slot: "description" })
|
|
7824
7929
|
], Select.prototype, "slotDescriptionNodes", 2);
|
|
7825
|
-
__decorateClass$
|
|
7930
|
+
__decorateClass$x([
|
|
7826
7931
|
o$9({ slot: "suffix" })
|
|
7827
7932
|
], Select.prototype, "slotSuffixNodes", 2);
|
|
7828
|
-
__decorateClass$
|
|
7933
|
+
__decorateClass$x([
|
|
7829
7934
|
o$9({ slot: "prefix" })
|
|
7830
7935
|
], Select.prototype, "slotPrefixNodes", 2);
|
|
7831
|
-
__decorateClass$
|
|
7936
|
+
__decorateClass$x([
|
|
7832
7937
|
t$3()
|
|
7833
7938
|
], Select.prototype, "hasDescription", 2);
|
|
7834
|
-
__decorateClass$
|
|
7939
|
+
__decorateClass$x([
|
|
7835
7940
|
t$3()
|
|
7836
7941
|
], Select.prototype, "hasLabel", 2);
|
|
7837
|
-
__decorateClass$
|
|
7942
|
+
__decorateClass$x([
|
|
7838
7943
|
t$3()
|
|
7839
7944
|
], Select.prototype, "hasSuffix", 2);
|
|
7840
|
-
__decorateClass$
|
|
7945
|
+
__decorateClass$x([
|
|
7841
7946
|
t$3()
|
|
7842
7947
|
], Select.prototype, "hasPrefix", 2);
|
|
7843
|
-
Select = __decorateClass$
|
|
7844
|
-
e$8(tagName$
|
|
7948
|
+
Select = __decorateClass$x([
|
|
7949
|
+
e$8(tagName$w)
|
|
7845
7950
|
], Select);
|
|
7846
|
-
var __defProp$
|
|
7847
|
-
var __getOwnPropDesc$
|
|
7848
|
-
var __decorateClass$
|
|
7849
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7951
|
+
var __defProp$w = Object.defineProperty;
|
|
7952
|
+
var __getOwnPropDesc$w = Object.getOwnPropertyDescriptor;
|
|
7953
|
+
var __decorateClass$w = (decorators, target, key, kind) => {
|
|
7954
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$w(target, key) : target;
|
|
7850
7955
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
7851
7956
|
if (decorator = decorators[i2])
|
|
7852
7957
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7853
7958
|
if (kind && result)
|
|
7854
|
-
__defProp$
|
|
7959
|
+
__defProp$w(target, key, result);
|
|
7855
7960
|
return result;
|
|
7856
7961
|
};
|
|
7857
|
-
const tagName$
|
|
7962
|
+
const tagName$v = "sonic-textarea";
|
|
7858
7963
|
let Textarea = class extends Form(Form$2(Subscriber$1(s$3))) {
|
|
7859
7964
|
constructor() {
|
|
7860
7965
|
super(...arguments);
|
|
@@ -7900,54 +8005,54 @@ Textarea.styles = [
|
|
|
7900
8005
|
customScroll,
|
|
7901
8006
|
i$4`textarea{font-size:inherit}`
|
|
7902
8007
|
];
|
|
7903
|
-
__decorateClass$
|
|
8008
|
+
__decorateClass$w([
|
|
7904
8009
|
e$7({ type: String })
|
|
7905
8010
|
], Textarea.prototype, "size", 2);
|
|
7906
|
-
__decorateClass$
|
|
8011
|
+
__decorateClass$w([
|
|
7907
8012
|
e$7({ type: Number })
|
|
7908
8013
|
], Textarea.prototype, "rows", 2);
|
|
7909
|
-
__decorateClass$
|
|
8014
|
+
__decorateClass$w([
|
|
7910
8015
|
e$7({ type: Number })
|
|
7911
8016
|
], Textarea.prototype, "cols", 2);
|
|
7912
|
-
__decorateClass$
|
|
8017
|
+
__decorateClass$w([
|
|
7913
8018
|
e$7({ type: Number })
|
|
7914
8019
|
], Textarea.prototype, "maxlength", 2);
|
|
7915
|
-
__decorateClass$
|
|
8020
|
+
__decorateClass$w([
|
|
7916
8021
|
e$7({ type: Number })
|
|
7917
8022
|
], Textarea.prototype, "minlength", 2);
|
|
7918
|
-
__decorateClass$
|
|
8023
|
+
__decorateClass$w([
|
|
7919
8024
|
e$7({ type: String })
|
|
7920
8025
|
], Textarea.prototype, "wrap", 2);
|
|
7921
|
-
__decorateClass$
|
|
8026
|
+
__decorateClass$w([
|
|
7922
8027
|
e$7({ type: Boolean })
|
|
7923
8028
|
], Textarea.prototype, "readonly", 2);
|
|
7924
|
-
__decorateClass$
|
|
8029
|
+
__decorateClass$w([
|
|
7925
8030
|
e$7({ type: String })
|
|
7926
8031
|
], Textarea.prototype, "placeholder", 2);
|
|
7927
|
-
__decorateClass$
|
|
8032
|
+
__decorateClass$w([
|
|
7928
8033
|
o$9({ slot: "label" })
|
|
7929
8034
|
], Textarea.prototype, "slotLabelNodes", 2);
|
|
7930
|
-
__decorateClass$
|
|
8035
|
+
__decorateClass$w([
|
|
7931
8036
|
o$9({ slot: "description" })
|
|
7932
8037
|
], Textarea.prototype, "slotDescriptionNodes", 2);
|
|
7933
|
-
__decorateClass$
|
|
8038
|
+
__decorateClass$w([
|
|
7934
8039
|
t$3()
|
|
7935
8040
|
], Textarea.prototype, "hasDescription", 2);
|
|
7936
|
-
__decorateClass$
|
|
8041
|
+
__decorateClass$w([
|
|
7937
8042
|
t$3()
|
|
7938
8043
|
], Textarea.prototype, "hasLabel", 2);
|
|
7939
|
-
Textarea = __decorateClass$
|
|
7940
|
-
e$8(tagName$
|
|
8044
|
+
Textarea = __decorateClass$w([
|
|
8045
|
+
e$8(tagName$v)
|
|
7941
8046
|
], Textarea);
|
|
7942
|
-
var __defProp$
|
|
7943
|
-
var __getOwnPropDesc$
|
|
7944
|
-
var __decorateClass$
|
|
7945
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
8047
|
+
var __defProp$v = Object.defineProperty;
|
|
8048
|
+
var __getOwnPropDesc$v = Object.getOwnPropertyDescriptor;
|
|
8049
|
+
var __decorateClass$v = (decorators, target, key, kind) => {
|
|
8050
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$v(target, key) : target;
|
|
7946
8051
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
7947
8052
|
if (decorator = decorators[i2])
|
|
7948
8053
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7949
8054
|
if (kind && result)
|
|
7950
|
-
__defProp$
|
|
8055
|
+
__defProp$v(target, key, result);
|
|
7951
8056
|
return result;
|
|
7952
8057
|
};
|
|
7953
8058
|
let LegendDescription = class extends s$3 {
|
|
@@ -7958,21 +8063,21 @@ let LegendDescription = class extends s$3 {
|
|
|
7958
8063
|
LegendDescription.styles = [
|
|
7959
8064
|
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
8065
|
];
|
|
7961
|
-
LegendDescription = __decorateClass$
|
|
8066
|
+
LegendDescription = __decorateClass$v([
|
|
7962
8067
|
e$8("sonic-legend-description")
|
|
7963
8068
|
], LegendDescription);
|
|
7964
|
-
var __defProp$
|
|
7965
|
-
var __getOwnPropDesc$
|
|
7966
|
-
var __decorateClass$
|
|
7967
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
8069
|
+
var __defProp$u = Object.defineProperty;
|
|
8070
|
+
var __getOwnPropDesc$u = Object.getOwnPropertyDescriptor;
|
|
8071
|
+
var __decorateClass$u = (decorators, target, key, kind) => {
|
|
8072
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$u(target, key) : target;
|
|
7968
8073
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
7969
8074
|
if (decorator = decorators[i2])
|
|
7970
8075
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7971
8076
|
if (kind && result)
|
|
7972
|
-
__defProp$
|
|
8077
|
+
__defProp$u(target, key, result);
|
|
7973
8078
|
return result;
|
|
7974
8079
|
};
|
|
7975
|
-
const tagName$
|
|
8080
|
+
const tagName$u = "sonic-legend";
|
|
7976
8081
|
let Legend = class extends s$3 {
|
|
7977
8082
|
constructor() {
|
|
7978
8083
|
super(...arguments);
|
|
@@ -8003,39 +8108,39 @@ let Legend = class extends s$3 {
|
|
|
8003
8108
|
Legend.styles = [
|
|
8004
8109
|
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
8110
|
];
|
|
8006
|
-
__decorateClass$
|
|
8111
|
+
__decorateClass$u([
|
|
8007
8112
|
e$7({ type: Boolean })
|
|
8008
8113
|
], Legend.prototype, "forceAutoFill", 2);
|
|
8009
|
-
__decorateClass$
|
|
8114
|
+
__decorateClass$u([
|
|
8010
8115
|
e$7()
|
|
8011
8116
|
], Legend.prototype, "description", 1);
|
|
8012
|
-
__decorateClass$
|
|
8117
|
+
__decorateClass$u([
|
|
8013
8118
|
e$7()
|
|
8014
8119
|
], Legend.prototype, "label", 1);
|
|
8015
|
-
__decorateClass$
|
|
8120
|
+
__decorateClass$u([
|
|
8016
8121
|
e$7({ type: String })
|
|
8017
8122
|
], Legend.prototype, "iconName", 2);
|
|
8018
|
-
__decorateClass$
|
|
8123
|
+
__decorateClass$u([
|
|
8019
8124
|
e$7({ type: String })
|
|
8020
8125
|
], Legend.prototype, "iconLibrary", 2);
|
|
8021
|
-
__decorateClass$
|
|
8126
|
+
__decorateClass$u([
|
|
8022
8127
|
e$7({ type: String })
|
|
8023
8128
|
], Legend.prototype, "iconPrefix", 2);
|
|
8024
|
-
Legend = __decorateClass$
|
|
8025
|
-
e$8(tagName$
|
|
8129
|
+
Legend = __decorateClass$u([
|
|
8130
|
+
e$8(tagName$u)
|
|
8026
8131
|
], Legend);
|
|
8027
|
-
var __defProp$
|
|
8028
|
-
var __getOwnPropDesc$
|
|
8029
|
-
var __decorateClass$
|
|
8030
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
8132
|
+
var __defProp$t = Object.defineProperty;
|
|
8133
|
+
var __getOwnPropDesc$t = Object.getOwnPropertyDescriptor;
|
|
8134
|
+
var __decorateClass$t = (decorators, target, key, kind) => {
|
|
8135
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$t(target, key) : target;
|
|
8031
8136
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
8032
8137
|
if (decorator = decorators[i2])
|
|
8033
8138
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8034
8139
|
if (kind && result)
|
|
8035
|
-
__defProp$
|
|
8140
|
+
__defProp$t(target, key, result);
|
|
8036
8141
|
return result;
|
|
8037
8142
|
};
|
|
8038
|
-
const tagName$
|
|
8143
|
+
const tagName$t = "sonic-fieldset";
|
|
8039
8144
|
let Fieldset = class extends Subscriber$1(s$3) {
|
|
8040
8145
|
constructor() {
|
|
8041
8146
|
super(...arguments);
|
|
@@ -8049,75 +8154,45 @@ let Fieldset = class extends Subscriber$1(s$3) {
|
|
|
8049
8154
|
Fieldset.styles = [
|
|
8050
8155
|
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
8156
|
];
|
|
8052
|
-
__decorateClass$
|
|
8157
|
+
__decorateClass$t([
|
|
8053
8158
|
e$7({ type: Boolean, reflect: true })
|
|
8054
8159
|
], Fieldset.prototype, "disabled", 2);
|
|
8055
|
-
__decorateClass$
|
|
8160
|
+
__decorateClass$t([
|
|
8056
8161
|
e$7({ type: String })
|
|
8057
8162
|
], Fieldset.prototype, "form", 2);
|
|
8058
|
-
__decorateClass$
|
|
8163
|
+
__decorateClass$t([
|
|
8059
8164
|
e$7({ type: String })
|
|
8060
8165
|
], Fieldset.prototype, "label", 2);
|
|
8061
|
-
__decorateClass$
|
|
8166
|
+
__decorateClass$t([
|
|
8062
8167
|
e$7({ type: String })
|
|
8063
8168
|
], Fieldset.prototype, "description", 2);
|
|
8064
|
-
__decorateClass$
|
|
8169
|
+
__decorateClass$t([
|
|
8065
8170
|
e$7({ type: String })
|
|
8066
8171
|
], Fieldset.prototype, "iconName", 2);
|
|
8067
|
-
__decorateClass$
|
|
8172
|
+
__decorateClass$t([
|
|
8068
8173
|
e$7({ type: String })
|
|
8069
8174
|
], Fieldset.prototype, "iconLibrary", 2);
|
|
8070
|
-
__decorateClass$
|
|
8175
|
+
__decorateClass$t([
|
|
8071
8176
|
e$7({ type: String })
|
|
8072
8177
|
], Fieldset.prototype, "iconPrefix", 2);
|
|
8073
|
-
__decorateClass$
|
|
8178
|
+
__decorateClass$t([
|
|
8074
8179
|
e$7({ type: String, reflect: true })
|
|
8075
8180
|
], Fieldset.prototype, "variant", 2);
|
|
8076
|
-
Fieldset = __decorateClass$
|
|
8077
|
-
e$8(tagName$
|
|
8181
|
+
Fieldset = __decorateClass$t([
|
|
8182
|
+
e$8(tagName$t)
|
|
8078
8183
|
], Fieldset);
|
|
8079
|
-
|
|
8080
|
-
|
|
8081
|
-
|
|
8082
|
-
|
|
8083
|
-
}), s2.addController(this)) : console.warn("ResizeController error: browser does not support ResizeObserver.");
|
|
8084
|
-
}
|
|
8085
|
-
handleChanges(s2) {
|
|
8086
|
-
var t2;
|
|
8087
|
-
this.value = null === (t2 = this.callback) || void 0 === t2 ? void 0 : t2.call(this, s2, this.u);
|
|
8088
|
-
}
|
|
8089
|
-
hostConnected() {
|
|
8090
|
-
for (const s2 of this.t)
|
|
8091
|
-
this.observe(s2);
|
|
8092
|
-
}
|
|
8093
|
-
hostDisconnected() {
|
|
8094
|
-
this.disconnect();
|
|
8095
|
-
}
|
|
8096
|
-
async hostUpdated() {
|
|
8097
|
-
!this.o && this.i && this.handleChanges([]), this.i = false;
|
|
8098
|
-
}
|
|
8099
|
-
observe(s2) {
|
|
8100
|
-
this.t.add(s2), this.u.observe(s2, this.l), this.i = true, this.h.requestUpdate();
|
|
8101
|
-
}
|
|
8102
|
-
unobserve(s2) {
|
|
8103
|
-
this.t.delete(s2), this.u.unobserve(s2);
|
|
8104
|
-
}
|
|
8105
|
-
disconnect() {
|
|
8106
|
-
this.u.disconnect();
|
|
8107
|
-
}
|
|
8108
|
-
}
|
|
8109
|
-
var __defProp$t = Object.defineProperty;
|
|
8110
|
-
var __getOwnPropDesc$t = Object.getOwnPropertyDescriptor;
|
|
8111
|
-
var __decorateClass$t = (decorators, target, key, kind) => {
|
|
8112
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$t(target, key) : target;
|
|
8184
|
+
var __defProp$s = Object.defineProperty;
|
|
8185
|
+
var __getOwnPropDesc$s = Object.getOwnPropertyDescriptor;
|
|
8186
|
+
var __decorateClass$s = (decorators, target, key, kind) => {
|
|
8187
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$s(target, key) : target;
|
|
8113
8188
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
8114
8189
|
if (decorator = decorators[i2])
|
|
8115
8190
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8116
8191
|
if (kind && result)
|
|
8117
|
-
__defProp$
|
|
8192
|
+
__defProp$s(target, key, result);
|
|
8118
8193
|
return result;
|
|
8119
8194
|
};
|
|
8120
|
-
const tagName$
|
|
8195
|
+
const tagName$s = "sonic-form-layout";
|
|
8121
8196
|
let FormLayout = class extends Subscriber$1(s$3) {
|
|
8122
8197
|
constructor() {
|
|
8123
8198
|
super(...arguments);
|
|
@@ -8139,29 +8214,29 @@ let FormLayout = class extends Subscriber$1(s$3) {
|
|
|
8139
8214
|
}
|
|
8140
8215
|
};
|
|
8141
8216
|
FormLayout.styles = [
|
|
8142
|
-
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}`
|
|
8217
|
+
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(sonic-submit){display:contents}::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
8218
|
];
|
|
8144
|
-
__decorateClass$
|
|
8219
|
+
__decorateClass$s([
|
|
8145
8220
|
l$6({ flatten: true })
|
|
8146
8221
|
], FormLayout.prototype, "slottedElements", 2);
|
|
8147
|
-
__decorateClass$
|
|
8222
|
+
__decorateClass$s([
|
|
8148
8223
|
e$7({ type: Boolean })
|
|
8149
8224
|
], FormLayout.prototype, "oneFormElement", 2);
|
|
8150
|
-
FormLayout = __decorateClass$
|
|
8151
|
-
e$8(tagName$
|
|
8225
|
+
FormLayout = __decorateClass$s([
|
|
8226
|
+
e$8(tagName$s)
|
|
8152
8227
|
], FormLayout);
|
|
8153
|
-
var __defProp$
|
|
8154
|
-
var __getOwnPropDesc$
|
|
8155
|
-
var __decorateClass$
|
|
8156
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
8228
|
+
var __defProp$r = Object.defineProperty;
|
|
8229
|
+
var __getOwnPropDesc$r = Object.getOwnPropertyDescriptor;
|
|
8230
|
+
var __decorateClass$r = (decorators, target, key, kind) => {
|
|
8231
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$r(target, key) : target;
|
|
8157
8232
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
8158
8233
|
if (decorator = decorators[i2])
|
|
8159
8234
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8160
8235
|
if (kind && result)
|
|
8161
|
-
__defProp$
|
|
8236
|
+
__defProp$r(target, key, result);
|
|
8162
8237
|
return result;
|
|
8163
8238
|
};
|
|
8164
|
-
const tagName$
|
|
8239
|
+
const tagName$r = "sonic-form-actions";
|
|
8165
8240
|
let FormActions = class extends s$3 {
|
|
8166
8241
|
constructor() {
|
|
8167
8242
|
super(...arguments);
|
|
@@ -8179,27 +8254,27 @@ let FormActions = class extends s$3 {
|
|
|
8179
8254
|
FormActions.styles = [
|
|
8180
8255
|
i$4`:host{display:block}slot{display:flex;flex-wrap:wrap;gap:.3rem}`
|
|
8181
8256
|
];
|
|
8182
|
-
__decorateClass$
|
|
8257
|
+
__decorateClass$r([
|
|
8183
8258
|
e$7({ type: String })
|
|
8184
8259
|
], FormActions.prototype, "direction", 2);
|
|
8185
|
-
__decorateClass$
|
|
8260
|
+
__decorateClass$r([
|
|
8186
8261
|
e$7({ type: String })
|
|
8187
8262
|
], FormActions.prototype, "justify", 2);
|
|
8188
|
-
FormActions = __decorateClass$
|
|
8189
|
-
e$8(tagName$
|
|
8263
|
+
FormActions = __decorateClass$r([
|
|
8264
|
+
e$8(tagName$r)
|
|
8190
8265
|
], FormActions);
|
|
8191
|
-
var __defProp$
|
|
8192
|
-
var __getOwnPropDesc$
|
|
8193
|
-
var __decorateClass$
|
|
8194
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
8266
|
+
var __defProp$q = Object.defineProperty;
|
|
8267
|
+
var __getOwnPropDesc$q = Object.getOwnPropertyDescriptor;
|
|
8268
|
+
var __decorateClass$q = (decorators, target, key, kind) => {
|
|
8269
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$q(target, key) : target;
|
|
8195
8270
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
8196
8271
|
if (decorator = decorators[i2])
|
|
8197
8272
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8198
8273
|
if (kind && result)
|
|
8199
|
-
__defProp$
|
|
8274
|
+
__defProp$q(target, key, result);
|
|
8200
8275
|
return result;
|
|
8201
8276
|
};
|
|
8202
|
-
const tagName$
|
|
8277
|
+
const tagName$q = "sonic-group";
|
|
8203
8278
|
let Group = class extends s$3 {
|
|
8204
8279
|
constructor() {
|
|
8205
8280
|
super(...arguments);
|
|
@@ -8254,42 +8329,42 @@ Group.styles = [
|
|
|
8254
8329
|
description,
|
|
8255
8330
|
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
8331
|
];
|
|
8257
|
-
__decorateClass$
|
|
8332
|
+
__decorateClass$q([
|
|
8258
8333
|
e$7({ type: String })
|
|
8259
8334
|
], Group.prototype, "alignItems", 2);
|
|
8260
|
-
__decorateClass$
|
|
8335
|
+
__decorateClass$q([
|
|
8261
8336
|
e$7({ type: String })
|
|
8262
8337
|
], Group.prototype, "label", 2);
|
|
8263
|
-
__decorateClass$
|
|
8338
|
+
__decorateClass$q([
|
|
8264
8339
|
e$7({ type: String })
|
|
8265
8340
|
], Group.prototype, "description", 2);
|
|
8266
|
-
__decorateClass$
|
|
8341
|
+
__decorateClass$q([
|
|
8267
8342
|
o$9({ slot: "label" })
|
|
8268
8343
|
], Group.prototype, "slotLabelNodes", 2);
|
|
8269
|
-
__decorateClass$
|
|
8344
|
+
__decorateClass$q([
|
|
8270
8345
|
o$9({ slot: "description" })
|
|
8271
8346
|
], Group.prototype, "slotDescriptionNodes", 2);
|
|
8272
|
-
__decorateClass$
|
|
8347
|
+
__decorateClass$q([
|
|
8273
8348
|
t$3()
|
|
8274
8349
|
], Group.prototype, "hasDescription", 2);
|
|
8275
|
-
__decorateClass$
|
|
8350
|
+
__decorateClass$q([
|
|
8276
8351
|
t$3()
|
|
8277
8352
|
], Group.prototype, "hasLabel", 2);
|
|
8278
|
-
Group = __decorateClass$
|
|
8279
|
-
e$8(tagName$
|
|
8353
|
+
Group = __decorateClass$q([
|
|
8354
|
+
e$8(tagName$q)
|
|
8280
8355
|
], Group);
|
|
8281
|
-
var __defProp$
|
|
8282
|
-
var __getOwnPropDesc$
|
|
8283
|
-
var __decorateClass$
|
|
8284
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
8356
|
+
var __defProp$p = Object.defineProperty;
|
|
8357
|
+
var __getOwnPropDesc$p = Object.getOwnPropertyDescriptor;
|
|
8358
|
+
var __decorateClass$p = (decorators, target, key, kind) => {
|
|
8359
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$p(target, key) : target;
|
|
8285
8360
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
8286
8361
|
if (decorator = decorators[i2])
|
|
8287
8362
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8288
8363
|
if (kind && result)
|
|
8289
|
-
__defProp$
|
|
8364
|
+
__defProp$p(target, key, result);
|
|
8290
8365
|
return result;
|
|
8291
8366
|
};
|
|
8292
|
-
const tagName$
|
|
8367
|
+
const tagName$p = "sonic-image";
|
|
8293
8368
|
let Image = class extends s$3 {
|
|
8294
8369
|
constructor() {
|
|
8295
8370
|
super(...arguments);
|
|
@@ -8302,6 +8377,17 @@ let Image = class extends s$3 {
|
|
|
8302
8377
|
this.imageRendering = "auto";
|
|
8303
8378
|
this.cover = false;
|
|
8304
8379
|
}
|
|
8380
|
+
firstUpdated() {
|
|
8381
|
+
var _a2;
|
|
8382
|
+
if (this.transition) {
|
|
8383
|
+
const img = (_a2 = this.shadowRoot) == null ? void 0 : _a2.querySelector("img");
|
|
8384
|
+
if (!img)
|
|
8385
|
+
return;
|
|
8386
|
+
img.onload = function() {
|
|
8387
|
+
img.classList.add("loaded");
|
|
8388
|
+
};
|
|
8389
|
+
}
|
|
8390
|
+
}
|
|
8305
8391
|
render() {
|
|
8306
8392
|
const imgStyles = {
|
|
8307
8393
|
aspectRatio: this.cover ? "auto" : this.ratio,
|
|
@@ -8312,148 +8398,38 @@ let Image = class extends s$3 {
|
|
|
8312
8398
|
}
|
|
8313
8399
|
};
|
|
8314
8400
|
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}`
|
|
8401
|
+
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
8402
|
];
|
|
8317
|
-
__decorateClass$
|
|
8403
|
+
__decorateClass$p([
|
|
8318
8404
|
e$7({ type: String })
|
|
8319
8405
|
], Image.prototype, "rounded", 2);
|
|
8320
|
-
__decorateClass$
|
|
8406
|
+
__decorateClass$p([
|
|
8321
8407
|
e$7({ type: String })
|
|
8322
8408
|
], Image.prototype, "src", 2);
|
|
8323
|
-
__decorateClass$
|
|
8409
|
+
__decorateClass$p([
|
|
8324
8410
|
e$7({ type: String })
|
|
8325
8411
|
], Image.prototype, "alt", 2);
|
|
8326
|
-
__decorateClass$
|
|
8412
|
+
__decorateClass$p([
|
|
8327
8413
|
e$7({ type: String })
|
|
8328
8414
|
], Image.prototype, "loading", 2);
|
|
8329
|
-
__decorateClass$
|
|
8415
|
+
__decorateClass$p([
|
|
8416
|
+
e$7({ type: String, reflect: true })
|
|
8417
|
+
], Image.prototype, "transition", 2);
|
|
8418
|
+
__decorateClass$p([
|
|
8330
8419
|
e$7({ type: String })
|
|
8331
8420
|
], Image.prototype, "ratio", 2);
|
|
8332
|
-
__decorateClass$
|
|
8421
|
+
__decorateClass$p([
|
|
8333
8422
|
e$7({ type: String })
|
|
8334
8423
|
], Image.prototype, "objectPosition", 2);
|
|
8335
|
-
__decorateClass$
|
|
8424
|
+
__decorateClass$p([
|
|
8336
8425
|
e$7({ type: String })
|
|
8337
8426
|
], Image.prototype, "imageRendering", 2);
|
|
8338
|
-
__decorateClass$
|
|
8427
|
+
__decorateClass$p([
|
|
8339
8428
|
e$7({ type: Boolean, reflect: true })
|
|
8340
8429
|
], 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([
|
|
8430
|
+
Image = __decorateClass$p([
|
|
8455
8431
|
e$8(tagName$p)
|
|
8456
|
-
],
|
|
8432
|
+
], Image);
|
|
8457
8433
|
var __defProp$o = Object.defineProperty;
|
|
8458
8434
|
var __getOwnPropDesc$o = Object.getOwnPropertyDescriptor;
|
|
8459
8435
|
var __decorateClass$o = (decorators, target, key, kind) => {
|
|
@@ -8823,6 +8799,10 @@ let Modal = class extends Subscriber$1(s$3) {
|
|
|
8823
8799
|
modal.maxWidth = options == null ? void 0 : options.maxWidth;
|
|
8824
8800
|
if (options.width)
|
|
8825
8801
|
modal.width = options == null ? void 0 : options.width;
|
|
8802
|
+
if (options.maxHeight)
|
|
8803
|
+
modal.maxHeight = options == null ? void 0 : options.maxHeight;
|
|
8804
|
+
if (options.height)
|
|
8805
|
+
modal.height = options == null ? void 0 : options.height;
|
|
8826
8806
|
if (options.paddingX)
|
|
8827
8807
|
modal.style.setProperty("--sc-modal-px", options == null ? void 0 : options.paddingX);
|
|
8828
8808
|
if (options.paddingY)
|
|
@@ -8938,7 +8918,7 @@ let Modal = class extends Subscriber$1(s$3) {
|
|
|
8938
8918
|
};
|
|
8939
8919
|
Modal.styles = [
|
|
8940
8920
|
customScroll,
|
|
8941
|
-
i$4`:host{--sc-modal-py:2.5rem;--sc-modal-px:1.5rem;--sc-modal-max-w:min(100vw, 64ch);--sc-modal-max-h:
|
|
8921
|
+
i$4`:host{--sc-modal-py:2.5rem;--sc-modal-px:1.5rem;--sc-modal-max-w:min(100vw, 64ch);--sc-modal-max-h:85vh;--sc-modal-rounded:var(--sc-rounded-lg);--sc-modal-z-index:990}*{box-sizing:border-box}.modal-wrapper{position:fixed;bottom:0;left:0;width:100%;z-index:calc(var(--sc-modal-z-index) + 1);align-items:center;justify-content:center;flex-direction:column;display:flex;pointer-events:none}.modal-content{display:flex;flex-direction:column;min-height:10rem;line-height:1.25}.modal{background:var(--sc-base);color:var(--sc-base-content);width:100%;box-shadow:var(--sc-shadow-lg);border-radius:var(--sc-modal-rounded) var(--sc-modal-rounded) 0 0;pointer-events:auto;transform:translateZ(0)}.overlay{background:var(--sc-modal-overlay-bg,var(--sc-base-200));left:0;top:0;right:0;bottom:0;z-index:var(--sc-modal-z-index);opacity:.8;position:fixed}::slotted(sonic-modal-title){margin-bottom:1.25rem}::slotted(sonic-modal-subtitle){margin-top:-.9rem;margin-bottom:1.25rem}@media (max-width:767.5px){.modal,.modal-wrapper{max-width:none!important;width:100%!important;border-radius:var(--sc-modal-rounded) var(--sc-modal-rounded) 0 0!important}}@media (min-width:768px){.modal-wrapper{top:50%;left:50%;bottom:auto;right:auto;transform:translateX(-50%) translateY(-50%)}.modal{top:50%;bottom:auto;right:auto;border-radius:var(--sc-modal-rounded)}}:host([align=left]) .modal-content{text-align:left;align-items:flex-start}:host([align=center]) .modal-content{text-align:center;align-items:center}:host([align=right]) .modal-content{text-align:right;align-items:flex-end}:host([rounded=none]) modal{--sc-img-radius:0!important}`
|
|
8942
8922
|
];
|
|
8943
8923
|
__decorateClass$i([
|
|
8944
8924
|
e$7({ type: Boolean })
|