@supersoniks/concorde 1.1.40 → 1.1.42
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/concorde-core.bundle.js +12 -12
- package/concorde-core.es.js +1518 -1002
- package/core/components/functional/sdui/SDUIDescriptorTransformer.d.ts +59 -0
- package/core/components/functional/sdui/SDUIDescriptorTransformer.js +219 -0
- package/core/components/functional/sdui/sdui.d.ts +81 -21
- package/core/components/functional/sdui/sdui.js +190 -78
- package/core/components/functional/sdui/types.d.ts +35 -0
- package/core/components/functional/sdui/types.js +1 -0
- package/core/components/ui/alert/alert.d.ts +2 -2
- package/core/components/ui/alert/alert.js +12 -11
- package/core/components/ui/divider/divider.js +1 -1
- package/core/components/ui/form/checkbox/checkbox.js +2 -1
- package/core/components/ui/form/fieldset/legend.js +1 -1
- package/core/components/ui/form/input/input.d.ts +4 -0
- package/core/components/ui/form/input/input.js +20 -3
- package/core/components/ui/form/input/password-helper.d.ts +25 -0
- package/core/components/ui/form/input/password-helper.js +118 -0
- package/core/components/ui/form/input/same-value-helper.d.ts +16 -0
- package/core/components/ui/form/input/same-value-helper.js +76 -0
- package/core/components/ui/form/input-autocomplete/input-autocomplete.d.ts +35 -0
- package/core/components/ui/form/input-autocomplete/input-autocomplete.js +137 -0
- package/core/components/ui/form/select/select.js +5 -1
- package/core/components/ui/form/textarea/textarea.js +5 -1
- package/core/components/ui/pop/pop.d.ts +4 -4
- package/core/components/ui/pop/pop.js +43 -42
- package/core/components/ui/ui.d.ts +3 -0
- package/core/components/ui/ui.js +3 -0
- package/core/mixins/Fetcher.js +6 -2
- package/core/utils/HTML.d.ts +8 -0
- package/core/utils/HTML.js +41 -0
- package/package.json +11 -1
package/concorde-core.es.js
CHANGED
|
@@ -999,6 +999,28 @@ class HTML$1 {
|
|
|
999
999
|
}
|
|
1000
1000
|
return node.getAttribute(attributeName);
|
|
1001
1001
|
}
|
|
1002
|
+
static async loadJS(src) {
|
|
1003
|
+
const p2 = new Promise(async (resolve) => {
|
|
1004
|
+
let script = document.createElement("script");
|
|
1005
|
+
script.src = src;
|
|
1006
|
+
script.onload = () => resolve(true);
|
|
1007
|
+
script.onerror = () => resolve(true);
|
|
1008
|
+
document.head.appendChild(script);
|
|
1009
|
+
});
|
|
1010
|
+
return p2;
|
|
1011
|
+
}
|
|
1012
|
+
static async loadCSS(src) {
|
|
1013
|
+
const p2 = new Promise(async (resolve) => {
|
|
1014
|
+
var cssnode = document.createElement("link");
|
|
1015
|
+
cssnode.type = "text/css";
|
|
1016
|
+
cssnode.rel = "stylesheet";
|
|
1017
|
+
cssnode.href = src;
|
|
1018
|
+
cssnode.onload = () => resolve(true);
|
|
1019
|
+
cssnode.onerror = () => resolve(true);
|
|
1020
|
+
document.head.appendChild(cssnode);
|
|
1021
|
+
});
|
|
1022
|
+
return p2;
|
|
1023
|
+
}
|
|
1002
1024
|
}
|
|
1003
1025
|
class Objects$1 {
|
|
1004
1026
|
static shallowEqual(object1, object2) {
|
|
@@ -1360,15 +1382,15 @@ DataBindObserver$1.observe(document.documentElement);
|
|
|
1360
1382
|
let win$5 = window;
|
|
1361
1383
|
if (!win$5.SonicDataBindObserver)
|
|
1362
1384
|
win$5.SonicDataBindObserver = DataBindObserver$1;
|
|
1363
|
-
var __defProp$
|
|
1364
|
-
var __getOwnPropDesc$
|
|
1365
|
-
var __decorateClass$
|
|
1366
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
1385
|
+
var __defProp$16 = Object.defineProperty;
|
|
1386
|
+
var __getOwnPropDesc$16 = Object.getOwnPropertyDescriptor;
|
|
1387
|
+
var __decorateClass$16 = (decorators, target, key, kind) => {
|
|
1388
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$16(target, key) : target;
|
|
1367
1389
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
1368
1390
|
if (decorator = decorators[i2])
|
|
1369
1391
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
1370
1392
|
if (kind && result)
|
|
1371
|
-
__defProp$
|
|
1393
|
+
__defProp$16(target, key, result);
|
|
1372
1394
|
return result;
|
|
1373
1395
|
};
|
|
1374
1396
|
let keepDebugOnMouseOut = false;
|
|
@@ -1624,28 +1646,28 @@ const Subscriber$1 = (superClass) => {
|
|
|
1624
1646
|
};
|
|
1625
1647
|
let SubscriberElement = _SubscriberElement;
|
|
1626
1648
|
SubscriberElement.instanceCounter = 0;
|
|
1627
|
-
__decorateClass$
|
|
1649
|
+
__decorateClass$16([
|
|
1628
1650
|
e$5({ type: Boolean })
|
|
1629
1651
|
], SubscriberElement.prototype, "displayContents", 2);
|
|
1630
|
-
__decorateClass$
|
|
1652
|
+
__decorateClass$16([
|
|
1631
1653
|
e$5({ type: Boolean })
|
|
1632
1654
|
], SubscriberElement.prototype, "noAutoFill", 2);
|
|
1633
|
-
__decorateClass$
|
|
1655
|
+
__decorateClass$16([
|
|
1634
1656
|
e$5({ type: Boolean })
|
|
1635
1657
|
], SubscriberElement.prototype, "forceAutoFill", 2);
|
|
1636
|
-
__decorateClass$
|
|
1658
|
+
__decorateClass$16([
|
|
1637
1659
|
e$5({ type: Object })
|
|
1638
1660
|
], SubscriberElement.prototype, "propertyMap", 2);
|
|
1639
|
-
__decorateClass$
|
|
1661
|
+
__decorateClass$16([
|
|
1640
1662
|
e$5({ type: String, attribute: "data-title" })
|
|
1641
1663
|
], SubscriberElement.prototype, "title", 2);
|
|
1642
|
-
__decorateClass$
|
|
1664
|
+
__decorateClass$16([
|
|
1643
1665
|
e$5({ reflect: true })
|
|
1644
1666
|
], SubscriberElement.prototype, "dataProvider", 2);
|
|
1645
|
-
__decorateClass$
|
|
1667
|
+
__decorateClass$16([
|
|
1646
1668
|
e$5()
|
|
1647
1669
|
], SubscriberElement.prototype, "bindPublisher", 2);
|
|
1648
|
-
__decorateClass$
|
|
1670
|
+
__decorateClass$16([
|
|
1649
1671
|
e$5()
|
|
1650
1672
|
], SubscriberElement.prototype, "props", 1);
|
|
1651
1673
|
return SubscriberElement;
|
|
@@ -1653,15 +1675,15 @@ const Subscriber$1 = (superClass) => {
|
|
|
1653
1675
|
let win$4 = window;
|
|
1654
1676
|
if (!win$4.SonicPublisherManager)
|
|
1655
1677
|
win$4.SonicPublisherManager = PublisherManager$1;
|
|
1656
|
-
var __defProp$
|
|
1657
|
-
var __getOwnPropDesc$
|
|
1658
|
-
var __decorateClass$
|
|
1659
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
1678
|
+
var __defProp$15 = Object.defineProperty;
|
|
1679
|
+
var __getOwnPropDesc$15 = Object.getOwnPropertyDescriptor;
|
|
1680
|
+
var __decorateClass$15 = (decorators, target, key, kind) => {
|
|
1681
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$15(target, key) : target;
|
|
1660
1682
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
1661
1683
|
if (decorator = decorators[i2])
|
|
1662
1684
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
1663
1685
|
if (kind && result)
|
|
1664
|
-
__defProp$
|
|
1686
|
+
__defProp$15(target, key, result);
|
|
1665
1687
|
return result;
|
|
1666
1688
|
};
|
|
1667
1689
|
const TemplatesContainer$1 = (superClass) => {
|
|
@@ -1688,23 +1710,23 @@ const TemplatesContainer$1 = (superClass) => {
|
|
|
1688
1710
|
super.connectedCallback();
|
|
1689
1711
|
}
|
|
1690
1712
|
}
|
|
1691
|
-
__decorateClass$
|
|
1713
|
+
__decorateClass$15([
|
|
1692
1714
|
e$5({ type: Array })
|
|
1693
1715
|
], TemplatesContainerElement.prototype, "templates", 2);
|
|
1694
1716
|
return TemplatesContainerElement;
|
|
1695
1717
|
};
|
|
1696
|
-
var __defProp$
|
|
1697
|
-
var __getOwnPropDesc$
|
|
1698
|
-
var __decorateClass$
|
|
1699
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
1718
|
+
var __defProp$14 = Object.defineProperty;
|
|
1719
|
+
var __getOwnPropDesc$14 = Object.getOwnPropertyDescriptor;
|
|
1720
|
+
var __decorateClass$14 = (decorators, target, key, kind) => {
|
|
1721
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$14(target, key) : target;
|
|
1700
1722
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
1701
1723
|
if (decorator = decorators[i2])
|
|
1702
1724
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
1703
1725
|
if (kind && result)
|
|
1704
|
-
__defProp$
|
|
1726
|
+
__defProp$14(target, key, result);
|
|
1705
1727
|
return result;
|
|
1706
1728
|
};
|
|
1707
|
-
const tagName$
|
|
1729
|
+
const tagName$_ = "sonic-date";
|
|
1708
1730
|
let SonicDate = class extends Subscriber$1(TemplatesContainer$1(s$2)) {
|
|
1709
1731
|
constructor() {
|
|
1710
1732
|
super(...arguments);
|
|
@@ -1829,77 +1851,77 @@ let SonicDate = class extends Subscriber$1(TemplatesContainer$1(s$2)) {
|
|
|
1829
1851
|
})}`;
|
|
1830
1852
|
}
|
|
1831
1853
|
};
|
|
1832
|
-
__decorateClass$
|
|
1854
|
+
__decorateClass$14([
|
|
1833
1855
|
e$5()
|
|
1834
1856
|
], SonicDate.prototype, "wording_billet_periode_validite", 1);
|
|
1835
|
-
__decorateClass$
|
|
1857
|
+
__decorateClass$14([
|
|
1836
1858
|
e$5({ type: Boolean })
|
|
1837
1859
|
], SonicDate.prototype, "designMode", 2);
|
|
1838
|
-
__decorateClass$
|
|
1860
|
+
__decorateClass$14([
|
|
1839
1861
|
e$5({ type: String })
|
|
1840
1862
|
], SonicDate.prototype, "time_zone", 2);
|
|
1841
|
-
__decorateClass$
|
|
1863
|
+
__decorateClass$14([
|
|
1842
1864
|
e$5({ type: Number })
|
|
1843
1865
|
], SonicDate.prototype, "date", 2);
|
|
1844
|
-
__decorateClass$
|
|
1866
|
+
__decorateClass$14([
|
|
1845
1867
|
e$5({ type: String })
|
|
1846
1868
|
], SonicDate.prototype, "date_string", 2);
|
|
1847
|
-
__decorateClass$
|
|
1869
|
+
__decorateClass$14([
|
|
1848
1870
|
e$5({ type: String })
|
|
1849
1871
|
], SonicDate.prototype, "start_date_string", 2);
|
|
1850
|
-
__decorateClass$
|
|
1872
|
+
__decorateClass$14([
|
|
1851
1873
|
e$5({ type: String })
|
|
1852
1874
|
], SonicDate.prototype, "end_date_string", 2);
|
|
1853
|
-
__decorateClass$
|
|
1875
|
+
__decorateClass$14([
|
|
1854
1876
|
e$5({ type: Number })
|
|
1855
1877
|
], SonicDate.prototype, "start_date", 2);
|
|
1856
|
-
__decorateClass$
|
|
1878
|
+
__decorateClass$14([
|
|
1857
1879
|
e$5({ type: Number })
|
|
1858
1880
|
], SonicDate.prototype, "end_date", 2);
|
|
1859
|
-
__decorateClass$
|
|
1881
|
+
__decorateClass$14([
|
|
1860
1882
|
e$5({ type: String })
|
|
1861
1883
|
], SonicDate.prototype, "era", 2);
|
|
1862
|
-
__decorateClass$
|
|
1884
|
+
__decorateClass$14([
|
|
1863
1885
|
e$5({ type: String })
|
|
1864
1886
|
], SonicDate.prototype, "year", 2);
|
|
1865
|
-
__decorateClass$
|
|
1887
|
+
__decorateClass$14([
|
|
1866
1888
|
e$5({ type: String })
|
|
1867
1889
|
], SonicDate.prototype, "month", 2);
|
|
1868
|
-
__decorateClass$
|
|
1890
|
+
__decorateClass$14([
|
|
1869
1891
|
e$5({ type: String })
|
|
1870
1892
|
], SonicDate.prototype, "day", 2);
|
|
1871
|
-
__decorateClass$
|
|
1893
|
+
__decorateClass$14([
|
|
1872
1894
|
e$5({ type: String })
|
|
1873
1895
|
], SonicDate.prototype, "weekday", 2);
|
|
1874
|
-
__decorateClass$
|
|
1896
|
+
__decorateClass$14([
|
|
1875
1897
|
e$5({ type: String })
|
|
1876
1898
|
], SonicDate.prototype, "hour", 2);
|
|
1877
|
-
__decorateClass$
|
|
1899
|
+
__decorateClass$14([
|
|
1878
1900
|
e$5({ type: String })
|
|
1879
1901
|
], SonicDate.prototype, "minute", 2);
|
|
1880
|
-
__decorateClass$
|
|
1902
|
+
__decorateClass$14([
|
|
1881
1903
|
e$5({ type: String })
|
|
1882
1904
|
], SonicDate.prototype, "language", 2);
|
|
1883
|
-
__decorateClass$
|
|
1905
|
+
__decorateClass$14([
|
|
1884
1906
|
e$5({ type: Boolean })
|
|
1885
1907
|
], SonicDate.prototype, "renderIf", 2);
|
|
1886
|
-
SonicDate = __decorateClass$
|
|
1887
|
-
n$3(tagName$
|
|
1908
|
+
SonicDate = __decorateClass$14([
|
|
1909
|
+
n$3(tagName$_)
|
|
1888
1910
|
], SonicDate);
|
|
1889
1911
|
const inline = r$5`: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)}}`;
|
|
1890
1912
|
const fixed = r$5`@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}`;
|
|
1891
|
-
var __defProp$
|
|
1892
|
-
var __getOwnPropDesc$
|
|
1893
|
-
var __decorateClass$
|
|
1894
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
1913
|
+
var __defProp$13 = Object.defineProperty;
|
|
1914
|
+
var __getOwnPropDesc$13 = Object.getOwnPropertyDescriptor;
|
|
1915
|
+
var __decorateClass$13 = (decorators, target, key, kind) => {
|
|
1916
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$13(target, key) : target;
|
|
1895
1917
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
1896
1918
|
if (decorator = decorators[i2])
|
|
1897
1919
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
1898
1920
|
if (kind && result)
|
|
1899
|
-
__defProp$
|
|
1921
|
+
__defProp$13(target, key, result);
|
|
1900
1922
|
return result;
|
|
1901
1923
|
};
|
|
1902
|
-
const tagName$
|
|
1924
|
+
const tagName$Z = "sonic-loader";
|
|
1903
1925
|
let Loader = class extends s$2 {
|
|
1904
1926
|
constructor() {
|
|
1905
1927
|
super(...arguments);
|
|
@@ -1938,14 +1960,14 @@ Loader.styles = [
|
|
|
1938
1960
|
r$5`: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}}`
|
|
1939
1961
|
];
|
|
1940
1962
|
Loader.callCounter = 0;
|
|
1941
|
-
__decorateClass$
|
|
1963
|
+
__decorateClass$13([
|
|
1942
1964
|
e$5({ type: String })
|
|
1943
1965
|
], Loader.prototype, "mode", 2);
|
|
1944
|
-
Loader = __decorateClass$
|
|
1945
|
-
n$3(tagName$
|
|
1966
|
+
Loader = __decorateClass$13([
|
|
1967
|
+
n$3(tagName$Z)
|
|
1946
1968
|
], Loader);
|
|
1947
1969
|
try {
|
|
1948
|
-
customElements.define(tagName$
|
|
1970
|
+
customElements.define(tagName$Z, Loader);
|
|
1949
1971
|
} catch (e2) {
|
|
1950
1972
|
}
|
|
1951
1973
|
/**
|
|
@@ -2487,18 +2509,18 @@ Icons.fontAwesomeNext = {
|
|
|
2487
2509
|
}
|
|
2488
2510
|
};
|
|
2489
2511
|
Icons.default = _Icons.fontAwesomeNext;
|
|
2490
|
-
var __defProp
|
|
2491
|
-
var __getOwnPropDesc
|
|
2492
|
-
var __decorateClass
|
|
2493
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc
|
|
2512
|
+
var __defProp$12 = Object.defineProperty;
|
|
2513
|
+
var __getOwnPropDesc$12 = Object.getOwnPropertyDescriptor;
|
|
2514
|
+
var __decorateClass$12 = (decorators, target, key, kind) => {
|
|
2515
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$12(target, key) : target;
|
|
2494
2516
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
2495
2517
|
if (decorator = decorators[i2])
|
|
2496
2518
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
2497
2519
|
if (kind && result)
|
|
2498
|
-
__defProp
|
|
2520
|
+
__defProp$12(target, key, result);
|
|
2499
2521
|
return result;
|
|
2500
2522
|
};
|
|
2501
|
-
const tagName$
|
|
2523
|
+
const tagName$Y = "sonic-icon";
|
|
2502
2524
|
let Icon = class extends s$2 {
|
|
2503
2525
|
constructor() {
|
|
2504
2526
|
super(...arguments);
|
|
@@ -2544,20 +2566,20 @@ let Icon = class extends s$2 {
|
|
|
2544
2566
|
}
|
|
2545
2567
|
};
|
|
2546
2568
|
Icon.styles = r$5`: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}`;
|
|
2547
|
-
__decorateClass
|
|
2569
|
+
__decorateClass$12([
|
|
2548
2570
|
e$5({ type: String })
|
|
2549
2571
|
], Icon.prototype, "name", 1);
|
|
2550
|
-
__decorateClass
|
|
2572
|
+
__decorateClass$12([
|
|
2551
2573
|
e$5({ type: String })
|
|
2552
2574
|
], Icon.prototype, "prefix", 1);
|
|
2553
|
-
__decorateClass
|
|
2575
|
+
__decorateClass$12([
|
|
2554
2576
|
e$5({ type: String })
|
|
2555
2577
|
], Icon.prototype, "library", 1);
|
|
2556
|
-
Icon = __decorateClass
|
|
2557
|
-
n$3(tagName$
|
|
2578
|
+
Icon = __decorateClass$12([
|
|
2579
|
+
n$3(tagName$Y)
|
|
2558
2580
|
], Icon);
|
|
2559
2581
|
try {
|
|
2560
|
-
customElements.define(tagName$
|
|
2582
|
+
customElements.define(tagName$Y, Icon);
|
|
2561
2583
|
} catch (e2) {
|
|
2562
2584
|
}
|
|
2563
2585
|
/**
|
|
@@ -2602,15 +2624,15 @@ const i = e$3(class extends i$3 {
|
|
|
2602
2624
|
}
|
|
2603
2625
|
});
|
|
2604
2626
|
const customScroll = r$5`.custom-scroll{overflow:auto!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}`;
|
|
2605
|
-
var __defProp$
|
|
2606
|
-
var __getOwnPropDesc$
|
|
2607
|
-
var __decorateClass$
|
|
2608
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
2627
|
+
var __defProp$11 = Object.defineProperty;
|
|
2628
|
+
var __getOwnPropDesc$11 = Object.getOwnPropertyDescriptor;
|
|
2629
|
+
var __decorateClass$11 = (decorators, target, key, kind) => {
|
|
2630
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$11(target, key) : target;
|
|
2609
2631
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
2610
2632
|
if (decorator = decorators[i2])
|
|
2611
2633
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
2612
2634
|
if (kind && result)
|
|
2613
|
-
__defProp$
|
|
2635
|
+
__defProp$11(target, key, result);
|
|
2614
2636
|
return result;
|
|
2615
2637
|
};
|
|
2616
2638
|
const icon$1 = {
|
|
@@ -2619,7 +2641,7 @@ const icon$1 = {
|
|
|
2619
2641
|
error: "warning-circled-outline",
|
|
2620
2642
|
info: "info-empty"
|
|
2621
2643
|
};
|
|
2622
|
-
const tagName$
|
|
2644
|
+
const tagName$X = "sonic-toast-item";
|
|
2623
2645
|
let SonicToastItem = class extends s$2 {
|
|
2624
2646
|
constructor() {
|
|
2625
2647
|
super(...arguments);
|
|
@@ -2671,48 +2693,48 @@ SonicToastItem.styles = [
|
|
|
2671
2693
|
customScroll,
|
|
2672
2694
|
r$5`*{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:999;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}`
|
|
2673
2695
|
];
|
|
2674
|
-
__decorateClass$
|
|
2696
|
+
__decorateClass$11([
|
|
2675
2697
|
e$5({ type: String })
|
|
2676
2698
|
], SonicToastItem.prototype, "title", 2);
|
|
2677
|
-
__decorateClass$
|
|
2699
|
+
__decorateClass$11([
|
|
2678
2700
|
e$5({ type: String })
|
|
2679
2701
|
], SonicToastItem.prototype, "id", 2);
|
|
2680
|
-
__decorateClass$
|
|
2702
|
+
__decorateClass$11([
|
|
2681
2703
|
e$5({ type: String })
|
|
2682
2704
|
], SonicToastItem.prototype, "text", 2);
|
|
2683
|
-
__decorateClass$
|
|
2705
|
+
__decorateClass$11([
|
|
2684
2706
|
e$5({ type: String })
|
|
2685
2707
|
], SonicToastItem.prototype, "status", 2);
|
|
2686
|
-
__decorateClass$
|
|
2708
|
+
__decorateClass$11([
|
|
2687
2709
|
e$5({ type: Boolean })
|
|
2688
2710
|
], SonicToastItem.prototype, "ghost", 2);
|
|
2689
|
-
__decorateClass$
|
|
2711
|
+
__decorateClass$11([
|
|
2690
2712
|
e$5({ type: Boolean })
|
|
2691
2713
|
], SonicToastItem.prototype, "preserve", 2);
|
|
2692
|
-
__decorateClass$
|
|
2714
|
+
__decorateClass$11([
|
|
2693
2715
|
e$5({ type: Boolean })
|
|
2694
2716
|
], SonicToastItem.prototype, "dismissForever", 2);
|
|
2695
|
-
__decorateClass$
|
|
2717
|
+
__decorateClass$11([
|
|
2696
2718
|
e$5({ type: String })
|
|
2697
2719
|
], SonicToastItem.prototype, "maxHeight", 2);
|
|
2698
|
-
__decorateClass$
|
|
2720
|
+
__decorateClass$11([
|
|
2699
2721
|
t$1()
|
|
2700
2722
|
], SonicToastItem.prototype, "visible", 2);
|
|
2701
|
-
SonicToastItem = __decorateClass$
|
|
2702
|
-
n$3(tagName$
|
|
2723
|
+
SonicToastItem = __decorateClass$11([
|
|
2724
|
+
n$3(tagName$X)
|
|
2703
2725
|
], SonicToastItem);
|
|
2704
|
-
var __defProp$
|
|
2705
|
-
var __getOwnPropDesc$
|
|
2706
|
-
var __decorateClass$
|
|
2707
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
2726
|
+
var __defProp$10 = Object.defineProperty;
|
|
2727
|
+
var __getOwnPropDesc$10 = Object.getOwnPropertyDescriptor;
|
|
2728
|
+
var __decorateClass$10 = (decorators, target, key, kind) => {
|
|
2729
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$10(target, key) : target;
|
|
2708
2730
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
2709
2731
|
if (decorator = decorators[i2])
|
|
2710
2732
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
2711
2733
|
if (kind && result)
|
|
2712
|
-
__defProp$
|
|
2734
|
+
__defProp$10(target, key, result);
|
|
2713
2735
|
return result;
|
|
2714
2736
|
};
|
|
2715
|
-
const tagName$
|
|
2737
|
+
const tagName$W = "sonic-toast";
|
|
2716
2738
|
let SonicToast$1 = class extends s$2 {
|
|
2717
2739
|
constructor() {
|
|
2718
2740
|
super(...arguments);
|
|
@@ -2808,11 +2830,11 @@ let SonicToast$1 = class extends s$2 {
|
|
|
2808
2830
|
this.toasts = this.toasts.filter((i2) => i2 != item);
|
|
2809
2831
|
}
|
|
2810
2832
|
};
|
|
2811
|
-
__decorateClass$
|
|
2833
|
+
__decorateClass$10([
|
|
2812
2834
|
e$5({ type: Array })
|
|
2813
2835
|
], SonicToast$1.prototype, "toasts", 2);
|
|
2814
|
-
SonicToast$1 = __decorateClass$
|
|
2815
|
-
n$3(tagName$
|
|
2836
|
+
SonicToast$1 = __decorateClass$10([
|
|
2837
|
+
n$3(tagName$W)
|
|
2816
2838
|
], SonicToast$1);
|
|
2817
2839
|
if (typeof window !== "undefined") {
|
|
2818
2840
|
let win2 = window;
|
|
@@ -2911,15 +2933,15 @@ let LocationHandler$1 = _LocationHandler;
|
|
|
2911
2933
|
LocationHandler$1.listeners = [];
|
|
2912
2934
|
LocationHandler$1.listening = false;
|
|
2913
2935
|
LocationHandler$1.prevURL = (_a = document.location) == null ? void 0 : _a.href.replace(document.location.origin, "");
|
|
2914
|
-
var __defProp
|
|
2915
|
-
var __getOwnPropDesc
|
|
2916
|
-
var __decorateClass
|
|
2917
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc
|
|
2936
|
+
var __defProp$$ = Object.defineProperty;
|
|
2937
|
+
var __getOwnPropDesc$$ = Object.getOwnPropertyDescriptor;
|
|
2938
|
+
var __decorateClass$$ = (decorators, target, key, kind) => {
|
|
2939
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$$(target, key) : target;
|
|
2918
2940
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
2919
2941
|
if (decorator = decorators[i2])
|
|
2920
2942
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
2921
2943
|
if (kind && result)
|
|
2922
|
-
__defProp
|
|
2944
|
+
__defProp$$(target, key, result);
|
|
2923
2945
|
return result;
|
|
2924
2946
|
};
|
|
2925
2947
|
const keyboardLoops = /* @__PURE__ */ new Map();
|
|
@@ -3100,41 +3122,41 @@ const Form$2 = (superClass) => {
|
|
|
3100
3122
|
}
|
|
3101
3123
|
}
|
|
3102
3124
|
}
|
|
3103
|
-
__decorateClass
|
|
3125
|
+
__decorateClass$$([
|
|
3104
3126
|
e$5({ type: Boolean, reflect: true })
|
|
3105
3127
|
], FormElement2.prototype, "touched", 2);
|
|
3106
|
-
__decorateClass
|
|
3128
|
+
__decorateClass$$([
|
|
3107
3129
|
e$5({ type: Boolean })
|
|
3108
3130
|
], FormElement2.prototype, "error", 2);
|
|
3109
|
-
__decorateClass
|
|
3131
|
+
__decorateClass$$([
|
|
3110
3132
|
e$5({ type: Boolean })
|
|
3111
3133
|
], FormElement2.prototype, "autofocus", 2);
|
|
3112
|
-
__decorateClass
|
|
3134
|
+
__decorateClass$$([
|
|
3113
3135
|
e$5({ type: Boolean })
|
|
3114
3136
|
], FormElement2.prototype, "required", 2);
|
|
3115
|
-
__decorateClass
|
|
3137
|
+
__decorateClass$$([
|
|
3116
3138
|
e$5()
|
|
3117
3139
|
], FormElement2.prototype, "forceAutoFill", 2);
|
|
3118
|
-
__decorateClass
|
|
3140
|
+
__decorateClass$$([
|
|
3119
3141
|
e$5({ type: Boolean })
|
|
3120
3142
|
], FormElement2.prototype, "disabled", 2);
|
|
3121
|
-
__decorateClass
|
|
3143
|
+
__decorateClass$$([
|
|
3122
3144
|
e$5()
|
|
3123
3145
|
], FormElement2.prototype, "name", 1);
|
|
3124
|
-
__decorateClass
|
|
3146
|
+
__decorateClass$$([
|
|
3125
3147
|
e$5()
|
|
3126
3148
|
], FormElement2.prototype, "value", 1);
|
|
3127
3149
|
return FormElement2;
|
|
3128
3150
|
};
|
|
3129
|
-
var __defProp$
|
|
3130
|
-
var __getOwnPropDesc$
|
|
3131
|
-
var __decorateClass$
|
|
3132
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
3151
|
+
var __defProp$_ = Object.defineProperty;
|
|
3152
|
+
var __getOwnPropDesc$_ = Object.getOwnPropertyDescriptor;
|
|
3153
|
+
var __decorateClass$_ = (decorators, target, key, kind) => {
|
|
3154
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$_(target, key) : target;
|
|
3133
3155
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
3134
3156
|
if (decorator = decorators[i2])
|
|
3135
3157
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
3136
3158
|
if (kind && result)
|
|
3137
|
-
__defProp$
|
|
3159
|
+
__defProp$_(target, key, result);
|
|
3138
3160
|
return result;
|
|
3139
3161
|
};
|
|
3140
3162
|
const Form$1 = (superClass) => {
|
|
@@ -3228,36 +3250,36 @@ const Form$1 = (superClass) => {
|
|
|
3228
3250
|
}
|
|
3229
3251
|
}
|
|
3230
3252
|
}
|
|
3231
|
-
__decorateClass$
|
|
3253
|
+
__decorateClass$_([
|
|
3232
3254
|
e$5()
|
|
3233
3255
|
], FormCheckable2.prototype, "value", 1);
|
|
3234
|
-
__decorateClass$
|
|
3256
|
+
__decorateClass$_([
|
|
3235
3257
|
e$5()
|
|
3236
3258
|
], FormCheckable2.prototype, "forceAutoFill", 2);
|
|
3237
|
-
__decorateClass$
|
|
3259
|
+
__decorateClass$_([
|
|
3238
3260
|
e$5({ type: Boolean })
|
|
3239
3261
|
], FormCheckable2.prototype, "unique", 2);
|
|
3240
|
-
__decorateClass$
|
|
3262
|
+
__decorateClass$_([
|
|
3241
3263
|
e$5({ type: Boolean })
|
|
3242
3264
|
], FormCheckable2.prototype, "radio", 2);
|
|
3243
|
-
__decorateClass$
|
|
3265
|
+
__decorateClass$_([
|
|
3244
3266
|
e$5()
|
|
3245
3267
|
], FormCheckable2.prototype, "checked", 1);
|
|
3246
3268
|
return FormCheckable2;
|
|
3247
3269
|
};
|
|
3248
3270
|
const fontSize = r$5`:host{--sc-fs:1rem;font-size:var(--sc-fs)}:host([size="2xs"]){--sc-fs:0.68rem}: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}`;
|
|
3249
|
-
var __defProp$
|
|
3250
|
-
var __getOwnPropDesc$
|
|
3251
|
-
var __decorateClass$
|
|
3252
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
3271
|
+
var __defProp$Z = Object.defineProperty;
|
|
3272
|
+
var __getOwnPropDesc$Z = Object.getOwnPropertyDescriptor;
|
|
3273
|
+
var __decorateClass$Z = (decorators, target, key, kind) => {
|
|
3274
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$Z(target, key) : target;
|
|
3253
3275
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
3254
3276
|
if (decorator = decorators[i2])
|
|
3255
3277
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
3256
3278
|
if (kind && result)
|
|
3257
|
-
__defProp$
|
|
3279
|
+
__defProp$Z(target, key, result);
|
|
3258
3280
|
return result;
|
|
3259
3281
|
};
|
|
3260
|
-
const tagName$
|
|
3282
|
+
const tagName$V = "sonic-button";
|
|
3261
3283
|
let Button = class extends Form$1(Form$2(Subscriber$1(s$2))) {
|
|
3262
3284
|
constructor() {
|
|
3263
3285
|
super(...arguments);
|
|
@@ -3349,74 +3371,74 @@ Button.styles = [
|
|
|
3349
3371
|
fontSize,
|
|
3350
3372
|
r$5`*{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);--sc-btn-color:var(--sc-base-content);--sc-btn-bg:var(--sc-base-100);--sc-btn-border-style:solid;--sc-btn-border-with:var(--sc-form-border-width);--sc-btn-border-color:transparent;--sc-btn-outline-bg-hover:var(--sc-base-100);--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}: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(--sc-btn-bg);color:var(--sc-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-with) 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{--sc-btn-color:var(--sc-base-content);--sc-btn-bg:var(--sc-base-100)}:host([type=primary]) button{--sc-btn-color:var(--sc-primary-content);--sc-btn-bg:var(--sc-primary)}:host([type=warning]) button{--sc-btn-color:var(--sc-warning-content);--sc-btn-bg:var(--sc-warning)}:host([type=danger]) button{--sc-btn-color:var(--sc-danger-content);--sc-btn-bg:var(--sc-danger)}:host([type=info]) button{--sc-btn-color:var(--sc-info-content);--sc-btn-bg:var(--sc-info)}:host([type=success]) button{--sc-btn-color:var(--sc-success-content);--sc-btn-bg:var(--sc-success)}:host([type=neutral]) button{--sc-btn-color:var(--sc-base);--sc-btn-bg:var(--sc-base-600)}:host([variant=unstyled]),:host([variant=unstyled]) button{all:unset;display:contents;transition:.1s;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(--sc-btn-bg);background:0 0}:host([variant=ghost][type=default]) button{color:var(--sc-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(--sc-btn-bg);color:var(--sc-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(--sc-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(--sc-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);overflow:hidden;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])) button{background:var(--sc-btn-active-bg);color:var(--sc-btn-active-color);border-color:var(--sc-btn-active-bg)}:host([textAlign=left]) button{text-align:left}:host([textAlign=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:1.28em;text-align:center}:host([icon]) ::slotted(sonic-icon){font-size:1.35em}sonic-tooltip{display:contents}:host(:not([active])) ::slotted([swap=on]){display:none}:host([active]) ::slotted([swap=off]){display:none}: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)}}`
|
|
3351
3373
|
];
|
|
3352
|
-
__decorateClass$
|
|
3374
|
+
__decorateClass$Z([
|
|
3353
3375
|
e$5({ type: String, reflect: true })
|
|
3354
3376
|
], Button.prototype, "type", 2);
|
|
3355
|
-
__decorateClass$
|
|
3377
|
+
__decorateClass$Z([
|
|
3356
3378
|
e$5({ type: String, reflect: true })
|
|
3357
3379
|
], Button.prototype, "variant", 2);
|
|
3358
|
-
__decorateClass$
|
|
3380
|
+
__decorateClass$Z([
|
|
3359
3381
|
e$5({ type: String, reflect: true })
|
|
3360
3382
|
], Button.prototype, "size", 2);
|
|
3361
|
-
__decorateClass$
|
|
3383
|
+
__decorateClass$Z([
|
|
3362
3384
|
e$5({ type: String, reflect: true })
|
|
3363
3385
|
], Button.prototype, "shape", 2);
|
|
3364
|
-
__decorateClass$
|
|
3386
|
+
__decorateClass$Z([
|
|
3365
3387
|
e$5({ type: String })
|
|
3366
3388
|
], Button.prototype, "direction", 2);
|
|
3367
|
-
__decorateClass$
|
|
3389
|
+
__decorateClass$Z([
|
|
3368
3390
|
e$5({ type: String, reflect: true })
|
|
3369
3391
|
], Button.prototype, "alignItems", 2);
|
|
3370
|
-
__decorateClass$
|
|
3392
|
+
__decorateClass$Z([
|
|
3371
3393
|
e$5({ type: String })
|
|
3372
3394
|
], Button.prototype, "justify", 2);
|
|
3373
|
-
__decorateClass$
|
|
3395
|
+
__decorateClass$Z([
|
|
3374
3396
|
e$5({ type: String, reflect: true })
|
|
3375
3397
|
], Button.prototype, "align", 2);
|
|
3376
|
-
__decorateClass$
|
|
3398
|
+
__decorateClass$Z([
|
|
3377
3399
|
e$5({ type: String })
|
|
3378
3400
|
], Button.prototype, "minWidth", 2);
|
|
3379
|
-
__decorateClass$
|
|
3401
|
+
__decorateClass$Z([
|
|
3380
3402
|
e$5({ type: Boolean, reflect: true })
|
|
3381
3403
|
], Button.prototype, "icon", 2);
|
|
3382
|
-
__decorateClass$
|
|
3404
|
+
__decorateClass$Z([
|
|
3383
3405
|
e$5({ type: String })
|
|
3384
3406
|
], Button.prototype, "autoActive", 2);
|
|
3385
|
-
__decorateClass$
|
|
3407
|
+
__decorateClass$Z([
|
|
3386
3408
|
e$5({ type: Boolean, reflect: true })
|
|
3387
3409
|
], Button.prototype, "loading", 2);
|
|
3388
|
-
__decorateClass$
|
|
3410
|
+
__decorateClass$Z([
|
|
3389
3411
|
t$1()
|
|
3390
3412
|
], Button.prototype, "hasPrefix", 2);
|
|
3391
|
-
__decorateClass$
|
|
3413
|
+
__decorateClass$Z([
|
|
3392
3414
|
t$1()
|
|
3393
3415
|
], Button.prototype, "hasSuffix", 2);
|
|
3394
|
-
__decorateClass$
|
|
3416
|
+
__decorateClass$Z([
|
|
3395
3417
|
l$2({ flatten: true, slot: "prefix" })
|
|
3396
3418
|
], Button.prototype, "prefixes", 2);
|
|
3397
|
-
__decorateClass$
|
|
3419
|
+
__decorateClass$Z([
|
|
3398
3420
|
l$2({ flatten: true, slot: "suffix" })
|
|
3399
3421
|
], Button.prototype, "suffixes", 2);
|
|
3400
|
-
__decorateClass$
|
|
3422
|
+
__decorateClass$Z([
|
|
3401
3423
|
e$5({ type: String })
|
|
3402
3424
|
], Button.prototype, "target", 2);
|
|
3403
|
-
__decorateClass$
|
|
3425
|
+
__decorateClass$Z([
|
|
3404
3426
|
e$5({ type: String })
|
|
3405
3427
|
], Button.prototype, "href", 1);
|
|
3406
|
-
__decorateClass$
|
|
3428
|
+
__decorateClass$Z([
|
|
3407
3429
|
e$5({ type: String })
|
|
3408
3430
|
], Button.prototype, "goBack", 2);
|
|
3409
|
-
__decorateClass$
|
|
3431
|
+
__decorateClass$Z([
|
|
3410
3432
|
e$5({ type: Boolean })
|
|
3411
3433
|
], Button.prototype, "pushState", 2);
|
|
3412
|
-
__decorateClass$
|
|
3434
|
+
__decorateClass$Z([
|
|
3413
3435
|
e$5({ type: Boolean, reflect: true })
|
|
3414
3436
|
], Button.prototype, "active", 2);
|
|
3415
|
-
Button = __decorateClass$
|
|
3416
|
-
n$3(tagName$
|
|
3437
|
+
Button = __decorateClass$Z([
|
|
3438
|
+
n$3(tagName$V)
|
|
3417
3439
|
], Button);
|
|
3418
3440
|
try {
|
|
3419
|
-
customElements.define(tagName$
|
|
3441
|
+
customElements.define(tagName$V, Button);
|
|
3420
3442
|
} catch (e2) {
|
|
3421
3443
|
}
|
|
3422
3444
|
class Arrays$1 {
|
|
@@ -3559,15 +3581,15 @@ win$3["concorde-utils"] = {
|
|
|
3559
3581
|
PublisherManager,
|
|
3560
3582
|
api
|
|
3561
3583
|
};
|
|
3562
|
-
var __defProp$
|
|
3563
|
-
var __getOwnPropDesc$
|
|
3564
|
-
var __decorateClass$
|
|
3565
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
3584
|
+
var __defProp$Y = Object.defineProperty;
|
|
3585
|
+
var __getOwnPropDesc$Y = Object.getOwnPropertyDescriptor;
|
|
3586
|
+
var __decorateClass$Y = (decorators, target, key, kind) => {
|
|
3587
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$Y(target, key) : target;
|
|
3566
3588
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
3567
3589
|
if (decorator = decorators[i2])
|
|
3568
3590
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
3569
3591
|
if (kind && result)
|
|
3570
|
-
__defProp$
|
|
3592
|
+
__defProp$Y(target, key, result);
|
|
3571
3593
|
return result;
|
|
3572
3594
|
};
|
|
3573
3595
|
const Fetcher$1 = (superClass) => {
|
|
@@ -3607,12 +3629,14 @@ const Fetcher$1 = (superClass) => {
|
|
|
3607
3629
|
Loader.show();
|
|
3608
3630
|
let headerData = PublisherManager.getInstance().get(this.getAncestorAttributeValue("headersDataProvider")).get();
|
|
3609
3631
|
data = await this.api.get(this.endPoint || this.dataProvider || "", headerData);
|
|
3610
|
-
if (!data
|
|
3632
|
+
if (!data) {
|
|
3611
3633
|
SonicToast$1.add({ text: "Network Error", status: "error" });
|
|
3612
3634
|
this.isLoading = false;
|
|
3613
3635
|
if (hasLoader)
|
|
3614
3636
|
Loader.hide();
|
|
3615
3637
|
return;
|
|
3638
|
+
} else if (data._sonic_http_response_ && !data._sonic_http_response_.ok && Object.keys(data).length === 1) {
|
|
3639
|
+
SonicToast$1.add({ text: "Network Error", status: "error" });
|
|
3616
3640
|
}
|
|
3617
3641
|
if (hasLoader)
|
|
3618
3642
|
Loader.hide();
|
|
@@ -3684,23 +3708,23 @@ const Fetcher$1 = (superClass) => {
|
|
|
3684
3708
|
}
|
|
3685
3709
|
}
|
|
3686
3710
|
}
|
|
3687
|
-
__decorateClass$
|
|
3711
|
+
__decorateClass$Y([
|
|
3688
3712
|
e$5({ type: String })
|
|
3689
3713
|
], FetcherElement.prototype, "endPoint", 1);
|
|
3690
3714
|
return FetcherElement;
|
|
3691
3715
|
};
|
|
3692
|
-
var __defProp$
|
|
3693
|
-
var __getOwnPropDesc$
|
|
3694
|
-
var __decorateClass$
|
|
3695
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
3716
|
+
var __defProp$X = Object.defineProperty;
|
|
3717
|
+
var __getOwnPropDesc$X = Object.getOwnPropertyDescriptor;
|
|
3718
|
+
var __decorateClass$X = (decorators, target, key, kind) => {
|
|
3719
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$X(target, key) : target;
|
|
3696
3720
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
3697
3721
|
if (decorator = decorators[i2])
|
|
3698
3722
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
3699
3723
|
if (kind && result)
|
|
3700
|
-
__defProp$
|
|
3724
|
+
__defProp$X(target, key, result);
|
|
3701
3725
|
return result;
|
|
3702
3726
|
};
|
|
3703
|
-
const tagName$
|
|
3727
|
+
const tagName$U = "sonic-fetch";
|
|
3704
3728
|
let Fetch = class extends Fetcher$1(Subscriber$1(s$2)) {
|
|
3705
3729
|
render() {
|
|
3706
3730
|
return $$1`<slot></slot>`;
|
|
@@ -3709,25 +3733,25 @@ let Fetch = class extends Fetcher$1(Subscriber$1(s$2)) {
|
|
|
3709
3733
|
Fetch.styles = [
|
|
3710
3734
|
r$5`:host{display:contents}`
|
|
3711
3735
|
];
|
|
3712
|
-
Fetch = __decorateClass$
|
|
3713
|
-
n$3(tagName$
|
|
3736
|
+
Fetch = __decorateClass$X([
|
|
3737
|
+
n$3(tagName$U)
|
|
3714
3738
|
], Fetch);
|
|
3715
3739
|
try {
|
|
3716
|
-
customElements.define(tagName$
|
|
3740
|
+
customElements.define(tagName$U, Fetch);
|
|
3717
3741
|
} catch (e2) {
|
|
3718
3742
|
}
|
|
3719
|
-
var __defProp$
|
|
3720
|
-
var __getOwnPropDesc$
|
|
3721
|
-
var __decorateClass$
|
|
3722
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
3743
|
+
var __defProp$W = Object.defineProperty;
|
|
3744
|
+
var __getOwnPropDesc$W = Object.getOwnPropertyDescriptor;
|
|
3745
|
+
var __decorateClass$W = (decorators, target, key, kind) => {
|
|
3746
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$W(target, key) : target;
|
|
3723
3747
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
3724
3748
|
if (decorator = decorators[i2])
|
|
3725
3749
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
3726
3750
|
if (kind && result)
|
|
3727
|
-
__defProp$
|
|
3751
|
+
__defProp$W(target, key, result);
|
|
3728
3752
|
return result;
|
|
3729
3753
|
};
|
|
3730
|
-
const tagName$
|
|
3754
|
+
const tagName$T = "sonic-if";
|
|
3731
3755
|
let SonicIF = class extends s$2 {
|
|
3732
3756
|
constructor() {
|
|
3733
3757
|
super(...arguments);
|
|
@@ -3740,14 +3764,14 @@ let SonicIF = class extends s$2 {
|
|
|
3740
3764
|
}
|
|
3741
3765
|
};
|
|
3742
3766
|
SonicIF.styles = r$5`:host{display:contents}`;
|
|
3743
|
-
__decorateClass$
|
|
3767
|
+
__decorateClass$W([
|
|
3744
3768
|
e$5({ type: Boolean })
|
|
3745
3769
|
], SonicIF.prototype, "condition", 2);
|
|
3746
|
-
SonicIF = __decorateClass$
|
|
3747
|
-
n$3(tagName$
|
|
3770
|
+
SonicIF = __decorateClass$W([
|
|
3771
|
+
n$3(tagName$T)
|
|
3748
3772
|
], SonicIF);
|
|
3749
3773
|
try {
|
|
3750
|
-
customElements.define(tagName$
|
|
3774
|
+
customElements.define(tagName$T, SonicIF);
|
|
3751
3775
|
} catch (e2) {
|
|
3752
3776
|
}
|
|
3753
3777
|
/**
|
|
@@ -3764,18 +3788,18 @@ const o$1 = e$3(class extends i$3 {
|
|
|
3764
3788
|
return this.vt === r2 ? b$1 : (this.vt = r2, document.importNode(r2.content, true));
|
|
3765
3789
|
}
|
|
3766
3790
|
});
|
|
3767
|
-
var __defProp$
|
|
3768
|
-
var __getOwnPropDesc$
|
|
3769
|
-
var __decorateClass$
|
|
3770
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
3791
|
+
var __defProp$V = Object.defineProperty;
|
|
3792
|
+
var __getOwnPropDesc$V = Object.getOwnPropertyDescriptor;
|
|
3793
|
+
var __decorateClass$V = (decorators, target, key, kind) => {
|
|
3794
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$V(target, key) : target;
|
|
3771
3795
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
3772
3796
|
if (decorator = decorators[i2])
|
|
3773
3797
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
3774
3798
|
if (kind && result)
|
|
3775
|
-
__defProp$
|
|
3799
|
+
__defProp$V(target, key, result);
|
|
3776
3800
|
return result;
|
|
3777
3801
|
};
|
|
3778
|
-
const tagName$
|
|
3802
|
+
const tagName$S = "sonic-subscriber";
|
|
3779
3803
|
let SonicSubscriber = class extends Subscriber$1(s$2) {
|
|
3780
3804
|
constructor() {
|
|
3781
3805
|
super(...arguments);
|
|
@@ -3796,25 +3820,25 @@ let SonicSubscriber = class extends Subscriber$1(s$2) {
|
|
|
3796
3820
|
return $$1`<slot></slot>`;
|
|
3797
3821
|
}
|
|
3798
3822
|
};
|
|
3799
|
-
SonicSubscriber = __decorateClass$
|
|
3800
|
-
n$3(tagName$
|
|
3823
|
+
SonicSubscriber = __decorateClass$V([
|
|
3824
|
+
n$3(tagName$S)
|
|
3801
3825
|
], SonicSubscriber);
|
|
3802
3826
|
try {
|
|
3803
|
-
customElements.define(tagName$
|
|
3827
|
+
customElements.define(tagName$S, SonicSubscriber);
|
|
3804
3828
|
} catch (e2) {
|
|
3805
3829
|
}
|
|
3806
|
-
var __defProp$
|
|
3807
|
-
var __getOwnPropDesc$
|
|
3808
|
-
var __decorateClass$
|
|
3809
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
3830
|
+
var __defProp$U = Object.defineProperty;
|
|
3831
|
+
var __getOwnPropDesc$U = Object.getOwnPropertyDescriptor;
|
|
3832
|
+
var __decorateClass$U = (decorators, target, key, kind) => {
|
|
3833
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$U(target, key) : target;
|
|
3810
3834
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
3811
3835
|
if (decorator = decorators[i2])
|
|
3812
3836
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
3813
3837
|
if (kind && result)
|
|
3814
|
-
__defProp$
|
|
3838
|
+
__defProp$U(target, key, result);
|
|
3815
3839
|
return result;
|
|
3816
3840
|
};
|
|
3817
|
-
const tagName$
|
|
3841
|
+
const tagName$R = "sonic-list";
|
|
3818
3842
|
let List = class extends Fetcher$1(Subscriber$1(TemplatesContainer$1(s$2))) {
|
|
3819
3843
|
constructor() {
|
|
3820
3844
|
super(...arguments);
|
|
@@ -3892,34 +3916,34 @@ let List = class extends Fetcher$1(Subscriber$1(TemplatesContainer$1(s$2))) {
|
|
|
3892
3916
|
List.styles = [
|
|
3893
3917
|
r$5`.sonic-no-result-container{color:var(--sc-base-400);font-size:1.65rem}sonic-icon{margin-right:.25em}span{vertical-align:middle}`
|
|
3894
3918
|
];
|
|
3895
|
-
__decorateClass$
|
|
3919
|
+
__decorateClass$U([
|
|
3896
3920
|
e$5({ type: Object })
|
|
3897
3921
|
], List.prototype, "itemPropertyMap", 2);
|
|
3898
|
-
__decorateClass$
|
|
3922
|
+
__decorateClass$U([
|
|
3899
3923
|
e$5({ type: String })
|
|
3900
3924
|
], List.prototype, "templateKey", 2);
|
|
3901
|
-
__decorateClass$
|
|
3925
|
+
__decorateClass$U([
|
|
3902
3926
|
e$5({ type: String })
|
|
3903
3927
|
], List.prototype, "idKey", 2);
|
|
3904
|
-
List = __decorateClass$
|
|
3905
|
-
n$3(tagName$
|
|
3928
|
+
List = __decorateClass$U([
|
|
3929
|
+
n$3(tagName$R)
|
|
3906
3930
|
], List);
|
|
3907
3931
|
try {
|
|
3908
|
-
customElements.define(tagName$
|
|
3932
|
+
customElements.define(tagName$R, List);
|
|
3909
3933
|
} catch (e2) {
|
|
3910
3934
|
}
|
|
3911
|
-
var __defProp$
|
|
3912
|
-
var __getOwnPropDesc$
|
|
3913
|
-
var __decorateClass$
|
|
3914
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
3935
|
+
var __defProp$T = Object.defineProperty;
|
|
3936
|
+
var __getOwnPropDesc$T = Object.getOwnPropertyDescriptor;
|
|
3937
|
+
var __decorateClass$T = (decorators, target, key, kind) => {
|
|
3938
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$T(target, key) : target;
|
|
3915
3939
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
3916
3940
|
if (decorator = decorators[i2])
|
|
3917
3941
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
3918
3942
|
if (kind && result)
|
|
3919
|
-
__defProp$
|
|
3943
|
+
__defProp$T(target, key, result);
|
|
3920
3944
|
return result;
|
|
3921
3945
|
};
|
|
3922
|
-
const tagName$
|
|
3946
|
+
const tagName$Q = "sonic-queue";
|
|
3923
3947
|
let Queue = class extends Subscriber$1(s$2) {
|
|
3924
3948
|
constructor() {
|
|
3925
3949
|
super(...arguments);
|
|
@@ -4044,49 +4068,49 @@ let Queue = class extends Subscriber$1(s$2) {
|
|
|
4044
4068
|
}
|
|
4045
4069
|
};
|
|
4046
4070
|
Queue.instanceCounter = 0;
|
|
4047
|
-
__decorateClass$
|
|
4071
|
+
__decorateClass$T([
|
|
4048
4072
|
e$5({ type: Array })
|
|
4049
4073
|
], Queue.prototype, "templates", 2);
|
|
4050
|
-
__decorateClass$
|
|
4074
|
+
__decorateClass$T([
|
|
4051
4075
|
e$5({ type: Object })
|
|
4052
4076
|
], Queue.prototype, "itemPropertyMap", 2);
|
|
4053
|
-
__decorateClass$
|
|
4077
|
+
__decorateClass$T([
|
|
4054
4078
|
e$5()
|
|
4055
4079
|
], Queue.prototype, "targetRequestDuration", 2);
|
|
4056
|
-
__decorateClass$
|
|
4080
|
+
__decorateClass$T([
|
|
4057
4081
|
e$5()
|
|
4058
4082
|
], Queue.prototype, "limit", 2);
|
|
4059
|
-
__decorateClass$
|
|
4083
|
+
__decorateClass$T([
|
|
4060
4084
|
e$5()
|
|
4061
4085
|
], Queue.prototype, "offset", 2);
|
|
4062
|
-
__decorateClass$
|
|
4086
|
+
__decorateClass$T([
|
|
4063
4087
|
e$5()
|
|
4064
4088
|
], Queue.prototype, "filteredFields", 2);
|
|
4065
|
-
__decorateClass$
|
|
4089
|
+
__decorateClass$T([
|
|
4066
4090
|
e$5({ type: String })
|
|
4067
4091
|
], Queue.prototype, "dataProviderExpression", 2);
|
|
4068
|
-
__decorateClass$
|
|
4092
|
+
__decorateClass$T([
|
|
4069
4093
|
e$5({ type: String })
|
|
4070
4094
|
], Queue.prototype, "idKey", 2);
|
|
4071
|
-
Queue = __decorateClass$
|
|
4072
|
-
n$3(tagName$
|
|
4095
|
+
Queue = __decorateClass$T([
|
|
4096
|
+
n$3(tagName$Q)
|
|
4073
4097
|
], Queue);
|
|
4074
4098
|
try {
|
|
4075
|
-
customElements.define(tagName$
|
|
4099
|
+
customElements.define(tagName$Q, Queue);
|
|
4076
4100
|
} catch (e2) {
|
|
4077
4101
|
}
|
|
4078
|
-
var __defProp$
|
|
4079
|
-
var __getOwnPropDesc$
|
|
4080
|
-
var __decorateClass$
|
|
4081
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
4102
|
+
var __defProp$S = Object.defineProperty;
|
|
4103
|
+
var __getOwnPropDesc$S = Object.getOwnPropertyDescriptor;
|
|
4104
|
+
var __decorateClass$S = (decorators, target, key, kind) => {
|
|
4105
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$S(target, key) : target;
|
|
4082
4106
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
4083
4107
|
if (decorator = decorators[i2])
|
|
4084
4108
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4085
4109
|
if (kind && result)
|
|
4086
|
-
__defProp$
|
|
4110
|
+
__defProp$S(target, key, result);
|
|
4087
4111
|
return result;
|
|
4088
4112
|
};
|
|
4089
|
-
const tagName$
|
|
4113
|
+
const tagName$P = "sonic-submit";
|
|
4090
4114
|
let Submit = class extends Subscriber$1(s$2) {
|
|
4091
4115
|
constructor() {
|
|
4092
4116
|
super(...arguments);
|
|
@@ -4185,20 +4209,20 @@ let Submit = class extends Subscriber$1(s$2) {
|
|
|
4185
4209
|
}
|
|
4186
4210
|
};
|
|
4187
4211
|
Submit.styles = r$5`[data-disabled]{opacity:.3;pointer-events:none;user-select:none}`;
|
|
4188
|
-
__decorateClass$
|
|
4212
|
+
__decorateClass$S([
|
|
4189
4213
|
e$5({ type: String })
|
|
4190
4214
|
], Submit.prototype, "submitResultKey", 2);
|
|
4191
|
-
__decorateClass$
|
|
4215
|
+
__decorateClass$S([
|
|
4192
4216
|
e$5({ type: Boolean })
|
|
4193
4217
|
], Submit.prototype, "disabled", 2);
|
|
4194
|
-
__decorateClass$
|
|
4218
|
+
__decorateClass$S([
|
|
4195
4219
|
e$5({ type: String })
|
|
4196
4220
|
], Submit.prototype, "endPoint", 2);
|
|
4197
|
-
Submit = __decorateClass$
|
|
4198
|
-
n$3(tagName$
|
|
4221
|
+
Submit = __decorateClass$S([
|
|
4222
|
+
n$3(tagName$P)
|
|
4199
4223
|
], Submit);
|
|
4200
4224
|
try {
|
|
4201
|
-
customElements.define(tagName$
|
|
4225
|
+
customElements.define(tagName$P, Submit);
|
|
4202
4226
|
} catch (e2) {
|
|
4203
4227
|
}
|
|
4204
4228
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
@@ -4638,18 +4662,18 @@ var urlPattern = { exports: {} };
|
|
|
4638
4662
|
});
|
|
4639
4663
|
})(urlPattern, urlPattern.exports);
|
|
4640
4664
|
var UrlPattern = urlPattern.exports;
|
|
4641
|
-
var __defProp$
|
|
4642
|
-
var __getOwnPropDesc$
|
|
4643
|
-
var __decorateClass$
|
|
4644
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
4665
|
+
var __defProp$R = Object.defineProperty;
|
|
4666
|
+
var __getOwnPropDesc$R = Object.getOwnPropertyDescriptor;
|
|
4667
|
+
var __decorateClass$R = (decorators, target, key, kind) => {
|
|
4668
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$R(target, key) : target;
|
|
4645
4669
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
4646
4670
|
if (decorator = decorators[i2])
|
|
4647
4671
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4648
4672
|
if (kind && result)
|
|
4649
|
-
__defProp$
|
|
4673
|
+
__defProp$R(target, key, result);
|
|
4650
4674
|
return result;
|
|
4651
4675
|
};
|
|
4652
|
-
const tagName$
|
|
4676
|
+
const tagName$O = "sonic-router";
|
|
4653
4677
|
let SonicRouter = class extends Subscriber$1(TemplatesContainer$1(s$2)) {
|
|
4654
4678
|
constructor() {
|
|
4655
4679
|
super(...arguments);
|
|
@@ -4711,28 +4735,28 @@ let SonicRouter = class extends Subscriber$1(TemplatesContainer$1(s$2)) {
|
|
|
4711
4735
|
})}`;
|
|
4712
4736
|
}
|
|
4713
4737
|
};
|
|
4714
|
-
__decorateClass$
|
|
4738
|
+
__decorateClass$R([
|
|
4715
4739
|
e$5()
|
|
4716
4740
|
], SonicRouter.prototype, "location", 1);
|
|
4717
|
-
SonicRouter = __decorateClass$
|
|
4718
|
-
n$3(tagName$
|
|
4741
|
+
SonicRouter = __decorateClass$R([
|
|
4742
|
+
n$3(tagName$O)
|
|
4719
4743
|
], SonicRouter);
|
|
4720
4744
|
try {
|
|
4721
|
-
customElements.define(tagName$
|
|
4745
|
+
customElements.define(tagName$O, SonicRouter);
|
|
4722
4746
|
} catch (e2) {
|
|
4723
4747
|
}
|
|
4724
|
-
var __defProp$
|
|
4725
|
-
var __getOwnPropDesc$
|
|
4726
|
-
var __decorateClass$
|
|
4727
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
4748
|
+
var __defProp$Q = Object.defineProperty;
|
|
4749
|
+
var __getOwnPropDesc$Q = Object.getOwnPropertyDescriptor;
|
|
4750
|
+
var __decorateClass$Q = (decorators, target, key, kind) => {
|
|
4751
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$Q(target, key) : target;
|
|
4728
4752
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
4729
4753
|
if (decorator = decorators[i2])
|
|
4730
4754
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4731
4755
|
if (kind && result)
|
|
4732
|
-
__defProp$
|
|
4756
|
+
__defProp$Q(target, key, result);
|
|
4733
4757
|
return result;
|
|
4734
4758
|
};
|
|
4735
|
-
const tagName$
|
|
4759
|
+
const tagName$N = "sonic-redirect";
|
|
4736
4760
|
let SonicRedirect = class extends Subscriber$1(s$2) {
|
|
4737
4761
|
constructor() {
|
|
4738
4762
|
super(...arguments);
|
|
@@ -4762,25 +4786,25 @@ let SonicRedirect = class extends Subscriber$1(s$2) {
|
|
|
4762
4786
|
}
|
|
4763
4787
|
}
|
|
4764
4788
|
};
|
|
4765
|
-
SonicRedirect = __decorateClass$
|
|
4766
|
-
n$3(tagName$
|
|
4789
|
+
SonicRedirect = __decorateClass$Q([
|
|
4790
|
+
n$3(tagName$N)
|
|
4767
4791
|
], SonicRedirect);
|
|
4768
4792
|
try {
|
|
4769
|
-
customElements.define(tagName$
|
|
4793
|
+
customElements.define(tagName$N, SonicRedirect);
|
|
4770
4794
|
} catch (e2) {
|
|
4771
4795
|
}
|
|
4772
|
-
var __defProp$
|
|
4773
|
-
var __getOwnPropDesc$
|
|
4774
|
-
var __decorateClass$
|
|
4775
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
4796
|
+
var __defProp$P = Object.defineProperty;
|
|
4797
|
+
var __getOwnPropDesc$P = Object.getOwnPropertyDescriptor;
|
|
4798
|
+
var __decorateClass$P = (decorators, target, key, kind) => {
|
|
4799
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$P(target, key) : target;
|
|
4776
4800
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
4777
4801
|
if (decorator = decorators[i2])
|
|
4778
4802
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4779
4803
|
if (kind && result)
|
|
4780
|
-
__defProp$
|
|
4804
|
+
__defProp$P(target, key, result);
|
|
4781
4805
|
return result;
|
|
4782
4806
|
};
|
|
4783
|
-
const tagName$
|
|
4807
|
+
const tagName$M = "sonic-states";
|
|
4784
4808
|
let SonicStates = class extends Subscriber$1(TemplatesContainer$1(s$2)) {
|
|
4785
4809
|
constructor() {
|
|
4786
4810
|
super(...arguments);
|
|
@@ -4873,31 +4897,31 @@ let SonicStates = class extends Subscriber$1(TemplatesContainer$1(s$2)) {
|
|
|
4873
4897
|
})}`;
|
|
4874
4898
|
}
|
|
4875
4899
|
};
|
|
4876
|
-
__decorateClass$
|
|
4900
|
+
__decorateClass$P([
|
|
4877
4901
|
e$5()
|
|
4878
4902
|
], SonicStates.prototype, "state", 2);
|
|
4879
|
-
__decorateClass$
|
|
4903
|
+
__decorateClass$P([
|
|
4880
4904
|
e$5({ type: Boolean, reflect: true })
|
|
4881
4905
|
], SonicStates.prototype, "inverted", 2);
|
|
4882
|
-
SonicStates = __decorateClass$
|
|
4883
|
-
n$3(tagName$
|
|
4906
|
+
SonicStates = __decorateClass$P([
|
|
4907
|
+
n$3(tagName$M)
|
|
4884
4908
|
], SonicStates);
|
|
4885
4909
|
try {
|
|
4886
|
-
customElements.define(tagName$
|
|
4910
|
+
customElements.define(tagName$M, SonicStates);
|
|
4887
4911
|
} catch (e2) {
|
|
4888
4912
|
}
|
|
4889
|
-
var __defProp$
|
|
4890
|
-
var __getOwnPropDesc$
|
|
4891
|
-
var __decorateClass$
|
|
4892
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
4913
|
+
var __defProp$O = Object.defineProperty;
|
|
4914
|
+
var __getOwnPropDesc$O = Object.getOwnPropertyDescriptor;
|
|
4915
|
+
var __decorateClass$O = (decorators, target, key, kind) => {
|
|
4916
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$O(target, key) : target;
|
|
4893
4917
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
4894
4918
|
if (decorator = decorators[i2])
|
|
4895
4919
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4896
4920
|
if (kind && result)
|
|
4897
|
-
__defProp$
|
|
4921
|
+
__defProp$O(target, key, result);
|
|
4898
4922
|
return result;
|
|
4899
4923
|
};
|
|
4900
|
-
const tagName$
|
|
4924
|
+
const tagName$L = "sonic-scope";
|
|
4901
4925
|
let SonicScope = class extends s$2 {
|
|
4902
4926
|
createRenderRoot() {
|
|
4903
4927
|
return this;
|
|
@@ -4906,22 +4930,22 @@ let SonicScope = class extends s$2 {
|
|
|
4906
4930
|
return $$1`<slot></slot>`;
|
|
4907
4931
|
}
|
|
4908
4932
|
};
|
|
4909
|
-
SonicScope = __decorateClass$
|
|
4910
|
-
n$3(tagName$
|
|
4933
|
+
SonicScope = __decorateClass$O([
|
|
4934
|
+
n$3(tagName$L)
|
|
4911
4935
|
], SonicScope);
|
|
4912
|
-
var __defProp$
|
|
4913
|
-
var __getOwnPropDesc$
|
|
4914
|
-
var __decorateClass$
|
|
4915
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
4936
|
+
var __defProp$N = Object.defineProperty;
|
|
4937
|
+
var __getOwnPropDesc$N = Object.getOwnPropertyDescriptor;
|
|
4938
|
+
var __decorateClass$N = (decorators, target, key, kind) => {
|
|
4939
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$N(target, key) : target;
|
|
4916
4940
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
4917
4941
|
if (decorator = decorators[i2])
|
|
4918
4942
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4919
4943
|
if (kind && result)
|
|
4920
|
-
__defProp$
|
|
4944
|
+
__defProp$N(target, key, result);
|
|
4921
4945
|
return result;
|
|
4922
4946
|
};
|
|
4923
|
-
const tagName$
|
|
4924
|
-
let SonicComponent$
|
|
4947
|
+
const tagName$K = "sonic-example";
|
|
4948
|
+
let SonicComponent$2 = class extends Subscriber$1(s$2) {
|
|
4925
4949
|
constructor() {
|
|
4926
4950
|
super(...arguments);
|
|
4927
4951
|
this.text = "Example";
|
|
@@ -4930,21 +4954,21 @@ let SonicComponent$1 = class extends Subscriber$1(s$2) {
|
|
|
4930
4954
|
return $$1`${this.text}`;
|
|
4931
4955
|
}
|
|
4932
4956
|
};
|
|
4933
|
-
__decorateClass$
|
|
4957
|
+
__decorateClass$N([
|
|
4934
4958
|
e$5()
|
|
4935
|
-
], SonicComponent$
|
|
4936
|
-
SonicComponent$
|
|
4937
|
-
n$3(tagName$
|
|
4938
|
-
], SonicComponent$
|
|
4939
|
-
var __defProp$
|
|
4940
|
-
var __getOwnPropDesc$
|
|
4941
|
-
var __decorateClass$
|
|
4942
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
4959
|
+
], SonicComponent$2.prototype, "text", 2);
|
|
4960
|
+
SonicComponent$2 = __decorateClass$N([
|
|
4961
|
+
n$3(tagName$K)
|
|
4962
|
+
], SonicComponent$2);
|
|
4963
|
+
var __defProp$M = Object.defineProperty;
|
|
4964
|
+
var __getOwnPropDesc$M = Object.getOwnPropertyDescriptor;
|
|
4965
|
+
var __decorateClass$M = (decorators, target, key, kind) => {
|
|
4966
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$M(target, key) : target;
|
|
4943
4967
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
4944
4968
|
if (decorator = decorators[i2])
|
|
4945
4969
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4946
4970
|
if (kind && result)
|
|
4947
|
-
__defProp$
|
|
4971
|
+
__defProp$M(target, key, result);
|
|
4948
4972
|
return result;
|
|
4949
4973
|
};
|
|
4950
4974
|
const Form = (superClass) => {
|
|
@@ -4991,22 +5015,22 @@ const Form = (superClass) => {
|
|
|
4991
5015
|
this.requestUpdate();
|
|
4992
5016
|
}
|
|
4993
5017
|
}
|
|
4994
|
-
__decorateClass$
|
|
5018
|
+
__decorateClass$M([
|
|
4995
5019
|
e$5()
|
|
4996
5020
|
], FormInput2.prototype, "forceAutoFill", 2);
|
|
4997
|
-
__decorateClass$
|
|
5021
|
+
__decorateClass$M([
|
|
4998
5022
|
e$5({ type: String })
|
|
4999
5023
|
], FormInput2.prototype, "type", 1);
|
|
5000
|
-
__decorateClass$
|
|
5024
|
+
__decorateClass$M([
|
|
5001
5025
|
e$5()
|
|
5002
5026
|
], FormInput2.prototype, "description", 1);
|
|
5003
|
-
__decorateClass$
|
|
5027
|
+
__decorateClass$M([
|
|
5004
5028
|
e$5()
|
|
5005
5029
|
], FormInput2.prototype, "label", 1);
|
|
5006
|
-
__decorateClass$
|
|
5030
|
+
__decorateClass$M([
|
|
5007
5031
|
e$5({ type: Number })
|
|
5008
5032
|
], FormInput2.prototype, "tabindex", 2);
|
|
5009
|
-
__decorateClass$
|
|
5033
|
+
__decorateClass$M([
|
|
5010
5034
|
e$5({ type: String })
|
|
5011
5035
|
], FormInput2.prototype, "autocomplete", 2);
|
|
5012
5036
|
return FormInput2;
|
|
@@ -5027,91 +5051,294 @@ win$2["concorde-mixins"] = {
|
|
|
5027
5051
|
Subscriber,
|
|
5028
5052
|
TemplatesContainer
|
|
5029
5053
|
};
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
5054
|
+
class SDUIDescriptorTransformer {
|
|
5055
|
+
constructor() {
|
|
5056
|
+
}
|
|
5057
|
+
async transform(sduiDescriptor, transformDescriptor) {
|
|
5058
|
+
this.sduiDescriptor = sduiDescriptor;
|
|
5059
|
+
if (this.sduiDescriptor.library) {
|
|
5060
|
+
for (let key in transformDescriptor.library) {
|
|
5061
|
+
this.sduiDescriptor.library[key] = transformDescriptor.library[key];
|
|
5062
|
+
}
|
|
5063
|
+
}
|
|
5064
|
+
for (let item of transformDescriptor.transforms) {
|
|
5065
|
+
this.transformAction(item);
|
|
5066
|
+
}
|
|
5067
|
+
}
|
|
5068
|
+
transformAction(transformAction) {
|
|
5069
|
+
let uis = this.getNodesMatchingPatterns(transformAction.patterns, this.sduiDescriptor);
|
|
5070
|
+
this[transformAction.action](transformAction, uis);
|
|
5071
|
+
}
|
|
5072
|
+
getNodesMatchingPatterns(patterns, node) {
|
|
5073
|
+
if (!patterns)
|
|
5074
|
+
return [];
|
|
5075
|
+
if (!node)
|
|
5076
|
+
return [];
|
|
5077
|
+
let nodes = node.nodes;
|
|
5078
|
+
if (!nodes)
|
|
5079
|
+
return [];
|
|
5080
|
+
let result = [];
|
|
5081
|
+
let index = 0;
|
|
5082
|
+
for (let pattern of patterns) {
|
|
5083
|
+
for (let child of nodes) {
|
|
5084
|
+
if (this.nodeMatchesPattern(pattern, child)) {
|
|
5085
|
+
result.push({ parent: node, child, index });
|
|
5086
|
+
}
|
|
5087
|
+
result = result.concat(this.getNodesMatchingPatterns([pattern], child));
|
|
5088
|
+
index++;
|
|
5089
|
+
}
|
|
5090
|
+
}
|
|
5091
|
+
return result;
|
|
5092
|
+
}
|
|
5093
|
+
stringMatchesExpression(stringToTest, regExpString) {
|
|
5094
|
+
return !regExpString || stringToTest && stringToTest.match(regExpString);
|
|
5095
|
+
}
|
|
5096
|
+
nodeMatchesPattern(pattern, node) {
|
|
5097
|
+
let patternDynamic = pattern;
|
|
5098
|
+
let nodeDynamic = node;
|
|
5099
|
+
let keys = ["libraryKey", "innerHTML", "prefix", "suffix", "markup"];
|
|
5100
|
+
for (let key of keys) {
|
|
5101
|
+
if (!this.stringMatchesExpression(nodeDynamic[key], patternDynamic[key])) {
|
|
5102
|
+
return false;
|
|
5103
|
+
}
|
|
5104
|
+
}
|
|
5105
|
+
let patternAttributes = pattern.attributes;
|
|
5106
|
+
let nodeAttributes = node.attributes;
|
|
5107
|
+
if (patternAttributes && !nodeAttributes)
|
|
5108
|
+
return false;
|
|
5109
|
+
if (patternAttributes) {
|
|
5110
|
+
for (let name in patternAttributes) {
|
|
5111
|
+
if (!this.stringMatchesExpression(nodeAttributes[name], patternAttributes[name])) {
|
|
5112
|
+
return false;
|
|
5113
|
+
}
|
|
5114
|
+
}
|
|
5115
|
+
}
|
|
5116
|
+
return true;
|
|
5117
|
+
}
|
|
5118
|
+
unWrap(transformAction, list) {
|
|
5119
|
+
var _a2, _b;
|
|
5120
|
+
for (let item of list) {
|
|
5121
|
+
(_a2 = item.parent.nodes) == null ? void 0 : _a2.splice(item.parent.nodes.indexOf(item.child), 1);
|
|
5122
|
+
if (item.child.nodes) {
|
|
5123
|
+
(_b = item.parent.nodes) == null ? void 0 : _b.splice(item.parent.nodes.indexOf(item.child), 0, ...item.child.nodes);
|
|
5124
|
+
}
|
|
5125
|
+
}
|
|
5126
|
+
}
|
|
5127
|
+
wrap(transformAction, list) {
|
|
5128
|
+
var _a2, _b, _c, _d, _e;
|
|
5129
|
+
let wrapper = __spreadValues({}, transformAction.ui);
|
|
5130
|
+
if (!wrapper.nodes)
|
|
5131
|
+
wrapper.nodes = [];
|
|
5132
|
+
let i2 = 0;
|
|
5133
|
+
for (let item of list) {
|
|
5134
|
+
(_a2 = wrapper.nodes) == null ? void 0 : _a2.push(item.child);
|
|
5135
|
+
if (i2 > 0) {
|
|
5136
|
+
(_b = item.parent.nodes) == null ? void 0 : _b.splice(item.parent.nodes.indexOf(item.child), 1);
|
|
5137
|
+
}
|
|
5138
|
+
i2++;
|
|
5139
|
+
}
|
|
5140
|
+
let idx = (_c = list[0].parent.nodes) == null ? void 0 : _c.indexOf(list[0].child);
|
|
5141
|
+
if (idx) {
|
|
5142
|
+
(_d = list[0].parent.nodes) == null ? void 0 : _d.splice(idx, 1);
|
|
5143
|
+
(_e = list[0].parent.nodes) == null ? void 0 : _e.splice(idx, 0, wrapper);
|
|
5144
|
+
}
|
|
5145
|
+
}
|
|
5146
|
+
move(transformAction, list) {
|
|
5147
|
+
var _a2, _b;
|
|
5148
|
+
for (let item of list) {
|
|
5149
|
+
(_a2 = item.parent.nodes) == null ? void 0 : _a2.splice(item.parent.nodes.indexOf(item.child), 1);
|
|
5150
|
+
let positionType = transformAction.after ? "after" : "before";
|
|
5151
|
+
let element = this.getNodesMatchingPatterns([transformAction[positionType]], this.sduiDescriptor)[0];
|
|
5152
|
+
if (element) {
|
|
5153
|
+
(_b = element.parent.nodes) == null ? void 0 : _b.splice(element.parent.nodes.indexOf(element.child) + (positionType == "after" ? 1 : 0), 0, item.child);
|
|
5154
|
+
}
|
|
5155
|
+
}
|
|
5156
|
+
}
|
|
5157
|
+
remap(transformAction, list) {
|
|
5158
|
+
var _a2, _b, _c;
|
|
5159
|
+
console.log(list);
|
|
5160
|
+
for (let item of list) {
|
|
5161
|
+
let newUI = __spreadValues({}, transformAction.ui);
|
|
5162
|
+
if (!newUI.attributes) {
|
|
5163
|
+
newUI.attributes = {};
|
|
5164
|
+
}
|
|
5165
|
+
let childAttributes = item.child.attributes;
|
|
5166
|
+
if (childAttributes) {
|
|
5167
|
+
for (let key in childAttributes) {
|
|
5168
|
+
if (!newUI.attributes.hasOwnProperty("key"))
|
|
5169
|
+
newUI.attributes[key] = childAttributes[key];
|
|
5170
|
+
}
|
|
5171
|
+
}
|
|
5172
|
+
let keys = ["libraryKey", "innerHTML", "prefix", "suffix", "markup"];
|
|
5173
|
+
let childDynamic = item.child;
|
|
5174
|
+
let newUIDynamic = newUI;
|
|
5175
|
+
for (let key of keys) {
|
|
5176
|
+
if (!newUI.hasOwnProperty(key) && childDynamic[key])
|
|
5177
|
+
newUIDynamic[key] = childDynamic[key];
|
|
5178
|
+
}
|
|
5179
|
+
if (!newUI.nodes) {
|
|
5180
|
+
newUI.nodes = [];
|
|
5181
|
+
}
|
|
5182
|
+
let childNodes = item.child.nodes;
|
|
5183
|
+
if (childNodes) {
|
|
5184
|
+
for (let node of childNodes) {
|
|
5185
|
+
newUI.nodes.push(node);
|
|
5186
|
+
}
|
|
5187
|
+
}
|
|
5188
|
+
let idx = ((_a2 = item.parent.nodes) == null ? void 0 : _a2.indexOf(item.child)) || -1;
|
|
5189
|
+
if (idx != -1) {
|
|
5190
|
+
(_b = item.parent.nodes) == null ? void 0 : _b.splice(idx, 1);
|
|
5191
|
+
(_c = item.parent.nodes) == null ? void 0 : _c.splice(idx, 0, newUI);
|
|
5192
|
+
}
|
|
5193
|
+
}
|
|
5194
|
+
}
|
|
5195
|
+
delete(transformAction, list) {
|
|
5196
|
+
var _a2;
|
|
5197
|
+
for (let item of list) {
|
|
5198
|
+
(_a2 = item.parent.nodes) == null ? void 0 : _a2.splice(item.parent.nodes.indexOf(item.child), 1);
|
|
5199
|
+
}
|
|
5200
|
+
}
|
|
5201
|
+
insert(transformAction, list) {
|
|
5202
|
+
var _a2;
|
|
5203
|
+
let positionType = transformAction.after ? "after" : transformAction.before ? "before" : "in";
|
|
5204
|
+
let node = this.getNodesMatchingPatterns([transformAction[positionType]], this.sduiDescriptor)[0];
|
|
5205
|
+
if (node) {
|
|
5206
|
+
if (positionType == "in") {
|
|
5207
|
+
if (!node.child.nodes)
|
|
5208
|
+
node.child.nodes = [];
|
|
5209
|
+
node.child.nodes.push(__spreadValues({}, transformAction.ui));
|
|
5210
|
+
} else {
|
|
5211
|
+
(_a2 = node.parent.nodes) == null ? void 0 : _a2.splice(node.parent.nodes.indexOf(node.child) + (positionType == "after" ? 1 : 0), 0, __spreadValues({}, transformAction.ui));
|
|
5212
|
+
}
|
|
5213
|
+
}
|
|
5214
|
+
}
|
|
5215
|
+
}
|
|
5216
|
+
var __defProp$L = Object.defineProperty;
|
|
5217
|
+
var __getOwnPropDesc$L = Object.getOwnPropertyDescriptor;
|
|
5218
|
+
var __decorateClass$L = (decorators, target, key, kind) => {
|
|
5219
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$L(target, key) : target;
|
|
5034
5220
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
5035
5221
|
if (decorator = decorators[i2])
|
|
5036
5222
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5037
5223
|
if (kind && result)
|
|
5038
|
-
__defProp$
|
|
5224
|
+
__defProp$L(target, key, result);
|
|
5039
5225
|
return result;
|
|
5040
5226
|
};
|
|
5041
|
-
const tagName$
|
|
5042
|
-
let
|
|
5227
|
+
const tagName$J = "sonic-sdui";
|
|
5228
|
+
let SonicSDUI = class extends Fetcher(Subscriber(s$2)) {
|
|
5043
5229
|
connectedCallback() {
|
|
5044
5230
|
this.noShadowDom = "";
|
|
5231
|
+
this.displayContents = true;
|
|
5045
5232
|
this.isFetchEnabled = this.hasAttribute("fetch");
|
|
5046
5233
|
super.connectedCallback();
|
|
5047
5234
|
}
|
|
5048
5235
|
get props() {
|
|
5049
5236
|
return super.props;
|
|
5050
5237
|
}
|
|
5051
|
-
async loadJS(src) {
|
|
5052
|
-
const p2 = new Promise(async (resolve) => {
|
|
5053
|
-
let script = document.createElement("script");
|
|
5054
|
-
script.src = src;
|
|
5055
|
-
script.onload = () => resolve(true);
|
|
5056
|
-
script.onerror = () => resolve(true);
|
|
5057
|
-
document.head.appendChild(script);
|
|
5058
|
-
});
|
|
5059
|
-
return p2;
|
|
5060
|
-
}
|
|
5061
|
-
async loadCSS(src) {
|
|
5062
|
-
const p2 = new Promise(async (resolve) => {
|
|
5063
|
-
var cssnode = document.createElement("link");
|
|
5064
|
-
cssnode.type = "text/css";
|
|
5065
|
-
cssnode.rel = "stylesheet";
|
|
5066
|
-
cssnode.href = src;
|
|
5067
|
-
cssnode.onload = () => resolve(true);
|
|
5068
|
-
cssnode.onerror = () => resolve(true);
|
|
5069
|
-
document.head.appendChild(cssnode);
|
|
5070
|
-
});
|
|
5071
|
-
return p2;
|
|
5072
|
-
}
|
|
5073
5238
|
set props(value) {
|
|
5074
5239
|
super.props = value;
|
|
5075
5240
|
this.updateContents();
|
|
5076
5241
|
}
|
|
5077
5242
|
async updateContents() {
|
|
5243
|
+
this.removeChildren();
|
|
5244
|
+
if (!this.props)
|
|
5245
|
+
return;
|
|
5246
|
+
this.loadAssets();
|
|
5247
|
+
await this.loadLibrary();
|
|
5248
|
+
await this.transformSDUIDescriptor();
|
|
5249
|
+
this.parseRootNodes();
|
|
5250
|
+
}
|
|
5251
|
+
removeChildren() {
|
|
5078
5252
|
while ([...this.children].filter((elt) => elt.nodeName != "SLOT").length > 0) {
|
|
5079
5253
|
this.removeChild(this.children[0]);
|
|
5080
5254
|
}
|
|
5255
|
+
}
|
|
5256
|
+
loadAssets() {
|
|
5081
5257
|
if (!this.props)
|
|
5082
5258
|
return;
|
|
5083
|
-
|
|
5084
|
-
|
|
5085
|
-
|
|
5086
|
-
|
|
5087
|
-
|
|
5088
|
-
|
|
5089
|
-
|
|
5090
|
-
this.loadCSS(src);
|
|
5091
|
-
}
|
|
5092
|
-
} catch (e2) {
|
|
5259
|
+
if (this.props.js) {
|
|
5260
|
+
for (const src of this.props.js)
|
|
5261
|
+
HTML.loadJS(src);
|
|
5262
|
+
}
|
|
5263
|
+
if (this.props.css) {
|
|
5264
|
+
for (const src of this.props.css)
|
|
5265
|
+
HTML.loadCSS(src);
|
|
5093
5266
|
}
|
|
5094
|
-
|
|
5095
|
-
|
|
5267
|
+
}
|
|
5268
|
+
async transformSDUIDescriptor() {
|
|
5269
|
+
if (!this.hasAttribute("transformation"))
|
|
5270
|
+
return;
|
|
5271
|
+
let result = await fetch(this.getAttribute("transformation"));
|
|
5272
|
+
let json = await result.json();
|
|
5273
|
+
let transformer = new SDUIDescriptorTransformer();
|
|
5274
|
+
await transformer.transform(this.props, json);
|
|
5275
|
+
}
|
|
5276
|
+
async loadLibrary() {
|
|
5277
|
+
if (!this.hasAttribute("library"))
|
|
5278
|
+
return;
|
|
5279
|
+
let result = await fetch(this.getAttribute("library"));
|
|
5280
|
+
let json = await result.json();
|
|
5281
|
+
this.props.library = json;
|
|
5282
|
+
}
|
|
5283
|
+
parseRootNodes() {
|
|
5284
|
+
if (!this.props)
|
|
5096
5285
|
return;
|
|
5097
|
-
|
|
5098
|
-
|
|
5286
|
+
let nodes = this.props.nodes;
|
|
5287
|
+
if (!nodes)
|
|
5288
|
+
return;
|
|
5289
|
+
nodes.forEach((node) => this.appendChild(this.parseChild(node)));
|
|
5290
|
+
}
|
|
5291
|
+
parseChild(node) {
|
|
5292
|
+
let tagName2 = node.tagName || "div";
|
|
5293
|
+
let { element, contentElement } = this.handleLibrary(node, tagName2);
|
|
5294
|
+
this.handleAttributes(node, element);
|
|
5295
|
+
element = this.handleMarkup(node, element);
|
|
5296
|
+
if (!contentElement)
|
|
5297
|
+
contentElement = element;
|
|
5298
|
+
this.handleChildNodes(node, contentElement, element);
|
|
5299
|
+
this.handleInnerHTML(node, contentElement);
|
|
5300
|
+
if (node.prefix || node.suffix) {
|
|
5301
|
+
const container = this.handlePrefixSuffix(node, element);
|
|
5302
|
+
return container;
|
|
5099
5303
|
}
|
|
5304
|
+
return element;
|
|
5100
5305
|
}
|
|
5101
|
-
|
|
5102
|
-
|
|
5103
|
-
|
|
5104
|
-
|
|
5105
|
-
|
|
5106
|
-
|
|
5107
|
-
|
|
5108
|
-
|
|
5306
|
+
handlePrefixSuffix(node, element) {
|
|
5307
|
+
const container = document.createElement("div");
|
|
5308
|
+
container.innerHTML = (node.prefix || "") + element.outerHTML + (node.suffix || "");
|
|
5309
|
+
container.style.display = "contents";
|
|
5310
|
+
return container;
|
|
5311
|
+
}
|
|
5312
|
+
handleChildNodes(node, contentElement, element) {
|
|
5313
|
+
if (node.nodes) {
|
|
5314
|
+
let children = node.nodes;
|
|
5315
|
+
for (let child of children) {
|
|
5316
|
+
let childElement = this.parseChild(child);
|
|
5317
|
+
let nodeToAppendOn = contentElement;
|
|
5318
|
+
if (child.parentElementSelector) {
|
|
5319
|
+
nodeToAppendOn = element.querySelector(child.parentElementSelector) || contentElement;
|
|
5320
|
+
}
|
|
5321
|
+
if (nodeToAppendOn.shadowRoot)
|
|
5322
|
+
nodeToAppendOn.shadowRoot.appendChild(childElement);
|
|
5323
|
+
else
|
|
5324
|
+
nodeToAppendOn.appendChild(childElement);
|
|
5325
|
+
}
|
|
5109
5326
|
}
|
|
5110
|
-
|
|
5111
|
-
|
|
5327
|
+
}
|
|
5328
|
+
handleLibrary(node, tagName2) {
|
|
5329
|
+
let element;
|
|
5330
|
+
let contentElement;
|
|
5331
|
+
if (node.libraryKey && this.props.library) {
|
|
5332
|
+
element = this.parseChild(this.props.library[node.libraryKey] || { tagName: "div" });
|
|
5333
|
+
let selector = (this.props.library[node.libraryKey] || {}).contentElementSelector;
|
|
5334
|
+
if (selector)
|
|
5335
|
+
contentElement = element.querySelector(selector);
|
|
5112
5336
|
} else
|
|
5113
|
-
element = document.createElement(
|
|
5114
|
-
|
|
5337
|
+
element = document.createElement(tagName2);
|
|
5338
|
+
return { element, contentElement };
|
|
5339
|
+
}
|
|
5340
|
+
handleAttributes(node, element) {
|
|
5341
|
+
let attributes = node.attributes;
|
|
5115
5342
|
for (let k2 in attributes) {
|
|
5116
5343
|
let attr = attributes[k2];
|
|
5117
5344
|
if (Objects.isObject(attr)) {
|
|
@@ -5119,52 +5346,55 @@ let SonicComponent = class extends Fetcher(Subscriber(s$2)) {
|
|
|
5119
5346
|
}
|
|
5120
5347
|
element.setAttribute(k2, attr);
|
|
5121
5348
|
}
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
|
|
5126
|
-
|
|
5127
|
-
|
|
5128
|
-
if (element.shadowRoot)
|
|
5129
|
-
element.shadowRoot.appendChild(this.parseChild(child));
|
|
5130
|
-
else
|
|
5131
|
-
element.appendChild(this.parseChild(child));
|
|
5132
|
-
}
|
|
5133
|
-
}
|
|
5134
|
-
if (props.prefix || props.suffix) {
|
|
5135
|
-
const container = document.createElement("div");
|
|
5136
|
-
container.innerHTML = (props.prefix || "") + element.outerHTML + (props.suffix || "");
|
|
5137
|
-
container.style.display = "contents";
|
|
5138
|
-
return container;
|
|
5349
|
+
}
|
|
5350
|
+
handleMarkup(node, element) {
|
|
5351
|
+
if (node.markup) {
|
|
5352
|
+
element = document.createElement("div");
|
|
5353
|
+
element.style.display = "contents";
|
|
5354
|
+
element.innerHTML = node.markup;
|
|
5139
5355
|
}
|
|
5140
5356
|
return element;
|
|
5141
5357
|
}
|
|
5358
|
+
handleInnerHTML(node, contentElement) {
|
|
5359
|
+
var _a2;
|
|
5360
|
+
if (!node.innerHTML)
|
|
5361
|
+
return;
|
|
5362
|
+
if (node.innerHTML.indexOf("wording_") != -1) {
|
|
5363
|
+
let wordingProvider = this.getAncestorAttributeValue("wordingProvider");
|
|
5364
|
+
(_a2 = this.api) == null ? void 0 : _a2.post(wordingProvider, { labels: [node.innerHTML.substring(8)] }).then((value) => {
|
|
5365
|
+
if (contentElement)
|
|
5366
|
+
contentElement.innerHTML += value;
|
|
5367
|
+
});
|
|
5368
|
+
} else if (contentElement) {
|
|
5369
|
+
contentElement.innerHTML += node.innerHTML;
|
|
5370
|
+
}
|
|
5371
|
+
}
|
|
5142
5372
|
};
|
|
5143
|
-
__decorateClass$
|
|
5373
|
+
__decorateClass$L([
|
|
5144
5374
|
e$5()
|
|
5145
|
-
],
|
|
5146
|
-
|
|
5147
|
-
n$3(tagName$
|
|
5148
|
-
],
|
|
5375
|
+
], SonicSDUI.prototype, "props", 1);
|
|
5376
|
+
SonicSDUI = __decorateClass$L([
|
|
5377
|
+
n$3(tagName$J)
|
|
5378
|
+
], SonicSDUI);
|
|
5149
5379
|
const coreVariables = r$5`:host{--sc-font-family-base:"Inter var",-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);--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.5);--sc-rounded-xl:calc(var(--sc-rounded) * 7);--sc-rounded-size-intensity:calc((1em - 1rem) * .4);--sc-btn-rounded-intensity:1.4;--sc-btn-font-weight:500;--sc-btn-rounded:calc((var(--sc-rounded) + var(--sc-rounded-size-intensity)) * var(--sc-btn-rounded-intensity) );--sc-placeholder-bg:rgba(17, 24, 39, 0.05);--sc-shadow-sm:0 1px 3px 0 rgb(0 0 0 / 0.1),0 1px 2px -1px rgb(0 0 0 / 0.1);--sc-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1),0 2px 4px -2px rgb(0 0 0 / 0.1);--sc-shadow-lg:0 10px 15px -3px rgb(0 0 0 / 0.1),0 4px 6px -4px rgb(0 0 0 / 0.1);--sc-shadow-xl:0 20px 25px -5px rgb(0 0 0 / 0.1),0 8px 10px -6px rgb(0 0 0 / 0.1);--sc-shadow-2xl:0 25px 50px -12px rgb(0 0 0 / 0.25);--sc-border-width:max(1px, 0.12rem);--sc-form-height:2.5em;--sc-form-border-width:var(--sc-border-width);--sc-input-bg:var(--sc-base-100);--sc-input-border-color:var(--sc-input-bg);--sc-input-rounded-intensity:1.4;--sc-input-rounded:calc((var(--sc-rounded) + var(--sc-rounded-size-intensity)) * var(--sc-input-rounded-intensity) );--sc-label-font-weight:500;--sc-contrast-content:#fff;--sc-contrast:#11151f;--sc-scrollbar-bg:var(--sc-base-400);--sc-body-bg:var(--sc-base)}`;
|
|
5150
5380
|
const light = r$5`: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)}`;
|
|
5151
5381
|
const darkCss = r$5``;
|
|
5152
5382
|
const dark = r$5`:host([theme=dark]){${darkCss}}@media (prefers-color-scheme:dark){:host([theme=auto]){${darkCss}}}`;
|
|
5153
5383
|
var tailwindImport = r$5`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input:-ms-input-placeholder,textarea:-ms-input-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::-webkit-backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where([class~="lead"]):not(:where([class~="not-prose"] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~="not-prose"] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~="not-prose"] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~="not-prose"] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~="not-prose"] *)){color:inherit}.prose :where(thead th strong):not(:where([class~="not-prose"] *)){color:inherit}.prose :where(ol):not(:where([class~="not-prose"] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}.prose :where(ol[type="A"]):not(:where([class~="not-prose"] *)){list-style-type:upper-alpha}.prose :where(ol[type="a"]):not(:where([class~="not-prose"] *)){list-style-type:lower-alpha}.prose :where(ol[type="A" s]):not(:where([class~="not-prose"] *)){list-style-type:upper-alpha}.prose :where(ol[type="a" s]):not(:where([class~="not-prose"] *)){list-style-type:lower-alpha}.prose :where(ol[type="I"]):not(:where([class~="not-prose"] *)){list-style-type:upper-roman}.prose :where(ol[type="i"]):not(:where([class~="not-prose"] *)){list-style-type:lower-roman}.prose :where(ol[type="I" s]):not(:where([class~="not-prose"] *)){list-style-type:upper-roman}.prose :where(ol[type="i" s]):not(:where([class~="not-prose"] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~="not-prose"] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~="not-prose"] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}.prose :where(ol > li):not(:where([class~="not-prose"] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul > li):not(:where([class~="not-prose"] *))::marker{color:var(--tw-prose-bullets)}.prose :where(hr):not(:where([class~="not-prose"] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~="not-prose"] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-left-width:.25rem;border-left-color:var(--tw-prose-quote-borders);quotes:"\\201c""\\201d""\\2018""\\2019";margin-top:1.6em;margin-bottom:1.6em;padding-left:1em}.prose :where(blockquote p:first-of-type):not(:where([class~="not-prose"] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~="not-prose"] *)):after{content:close-quote}.prose :where(h1):not(:where([class~="not-prose"] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~="not-prose"] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~="not-prose"] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~="not-prose"] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~="not-prose"] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~="not-prose"] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~="not-prose"] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~="not-prose"] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~="not-prose"] *)){margin-top:2em;margin-bottom:2em}.prose :where(figure > *):not(:where([class~="not-prose"] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~="not-prose"] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose :where(code):not(:where([class~="not-prose"] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~="not-prose"] *)):before{content:"\`"}.prose :where(code):not(:where([class~="not-prose"] *)):after{content:"\`"}.prose :where(a code):not(:where([class~="not-prose"] *)){color:inherit}.prose :where(h1 code):not(:where([class~="not-prose"] *)){color:inherit}.prose :where(h2 code):not(:where([class~="not-prose"] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~="not-prose"] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~="not-prose"] *)){color:inherit}.prose :where(blockquote code):not(:where([class~="not-prose"] *)){color:inherit}.prose :where(thead th code):not(:where([class~="not-prose"] *)){color:inherit}.prose :where(pre):not(:where([class~="not-prose"] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding:.8571429em 1.1428571em}.prose :where(pre code):not(:where([class~="not-prose"] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~="not-prose"] *)):before{content:none}.prose :where(pre code):not(:where([class~="not-prose"] *)):after{content:none}.prose :where(table):not(:where([class~="not-prose"] *)){width:100%;table-layout:auto;text-align:left;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~="not-prose"] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~="not-prose"] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-right:.5714286em;padding-bottom:.5714286em;padding-left:.5714286em}.prose :where(tbody tr):not(:where([class~="not-prose"] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~="not-prose"] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~="not-prose"] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~="not-prose"] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~="not-prose"] *)){vertical-align:top}.prose{--tw-prose-body: var(--sc-base-content);--tw-prose-headings: var(--sc-base-900);--tw-prose-lead: var(--sc-base-600);--tw-prose-links: var(--sc-base-900);--tw-prose-bold: var(--sc-base-900);--tw-prose-counters: var(--sc-base-500);--tw-prose-bullets: var(--sc-base-300);--tw-prose-hr: var(--sc-base-200);--tw-prose-quotes: var(--sc-base-900);--tw-prose-quote-borders: var(--sc-base-200);--tw-prose-captions: var(--sc-base-500);--tw-prose-code: var(--sc-base-900);--tw-prose-pre-code: var(--sc-base-200);--tw-prose-pre-bg: var(--sc-base-800);--tw-prose-th-borders: var(--sc-base-300);--tw-prose-td-borders: var(--sc-base-200);--tw-prose-invert-body: var(--sc-base-300);--tw-prose-invert-headings: var(--sc-base);--tw-prose-invert-lead: var(--sc-base-400);--tw-prose-invert-links: var(--sc-base);--tw-prose-invert-bold: var(--sc-base);--tw-prose-invert-counters: var(--sc-base-400);--tw-prose-invert-bullets: var(--sc-base-600);--tw-prose-invert-hr: var(--sc-base-700);--tw-prose-invert-quotes: var(--sc-base-100);--tw-prose-invert-quote-borders: var(--sc-base-700);--tw-prose-invert-captions: var(--sc-base-400);--tw-prose-invert-code: var(--sc-base);--tw-prose-invert-pre-code: var(--sc-base-300);--tw-prose-invert-pre-bg: var(--sc-base-900);--tw-prose-invert-th-borders: var(--sc-base-600);--tw-prose-invert-td-borders: var(--sc-base-700);font-size:1rem;line-height:1.75}.prose :where(p):not(:where([class~="not-prose"] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(video):not(:where([class~="not-prose"] *)){margin-top:2em;margin-bottom:2em}.prose :where(figure):not(:where([class~="not-prose"] *)){margin-top:2em;margin-bottom:2em}.prose :where(li):not(:where([class~="not-prose"] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol > li):not(:where([class~="not-prose"] *)){padding-left:.375em}.prose :where(ul > li):not(:where([class~="not-prose"] *)){padding-left:.375em}.prose :where(.prose > ul > li p):not(:where([class~="not-prose"] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.25em}.prose :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.25em}.prose :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.25em}.prose :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~="not-prose"] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(hr + *):not(:where([class~="not-prose"] *)){margin-top:0}.prose :where(h2 + *):not(:where([class~="not-prose"] *)){margin-top:0}.prose :where(h3 + *):not(:where([class~="not-prose"] *)){margin-top:0}.prose :where(h4 + *):not(:where([class~="not-prose"] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~="not-prose"] *)){padding-left:0}.prose :where(thead th:last-child):not(:where([class~="not-prose"] *)){padding-right:0}.prose :where(tbody td,tfoot td):not(:where([class~="not-prose"] *)){padding:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~="not-prose"] *)){padding-left:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~="not-prose"] *)){padding-right:0}.prose :where(.prose > :first-child):not(:where([class~="not-prose"] *)){margin-top:0}.prose :where(.prose > :last-child):not(:where([class~="not-prose"] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.7142857}.prose-sm :where(p):not(:where([class~="not-prose"] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where([class~="lead"]):not(:where([class~="not-prose"] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.prose-sm :where(blockquote):not(:where([class~="not-prose"] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-left:1.1111111em}.prose-sm :where(h1):not(:where([class~="not-prose"] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.prose-sm :where(h2):not(:where([class~="not-prose"] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.prose-sm :where(h3):not(:where([class~="not-prose"] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.prose-sm :where(h4):not(:where([class~="not-prose"] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.prose-sm :where(img):not(:where([class~="not-prose"] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(video):not(:where([class~="not-prose"] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure):not(:where([class~="not-prose"] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure > *):not(:where([class~="not-prose"] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~="not-prose"] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.prose-sm :where(code):not(:where([class~="not-prose"] *)){font-size:.8571429em}.prose-sm :where(h2 code):not(:where([class~="not-prose"] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~="not-prose"] *)){font-size:.8888889em}.prose-sm :where(pre):not(:where([class~="not-prose"] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding:.6666667em 1em}.prose-sm :where(ol):not(:where([class~="not-prose"] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-left:1.5714286em}.prose-sm :where(ul):not(:where([class~="not-prose"] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-left:1.5714286em}.prose-sm :where(li):not(:where([class~="not-prose"] *)){margin-top:.2857143em;margin-bottom:.2857143em}.prose-sm :where(ol > li):not(:where([class~="not-prose"] *)){padding-left:.4285714em}.prose-sm :where(ul > li):not(:where([class~="not-prose"] *)){padding-left:.4285714em}.prose-sm :where(.prose > ul > li p):not(:where([class~="not-prose"] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.1428571em}.prose-sm :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.1428571em}.prose-sm :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.1428571em}.prose-sm :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.1428571em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~="not-prose"] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(hr):not(:where([class~="not-prose"] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.prose-sm :where(hr + *):not(:where([class~="not-prose"] *)){margin-top:0}.prose-sm :where(h2 + *):not(:where([class~="not-prose"] *)){margin-top:0}.prose-sm :where(h3 + *):not(:where([class~="not-prose"] *)){margin-top:0}.prose-sm :where(h4 + *):not(:where([class~="not-prose"] *)){margin-top:0}.prose-sm :where(table):not(:where([class~="not-prose"] *)){font-size:.8571429em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~="not-prose"] *)){padding-right:1em;padding-bottom:.6666667em;padding-left:1em}.prose-sm :where(thead th:first-child):not(:where([class~="not-prose"] *)){padding-left:0}.prose-sm :where(thead th:last-child):not(:where([class~="not-prose"] *)){padding-right:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~="not-prose"] *)){padding:.6666667em 1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~="not-prose"] *)){padding-left:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~="not-prose"] *)){padding-right:0}.prose-sm :where(.prose > :first-child):not(:where([class~="not-prose"] *)){margin-top:0}.prose-sm :where(.prose > :last-child):not(:where([class~="not-prose"] *)){margin-bottom:0}.prose-base :where(.prose > ul > li p):not(:where([class~="not-prose"] *)){margin-top:.75em;margin-bottom:.75em}.prose-base :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.25em}.prose-base :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.25em}.prose-base :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.25em}.prose-base :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.25em}.prose-base :where(.prose > :first-child):not(:where([class~="not-prose"] *)){margin-top:0}.prose-base :where(.prose > :last-child):not(:where([class~="not-prose"] *)){margin-bottom:0}.prose-lg :where(.prose > ul > li p):not(:where([class~="not-prose"] *)){margin-top:.8888889em;margin-bottom:.8888889em}.prose-lg :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.3333333em}.prose-lg :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.3333333em}.prose-lg :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.3333333em}.prose-lg :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.3333333em}.prose-lg :where(.prose > :first-child):not(:where([class~="not-prose"] *)){margin-top:0}.prose-lg :where(.prose > :last-child):not(:where([class~="not-prose"] *)){margin-bottom:0}.prose-xl :where(.prose > ul > li p):not(:where([class~="not-prose"] *)){margin-top:.8em;margin-bottom:.8em}.prose-xl :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.2em}.prose-xl :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.2em}.prose-xl :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.2em}.prose-xl :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.2em}.prose-xl :where(.prose > :first-child):not(:where([class~="not-prose"] *)){margin-top:0}.prose-xl :where(.prose > :last-child):not(:where([class~="not-prose"] *)){margin-bottom:0}.prose-2xl :where(.prose > ul > li p):not(:where([class~="not-prose"] *)){margin-top:.8333333em;margin-bottom:.8333333em}.prose-2xl :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.3333333em}.prose-2xl :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.3333333em}.prose-2xl :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.3333333em}.prose-2xl :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.3333333em}.prose-2xl :where(.prose > :first-child):not(:where([class~="not-prose"] *)){margin-top:0}.prose-2xl :where(.prose > :last-child):not(:where([class~="not-prose"] *)){margin-bottom:0}.prose-tight :where(p,ul,ol,pre):not(:where([class~="not-prose"] *)){line-height:1.25;margin:0 0 .5em}.prose-tight :where(li):not(:where([class~="not-prose"] *)){margin-bottom:.5em}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:-webkit-sticky;position:sticky}.top-0{top:0px}.left-0{left:0px}.right-1{right:.25rem}.bottom-1{bottom:.25rem}.bottom-4{bottom:1rem}.left-4{left:1rem}.right-4{right:1rem}.top-\\[-1px\\]{top:-1px}.right-5{right:1.25rem}.top-1\\/2{top:50%}.bottom-0{bottom:0px}.-right-1{right:-.25rem}.-bottom-1{bottom:-.25rem}.z-10{z-index:10}.z-20{z-index:20}.z-0{z-index:0}.col-span-full{grid-column:1 / -1}.col-span-3{grid-column:span 3 / span 3}.col-span-2{grid-column:span 2 / span 2}.mx-auto{margin-left:auto;margin-right:auto}.my-8{margin-top:2rem;margin-bottom:2rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-auto{margin-top:auto;margin-bottom:auto}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-\\[-3vw\\]{margin-left:-3vw;margin-right:-3vw}.my-4{margin-top:1rem;margin-bottom:1rem}.my-6{margin-top:1.5rem;margin-bottom:1.5rem}.mb-4{margin-bottom:1rem}.mt-5{margin-top:1.25rem}.mb-1{margin-bottom:.25rem}.mb-6{margin-bottom:1.5rem}.mr-4{margin-right:1rem}.mb-2{margin-bottom:.5rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.mb-5{margin-bottom:1.25rem}.mt-8{margin-top:2rem}.mr-3{margin-right:.75rem}.mt-\\[\\.15em\\]{margin-top:.15em}.mb-10{margin-bottom:2.5rem}.mb-7{margin-bottom:1.75rem}.mb-12{margin-bottom:3rem}.mb-3{margin-bottom:.75rem}.mt-2{margin-top:.5rem}.ml-\\[\\.10em\\]{margin-left:.1em}.ml-3{margin-left:.75rem}.mt-4{margin-top:1rem}.mt-1{margin-top:.25rem}.mr-2{margin-right:.5rem}.mt-3{margin-top:.75rem}.ml-auto{margin-left:auto}.mb-\\[2em\\]{margin-bottom:2em}.mr-1{margin-right:.25rem}.mb-20{margin-bottom:5rem}.ml-2{margin-left:.5rem}.mr-\\[\\.25em\\]{margin-right:.25em}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.h-12{height:3rem}.h-20{height:5rem}.h-2{height:.5rem}.h-5{height:1.25rem}.h-1\\/2{height:50%}.h-96{height:24rem}.max-h-\\[10rem\\]{max-height:10rem}.w-full{width:100%}.w-72{width:18rem}.w-12{width:3rem}.w-20{width:5rem}.w-2{width:.5rem}.w-5{width:1.25rem}.w-10\\/12{width:83.333333%}.w-24{width:6rem}.w-\\[1\\.2em\\]{width:1.2em}.min-w-full{min-width:100%}.min-w-max{min-width:-webkit-max-content;min-width:-moz-max-content;min-width:max-content}.min-w-\\[11rem\\]{min-width:11rem}.min-w-\\[5rem\\]{min-width:5rem}.max-w-lg{max-width:32rem}.max-w-xs{max-width:20rem}.max-w-\\[80ch\\]{max-width:80ch}.max-w-\\[32rem\\]{max-width:32rem}.max-w-\\[20rem\\]{max-width:20rem}.max-w-none{max-width:none}.flex-shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1\\/2{--tw-translate-y: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-1\\/2{--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.grid-cols-\\[minmax\\(0\\,1fr\\)\\,minmax\\(0\\,4fr\\)\\]{grid-template-columns:minmax(0,1fr) minmax(0,4fr)}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.grid-cols-\\[1fr\\,_2fr\\]{grid-template-columns:1fr 2fr}.grid-cols-\\[minmax\\(0\\,_3fr\\)_minmax\\(0\\,_2fr\\)\\]{grid-template-columns:minmax(0,3fr) minmax(0,2fr)}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-\\[minmax\\(6rem\\,_min\\(20\\%\\,_10rem\\)\\)\\,_1fr\\]{grid-template-columns:minmax(6rem,min(20%,10rem)) 1fr}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.justify-around{justify-content:space-around}.gap-5{gap:1.25rem}.gap-8{gap:2rem}.gap-3{gap:.75rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-10{gap:2.5rem}.gap-1{gap:.25rem}.gap-6{gap:1.5rem}.gap-\\[1\\.5em\\]{gap:1.5em}.gap-\\[\\.2rem_\\.7rem\\]{gap:.2rem .7rem}.gap-\\[\\.25em\\]{gap:.25em}.gap-x-10{-moz-column-gap:2.5rem;column-gap:2.5rem}.gap-x-\\[\\.75em\\]{-moz-column-gap:.75em;column-gap:.75em}.self-start{align-self:flex-start}.self-center{align-self:center}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.rounded-lg{border-radius:var(--sc-rounded-lg)}.rounded-md{border-radius:var(--sc-rounded-md)}.rounded{border-radius:var(--sc-rounded)}.rounded-full{border-radius:9999px}.rounded-t-md{border-top-left-radius:var(--sc-rounded-md);border-top-right-radius:var(--sc-rounded-md)}.border{border-width:var(--sc-border-width)}.border-b-\\[1px\\]{border-bottom-width:1px}.border-solid{border-style:solid}.border-dotted{border-style:dotted}.border-success{border-color:var(--sc-success)}.border-t-neutral-200{border-top-color:var(--sc-base-200)}.border-b-neutral-100{border-bottom-color:var(--sc-base-100)}.border-b-neutral-300{border-bottom-color:var(--sc-base-300)}.bg-danger{background-color:var(--sc-danger)}.bg-neutral-0{background-color:var(--sc-base)}.bg-neutral-200{background-color:var(--sc-base-200)}.bg-contrast{background-color:var(--sc-contrast)}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.from-\\[rgba\\(0\\,0\\,10\\,\\.2\\)\\]{--tw-gradient-from: rgba(0,0,10,.2);--tw-gradient-to: rgb(0 0 10 / 0);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.object-contain{-o-object-fit:contain;object-fit:contain}.p-7{padding:1.75rem}.p-8{padding:2rem}.p-4{padding:1rem}.p-3{padding:.75rem}.p-5{padding:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-7{padding-top:1.75rem;padding-bottom:1.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.px-4{padding-left:1rem;padding-right:1rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.px-\\[3vw\\]{padding-left:3vw;padding-right:3vw}.py-2{padding-top:.5rem;padding-bottom:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.pt-20{padding-top:5rem}.pr-3{padding-right:.75rem}.pt-\\[\\.06em\\]{padding-top:.06em}.text-center{text-align:center}.font-headings{font-family:var(--sc-headings-font-family)}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-2xl{font-size:1.5rem;line-height:2rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-xs{font-size:.75rem;line-height:1rem}.text-base{font-size:1rem;line-height:1.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.font-normal{font-weight:400}.font-black{font-weight:900}.font-medium{font-weight:500}.font-extrabold{font-weight:800}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.leading-none{line-height:1}.leading-tight{line-height:1.25}.text-neutral-0{color:var(--sc-base)}.text-neutral-300{color:var(--sc-base-300)}.text-primary{color:var(--sc-primary)}.text-neutral-500{color:var(--sc-base-500)}.text-contrast-content{color:var(--sc-contrast-content)}.text-neutral-400{color:var(--sc-base-400)}.text-info{color:var(--sc-info)}.underline{-webkit-text-decoration-line:underline;text-decoration-line:underline}.no-underline{-webkit-text-decoration-line:none;text-decoration-line:none}.opacity-60{opacity:.6}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\\[0_0_2rem_rgba\\(0\\,0\\,0\\,0\\.2\\)\\]{--tw-shadow: 0 0 2rem rgba(0,0,0,.2);--tw-shadow-colored: 0 0 2rem var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-danger{--tw-shadow-color: var(--sc-danger);--tw-shadow: var(--tw-shadow-colored)}.outline{outline-style:solid}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-lg{--tw-drop-shadow: drop-shadow(0 10px 8px rgb(0 0 0 / .04)) drop-shadow(0 4px 3px rgb(0 0 0 / .1));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-text-decoration-color,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-text-decoration-color,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.\\[display\\:none\\]{display:none}.hover\\:text-neutral-400:hover{color:var(--sc-base-400)}.group:hover .group-hover\\:underline{-webkit-text-decoration-line:underline;text-decoration-line:underline}.prose-img\\:rounded-lg :is(:where(img):not(:where([class~="not-prose"] *))){border-radius:var(--sc-rounded-lg)}@media (min-width: 640px){.sm\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width: 768px){.md\\:block{display:block}.md\\:hidden{display:none}.md\\:grid-cols-\\[minmax\\(0\\,2fr\\)\\,minmax\\(0\\,5fr\\)\\]{grid-template-columns:minmax(0,2fr) minmax(0,5fr)}.md\\:py-4{padding-top:1rem;padding-bottom:1rem}.md\\:text-base{font-size:1rem;line-height:1.5rem}}@media (min-width: 1024px){.lg\\:prose-lg{font-size:1.125rem;line-height:1.7777778}.lg\\:prose-lg :where(p):not(:where([class~="not-prose"] *)){margin-top:1.3333333em;margin-bottom:1.3333333em}.lg\\:prose-lg :where([class~="lead"]):not(:where([class~="not-prose"] *)){font-size:1.2222222em;line-height:1.4545455;margin-top:1.0909091em;margin-bottom:1.0909091em}.lg\\:prose-lg :where(blockquote):not(:where([class~="not-prose"] *)){margin-top:1.6666667em;margin-bottom:1.6666667em;padding-left:1em}.lg\\:prose-lg :where(h1):not(:where([class~="not-prose"] *)){font-size:2.6666667em;margin-top:0;margin-bottom:.8333333em;line-height:1}.lg\\:prose-lg :where(h2):not(:where([class~="not-prose"] *)){font-size:1.6666667em;margin-top:1.8666667em;margin-bottom:1.0666667em;line-height:1.3333333}.lg\\:prose-lg :where(h3):not(:where([class~="not-prose"] *)){font-size:1.3333333em;margin-top:1.6666667em;margin-bottom:.6666667em;line-height:1.5}.lg\\:prose-lg :where(h4):not(:where([class~="not-prose"] *)){margin-top:1.7777778em;margin-bottom:.4444444em;line-height:1.5555556}.lg\\:prose-lg :where(img):not(:where([class~="not-prose"] *)){margin-top:1.7777778em;margin-bottom:1.7777778em}.lg\\:prose-lg :where(video):not(:where([class~="not-prose"] *)){margin-top:1.7777778em;margin-bottom:1.7777778em}.lg\\:prose-lg :where(figure):not(:where([class~="not-prose"] *)){margin-top:1.7777778em;margin-bottom:1.7777778em}.lg\\:prose-lg :where(figure > *):not(:where([class~="not-prose"] *)){margin-top:0;margin-bottom:0}.lg\\:prose-lg :where(figcaption):not(:where([class~="not-prose"] *)){font-size:.8888889em;line-height:1.5;margin-top:1em}.lg\\:prose-lg :where(code):not(:where([class~="not-prose"] *)){font-size:.8888889em}.lg\\:prose-lg :where(h2 code):not(:where([class~="not-prose"] *)){font-size:.8666667em}.lg\\:prose-lg :where(h3 code):not(:where([class~="not-prose"] *)){font-size:.875em}.lg\\:prose-lg :where(pre):not(:where([class~="not-prose"] *)){font-size:.8888889em;line-height:1.75;margin-top:2em;margin-bottom:2em;border-radius:.375rem;padding:1em 1.5em}.lg\\:prose-lg :where(ol):not(:where([class~="not-prose"] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-left:1.5555556em}.lg\\:prose-lg :where(ul):not(:where([class~="not-prose"] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-left:1.5555556em}.lg\\:prose-lg :where(li):not(:where([class~="not-prose"] *)){margin-top:.6666667em;margin-bottom:.6666667em}.lg\\:prose-lg :where(ol > li):not(:where([class~="not-prose"] *)){padding-left:.4444444em}.lg\\:prose-lg :where(ul > li):not(:where([class~="not-prose"] *)){padding-left:.4444444em}.lg\\:prose-lg :where(.prose > ul > li p):not(:where([class~="not-prose"] *)){margin-top:.8888889em;margin-bottom:.8888889em}.lg\\:prose-lg :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.3333333em}.lg\\:prose-lg :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.3333333em}.lg\\:prose-lg :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.3333333em}.lg\\:prose-lg :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.3333333em}.lg\\:prose-lg :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~="not-prose"] *)){margin-top:.8888889em;margin-bottom:.8888889em}.lg\\:prose-lg :where(hr):not(:where([class~="not-prose"] *)){margin-top:3.1111111em;margin-bottom:3.1111111em}.lg\\:prose-lg :where(hr + *):not(:where([class~="not-prose"] *)){margin-top:0}.lg\\:prose-lg :where(h2 + *):not(:where([class~="not-prose"] *)){margin-top:0}.lg\\:prose-lg :where(h3 + *):not(:where([class~="not-prose"] *)){margin-top:0}.lg\\:prose-lg :where(h4 + *):not(:where([class~="not-prose"] *)){margin-top:0}.lg\\:prose-lg :where(table):not(:where([class~="not-prose"] *)){font-size:.8888889em;line-height:1.5}.lg\\:prose-lg :where(thead th):not(:where([class~="not-prose"] *)){padding-right:.75em;padding-bottom:.75em;padding-left:.75em}.lg\\:prose-lg :where(thead th:first-child):not(:where([class~="not-prose"] *)){padding-left:0}.lg\\:prose-lg :where(thead th:last-child):not(:where([class~="not-prose"] *)){padding-right:0}.lg\\:prose-lg :where(tbody td,tfoot td):not(:where([class~="not-prose"] *)){padding:.75em}.lg\\:prose-lg :where(tbody td:first-child,tfoot td:first-child):not(:where([class~="not-prose"] *)){padding-left:0}.lg\\:prose-lg :where(tbody td:last-child,tfoot td:last-child):not(:where([class~="not-prose"] *)){padding-right:0}.lg\\:prose-lg :where(.prose > :first-child):not(:where([class~="not-prose"] *)){margin-top:0}.lg\\:prose-lg :where(.prose > :last-child):not(:where([class~="not-prose"] *)){margin-bottom:0}.lg\\:block{display:block}.lg\\:flex{display:flex}.lg\\:hidden{display:none}.lg\\:w-1\\/2{width:50%}.lg\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\\:text-base{font-size:1rem;line-height:1.5rem}.lg\\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width: 1280px){.xl\\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.xl\\:text-3xl{font-size:1.875rem;line-height:2.25rem}.xl\\:text-lg{font-size:1.125rem;line-height:1.75rem}.xl\\:text-2xl{font-size:1.5rem;line-height:2rem}}
|
|
5154
5384
|
`;
|
|
5155
|
-
var __defProp$
|
|
5156
|
-
var __getOwnPropDesc$
|
|
5157
|
-
var __decorateClass$
|
|
5158
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5385
|
+
var __defProp$K = Object.defineProperty;
|
|
5386
|
+
var __getOwnPropDesc$K = Object.getOwnPropertyDescriptor;
|
|
5387
|
+
var __decorateClass$K = (decorators, target, key, kind) => {
|
|
5388
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$K(target, key) : target;
|
|
5159
5389
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
5160
5390
|
if (decorator = decorators[i2])
|
|
5161
5391
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5162
5392
|
if (kind && result)
|
|
5163
|
-
__defProp$
|
|
5393
|
+
__defProp$K(target, key, result);
|
|
5164
5394
|
return result;
|
|
5165
5395
|
};
|
|
5166
5396
|
r$5`${o$9(tailwindImport)}`;
|
|
5167
|
-
const tagName$
|
|
5397
|
+
const tagName$I = "sonic-theme";
|
|
5168
5398
|
let Theme = class extends s$2 {
|
|
5169
5399
|
constructor() {
|
|
5170
5400
|
super(...arguments);
|
|
@@ -5249,36 +5479,36 @@ Theme.styles = [
|
|
|
5249
5479
|
coreVariables,
|
|
5250
5480
|
r$5`:host([background]){display:block!important;background:var(--sc-body-bg)!important;min-height:100vh}:host([contrastDarkMode]){transition:background-color 2.5s ease}:host([color]){color:var(--sc-base-content)}:host([font]){font-family:var(--sc-font-family-base);font-weight:var(--sc-font-weight-base);font-style:var(--sc-font-style-base)}`
|
|
5251
5481
|
];
|
|
5252
|
-
__decorateClass$
|
|
5482
|
+
__decorateClass$K([
|
|
5253
5483
|
e$5({ type: String, reflect: true })
|
|
5254
5484
|
], Theme.prototype, "theme", 2);
|
|
5255
|
-
__decorateClass$
|
|
5485
|
+
__decorateClass$K([
|
|
5256
5486
|
e$5({ type: Boolean, reflect: true })
|
|
5257
5487
|
], Theme.prototype, "background", 2);
|
|
5258
|
-
__decorateClass$
|
|
5488
|
+
__decorateClass$K([
|
|
5259
5489
|
e$5({ type: Boolean, reflect: true })
|
|
5260
5490
|
], Theme.prototype, "color", 2);
|
|
5261
|
-
__decorateClass$
|
|
5491
|
+
__decorateClass$K([
|
|
5262
5492
|
e$5({ type: Boolean, reflect: true })
|
|
5263
5493
|
], Theme.prototype, "font", 2);
|
|
5264
|
-
__decorateClass$
|
|
5494
|
+
__decorateClass$K([
|
|
5265
5495
|
e$5({ type: Boolean, reflect: true })
|
|
5266
5496
|
], Theme.prototype, "contrastDarkMode", 2);
|
|
5267
|
-
Theme = __decorateClass$
|
|
5268
|
-
n$3(tagName$
|
|
5497
|
+
Theme = __decorateClass$K([
|
|
5498
|
+
n$3(tagName$I)
|
|
5269
5499
|
], Theme);
|
|
5270
|
-
var __defProp$
|
|
5271
|
-
var __getOwnPropDesc$
|
|
5272
|
-
var __decorateClass$
|
|
5273
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5500
|
+
var __defProp$J = Object.defineProperty;
|
|
5501
|
+
var __getOwnPropDesc$J = Object.getOwnPropertyDescriptor;
|
|
5502
|
+
var __decorateClass$J = (decorators, target, key, kind) => {
|
|
5503
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$J(target, key) : target;
|
|
5274
5504
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
5275
5505
|
if (decorator = decorators[i2])
|
|
5276
5506
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5277
5507
|
if (kind && result)
|
|
5278
|
-
__defProp$
|
|
5508
|
+
__defProp$J(target, key, result);
|
|
5279
5509
|
return result;
|
|
5280
5510
|
};
|
|
5281
|
-
const tagName$
|
|
5511
|
+
const tagName$H = "sonic-badge";
|
|
5282
5512
|
let Badge = class extends s$2 {
|
|
5283
5513
|
constructor() {
|
|
5284
5514
|
super(...arguments);
|
|
@@ -5292,20 +5522,20 @@ let Badge = class extends s$2 {
|
|
|
5292
5522
|
Badge.styles = [
|
|
5293
5523
|
r$5`:host{--sc-badge-gap:0.3em;--sc-badge-py:0.16em;--sc-badge-px:0.66em;--sc-badge-fs:1rem;--sc-badge-color:var(--sc-base-content, #1f2937);--sc-badge-bg:var(--sc-base-200, #e5e7eb);--sc-badge-border-with:var(--sc-form-border-width, 0.1rem);--sc-badge-border-color:transparent;--sc-badge-border:var(--sc-badge-border-with) solid var(--sc-badge-border-color);--sc-badge-rounded:calc(var(--sc-rounded) * 1000);--sc-badge-line-height:1.15;--sc-badge-fw:var(--sc-font-weight-base);display:inline-flex;align-items:center;box-sizing:border-box;line-height:var(--sc-badge-line-height);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)}: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-badge-fs);gap:var(--sc-badge-gap)}:host([size="2xs"]){--sc-badge-fs:0.58rem;--sc-badge-gap:0.3em}:host([size=xs]){--sc-badge-fs:0.68rem;--sc-badge-gap:0.35em}:host([size=sm]){--sc-badge-fs:0.85rem;--sc-badge-gap:0.35em}:host([size=lg]){--sc-badge-line-height:1.2;--sc-badge-fs:1.25rem;--sc-badge-gap:0.5em}:host([size=xl]){--sc-badge-line-height:1.2;--sc-badge-fs:1.5rem;--sc-badge-gap:0.5em}: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}`
|
|
5294
5524
|
];
|
|
5295
|
-
__decorateClass$
|
|
5525
|
+
__decorateClass$J([
|
|
5296
5526
|
e$5({ type: String, reflect: true })
|
|
5297
5527
|
], Badge.prototype, "type", 2);
|
|
5298
|
-
__decorateClass$
|
|
5528
|
+
__decorateClass$J([
|
|
5299
5529
|
e$5({ type: String, reflect: true })
|
|
5300
5530
|
], Badge.prototype, "variant", 2);
|
|
5301
|
-
__decorateClass$
|
|
5531
|
+
__decorateClass$J([
|
|
5302
5532
|
e$5({ type: String, reflect: true })
|
|
5303
5533
|
], Badge.prototype, "size", 2);
|
|
5304
|
-
Badge = __decorateClass$
|
|
5305
|
-
n$3(tagName$
|
|
5534
|
+
Badge = __decorateClass$J([
|
|
5535
|
+
n$3(tagName$H)
|
|
5306
5536
|
], Badge);
|
|
5307
5537
|
try {
|
|
5308
|
-
customElements.define(tagName$
|
|
5538
|
+
customElements.define(tagName$H, Badge);
|
|
5309
5539
|
} catch (e2) {
|
|
5310
5540
|
}
|
|
5311
5541
|
class Electron {
|
|
@@ -5319,18 +5549,18 @@ class Electron {
|
|
|
5319
5549
|
}
|
|
5320
5550
|
}
|
|
5321
5551
|
}
|
|
5322
|
-
var __defProp$
|
|
5323
|
-
var __getOwnPropDesc$
|
|
5324
|
-
var __decorateClass$
|
|
5325
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5552
|
+
var __defProp$I = Object.defineProperty;
|
|
5553
|
+
var __getOwnPropDesc$I = Object.getOwnPropertyDescriptor;
|
|
5554
|
+
var __decorateClass$I = (decorators, target, key, kind) => {
|
|
5555
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$I(target, key) : target;
|
|
5326
5556
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
5327
5557
|
if (decorator = decorators[i2])
|
|
5328
5558
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5329
5559
|
if (kind && result)
|
|
5330
|
-
__defProp$
|
|
5560
|
+
__defProp$I(target, key, result);
|
|
5331
5561
|
return result;
|
|
5332
5562
|
};
|
|
5333
|
-
const tagName$
|
|
5563
|
+
const tagName$G = "sonic-link";
|
|
5334
5564
|
let Link = class extends s$2 {
|
|
5335
5565
|
constructor() {
|
|
5336
5566
|
super(...arguments);
|
|
@@ -5379,37 +5609,37 @@ let Link = class extends s$2 {
|
|
|
5379
5609
|
Link.styles = [
|
|
5380
5610
|
r$5`a{color:inherit;text-decoration:none;display:contents}`
|
|
5381
5611
|
];
|
|
5382
|
-
__decorateClass$
|
|
5612
|
+
__decorateClass$I([
|
|
5383
5613
|
e$5({ type: String })
|
|
5384
5614
|
], Link.prototype, "href", 2);
|
|
5385
|
-
__decorateClass$
|
|
5615
|
+
__decorateClass$I([
|
|
5386
5616
|
e$5({ type: String })
|
|
5387
5617
|
], Link.prototype, "autoActive", 2);
|
|
5388
|
-
__decorateClass$
|
|
5618
|
+
__decorateClass$I([
|
|
5389
5619
|
e$5({ type: String })
|
|
5390
5620
|
], Link.prototype, "target", 1);
|
|
5391
|
-
__decorateClass$
|
|
5621
|
+
__decorateClass$I([
|
|
5392
5622
|
e$5({ type: Boolean })
|
|
5393
5623
|
], Link.prototype, "pushState", 2);
|
|
5394
|
-
Link = __decorateClass$
|
|
5395
|
-
n$3(tagName$
|
|
5624
|
+
Link = __decorateClass$I([
|
|
5625
|
+
n$3(tagName$G)
|
|
5396
5626
|
], Link);
|
|
5397
5627
|
try {
|
|
5398
|
-
customElements.define(tagName$
|
|
5628
|
+
customElements.define(tagName$G, Link);
|
|
5399
5629
|
} catch (e2) {
|
|
5400
5630
|
}
|
|
5401
|
-
var __defProp$
|
|
5402
|
-
var __getOwnPropDesc$
|
|
5403
|
-
var __decorateClass$
|
|
5404
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5631
|
+
var __defProp$H = Object.defineProperty;
|
|
5632
|
+
var __getOwnPropDesc$H = Object.getOwnPropertyDescriptor;
|
|
5633
|
+
var __decorateClass$H = (decorators, target, key, kind) => {
|
|
5634
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$H(target, key) : target;
|
|
5405
5635
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
5406
5636
|
if (decorator = decorators[i2])
|
|
5407
5637
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5408
5638
|
if (kind && result)
|
|
5409
|
-
__defProp$
|
|
5639
|
+
__defProp$H(target, key, result);
|
|
5410
5640
|
return result;
|
|
5411
5641
|
};
|
|
5412
|
-
const tagName$
|
|
5642
|
+
const tagName$F = "sonic-progress";
|
|
5413
5643
|
let Progress = class extends s$2 {
|
|
5414
5644
|
constructor() {
|
|
5415
5645
|
super(...arguments);
|
|
@@ -5426,26 +5656,26 @@ Progress.styles = [
|
|
|
5426
5656
|
fontSize,
|
|
5427
5657
|
r$5`:host{--sc-progress-bg:var(--sc-input-bg, var(--sc-base-100, #f5f5f5));--sc-progress-color:var(--sc-base-content, #1f2937);--sc-progress-height:.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);color:var(--sc-progress-color)}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:var(--sc-base-700)}:host([type=default][invert]){--sc-progress-color:var(--sc-base)}slot[name=remaining]{font-weight:var(--sc-font-weight-base);color:var(--sc-base-400);font-size:.85em;margin-top:.5em}.slot-container{display:flex;justify-content:space-between;gap:.5em;margin-top:.15em}`
|
|
5428
5658
|
];
|
|
5429
|
-
__decorateClass$
|
|
5659
|
+
__decorateClass$H([
|
|
5430
5660
|
e$5({ type: Number })
|
|
5431
5661
|
], Progress.prototype, "value", 2);
|
|
5432
|
-
__decorateClass$
|
|
5662
|
+
__decorateClass$H([
|
|
5433
5663
|
e$5({ type: Number })
|
|
5434
5664
|
], Progress.prototype, "max", 2);
|
|
5435
|
-
__decorateClass$
|
|
5665
|
+
__decorateClass$H([
|
|
5436
5666
|
e$5({ type: Boolean })
|
|
5437
5667
|
], Progress.prototype, "invert", 2);
|
|
5438
|
-
__decorateClass$
|
|
5668
|
+
__decorateClass$H([
|
|
5439
5669
|
e$5({ type: String, reflect: true })
|
|
5440
5670
|
], Progress.prototype, "type", 2);
|
|
5441
|
-
__decorateClass$
|
|
5671
|
+
__decorateClass$H([
|
|
5442
5672
|
e$5({ type: String, reflect: true })
|
|
5443
5673
|
], Progress.prototype, "size", 2);
|
|
5444
|
-
Progress = __decorateClass$
|
|
5445
|
-
n$3(tagName$
|
|
5674
|
+
Progress = __decorateClass$H([
|
|
5675
|
+
n$3(tagName$F)
|
|
5446
5676
|
], Progress);
|
|
5447
5677
|
try {
|
|
5448
|
-
customElements.define(tagName$
|
|
5678
|
+
customElements.define(tagName$F, Progress);
|
|
5449
5679
|
} catch (e2) {
|
|
5450
5680
|
}
|
|
5451
5681
|
const formControl = r$5`*{box-sizing:border-box}:host{--sc-input-height:var(--sc-form-height);--sc-input-border-width:var(--sc-form-border-width);--sc-input-color:var(--sc-base-content);--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.6em;--sc-input-px:1.15em;--sc-input-prefix-color:var(--sc-input-color);--sc-input-prefix-bg:var(--sc-input-bg);--sc-input-prefix-border-color:var(--sc-input-border-color);--sc-input-suffix-color:var(--sc-input-color);--sc-input-suffix-bg:var(--sc-input-bg);--sc-input-suffix-border-color:var(--sc-input-border-color);--sc-label-fs:var(--sc-fs, 1rem);--sc-label-fw:var(--sc-label-font-weight)}.form-element{display:block;flex-grow:1;width:100%;line-height:1.1;color:var(--sc-input-color);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-bg,var(--sc-base,#fff));border:var(--sc-input-border-width) solid var(--sc-input-border-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)}label{font-size:var(--sc-label-fs);font-weight:var(--sc-label-fw);line-height:1.2}.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:calc(-1 * var(--sc-input-px));padding-right:calc(-1 * 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-prefix-bg);color:var(--sc-input-prefix-color);border:var(--sc-input-border-width) solid var(--sc-input-prefix-border-color);margin-right:calc(-1 * var(--sc-input-border-width))}: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-suffix-bg);color:var(--sc-input-suffix-color);border:var(--sc-input-border-width) solid var(--sc-input-suffix-border-color);margin-left:calc(-1 * var(--sc-input-border-width))}: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}:host([inlineContent]){--sc-input-py:0}:host([inlineContent]) .form-element{display:flex;flex-wrap:wrap;align-items:center;gap:.35em;min-height:var(--sc-form-height)}:host([disabled]) .form-element-container{cursor:not-allowed}:host([variant=ghost]) .form-element{--sc-input-bg:transparent}:host([disabled]) .form-element{pointer-events:none;background-color:var(--sc-base-100);border-color:transparent;color:var(--sc-base-400)}::placeholder{color:inherit;opacity:.45}:focus::placeholder{opacity:0}.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}.form-element .form-element,.form-element>slot{all:unset!important}.hidden{display:none}.contents{display:contents}:host([error]){--sc-input-border-color:var(--sc-danger)}:host input:visited{display:none}:host([touched][required]) :not(:focus):invalid{--sc-input-border-color:var(--sc-danger);--sc-input-color:var(--sc-danger)}:host([touched][required]) :not(:focus):invalid+.select-chevron{--sc-input-color:var(--sc-danger)}:host([touched][required]) :not([value=""]):not(:focus):valid{--sc-input-border-color:var(--sc-success);--sc-input-color:var(--sc-success)}:host([touched][required]) :not(:focus):valid+.select-chevron{--sc-input-color: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}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}`;
|
|
@@ -5482,18 +5712,18 @@ const o = e$3(class extends i$3 {
|
|
|
5482
5712
|
return b$1;
|
|
5483
5713
|
}
|
|
5484
5714
|
});
|
|
5485
|
-
var __defProp$
|
|
5486
|
-
var __getOwnPropDesc$
|
|
5487
|
-
var __decorateClass$
|
|
5488
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5715
|
+
var __defProp$G = Object.defineProperty;
|
|
5716
|
+
var __getOwnPropDesc$G = Object.getOwnPropertyDescriptor;
|
|
5717
|
+
var __decorateClass$G = (decorators, target, key, kind) => {
|
|
5718
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$G(target, key) : target;
|
|
5489
5719
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
5490
5720
|
if (decorator = decorators[i2])
|
|
5491
5721
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5492
5722
|
if (kind && result)
|
|
5493
|
-
__defProp$
|
|
5723
|
+
__defProp$G(target, key, result);
|
|
5494
5724
|
return result;
|
|
5495
5725
|
};
|
|
5496
|
-
const tagName$
|
|
5726
|
+
const tagName$E = "sonic-input";
|
|
5497
5727
|
let Input = class extends Form(Form$2(Subscriber$1(s$2))) {
|
|
5498
5728
|
constructor() {
|
|
5499
5729
|
super(...arguments);
|
|
@@ -5511,6 +5741,20 @@ let Input = class extends Form(Form$2(Subscriber$1(s$2))) {
|
|
|
5511
5741
|
this.hasSuffix = ((_c = this.slotSuffixNodes) == null ? void 0 : _c.length) ? true : false;
|
|
5512
5742
|
this.hasPrefix = ((_d = this.slotPrefixNodes) == null ? void 0 : _d.length) ? true : false;
|
|
5513
5743
|
}
|
|
5744
|
+
connectedCallback() {
|
|
5745
|
+
super.connectedCallback();
|
|
5746
|
+
if (this.hasAttribute("sameValueAs")) {
|
|
5747
|
+
this.sameValueAsName = this.getAttribute("sameValueAs");
|
|
5748
|
+
this.sameValueAsHandle = (v2) => this.pattern = v2;
|
|
5749
|
+
this.getFormPublisher()[this.sameValueAsName].onAssign(this.sameValueAsHandle);
|
|
5750
|
+
}
|
|
5751
|
+
}
|
|
5752
|
+
disconnectedCallback() {
|
|
5753
|
+
super.disconnectedCallback();
|
|
5754
|
+
if (this.hasAttribute("sameValueAs") && this.sameValueAsName) {
|
|
5755
|
+
this.getFormPublisher()[this.sameValueAsName].offAssign(this.sameValueAsHandle);
|
|
5756
|
+
}
|
|
5757
|
+
}
|
|
5514
5758
|
onSlotChange() {
|
|
5515
5759
|
this.requestUpdate();
|
|
5516
5760
|
}
|
|
@@ -5518,7 +5762,6 @@ let Input = class extends Form(Form$2(Subscriber$1(s$2))) {
|
|
|
5518
5762
|
var _a2;
|
|
5519
5763
|
if (!this.inlineContent)
|
|
5520
5764
|
return;
|
|
5521
|
-
console.log("oypouaze");
|
|
5522
5765
|
(_a2 = this.input) == null ? void 0 : _a2.focus();
|
|
5523
5766
|
}
|
|
5524
5767
|
render() {
|
|
@@ -5530,175 +5773,660 @@ let Input = class extends Form(Form$2(Subscriber$1(s$2))) {
|
|
|
5530
5773
|
}
|
|
5531
5774
|
};
|
|
5532
5775
|
Input.styles = [fontSize, formControl];
|
|
5533
|
-
__decorateClass$
|
|
5776
|
+
__decorateClass$G([
|
|
5534
5777
|
e$5({ type: String, reflect: true })
|
|
5535
5778
|
], Input.prototype, "size", 2);
|
|
5536
|
-
__decorateClass$
|
|
5779
|
+
__decorateClass$G([
|
|
5537
5780
|
e$5({ type: String })
|
|
5538
5781
|
], Input.prototype, "list", 2);
|
|
5539
|
-
__decorateClass$
|
|
5782
|
+
__decorateClass$G([
|
|
5540
5783
|
e$5({ type: String })
|
|
5541
5784
|
], Input.prototype, "placeholder", 2);
|
|
5542
|
-
__decorateClass$
|
|
5785
|
+
__decorateClass$G([
|
|
5543
5786
|
e$5({ type: String })
|
|
5544
5787
|
], Input.prototype, "pattern", 2);
|
|
5545
|
-
__decorateClass$
|
|
5788
|
+
__decorateClass$G([
|
|
5546
5789
|
e$5({ type: String })
|
|
5547
5790
|
], Input.prototype, "min", 2);
|
|
5548
|
-
__decorateClass$
|
|
5791
|
+
__decorateClass$G([
|
|
5549
5792
|
e$5({ type: String })
|
|
5550
5793
|
], Input.prototype, "max", 2);
|
|
5551
|
-
__decorateClass$
|
|
5794
|
+
__decorateClass$G([
|
|
5552
5795
|
e$5({ type: Boolean })
|
|
5553
5796
|
], Input.prototype, "readonly", 2);
|
|
5554
|
-
__decorateClass$
|
|
5797
|
+
__decorateClass$G([
|
|
5555
5798
|
e$5({ type: Number })
|
|
5556
5799
|
], Input.prototype, "step", 2);
|
|
5557
|
-
__decorateClass$
|
|
5800
|
+
__decorateClass$G([
|
|
5558
5801
|
e$5({ type: Number })
|
|
5559
5802
|
], Input.prototype, "minlength", 2);
|
|
5560
|
-
__decorateClass$
|
|
5803
|
+
__decorateClass$G([
|
|
5561
5804
|
e$5({ type: Number })
|
|
5562
5805
|
], Input.prototype, "maxlength", 2);
|
|
5563
|
-
__decorateClass$
|
|
5806
|
+
__decorateClass$G([
|
|
5564
5807
|
e$5({ type: String })
|
|
5565
5808
|
], Input.prototype, "src", 2);
|
|
5566
|
-
__decorateClass$
|
|
5809
|
+
__decorateClass$G([
|
|
5567
5810
|
e$5({ type: Boolean, reflect: true })
|
|
5568
5811
|
], Input.prototype, "inlineContent", 2);
|
|
5569
|
-
__decorateClass$
|
|
5812
|
+
__decorateClass$G([
|
|
5570
5813
|
o$4({ slot: "label" })
|
|
5571
5814
|
], Input.prototype, "slotLabelNodes", 2);
|
|
5572
|
-
__decorateClass$
|
|
5815
|
+
__decorateClass$G([
|
|
5573
5816
|
o$4({ slot: "description" })
|
|
5574
5817
|
], Input.prototype, "slotDescriptionNodes", 2);
|
|
5575
|
-
__decorateClass$
|
|
5818
|
+
__decorateClass$G([
|
|
5576
5819
|
o$4({ slot: "suffix" })
|
|
5577
5820
|
], Input.prototype, "slotSuffixNodes", 2);
|
|
5578
|
-
__decorateClass$
|
|
5821
|
+
__decorateClass$G([
|
|
5579
5822
|
o$4({ slot: "prefix" })
|
|
5580
5823
|
], Input.prototype, "slotPrefixNodes", 2);
|
|
5581
|
-
__decorateClass$
|
|
5824
|
+
__decorateClass$G([
|
|
5582
5825
|
i$4("input")
|
|
5583
5826
|
], Input.prototype, "input", 2);
|
|
5584
|
-
__decorateClass$
|
|
5827
|
+
__decorateClass$G([
|
|
5585
5828
|
t$1()
|
|
5586
5829
|
], Input.prototype, "hasDescription", 2);
|
|
5587
|
-
__decorateClass$
|
|
5830
|
+
__decorateClass$G([
|
|
5588
5831
|
t$1()
|
|
5589
5832
|
], Input.prototype, "hasLabel", 2);
|
|
5590
|
-
__decorateClass$
|
|
5833
|
+
__decorateClass$G([
|
|
5591
5834
|
t$1()
|
|
5592
5835
|
], Input.prototype, "hasSuffix", 2);
|
|
5593
|
-
__decorateClass$
|
|
5836
|
+
__decorateClass$G([
|
|
5594
5837
|
t$1()
|
|
5595
5838
|
], Input.prototype, "hasPrefix", 2);
|
|
5596
|
-
Input = __decorateClass$
|
|
5597
|
-
n$3(tagName$
|
|
5839
|
+
Input = __decorateClass$G([
|
|
5840
|
+
n$3(tagName$E)
|
|
5598
5841
|
], Input);
|
|
5599
5842
|
try {
|
|
5600
|
-
customElements.define(tagName$
|
|
5843
|
+
customElements.define(tagName$E, Input);
|
|
5601
5844
|
} catch (e2) {
|
|
5602
5845
|
}
|
|
5603
|
-
var __defProp$
|
|
5604
|
-
var __getOwnPropDesc$
|
|
5605
|
-
var __decorateClass$
|
|
5606
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5846
|
+
var __defProp$F = Object.defineProperty;
|
|
5847
|
+
var __getOwnPropDesc$F = Object.getOwnPropertyDescriptor;
|
|
5848
|
+
var __decorateClass$F = (decorators, target, key, kind) => {
|
|
5849
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$F(target, key) : target;
|
|
5607
5850
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
5608
5851
|
if (decorator = decorators[i2])
|
|
5609
5852
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5610
5853
|
if (kind && result)
|
|
5611
|
-
__defProp$
|
|
5854
|
+
__defProp$F(target, key, result);
|
|
5612
5855
|
return result;
|
|
5613
5856
|
};
|
|
5614
|
-
const tagName$
|
|
5615
|
-
let
|
|
5857
|
+
const tagName$D = "sonic-pop";
|
|
5858
|
+
let Pop = class extends s$2 {
|
|
5616
5859
|
constructor() {
|
|
5617
5860
|
super(...arguments);
|
|
5618
|
-
this.
|
|
5619
|
-
this.
|
|
5620
|
-
this.
|
|
5861
|
+
this.open = false;
|
|
5862
|
+
this.toggle = "true";
|
|
5863
|
+
this.inline = false;
|
|
5864
|
+
this.shadow = "lg";
|
|
5865
|
+
this.placement = "bottom";
|
|
5866
|
+
this.positioningRuns = false;
|
|
5867
|
+
this.lastContentX = Number.NaN;
|
|
5868
|
+
this.lastContentY = Number.NaN;
|
|
5621
5869
|
}
|
|
5622
|
-
|
|
5623
|
-
|
|
5624
|
-
|
|
5870
|
+
runPositioning() {
|
|
5871
|
+
if (!this.positioningRuns)
|
|
5872
|
+
return;
|
|
5873
|
+
this.positioningRuns = true;
|
|
5874
|
+
this._setUpMenu(this.placement);
|
|
5875
|
+
window.requestAnimationFrame(() => this.runPositioning());
|
|
5625
5876
|
}
|
|
5626
|
-
|
|
5627
|
-
this.
|
|
5628
|
-
|
|
5877
|
+
_toggle(e2) {
|
|
5878
|
+
if (this.open && this.toggle == "false")
|
|
5879
|
+
return;
|
|
5880
|
+
if (e2.type == "keydown" && (e2.key != "ArrowDown" || this.open))
|
|
5881
|
+
return;
|
|
5882
|
+
this.open = !this.open;
|
|
5883
|
+
this.open ? this._show() : this._hide();
|
|
5629
5884
|
}
|
|
5630
|
-
|
|
5631
|
-
|
|
5885
|
+
_show() {
|
|
5886
|
+
this.open = true;
|
|
5887
|
+
this.popContent.setAttribute("tabindex", "0");
|
|
5888
|
+
if (this.popBtn && this.popContent && !this.positioningRuns) {
|
|
5889
|
+
this.positioningRuns = true;
|
|
5890
|
+
this.lastContentX = Number.NaN;
|
|
5891
|
+
this.lastContentY = Number.NaN;
|
|
5892
|
+
this.runPositioning();
|
|
5893
|
+
}
|
|
5632
5894
|
}
|
|
5633
|
-
|
|
5634
|
-
|
|
5635
|
-
|
|
5636
|
-
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
|
|
5640
|
-
|
|
5641
|
-
|
|
5642
|
-
|
|
5643
|
-
|
|
5644
|
-
|
|
5645
|
-
|
|
5646
|
-
|
|
5647
|
-
|
|
5648
|
-
|
|
5649
|
-
|
|
5650
|
-
|
|
5651
|
-
n$3(tagName$B)
|
|
5652
|
-
], Checkbox);
|
|
5653
|
-
try {
|
|
5654
|
-
customElements.define(tagName$B, Checkbox);
|
|
5655
|
-
} catch (e2) {
|
|
5656
|
-
}
|
|
5657
|
-
var __defProp$B = Object.defineProperty;
|
|
5658
|
-
var __getOwnPropDesc$B = Object.getOwnPropertyDescriptor;
|
|
5659
|
-
var __decorateClass$B = (decorators, target, key, kind) => {
|
|
5660
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$B(target, key) : target;
|
|
5661
|
-
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
5662
|
-
if (decorator = decorators[i2])
|
|
5663
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5664
|
-
if (kind && result)
|
|
5665
|
-
__defProp$B(target, key, result);
|
|
5666
|
-
return result;
|
|
5667
|
-
};
|
|
5668
|
-
const tagName$A = "sonic-radio";
|
|
5669
|
-
let Radio = class extends Checkbox {
|
|
5670
|
-
constructor() {
|
|
5671
|
-
super();
|
|
5672
|
-
this.radio = true;
|
|
5895
|
+
_hide() {
|
|
5896
|
+
this.open = false;
|
|
5897
|
+
this.popContent.setAttribute("tabindex", "-1");
|
|
5898
|
+
this.positioningRuns = false;
|
|
5899
|
+
}
|
|
5900
|
+
_handleClosePop(e2) {
|
|
5901
|
+
let path = e2.composedPath();
|
|
5902
|
+
let target = path[0];
|
|
5903
|
+
Pop.pops.forEach((pop) => {
|
|
5904
|
+
const popContainsTarget = path.includes(pop);
|
|
5905
|
+
const popContentContainsTarget = path.includes(pop.querySelector('[slot="content"]'));
|
|
5906
|
+
const isCloseManual = HTML$1.getAncestorAttributeValue(target, "data-on-select") === "keep";
|
|
5907
|
+
if (e2.type == "pointerdown" && popContainsTarget)
|
|
5908
|
+
return;
|
|
5909
|
+
if (e2.type == "click" && (popContainsTarget && isCloseManual || !popContentContainsTarget))
|
|
5910
|
+
return;
|
|
5911
|
+
pop._hide();
|
|
5912
|
+
});
|
|
5673
5913
|
}
|
|
5674
5914
|
connectedCallback() {
|
|
5675
5915
|
super.connectedCallback();
|
|
5676
|
-
|
|
5916
|
+
if (Pop.pops.size == 0) {
|
|
5917
|
+
document.addEventListener("pointerdown", this._handleClosePop);
|
|
5918
|
+
document.addEventListener("click", this._handleClosePop);
|
|
5919
|
+
}
|
|
5920
|
+
Pop.pops.add(this);
|
|
5677
5921
|
}
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
|
|
5681
|
-
|
|
5682
|
-
|
|
5683
|
-
|
|
5684
|
-
|
|
5685
|
-
|
|
5686
|
-
|
|
5687
|
-
|
|
5688
|
-
|
|
5689
|
-
|
|
5690
|
-
|
|
5691
|
-
|
|
5692
|
-
|
|
5693
|
-
|
|
5694
|
-
|
|
5695
|
-
|
|
5696
|
-
|
|
5922
|
+
disconnectedCallback() {
|
|
5923
|
+
super.disconnectedCallback();
|
|
5924
|
+
Pop.pops.delete(this);
|
|
5925
|
+
if (Pop.pops.size == 0) {
|
|
5926
|
+
document.removeEventListener("pointerdown", this._handleClosePop);
|
|
5927
|
+
document.removeEventListener("click", this._handleClosePop);
|
|
5928
|
+
}
|
|
5929
|
+
}
|
|
5930
|
+
_setUpMenu(placement) {
|
|
5931
|
+
var _a2;
|
|
5932
|
+
const contentRect = (_a2 = this.popContent) == null ? void 0 : _a2.getBoundingClientRect();
|
|
5933
|
+
const padding = 8;
|
|
5934
|
+
const shiftPadding = 20;
|
|
5935
|
+
const thisRect = this.getBoundingClientRect();
|
|
5936
|
+
if (!this.offsetParent)
|
|
5937
|
+
return;
|
|
5938
|
+
let bodyRect = this.offsetParent.getBoundingClientRect();
|
|
5939
|
+
let x0 = thisRect.left - bodyRect.left;
|
|
5940
|
+
let y0 = thisRect.top - bodyRect.top;
|
|
5941
|
+
let x2 = x0, y = y0;
|
|
5942
|
+
let yTop = y0 - contentRect.height - padding;
|
|
5943
|
+
let xLeft = x0 - contentRect.width - 2 * padding;
|
|
5944
|
+
let xRight = x0 + thisRect.width + 2 * padding;
|
|
5945
|
+
let yBottom = y0 + thisRect.height + padding;
|
|
5946
|
+
switch (placement) {
|
|
5947
|
+
case "bottom":
|
|
5948
|
+
y = yBottom;
|
|
5949
|
+
break;
|
|
5950
|
+
case "top":
|
|
5951
|
+
y = yTop;
|
|
5952
|
+
break;
|
|
5953
|
+
case "left":
|
|
5954
|
+
x2 = xLeft;
|
|
5955
|
+
break;
|
|
5956
|
+
case "right":
|
|
5957
|
+
x2 = xRight;
|
|
5958
|
+
break;
|
|
5959
|
+
}
|
|
5960
|
+
let dxRight = window.innerWidth - xRight - bodyRect.left - contentRect.width - shiftPadding;
|
|
5961
|
+
if (dxRight < 0 && placement === "right")
|
|
5962
|
+
x2 = xLeft;
|
|
5963
|
+
if (dxRight < 0 && ["top", "bottom"].includes(placement))
|
|
5964
|
+
x2 = Math.max(x2 + dxRight, xLeft + thisRect.width);
|
|
5965
|
+
let dxLeft = -bodyRect.left - xLeft;
|
|
5966
|
+
if (dxLeft > shiftPadding && placement === "left")
|
|
5967
|
+
x2 = xRight;
|
|
5968
|
+
let dyBottom = window.innerHeight - yBottom - bodyRect.top - contentRect.height - shiftPadding;
|
|
5969
|
+
if (dyBottom < 0 && placement === "bottom")
|
|
5970
|
+
y = yTop;
|
|
5971
|
+
if (dyBottom < 0 && ["left", "right"].includes(placement))
|
|
5972
|
+
y = Math.max(y + dyBottom, yTop + thisRect.height);
|
|
5973
|
+
let dyTop = -bodyRect.top - yTop;
|
|
5974
|
+
if (dyTop > -shiftPadding && placement === "top")
|
|
5975
|
+
y = yBottom;
|
|
5976
|
+
this.lastContentX = x2;
|
|
5977
|
+
this.lastContentY = y;
|
|
5978
|
+
Object.assign(this.popContent.style, {
|
|
5979
|
+
left: `${x2}px`,
|
|
5980
|
+
top: `${y}px`
|
|
5981
|
+
});
|
|
5982
|
+
}
|
|
5983
|
+
render() {
|
|
5984
|
+
return $$1`<slot @click="${this._toggle}" @keydown="${this._toggle}" class="contents"></slot><slot name="content" tabindex="-1" part="content" class="${this.open ? "is-open" : ""}"></slot>`;
|
|
5985
|
+
}
|
|
5986
|
+
};
|
|
5987
|
+
Pop.pops = /* @__PURE__ */ new Set();
|
|
5988
|
+
Pop.styles = [
|
|
5989
|
+
r$5`: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{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}`
|
|
5990
|
+
];
|
|
5991
|
+
__decorateClass$F([
|
|
5992
|
+
t$1()
|
|
5993
|
+
], Pop.prototype, "open", 2);
|
|
5994
|
+
__decorateClass$F([
|
|
5995
|
+
i$4("slot:not([name=content])")
|
|
5996
|
+
], Pop.prototype, "popBtn", 2);
|
|
5997
|
+
__decorateClass$F([
|
|
5998
|
+
i$4("slot[name=content]")
|
|
5999
|
+
], Pop.prototype, "popContent", 2);
|
|
6000
|
+
__decorateClass$F([
|
|
6001
|
+
e$5({ type: String })
|
|
6002
|
+
], Pop.prototype, "toggle", 2);
|
|
6003
|
+
__decorateClass$F([
|
|
6004
|
+
e$5({ type: Boolean, reflect: true })
|
|
6005
|
+
], Pop.prototype, "inline", 2);
|
|
6006
|
+
__decorateClass$F([
|
|
6007
|
+
e$5({ type: String, reflect: true })
|
|
6008
|
+
], Pop.prototype, "shadow", 2);
|
|
6009
|
+
__decorateClass$F([
|
|
6010
|
+
e$5({ type: String })
|
|
6011
|
+
], Pop.prototype, "placement", 2);
|
|
6012
|
+
Pop = __decorateClass$F([
|
|
6013
|
+
n$3(tagName$D)
|
|
6014
|
+
], Pop);
|
|
6015
|
+
try {
|
|
6016
|
+
customElements.define(tagName$D, Pop);
|
|
6017
|
+
} catch (e2) {
|
|
6018
|
+
}
|
|
6019
|
+
var __defProp$E = Object.defineProperty;
|
|
6020
|
+
var __getOwnPropDesc$E = Object.getOwnPropertyDescriptor;
|
|
6021
|
+
var __decorateClass$E = (decorators, target, key, kind) => {
|
|
6022
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$E(target, key) : target;
|
|
6023
|
+
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
6024
|
+
if (decorator = decorators[i2])
|
|
6025
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6026
|
+
if (kind && result)
|
|
6027
|
+
__defProp$E(target, key, result);
|
|
6028
|
+
return result;
|
|
6029
|
+
};
|
|
6030
|
+
const tagName$C = "sonic-menu-item";
|
|
6031
|
+
let MenuItem = class extends Button {
|
|
6032
|
+
constructor() {
|
|
6033
|
+
super();
|
|
6034
|
+
}
|
|
6035
|
+
connectedCallback() {
|
|
6036
|
+
if (!this.hasAttribute("variant")) {
|
|
6037
|
+
this.variant = "ghost";
|
|
6038
|
+
}
|
|
6039
|
+
if (!this.hasAttribute("type")) {
|
|
6040
|
+
this.type = "primary";
|
|
6041
|
+
}
|
|
6042
|
+
if (!this.hasAttribute("shape")) {
|
|
6043
|
+
this.shape = "block";
|
|
6044
|
+
}
|
|
6045
|
+
if (!this.hasAttribute("align")) {
|
|
6046
|
+
this.align = "left";
|
|
6047
|
+
}
|
|
6048
|
+
super.connectedCallback();
|
|
6049
|
+
}
|
|
6050
|
+
};
|
|
6051
|
+
MenuItem = __decorateClass$E([
|
|
6052
|
+
n$3(tagName$C)
|
|
6053
|
+
], MenuItem);
|
|
6054
|
+
try {
|
|
6055
|
+
customElements.define(tagName$C, MenuItem);
|
|
6056
|
+
} catch (e2) {
|
|
6057
|
+
}
|
|
6058
|
+
var __defProp$D = Object.defineProperty;
|
|
6059
|
+
var __getOwnPropDesc$D = Object.getOwnPropertyDescriptor;
|
|
6060
|
+
var __decorateClass$D = (decorators, target, key, kind) => {
|
|
6061
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$D(target, key) : target;
|
|
6062
|
+
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
6063
|
+
if (decorator = decorators[i2])
|
|
6064
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6065
|
+
if (kind && result)
|
|
6066
|
+
__defProp$D(target, key, result);
|
|
6067
|
+
return result;
|
|
6068
|
+
};
|
|
6069
|
+
let InputAutocomplete = class extends TemplatesContainer(Subscriber(s$2)) {
|
|
6070
|
+
constructor() {
|
|
6071
|
+
super(...arguments);
|
|
6072
|
+
this._name = "";
|
|
6073
|
+
this.forceAutoFill = false;
|
|
6074
|
+
this.placeholder = "";
|
|
6075
|
+
this.filteredFields = "";
|
|
6076
|
+
this.readonly = null;
|
|
6077
|
+
this.dataProviderExpression = "";
|
|
6078
|
+
this.key = "";
|
|
6079
|
+
this.value = "";
|
|
6080
|
+
this.formDataProvider = "";
|
|
6081
|
+
}
|
|
6082
|
+
get name() {
|
|
6083
|
+
return this._name;
|
|
6084
|
+
}
|
|
6085
|
+
set name(value) {
|
|
6086
|
+
if (this.hasAttribute("name") && !this.forceAutoFill)
|
|
6087
|
+
value = this.getAttribute("name");
|
|
6088
|
+
this._name = value;
|
|
6089
|
+
this.requestUpdate();
|
|
6090
|
+
}
|
|
6091
|
+
get description() {
|
|
6092
|
+
return this._description;
|
|
6093
|
+
}
|
|
6094
|
+
set description(value) {
|
|
6095
|
+
if (this.hasAttribute("description") && !this.forceAutoFill)
|
|
6096
|
+
value = this.getAttribute("description");
|
|
6097
|
+
this._description = value;
|
|
6098
|
+
this.requestUpdate();
|
|
6099
|
+
}
|
|
6100
|
+
get label() {
|
|
6101
|
+
return this._label;
|
|
6102
|
+
}
|
|
6103
|
+
set label(value) {
|
|
6104
|
+
if (this.hasAttribute("label") && !this.forceAutoFill)
|
|
6105
|
+
value = this.getAttribute("label");
|
|
6106
|
+
this._label = value;
|
|
6107
|
+
this.requestUpdate();
|
|
6108
|
+
}
|
|
6109
|
+
connectedCallback() {
|
|
6110
|
+
this.formDataProvider = this.getAncestorAttributeValue("formDataProvider");
|
|
6111
|
+
super.connectedCallback();
|
|
6112
|
+
}
|
|
6113
|
+
render() {
|
|
6114
|
+
return $$1`<sonic-pop toggle="false" style="display:block"><sonic-input type="text" data-keyboard-nav="nav-autocomplete" label="${l(this.label)}" description="${l(this.description)}" name="${l(this.name)}" value="${l(this.value)}" clearable></sonic-input><sonic-menu slot="content"><sonic-queue filteredFields="${this.filteredFields}" dataProviderExpression="${this.dataProviderExpression}" dataFilterProvider="${this.formDataProvider}" key="${this.key}" .templates="${this.templateList}" displayContents></sonic-queue></sonic-menu></sonic-pop>`;
|
|
6115
|
+
}
|
|
6116
|
+
};
|
|
6117
|
+
InputAutocomplete.styles = [
|
|
6118
|
+
r$5`:host{display:block}`
|
|
6119
|
+
];
|
|
6120
|
+
__decorateClass$D([
|
|
6121
|
+
e$5()
|
|
6122
|
+
], InputAutocomplete.prototype, "name", 1);
|
|
6123
|
+
__decorateClass$D([
|
|
6124
|
+
e$5()
|
|
6125
|
+
], InputAutocomplete.prototype, "forceAutoFill", 2);
|
|
6126
|
+
__decorateClass$D([
|
|
6127
|
+
e$5()
|
|
6128
|
+
], InputAutocomplete.prototype, "description", 1);
|
|
6129
|
+
__decorateClass$D([
|
|
6130
|
+
e$5()
|
|
6131
|
+
], InputAutocomplete.prototype, "label", 1);
|
|
6132
|
+
__decorateClass$D([
|
|
6133
|
+
e$5({ type: String })
|
|
6134
|
+
], InputAutocomplete.prototype, "placeholder", 2);
|
|
6135
|
+
__decorateClass$D([
|
|
6136
|
+
e$5()
|
|
6137
|
+
], InputAutocomplete.prototype, "filteredFields", 2);
|
|
6138
|
+
__decorateClass$D([
|
|
6139
|
+
e$5({ type: Boolean })
|
|
6140
|
+
], InputAutocomplete.prototype, "readonly", 2);
|
|
6141
|
+
__decorateClass$D([
|
|
6142
|
+
e$5({ type: String })
|
|
6143
|
+
], InputAutocomplete.prototype, "dataProviderExpression", 2);
|
|
6144
|
+
__decorateClass$D([
|
|
6145
|
+
e$5({ type: String })
|
|
6146
|
+
], InputAutocomplete.prototype, "key", 2);
|
|
6147
|
+
__decorateClass$D([
|
|
6148
|
+
e$5({ type: String })
|
|
6149
|
+
], InputAutocomplete.prototype, "value", 2);
|
|
6150
|
+
InputAutocomplete = __decorateClass$D([
|
|
6151
|
+
n$3("sonic-input-autocomplete")
|
|
6152
|
+
], InputAutocomplete);
|
|
6153
|
+
var __defProp$C = Object.defineProperty;
|
|
6154
|
+
var __getOwnPropDesc$C = Object.getOwnPropertyDescriptor;
|
|
6155
|
+
var __decorateClass$C = (decorators, target, key, kind) => {
|
|
6156
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$C(target, key) : target;
|
|
6157
|
+
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
6158
|
+
if (decorator = decorators[i2])
|
|
6159
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6160
|
+
if (kind && result)
|
|
6161
|
+
__defProp$C(target, key, result);
|
|
6162
|
+
return result;
|
|
6163
|
+
};
|
|
6164
|
+
const tagName$B = "sonic-password-helper";
|
|
6165
|
+
let SonicComponent$1 = class extends Subscriber(s$2) {
|
|
6166
|
+
constructor() {
|
|
6167
|
+
super(...arguments);
|
|
6168
|
+
this.minChars = 8;
|
|
6169
|
+
this.hasNoChar = true;
|
|
6170
|
+
this.hasEnoughChars = false;
|
|
6171
|
+
this.hasMinuscule = false;
|
|
6172
|
+
this.hasMajuscule = false;
|
|
6173
|
+
this.hasNumber = false;
|
|
6174
|
+
this.hasSpecialChar = false;
|
|
6175
|
+
this.wording_password_helper_decription = "Le mot de passe doit contenir au moins :";
|
|
6176
|
+
this.wording_password_helper_min_length = "8 caract\xE8res";
|
|
6177
|
+
this.wording_password_helper_lower_case = "1 minuscule";
|
|
6178
|
+
this.wording_password_helper_upper_case = "1 majuscule";
|
|
6179
|
+
this.wording_password_helper_number = "1 chiffre";
|
|
6180
|
+
this.wording_password_helper_special_char = "1 caract\xE8re sp\xE9cial";
|
|
6181
|
+
}
|
|
6182
|
+
connectedCallback() {
|
|
6183
|
+
super.connectedCallback();
|
|
6184
|
+
if (this.name) {
|
|
6185
|
+
this.checkValue = (v2) => {
|
|
6186
|
+
if (v2) {
|
|
6187
|
+
this.hasNoChar = v2.length == 0;
|
|
6188
|
+
this.hasEnoughChars = v2.length > this.minChars;
|
|
6189
|
+
} else {
|
|
6190
|
+
this.hasNoChar = true;
|
|
6191
|
+
this.hasEnoughChars = false;
|
|
6192
|
+
}
|
|
6193
|
+
this.hasMinuscule = /[a-z]/.test(v2);
|
|
6194
|
+
this.hasMajuscule = /[A-Z]/.test(v2);
|
|
6195
|
+
this.hasNumber = /[0-9]/.test(v2);
|
|
6196
|
+
this.hasSpecialChar = /[!"#$%&'()*+,\-\.\/:;<=>?@[\]^_`{|}~]/.test(v2);
|
|
6197
|
+
};
|
|
6198
|
+
PublisherManager.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].onAssign(this.checkValue);
|
|
6199
|
+
}
|
|
6200
|
+
}
|
|
6201
|
+
disconnectedCallback() {
|
|
6202
|
+
if (this.checkValue && this.name) {
|
|
6203
|
+
PublisherManager.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].offAssign(this.checkValue);
|
|
6204
|
+
}
|
|
6205
|
+
}
|
|
6206
|
+
getIcon(test) {
|
|
6207
|
+
return test ? $$1`<sonic-icon library="heroicons" , name="face-smile"></sonic-icon>` : $$1`<sonic-icon library="heroicons" , name="x-circle"></sonic-icon>`;
|
|
6208
|
+
}
|
|
6209
|
+
render() {
|
|
6210
|
+
if (this.hasNoChar)
|
|
6211
|
+
return w$1;
|
|
6212
|
+
return $$1`<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>`;
|
|
6213
|
+
}
|
|
6214
|
+
};
|
|
6215
|
+
__decorateClass$C([
|
|
6216
|
+
e$5()
|
|
6217
|
+
], SonicComponent$1.prototype, "name", 2);
|
|
6218
|
+
__decorateClass$C([
|
|
6219
|
+
e$5()
|
|
6220
|
+
], SonicComponent$1.prototype, "minChars", 2);
|
|
6221
|
+
__decorateClass$C([
|
|
6222
|
+
t$1()
|
|
6223
|
+
], SonicComponent$1.prototype, "hasNoChar", 2);
|
|
6224
|
+
__decorateClass$C([
|
|
6225
|
+
t$1()
|
|
6226
|
+
], SonicComponent$1.prototype, "hasEnoughChars", 2);
|
|
6227
|
+
__decorateClass$C([
|
|
6228
|
+
t$1()
|
|
6229
|
+
], SonicComponent$1.prototype, "hasMinuscule", 2);
|
|
6230
|
+
__decorateClass$C([
|
|
6231
|
+
t$1()
|
|
6232
|
+
], SonicComponent$1.prototype, "hasMajuscule", 2);
|
|
6233
|
+
__decorateClass$C([
|
|
6234
|
+
t$1()
|
|
6235
|
+
], SonicComponent$1.prototype, "hasNumber", 2);
|
|
6236
|
+
__decorateClass$C([
|
|
6237
|
+
t$1()
|
|
6238
|
+
], SonicComponent$1.prototype, "hasSpecialChar", 2);
|
|
6239
|
+
__decorateClass$C([
|
|
6240
|
+
e$5()
|
|
6241
|
+
], SonicComponent$1.prototype, "wording_password_helper_decription", 2);
|
|
6242
|
+
__decorateClass$C([
|
|
6243
|
+
e$5()
|
|
6244
|
+
], SonicComponent$1.prototype, "wording_password_helper_min_length", 2);
|
|
6245
|
+
__decorateClass$C([
|
|
6246
|
+
e$5()
|
|
6247
|
+
], SonicComponent$1.prototype, "wording_password_helper_lower_case", 2);
|
|
6248
|
+
__decorateClass$C([
|
|
6249
|
+
e$5()
|
|
6250
|
+
], SonicComponent$1.prototype, "wording_password_helper_upper_case", 2);
|
|
6251
|
+
__decorateClass$C([
|
|
6252
|
+
e$5()
|
|
6253
|
+
], SonicComponent$1.prototype, "wording_password_helper_number", 2);
|
|
6254
|
+
__decorateClass$C([
|
|
6255
|
+
e$5()
|
|
6256
|
+
], SonicComponent$1.prototype, "wording_password_helper_special_char", 2);
|
|
6257
|
+
SonicComponent$1 = __decorateClass$C([
|
|
6258
|
+
n$3(tagName$B)
|
|
6259
|
+
], SonicComponent$1);
|
|
6260
|
+
var __defProp$B = Object.defineProperty;
|
|
6261
|
+
var __getOwnPropDesc$B = Object.getOwnPropertyDescriptor;
|
|
6262
|
+
var __decorateClass$B = (decorators, target, key, kind) => {
|
|
6263
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$B(target, key) : target;
|
|
6264
|
+
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
6265
|
+
if (decorator = decorators[i2])
|
|
6266
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6267
|
+
if (kind && result)
|
|
6268
|
+
__defProp$B(target, key, result);
|
|
6269
|
+
return result;
|
|
6270
|
+
};
|
|
6271
|
+
const tagName$A = "sonic-same-value-helper";
|
|
6272
|
+
let SonicComponent = class extends Subscriber(s$2) {
|
|
6273
|
+
constructor() {
|
|
6274
|
+
super(...arguments);
|
|
6275
|
+
this.descriptionWhenEqual = "Correspondance : oui";
|
|
6276
|
+
this.descriptionWhenNotEqual = "Correspondance : non";
|
|
6277
|
+
this.areEqual = false;
|
|
6278
|
+
this.hasNoChar = true;
|
|
6279
|
+
}
|
|
6280
|
+
connectedCallback() {
|
|
6281
|
+
super.connectedCallback();
|
|
6282
|
+
let formDataProvider = PublisherManager.get(this.getAncestorAttributeValue("formDataProvider"));
|
|
6283
|
+
if (this.name && this.sameValueAs) {
|
|
6284
|
+
this.checkValue = (v2) => {
|
|
6285
|
+
if (v2)
|
|
6286
|
+
this.hasNoChar = v2.length == 0;
|
|
6287
|
+
else
|
|
6288
|
+
this.hasNoChar = true;
|
|
6289
|
+
if (this.name && this.sameValueAs) {
|
|
6290
|
+
this.areEqual = formDataProvider[this.name].get() == formDataProvider[this.sameValueAs].get();
|
|
6291
|
+
}
|
|
6292
|
+
};
|
|
6293
|
+
formDataProvider[this.name].onAssign(this.checkValue);
|
|
6294
|
+
formDataProvider[this.sameValueAs].onAssign(this.checkValue);
|
|
6295
|
+
}
|
|
6296
|
+
}
|
|
6297
|
+
disconnectedCallback() {
|
|
6298
|
+
if (this.checkValue && this.name && this.sameValueAs) {
|
|
6299
|
+
let formDataProvider = PublisherManager.get(this.getAncestorAttributeValue("formDataProvider"));
|
|
6300
|
+
formDataProvider[this.name].offAssign(this.checkValue);
|
|
6301
|
+
formDataProvider[this.sameValueAs].offAssign(this.checkValue);
|
|
6302
|
+
}
|
|
6303
|
+
}
|
|
6304
|
+
render() {
|
|
6305
|
+
if (this.hasNoChar)
|
|
6306
|
+
return w$1;
|
|
6307
|
+
return $$1`<span>${this.areEqual ? o$2(this.descriptionWhenEqual) : o$2(this.descriptionWhenNotEqual)}</span>`;
|
|
6308
|
+
}
|
|
6309
|
+
};
|
|
6310
|
+
__decorateClass$B([
|
|
6311
|
+
e$5()
|
|
6312
|
+
], SonicComponent.prototype, "name", 2);
|
|
6313
|
+
__decorateClass$B([
|
|
6314
|
+
e$5()
|
|
6315
|
+
], SonicComponent.prototype, "sameValueAs", 2);
|
|
6316
|
+
__decorateClass$B([
|
|
6317
|
+
e$5()
|
|
6318
|
+
], SonicComponent.prototype, "descriptionWhenEqual", 2);
|
|
6319
|
+
__decorateClass$B([
|
|
6320
|
+
e$5()
|
|
6321
|
+
], SonicComponent.prototype, "descriptionWhenNotEqual", 2);
|
|
6322
|
+
__decorateClass$B([
|
|
6323
|
+
t$1()
|
|
6324
|
+
], SonicComponent.prototype, "areEqual", 2);
|
|
6325
|
+
__decorateClass$B([
|
|
6326
|
+
t$1()
|
|
6327
|
+
], SonicComponent.prototype, "hasNoChar", 2);
|
|
6328
|
+
SonicComponent = __decorateClass$B([
|
|
6329
|
+
n$3(tagName$A)
|
|
6330
|
+
], SonicComponent);
|
|
6331
|
+
var __defProp$A = Object.defineProperty;
|
|
6332
|
+
var __getOwnPropDesc$A = Object.getOwnPropertyDescriptor;
|
|
6333
|
+
var __decorateClass$A = (decorators, target, key, kind) => {
|
|
6334
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$A(target, key) : target;
|
|
6335
|
+
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
6336
|
+
if (decorator = decorators[i2])
|
|
6337
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5697
6338
|
if (kind && result)
|
|
5698
6339
|
__defProp$A(target, key, result);
|
|
5699
6340
|
return result;
|
|
5700
6341
|
};
|
|
5701
|
-
const tagName$z = "sonic-
|
|
6342
|
+
const tagName$z = "sonic-checkbox";
|
|
6343
|
+
let Checkbox = class extends Form$1(Form(Form$2(Subscriber$1(s$2)))) {
|
|
6344
|
+
constructor() {
|
|
6345
|
+
super(...arguments);
|
|
6346
|
+
this.touched = false;
|
|
6347
|
+
this.iconName = "check";
|
|
6348
|
+
this.hasDescription = false;
|
|
6349
|
+
}
|
|
6350
|
+
updated() {
|
|
6351
|
+
var _a2;
|
|
6352
|
+
this.hasDescription = this.description || ((_a2 = this.slotDescriptionNodes) == null ? void 0 : _a2.length) ? true : false;
|
|
6353
|
+
}
|
|
6354
|
+
connectedCallback() {
|
|
6355
|
+
this.type = "checkbox";
|
|
6356
|
+
super.connectedCallback();
|
|
6357
|
+
}
|
|
6358
|
+
render() {
|
|
6359
|
+
return $$1`<label class="checkbox-container ${this.disabled ? "disabled" : ""}"><span class="icon-container"><input type="${this.type}" @change="${this.handleChange}" @blur="${this.handleBlur}" ?required="${this.required}" .disabled="${l(this.disabled)}" .checked="${l(this.checked)}" .name="${this.name}" .value="${this.value}" ?autofocus="${this.autofocus}"><sonic-icon name="${this.iconName}" class="sc-input-icon"></sonic-icon></span><div class="checkbox-text">${this.label ? o$2(this.label) : ""}<slot></slot><slot name="description" class="${this.hasDescription ? "description" : "hidden"}">${this.description ? $$1`${o$2(this.description)}` : ""}</slot></div></label>`;
|
|
6360
|
+
}
|
|
6361
|
+
};
|
|
6362
|
+
Checkbox.styles = [
|
|
6363
|
+
fontSize,
|
|
6364
|
+
r$5`:host{--sc-checkbox-border-width:var(--sc-form-border-width);--sc-checkbox-border-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-base-200);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-primary-content)}.description{color:var(--sc-base-400);font-size:.85em;margin-top:.2em;display:block}input:checked,input[checked=true]{background:var(--sc-primary)}input:checked+sonic-icon,input[checked=true]+sonic-icon{transform:translateX(-50%) translateY(-50%) scale(1)}.disabled{cursor:not-allowed}.disabled input{opacity:.4}.disabled .checkbox-text{opacity:.6}::slotted(a){color:inherit;text-decoration:underline!important}::slotted(a:hover){text-decoration:none!important}.hidden{display:none}`
|
|
6365
|
+
];
|
|
6366
|
+
__decorateClass$A([
|
|
6367
|
+
e$5({ type: Boolean, reflect: true })
|
|
6368
|
+
], Checkbox.prototype, "touched", 2);
|
|
6369
|
+
__decorateClass$A([
|
|
6370
|
+
e$5({ type: String })
|
|
6371
|
+
], Checkbox.prototype, "iconName", 2);
|
|
6372
|
+
__decorateClass$A([
|
|
6373
|
+
o$4({ slot: "description" })
|
|
6374
|
+
], Checkbox.prototype, "slotDescriptionNodes", 2);
|
|
6375
|
+
__decorateClass$A([
|
|
6376
|
+
e$5({ type: Boolean })
|
|
6377
|
+
], Checkbox.prototype, "hasDescription", 2);
|
|
6378
|
+
Checkbox = __decorateClass$A([
|
|
6379
|
+
n$3(tagName$z)
|
|
6380
|
+
], Checkbox);
|
|
6381
|
+
try {
|
|
6382
|
+
customElements.define(tagName$z, Checkbox);
|
|
6383
|
+
} catch (e2) {
|
|
6384
|
+
}
|
|
6385
|
+
var __defProp$z = Object.defineProperty;
|
|
6386
|
+
var __getOwnPropDesc$z = Object.getOwnPropertyDescriptor;
|
|
6387
|
+
var __decorateClass$z = (decorators, target, key, kind) => {
|
|
6388
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$z(target, key) : target;
|
|
6389
|
+
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
6390
|
+
if (decorator = decorators[i2])
|
|
6391
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6392
|
+
if (kind && result)
|
|
6393
|
+
__defProp$z(target, key, result);
|
|
6394
|
+
return result;
|
|
6395
|
+
};
|
|
6396
|
+
const tagName$y = "sonic-radio";
|
|
6397
|
+
let Radio = class extends Checkbox {
|
|
6398
|
+
constructor() {
|
|
6399
|
+
super();
|
|
6400
|
+
this.radio = true;
|
|
6401
|
+
}
|
|
6402
|
+
connectedCallback() {
|
|
6403
|
+
super.connectedCallback();
|
|
6404
|
+
this.type = "radio";
|
|
6405
|
+
}
|
|
6406
|
+
};
|
|
6407
|
+
Radio.styles = [
|
|
6408
|
+
Checkbox.styles,
|
|
6409
|
+
r$5`: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:0;height:10px;width:10px}`
|
|
6410
|
+
];
|
|
6411
|
+
Radio = __decorateClass$z([
|
|
6412
|
+
n$3(tagName$y)
|
|
6413
|
+
], Radio);
|
|
6414
|
+
try {
|
|
6415
|
+
customElements.define(tagName$y, Radio);
|
|
6416
|
+
} catch (e2) {
|
|
6417
|
+
}
|
|
6418
|
+
var __defProp$y = Object.defineProperty;
|
|
6419
|
+
var __getOwnPropDesc$y = Object.getOwnPropertyDescriptor;
|
|
6420
|
+
var __decorateClass$y = (decorators, target, key, kind) => {
|
|
6421
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$y(target, key) : target;
|
|
6422
|
+
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
6423
|
+
if (decorator = decorators[i2])
|
|
6424
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6425
|
+
if (kind && result)
|
|
6426
|
+
__defProp$y(target, key, result);
|
|
6427
|
+
return result;
|
|
6428
|
+
};
|
|
6429
|
+
const tagName$x = "sonic-select";
|
|
5702
6430
|
let Select = class extends Form$2(Subscriber$1(s$2)) {
|
|
5703
6431
|
constructor() {
|
|
5704
6432
|
super(...arguments);
|
|
@@ -5804,79 +6532,79 @@ Select.styles = [
|
|
|
5804
6532
|
formControl,
|
|
5805
6533
|
r$5`.form-element{appearance:none;padding-right:2.5em}.form-select-wrapper{position:relative;width:100%}sonic-icon{position:absolute;right:1em;top:50%;pointer-events:none;transform:translateY(-50%);color:var(--sc-input-color)}option{padding:.1rem 5rem;color:var(--sc-base-content);background:var(--sc-base)}`
|
|
5806
6534
|
];
|
|
5807
|
-
__decorateClass$
|
|
6535
|
+
__decorateClass$y([
|
|
5808
6536
|
e$5({ type: String })
|
|
5809
6537
|
], Select.prototype, "valueKey", 2);
|
|
5810
|
-
__decorateClass$
|
|
6538
|
+
__decorateClass$y([
|
|
5811
6539
|
e$5({ type: String })
|
|
5812
6540
|
], Select.prototype, "wordingKey", 2);
|
|
5813
|
-
__decorateClass$
|
|
6541
|
+
__decorateClass$y([
|
|
5814
6542
|
e$5({ type: Boolean })
|
|
5815
6543
|
], Select.prototype, "multiple", 2);
|
|
5816
|
-
__decorateClass$
|
|
6544
|
+
__decorateClass$y([
|
|
5817
6545
|
e$5({ type: String, reflect: true })
|
|
5818
6546
|
], Select.prototype, "size", 2);
|
|
5819
|
-
__decorateClass$
|
|
6547
|
+
__decorateClass$y([
|
|
5820
6548
|
e$5({ type: Number })
|
|
5821
6549
|
], Select.prototype, "selectSize", 2);
|
|
5822
|
-
__decorateClass$
|
|
6550
|
+
__decorateClass$y([
|
|
5823
6551
|
e$5({ type: Array })
|
|
5824
6552
|
], Select.prototype, "options", 1);
|
|
5825
|
-
__decorateClass$
|
|
6553
|
+
__decorateClass$y([
|
|
5826
6554
|
e$5()
|
|
5827
6555
|
], Select.prototype, "value", 1);
|
|
5828
|
-
__decorateClass$
|
|
6556
|
+
__decorateClass$y([
|
|
5829
6557
|
e$5({ type: Boolean })
|
|
5830
6558
|
], Select.prototype, "forceAutoFill", 2);
|
|
5831
|
-
__decorateClass$
|
|
6559
|
+
__decorateClass$y([
|
|
5832
6560
|
e$5()
|
|
5833
6561
|
], Select.prototype, "description", 1);
|
|
5834
|
-
__decorateClass$
|
|
6562
|
+
__decorateClass$y([
|
|
5835
6563
|
e$5()
|
|
5836
6564
|
], Select.prototype, "label", 1);
|
|
5837
|
-
__decorateClass$
|
|
6565
|
+
__decorateClass$y([
|
|
5838
6566
|
o$4({ slot: "label" })
|
|
5839
6567
|
], Select.prototype, "slotLabelNodes", 2);
|
|
5840
|
-
__decorateClass$
|
|
6568
|
+
__decorateClass$y([
|
|
5841
6569
|
o$4({ slot: "description" })
|
|
5842
6570
|
], Select.prototype, "slotDescriptionNodes", 2);
|
|
5843
|
-
__decorateClass$
|
|
6571
|
+
__decorateClass$y([
|
|
5844
6572
|
o$4({ slot: "suffix" })
|
|
5845
6573
|
], Select.prototype, "slotSuffixNodes", 2);
|
|
5846
|
-
__decorateClass$
|
|
6574
|
+
__decorateClass$y([
|
|
5847
6575
|
o$4({ slot: "prefix" })
|
|
5848
6576
|
], Select.prototype, "slotPrefixNodes", 2);
|
|
5849
|
-
__decorateClass$
|
|
6577
|
+
__decorateClass$y([
|
|
5850
6578
|
t$1()
|
|
5851
6579
|
], Select.prototype, "hasDescription", 2);
|
|
5852
|
-
__decorateClass$
|
|
6580
|
+
__decorateClass$y([
|
|
5853
6581
|
t$1()
|
|
5854
6582
|
], Select.prototype, "hasLabel", 2);
|
|
5855
|
-
__decorateClass$
|
|
6583
|
+
__decorateClass$y([
|
|
5856
6584
|
t$1()
|
|
5857
6585
|
], Select.prototype, "hasSuffix", 2);
|
|
5858
|
-
__decorateClass$
|
|
6586
|
+
__decorateClass$y([
|
|
5859
6587
|
t$1()
|
|
5860
6588
|
], Select.prototype, "hasPrefix", 2);
|
|
5861
|
-
Select = __decorateClass$
|
|
5862
|
-
n$3(tagName$
|
|
6589
|
+
Select = __decorateClass$y([
|
|
6590
|
+
n$3(tagName$x)
|
|
5863
6591
|
], Select);
|
|
5864
6592
|
try {
|
|
5865
|
-
customElements.define(tagName$
|
|
6593
|
+
customElements.define(tagName$x, Select);
|
|
5866
6594
|
} catch (e2) {
|
|
5867
6595
|
}
|
|
5868
|
-
var __defProp$
|
|
5869
|
-
var __getOwnPropDesc$
|
|
5870
|
-
var __decorateClass$
|
|
5871
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6596
|
+
var __defProp$x = Object.defineProperty;
|
|
6597
|
+
var __getOwnPropDesc$x = Object.getOwnPropertyDescriptor;
|
|
6598
|
+
var __decorateClass$x = (decorators, target, key, kind) => {
|
|
6599
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$x(target, key) : target;
|
|
5872
6600
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
5873
6601
|
if (decorator = decorators[i2])
|
|
5874
6602
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5875
6603
|
if (kind && result)
|
|
5876
|
-
__defProp$
|
|
6604
|
+
__defProp$x(target, key, result);
|
|
5877
6605
|
return result;
|
|
5878
6606
|
};
|
|
5879
|
-
const tagName$
|
|
6607
|
+
const tagName$w = "sonic-textarea";
|
|
5880
6608
|
let Textarea = class extends Form(Form$2(Subscriber$1(s$2))) {
|
|
5881
6609
|
constructor() {
|
|
5882
6610
|
super(...arguments);
|
|
@@ -5917,76 +6645,76 @@ Textarea.styles = [
|
|
|
5917
6645
|
customScroll,
|
|
5918
6646
|
r$5`textarea{font-size:inherit}`
|
|
5919
6647
|
];
|
|
5920
|
-
__decorateClass$
|
|
6648
|
+
__decorateClass$x([
|
|
5921
6649
|
e$5({ type: String })
|
|
5922
6650
|
], Textarea.prototype, "size", 2);
|
|
5923
|
-
__decorateClass$
|
|
6651
|
+
__decorateClass$x([
|
|
5924
6652
|
e$5({ type: Number })
|
|
5925
6653
|
], Textarea.prototype, "rows", 2);
|
|
5926
|
-
__decorateClass$
|
|
6654
|
+
__decorateClass$x([
|
|
5927
6655
|
e$5({ type: Number })
|
|
5928
6656
|
], Textarea.prototype, "cols", 2);
|
|
5929
|
-
__decorateClass$
|
|
6657
|
+
__decorateClass$x([
|
|
5930
6658
|
e$5({ type: Number })
|
|
5931
6659
|
], Textarea.prototype, "maxlength", 2);
|
|
5932
|
-
__decorateClass$
|
|
6660
|
+
__decorateClass$x([
|
|
5933
6661
|
e$5({ type: Number })
|
|
5934
6662
|
], Textarea.prototype, "minlength", 2);
|
|
5935
|
-
__decorateClass$
|
|
6663
|
+
__decorateClass$x([
|
|
5936
6664
|
e$5({ type: String })
|
|
5937
6665
|
], Textarea.prototype, "wrap", 2);
|
|
5938
|
-
__decorateClass$
|
|
6666
|
+
__decorateClass$x([
|
|
5939
6667
|
e$5({ type: Boolean })
|
|
5940
6668
|
], Textarea.prototype, "readonly", 2);
|
|
5941
|
-
__decorateClass$
|
|
6669
|
+
__decorateClass$x([
|
|
5942
6670
|
e$5({ type: String })
|
|
5943
6671
|
], Textarea.prototype, "placeholder", 2);
|
|
5944
|
-
__decorateClass$
|
|
6672
|
+
__decorateClass$x([
|
|
5945
6673
|
o$4({ slot: "label" })
|
|
5946
6674
|
], Textarea.prototype, "slotLabelNodes", 2);
|
|
5947
|
-
__decorateClass$
|
|
6675
|
+
__decorateClass$x([
|
|
5948
6676
|
o$4({ slot: "description" })
|
|
5949
6677
|
], Textarea.prototype, "slotDescriptionNodes", 2);
|
|
5950
|
-
__decorateClass$
|
|
6678
|
+
__decorateClass$x([
|
|
5951
6679
|
o$4({ slot: "suffix" })
|
|
5952
6680
|
], Textarea.prototype, "slotSuffixNodes", 2);
|
|
5953
|
-
__decorateClass$
|
|
6681
|
+
__decorateClass$x([
|
|
5954
6682
|
o$4({ slot: "prefix" })
|
|
5955
6683
|
], Textarea.prototype, "slotPrefixNodes", 2);
|
|
5956
|
-
__decorateClass$
|
|
6684
|
+
__decorateClass$x([
|
|
5957
6685
|
t$1()
|
|
5958
6686
|
], Textarea.prototype, "hasDescription", 2);
|
|
5959
|
-
__decorateClass$
|
|
6687
|
+
__decorateClass$x([
|
|
5960
6688
|
t$1()
|
|
5961
6689
|
], Textarea.prototype, "hasLabel", 2);
|
|
5962
|
-
__decorateClass$
|
|
6690
|
+
__decorateClass$x([
|
|
5963
6691
|
t$1()
|
|
5964
6692
|
], Textarea.prototype, "hasSuffix", 2);
|
|
5965
|
-
__decorateClass$
|
|
6693
|
+
__decorateClass$x([
|
|
5966
6694
|
t$1()
|
|
5967
6695
|
], Textarea.prototype, "hasPrefix", 2);
|
|
5968
|
-
__decorateClass$
|
|
6696
|
+
__decorateClass$x([
|
|
5969
6697
|
e$5()
|
|
5970
6698
|
], Textarea.prototype, "slotClasses", 2);
|
|
5971
|
-
Textarea = __decorateClass$
|
|
5972
|
-
n$3(tagName$
|
|
6699
|
+
Textarea = __decorateClass$x([
|
|
6700
|
+
n$3(tagName$w)
|
|
5973
6701
|
], Textarea);
|
|
5974
6702
|
try {
|
|
5975
|
-
customElements.define(tagName$
|
|
6703
|
+
customElements.define(tagName$w, Textarea);
|
|
5976
6704
|
} catch (e2) {
|
|
5977
6705
|
}
|
|
5978
|
-
var __defProp$
|
|
5979
|
-
var __getOwnPropDesc$
|
|
5980
|
-
var __decorateClass$
|
|
5981
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6706
|
+
var __defProp$w = Object.defineProperty;
|
|
6707
|
+
var __getOwnPropDesc$w = Object.getOwnPropertyDescriptor;
|
|
6708
|
+
var __decorateClass$w = (decorators, target, key, kind) => {
|
|
6709
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$w(target, key) : target;
|
|
5982
6710
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
5983
6711
|
if (decorator = decorators[i2])
|
|
5984
6712
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5985
6713
|
if (kind && result)
|
|
5986
|
-
__defProp$
|
|
6714
|
+
__defProp$w(target, key, result);
|
|
5987
6715
|
return result;
|
|
5988
6716
|
};
|
|
5989
|
-
const tagName$
|
|
6717
|
+
const tagName$v = "sonic-fieldset";
|
|
5990
6718
|
let Fieldset = class extends Subscriber$1(s$2) {
|
|
5991
6719
|
constructor() {
|
|
5992
6720
|
super(...arguments);
|
|
@@ -5999,28 +6727,28 @@ let Fieldset = class extends Subscriber$1(s$2) {
|
|
|
5999
6727
|
Fieldset.styles = [
|
|
6000
6728
|
r$5`:host{--sc-fieldset-mt:0;--sc-fieldset-mb:1rem;--sc-fieldset-border-color:var(--sc-base-200);--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}::slotted(sonic-legend){margin-bottom:1.5rem;display:block}`
|
|
6001
6729
|
];
|
|
6002
|
-
__decorateClass$
|
|
6730
|
+
__decorateClass$w([
|
|
6003
6731
|
e$5({ type: Boolean, reflect: true })
|
|
6004
6732
|
], Fieldset.prototype, "disabled", 2);
|
|
6005
|
-
__decorateClass$
|
|
6733
|
+
__decorateClass$w([
|
|
6006
6734
|
e$5({ type: String })
|
|
6007
6735
|
], Fieldset.prototype, "form", 2);
|
|
6008
|
-
Fieldset = __decorateClass$
|
|
6009
|
-
n$3(tagName$
|
|
6736
|
+
Fieldset = __decorateClass$w([
|
|
6737
|
+
n$3(tagName$v)
|
|
6010
6738
|
], Fieldset);
|
|
6011
6739
|
try {
|
|
6012
|
-
customElements.define(tagName$
|
|
6740
|
+
customElements.define(tagName$v, Fieldset);
|
|
6013
6741
|
} catch (e2) {
|
|
6014
6742
|
}
|
|
6015
|
-
var __defProp$
|
|
6016
|
-
var __getOwnPropDesc$
|
|
6017
|
-
var __decorateClass$
|
|
6018
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6743
|
+
var __defProp$v = Object.defineProperty;
|
|
6744
|
+
var __getOwnPropDesc$v = Object.getOwnPropertyDescriptor;
|
|
6745
|
+
var __decorateClass$v = (decorators, target, key, kind) => {
|
|
6746
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$v(target, key) : target;
|
|
6019
6747
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
6020
6748
|
if (decorator = decorators[i2])
|
|
6021
6749
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6022
6750
|
if (kind && result)
|
|
6023
|
-
__defProp$
|
|
6751
|
+
__defProp$v(target, key, result);
|
|
6024
6752
|
return result;
|
|
6025
6753
|
};
|
|
6026
6754
|
let LegendDescription = class extends s$2 {
|
|
@@ -6031,25 +6759,25 @@ let LegendDescription = class extends s$2 {
|
|
|
6031
6759
|
LegendDescription.styles = [
|
|
6032
6760
|
r$5`: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}`
|
|
6033
6761
|
];
|
|
6034
|
-
LegendDescription = __decorateClass$
|
|
6762
|
+
LegendDescription = __decorateClass$v([
|
|
6035
6763
|
n$3("sonic-legend-description")
|
|
6036
6764
|
], LegendDescription);
|
|
6037
6765
|
try {
|
|
6038
6766
|
customElements.define("sonic-legend-description", LegendDescription);
|
|
6039
6767
|
} catch (e2) {
|
|
6040
6768
|
}
|
|
6041
|
-
var __defProp$
|
|
6042
|
-
var __getOwnPropDesc$
|
|
6043
|
-
var __decorateClass$
|
|
6044
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6769
|
+
var __defProp$u = Object.defineProperty;
|
|
6770
|
+
var __getOwnPropDesc$u = Object.getOwnPropertyDescriptor;
|
|
6771
|
+
var __decorateClass$u = (decorators, target, key, kind) => {
|
|
6772
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$u(target, key) : target;
|
|
6045
6773
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
6046
6774
|
if (decorator = decorators[i2])
|
|
6047
6775
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6048
6776
|
if (kind && result)
|
|
6049
|
-
__defProp$
|
|
6777
|
+
__defProp$u(target, key, result);
|
|
6050
6778
|
return result;
|
|
6051
6779
|
};
|
|
6052
|
-
const tagName$
|
|
6780
|
+
const tagName$u = "sonic-legend";
|
|
6053
6781
|
let Legend = class extends s$2 {
|
|
6054
6782
|
constructor() {
|
|
6055
6783
|
super(...arguments);
|
|
@@ -6074,35 +6802,35 @@ let Legend = class extends s$2 {
|
|
|
6074
6802
|
this.requestUpdate();
|
|
6075
6803
|
}
|
|
6076
6804
|
render() {
|
|
6077
|
-
return $$1`<legend part="legend">${this.iconName ? $$1`<div class="icon"><sonic-icon name="${this.iconName}" prefix="${l(this.iconPrefix)}" library="${l(this.iconLibrary)}"></sonic-icon></div>` : ""}<div class="legend-content">${o$2(this.label)} ${this.description ? $$1`<sonic-legend-description>${o$2(this.description)}</sonic-legend-description>` : ""}<slot></slot></div><slot name="suffix"></slot></legend>`;
|
|
6805
|
+
return $$1`<legend part="legend">${this.iconName ? $$1`<div class="icon"><sonic-icon name="${this.iconName}" prefix="${l(this.iconPrefix)}" library="${l(this.iconLibrary)}"></sonic-icon></div>` : ""}<div class="legend-content">${o$2(this.label ? this.label : "")} ${this.description ? $$1`<sonic-legend-description>${o$2(this.description)}</sonic-legend-description>` : ""}<slot></slot></div><slot name="suffix"></slot></legend>`;
|
|
6078
6806
|
}
|
|
6079
6807
|
};
|
|
6080
6808
|
Legend.styles = [
|
|
6081
6809
|
r$5`:host{--sc-legend-font-size:1.75rem;--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);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);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}`
|
|
6082
6810
|
];
|
|
6083
|
-
__decorateClass$
|
|
6811
|
+
__decorateClass$u([
|
|
6084
6812
|
e$5({ type: Boolean })
|
|
6085
6813
|
], Legend.prototype, "forceAutoFill", 2);
|
|
6086
|
-
__decorateClass$
|
|
6814
|
+
__decorateClass$u([
|
|
6087
6815
|
e$5()
|
|
6088
6816
|
], Legend.prototype, "description", 1);
|
|
6089
|
-
__decorateClass$
|
|
6817
|
+
__decorateClass$u([
|
|
6090
6818
|
e$5()
|
|
6091
6819
|
], Legend.prototype, "label", 1);
|
|
6092
|
-
__decorateClass$
|
|
6820
|
+
__decorateClass$u([
|
|
6093
6821
|
e$5({ type: String })
|
|
6094
6822
|
], Legend.prototype, "iconName", 2);
|
|
6095
|
-
__decorateClass$
|
|
6823
|
+
__decorateClass$u([
|
|
6096
6824
|
e$5({ type: String })
|
|
6097
6825
|
], Legend.prototype, "iconLibrary", 2);
|
|
6098
|
-
__decorateClass$
|
|
6826
|
+
__decorateClass$u([
|
|
6099
6827
|
e$5({ type: String })
|
|
6100
6828
|
], Legend.prototype, "iconPrefix", 2);
|
|
6101
|
-
Legend = __decorateClass$
|
|
6102
|
-
n$3(tagName$
|
|
6829
|
+
Legend = __decorateClass$u([
|
|
6830
|
+
n$3(tagName$u)
|
|
6103
6831
|
], Legend);
|
|
6104
6832
|
try {
|
|
6105
|
-
customElements.define(tagName$
|
|
6833
|
+
customElements.define(tagName$u, Legend);
|
|
6106
6834
|
} catch (e2) {
|
|
6107
6835
|
}
|
|
6108
6836
|
class s {
|
|
@@ -6130,18 +6858,18 @@ class s {
|
|
|
6130
6858
|
this.u.disconnect();
|
|
6131
6859
|
}
|
|
6132
6860
|
}
|
|
6133
|
-
var __defProp$
|
|
6134
|
-
var __getOwnPropDesc$
|
|
6135
|
-
var __decorateClass$
|
|
6136
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6861
|
+
var __defProp$t = Object.defineProperty;
|
|
6862
|
+
var __getOwnPropDesc$t = Object.getOwnPropertyDescriptor;
|
|
6863
|
+
var __decorateClass$t = (decorators, target, key, kind) => {
|
|
6864
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$t(target, key) : target;
|
|
6137
6865
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
6138
6866
|
if (decorator = decorators[i2])
|
|
6139
6867
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6140
6868
|
if (kind && result)
|
|
6141
|
-
__defProp$
|
|
6869
|
+
__defProp$t(target, key, result);
|
|
6142
6870
|
return result;
|
|
6143
6871
|
};
|
|
6144
|
-
const tagName$
|
|
6872
|
+
const tagName$t = "sonic-form-layout";
|
|
6145
6873
|
let FormLayout = class extends Subscriber$1(s$2) {
|
|
6146
6874
|
constructor() {
|
|
6147
6875
|
super(...arguments);
|
|
@@ -6154,25 +6882,25 @@ let FormLayout = class extends Subscriber$1(s$2) {
|
|
|
6154
6882
|
FormLayout.styles = [
|
|
6155
6883
|
r$5`: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))}::slotted(sonic-checkbox),::slotted(sonic-divider),::slotted(sonic-form-actions),::slotted(sonic-radio),::slotted(sonic-textarea){grid-column:1/-1}::slotted(sonic-divider){--sc-divider-my:0}`
|
|
6156
6884
|
];
|
|
6157
|
-
FormLayout = __decorateClass$
|
|
6158
|
-
n$3(tagName$
|
|
6885
|
+
FormLayout = __decorateClass$t([
|
|
6886
|
+
n$3(tagName$t)
|
|
6159
6887
|
], FormLayout);
|
|
6160
6888
|
try {
|
|
6161
|
-
customElements.define(tagName$
|
|
6889
|
+
customElements.define(tagName$t, FormLayout);
|
|
6162
6890
|
} catch (e2) {
|
|
6163
6891
|
}
|
|
6164
|
-
var __defProp$
|
|
6165
|
-
var __getOwnPropDesc$
|
|
6166
|
-
var __decorateClass$
|
|
6167
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6892
|
+
var __defProp$s = Object.defineProperty;
|
|
6893
|
+
var __getOwnPropDesc$s = Object.getOwnPropertyDescriptor;
|
|
6894
|
+
var __decorateClass$s = (decorators, target, key, kind) => {
|
|
6895
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$s(target, key) : target;
|
|
6168
6896
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
6169
6897
|
if (decorator = decorators[i2])
|
|
6170
6898
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6171
6899
|
if (kind && result)
|
|
6172
|
-
__defProp$
|
|
6900
|
+
__defProp$s(target, key, result);
|
|
6173
6901
|
return result;
|
|
6174
6902
|
};
|
|
6175
|
-
const tagName$
|
|
6903
|
+
const tagName$s = "sonic-form-actions";
|
|
6176
6904
|
let FormActions = class extends s$2 {
|
|
6177
6905
|
render() {
|
|
6178
6906
|
return $$1`<slot></slot>`;
|
|
@@ -6181,25 +6909,25 @@ let FormActions = class extends s$2 {
|
|
|
6181
6909
|
FormActions.styles = [
|
|
6182
6910
|
r$5`:host{display:flex;gap:.3rem}`
|
|
6183
6911
|
];
|
|
6184
|
-
FormActions = __decorateClass$
|
|
6185
|
-
n$3(tagName$
|
|
6912
|
+
FormActions = __decorateClass$s([
|
|
6913
|
+
n$3(tagName$s)
|
|
6186
6914
|
], FormActions);
|
|
6187
6915
|
try {
|
|
6188
|
-
customElements.define(tagName$
|
|
6916
|
+
customElements.define(tagName$s, FormActions);
|
|
6189
6917
|
} catch (e2) {
|
|
6190
6918
|
}
|
|
6191
|
-
var __defProp$
|
|
6192
|
-
var __getOwnPropDesc$
|
|
6193
|
-
var __decorateClass$
|
|
6194
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6919
|
+
var __defProp$r = Object.defineProperty;
|
|
6920
|
+
var __getOwnPropDesc$r = Object.getOwnPropertyDescriptor;
|
|
6921
|
+
var __decorateClass$r = (decorators, target, key, kind) => {
|
|
6922
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$r(target, key) : target;
|
|
6195
6923
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
6196
6924
|
if (decorator = decorators[i2])
|
|
6197
6925
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6198
6926
|
if (kind && result)
|
|
6199
|
-
__defProp$
|
|
6927
|
+
__defProp$r(target, key, result);
|
|
6200
6928
|
return result;
|
|
6201
6929
|
};
|
|
6202
|
-
const tagName$
|
|
6930
|
+
const tagName$r = "sonic-group";
|
|
6203
6931
|
let Group = class extends s$2 {
|
|
6204
6932
|
updated() {
|
|
6205
6933
|
const children = this.querySelectorAll("sonic-input, sonic-button");
|
|
@@ -6228,25 +6956,25 @@ let Group = class extends s$2 {
|
|
|
6228
6956
|
Group.styles = [
|
|
6229
6957
|
r$5`:host{display:inline-flex;vertical-align:middle}slot{width:100%;display:flex;align-items:flex-end}`
|
|
6230
6958
|
];
|
|
6231
|
-
Group = __decorateClass$
|
|
6232
|
-
n$3(tagName$
|
|
6959
|
+
Group = __decorateClass$r([
|
|
6960
|
+
n$3(tagName$r)
|
|
6233
6961
|
], Group);
|
|
6234
6962
|
try {
|
|
6235
|
-
customElements.define(tagName$
|
|
6963
|
+
customElements.define(tagName$r, Group);
|
|
6236
6964
|
} catch (e2) {
|
|
6237
6965
|
}
|
|
6238
|
-
var __defProp$
|
|
6239
|
-
var __getOwnPropDesc$
|
|
6240
|
-
var __decorateClass$
|
|
6241
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6966
|
+
var __defProp$q = Object.defineProperty;
|
|
6967
|
+
var __getOwnPropDesc$q = Object.getOwnPropertyDescriptor;
|
|
6968
|
+
var __decorateClass$q = (decorators, target, key, kind) => {
|
|
6969
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$q(target, key) : target;
|
|
6242
6970
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
6243
6971
|
if (decorator = decorators[i2])
|
|
6244
6972
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6245
6973
|
if (kind && result)
|
|
6246
|
-
__defProp$
|
|
6974
|
+
__defProp$q(target, key, result);
|
|
6247
6975
|
return result;
|
|
6248
6976
|
};
|
|
6249
|
-
const tagName$
|
|
6977
|
+
const tagName$q = "sonic-image";
|
|
6250
6978
|
let Image = class extends s$2 {
|
|
6251
6979
|
constructor() {
|
|
6252
6980
|
super(...arguments);
|
|
@@ -6271,49 +6999,49 @@ let Image = class extends s$2 {
|
|
|
6271
6999
|
Image.styles = [
|
|
6272
7000
|
r$5`: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}`
|
|
6273
7001
|
];
|
|
6274
|
-
__decorateClass$
|
|
7002
|
+
__decorateClass$q([
|
|
6275
7003
|
e$5({ type: String })
|
|
6276
7004
|
], Image.prototype, "rounded", 2);
|
|
6277
|
-
__decorateClass$
|
|
7005
|
+
__decorateClass$q([
|
|
6278
7006
|
e$5({ type: String })
|
|
6279
7007
|
], Image.prototype, "src", 2);
|
|
6280
|
-
__decorateClass$
|
|
7008
|
+
__decorateClass$q([
|
|
6281
7009
|
e$5({ type: String })
|
|
6282
7010
|
], Image.prototype, "alt", 2);
|
|
6283
|
-
__decorateClass$
|
|
7011
|
+
__decorateClass$q([
|
|
6284
7012
|
e$5({ type: String })
|
|
6285
7013
|
], Image.prototype, "loading", 2);
|
|
6286
|
-
__decorateClass$
|
|
7014
|
+
__decorateClass$q([
|
|
6287
7015
|
e$5({ type: String })
|
|
6288
7016
|
], Image.prototype, "ratio", 2);
|
|
6289
|
-
__decorateClass$
|
|
7017
|
+
__decorateClass$q([
|
|
6290
7018
|
e$5({ type: String })
|
|
6291
7019
|
], Image.prototype, "objectPosition", 2);
|
|
6292
|
-
__decorateClass$
|
|
7020
|
+
__decorateClass$q([
|
|
6293
7021
|
e$5({ type: String })
|
|
6294
7022
|
], Image.prototype, "imageRendering", 2);
|
|
6295
|
-
__decorateClass$
|
|
7023
|
+
__decorateClass$q([
|
|
6296
7024
|
e$5({ type: Boolean, reflect: true })
|
|
6297
7025
|
], Image.prototype, "cover", 2);
|
|
6298
|
-
Image = __decorateClass$
|
|
6299
|
-
n$3(tagName$
|
|
7026
|
+
Image = __decorateClass$q([
|
|
7027
|
+
n$3(tagName$q)
|
|
6300
7028
|
], Image);
|
|
6301
7029
|
try {
|
|
6302
|
-
customElements.define(tagName$
|
|
7030
|
+
customElements.define(tagName$q, Image);
|
|
6303
7031
|
} catch (e2) {
|
|
6304
7032
|
}
|
|
6305
|
-
var __defProp$
|
|
6306
|
-
var __getOwnPropDesc$
|
|
6307
|
-
var __decorateClass$
|
|
6308
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7033
|
+
var __defProp$p = Object.defineProperty;
|
|
7034
|
+
var __getOwnPropDesc$p = Object.getOwnPropertyDescriptor;
|
|
7035
|
+
var __decorateClass$p = (decorators, target, key, kind) => {
|
|
7036
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$p(target, key) : target;
|
|
6309
7037
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
6310
7038
|
if (decorator = decorators[i2])
|
|
6311
7039
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6312
7040
|
if (kind && result)
|
|
6313
|
-
__defProp$
|
|
7041
|
+
__defProp$p(target, key, result);
|
|
6314
7042
|
return result;
|
|
6315
7043
|
};
|
|
6316
|
-
const tagName$
|
|
7044
|
+
const tagName$p = "sonic-taxonomy";
|
|
6317
7045
|
let Taxonomy = class extends s$2 {
|
|
6318
7046
|
constructor() {
|
|
6319
7047
|
super(...arguments);
|
|
@@ -6341,85 +7069,46 @@ let Taxonomy = class extends s$2 {
|
|
|
6341
7069
|
}
|
|
6342
7070
|
};
|
|
6343
7071
|
Taxonomy.styles = r$5`:host .sonic-taxonomy-separator:last-child{display:none}.taxonomy-list{display:flex;flex-wrap:wrap}`;
|
|
6344
|
-
__decorateClass$
|
|
7072
|
+
__decorateClass$p([
|
|
6345
7073
|
e$5({ type: Object })
|
|
6346
7074
|
], Taxonomy.prototype, "icon", 2);
|
|
6347
|
-
__decorateClass$
|
|
7075
|
+
__decorateClass$p([
|
|
6348
7076
|
e$5({ type: Array })
|
|
6349
7077
|
], Taxonomy.prototype, "taxonomy", 2);
|
|
6350
|
-
__decorateClass$
|
|
7078
|
+
__decorateClass$p([
|
|
6351
7079
|
e$5({ type: String })
|
|
6352
7080
|
], Taxonomy.prototype, "separator", 2);
|
|
6353
|
-
__decorateClass$
|
|
7081
|
+
__decorateClass$p([
|
|
6354
7082
|
e$5({ type: String })
|
|
6355
7083
|
], Taxonomy.prototype, "key", 2);
|
|
6356
|
-
__decorateClass$
|
|
7084
|
+
__decorateClass$p([
|
|
6357
7085
|
e$5({ type: String, reflect: true })
|
|
6358
7086
|
], Taxonomy.prototype, "type", 2);
|
|
6359
|
-
__decorateClass$
|
|
7087
|
+
__decorateClass$p([
|
|
6360
7088
|
e$5({ type: String, reflect: true })
|
|
6361
7089
|
], Taxonomy.prototype, "variant", 2);
|
|
6362
|
-
__decorateClass$
|
|
7090
|
+
__decorateClass$p([
|
|
6363
7091
|
e$5({ type: String, reflect: true })
|
|
6364
7092
|
], Taxonomy.prototype, "size", 2);
|
|
6365
|
-
Taxonomy = __decorateClass$
|
|
6366
|
-
n$3(tagName$
|
|
7093
|
+
Taxonomy = __decorateClass$p([
|
|
7094
|
+
n$3(tagName$p)
|
|
6367
7095
|
], Taxonomy);
|
|
6368
7096
|
try {
|
|
6369
7097
|
customElements.define("sonic-taxonomy", Taxonomy);
|
|
6370
7098
|
} catch (e2) {
|
|
6371
7099
|
}
|
|
6372
|
-
var __defProp$
|
|
6373
|
-
var __getOwnPropDesc$
|
|
6374
|
-
var __decorateClass$
|
|
6375
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6376
|
-
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
6377
|
-
if (decorator = decorators[i2])
|
|
6378
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6379
|
-
if (kind && result)
|
|
6380
|
-
__defProp$q(target, key, result);
|
|
6381
|
-
return result;
|
|
6382
|
-
};
|
|
6383
|
-
const tagName$q = "sonic-menu-item";
|
|
6384
|
-
let MenuItem = class extends Button {
|
|
6385
|
-
constructor() {
|
|
6386
|
-
super();
|
|
6387
|
-
}
|
|
6388
|
-
connectedCallback() {
|
|
6389
|
-
if (!this.hasAttribute("variant")) {
|
|
6390
|
-
this.variant = "ghost";
|
|
6391
|
-
}
|
|
6392
|
-
if (!this.hasAttribute("type")) {
|
|
6393
|
-
this.type = "primary";
|
|
6394
|
-
}
|
|
6395
|
-
if (!this.hasAttribute("shape")) {
|
|
6396
|
-
this.shape = "block";
|
|
6397
|
-
}
|
|
6398
|
-
if (!this.hasAttribute("align")) {
|
|
6399
|
-
this.align = "left";
|
|
6400
|
-
}
|
|
6401
|
-
super.connectedCallback();
|
|
6402
|
-
}
|
|
6403
|
-
};
|
|
6404
|
-
MenuItem = __decorateClass$q([
|
|
6405
|
-
n$3(tagName$q)
|
|
6406
|
-
], MenuItem);
|
|
6407
|
-
try {
|
|
6408
|
-
customElements.define(tagName$q, MenuItem);
|
|
6409
|
-
} catch (e2) {
|
|
6410
|
-
}
|
|
6411
|
-
var __defProp$p = Object.defineProperty;
|
|
6412
|
-
var __getOwnPropDesc$p = Object.getOwnPropertyDescriptor;
|
|
6413
|
-
var __decorateClass$p = (decorators, target, key, kind) => {
|
|
6414
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$p(target, key) : target;
|
|
7100
|
+
var __defProp$o = Object.defineProperty;
|
|
7101
|
+
var __getOwnPropDesc$o = Object.getOwnPropertyDescriptor;
|
|
7102
|
+
var __decorateClass$o = (decorators, target, key, kind) => {
|
|
7103
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$o(target, key) : target;
|
|
6415
7104
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
6416
7105
|
if (decorator = decorators[i2])
|
|
6417
7106
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6418
7107
|
if (kind && result)
|
|
6419
|
-
__defProp$
|
|
7108
|
+
__defProp$o(target, key, result);
|
|
6420
7109
|
return result;
|
|
6421
7110
|
};
|
|
6422
|
-
const tagName$
|
|
7111
|
+
const tagName$o = "sonic-menu";
|
|
6423
7112
|
let MenuItems = class extends s$2 {
|
|
6424
7113
|
constructor() {
|
|
6425
7114
|
super(...arguments);
|
|
@@ -6489,55 +7178,55 @@ let MenuItems = class extends s$2 {
|
|
|
6489
7178
|
MenuItems.styles = [
|
|
6490
7179
|
r$5`:host{display:block;--sc-menu-gap:.15rem}:host>menu{display:flex;border-radius:min(calc(var(--sc-btn-rounded) * 2),.4em);margin:0;padding:.35em}.hidden{display:none!important}:host([shadow=md]) .shadowable,:host([shadow=true]) .shadowable,:host([shadow]) .shadowable{box-shadow:var(--sc-shadow)}:host([shadow=sm]) .shadowable{box-shadow:var(--sc-shadow-sm)}:host([shadow=lg]) .shadowable{box-shadow:var(--sc-shadow-lg)}:host([shadow=none]) .shadowable{box-shadow:none}`
|
|
6491
7180
|
];
|
|
6492
|
-
__decorateClass$
|
|
7181
|
+
__decorateClass$o([
|
|
6493
7182
|
e$5({ type: String, reflect: true })
|
|
6494
7183
|
], MenuItems.prototype, "size", 2);
|
|
6495
|
-
__decorateClass$
|
|
7184
|
+
__decorateClass$o([
|
|
6496
7185
|
e$5({ type: String, reflect: true })
|
|
6497
7186
|
], MenuItems.prototype, "direction", 2);
|
|
6498
|
-
__decorateClass$
|
|
7187
|
+
__decorateClass$o([
|
|
6499
7188
|
e$5({ type: String })
|
|
6500
7189
|
], MenuItems.prototype, "gap", 2);
|
|
6501
|
-
__decorateClass$
|
|
7190
|
+
__decorateClass$o([
|
|
6502
7191
|
e$5({ type: String, reflect: true })
|
|
6503
7192
|
], MenuItems.prototype, "align", 2);
|
|
6504
|
-
__decorateClass$
|
|
7193
|
+
__decorateClass$o([
|
|
6505
7194
|
e$5({ type: String, reflect: true })
|
|
6506
7195
|
], MenuItems.prototype, "shadow", 2);
|
|
6507
|
-
__decorateClass$
|
|
7196
|
+
__decorateClass$o([
|
|
6508
7197
|
e$5({ type: String })
|
|
6509
7198
|
], MenuItems.prototype, "moreShape", 2);
|
|
6510
|
-
__decorateClass$
|
|
7199
|
+
__decorateClass$o([
|
|
6511
7200
|
e$5({ type: String })
|
|
6512
7201
|
], MenuItems.prototype, "minWidth", 2);
|
|
6513
|
-
__decorateClass$
|
|
7202
|
+
__decorateClass$o([
|
|
6514
7203
|
l$2({ selector: "sonic-menu-item" })
|
|
6515
7204
|
], MenuItems.prototype, "menuChildren", 2);
|
|
6516
|
-
__decorateClass$
|
|
7205
|
+
__decorateClass$o([
|
|
6517
7206
|
l$2({ slot: "more", selector: "*" })
|
|
6518
7207
|
], MenuItems.prototype, "moreElements", 2);
|
|
6519
|
-
__decorateClass$
|
|
7208
|
+
__decorateClass$o([
|
|
6520
7209
|
t$1()
|
|
6521
7210
|
], MenuItems.prototype, "hasMoreElements", 2);
|
|
6522
|
-
MenuItems = __decorateClass$
|
|
6523
|
-
n$3(tagName$
|
|
7211
|
+
MenuItems = __decorateClass$o([
|
|
7212
|
+
n$3(tagName$o)
|
|
6524
7213
|
], MenuItems);
|
|
6525
7214
|
try {
|
|
6526
|
-
customElements.define(tagName$
|
|
7215
|
+
customElements.define(tagName$o, MenuItems);
|
|
6527
7216
|
} catch (e2) {
|
|
6528
7217
|
}
|
|
6529
|
-
var __defProp$
|
|
6530
|
-
var __getOwnPropDesc$
|
|
6531
|
-
var __decorateClass$
|
|
6532
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7218
|
+
var __defProp$n = Object.defineProperty;
|
|
7219
|
+
var __getOwnPropDesc$n = Object.getOwnPropertyDescriptor;
|
|
7220
|
+
var __decorateClass$n = (decorators, target, key, kind) => {
|
|
7221
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$n(target, key) : target;
|
|
6533
7222
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
6534
7223
|
if (decorator = decorators[i2])
|
|
6535
7224
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6536
7225
|
if (kind && result)
|
|
6537
|
-
__defProp$
|
|
7226
|
+
__defProp$n(target, key, result);
|
|
6538
7227
|
return result;
|
|
6539
7228
|
};
|
|
6540
|
-
const tagName$
|
|
7229
|
+
const tagName$n = "sonic-modal-actions";
|
|
6541
7230
|
let ModalActions = class extends s$2 {
|
|
6542
7231
|
firstUpdated() {
|
|
6543
7232
|
var _a2;
|
|
@@ -6557,28 +7246,28 @@ let ModalActions = class extends s$2 {
|
|
|
6557
7246
|
ModalActions.styles = [
|
|
6558
7247
|
r$5`:host{display:flex;gap:.5rem;margin-top:auto;padding-top:1rem}`
|
|
6559
7248
|
];
|
|
6560
|
-
__decorateClass$
|
|
7249
|
+
__decorateClass$n([
|
|
6561
7250
|
l$2({ selector: "sonic-button" })
|
|
6562
7251
|
], ModalActions.prototype, "buttons", 2);
|
|
6563
|
-
ModalActions = __decorateClass$
|
|
6564
|
-
n$3(tagName$
|
|
7252
|
+
ModalActions = __decorateClass$n([
|
|
7253
|
+
n$3(tagName$n)
|
|
6565
7254
|
], ModalActions);
|
|
6566
7255
|
try {
|
|
6567
|
-
customElements.define(tagName$
|
|
7256
|
+
customElements.define(tagName$n, ModalActions);
|
|
6568
7257
|
} catch (e2) {
|
|
6569
7258
|
}
|
|
6570
|
-
var __defProp$
|
|
6571
|
-
var __getOwnPropDesc$
|
|
6572
|
-
var __decorateClass$
|
|
6573
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7259
|
+
var __defProp$m = Object.defineProperty;
|
|
7260
|
+
var __getOwnPropDesc$m = Object.getOwnPropertyDescriptor;
|
|
7261
|
+
var __decorateClass$m = (decorators, target, key, kind) => {
|
|
7262
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$m(target, key) : target;
|
|
6574
7263
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
6575
7264
|
if (decorator = decorators[i2])
|
|
6576
7265
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6577
7266
|
if (kind && result)
|
|
6578
|
-
__defProp$
|
|
7267
|
+
__defProp$m(target, key, result);
|
|
6579
7268
|
return result;
|
|
6580
7269
|
};
|
|
6581
|
-
const tagName$
|
|
7270
|
+
const tagName$m = "sonic-modal-title";
|
|
6582
7271
|
let ModalTitle = class extends s$2 {
|
|
6583
7272
|
render() {
|
|
6584
7273
|
return $$1`<slot></slot>`;
|
|
@@ -6587,25 +7276,25 @@ let ModalTitle = class extends s$2 {
|
|
|
6587
7276
|
ModalTitle.styles = [
|
|
6588
7277
|
r$5`:host{font-weight:700;font-size:1.5rem;display:block;line-height:var(--sc-headings-line-height);font-family:var(--sc-headings-font-family)}`
|
|
6589
7278
|
];
|
|
6590
|
-
ModalTitle = __decorateClass$
|
|
6591
|
-
n$3(tagName$
|
|
7279
|
+
ModalTitle = __decorateClass$m([
|
|
7280
|
+
n$3(tagName$m)
|
|
6592
7281
|
], ModalTitle);
|
|
6593
7282
|
try {
|
|
6594
|
-
customElements.define(tagName$
|
|
7283
|
+
customElements.define(tagName$m, ModalTitle);
|
|
6595
7284
|
} catch (e2) {
|
|
6596
7285
|
}
|
|
6597
|
-
var __defProp$
|
|
6598
|
-
var __getOwnPropDesc$
|
|
6599
|
-
var __decorateClass$
|
|
6600
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7286
|
+
var __defProp$l = Object.defineProperty;
|
|
7287
|
+
var __getOwnPropDesc$l = Object.getOwnPropertyDescriptor;
|
|
7288
|
+
var __decorateClass$l = (decorators, target, key, kind) => {
|
|
7289
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$l(target, key) : target;
|
|
6601
7290
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
6602
7291
|
if (decorator = decorators[i2])
|
|
6603
7292
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6604
7293
|
if (kind && result)
|
|
6605
|
-
__defProp$
|
|
7294
|
+
__defProp$l(target, key, result);
|
|
6606
7295
|
return result;
|
|
6607
7296
|
};
|
|
6608
|
-
const tagName$
|
|
7297
|
+
const tagName$l = "sonic-modal-subtitle";
|
|
6609
7298
|
let ModalSubTitle = class extends s$2 {
|
|
6610
7299
|
render() {
|
|
6611
7300
|
return $$1`<slot></slot>`;
|
|
@@ -6614,25 +7303,25 @@ let ModalSubTitle = class extends s$2 {
|
|
|
6614
7303
|
ModalSubTitle.styles = [
|
|
6615
7304
|
r$5`:host{font-size:1.1rem;display:block;text-transform:uppercase;line-height:var(--sc-headings-line-height);font-family:var(--sc-headings-font-family)}`
|
|
6616
7305
|
];
|
|
6617
|
-
ModalSubTitle = __decorateClass$
|
|
6618
|
-
n$3(tagName$
|
|
7306
|
+
ModalSubTitle = __decorateClass$l([
|
|
7307
|
+
n$3(tagName$l)
|
|
6619
7308
|
], ModalSubTitle);
|
|
6620
7309
|
try {
|
|
6621
|
-
customElements.define(tagName$
|
|
7310
|
+
customElements.define(tagName$l, ModalSubTitle);
|
|
6622
7311
|
} catch (e2) {
|
|
6623
7312
|
}
|
|
6624
|
-
var __defProp$
|
|
6625
|
-
var __getOwnPropDesc$
|
|
6626
|
-
var __decorateClass$
|
|
6627
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7313
|
+
var __defProp$k = Object.defineProperty;
|
|
7314
|
+
var __getOwnPropDesc$k = Object.getOwnPropertyDescriptor;
|
|
7315
|
+
var __decorateClass$k = (decorators, target, key, kind) => {
|
|
7316
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$k(target, key) : target;
|
|
6628
7317
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
6629
7318
|
if (decorator = decorators[i2])
|
|
6630
7319
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6631
7320
|
if (kind && result)
|
|
6632
|
-
__defProp$
|
|
7321
|
+
__defProp$k(target, key, result);
|
|
6633
7322
|
return result;
|
|
6634
7323
|
};
|
|
6635
|
-
const tagName$
|
|
7324
|
+
const tagName$k = "sonic-modal-content";
|
|
6636
7325
|
let ModalContent = class extends s$2 {
|
|
6637
7326
|
render() {
|
|
6638
7327
|
return $$1`<slot></slot>`;
|
|
@@ -6641,25 +7330,25 @@ let ModalContent = class extends s$2 {
|
|
|
6641
7330
|
ModalContent.styles = [
|
|
6642
7331
|
r$5`:host{display:block}`
|
|
6643
7332
|
];
|
|
6644
|
-
ModalContent = __decorateClass$
|
|
6645
|
-
n$3(tagName$
|
|
7333
|
+
ModalContent = __decorateClass$k([
|
|
7334
|
+
n$3(tagName$k)
|
|
6646
7335
|
], ModalContent);
|
|
6647
7336
|
try {
|
|
6648
|
-
customElements.define(tagName$
|
|
7337
|
+
customElements.define(tagName$k, ModalContent);
|
|
6649
7338
|
} catch (e2) {
|
|
6650
7339
|
}
|
|
6651
|
-
var __defProp$
|
|
6652
|
-
var __getOwnPropDesc$
|
|
6653
|
-
var __decorateClass$
|
|
6654
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7340
|
+
var __defProp$j = Object.defineProperty;
|
|
7341
|
+
var __getOwnPropDesc$j = Object.getOwnPropertyDescriptor;
|
|
7342
|
+
var __decorateClass$j = (decorators, target, key, kind) => {
|
|
7343
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$j(target, key) : target;
|
|
6655
7344
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
6656
7345
|
if (decorator = decorators[i2])
|
|
6657
7346
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6658
7347
|
if (kind && result)
|
|
6659
|
-
__defProp$
|
|
7348
|
+
__defProp$j(target, key, result);
|
|
6660
7349
|
return result;
|
|
6661
7350
|
};
|
|
6662
|
-
const tagName$
|
|
7351
|
+
const tagName$j = "sonic-modal-close";
|
|
6663
7352
|
let ModalClose = class extends s$2 {
|
|
6664
7353
|
render() {
|
|
6665
7354
|
return $$1`<sonic-button shape="circle" variant="ghost" @click="${this.handleClick}"><sonic-icon name="cancel" size="lg"></sonic-icon></sonic-button>`;
|
|
@@ -6672,25 +7361,25 @@ let ModalClose = class extends s$2 {
|
|
|
6672
7361
|
ModalClose.styles = [
|
|
6673
7362
|
r$5`:host{position:absolute;right:.6rem;top:.6rem;z-index:20}`
|
|
6674
7363
|
];
|
|
6675
|
-
ModalClose = __decorateClass$
|
|
6676
|
-
n$3(tagName$
|
|
7364
|
+
ModalClose = __decorateClass$j([
|
|
7365
|
+
n$3(tagName$j)
|
|
6677
7366
|
], ModalClose);
|
|
6678
7367
|
try {
|
|
6679
|
-
customElements.define(tagName$
|
|
7368
|
+
customElements.define(tagName$j, ModalClose);
|
|
6680
7369
|
} catch (e2) {
|
|
6681
7370
|
}
|
|
6682
|
-
var __defProp$
|
|
6683
|
-
var __getOwnPropDesc$
|
|
6684
|
-
var __decorateClass$
|
|
6685
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7371
|
+
var __defProp$i = Object.defineProperty;
|
|
7372
|
+
var __getOwnPropDesc$i = Object.getOwnPropertyDescriptor;
|
|
7373
|
+
var __decorateClass$i = (decorators, target, key, kind) => {
|
|
7374
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$i(target, key) : target;
|
|
6686
7375
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
6687
7376
|
if (decorator = decorators[i2])
|
|
6688
7377
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6689
7378
|
if (kind && result)
|
|
6690
|
-
__defProp$
|
|
7379
|
+
__defProp$i(target, key, result);
|
|
6691
7380
|
return result;
|
|
6692
7381
|
};
|
|
6693
|
-
const tagName$
|
|
7382
|
+
const tagName$i = "sonic-modal";
|
|
6694
7383
|
let Modal = class extends Subscriber$1(s$2) {
|
|
6695
7384
|
constructor() {
|
|
6696
7385
|
super(...arguments);
|
|
@@ -6706,7 +7395,7 @@ let Modal = class extends Subscriber$1(s$2) {
|
|
|
6706
7395
|
this.visible = false;
|
|
6707
7396
|
}
|
|
6708
7397
|
static create(options) {
|
|
6709
|
-
const modal = document.createElement(tagName$
|
|
7398
|
+
const modal = document.createElement(tagName$i);
|
|
6710
7399
|
modal.innerHTML = `<sonic-modal-close></sonic-modal-close><sonic-modal-content>${options.content}</sonic-modal-content>` || "";
|
|
6711
7400
|
let container = document.querySelector("sonic-theme") || document.body;
|
|
6712
7401
|
container.appendChild(modal);
|
|
@@ -6780,7 +7469,7 @@ let Modal = class extends Subscriber$1(s$2) {
|
|
|
6780
7469
|
}
|
|
6781
7470
|
handleEscape(e2) {
|
|
6782
7471
|
if (e2.key === "Escape") {
|
|
6783
|
-
const modals = [...document.querySelectorAll(tagName$
|
|
7472
|
+
const modals = [...document.querySelectorAll(tagName$i)];
|
|
6784
7473
|
modals.forEach((item) => {
|
|
6785
7474
|
if (this.hideOnEscape == true) {
|
|
6786
7475
|
item.hide();
|
|
@@ -6801,65 +7490,65 @@ Modal.styles = [
|
|
|
6801
7490
|
customScroll,
|
|
6802
7491
|
r$5`:host{--sc-modal-py:2.5rem;--sc-modal-px:1.5rem;--sc-modal-content:var(--sc-base-content);--sc-modal-bg:var(--sc-base);--sc-modal-max-w:min(100vw, 64ch);--sc-modal-max-h:80vh;--sc-modal-scrollbar-bg:var(--sc-base-300);--sc-modal-rounded:var(--sc-rounded-lg)}*{box-sizing:border-box}.modal-wrapper{position:fixed;bottom:0;left:0;width:100%;z-index:990;text-align:center;align-items:center;justify-content:center;flex-direction:column;display:flex;pointer-events:none}.modal-content{overflow-y:auto;display:flex;flex-direction:column;text-align:center;align-items:center;min-height:10rem}.modal{background:var(--sc-base);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-base-200);left:0;top:0;right:0;bottom:0;z-index:900;opacity:.8;position:fixed}::slotted(sonic-modal-title){margin-bottom:1rem}::slotted(sonic-modal-subtitle){margin-top:-.45rem;margin-bottom:1rem}@media (max-width:767.5px){.modal,.modal-wrapper{max-width:none!important;width:100%!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=right]) .modal-content{text-align:right;align-items:flex-end}:host([rounded=none]) modal{--sc-img-radius:0!important}`
|
|
6803
7492
|
];
|
|
6804
|
-
__decorateClass$
|
|
7493
|
+
__decorateClass$i([
|
|
6805
7494
|
e$5({ type: Boolean, reflect: true })
|
|
6806
7495
|
], Modal.prototype, "hideOnOverlayClick", 2);
|
|
6807
|
-
__decorateClass$
|
|
7496
|
+
__decorateClass$i([
|
|
6808
7497
|
e$5({ type: Boolean, reflect: true })
|
|
6809
7498
|
], Modal.prototype, "hideOnEscape", 2);
|
|
6810
|
-
__decorateClass$
|
|
7499
|
+
__decorateClass$i([
|
|
6811
7500
|
e$5({ type: String, reflect: true })
|
|
6812
7501
|
], Modal.prototype, "align", 2);
|
|
6813
|
-
__decorateClass$
|
|
7502
|
+
__decorateClass$i([
|
|
6814
7503
|
e$5({ type: String })
|
|
6815
7504
|
], Modal.prototype, "padding", 2);
|
|
6816
|
-
__decorateClass$
|
|
7505
|
+
__decorateClass$i([
|
|
6817
7506
|
e$5({ type: String })
|
|
6818
7507
|
], Modal.prototype, "maxWidth", 2);
|
|
6819
|
-
__decorateClass$
|
|
7508
|
+
__decorateClass$i([
|
|
6820
7509
|
e$5({ type: String })
|
|
6821
7510
|
], Modal.prototype, "maxHeight", 2);
|
|
6822
|
-
__decorateClass$
|
|
7511
|
+
__decorateClass$i([
|
|
6823
7512
|
e$5({ type: String })
|
|
6824
7513
|
], Modal.prototype, "width", 2);
|
|
6825
|
-
__decorateClass$
|
|
7514
|
+
__decorateClass$i([
|
|
6826
7515
|
e$5({ type: String })
|
|
6827
7516
|
], Modal.prototype, "height", 2);
|
|
6828
|
-
__decorateClass$
|
|
7517
|
+
__decorateClass$i([
|
|
6829
7518
|
e$5({ type: Boolean, reflect: true })
|
|
6830
7519
|
], Modal.prototype, "fullScreen", 2);
|
|
6831
|
-
__decorateClass$
|
|
7520
|
+
__decorateClass$i([
|
|
6832
7521
|
e$5({ type: Boolean, reflect: true })
|
|
6833
7522
|
], Modal.prototype, "visible", 2);
|
|
6834
|
-
__decorateClass$
|
|
7523
|
+
__decorateClass$i([
|
|
6835
7524
|
i$4(".modal-wrapper")
|
|
6836
7525
|
], Modal.prototype, "modalWrapper", 2);
|
|
6837
|
-
__decorateClass$
|
|
7526
|
+
__decorateClass$i([
|
|
6838
7527
|
i$4(".modal")
|
|
6839
7528
|
], Modal.prototype, "modalElement", 2);
|
|
6840
|
-
__decorateClass$
|
|
7529
|
+
__decorateClass$i([
|
|
6841
7530
|
l$2({ selector: "sonic-modal-close" })
|
|
6842
7531
|
], Modal.prototype, "closeBtn", 2);
|
|
6843
|
-
Modal = __decorateClass$
|
|
6844
|
-
n$3(tagName$
|
|
7532
|
+
Modal = __decorateClass$i([
|
|
7533
|
+
n$3(tagName$i)
|
|
6845
7534
|
], Modal);
|
|
6846
7535
|
if (typeof window !== "undefined") {
|
|
6847
7536
|
let win2 = window;
|
|
6848
7537
|
win2.SonicModal = Modal;
|
|
6849
7538
|
}
|
|
6850
7539
|
try {
|
|
6851
|
-
customElements.define(tagName$
|
|
7540
|
+
customElements.define(tagName$i, Modal);
|
|
6852
7541
|
} catch (e2) {
|
|
6853
7542
|
}
|
|
6854
|
-
var __defProp$
|
|
6855
|
-
var __getOwnPropDesc$
|
|
6856
|
-
var __decorateClass$
|
|
6857
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7543
|
+
var __defProp$h = Object.defineProperty;
|
|
7544
|
+
var __getOwnPropDesc$h = Object.getOwnPropertyDescriptor;
|
|
7545
|
+
var __decorateClass$h = (decorators, target, key, kind) => {
|
|
7546
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$h(target, key) : target;
|
|
6858
7547
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
6859
7548
|
if (decorator = decorators[i2])
|
|
6860
7549
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6861
7550
|
if (kind && result)
|
|
6862
|
-
__defProp$
|
|
7551
|
+
__defProp$h(target, key, result);
|
|
6863
7552
|
return result;
|
|
6864
7553
|
};
|
|
6865
7554
|
const icon = {
|
|
@@ -6869,7 +7558,7 @@ const icon = {
|
|
|
6869
7558
|
info: "info-empty",
|
|
6870
7559
|
default: "info-empty"
|
|
6871
7560
|
};
|
|
6872
|
-
const tagName$
|
|
7561
|
+
const tagName$h = "sonic-alert";
|
|
6873
7562
|
let Alert = class extends s$2 {
|
|
6874
7563
|
constructor() {
|
|
6875
7564
|
super(...arguments);
|
|
@@ -6884,42 +7573,42 @@ let Alert = class extends s$2 {
|
|
|
6884
7573
|
};
|
|
6885
7574
|
Alert.styles = [
|
|
6886
7575
|
fontSize,
|
|
6887
|
-
r$5`:host{--sc-alert-color:inherit;--sc-alert-rounded:var(--sc-rounded);--sc-alert-fw:var(--sc-font-weight-base);--sc-alert-fst:var(--sc-font-style-base);--sc-alert-label-fw:bold;display:block;font-weight:var(--sc-alert-fw);font-style:var(--sc-alert-fst)}.alert{color:var(--sc-alert-color);position:relative;display:flex;gap:.4em;line-height:1.2;border-radius:var(--sc-alert-rounded)}
|
|
7576
|
+
r$5`:host{--sc-alert-color:inherit;--sc-alert-rounded:var(--sc-rounded);--sc-alert-fw:var(--sc-font-weight-base);--sc-alert-fst:var(--sc-font-style-base);--sc-alert-label-fw:bold;display:block;font-weight:var(--sc-alert-fw);font-style:var(--sc-alert-fst)}.alert{color:var(--sc-alert-color);position:relative;display:flex;gap:.4em;line-height:1.2;border-radius:var(--sc-alert-rounded)}.label{font-weight:var(--sc-alert-label-fw)}:host([status=warning]){--sc-alert-color:var(--sc-warning)}:host([status=error]){--sc-alert-color:var(--sc-danger)}:host([status=info]){--sc-alert-color:var(--sc-info)}:host([status=success]){--sc-alert-color:var(--sc-success)}:host([background]) .alert{background:var(--sc-base);padding:.8em 1.15em}:host([background]) .alert:before{background-color:currentColor;content:'';display:block;position:absolute;left:0;top:0;right:0;bottom:0;opacity:.08;border-radius:var(--sc-alert-rounded);pointer-events:none}:host([background])>div{z-index:2;position:relative}slot{display:block}:host([size=xs]) .alert{--sc-alert-rounded:var(--sc-rounded-sm)}:host([size=sm]) .alert{--sc-alert-rounded:var(--sc-rounded-sm)}`
|
|
6888
7577
|
];
|
|
6889
|
-
__decorateClass$
|
|
7578
|
+
__decorateClass$h([
|
|
6890
7579
|
e$5({ type: String })
|
|
6891
7580
|
], Alert.prototype, "label", 2);
|
|
6892
|
-
__decorateClass$
|
|
7581
|
+
__decorateClass$h([
|
|
6893
7582
|
e$5({ type: String })
|
|
6894
7583
|
], Alert.prototype, "text", 2);
|
|
6895
|
-
__decorateClass$
|
|
7584
|
+
__decorateClass$h([
|
|
6896
7585
|
e$5({ type: String, reflect: true })
|
|
6897
7586
|
], Alert.prototype, "size", 2);
|
|
6898
|
-
__decorateClass$
|
|
7587
|
+
__decorateClass$h([
|
|
6899
7588
|
e$5({ type: Boolean, reflect: true })
|
|
6900
7589
|
], Alert.prototype, "background", 2);
|
|
6901
|
-
__decorateClass$
|
|
7590
|
+
__decorateClass$h([
|
|
6902
7591
|
e$5({ type: String, reflect: true })
|
|
6903
7592
|
], Alert.prototype, "status", 2);
|
|
6904
|
-
Alert = __decorateClass$
|
|
6905
|
-
n$3(tagName$
|
|
7593
|
+
Alert = __decorateClass$h([
|
|
7594
|
+
n$3(tagName$h)
|
|
6906
7595
|
], Alert);
|
|
6907
7596
|
try {
|
|
6908
|
-
customElements.define(tagName$
|
|
7597
|
+
customElements.define(tagName$h, Alert);
|
|
6909
7598
|
} catch (e2) {
|
|
6910
7599
|
}
|
|
6911
|
-
var __defProp$
|
|
6912
|
-
var __getOwnPropDesc$
|
|
6913
|
-
var __decorateClass$
|
|
6914
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7600
|
+
var __defProp$g = Object.defineProperty;
|
|
7601
|
+
var __getOwnPropDesc$g = Object.getOwnPropertyDescriptor;
|
|
7602
|
+
var __decorateClass$g = (decorators, target, key, kind) => {
|
|
7603
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$g(target, key) : target;
|
|
6915
7604
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
6916
7605
|
if (decorator = decorators[i2])
|
|
6917
7606
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6918
7607
|
if (kind && result)
|
|
6919
|
-
__defProp$
|
|
7608
|
+
__defProp$g(target, key, result);
|
|
6920
7609
|
return result;
|
|
6921
7610
|
};
|
|
6922
|
-
const tagName$
|
|
7611
|
+
const tagName$g = "sonic-toast-message-subscriber";
|
|
6923
7612
|
let MessageSubscriber = class extends Subscriber$1(s$2) {
|
|
6924
7613
|
constructor() {
|
|
6925
7614
|
super(...arguments);
|
|
@@ -6974,36 +7663,36 @@ let MessageSubscriber = class extends Subscriber$1(s$2) {
|
|
|
6974
7663
|
return w$1;
|
|
6975
7664
|
}
|
|
6976
7665
|
};
|
|
6977
|
-
__decorateClass$
|
|
7666
|
+
__decorateClass$g([
|
|
6978
7667
|
e$5({ type: Boolean })
|
|
6979
7668
|
], MessageSubscriber.prototype, "success", 2);
|
|
6980
|
-
__decorateClass$
|
|
7669
|
+
__decorateClass$g([
|
|
6981
7670
|
e$5({ type: Boolean })
|
|
6982
7671
|
], MessageSubscriber.prototype, "status", 2);
|
|
6983
|
-
__decorateClass$
|
|
7672
|
+
__decorateClass$g([
|
|
6984
7673
|
e$5({ type: Array })
|
|
6985
7674
|
], MessageSubscriber.prototype, "messages", 1);
|
|
6986
|
-
__decorateClass$
|
|
7675
|
+
__decorateClass$g([
|
|
6987
7676
|
e$5({ type: String })
|
|
6988
7677
|
], MessageSubscriber.prototype, "message", 1);
|
|
6989
|
-
__decorateClass$
|
|
7678
|
+
__decorateClass$g([
|
|
6990
7679
|
e$5()
|
|
6991
7680
|
], MessageSubscriber.prototype, "data", 1);
|
|
6992
|
-
MessageSubscriber = __decorateClass$
|
|
6993
|
-
n$3(tagName$
|
|
7681
|
+
MessageSubscriber = __decorateClass$g([
|
|
7682
|
+
n$3(tagName$g)
|
|
6994
7683
|
], MessageSubscriber);
|
|
6995
|
-
var __defProp$
|
|
6996
|
-
var __getOwnPropDesc$
|
|
6997
|
-
var __decorateClass$
|
|
6998
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7684
|
+
var __defProp$f = Object.defineProperty;
|
|
7685
|
+
var __getOwnPropDesc$f = Object.getOwnPropertyDescriptor;
|
|
7686
|
+
var __decorateClass$f = (decorators, target, key, kind) => {
|
|
7687
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$f(target, key) : target;
|
|
6999
7688
|
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
7000
7689
|
if (decorator = decorators[i2])
|
|
7001
7690
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7002
7691
|
if (kind && result)
|
|
7003
|
-
__defProp$
|
|
7692
|
+
__defProp$f(target, key, result);
|
|
7004
7693
|
return result;
|
|
7005
7694
|
};
|
|
7006
|
-
const tagName$
|
|
7695
|
+
const tagName$f = "sonic-tooltip";
|
|
7007
7696
|
let Tooltip = class extends s$2 {
|
|
7008
7697
|
constructor() {
|
|
7009
7698
|
super(...arguments);
|
|
@@ -7018,190 +7707,17 @@ let Tooltip = class extends s$2 {
|
|
|
7018
7707
|
Tooltip.styles = [
|
|
7019
7708
|
r$5`.tooltip{position:relative;display:flex;align-items:center;text-align:center}.tooltip:before{position:absolute;content:attr(data-tooltip-text);font-size:.85rem;display:block;opacity:0;pointer-events:none;bottom:calc(100% + .25rem);left:50%;transform:translateX(-50%);background:var(--sc-base-content,#111827);padding:.25rem;border-radius:.25rem;color:var(--sc-base,#fff);z-index:999;display:none;line-height:1.1;width:max-content;max-width:20rem}.tooltip:not(.disabled):hover:before{opacity:1;display:block}`
|
|
7020
7709
|
];
|
|
7021
|
-
__decorateClass$
|
|
7710
|
+
__decorateClass$f([
|
|
7022
7711
|
e$5({ type: String })
|
|
7023
7712
|
], Tooltip.prototype, "label", 2);
|
|
7024
|
-
__decorateClass$
|
|
7713
|
+
__decorateClass$f([
|
|
7025
7714
|
e$5({ type: Boolean })
|
|
7026
7715
|
], Tooltip.prototype, "disabled", 2);
|
|
7027
|
-
Tooltip = __decorateClass$
|
|
7028
|
-
n$3(tagName$g)
|
|
7029
|
-
], Tooltip);
|
|
7030
|
-
try {
|
|
7031
|
-
customElements.define(tagName$g, Tooltip);
|
|
7032
|
-
} catch (e2) {
|
|
7033
|
-
}
|
|
7034
|
-
var __defProp$f = Object.defineProperty;
|
|
7035
|
-
var __getOwnPropDesc$f = Object.getOwnPropertyDescriptor;
|
|
7036
|
-
var __decorateClass$f = (decorators, target, key, kind) => {
|
|
7037
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$f(target, key) : target;
|
|
7038
|
-
for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
|
|
7039
|
-
if (decorator = decorators[i2])
|
|
7040
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7041
|
-
if (kind && result)
|
|
7042
|
-
__defProp$f(target, key, result);
|
|
7043
|
-
return result;
|
|
7044
|
-
};
|
|
7045
|
-
const tagName$f = "sonic-pop";
|
|
7046
|
-
let Pop = class extends s$2 {
|
|
7047
|
-
constructor() {
|
|
7048
|
-
super(...arguments);
|
|
7049
|
-
this.open = false;
|
|
7050
|
-
this.toggle = "true";
|
|
7051
|
-
this.inline = false;
|
|
7052
|
-
this.shadow = "lg";
|
|
7053
|
-
this.placement = "bottom";
|
|
7054
|
-
this.positioningRuns = false;
|
|
7055
|
-
this.lastContentX = Number.NaN;
|
|
7056
|
-
this.lastContentY = Number.NaN;
|
|
7057
|
-
}
|
|
7058
|
-
runPositioning() {
|
|
7059
|
-
if (!this.positioningRuns)
|
|
7060
|
-
return;
|
|
7061
|
-
this.positioningRuns = true;
|
|
7062
|
-
this._setUpMenu(this.placement);
|
|
7063
|
-
window.requestAnimationFrame(() => this.runPositioning());
|
|
7064
|
-
}
|
|
7065
|
-
_toggle(e2) {
|
|
7066
|
-
if (this.open && this.toggle == "false")
|
|
7067
|
-
return;
|
|
7068
|
-
if (e2.type == "keydown" && (e2.key != "ArrowDown" || this.open))
|
|
7069
|
-
return;
|
|
7070
|
-
this.open = !this.open;
|
|
7071
|
-
this.open ? this._show() : this._hide();
|
|
7072
|
-
}
|
|
7073
|
-
_show() {
|
|
7074
|
-
this.open = true;
|
|
7075
|
-
this.popContent.setAttribute("tabindex", "0");
|
|
7076
|
-
if (this.popBtn && this.popContent && !this.positioningRuns) {
|
|
7077
|
-
this.positioningRuns = true;
|
|
7078
|
-
this.lastContentX = Number.NaN;
|
|
7079
|
-
this.lastContentY = Number.NaN;
|
|
7080
|
-
this.runPositioning();
|
|
7081
|
-
}
|
|
7082
|
-
}
|
|
7083
|
-
_hide() {
|
|
7084
|
-
this.open = false;
|
|
7085
|
-
this.popContent.setAttribute("tabindex", "-1");
|
|
7086
|
-
this.positioningRuns = false;
|
|
7087
|
-
}
|
|
7088
|
-
_handleClosePop(e2) {
|
|
7089
|
-
let path = e2.composedPath();
|
|
7090
|
-
let target = path[0];
|
|
7091
|
-
Pop.pops.forEach((pop) => {
|
|
7092
|
-
const popContainsTarget = path.includes(pop);
|
|
7093
|
-
const popContentContainsTarget = path.includes(pop.querySelector('[slot="content"]'));
|
|
7094
|
-
const isCloseManual = HTML$1.getAncestorAttributeValue(target, "data-on-select") === "keep";
|
|
7095
|
-
if (e2.type == "pointerdown" && popContainsTarget)
|
|
7096
|
-
return;
|
|
7097
|
-
if (e2.type == "click" && (popContainsTarget && isCloseManual || !popContentContainsTarget))
|
|
7098
|
-
return;
|
|
7099
|
-
pop._hide();
|
|
7100
|
-
});
|
|
7101
|
-
}
|
|
7102
|
-
connectedCallback() {
|
|
7103
|
-
super.connectedCallback();
|
|
7104
|
-
if (Pop.pops.size == 0) {
|
|
7105
|
-
document.addEventListener("pointerdown", this._handleClosePop);
|
|
7106
|
-
document.addEventListener("click", this._handleClosePop);
|
|
7107
|
-
}
|
|
7108
|
-
Pop.pops.add(this);
|
|
7109
|
-
}
|
|
7110
|
-
disconnectedCallback() {
|
|
7111
|
-
super.disconnectedCallback();
|
|
7112
|
-
Pop.pops.delete(this);
|
|
7113
|
-
if (Pop.pops.size == 0) {
|
|
7114
|
-
document.removeEventListener("pointerdown", this._handleClosePop);
|
|
7115
|
-
document.removeEventListener("click", this._handleClosePop);
|
|
7116
|
-
}
|
|
7117
|
-
}
|
|
7118
|
-
_setUpMenu(placement) {
|
|
7119
|
-
var _a2;
|
|
7120
|
-
const contentRect = (_a2 = this.popContent) == null ? void 0 : _a2.getBoundingClientRect();
|
|
7121
|
-
const padding = 8;
|
|
7122
|
-
const shiftPadding = 20;
|
|
7123
|
-
const thisRect = this.getBoundingClientRect();
|
|
7124
|
-
if (!this.offsetParent)
|
|
7125
|
-
return;
|
|
7126
|
-
let bodyRect = this.offsetParent.getBoundingClientRect();
|
|
7127
|
-
let x0 = thisRect.left - bodyRect.left;
|
|
7128
|
-
let y0 = thisRect.top - bodyRect.top;
|
|
7129
|
-
let x2 = x0, y = y0;
|
|
7130
|
-
let yTop = y0 - contentRect.height - padding;
|
|
7131
|
-
let xLeft = x0 - contentRect.width - 2 * padding;
|
|
7132
|
-
let xRight = x0 + thisRect.width + 2 * padding;
|
|
7133
|
-
let yBottom = y0 + thisRect.height + padding;
|
|
7134
|
-
switch (placement) {
|
|
7135
|
-
case "bottom":
|
|
7136
|
-
y = yBottom;
|
|
7137
|
-
break;
|
|
7138
|
-
case "top":
|
|
7139
|
-
y = yTop;
|
|
7140
|
-
break;
|
|
7141
|
-
case "left":
|
|
7142
|
-
x2 = xLeft;
|
|
7143
|
-
break;
|
|
7144
|
-
case "right":
|
|
7145
|
-
x2 = xRight;
|
|
7146
|
-
break;
|
|
7147
|
-
}
|
|
7148
|
-
let dxRight = window.innerWidth - xRight - bodyRect.left - contentRect.width - shiftPadding;
|
|
7149
|
-
if (dxRight < 0 && placement === "right")
|
|
7150
|
-
x2 = xLeft;
|
|
7151
|
-
if (dxRight < 0 && ["top", "bottom"].includes(placement))
|
|
7152
|
-
x2 = Math.max(x2 + dxRight, xLeft + thisRect.width);
|
|
7153
|
-
let dxLeft = -bodyRect.left - xLeft;
|
|
7154
|
-
if (dxLeft > shiftPadding && placement === "left")
|
|
7155
|
-
x2 = xRight;
|
|
7156
|
-
let dyBottom = window.innerHeight - yBottom - bodyRect.top - contentRect.height - shiftPadding;
|
|
7157
|
-
if (dyBottom < 0 && placement === "bottom")
|
|
7158
|
-
y = yTop;
|
|
7159
|
-
if (dyBottom < 0 && ["left", "right"].includes(placement))
|
|
7160
|
-
y = Math.max(y + dyBottom, yTop + thisRect.height);
|
|
7161
|
-
let dyTop = -bodyRect.top - yTop;
|
|
7162
|
-
if (dyTop > -shiftPadding && placement === "top")
|
|
7163
|
-
y = yBottom;
|
|
7164
|
-
this.lastContentX = x2;
|
|
7165
|
-
this.lastContentY = y;
|
|
7166
|
-
Object.assign(this.popContent.style, {
|
|
7167
|
-
left: `${x2}px`,
|
|
7168
|
-
top: `${y}px`
|
|
7169
|
-
});
|
|
7170
|
-
}
|
|
7171
|
-
render() {
|
|
7172
|
-
return $$1`<slot @click="${this._toggle}" @keydown="${this._toggle}" class="contents"></slot><slot name="content" tabindex="-1" part="content" class="${this.open ? "is-open" : ""}"></slot>`;
|
|
7173
|
-
}
|
|
7174
|
-
};
|
|
7175
|
-
Pop.pops = /* @__PURE__ */ new Set();
|
|
7176
|
-
Pop.styles = [
|
|
7177
|
-
r$5`:host{display:inline-block;vertical-align:middle}slot[name=content]{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{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}`
|
|
7178
|
-
];
|
|
7179
|
-
__decorateClass$f([
|
|
7180
|
-
t$1()
|
|
7181
|
-
], Pop.prototype, "open", 2);
|
|
7182
|
-
__decorateClass$f([
|
|
7183
|
-
i$4("slot:not([name=content])")
|
|
7184
|
-
], Pop.prototype, "popBtn", 2);
|
|
7185
|
-
__decorateClass$f([
|
|
7186
|
-
i$4("slot[name=content]")
|
|
7187
|
-
], Pop.prototype, "popContent", 2);
|
|
7188
|
-
__decorateClass$f([
|
|
7189
|
-
e$5({ type: String })
|
|
7190
|
-
], Pop.prototype, "toggle", 2);
|
|
7191
|
-
__decorateClass$f([
|
|
7192
|
-
e$5({ type: Boolean, reflect: true })
|
|
7193
|
-
], Pop.prototype, "inline", 2);
|
|
7194
|
-
__decorateClass$f([
|
|
7195
|
-
e$5({ type: String, reflect: true })
|
|
7196
|
-
], Pop.prototype, "shadow", 2);
|
|
7197
|
-
__decorateClass$f([
|
|
7198
|
-
e$5({ type: String })
|
|
7199
|
-
], Pop.prototype, "placement", 2);
|
|
7200
|
-
Pop = __decorateClass$f([
|
|
7716
|
+
Tooltip = __decorateClass$f([
|
|
7201
7717
|
n$3(tagName$f)
|
|
7202
|
-
],
|
|
7718
|
+
], Tooltip);
|
|
7203
7719
|
try {
|
|
7204
|
-
customElements.define(tagName$f,
|
|
7720
|
+
customElements.define(tagName$f, Tooltip);
|
|
7205
7721
|
} catch (e2) {
|
|
7206
7722
|
}
|
|
7207
7723
|
var __defProp$e = Object.defineProperty;
|
|
@@ -7229,7 +7745,7 @@ let Divider = class extends s$2 {
|
|
|
7229
7745
|
}
|
|
7230
7746
|
}
|
|
7231
7747
|
render() {
|
|
7232
|
-
return $$1`<div part="divider"><span class="text">${o$2(this.label)}<slot></slot></span></div>`;
|
|
7748
|
+
return $$1`<div part="divider"><span class="text">${o$2(this.label ? this.label : "")}<slot></slot></span></div>`;
|
|
7233
7749
|
}
|
|
7234
7750
|
};
|
|
7235
7751
|
Divider.styles = [
|