@supersoniks/concorde 3.1.55 → 3.1.57
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/build-infos.json +1 -1
- package/concorde-core.bundle.js +46 -38
- package/concorde-core.es.js +247 -230
- package/dist/concorde-core.bundle.js +46 -38
- package/dist/concorde-core.es.js +247 -230
- package/index.html +0 -0
- package/package.json +1 -1
- package/scripts/pre-build.mjs +0 -0
- package/scripts/pre-publish.mjs +0 -0
- package/src/core/components/functional/if/if.md +0 -0
- package/src/core/components/functional/queue/queue.ts +0 -0
- package/src/core/components/functional/router/router.md +0 -0
- package/src/core/components/functional/router/router.ts +0 -0
- package/src/core/components/functional/sonic-scope/sonic-scope.ts +0 -0
- package/src/core/components/functional/states/states.md +0 -0
- package/src/core/components/functional/states/states.ts +0 -0
- package/src/core/components/functional/submit/submit.md +0 -0
- package/src/core/components/functional/submit/submit.ts +0 -0
- package/src/core/components/ui/alert/alert.md +0 -0
- package/src/core/components/ui/alert-messages/alert-messages.ts +0 -0
- package/src/core/components/ui/badge/badge.md +0 -0
- package/src/core/components/ui/button/button.md +0 -0
- package/src/core/components/ui/captcha/captcha.ts +0 -0
- package/src/core/components/ui/form/checkbox/checkbox.md +0 -0
- package/src/core/components/ui/form/css/form-control.ts +8 -0
- package/src/core/components/ui/form/fieldset/fieldset.ts +0 -0
- package/src/core/components/ui/form/form-layout/form-layout.md +0 -0
- package/src/core/components/ui/form/input/input.ts +7 -0
- package/src/core/components/ui/form/input/password-helper.ts +0 -0
- package/src/core/components/ui/form/input/same-value-helper.ts +0 -0
- package/src/core/components/ui/form/radio/radio.md +0 -0
- package/src/core/components/ui/form/select/select.md +0 -0
- package/src/core/components/ui/form/switch/switch.ts +5 -0
- package/src/core/components/ui/group/group.ts +0 -0
- package/src/core/components/ui/icon/icons.ts +0 -0
- package/src/core/components/ui/image/image.md +0 -0
- package/src/core/components/ui/image/image.ts +0 -0
- package/src/core/components/ui/menu/menu.ts +0 -0
- package/src/core/components/ui/theme/theme-collection/dark.ts +0 -0
- package/src/core/components/ui/toast/message-subscriber.ts +0 -0
- package/src/core/components/ui/toast/toast.ts +0 -0
- package/src/core/core.ts +0 -0
- package/src/core/mixins/FormCheckable.ts +0 -0
- package/src/core/mixins/Subscriber.ts +0 -0
- package/src/core/utils/HTML.ts +0 -0
- package/src/core/utils/LocationHandler.ts +0 -0
- package/src/core/utils/Objects.ts +0 -0
- package/src/core/utils/Utils.ts +0 -0
- package/src/core/utils/route.ts +0 -0
- package/src/docs/code.ts +0 -0
- package/src/docs/docs.ts +0 -0
- package/src/docs/search/markdown-renderer.ts +0 -0
- package/src/docs/search/page.ts +0 -0
- package/src/tsconfig-model.json +0 -0
- package/vite/config.js +0 -0
- package/docs/assets/index-CcoMn1RV.js +0 -4465
- package/docs/assets/index-D0m8hkmQ.css +0 -1
- package/docs/css/docs.css +0 -0
- package/docs/fonts/ClashGrotesk-Bold.eot +0 -0
- package/docs/fonts/ClashGrotesk-Bold.ttf +0 -0
- package/docs/fonts/ClashGrotesk-Bold.woff +0 -0
- package/docs/fonts/ClashGrotesk-Bold.woff2 +0 -0
- package/docs/fonts/ClashGrotesk-Extralight.eot +0 -0
- package/docs/fonts/ClashGrotesk-Extralight.ttf +0 -0
- package/docs/fonts/ClashGrotesk-Extralight.woff +0 -0
- package/docs/fonts/ClashGrotesk-Extralight.woff2 +0 -0
- package/docs/fonts/ClashGrotesk-Light.eot +0 -0
- package/docs/fonts/ClashGrotesk-Light.ttf +0 -0
- package/docs/fonts/ClashGrotesk-Light.woff +0 -0
- package/docs/fonts/ClashGrotesk-Light.woff2 +0 -0
- package/docs/fonts/ClashGrotesk-Medium.eot +0 -0
- package/docs/fonts/ClashGrotesk-Medium.ttf +0 -0
- package/docs/fonts/ClashGrotesk-Medium.woff +0 -0
- package/docs/fonts/ClashGrotesk-Medium.woff2 +0 -0
- package/docs/fonts/ClashGrotesk-Regular.eot +0 -0
- package/docs/fonts/ClashGrotesk-Regular.ttf +0 -0
- package/docs/fonts/ClashGrotesk-Regular.woff +0 -0
- package/docs/fonts/ClashGrotesk-Regular.woff2 +0 -0
- package/docs/fonts/ClashGrotesk-Semibold.eot +0 -0
- package/docs/fonts/ClashGrotesk-Semibold.ttf +0 -0
- package/docs/fonts/ClashGrotesk-Semibold.woff +0 -0
- package/docs/fonts/ClashGrotesk-Semibold.woff2 +0 -0
- package/docs/fonts/ClashGrotesk-Variable.eot +0 -0
- package/docs/fonts/ClashGrotesk-Variable.ttf +0 -0
- package/docs/fonts/ClashGrotesk-Variable.woff +0 -0
- package/docs/fonts/ClashGrotesk-Variable.woff2 +0 -0
- package/docs/img/concorde-icon.svg +0 -5
- package/docs/img/concorde-logo.svg +0 -1
- package/docs/img/concorde.png +0 -0
- package/docs/img/concorde_def.png +0 -0
- package/docs/img/concorde_seuil.png.webp +0 -0
- package/docs/img/concorde_seuil_invert.png +0 -0
- package/docs/img/paul_metrand.jpg +0 -0
- package/docs/img/paul_metrand_xs.jpg +0 -0
- package/docs/index.html +0 -93
- package/docs/src/core/components/functional/date/date.md +0 -290
- package/docs/src/core/components/functional/fetch/fetch.md +0 -117
- package/docs/src/core/components/functional/if/if.md +0 -16
- package/docs/src/core/components/functional/list/list.md +0 -199
- package/docs/src/core/components/functional/mix/mix.md +0 -41
- package/docs/src/core/components/functional/queue/queue.md +0 -87
- package/docs/src/core/components/functional/router/router.md +0 -108
- package/docs/src/core/components/functional/sdui/default-library.json +0 -108
- package/docs/src/core/components/functional/sdui/example.json +0 -99
- package/docs/src/core/components/functional/sdui/sdui.md +0 -356
- package/docs/src/core/components/functional/states/states.md +0 -87
- package/docs/src/core/components/functional/submit/submit.md +0 -83
- package/docs/src/core/components/functional/subscriber/subscriber.md +0 -91
- package/docs/src/core/components/functional/value/value.md +0 -35
- package/docs/src/core/components/ui/alert/alert.md +0 -121
- package/docs/src/core/components/ui/badge/badge.md +0 -127
- package/docs/src/core/components/ui/button/button.md +0 -184
- package/docs/src/core/components/ui/captcha/captcha.md +0 -12
- package/docs/src/core/components/ui/card/card.md +0 -97
- package/docs/src/core/components/ui/divider/divider.md +0 -35
- package/docs/src/core/components/ui/form/checkbox/checkbox.md +0 -94
- package/docs/src/core/components/ui/form/fieldset/fieldset.md +0 -129
- package/docs/src/core/components/ui/form/form-actions/form-actions.md +0 -77
- package/docs/src/core/components/ui/form/form-layout/form-layout.md +0 -43
- package/docs/src/core/components/ui/form/input/input.md +0 -167
- package/docs/src/core/components/ui/form/input-autocomplete/input-autocomplete.md +0 -130
- package/docs/src/core/components/ui/form/radio/radio.md +0 -84
- package/docs/src/core/components/ui/form/select/select.md +0 -97
- package/docs/src/core/components/ui/form/textarea/textarea.md +0 -65
- package/docs/src/core/components/ui/group/group.md +0 -75
- package/docs/src/core/components/ui/icon/icon.md +0 -125
- package/docs/src/core/components/ui/icon/icons.json +0 -1
- package/docs/src/core/components/ui/image/image.md +0 -107
- package/docs/src/core/components/ui/link/link.md +0 -43
- package/docs/src/core/components/ui/loader/loader.md +0 -67
- package/docs/src/core/components/ui/menu/menu.md +0 -288
- package/docs/src/core/components/ui/modal/modal.md +0 -123
- package/docs/src/core/components/ui/pop/pop.md +0 -79
- package/docs/src/core/components/ui/progress/progress.md +0 -63
- package/docs/src/core/components/ui/table/table.md +0 -455
- package/docs/src/core/components/ui/tooltip/tooltip.md +0 -82
- package/docs/src/docs/_core-concept/overview.md +0 -57
- package/docs/src/docs/_core-concept/subscriber.md +0 -76
- package/docs/src/docs/_getting-started/concorde-outside.md +0 -143
- package/docs/src/docs/_getting-started/create-a-component.md +0 -137
- package/docs/src/docs/_getting-started/my-first-subscriber.md +0 -174
- package/docs/src/docs/_getting-started/pubsub.md +0 -150
- package/docs/src/docs/_getting-started/start.md +0 -39
- package/docs/src/docs/_getting-started/theming.md +0 -91
- package/docs/src/docs/search/docs-search.json +0 -3887
- package/docs/src/tag-list.json +0 -1
- package/docs/src/tsconfig-model.json +0 -23
- package/docs/src/tsconfig.json +0 -826
- package/docs/svg/regular/plane.svg +0 -1
- package/docs/svg/solid/plane.svg +0 -1
package/dist/concorde-core.es.js
CHANGED
|
@@ -556,7 +556,7 @@ let T = (k = class {
|
|
|
556
556
|
const h = await new Response(a.readable).arrayBuffer();
|
|
557
557
|
return new TextDecoder().decode(h);
|
|
558
558
|
}
|
|
559
|
-
}, k.buildDate = "
|
|
559
|
+
}, k.buildDate = "Mon Jan 27 2025 12:30:19 GMT+0100 (Central European Standard Time)", k.changed = !1, k.saving = !1, k.saveId = 0, k.instance = null, k.instances = /* @__PURE__ */ new Map(), k.modifiedCollectore = [], k);
|
|
560
560
|
if (typeof window < "u") {
|
|
561
561
|
const r = window;
|
|
562
562
|
r[Cs + "PublisherManager"] = r[Cs + "PublisherManager"] || T;
|
|
@@ -1775,26 +1775,26 @@ const ro = Pe(an), ln = ro, cn = ro, hn = (r) => {
|
|
|
1775
1775
|
}, dn = oo, no = oo, pn = (r, t) => {
|
|
1776
1776
|
var s;
|
|
1777
1777
|
(s = Ws(r).values().next().value) == null || s.set(t);
|
|
1778
|
-
},
|
|
1778
|
+
}, z = class z {
|
|
1779
1779
|
constructor(t) {
|
|
1780
1780
|
this.addHTTPResponse = !1, this.cache = "default", this.isServiceSimulated = !1, this.blockUntilDone = !1, this.serviceURL = t.serviceURL, this.blockUntilDone = t.blockUntilDone || !1, this.serviceURL == "publisher://" && (this.isServiceSimulated = !0), this.serviceURL || (this.serviceURL = document.location.origin), this.userName = t.userName, this.password = t.password, t.token && (this.token = t.token), this.tokenProvider = t.tokenProvider, this.authToken = t.authToken, this.addHTTPResponse = t.addHTTPResponse || !1, this.credentials = t.credentials, this.cache = t.cache || "default";
|
|
1781
1781
|
}
|
|
1782
1782
|
set token(t) {
|
|
1783
1783
|
if (this._token = t, !t) {
|
|
1784
|
-
|
|
1784
|
+
z.tokens.delete(this.serviceURL);
|
|
1785
1785
|
return;
|
|
1786
1786
|
}
|
|
1787
|
-
|
|
1787
|
+
z.invalidTokens.includes(t) || z.tokens.set(this.serviceURL, t);
|
|
1788
1788
|
}
|
|
1789
1789
|
get token() {
|
|
1790
|
-
return
|
|
1790
|
+
return z.invalidTokens.includes(this._token) ? z.tokens.get(this.serviceURL) : this._token;
|
|
1791
1791
|
}
|
|
1792
1792
|
handleInvalidToken(t) {
|
|
1793
|
-
t && (
|
|
1793
|
+
t && (z.invalidTokens.includes(t) || (z.invalidTokens.push(t), this.token = null));
|
|
1794
1794
|
}
|
|
1795
1795
|
async handleResult(t, s) {
|
|
1796
1796
|
var a;
|
|
1797
|
-
|
|
1797
|
+
z.firstCallDoneFlags.set(this.serviceURL, "done"), this.lastResult = t;
|
|
1798
1798
|
const i = (a = t.headers.get("content-type")) == null ? void 0 : a.toLowerCase(), e = t.status;
|
|
1799
1799
|
let o = {};
|
|
1800
1800
|
if (!i || i.indexOf("text/") == 0)
|
|
@@ -1805,7 +1805,7 @@ const ro = Pe(an), ln = ro, cn = ro, hn = (r) => {
|
|
|
1805
1805
|
} catch {
|
|
1806
1806
|
o = {};
|
|
1807
1807
|
}
|
|
1808
|
-
this.addHTTPResponse && tt.isObject(o) && (o._sonic_http_response_ = t), e === 498 && !
|
|
1808
|
+
this.addHTTPResponse && tt.isObject(o) && (o._sonic_http_response_ = t), e === 498 && !z.failledTokenUpdates.has(this.serviceURL) && (this.handleInvalidToken(this.token), s.apiMethod === "get" ? o = await this[s.apiMethod](
|
|
1809
1809
|
s.path,
|
|
1810
1810
|
s.additionalHeaders
|
|
1811
1811
|
) : o = await this[s.apiMethod](
|
|
@@ -1825,8 +1825,8 @@ const ro = Pe(an), ln = ro, cn = ro, hn = (r) => {
|
|
|
1825
1825
|
*/
|
|
1826
1826
|
async auth() {
|
|
1827
1827
|
if (this.token) return;
|
|
1828
|
-
if (
|
|
1829
|
-
this.token =
|
|
1828
|
+
if (z.tokens.has(this.serviceURL)) {
|
|
1829
|
+
this.token = z.tokens.get(this.serviceURL);
|
|
1830
1830
|
return;
|
|
1831
1831
|
}
|
|
1832
1832
|
if (!this.tokenProvider) return;
|
|
@@ -1849,9 +1849,9 @@ const ro = Pe(an), ln = ro, cn = ro, hn = (r) => {
|
|
|
1849
1849
|
);
|
|
1850
1850
|
try {
|
|
1851
1851
|
const o = await e.json();
|
|
1852
|
-
o.token ? this.token = o.token :
|
|
1852
|
+
o.token ? this.token = o.token : z.failledTokenUpdates.set(this.serviceURL, !0);
|
|
1853
1853
|
} catch {
|
|
1854
|
-
|
|
1854
|
+
z.failledTokenUpdates.set(this.serviceURL, !0);
|
|
1855
1855
|
}
|
|
1856
1856
|
}
|
|
1857
1857
|
/**
|
|
@@ -1890,12 +1890,12 @@ const ro = Pe(an), ln = ro, cn = ro, hn = (r) => {
|
|
|
1890
1890
|
*/
|
|
1891
1891
|
firstCallDone() {
|
|
1892
1892
|
return new Promise((t) => {
|
|
1893
|
-
if (!
|
|
1894
|
-
|
|
1893
|
+
if (!z.firstCallDoneFlags.has(this.serviceURL))
|
|
1894
|
+
z.firstCallDoneFlags.set(this.serviceURL, "loading"), t(!0);
|
|
1895
1895
|
else {
|
|
1896
1896
|
const s = () => {
|
|
1897
1897
|
[void 0, "loading"].includes(
|
|
1898
|
-
|
|
1898
|
+
z.firstCallDoneFlags.get(this.serviceURL)
|
|
1899
1899
|
) ? window.requestAnimationFrame(s) : t(!0);
|
|
1900
1900
|
};
|
|
1901
1901
|
s();
|
|
@@ -1903,7 +1903,7 @@ const ro = Pe(an), ln = ro, cn = ro, hn = (r) => {
|
|
|
1903
1903
|
});
|
|
1904
1904
|
}
|
|
1905
1905
|
async get(t, s) {
|
|
1906
|
-
await this.firstCallDone(), this.blockUntilDone &&
|
|
1906
|
+
await this.firstCallDone(), this.blockUntilDone && z.firstCallDoneFlags.set(this.serviceURL, "loading");
|
|
1907
1907
|
const i = /dataProvider\((.*?)\)(.*?)$/;
|
|
1908
1908
|
if (i.test(t)) {
|
|
1909
1909
|
const h = t.match(i);
|
|
@@ -1918,7 +1918,7 @@ const ro = Pe(an), ln = ro, cn = ro, hn = (r) => {
|
|
|
1918
1918
|
url: n,
|
|
1919
1919
|
headers: o
|
|
1920
1920
|
});
|
|
1921
|
-
if (!
|
|
1921
|
+
if (!z.loadingGetPromises.has(a)) {
|
|
1922
1922
|
const h = new Promise(async (d) => {
|
|
1923
1923
|
try {
|
|
1924
1924
|
const p = await fetch(n, {
|
|
@@ -1931,10 +1931,10 @@ const ro = Pe(an), ln = ro, cn = ro, hn = (r) => {
|
|
|
1931
1931
|
d(null);
|
|
1932
1932
|
}
|
|
1933
1933
|
});
|
|
1934
|
-
|
|
1934
|
+
z.loadingGetPromises.set(a, h);
|
|
1935
1935
|
}
|
|
1936
|
-
const c = await
|
|
1937
|
-
return
|
|
1936
|
+
const c = await z.loadingGetPromises.get(a);
|
|
1937
|
+
return z.loadingGetPromises.delete(a), c;
|
|
1938
1938
|
}
|
|
1939
1939
|
/**
|
|
1940
1940
|
* Création du header, avec authentification si besoin
|
|
@@ -2023,8 +2023,8 @@ const ro = Pe(an), ln = ro, cn = ro, hn = (r) => {
|
|
|
2023
2023
|
return this.send(t, s, "delete", i);
|
|
2024
2024
|
}
|
|
2025
2025
|
};
|
|
2026
|
-
|
|
2027
|
-
let Ne =
|
|
2026
|
+
z.loadingGetPromises = /* @__PURE__ */ new Map(), z.tokens = /* @__PURE__ */ new Map(), z.invalidTokens = [], z.failledTokenUpdates = /* @__PURE__ */ new Map(), z.firstCallDoneFlags = /* @__PURE__ */ new Map();
|
|
2027
|
+
let Ne = z;
|
|
2028
2028
|
J.getApiConfiguration(
|
|
2029
2029
|
document.body || document.documentElement
|
|
2030
2030
|
);
|
|
@@ -2050,7 +2050,7 @@ let ui = class extends Ie {
|
|
|
2050
2050
|
}
|
|
2051
2051
|
};
|
|
2052
2052
|
ui.directiveName = "unsafeHTML", ui.resultType = 1;
|
|
2053
|
-
const
|
|
2053
|
+
const R = Pe(ui), fi = /* @__PURE__ */ new Map(), br = (r) => {
|
|
2054
2054
|
if (!r) return null;
|
|
2055
2055
|
const t = J.getApiConfiguration(r), s = J.getAncestorAttributeValue(
|
|
2056
2056
|
r,
|
|
@@ -2078,27 +2078,27 @@ const z = Pe(ui), fi = /* @__PURE__ */ new Map(), br = (r) => {
|
|
|
2078
2078
|
wordingVersionProvider: i,
|
|
2079
2079
|
apiCallKey: e
|
|
2080
2080
|
}, fi.set(e, o)), o;
|
|
2081
|
-
}, vr = "",
|
|
2081
|
+
}, vr = "", B = class B extends io {
|
|
2082
2082
|
/* eslint-disable @typescript-eslint/no-explicit-any*/
|
|
2083
2083
|
constructor(t) {
|
|
2084
2084
|
super(t), this.useUnsafeHTML = !1, this.onAssign = (s) => {
|
|
2085
|
-
const i = this.useUnsafeHTML ?
|
|
2085
|
+
const i = this.useUnsafeHTML ? R(s) : s;
|
|
2086
2086
|
this.setValue(i);
|
|
2087
2087
|
}, this.node = t.options.host;
|
|
2088
2088
|
}
|
|
2089
2089
|
unsubscribe() {
|
|
2090
|
-
|
|
2090
|
+
B.publisher["wording_" + this.key].offAssign(this.onAssign);
|
|
2091
2091
|
}
|
|
2092
2092
|
/* eslint-enable @typescript-eslint/no-explicit-any*/
|
|
2093
2093
|
render(t, s = !1) {
|
|
2094
2094
|
return this.useUnsafeHTML = s, this.key !== t && (this.key = t, this.isConnected && this.subscribe(t)), _t;
|
|
2095
2095
|
}
|
|
2096
2096
|
static async callApi(t, s, i = !0, e) {
|
|
2097
|
-
if (await T.getInstance().isLocalStrorageReady,
|
|
2098
|
-
|
|
2099
|
-
const d = Object.keys(
|
|
2097
|
+
if (await T.getInstance().isLocalStrorageReady, B.firstCall) {
|
|
2098
|
+
B.firstCall = !1, Ni(B.reloadWordings);
|
|
2099
|
+
const d = Object.keys(B.publisher.get());
|
|
2100
2100
|
for (const p of d)
|
|
2101
|
-
|
|
2101
|
+
B.publisher.get()[p] === vr && delete B.publisher[p];
|
|
2102
2102
|
}
|
|
2103
2103
|
if (t) {
|
|
2104
2104
|
const d = J.getAncestorAttributeValue(
|
|
@@ -2106,10 +2106,10 @@ const z = Pe(ui), fi = /* @__PURE__ */ new Map(), br = (r) => {
|
|
|
2106
2106
|
"wordingVersionProvider"
|
|
2107
2107
|
);
|
|
2108
2108
|
d && no(d).onAssign(
|
|
2109
|
-
|
|
2109
|
+
B.handleVersionProvider(t)
|
|
2110
2110
|
);
|
|
2111
2111
|
}
|
|
2112
|
-
let o =
|
|
2112
|
+
let o = B.publisher.get()["wording_" + s] != null;
|
|
2113
2113
|
const n = e || br(t);
|
|
2114
2114
|
if (!n) return;
|
|
2115
2115
|
if (o && s !== "") {
|
|
@@ -2120,13 +2120,13 @@ const z = Pe(ui), fi = /* @__PURE__ */ new Map(), br = (r) => {
|
|
|
2120
2120
|
const a = n.callIndex, c = n.wordingProvider ?? "";
|
|
2121
2121
|
if (!c && i) {
|
|
2122
2122
|
window.setTimeout(async () => {
|
|
2123
|
-
|
|
2123
|
+
B.callApi(null, s, !1, n);
|
|
2124
2124
|
}, 1e3);
|
|
2125
2125
|
return;
|
|
2126
2126
|
}
|
|
2127
2127
|
const h = n.api;
|
|
2128
2128
|
window.queueMicrotask(async () => {
|
|
2129
|
-
if (o =
|
|
2129
|
+
if (o = B.publisher["wording_" + s].get() != null, !o && s !== "" && (n.keysToTranslate.add(s), B.publisher["wording_" + s] = vr), a !== n.callIndex) return;
|
|
2130
2130
|
const d = Array.from(n.keysToTranslate);
|
|
2131
2131
|
if (!d.length) return;
|
|
2132
2132
|
const p = c.split("?"), g = p.shift(), b = (p.length > 0 ? p.join("?") + "&" : "") + "labels[]=" + d.join("&labels[]="), v = g + "?" + b;
|
|
@@ -2136,23 +2136,23 @@ const z = Pe(ui), fi = /* @__PURE__ */ new Map(), br = (r) => {
|
|
|
2136
2136
|
]), n.keysToTranslate.clear();
|
|
2137
2137
|
const P = await h.get(v);
|
|
2138
2138
|
for (const S in P)
|
|
2139
|
-
|
|
2139
|
+
B.publisher["wording_" + S] = P[S];
|
|
2140
2140
|
});
|
|
2141
2141
|
}
|
|
2142
2142
|
static reloadWordings() {
|
|
2143
2143
|
for (const t of fi.values())
|
|
2144
|
-
t.keysToTranslate = new Set(t.translatedKeys), t.keysToTranslate.size > 0 &&
|
|
2144
|
+
t.keysToTranslate = new Set(t.translatedKeys), t.keysToTranslate.size > 0 && B.callApi(null, "", !1, t);
|
|
2145
2145
|
}
|
|
2146
2146
|
//check if the wording version has changed
|
|
2147
2147
|
static handleVersionProvider(t) {
|
|
2148
2148
|
const s = br(t), i = (o) => {
|
|
2149
2149
|
};
|
|
2150
2150
|
if (!s) return i;
|
|
2151
|
-
if (
|
|
2152
|
-
return
|
|
2151
|
+
if (B.versionProviderHandlers.has(s))
|
|
2152
|
+
return B.versionProviderHandlers.get(s) || i;
|
|
2153
2153
|
const e = function(o) {
|
|
2154
2154
|
if (!s.wordingVersionProvider) return;
|
|
2155
|
-
const a =
|
|
2155
|
+
const a = B.publisher.get().__wording_versions__ ?? [];
|
|
2156
2156
|
if (o == null) return;
|
|
2157
2157
|
const c = a.find(
|
|
2158
2158
|
(h) => h.serviceURL === s.api.serviceURL
|
|
@@ -2160,9 +2160,9 @@ const z = Pe(ui), fi = /* @__PURE__ */ new Map(), br = (r) => {
|
|
|
2160
2160
|
serviceURL: s.api.serviceURL,
|
|
2161
2161
|
version: 0
|
|
2162
2162
|
};
|
|
2163
|
-
a.includes(c) || a.push(c), o !== c.version && (c.version = o,
|
|
2163
|
+
a.includes(c) || a.push(c), o !== c.version && (c.version = o, B.publisher.set({ __wording_versions__: a }), B.reloadWordings());
|
|
2164
2164
|
};
|
|
2165
|
-
return
|
|
2165
|
+
return B.versionProviderHandlers.set(
|
|
2166
2166
|
s,
|
|
2167
2167
|
e
|
|
2168
2168
|
), e;
|
|
@@ -2170,7 +2170,7 @@ const z = Pe(ui), fi = /* @__PURE__ */ new Map(), br = (r) => {
|
|
|
2170
2170
|
// Subscribes to the key, calling the directive's asynchronous
|
|
2171
2171
|
// setValue API each time the value changes
|
|
2172
2172
|
subscribe(t) {
|
|
2173
|
-
this.unsubscribe(),
|
|
2173
|
+
this.unsubscribe(), B.publisher["wording_" + t].onAssign(this.onAssign), B.callApi(this.node, t);
|
|
2174
2174
|
}
|
|
2175
2175
|
// When the directive is disconnected from the DOM, unsubscribe to ensure
|
|
2176
2176
|
// the directive instance can be garbage collected
|
|
@@ -2183,10 +2183,10 @@ const z = Pe(ui), fi = /* @__PURE__ */ new Map(), br = (r) => {
|
|
|
2183
2183
|
this.key && this.subscribe(this.key);
|
|
2184
2184
|
}
|
|
2185
2185
|
};
|
|
2186
|
-
|
|
2186
|
+
B.publisher = T.get("sonic-wording", {
|
|
2187
2187
|
localStorageMode: "enabled"
|
|
2188
|
-
}),
|
|
2189
|
-
let Le =
|
|
2188
|
+
}), B.firstCall = !0, B.versionProviderHandlers = /* @__PURE__ */ new Map();
|
|
2189
|
+
let Le = B;
|
|
2190
2190
|
const un = Pe(Le), fn = un;
|
|
2191
2191
|
var mn = Object.defineProperty, gn = Object.getOwnPropertyDescriptor, Dt = (r, t, s, i) => {
|
|
2192
2192
|
for (var e = i > 1 ? void 0 : i ? gn(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
@@ -2394,13 +2394,13 @@ var yn = Object.defineProperty, _n = Object.getOwnPropertyDescriptor, Z = (r, t,
|
|
|
2394
2394
|
return i && e && yn(t, s, e), e;
|
|
2395
2395
|
};
|
|
2396
2396
|
const wn = "sonic-date";
|
|
2397
|
-
Ni(() =>
|
|
2398
|
-
let
|
|
2397
|
+
Ni(() => U.updateComponentsLanguage());
|
|
2398
|
+
let U = class extends G(cs(_)) {
|
|
2399
2399
|
constructor() {
|
|
2400
2400
|
super(...arguments), this.pageLanguage = "fr", this.duAu = [], this._wording_billet_periode_validite = "", this.designMode = null, this.time_zone = null, this.date = null, this.date_string = null, this.start_date_string = null, this.end_date_string = null, this.start_date = 0, this.computedStartDate = 0, this.end_date = 0, this.computedEndDate = 0, this.hide_hours = !1, this.era = "", this.year = "numeric", this.month = "short", this.day = "2-digit", this.weekday = "short", this.hour = "2-digit", this.hour12 = !1, this.minute = "2-digit", this.language = "", this.renderIf = !0, this.now = !1, this.startDateObject = /* @__PURE__ */ new Date(), this.endDateObject = /* @__PURE__ */ new Date();
|
|
2401
2401
|
}
|
|
2402
2402
|
static updateComponentsLanguage() {
|
|
2403
|
-
|
|
2403
|
+
U.dateCompnents.forEach(
|
|
2404
2404
|
(r) => r.pageLanguage = J.getLanguage()
|
|
2405
2405
|
);
|
|
2406
2406
|
}
|
|
@@ -2412,10 +2412,10 @@ let R = class extends G(cs(_)) {
|
|
|
2412
2412
|
r || (r = "Du %s au %s"), this._wording_billet_periode_validite = r, this.duAu = (t = this.wording_billet_periode_validite) == null ? void 0 : t.split("%s").map((s) => s.trim()), this.duAu.pop(), this.requestUpdate();
|
|
2413
2413
|
}
|
|
2414
2414
|
connectedCallback() {
|
|
2415
|
-
this.hasAttribute("wording_billet_periode_validite") || (this.wording_billet_periode_validite = "Du %s au %s"), this.pageLanguage = J.getLanguage(),
|
|
2415
|
+
this.hasAttribute("wording_billet_periode_validite") || (this.wording_billet_periode_validite = "Du %s au %s"), this.pageLanguage = J.getLanguage(), U.dateCompnents.add(this), super.connectedCallback();
|
|
2416
2416
|
}
|
|
2417
2417
|
disconnectedCallback() {
|
|
2418
|
-
super.disconnectedCallback(),
|
|
2418
|
+
super.disconnectedCallback(), U.dateCompnents.delete(this);
|
|
2419
2419
|
}
|
|
2420
2420
|
/**
|
|
2421
2421
|
* Retourne un tableau des différentes parties de la date en fonction des options données, de la date de début et de fin.
|
|
@@ -2472,7 +2472,7 @@ let R = class extends G(cs(_)) {
|
|
|
2472
2472
|
this.computedEndDate,
|
|
2473
2473
|
r
|
|
2474
2474
|
);
|
|
2475
|
-
return
|
|
2475
|
+
return R(
|
|
2476
2476
|
`${t.map((s) => {
|
|
2477
2477
|
const i = this.templateParts[s.type];
|
|
2478
2478
|
if (i) {
|
|
@@ -2485,73 +2485,73 @@ let R = class extends G(cs(_)) {
|
|
|
2485
2485
|
);
|
|
2486
2486
|
}
|
|
2487
2487
|
};
|
|
2488
|
-
|
|
2488
|
+
U.dateCompnents = /* @__PURE__ */ new Set();
|
|
2489
2489
|
Z([
|
|
2490
2490
|
l()
|
|
2491
|
-
],
|
|
2491
|
+
], U.prototype, "wording_billet_periode_validite", 1);
|
|
2492
2492
|
Z([
|
|
2493
2493
|
l({ type: Boolean })
|
|
2494
|
-
],
|
|
2494
|
+
], U.prototype, "designMode", 2);
|
|
2495
2495
|
Z([
|
|
2496
2496
|
l({ type: String })
|
|
2497
|
-
],
|
|
2497
|
+
], U.prototype, "time_zone", 2);
|
|
2498
2498
|
Z([
|
|
2499
2499
|
l({ type: Number })
|
|
2500
|
-
],
|
|
2500
|
+
], U.prototype, "date", 2);
|
|
2501
2501
|
Z([
|
|
2502
2502
|
l({ type: String })
|
|
2503
|
-
],
|
|
2503
|
+
], U.prototype, "date_string", 2);
|
|
2504
2504
|
Z([
|
|
2505
2505
|
l({ type: String })
|
|
2506
|
-
],
|
|
2506
|
+
], U.prototype, "start_date_string", 2);
|
|
2507
2507
|
Z([
|
|
2508
2508
|
l({ type: String })
|
|
2509
|
-
],
|
|
2509
|
+
], U.prototype, "end_date_string", 2);
|
|
2510
2510
|
Z([
|
|
2511
2511
|
l({ type: Number })
|
|
2512
|
-
],
|
|
2512
|
+
], U.prototype, "start_date", 2);
|
|
2513
2513
|
Z([
|
|
2514
2514
|
l({ type: Number })
|
|
2515
|
-
],
|
|
2515
|
+
], U.prototype, "end_date", 2);
|
|
2516
2516
|
Z([
|
|
2517
2517
|
l({ type: Boolean })
|
|
2518
|
-
],
|
|
2518
|
+
], U.prototype, "hide_hours", 2);
|
|
2519
2519
|
Z([
|
|
2520
2520
|
l({ type: String })
|
|
2521
|
-
],
|
|
2521
|
+
], U.prototype, "era", 2);
|
|
2522
2522
|
Z([
|
|
2523
2523
|
l({ type: String })
|
|
2524
|
-
],
|
|
2524
|
+
], U.prototype, "year", 2);
|
|
2525
2525
|
Z([
|
|
2526
2526
|
l({ type: String })
|
|
2527
|
-
],
|
|
2527
|
+
], U.prototype, "month", 2);
|
|
2528
2528
|
Z([
|
|
2529
2529
|
l({ type: String })
|
|
2530
|
-
],
|
|
2530
|
+
], U.prototype, "day", 2);
|
|
2531
2531
|
Z([
|
|
2532
2532
|
l({ type: String })
|
|
2533
|
-
],
|
|
2533
|
+
], U.prototype, "weekday", 2);
|
|
2534
2534
|
Z([
|
|
2535
2535
|
l({ type: String })
|
|
2536
|
-
],
|
|
2536
|
+
], U.prototype, "hour", 2);
|
|
2537
2537
|
Z([
|
|
2538
2538
|
l({ type: Boolean })
|
|
2539
|
-
],
|
|
2539
|
+
], U.prototype, "hour12", 2);
|
|
2540
2540
|
Z([
|
|
2541
2541
|
l({ type: String })
|
|
2542
|
-
],
|
|
2542
|
+
], U.prototype, "minute", 2);
|
|
2543
2543
|
Z([
|
|
2544
2544
|
l({ type: String })
|
|
2545
|
-
],
|
|
2545
|
+
], U.prototype, "language", 2);
|
|
2546
2546
|
Z([
|
|
2547
2547
|
l({ type: Boolean })
|
|
2548
|
-
],
|
|
2548
|
+
], U.prototype, "renderIf", 2);
|
|
2549
2549
|
Z([
|
|
2550
2550
|
l({ type: Boolean })
|
|
2551
|
-
],
|
|
2552
|
-
|
|
2551
|
+
], U.prototype, "now", 2);
|
|
2552
|
+
U = Z([
|
|
2553
2553
|
w(wn)
|
|
2554
|
-
],
|
|
2554
|
+
], U);
|
|
2555
2555
|
var t, K;
|
|
2556
2556
|
let ot = (K = class {
|
|
2557
2557
|
static listen() {
|
|
@@ -2972,9 +2972,9 @@ var mi = { exports: {} };
|
|
|
2972
2972
|
}, P = function(u) {
|
|
2973
2973
|
return new RegExp(u.toString() + "|").exec("").length - 1;
|
|
2974
2974
|
}, b = function(u, f) {
|
|
2975
|
-
var y, C, O, E,
|
|
2975
|
+
var y, C, O, E, H;
|
|
2976
2976
|
for (E = {}, y = -1, O = u.length; ++y < O; )
|
|
2977
|
-
C = u[y],
|
|
2977
|
+
C = u[y], H = f[y], H != null && (E[C] != null ? (Array.isArray(E[C]) || (E[C] = [E[C]]), E[C].push(H)) : E[C] = H);
|
|
2978
2978
|
return E;
|
|
2979
2979
|
}, i = {}, i.Result = function(u, f) {
|
|
2980
2980
|
this.value = u, this.rest = f;
|
|
@@ -2995,11 +2995,11 @@ var mi = { exports: {} };
|
|
|
2995
2995
|
}, i.sequence = function() {
|
|
2996
2996
|
var u;
|
|
2997
2997
|
return u = 1 <= arguments.length ? s.call(arguments, 0) : [], function(f) {
|
|
2998
|
-
var y, C, O, E,
|
|
2998
|
+
var y, C, O, E, H, W;
|
|
2999
2999
|
for (y = -1, C = u.length, W = [], E = f; ++y < C; ) {
|
|
3000
|
-
if (O = u[y],
|
|
3000
|
+
if (O = u[y], H = O(E), H == null)
|
|
3001
3001
|
return;
|
|
3002
|
-
W.push(
|
|
3002
|
+
W.push(H.value), E = H.rest;
|
|
3003
3003
|
}
|
|
3004
3004
|
return new i.Result(W, E);
|
|
3005
3005
|
};
|
|
@@ -3022,9 +3022,9 @@ var mi = { exports: {} };
|
|
|
3022
3022
|
return f == null && (f = u()), f(y);
|
|
3023
3023
|
};
|
|
3024
3024
|
}, i.baseMany = function(u, f, y, C, O) {
|
|
3025
|
-
var E,
|
|
3026
|
-
for (W = O, St = y ? "" : []; !(f != null && (E = f(W), E != null) || (
|
|
3027
|
-
y ? St +=
|
|
3025
|
+
var E, H, W, St;
|
|
3026
|
+
for (W = O, St = y ? "" : []; !(f != null && (E = f(W), E != null) || (H = u(W), H == null)); )
|
|
3027
|
+
y ? St += H.value : St.push(H.value), W = H.rest;
|
|
3028
3028
|
if (!(C && St.length === 0))
|
|
3029
3029
|
return new i.Result(St, W);
|
|
3030
3030
|
}, i.many1 = function(u) {
|
|
@@ -3095,7 +3095,7 @@ var mi = { exports: {} };
|
|
|
3095
3095
|
return n(u.value);
|
|
3096
3096
|
}
|
|
3097
3097
|
}, g = function(u, f, y, C) {
|
|
3098
|
-
var O, E,
|
|
3098
|
+
var O, E, H, W;
|
|
3099
3099
|
if (C == null && (C = !1), W = u[f], W == null) {
|
|
3100
3100
|
if (C)
|
|
3101
3101
|
throw new Error("no values provided for key `" + f + "`");
|
|
@@ -3106,7 +3106,7 @@ var mi = { exports: {} };
|
|
|
3106
3106
|
throw new Error("too few values provided for key `" + f + "`");
|
|
3107
3107
|
return;
|
|
3108
3108
|
}
|
|
3109
|
-
return
|
|
3109
|
+
return H = Array.isArray(W) ? W[O] : W, C && (y[f] = O + 1), H;
|
|
3110
3110
|
}, o = function(u, f, y) {
|
|
3111
3111
|
var C, O;
|
|
3112
3112
|
if (Array.isArray(u)) {
|
|
@@ -3141,7 +3141,7 @@ var mi = { exports: {} };
|
|
|
3141
3141
|
return o(u.value, f, y) ? D(u.value, f, y) : "";
|
|
3142
3142
|
}
|
|
3143
3143
|
}, e = function(u, f) {
|
|
3144
|
-
var y, C, O, E,
|
|
3144
|
+
var y, C, O, E, H;
|
|
3145
3145
|
if (u instanceof e) {
|
|
3146
3146
|
this.isRegex = u.isRegex, this.regex = u.regex, this.ast = u.ast, this.names = u.names;
|
|
3147
3147
|
return;
|
|
@@ -3160,7 +3160,7 @@ var mi = { exports: {} };
|
|
|
3160
3160
|
}
|
|
3161
3161
|
if (u === "")
|
|
3162
3162
|
throw new Error("argument must not be the empty string");
|
|
3163
|
-
if (
|
|
3163
|
+
if (H = u.replace(/\s+/g, ""), H !== u)
|
|
3164
3164
|
throw new Error("argument must not contain whitespace");
|
|
3165
3165
|
if (C = {
|
|
3166
3166
|
escapeChar: (f != null ? f.escapeChar : void 0) || d.escapeChar,
|
|
@@ -3388,7 +3388,7 @@ const $ = (r) => r ?? A, Mt = x`
|
|
|
3388
3388
|
--sc-_fs: 1em;
|
|
3389
3389
|
}
|
|
3390
3390
|
`;
|
|
3391
|
-
var zn = Object.defineProperty, Rn = Object.getOwnPropertyDescriptor,
|
|
3391
|
+
var zn = Object.defineProperty, Rn = Object.getOwnPropertyDescriptor, q = (r, t, s, i) => {
|
|
3392
3392
|
for (var e = i > 1 ? void 0 : i ? Rn(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
3393
3393
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
3394
3394
|
return i && e && zn(t, s, e), e;
|
|
@@ -3859,85 +3859,85 @@ I.styles = [
|
|
|
3859
3859
|
}
|
|
3860
3860
|
`
|
|
3861
3861
|
];
|
|
3862
|
-
|
|
3862
|
+
q([
|
|
3863
3863
|
l({ type: String, reflect: !0 })
|
|
3864
3864
|
], I.prototype, "type", 2);
|
|
3865
|
-
|
|
3865
|
+
q([
|
|
3866
3866
|
l({ type: String, reflect: !0 })
|
|
3867
3867
|
], I.prototype, "variant", 2);
|
|
3868
|
-
|
|
3868
|
+
q([
|
|
3869
3869
|
l({ type: String, reflect: !0 })
|
|
3870
3870
|
], I.prototype, "size", 2);
|
|
3871
|
-
|
|
3871
|
+
q([
|
|
3872
3872
|
l({ type: String, reflect: !0 })
|
|
3873
3873
|
], I.prototype, "shape", 2);
|
|
3874
|
-
|
|
3874
|
+
q([
|
|
3875
3875
|
l({ type: String })
|
|
3876
3876
|
], I.prototype, "direction", 2);
|
|
3877
|
-
|
|
3877
|
+
q([
|
|
3878
3878
|
l({ type: String, reflect: !0 })
|
|
3879
3879
|
], I.prototype, "alignItems", 2);
|
|
3880
|
-
|
|
3880
|
+
q([
|
|
3881
3881
|
l({ type: String })
|
|
3882
3882
|
], I.prototype, "justify", 2);
|
|
3883
|
-
|
|
3883
|
+
q([
|
|
3884
3884
|
l({ type: String, reflect: !0 })
|
|
3885
3885
|
], I.prototype, "align", 2);
|
|
3886
|
-
|
|
3886
|
+
q([
|
|
3887
3887
|
l({ type: String })
|
|
3888
3888
|
], I.prototype, "minWidth", 2);
|
|
3889
|
-
|
|
3889
|
+
q([
|
|
3890
3890
|
l({ type: Boolean, reflect: !0 })
|
|
3891
3891
|
], I.prototype, "icon", 2);
|
|
3892
|
-
|
|
3892
|
+
q([
|
|
3893
3893
|
l({ type: String })
|
|
3894
3894
|
], I.prototype, "download", 2);
|
|
3895
|
-
|
|
3895
|
+
q([
|
|
3896
3896
|
l({ type: String })
|
|
3897
3897
|
], I.prototype, "autoActive", 2);
|
|
3898
|
-
|
|
3898
|
+
q([
|
|
3899
3899
|
l({ type: Boolean, reflect: !0 })
|
|
3900
3900
|
], I.prototype, "loading", 2);
|
|
3901
|
-
|
|
3901
|
+
q([
|
|
3902
3902
|
M()
|
|
3903
3903
|
], I.prototype, "hasPrefix", 2);
|
|
3904
|
-
|
|
3904
|
+
q([
|
|
3905
3905
|
M()
|
|
3906
3906
|
], I.prototype, "hasSuffix", 2);
|
|
3907
|
-
|
|
3907
|
+
q([
|
|
3908
3908
|
xe({ flatten: !0, slot: "prefix" })
|
|
3909
3909
|
], I.prototype, "prefixes", 2);
|
|
3910
|
-
|
|
3910
|
+
q([
|
|
3911
3911
|
xe({ flatten: !0, slot: "suffix" })
|
|
3912
3912
|
], I.prototype, "suffixes", 2);
|
|
3913
|
-
|
|
3913
|
+
q([
|
|
3914
3914
|
l({ type: String })
|
|
3915
3915
|
], I.prototype, "target", 2);
|
|
3916
|
-
|
|
3916
|
+
q([
|
|
3917
3917
|
l({ type: String })
|
|
3918
3918
|
], I.prototype, "href", 1);
|
|
3919
|
-
|
|
3919
|
+
q([
|
|
3920
3920
|
l({ type: String })
|
|
3921
3921
|
], I.prototype, "goBack", 2);
|
|
3922
|
-
|
|
3922
|
+
q([
|
|
3923
3923
|
l({ type: Boolean })
|
|
3924
3924
|
], I.prototype, "pushState", 2);
|
|
3925
|
-
|
|
3925
|
+
q([
|
|
3926
3926
|
l({ type: Boolean, reflect: !0 })
|
|
3927
3927
|
], I.prototype, "active", 2);
|
|
3928
|
-
|
|
3928
|
+
q([
|
|
3929
3929
|
l({ type: Boolean, reflect: !0 })
|
|
3930
3930
|
], I.prototype, "autoRepeat", 2);
|
|
3931
|
-
|
|
3931
|
+
q([
|
|
3932
3932
|
l({ type: String, attribute: "data-aria-controls" })
|
|
3933
3933
|
], I.prototype, "ariaControls", 2);
|
|
3934
|
-
|
|
3934
|
+
q([
|
|
3935
3935
|
l({ type: Boolean, attribute: "data-aria-expanded" })
|
|
3936
3936
|
], I.prototype, "sonicAriaExpanded", 2);
|
|
3937
|
-
|
|
3937
|
+
q([
|
|
3938
3938
|
M()
|
|
3939
3939
|
], I.prototype, "location", 2);
|
|
3940
|
-
I =
|
|
3940
|
+
I = q([
|
|
3941
3941
|
w(Un)
|
|
3942
3942
|
], I);
|
|
3943
3943
|
/**
|
|
@@ -4596,10 +4596,10 @@ ir.default = {
|
|
|
4596
4596
|
const o = Ns[s], n = t.prefix || o.defaultPrefix || "", a = e[s] || {};
|
|
4597
4597
|
e[s] = a;
|
|
4598
4598
|
const c = n + "-" + i;
|
|
4599
|
-
if (a[c]) return
|
|
4599
|
+
if (a[c]) return R(a[c]);
|
|
4600
4600
|
const h = (o.url || "").replace("$prefix", n).replace("$name", i);
|
|
4601
4601
|
if (Wt.icons[h])
|
|
4602
|
-
return a[c] = Wt.icons[h],
|
|
4602
|
+
return a[c] = Wt.icons[h], R(Wt.icons[h]);
|
|
4603
4603
|
if (!$s.has(h)) {
|
|
4604
4604
|
const p = new Promise(async (g) => {
|
|
4605
4605
|
try {
|
|
@@ -4625,9 +4625,9 @@ ir.default = {
|
|
|
4625
4625
|
const p = Wt.names.shift();
|
|
4626
4626
|
delete Wt.icons[p];
|
|
4627
4627
|
}
|
|
4628
|
-
return sessionStorage.setItem("sonicIconsCache", JSON.stringify(Wt)),
|
|
4628
|
+
return sessionStorage.setItem("sonicIconsCache", JSON.stringify(Wt)), R(d);
|
|
4629
4629
|
}
|
|
4630
|
-
return
|
|
4630
|
+
return R(e.core[t.name] || "");
|
|
4631
4631
|
}
|
|
4632
4632
|
};
|
|
4633
4633
|
let gi = ir;
|
|
@@ -4788,7 +4788,7 @@ let $t = class extends _ {
|
|
|
4788
4788
|
|
|
4789
4789
|
<div class="sonic-toast-text">
|
|
4790
4790
|
${this.title ? m`<div class="sonic-toast-title">${this.title}</div>` : ""}
|
|
4791
|
-
${this.text ?
|
|
4791
|
+
${this.text ? R(this.text) : ""}
|
|
4792
4792
|
<slot></slot>
|
|
4793
4793
|
</div>
|
|
4794
4794
|
|
|
@@ -5359,7 +5359,7 @@ let N = class extends _ {
|
|
|
5359
5359
|
})}
|
|
5360
5360
|
>
|
|
5361
5361
|
<!-- Le texte est passé dans le slot et non pas en propriété pour contrer des problèmatiques de shadow-dom et d'appel exterieur (exemple: fancybox) -->
|
|
5362
|
-
${i.text ?
|
|
5362
|
+
${i.text ? R(i.text) : ""}
|
|
5363
5363
|
</sonic-toast-item>
|
|
5364
5364
|
`
|
|
5365
5365
|
)}
|
|
@@ -6289,7 +6289,7 @@ let Gt = class extends G(_) {
|
|
|
6289
6289
|
const d = this.getAncestorAttributeValue("dataProvider"), p = this.endPoint || d;
|
|
6290
6290
|
rt.show();
|
|
6291
6291
|
const g = async () => {
|
|
6292
|
-
var f, y, C, O, E,
|
|
6292
|
+
var f, y, C, O, E, H, W, St;
|
|
6293
6293
|
if (e)
|
|
6294
6294
|
h = await ((f = this.api) == null ? void 0 : f.submitFormData(
|
|
6295
6295
|
p,
|
|
@@ -6317,7 +6317,7 @@ let Gt = class extends G(_) {
|
|
|
6317
6317
|
h = await ((E = this.api) == null ? void 0 : E.get(p + No, c));
|
|
6318
6318
|
break;
|
|
6319
6319
|
default:
|
|
6320
|
-
h = await ((
|
|
6320
|
+
h = await ((H = this.api) == null ? void 0 : H.post(p, o, c));
|
|
6321
6321
|
break;
|
|
6322
6322
|
}
|
|
6323
6323
|
rt.hide(), h ? h._sonic_http_response_ && !h._sonic_http_response_.ok && Object.keys(h).length === 1 && (h.messages = [{ content: "Network Error", status: "error" }]) : h = { messages: [{ content: "Network Error", status: "error" }] };
|
|
@@ -7157,7 +7157,7 @@ let Rr = class extends ee(_) {
|
|
|
7157
7157
|
this.setAttribute("subDataProvider", this.getAttribute("key")), super.connectedCallback();
|
|
7158
7158
|
}
|
|
7159
7159
|
render() {
|
|
7160
|
-
return typeof this.props == "object" || this.props === void 0 ? m`<slot name="prefix"></slot><slot></slot><slot name="suffix"></slot>` : m`${
|
|
7160
|
+
return typeof this.props == "object" || this.props === void 0 ? m`<slot name="prefix"></slot><slot></slot><slot name="suffix"></slot>` : m`${R(this.props.toString())}<slot name="prefix"></slot><slot></slot
|
|
7161
7161
|
><slot name="suffix"></slot>`;
|
|
7162
7162
|
}
|
|
7163
7163
|
};
|
|
@@ -7883,6 +7883,14 @@ const uc = x`
|
|
|
7883
7883
|
:host([touched][required]) :not(:focus):valid + .select-chevron {
|
|
7884
7884
|
--sc-input-c: var(--sc-success, var(--sc-base-content, #000));
|
|
7885
7885
|
}
|
|
7886
|
+
/*active*/
|
|
7887
|
+
:host([active]) {
|
|
7888
|
+
--sc-input-b-color: var(--sc-primary, var(--sc-base-content, #000));
|
|
7889
|
+
--sc-input-c: var(--sc-primary, var(--sc-base-content, #000));
|
|
7890
|
+
}
|
|
7891
|
+
:host([active]) .select-chevron {
|
|
7892
|
+
--sc-input-c: var(--sc-primary, var(--sc-base-content, #000));
|
|
7893
|
+
}
|
|
7886
7894
|
|
|
7887
7895
|
/*Input COLOR*/
|
|
7888
7896
|
:host([type="color"]) .form-element {
|
|
@@ -8009,15 +8017,15 @@ const Qi = Pe(class extends Ie {
|
|
|
8009
8017
|
return _t;
|
|
8010
8018
|
}
|
|
8011
8019
|
});
|
|
8012
|
-
var fc = Object.defineProperty, mc = Object.getOwnPropertyDescriptor,
|
|
8020
|
+
var fc = Object.defineProperty, mc = Object.getOwnPropertyDescriptor, V = (r, t, s, i) => {
|
|
8013
8021
|
for (var e = i > 1 ? void 0 : i ? mc(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
8014
8022
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
8015
8023
|
return i && e && fc(t, s, e), e;
|
|
8016
8024
|
};
|
|
8017
8025
|
const gc = "sonic-input";
|
|
8018
|
-
let
|
|
8026
|
+
let j = class extends Gs(je(G(_))) {
|
|
8019
8027
|
constructor() {
|
|
8020
|
-
super(...arguments), this.readonly = !1, this.inlineContent = !1, this.disableInlineContentFocus = !1, this.showPasswordToggle = !1, this.hasDescription = !1, this.hasLabel = !1, this.hasSuffix = !1, this.hasPrefix = !1, this.isPassword = !1;
|
|
8028
|
+
super(...arguments), this.readonly = !1, this.inlineContent = !1, this.disableInlineContentFocus = !1, this.showPasswordToggle = !1, this.autoActive = !1, this.active = !1, this.hasDescription = !1, this.hasLabel = !1, this.hasSuffix = !1, this.hasPrefix = !1, this.isPassword = !1;
|
|
8021
8029
|
}
|
|
8022
8030
|
connectedCallback() {
|
|
8023
8031
|
if (super.connectedCallback(), this.hasSlotOrProps(), this.hasAttribute("sameValueAs")) {
|
|
@@ -8039,7 +8047,7 @@ let U = class extends Gs(je(G(_))) {
|
|
|
8039
8047
|
return r.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
8040
8048
|
}
|
|
8041
8049
|
willUpdate(r) {
|
|
8042
|
-
this.hasSlotOrProps(), super.willUpdate(r);
|
|
8050
|
+
this.hasSlotOrProps(), this.autoActive && r.has("value") && (this.active = !!this.value), super.willUpdate(r);
|
|
8043
8051
|
}
|
|
8044
8052
|
setSelectionRange(r, t) {
|
|
8045
8053
|
this.input.setSelectionRange(r, t);
|
|
@@ -8075,7 +8083,7 @@ let U = class extends Gs(je(G(_))) {
|
|
|
8075
8083
|
};
|
|
8076
8084
|
return m`
|
|
8077
8085
|
<label for="${this.id || "form-element"}" class="${this.hasLabel ? "form-label" : "hidden"}"
|
|
8078
|
-
>${this.label ?
|
|
8086
|
+
>${this.label ? R(
|
|
8079
8087
|
this.label
|
|
8080
8088
|
/*+ labelStarSuffix*/
|
|
8081
8089
|
) : ""}<slot
|
|
@@ -8140,13 +8148,13 @@ let U = class extends Gs(je(G(_))) {
|
|
|
8140
8148
|
name="description"
|
|
8141
8149
|
@slotchange=${this.hasSlotOrProps}
|
|
8142
8150
|
class="${this.hasDescription ? "form-description" : "hidden"}"
|
|
8143
|
-
>${this.description ? m`${
|
|
8151
|
+
>${this.description ? m`${R(this.description)}` : A}</slot>
|
|
8144
8152
|
<slot name="list"></slot>
|
|
8145
8153
|
</div>
|
|
8146
8154
|
`;
|
|
8147
8155
|
}
|
|
8148
8156
|
};
|
|
8149
|
-
|
|
8157
|
+
j.styles = [
|
|
8150
8158
|
Mt,
|
|
8151
8159
|
Xi,
|
|
8152
8160
|
Xs,
|
|
@@ -8162,84 +8170,90 @@ U.styles = [
|
|
|
8162
8170
|
}
|
|
8163
8171
|
`
|
|
8164
8172
|
];
|
|
8165
|
-
|
|
8173
|
+
V([
|
|
8166
8174
|
l({ type: String, reflect: !0 })
|
|
8167
|
-
],
|
|
8168
|
-
|
|
8175
|
+
], j.prototype, "size", 2);
|
|
8176
|
+
V([
|
|
8169
8177
|
l({ type: String })
|
|
8170
|
-
],
|
|
8171
|
-
|
|
8178
|
+
], j.prototype, "inputmode", 2);
|
|
8179
|
+
V([
|
|
8172
8180
|
l({ type: String })
|
|
8173
|
-
],
|
|
8174
|
-
|
|
8181
|
+
], j.prototype, "list", 2);
|
|
8182
|
+
V([
|
|
8175
8183
|
l({ type: String })
|
|
8176
|
-
],
|
|
8177
|
-
|
|
8184
|
+
], j.prototype, "placeholder", 2);
|
|
8185
|
+
V([
|
|
8178
8186
|
l({ type: String })
|
|
8179
|
-
],
|
|
8180
|
-
|
|
8187
|
+
], j.prototype, "pattern", 2);
|
|
8188
|
+
V([
|
|
8181
8189
|
l({ type: String })
|
|
8182
|
-
],
|
|
8183
|
-
|
|
8190
|
+
], j.prototype, "min", 2);
|
|
8191
|
+
V([
|
|
8184
8192
|
l({ type: String })
|
|
8185
|
-
],
|
|
8186
|
-
|
|
8193
|
+
], j.prototype, "max", 2);
|
|
8194
|
+
V([
|
|
8187
8195
|
l({ type: Boolean })
|
|
8188
|
-
],
|
|
8189
|
-
|
|
8196
|
+
], j.prototype, "readonly", 2);
|
|
8197
|
+
V([
|
|
8190
8198
|
l({ type: Number })
|
|
8191
|
-
],
|
|
8192
|
-
|
|
8199
|
+
], j.prototype, "step", 2);
|
|
8200
|
+
V([
|
|
8193
8201
|
l({ type: Number })
|
|
8194
|
-
],
|
|
8195
|
-
|
|
8202
|
+
], j.prototype, "minlength", 2);
|
|
8203
|
+
V([
|
|
8196
8204
|
l({ type: Number })
|
|
8197
|
-
],
|
|
8198
|
-
|
|
8205
|
+
], j.prototype, "maxlength", 2);
|
|
8206
|
+
V([
|
|
8199
8207
|
l({ type: String })
|
|
8200
|
-
],
|
|
8201
|
-
|
|
8208
|
+
], j.prototype, "src", 2);
|
|
8209
|
+
V([
|
|
8202
8210
|
l({ type: Boolean, reflect: !0 })
|
|
8203
|
-
],
|
|
8204
|
-
|
|
8211
|
+
], j.prototype, "inlineContent", 2);
|
|
8212
|
+
V([
|
|
8205
8213
|
l({ type: Boolean })
|
|
8206
|
-
],
|
|
8207
|
-
|
|
8214
|
+
], j.prototype, "disableInlineContentFocus", 2);
|
|
8215
|
+
V([
|
|
8208
8216
|
l({ type: Boolean })
|
|
8209
|
-
],
|
|
8210
|
-
|
|
8217
|
+
], j.prototype, "showPasswordToggle", 2);
|
|
8218
|
+
V([
|
|
8219
|
+
l({ type: Boolean })
|
|
8220
|
+
], j.prototype, "autoActive", 2);
|
|
8221
|
+
V([
|
|
8222
|
+
l({ type: Boolean, reflect: !0 })
|
|
8223
|
+
], j.prototype, "active", 2);
|
|
8224
|
+
V([
|
|
8211
8225
|
ht({ slot: "label", flatten: !0 })
|
|
8212
|
-
],
|
|
8213
|
-
|
|
8226
|
+
], j.prototype, "slotLabelNodes", 2);
|
|
8227
|
+
V([
|
|
8214
8228
|
ht({ slot: "description", flatten: !0 })
|
|
8215
|
-
],
|
|
8216
|
-
|
|
8229
|
+
], j.prototype, "slotDescriptionNodes", 2);
|
|
8230
|
+
V([
|
|
8217
8231
|
ht({ slot: "suffix", flatten: !0 })
|
|
8218
|
-
],
|
|
8219
|
-
|
|
8232
|
+
], j.prototype, "slotSuffixNodes", 2);
|
|
8233
|
+
V([
|
|
8220
8234
|
ht({ slot: "prefix", flatten: !0 })
|
|
8221
|
-
],
|
|
8222
|
-
|
|
8235
|
+
], j.prototype, "slotPrefixNodes", 2);
|
|
8236
|
+
V([
|
|
8223
8237
|
$e("input")
|
|
8224
|
-
],
|
|
8225
|
-
|
|
8238
|
+
], j.prototype, "input", 2);
|
|
8239
|
+
V([
|
|
8226
8240
|
M()
|
|
8227
|
-
],
|
|
8228
|
-
|
|
8241
|
+
], j.prototype, "hasDescription", 2);
|
|
8242
|
+
V([
|
|
8229
8243
|
M()
|
|
8230
|
-
],
|
|
8231
|
-
|
|
8244
|
+
], j.prototype, "hasLabel", 2);
|
|
8245
|
+
V([
|
|
8232
8246
|
M()
|
|
8233
|
-
],
|
|
8234
|
-
|
|
8247
|
+
], j.prototype, "hasSuffix", 2);
|
|
8248
|
+
V([
|
|
8235
8249
|
M()
|
|
8236
|
-
],
|
|
8237
|
-
|
|
8250
|
+
], j.prototype, "hasPrefix", 2);
|
|
8251
|
+
V([
|
|
8238
8252
|
M()
|
|
8239
|
-
],
|
|
8240
|
-
|
|
8253
|
+
], j.prototype, "isPassword", 2);
|
|
8254
|
+
j = V([
|
|
8241
8255
|
w(gc)
|
|
8242
|
-
],
|
|
8256
|
+
], j);
|
|
8243
8257
|
const Ao = x`
|
|
8244
8258
|
/*OMBRE*/
|
|
8245
8259
|
:host([shadow]) .shadowable,
|
|
@@ -8326,7 +8340,7 @@ let nt = class extends _ {
|
|
|
8326
8340
|
this.popContent && this.resizeObserver.unobserve(this.popContent), super.disconnectedCallback(), nt.pops.delete(this), nt.pops.size == 0 && (document.removeEventListener("pointerdown", this._handleClosePop), document.removeEventListener("click", this._handleClosePop));
|
|
8327
8341
|
}
|
|
8328
8342
|
computePosition(r) {
|
|
8329
|
-
var E,
|
|
8343
|
+
var E, H, W, St;
|
|
8330
8344
|
const t = r.split(" "), s = t[0];
|
|
8331
8345
|
let i = t[1], e = (E = this.popContent) == null ? void 0 : E.getBoundingClientRect();
|
|
8332
8346
|
const o = 5, n = this.getBoundingClientRect(), a = J.getScrollableAncestor(
|
|
@@ -8357,7 +8371,7 @@ let nt = class extends _ {
|
|
|
8357
8371
|
this.lastContentX += P - e.x, this.lastContentY += S - e.y, Object.assign(this.popContent.style, {
|
|
8358
8372
|
left: `${this.lastContentX}px`,
|
|
8359
8373
|
top: `${this.lastContentY}px`
|
|
8360
|
-
}), e = (
|
|
8374
|
+
}), e = (H = this.popContent) == null ? void 0 : H.getBoundingClientRect(), e.x < h && s == "left" && (P = f), e.y < d && s == "top" && (S = y), e.x + e.width > p && s == "right" && (P = u), e.y + e.height > g && s == "bottom" && (S = D), this.lastContentX += P - e.x, this.lastContentY += S - e.y, Object.assign(this.popContent.style, {
|
|
8361
8375
|
left: `${this.lastContentX}px`,
|
|
8362
8376
|
top: `${this.lastContentY}px`
|
|
8363
8377
|
}), e = (W = this.popContent) == null ? void 0 : W.getBoundingClientRect(), e.x < h && (this.lastContentX += h - e.x), e.y < d && (this.lastContentY += d - e.y), Object.assign(this.popContent.style, {
|
|
@@ -8870,7 +8884,7 @@ let Jt = class extends ee(_) {
|
|
|
8870
8884
|
render() {
|
|
8871
8885
|
return this.hasNoChar ? A : m`
|
|
8872
8886
|
<span>
|
|
8873
|
-
${this.areEqual ?
|
|
8887
|
+
${this.areEqual ? R(this.descriptionWhenEqual) : R(this.descriptionWhenNotEqual)}
|
|
8874
8888
|
</span>
|
|
8875
8889
|
`;
|
|
8876
8890
|
}
|
|
@@ -8941,12 +8955,12 @@ let pt = class extends Vi(
|
|
|
8941
8955
|
</span>
|
|
8942
8956
|
|
|
8943
8957
|
<div class="checkbox-text ${!this.hasDescription && !this.hasLabel ? "hidden" : "checkbox-text"}">
|
|
8944
|
-
${this.label ?
|
|
8958
|
+
${this.label ? R(
|
|
8945
8959
|
this.label
|
|
8946
8960
|
/*+ labelStarSuffix*/
|
|
8947
8961
|
) : ""}
|
|
8948
8962
|
<slot @slotchange=${this.hasSlotOrProps}></slot>
|
|
8949
|
-
<slot @slotchange=${this.hasSlotOrProps} name="description" class="${this.hasDescription ? "description" : "hidden"} ">${this.description ? m`${
|
|
8963
|
+
<slot @slotchange=${this.hasSlotOrProps} name="description" class="${this.hasDescription ? "description" : "hidden"} ">${this.description ? m`${R(this.description)}` : ""}</slot>
|
|
8950
8964
|
</div>
|
|
8951
8965
|
</label>
|
|
8952
8966
|
</label>
|
|
@@ -9150,6 +9164,9 @@ var zc = Object.defineProperty, Rc = Object.getOwnPropertyDescriptor, Uc = (r, t
|
|
|
9150
9164
|
};
|
|
9151
9165
|
const Vc = "sonic-switch";
|
|
9152
9166
|
let _i = class extends pt {
|
|
9167
|
+
constructor() {
|
|
9168
|
+
super(), this.unique = !0;
|
|
9169
|
+
}
|
|
9153
9170
|
};
|
|
9154
9171
|
_i.styles = [
|
|
9155
9172
|
pt.styles,
|
|
@@ -9303,7 +9320,7 @@ let Y = class extends je(G(_)) {
|
|
|
9303
9320
|
<label
|
|
9304
9321
|
for="form-element"
|
|
9305
9322
|
class="${this.hasLabel ? "form-label" : "hidden"}"
|
|
9306
|
-
>${this.label ?
|
|
9323
|
+
>${this.label ? R(
|
|
9307
9324
|
this.label
|
|
9308
9325
|
/*+ labelStarSuffix*/
|
|
9309
9326
|
) : ""}<slot
|
|
@@ -9358,7 +9375,7 @@ let Y = class extends je(G(_)) {
|
|
|
9358
9375
|
name="description"
|
|
9359
9376
|
@slotchange=${this.hasSlotOrProps}
|
|
9360
9377
|
class="${this.hasDescription ? "form-description" : "hidden"}"
|
|
9361
|
-
>${this.description ? m`${
|
|
9378
|
+
>${this.description ? m`${R(this.description)}` : ""}</slot
|
|
9362
9379
|
>
|
|
9363
9380
|
`;
|
|
9364
9381
|
}
|
|
@@ -9512,7 +9529,7 @@ let ct = class extends Gs(je(G(_))) {
|
|
|
9512
9529
|
<label
|
|
9513
9530
|
for="${this.id || "form-element"}"
|
|
9514
9531
|
class="${this.hasLabel ? "form-label" : "hidden"}"
|
|
9515
|
-
>${this.label ?
|
|
9532
|
+
>${this.label ? R(
|
|
9516
9533
|
this.label
|
|
9517
9534
|
/*+ labelStarSuffix*/
|
|
9518
9535
|
) : ""}<slot
|
|
@@ -9553,7 +9570,7 @@ ${this.value}</textarea
|
|
|
9553
9570
|
name="description"
|
|
9554
9571
|
@slotchange=${this.hasSlotOrProps}
|
|
9555
9572
|
class="${this.hasDescription ? "form-description" : "hidden"}"
|
|
9556
|
-
>${this.description ? m`${
|
|
9573
|
+
>${this.description ? m`${R(this.description)}` : ""}</slot
|
|
9557
9574
|
>
|
|
9558
9575
|
`;
|
|
9559
9576
|
}
|
|
@@ -9672,9 +9689,9 @@ let Ht = class extends _ {
|
|
|
9672
9689
|
</div>` : ""}
|
|
9673
9690
|
|
|
9674
9691
|
<div class="legend-content">
|
|
9675
|
-
${
|
|
9692
|
+
${R(this.label ? this.label : "")}
|
|
9676
9693
|
${this.description ? m`<sonic-legend-description
|
|
9677
|
-
>${
|
|
9694
|
+
>${R(this.description)}</sonic-legend-description
|
|
9678
9695
|
>` : ""}
|
|
9679
9696
|
<slot></slot>
|
|
9680
9697
|
</div>
|
|
@@ -9997,7 +10014,7 @@ let Nt = class extends _ {
|
|
|
9997
10014
|
alignItems: this.alignItems
|
|
9998
10015
|
};
|
|
9999
10016
|
return m`<span class="${this.hasLabel ? "form-label" : "hidden"}"
|
|
10000
|
-
>${this.label ?
|
|
10017
|
+
>${this.label ? R(
|
|
10001
10018
|
this.label
|
|
10002
10019
|
/*+ labelStarSuffix*/
|
|
10003
10020
|
) : ""}<slot
|
|
@@ -10011,7 +10028,7 @@ let Nt = class extends _ {
|
|
|
10011
10028
|
@slotchange=${this.hasSlotOrProps}
|
|
10012
10029
|
class="${this.hasDescription ? "form-description" : "hidden"}"
|
|
10013
10030
|
>
|
|
10014
|
-
${this.description ? m`${
|
|
10031
|
+
${this.description ? m`${R(this.description)}` : ""}
|
|
10015
10032
|
</slot>`;
|
|
10016
10033
|
}
|
|
10017
10034
|
};
|
|
@@ -10630,7 +10647,7 @@ var jh = Object.defineProperty, Fh = Object.getOwnPropertyDescriptor, et = (r, t
|
|
|
10630
10647
|
return i && e && jh(t, s, e), e;
|
|
10631
10648
|
};
|
|
10632
10649
|
const Do = "sonic-modal";
|
|
10633
|
-
let
|
|
10650
|
+
let F = class extends G(_) {
|
|
10634
10651
|
constructor() {
|
|
10635
10652
|
super(...arguments), this.forceAction = !1, this.removeOnHide = !1, this.removeHashOnHide = !1, this.align = "left", this.padding = "var(--sc-modal-py) var(--sc-modal-px)", this.maxWidth = "var(--sc-modal-max-w) ", this.maxHeight = "var(--sc-modal-max-h) ", this.width = "100%", this.height = "auto", this.zIndex = "var(--sc-modal-z-index)", this.fullScreen = !1, this.visible = !1;
|
|
10636
10653
|
}
|
|
@@ -10639,10 +10656,10 @@ let j = class extends G(_) {
|
|
|
10639
10656
|
return t.options = r, r.removeHashOnHide === !0 && t.setAttribute("removeHashOnHide", "true"), r.removeOnHide === !0 && t.setAttribute("removeOnHide", "true"), r.maxWidth && (t.maxWidth = r == null ? void 0 : r.maxWidth), r.width && (t.width = r == null ? void 0 : r.width), r.maxHeight && (t.maxHeight = r == null ? void 0 : r.maxHeight), r.height && (t.height = r == null ? void 0 : r.height), r.forceAction && (t.forceAction = !0), r.fullScreen && (t.fullScreen = r == null ? void 0 : r.fullScreen), r.effect && (t.effect = r == null ? void 0 : r.effect), r.paddingX && t.style.setProperty("--sc-modal-px", r == null ? void 0 : r.paddingX), r.paddingY && t.style.setProperty("--sc-modal-py", r == null ? void 0 : r.paddingY), r.zIndex && t.style.setProperty("--sc-modal-z-index", r == null ? void 0 : r.zIndex), yt.getPopContainer().appendChild(t), t.show(), t;
|
|
10640
10657
|
}
|
|
10641
10658
|
connectedCallback() {
|
|
10642
|
-
|
|
10659
|
+
F.modals.push(this), super.connectedCallback(), this.handleFullsceen();
|
|
10643
10660
|
}
|
|
10644
10661
|
disconnectedCallback() {
|
|
10645
|
-
|
|
10662
|
+
F.modals.splice(F.modals.indexOf(this), 1), super.disconnectedCallback();
|
|
10646
10663
|
}
|
|
10647
10664
|
updated() {
|
|
10648
10665
|
const r = this;
|
|
@@ -10741,7 +10758,7 @@ let j = class extends G(_) {
|
|
|
10741
10758
|
const t = (i = this.options) == null ? void 0 : i[r];
|
|
10742
10759
|
if (!t) return A;
|
|
10743
10760
|
let s;
|
|
10744
|
-
switch (t instanceof Object ? s = t : s =
|
|
10761
|
+
switch (t instanceof Object ? s = t : s = R(t), r) {
|
|
10745
10762
|
case "title":
|
|
10746
10763
|
return m`<sonic-modal-title>${s}</sonic-modal-title>`;
|
|
10747
10764
|
case "subtitle":
|
|
@@ -10770,12 +10787,12 @@ let j = class extends G(_) {
|
|
|
10770
10787
|
this.hide(), this.remove();
|
|
10771
10788
|
}
|
|
10772
10789
|
static disposeAll() {
|
|
10773
|
-
|
|
10790
|
+
F.modals.forEach((r) => {
|
|
10774
10791
|
r.dispose();
|
|
10775
10792
|
});
|
|
10776
10793
|
}
|
|
10777
10794
|
handleEscape(r) {
|
|
10778
|
-
r.key === "Escape" &&
|
|
10795
|
+
r.key === "Escape" && F.modals.forEach((t) => {
|
|
10779
10796
|
t.forceAction || t.hide();
|
|
10780
10797
|
});
|
|
10781
10798
|
}
|
|
@@ -10783,7 +10800,7 @@ let j = class extends G(_) {
|
|
|
10783
10800
|
this.fullScreen && (this.width = "100%", this.height = "100%", this.maxWidth = "none", this.maxHeight = "none");
|
|
10784
10801
|
}
|
|
10785
10802
|
};
|
|
10786
|
-
|
|
10803
|
+
F.styles = [
|
|
10787
10804
|
ps,
|
|
10788
10805
|
x`
|
|
10789
10806
|
:host {
|
|
@@ -10906,65 +10923,65 @@ j.styles = [
|
|
|
10906
10923
|
}
|
|
10907
10924
|
`
|
|
10908
10925
|
];
|
|
10909
|
-
|
|
10926
|
+
F.modals = [];
|
|
10910
10927
|
et([
|
|
10911
10928
|
l({ type: Boolean })
|
|
10912
|
-
],
|
|
10929
|
+
], F.prototype, "forceAction", 2);
|
|
10913
10930
|
et([
|
|
10914
10931
|
l({ type: Boolean })
|
|
10915
|
-
],
|
|
10932
|
+
], F.prototype, "removeOnHide", 2);
|
|
10916
10933
|
et([
|
|
10917
10934
|
l({ type: Boolean })
|
|
10918
|
-
],
|
|
10935
|
+
], F.prototype, "removeHashOnHide", 2);
|
|
10919
10936
|
et([
|
|
10920
10937
|
l({ type: String, reflect: !0 })
|
|
10921
|
-
],
|
|
10938
|
+
], F.prototype, "align", 2);
|
|
10922
10939
|
et([
|
|
10923
10940
|
l({ type: String })
|
|
10924
|
-
],
|
|
10941
|
+
], F.prototype, "padding", 2);
|
|
10925
10942
|
et([
|
|
10926
10943
|
l({ type: String })
|
|
10927
|
-
],
|
|
10944
|
+
], F.prototype, "maxWidth", 2);
|
|
10928
10945
|
et([
|
|
10929
10946
|
l({ type: String })
|
|
10930
|
-
],
|
|
10947
|
+
], F.prototype, "maxHeight", 2);
|
|
10931
10948
|
et([
|
|
10932
10949
|
l({ type: String })
|
|
10933
|
-
],
|
|
10950
|
+
], F.prototype, "width", 2);
|
|
10934
10951
|
et([
|
|
10935
10952
|
l({ type: String })
|
|
10936
|
-
],
|
|
10953
|
+
], F.prototype, "height", 2);
|
|
10937
10954
|
et([
|
|
10938
10955
|
l({ type: String })
|
|
10939
|
-
],
|
|
10956
|
+
], F.prototype, "zIndex", 2);
|
|
10940
10957
|
et([
|
|
10941
10958
|
l({ type: String })
|
|
10942
|
-
],
|
|
10959
|
+
], F.prototype, "effect", 2);
|
|
10943
10960
|
et([
|
|
10944
10961
|
l({ type: Object })
|
|
10945
|
-
],
|
|
10962
|
+
], F.prototype, "options", 2);
|
|
10946
10963
|
et([
|
|
10947
10964
|
l({ type: Boolean, reflect: !0 })
|
|
10948
|
-
],
|
|
10965
|
+
], F.prototype, "fullScreen", 2);
|
|
10949
10966
|
et([
|
|
10950
10967
|
l({ type: Boolean, reflect: !0 })
|
|
10951
|
-
],
|
|
10968
|
+
], F.prototype, "visible", 2);
|
|
10952
10969
|
et([
|
|
10953
10970
|
l({ type: Object })
|
|
10954
|
-
],
|
|
10971
|
+
], F.prototype, "animation", 2);
|
|
10955
10972
|
et([
|
|
10956
10973
|
$e(".modal-wrapper")
|
|
10957
|
-
],
|
|
10974
|
+
], F.prototype, "modalWrapper", 2);
|
|
10958
10975
|
et([
|
|
10959
10976
|
$e(".modal")
|
|
10960
|
-
],
|
|
10977
|
+
], F.prototype, "modalElement", 2);
|
|
10961
10978
|
et([
|
|
10962
10979
|
xe({ selector: "sonic-modal-close" })
|
|
10963
|
-
],
|
|
10964
|
-
|
|
10980
|
+
], F.prototype, "closeBtn", 2);
|
|
10981
|
+
F = et([
|
|
10965
10982
|
w(Do)
|
|
10966
|
-
],
|
|
10967
|
-
typeof window < "u" && (window.SonicModal =
|
|
10983
|
+
], F);
|
|
10984
|
+
typeof window < "u" && (window.SonicModal = F);
|
|
10968
10985
|
var zh = Object.defineProperty, Rh = Object.getOwnPropertyDescriptor, zt = (r, t, s, i) => {
|
|
10969
10986
|
for (var e = i > 1 ? void 0 : i ? Rh(t, s) : t, o = r.length - 1, n; o >= 0; o--)
|
|
10970
10987
|
(n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
|
|
@@ -10996,7 +11013,7 @@ let At = class extends _ {
|
|
|
10996
11013
|
</div>`}</slot
|
|
10997
11014
|
>
|
|
10998
11015
|
<div class="content">
|
|
10999
|
-
${this.label ? m`<span class="label">${
|
|
11016
|
+
${this.label ? m`<span class="label">${R(this.label)}</span>` : A}
|
|
11000
11017
|
<div>${this.text}<slot></slot></div>
|
|
11001
11018
|
</div>
|
|
11002
11019
|
${this.dismissible ? m`<sonic-button
|
|
@@ -11374,7 +11391,7 @@ let Ct = class extends _ {
|
|
|
11374
11391
|
render() {
|
|
11375
11392
|
return m`<div part="divider">
|
|
11376
11393
|
<span class="text"
|
|
11377
|
-
>${
|
|
11394
|
+
>${R(this.label ? this.label : "")}<slot></slot
|
|
11378
11395
|
></span>
|
|
11379
11396
|
</div>`;
|
|
11380
11397
|
}
|
|
@@ -11578,9 +11595,9 @@ let ns = class extends _ {
|
|
|
11578
11595
|
render() {
|
|
11579
11596
|
return m`
|
|
11580
11597
|
<div class="header-content">
|
|
11581
|
-
${
|
|
11598
|
+
${R(this.label)}
|
|
11582
11599
|
${this.description ? m`<sonic-card-header-description
|
|
11583
|
-
>${
|
|
11600
|
+
>${R(this.description)}</sonic-card-header-description
|
|
11584
11601
|
>` : A}
|
|
11585
11602
|
<slot></slot>
|
|
11586
11603
|
</div>
|
|
@@ -12351,7 +12368,7 @@ window["concorde-directives-data-provider"] = {
|
|
|
12351
12368
|
get: hn,
|
|
12352
12369
|
set: pn
|
|
12353
12370
|
};
|
|
12354
|
-
const ep = N, sp =
|
|
12371
|
+
const ep = N, sp = F;
|
|
12355
12372
|
window["concorde-components"] = window["concorde-components"] || {};
|
|
12356
12373
|
window["concorde-components"] = {
|
|
12357
12374
|
SonicToast: ep,
|