@supersoniks/concorde 3.1.38 → 3.1.40
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 +63 -63
- package/concorde-core.es.js +71 -66
- package/dist/concorde-core.bundle.js +63 -63
- package/dist/concorde-core.es.js +71 -66
- package/docs/assets/index-D1OO2yIk.js +4421 -0
- package/docs/assets/index-DCqvoAAf.css +1 -0
- 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 +5 -0
- package/docs/img/concorde-logo.svg +1 -0
- 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 +93 -0
- package/docs/src/core/components/functional/date/date.md +290 -0
- package/docs/src/core/components/functional/fetch/fetch.md +117 -0
- package/docs/src/core/components/functional/if/if.md +16 -0
- package/docs/src/core/components/functional/list/list.md +199 -0
- package/docs/src/core/components/functional/mix/mix.md +41 -0
- package/docs/src/core/components/functional/queue/queue.md +87 -0
- package/docs/src/core/components/functional/router/router.md +112 -0
- package/docs/src/core/components/functional/sdui/default-library.json +108 -0
- package/docs/src/core/components/functional/sdui/example.json +99 -0
- package/docs/src/core/components/functional/sdui/sdui.md +356 -0
- package/docs/src/core/components/functional/states/states.md +87 -0
- package/docs/src/core/components/functional/submit/submit.md +83 -0
- package/docs/src/core/components/functional/subscriber/subscriber.md +91 -0
- package/docs/src/core/components/functional/value/value.md +35 -0
- package/docs/src/core/components/ui/alert/alert.md +121 -0
- package/docs/src/core/components/ui/badge/badge.md +102 -0
- package/docs/src/core/components/ui/button/button.md +184 -0
- package/docs/src/core/components/ui/captcha/captcha.md +12 -0
- package/docs/src/core/components/ui/card/card.md +96 -0
- package/docs/src/core/components/ui/divider/divider.md +35 -0
- package/docs/src/core/components/ui/form/checkbox/checkbox.md +96 -0
- package/docs/src/core/components/ui/form/fieldset/fieldset.md +129 -0
- package/docs/src/core/components/ui/form/form-actions/form-actions.md +77 -0
- package/docs/src/core/components/ui/form/form-layout/form-layout.md +43 -0
- package/docs/src/core/components/ui/form/input/input.md +168 -0
- package/docs/src/core/components/ui/form/input-autocomplete/input-autocomplete.md +130 -0
- package/docs/src/core/components/ui/form/radio/radio.md +86 -0
- package/docs/src/core/components/ui/form/select/select.md +99 -0
- package/docs/src/core/components/ui/form/textarea/textarea.md +65 -0
- package/docs/src/core/components/ui/group/group.md +75 -0
- package/docs/src/core/components/ui/icon/icon.md +125 -0
- package/docs/src/core/components/ui/icon/icons.json +1 -0
- package/docs/src/core/components/ui/image/image.md +107 -0
- package/docs/src/core/components/ui/link/link.md +43 -0
- package/docs/src/core/components/ui/loader/loader.md +37 -0
- package/docs/src/core/components/ui/menu/menu.md +288 -0
- package/docs/src/core/components/ui/modal/modal.md +123 -0
- package/docs/src/core/components/ui/pop/pop.md +79 -0
- package/docs/src/core/components/ui/progress/progress.md +63 -0
- package/docs/src/core/components/ui/table/table.md +455 -0
- package/docs/src/core/components/ui/tooltip/tooltip.md +82 -0
- package/docs/src/docs/_core-concept/overview.md +57 -0
- package/docs/src/docs/_core-concept/subscriber.md +76 -0
- package/docs/src/docs/_getting-started/concorde-outside.md +143 -0
- package/docs/src/docs/_getting-started/create-a-component.md +137 -0
- package/docs/src/docs/_getting-started/my-first-subscriber.md +174 -0
- package/docs/src/docs/_getting-started/pubsub.md +150 -0
- package/docs/src/docs/_getting-started/start.md +39 -0
- package/docs/src/docs/_getting-started/theming.md +91 -0
- package/docs/src/docs/search/docs-search.json +3887 -0
- package/docs/src/tag-list.json +1 -0
- package/docs/src/tsconfig-model.json +23 -0
- package/docs/src/tsconfig.json +808 -0
- package/docs/svg/regular/plane.svg +1 -0
- package/docs/svg/solid/plane.svg +1 -0
- package/package.json +1 -1
- package/scripts/pre-build.mjs +0 -0
- package/scripts/pre-publish.mjs +0 -0
- package/src/core/_types/types.ts +0 -0
- package/src/core/components/functional/date/date.ts +0 -0
- package/src/core/components/functional/queue/queue.ts +0 -0
- package/src/core/components/functional/router/router.ts +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-messages/alert-messages.ts +0 -0
- package/src/core/components/ui/form/fieldset/fieldset.ts +0 -0
- package/src/core/components/ui/form/input/input.ts +0 -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/input-autocomplete/input-autocomplete.ts +0 -0
- package/src/core/components/ui/form/select/select.ts +0 -0
- package/src/core/components/ui/group/group.ts +0 -0
- package/src/core/components/ui/modal/modal.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/components/ui/ui.ts +0 -0
- package/src/core/core.ts +0 -0
- package/src/core/mixins/FormCheckable.ts +0 -0
- package/src/core/mixins/FormElement.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/PublisherProxy.ts +0 -0
- package/src/core/utils/api.ts +16 -0
- package/src/core/utils/route.ts +0 -0
- package/src/docs/search/docs-search.json +0 -0
- package/src/tsconfig-model.json +0 -0
- package/src/tsconfig.json +0 -0
- package/vite/config.js +0 -0
package/concorde-core.es.js
CHANGED
|
@@ -208,11 +208,11 @@ let di = (kt = class {
|
|
|
208
208
|
_publishInternalMutation_(t = !1) {
|
|
209
209
|
if (this._mutationListeners_.forEach(
|
|
210
210
|
(s) => s()
|
|
211
|
-
), this._is_savable_ && !
|
|
212
|
-
|
|
213
|
-
const s =
|
|
211
|
+
), this._is_savable_ && !T.changed) {
|
|
212
|
+
T.changed = !0, T.saveId++;
|
|
213
|
+
const s = T.saveId;
|
|
214
214
|
setTimeout(
|
|
215
|
-
() =>
|
|
215
|
+
() => T.getInstance().saveToLocalStorage(s),
|
|
216
216
|
1e3
|
|
217
217
|
);
|
|
218
218
|
}
|
|
@@ -387,7 +387,7 @@ let di = (kt = class {
|
|
|
387
387
|
get() {
|
|
388
388
|
if (this._cachedGet_ !== void 0)
|
|
389
389
|
return this._cachedGet_;
|
|
390
|
-
if (
|
|
390
|
+
if (T.modifiedCollectore.length > 0 && T.modifiedCollectore[0].add(this), Object.prototype.hasOwnProperty.call(this._value_, "__value")) {
|
|
391
391
|
const t = this._value_.__value;
|
|
392
392
|
return this._cachedGet_ = t ?? null;
|
|
393
393
|
}
|
|
@@ -401,7 +401,7 @@ let di = (kt = class {
|
|
|
401
401
|
}
|
|
402
402
|
}, kt.instances = /* @__PURE__ */ new Map(), kt.instancesCounter = 0, kt);
|
|
403
403
|
var k;
|
|
404
|
-
let
|
|
404
|
+
let T = (k = class {
|
|
405
405
|
constructor() {
|
|
406
406
|
if (this.enabledLocaStorageProxies = [], this.publishers = /* @__PURE__ */ new Map(), this.localStorageData = {}, this.isLocalStrorageReady = null, this.initialisedData = [], k.instance != null)
|
|
407
407
|
throw "Singleton / use getInstance";
|
|
@@ -563,10 +563,10 @@ let M = (k = class {
|
|
|
563
563
|
const h = await new Response(a.readable).arrayBuffer();
|
|
564
564
|
return new TextDecoder().decode(h);
|
|
565
565
|
}
|
|
566
|
-
}, k.buildDate = "
|
|
566
|
+
}, k.buildDate = "Wed Oct 09 2024 16:10:23 GMT+0200 (Central European Summer Time)", k.changed = !1, k.saving = !1, k.saveId = 0, k.instance = null, k.instances = /* @__PURE__ */ new Map(), k.modifiedCollectore = [], k);
|
|
567
567
|
if (typeof window < "u") {
|
|
568
568
|
const r = window;
|
|
569
|
-
r[gs + "PublisherManager"] = r[gs + "PublisherManager"] ||
|
|
569
|
+
r[gs + "PublisherManager"] = r[gs + "PublisherManager"] || T;
|
|
570
570
|
}
|
|
571
571
|
const Gr = /* @__PURE__ */ new Set([
|
|
572
572
|
"invalidate",
|
|
@@ -827,7 +827,7 @@ let Ds = (E = class {
|
|
|
827
827
|
);
|
|
828
828
|
if (!s)
|
|
829
829
|
return;
|
|
830
|
-
const i =
|
|
830
|
+
const i = T.getInstance().get(s), e = E.getDataBindItems(t), o = [];
|
|
831
831
|
e.forEach((n) => {
|
|
832
832
|
const a = n.bindedVariablesDescriptor, c = n.propertyToUpdate;
|
|
833
833
|
for (const h of a.variables) {
|
|
@@ -1296,7 +1296,7 @@ function l(r) {
|
|
|
1296
1296
|
* Copyright 2017 Google LLC
|
|
1297
1297
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1298
1298
|
*/
|
|
1299
|
-
function
|
|
1299
|
+
function M(r) {
|
|
1300
1300
|
return l({ ...r, state: !0, attribute: !1 });
|
|
1301
1301
|
}
|
|
1302
1302
|
/**
|
|
@@ -1770,11 +1770,11 @@ Vs == null || Vs({ LitElement: w });
|
|
|
1770
1770
|
function Ls(r) {
|
|
1771
1771
|
if (typeof r == "function") {
|
|
1772
1772
|
const t = r;
|
|
1773
|
-
return
|
|
1773
|
+
return T.collectModifiedPublisher(), t(), T.getModifiedPublishers() || /* @__PURE__ */ new Set();
|
|
1774
1774
|
}
|
|
1775
1775
|
if (typeof r == "string") {
|
|
1776
1776
|
const t = r.split("."), s = t.shift() || "";
|
|
1777
|
-
let i =
|
|
1777
|
+
let i = T.get(s);
|
|
1778
1778
|
i = X.traverse(i, t);
|
|
1779
1779
|
const e = /* @__PURE__ */ new Set();
|
|
1780
1780
|
return e.add(i), e;
|
|
@@ -1847,9 +1847,9 @@ const Or = we(xo), Po = Or, $o = Or, Co = (r) => Ls(r).values().next().value.get
|
|
|
1847
1847
|
t && (F.invalidTokens.includes(t) || (F.invalidTokens.push(t), this.token = null));
|
|
1848
1848
|
}
|
|
1849
1849
|
async handleResult(t, s) {
|
|
1850
|
-
var
|
|
1850
|
+
var a;
|
|
1851
1851
|
F.firstCallDoneFlags.set(this.serviceURL, "done"), this.lastResult = t;
|
|
1852
|
-
const i = (
|
|
1852
|
+
const i = (a = t.headers.get("content-type")) == null ? void 0 : a.toLowerCase(), e = t.status;
|
|
1853
1853
|
let o = {};
|
|
1854
1854
|
if (!i || i.indexOf("text/") == 0)
|
|
1855
1855
|
o = { text: await t.text() };
|
|
@@ -1859,7 +1859,7 @@ const Or = we(xo), Po = Or, $o = Or, Co = (r) => Ls(r).values().next().value.get
|
|
|
1859
1859
|
} catch {
|
|
1860
1860
|
o = {};
|
|
1861
1861
|
}
|
|
1862
|
-
|
|
1862
|
+
this.addHTTPResponse && X.isObject(o) && (o._sonic_http_response_ = t), e === 498 && !F.failledTokenUpdates.has(this.serviceURL) && (this.handleInvalidToken(this.token), s.apiMethod === "get" ? o = await this[s.apiMethod](
|
|
1863
1863
|
s.path,
|
|
1864
1864
|
s.additionalHeaders
|
|
1865
1865
|
) : o = await this[s.apiMethod](
|
|
@@ -1867,7 +1867,12 @@ const Or = we(xo), Po = Or, $o = Or, Co = (r) => Ls(r).values().next().value.get
|
|
|
1867
1867
|
s.data,
|
|
1868
1868
|
s.method,
|
|
1869
1869
|
s.additionalHeaders
|
|
1870
|
-
))
|
|
1870
|
+
));
|
|
1871
|
+
const n = T.get("sonic-api");
|
|
1872
|
+
return n.lastResponse = {
|
|
1873
|
+
http: t,
|
|
1874
|
+
processed: o
|
|
1875
|
+
}, o;
|
|
1871
1876
|
}
|
|
1872
1877
|
/**
|
|
1873
1878
|
* Basic auth
|
|
@@ -1915,7 +1920,7 @@ const Or = we(xo), Po = Or, $o = Or, Co = (r) => Ls(r).values().next().value.get
|
|
|
1915
1920
|
*/
|
|
1916
1921
|
async localGet(t, s) {
|
|
1917
1922
|
var f;
|
|
1918
|
-
const i =
|
|
1923
|
+
const i = T.get(t), e = new URLSearchParams(s.split("?")[1] || ""), o = i.get();
|
|
1919
1924
|
let n = [];
|
|
1920
1925
|
Array.isArray(o) ? n = o : n = [o];
|
|
1921
1926
|
const a = [];
|
|
@@ -2149,7 +2154,7 @@ const z = we(Ks), Ys = /* @__PURE__ */ new Map(), Ki = (r) => {
|
|
|
2149
2154
|
return this.useUnsafeHTML = s, this.key !== t && (this.key = t, this.isConnected && this.subscribe(t)), vt;
|
|
2150
2155
|
}
|
|
2151
2156
|
static async callApi(t, s, i = !0, e) {
|
|
2152
|
-
if (await
|
|
2157
|
+
if (await T.getInstance().isLocalStrorageReady, V.firstCall) {
|
|
2153
2158
|
V.firstCall = !1, hi(V.reloadWordings);
|
|
2154
2159
|
const d = Object.keys(V.publisher.get());
|
|
2155
2160
|
for (const f of d)
|
|
@@ -2243,7 +2248,7 @@ const z = we(Ks), Ys = /* @__PURE__ */ new Map(), Ki = (r) => {
|
|
|
2243
2248
|
this.key && this.subscribe(this.key);
|
|
2244
2249
|
}
|
|
2245
2250
|
};
|
|
2246
|
-
V.publisher =
|
|
2251
|
+
V.publisher = T.get("sonic-wording", {
|
|
2247
2252
|
localStorageMode: "enabled"
|
|
2248
2253
|
}), V.firstCall = !0, V.versionProviderHandlers = /* @__PURE__ */ new Map();
|
|
2249
2254
|
let Ve = V;
|
|
@@ -2383,7 +2388,7 @@ const G = (r, t) => {
|
|
|
2383
2388
|
if (!document)
|
|
2384
2389
|
return;
|
|
2385
2390
|
this.publisher && (this.publisher.stopTemplateFilling(this), this.publisher.offInternalMutation(this.requestUpdate), this.onAssign && this.publisher.offAssign(this.onAssign));
|
|
2386
|
-
const n =
|
|
2391
|
+
const n = T.getInstance();
|
|
2387
2392
|
this.dataProvider || (this.dataProvider = this.getAncestorAttributeValue("dataProvider"));
|
|
2388
2393
|
let a = this.dataProvider;
|
|
2389
2394
|
if (!a && this._props && (this.dataProvider = a = "__subscriber__" + e.instanceCounter), a) {
|
|
@@ -2424,7 +2429,7 @@ const G = (r, t) => {
|
|
|
2424
2429
|
], s.prototype, "bindPublisher", 2), St([
|
|
2425
2430
|
l()
|
|
2426
2431
|
], s.prototype, "props", 1), St([
|
|
2427
|
-
|
|
2432
|
+
M()
|
|
2428
2433
|
], s.prototype, "shouldRenderLazy", 2), s;
|
|
2429
2434
|
};
|
|
2430
2435
|
var ko = Object.defineProperty, Lo = (r, t, s, i) => {
|
|
@@ -2747,7 +2752,7 @@ const hs = /* @__PURE__ */ new Map(), ke = (r) => {
|
|
|
2747
2752
|
this.getAttribute("name") && this.getFormPublisher() && (this.setFormPublisherValue(this.getValueForFormPublisher()), this.setFormValueFromPublisher(this.getFormPublisherValue()));
|
|
2748
2753
|
}
|
|
2749
2754
|
getFormPublisher() {
|
|
2750
|
-
return this.formDataProvider || (this.formDataProvider = this.getAncestorAttributeValue("formDataProvider")), this.formDataProvider ?
|
|
2755
|
+
return this.formDataProvider || (this.formDataProvider = this.getAncestorAttributeValue("formDataProvider")), this.formDataProvider ? T.get(this.formDataProvider) : null;
|
|
2751
2756
|
}
|
|
2752
2757
|
setFormPublisherValue(i) {
|
|
2753
2758
|
const e = this.getFormPublisher();
|
|
@@ -3249,7 +3254,7 @@ var Zs = { exports: {} };
|
|
|
3249
3254
|
});
|
|
3250
3255
|
})(Zs, Zs.exports);
|
|
3251
3256
|
var Uo = Zs.exports;
|
|
3252
|
-
const le = /* @__PURE__ */ Ro(Uo), Vo = Zr, Bo = Fo, qo = Ds, Ho = fs, de = et, Wo = rt, Je = X, Ko = Be, tt =
|
|
3257
|
+
const le = /* @__PURE__ */ Ro(Uo), Vo = Zr, Bo = Fo, qo = Ds, Ho = fs, de = et, Wo = rt, Je = X, Ko = Be, tt = T, Yo = Oe, Zo = le;
|
|
3253
3258
|
window["concorde-utils"] = window["concorde-utils"] || {};
|
|
3254
3259
|
window["concorde-utils"] = {
|
|
3255
3260
|
Utils: Vo,
|
|
@@ -3962,10 +3967,10 @@ q([
|
|
|
3962
3967
|
l({ type: Boolean, reflect: !0 })
|
|
3963
3968
|
], j.prototype, "loading", 2);
|
|
3964
3969
|
q([
|
|
3965
|
-
|
|
3970
|
+
M()
|
|
3966
3971
|
], j.prototype, "hasPrefix", 2);
|
|
3967
3972
|
q([
|
|
3968
|
-
|
|
3973
|
+
M()
|
|
3969
3974
|
], j.prototype, "hasSuffix", 2);
|
|
3970
3975
|
q([
|
|
3971
3976
|
ve({ flatten: !0, slot: "prefix" })
|
|
@@ -3998,7 +4003,7 @@ q([
|
|
|
3998
4003
|
l({ type: Boolean, attribute: "data-aria-expanded" })
|
|
3999
4004
|
], j.prototype, "sonicAriaExpanded", 2);
|
|
4000
4005
|
q([
|
|
4001
|
-
|
|
4006
|
+
M()
|
|
4002
4007
|
], j.prototype, "location", 2);
|
|
4003
4008
|
j = q([
|
|
4004
4009
|
_(tn)
|
|
@@ -4474,7 +4479,7 @@ pe.styles = $`
|
|
|
4474
4479
|
}
|
|
4475
4480
|
`;
|
|
4476
4481
|
ts([
|
|
4477
|
-
|
|
4482
|
+
M()
|
|
4478
4483
|
], pe.prototype, "iconText", 2);
|
|
4479
4484
|
ts([
|
|
4480
4485
|
l({ type: String })
|
|
@@ -4790,7 +4795,7 @@ Mt([
|
|
|
4790
4795
|
l({ type: String })
|
|
4791
4796
|
], _t.prototype, "maxHeight", 2);
|
|
4792
4797
|
Mt([
|
|
4793
|
-
|
|
4798
|
+
M()
|
|
4794
4799
|
], _t.prototype, "visible", 2);
|
|
4795
4800
|
_t = Mt([
|
|
4796
4801
|
_(mn)
|
|
@@ -5874,11 +5879,11 @@ let st = class extends G(w) {
|
|
|
5874
5879
|
if (!(o == this.searchHash && !this.isFirstRequest)) {
|
|
5875
5880
|
this.searchHash = o;
|
|
5876
5881
|
for (const a of this.listDataProviders)
|
|
5877
|
-
|
|
5882
|
+
T.delete(a);
|
|
5878
5883
|
this.listDataProviders = [], clearTimeout(this.filterTimeoutId), this.filterTimeoutId = setTimeout(
|
|
5879
5884
|
async () => {
|
|
5880
5885
|
const a = this.resultCount;
|
|
5881
|
-
this.props = null, this.requestId++, this.resultCount = a, await
|
|
5886
|
+
this.props = null, this.requestId++, this.resultCount = a, await T.getInstance().isLocalStrorageReady, window.requestAnimationFrame(() => this.next());
|
|
5882
5887
|
},
|
|
5883
5888
|
this.isFirstRequest ? 0 : this.filterTimeoutMs
|
|
5884
5889
|
), this.isFirstRequest = !1;
|
|
@@ -5888,13 +5893,13 @@ let st = class extends G(w) {
|
|
|
5888
5893
|
disconnectedCallback() {
|
|
5889
5894
|
var r;
|
|
5890
5895
|
for (const t of this.listDataProviders)
|
|
5891
|
-
|
|
5896
|
+
T.delete(t), this.listDataProviders = [];
|
|
5892
5897
|
(r = this.filterPublisher) == null || r.offInternalMutation(this.updateFilteredContent), this.props = null, this.limit = 5, this.offset = 0, this.resultCount = 0, this.searchHash = "", this.requestId = 0, this.isFirstRequest = !0, this.nextHadEvent = !1, this.publisher.set({}), super.disconnectedCallback();
|
|
5893
5898
|
}
|
|
5894
5899
|
async connectedCallback() {
|
|
5895
5900
|
this.instanceId = st.instanceCounter++, this.localStorage = this.getAttribute("localStorage") || this.localStorage, this.filterTimeoutMs = parseInt(
|
|
5896
5901
|
this.getAttribute("filterTimeoutMs") || "400"
|
|
5897
|
-
), this.removeAttribute("localStorage"), this.noShadowDom = "", this.defferedDebug = this.hasAttribute("debug") || null, this.dataProvider || (this.dataProvider = this.dataProviderExpression || "sonic-queue-" + this.instanceId + "-" + Math.random().toString(36).substring(7)), this.dataProviderExpression || (this.dataProviderExpression = de.getAncestorAttributeValue(this.parentElement, "dataProvider") || ""), super.connectedCallback(), this.publisher.set({}), this.key = this.getAttribute("key"), await
|
|
5902
|
+
), this.removeAttribute("localStorage"), this.noShadowDom = "", this.defferedDebug = this.hasAttribute("debug") || null, this.dataProvider || (this.dataProvider = this.dataProviderExpression || "sonic-queue-" + this.instanceId + "-" + Math.random().toString(36).substring(7)), this.dataProviderExpression || (this.dataProviderExpression = de.getAncestorAttributeValue(this.parentElement, "dataProvider") || ""), super.connectedCallback(), this.publisher.set({}), this.key = this.getAttribute("key"), await T.getInstance().isLocalStrorageReady, this.templates || (this.templates = Array.from(
|
|
5898
5903
|
this.querySelectorAll("template")
|
|
5899
5904
|
)), this.lastRequestTime = (/* @__PURE__ */ new Date()).getTime(), this.configFilter();
|
|
5900
5905
|
}
|
|
@@ -5905,7 +5910,7 @@ let st = class extends G(w) {
|
|
|
5905
5910
|
this.next();
|
|
5906
5911
|
return;
|
|
5907
5912
|
}
|
|
5908
|
-
this.filterPublisher =
|
|
5913
|
+
this.filterPublisher = T.getInstance().get(r), (t = this.filterPublisher) == null || t.onInternalMutation(this.updateFilteredContent);
|
|
5909
5914
|
}
|
|
5910
5915
|
updated(r) {
|
|
5911
5916
|
(Math.abs(this.scrollX - window.scrollX) > 10 || Math.abs(this.scrollY - window.scrollY) > 10) && window.scrollTo(this.scrollX, this.scrollY), window.requestAnimationFrame(() => {
|
|
@@ -6049,7 +6054,7 @@ let Yt = class extends G(w) {
|
|
|
6049
6054
|
if (this.disabled || r instanceof KeyboardEvent && r.key !== "Enter")
|
|
6050
6055
|
return;
|
|
6051
6056
|
r instanceof MouseEvent && r.stopPropagation();
|
|
6052
|
-
const t =
|
|
6057
|
+
const t = T.getInstance().get(
|
|
6053
6058
|
this.getAncestorAttributeValue("formDataProvider")
|
|
6054
6059
|
);
|
|
6055
6060
|
if (t.isFormValid = !0, t.invalidateForm(), !t.isFormValid.get())
|
|
@@ -6062,7 +6067,7 @@ let Yt = class extends G(w) {
|
|
|
6062
6067
|
delete o.isFormValid;
|
|
6063
6068
|
const n = this.getAncestorAttributeValue(
|
|
6064
6069
|
"headersDataProvider"
|
|
6065
|
-
), a = n ?
|
|
6070
|
+
), a = n ? T.getInstance().get(n) : null;
|
|
6066
6071
|
let c = {};
|
|
6067
6072
|
a && (c = a.get());
|
|
6068
6073
|
let h = null;
|
|
@@ -6105,7 +6110,7 @@ let Yt = class extends G(w) {
|
|
|
6105
6110
|
"clearedDataOnSuccess"
|
|
6106
6111
|
);
|
|
6107
6112
|
P && P.split(" ").forEach(
|
|
6108
|
-
(as) =>
|
|
6113
|
+
(as) => T.get(as).set({})
|
|
6109
6114
|
);
|
|
6110
6115
|
const S = this.hasAttribute("usernameKey") ? this.getAttribute("usernameKey") : "username", D = this.hasAttribute("passwordKey") ? this.getAttribute("passwordKey") : "password";
|
|
6111
6116
|
(At = (W = this.api) == null ? void 0 : W.lastResult) != null && At.ok && o[S] && o[D] && this.saveCredentials(o[S], o[D]), this.submitResultKey && (h = X.traverse(
|
|
@@ -6116,7 +6121,7 @@ let Yt = class extends G(w) {
|
|
|
6116
6121
|
const p = this.getAncestorAttributeValue(
|
|
6117
6122
|
"submitResultDataProvider"
|
|
6118
6123
|
);
|
|
6119
|
-
p &&
|
|
6124
|
+
p && T.get(p).set(h), this.disabled = !1, this.dispatchEvent(
|
|
6120
6125
|
new CustomEvent("submit", {
|
|
6121
6126
|
detail: h,
|
|
6122
6127
|
bubbles: !0,
|
|
@@ -6141,7 +6146,7 @@ let Yt = class extends G(w) {
|
|
|
6141
6146
|
const r = de.getClosestForm(this);
|
|
6142
6147
|
if (!r)
|
|
6143
6148
|
return;
|
|
6144
|
-
const t = this.getAncestorAttributeValue("formDataProvider"), s =
|
|
6149
|
+
const t = this.getAncestorAttributeValue("formDataProvider"), s = T.get(t).get();
|
|
6145
6150
|
for (const e in s) {
|
|
6146
6151
|
if (e == "isFormValid")
|
|
6147
6152
|
continue;
|
|
@@ -6223,7 +6228,7 @@ let xs = class extends Xe(w) {
|
|
|
6223
6228
|
return this._location;
|
|
6224
6229
|
}
|
|
6225
6230
|
willUpdate(r) {
|
|
6226
|
-
super.willUpdate(r)
|
|
6231
|
+
super.willUpdate(r);
|
|
6227
6232
|
}
|
|
6228
6233
|
render() {
|
|
6229
6234
|
const r = [];
|
|
@@ -8011,19 +8016,19 @@ H([
|
|
|
8011
8016
|
be("input")
|
|
8012
8017
|
], B.prototype, "input", 2);
|
|
8013
8018
|
H([
|
|
8014
|
-
|
|
8019
|
+
M()
|
|
8015
8020
|
], B.prototype, "hasDescription", 2);
|
|
8016
8021
|
H([
|
|
8017
|
-
|
|
8022
|
+
M()
|
|
8018
8023
|
], B.prototype, "hasLabel", 2);
|
|
8019
8024
|
H([
|
|
8020
|
-
|
|
8025
|
+
M()
|
|
8021
8026
|
], B.prototype, "hasSuffix", 2);
|
|
8022
8027
|
H([
|
|
8023
|
-
|
|
8028
|
+
M()
|
|
8024
8029
|
], B.prototype, "hasPrefix", 2);
|
|
8025
8030
|
H([
|
|
8026
|
-
|
|
8031
|
+
M()
|
|
8027
8032
|
], B.prototype, "isPassword", 2);
|
|
8028
8033
|
B = H([
|
|
8029
8034
|
_(pl)
|
|
@@ -8212,7 +8217,7 @@ ot.styles = [
|
|
|
8212
8217
|
`
|
|
8213
8218
|
];
|
|
8214
8219
|
te([
|
|
8215
|
-
|
|
8220
|
+
M()
|
|
8216
8221
|
], ot.prototype, "open", 2);
|
|
8217
8222
|
te([
|
|
8218
8223
|
be("slot:not([name=content])")
|
|
@@ -8511,10 +8516,10 @@ gt([
|
|
|
8511
8516
|
ct({ slot: "prefix", flatten: !0 })
|
|
8512
8517
|
], nt.prototype, "slotInputPrefixNodes", 2);
|
|
8513
8518
|
gt([
|
|
8514
|
-
|
|
8519
|
+
M()
|
|
8515
8520
|
], nt.prototype, "hasInputPrefix", 2);
|
|
8516
8521
|
gt([
|
|
8517
|
-
|
|
8522
|
+
M()
|
|
8518
8523
|
], nt.prototype, "isPopVisible", 2);
|
|
8519
8524
|
nt = gt([
|
|
8520
8525
|
_("sonic-input-autocomplete")
|
|
@@ -8572,22 +8577,22 @@ pt([
|
|
|
8572
8577
|
l()
|
|
8573
8578
|
], at.prototype, "minChars", 2);
|
|
8574
8579
|
pt([
|
|
8575
|
-
|
|
8580
|
+
M()
|
|
8576
8581
|
], at.prototype, "hasNoChar", 2);
|
|
8577
8582
|
pt([
|
|
8578
|
-
|
|
8583
|
+
M()
|
|
8579
8584
|
], at.prototype, "hasEnoughChars", 2);
|
|
8580
8585
|
pt([
|
|
8581
|
-
|
|
8586
|
+
M()
|
|
8582
8587
|
], at.prototype, "hasMinuscule", 2);
|
|
8583
8588
|
pt([
|
|
8584
|
-
|
|
8589
|
+
M()
|
|
8585
8590
|
], at.prototype, "hasMajuscule", 2);
|
|
8586
8591
|
pt([
|
|
8587
|
-
|
|
8592
|
+
M()
|
|
8588
8593
|
], at.prototype, "hasNumber", 2);
|
|
8589
8594
|
pt([
|
|
8590
|
-
|
|
8595
|
+
M()
|
|
8591
8596
|
], at.prototype, "hasSpecialChar", 2);
|
|
8592
8597
|
pt([
|
|
8593
8598
|
l()
|
|
@@ -8668,10 +8673,10 @@ xe([
|
|
|
8668
8673
|
l()
|
|
8669
8674
|
], Qt.prototype, "descriptionWhenNotEqual", 2);
|
|
8670
8675
|
xe([
|
|
8671
|
-
|
|
8676
|
+
M()
|
|
8672
8677
|
], Qt.prototype, "areEqual", 2);
|
|
8673
8678
|
xe([
|
|
8674
|
-
|
|
8679
|
+
M()
|
|
8675
8680
|
], Qt.prototype, "hasNoChar", 2);
|
|
8676
8681
|
Qt = xe([
|
|
8677
8682
|
_(Sl)
|
|
@@ -9164,16 +9169,16 @@ Q([
|
|
|
9164
9169
|
ct({ slot: "prefix", flatten: !0 })
|
|
9165
9170
|
], K.prototype, "slotPrefixNodes", 2);
|
|
9166
9171
|
Q([
|
|
9167
|
-
|
|
9172
|
+
M()
|
|
9168
9173
|
], K.prototype, "hasDescription", 2);
|
|
9169
9174
|
Q([
|
|
9170
|
-
|
|
9175
|
+
M()
|
|
9171
9176
|
], K.prototype, "hasLabel", 2);
|
|
9172
9177
|
Q([
|
|
9173
|
-
|
|
9178
|
+
M()
|
|
9174
9179
|
], K.prototype, "hasSuffix", 2);
|
|
9175
9180
|
Q([
|
|
9176
|
-
|
|
9181
|
+
M()
|
|
9177
9182
|
], K.prototype, "hasPrefix", 2);
|
|
9178
9183
|
K = Q([
|
|
9179
9184
|
_(Il)
|
|
@@ -9309,10 +9314,10 @@ mt([
|
|
|
9309
9314
|
ct({ slot: "description", flatten: !0 })
|
|
9310
9315
|
], lt.prototype, "slotDescriptionNodes", 2);
|
|
9311
9316
|
mt([
|
|
9312
|
-
|
|
9317
|
+
M()
|
|
9313
9318
|
], lt.prototype, "hasDescription", 2);
|
|
9314
9319
|
mt([
|
|
9315
|
-
|
|
9320
|
+
M()
|
|
9316
9321
|
], lt.prototype, "hasLabel", 2);
|
|
9317
9322
|
lt = mt([
|
|
9318
9323
|
_(Rl)
|
|
@@ -9752,10 +9757,10 @@ ee([
|
|
|
9752
9757
|
ct({ slot: "description", flatten: !0 })
|
|
9753
9758
|
], Et.prototype, "slotDescriptionNodes", 2);
|
|
9754
9759
|
ee([
|
|
9755
|
-
|
|
9760
|
+
M()
|
|
9756
9761
|
], Et.prototype, "hasDescription", 2);
|
|
9757
9762
|
ee([
|
|
9758
|
-
|
|
9763
|
+
M()
|
|
9759
9764
|
], Et.prototype, "hasLabel", 2);
|
|
9760
9765
|
Et = ee([
|
|
9761
9766
|
_(rc)
|
|
@@ -10171,7 +10176,7 @@ wt([
|
|
|
10171
10176
|
ve({ slot: "more", selector: "*" })
|
|
10172
10177
|
], dt.prototype, "moreElements", 2);
|
|
10173
10178
|
wt([
|
|
10174
|
-
|
|
10179
|
+
M()
|
|
10175
10180
|
], dt.prototype, "hasMoreElements", 2);
|
|
10176
10181
|
dt = wt([
|
|
10177
10182
|
_(hc)
|
|
@@ -11990,7 +11995,7 @@ function qh(r) {
|
|
|
11990
11995
|
return function() {
|
|
11991
11996
|
};
|
|
11992
11997
|
const s = t.shift() || "";
|
|
11993
|
-
let i =
|
|
11998
|
+
let i = T.get(s);
|
|
11994
11999
|
return i = Je.traverse(i, t), function(e, o) {
|
|
11995
12000
|
if (!e)
|
|
11996
12001
|
return;
|
|
@@ -12011,7 +12016,7 @@ function Hh(...r) {
|
|
|
12011
12016
|
if (o.length == 0)
|
|
12012
12017
|
continue;
|
|
12013
12018
|
const n = o.shift() || "";
|
|
12014
|
-
let a =
|
|
12019
|
+
let a = T.get(n);
|
|
12015
12020
|
a = Je.traverse(a, o);
|
|
12016
12021
|
const c = /* @__PURE__ */ new Set(), h = (d) => {
|
|
12017
12022
|
t[i] = d, t.filter((f) => f !== null).length == r.length && c.forEach((f) => f(...t));
|