@melodicdev/components 1.0.15 → 1.0.17
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/assets/melodic-components.js +14 -45
- package/assets/melodic-components.js.map +1 -1
- package/assets/melodic-components.min.js +162 -177
- package/lib/components/data-display/table/table.styles.d.ts.map +1 -1
- package/lib/components/data-display/table/table.styles.js +1 -0
- package/lib/components/overlays/dialog/dialog-ref.class.d.ts +1 -2
- package/lib/components/overlays/dialog/dialog-ref.class.d.ts.map +1 -1
- package/lib/components/overlays/dialog/dialog-ref.class.js +0 -7
- package/lib/components/overlays/dialog/dialog.component.d.ts +2 -3
- package/lib/components/overlays/dialog/dialog.component.d.ts.map +1 -1
- package/lib/components/overlays/dialog/dialog.component.js +0 -8
- package/lib/components/overlays/dialog/dialog.service.d.ts +0 -2
- package/lib/components/overlays/dialog/dialog.service.d.ts.map +1 -1
- package/lib/components/overlays/dialog/dialog.service.js +0 -42
- package/package.json +1 -1
|
@@ -194,17 +194,17 @@ async function bs(e = {}) {
|
|
|
194
194
|
};
|
|
195
195
|
return e.onReady && e.onReady(), t && console.log("[Melodic] Bootstrap complete"), L.bindValue("IMelodicApp", a), a;
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function Le(e, t) {
|
|
198
198
|
e.renderInto(t);
|
|
199
199
|
}
|
|
200
200
|
const wr = Symbol("melodic.signal"), Gr = (e) => typeof e == "function" && wr in e;
|
|
201
|
-
var
|
|
201
|
+
var Ve = "melodic-styles", Ur = `style[${Ve}], link[rel="stylesheet"][${Ve}]`, ze = [], ge = null;
|
|
202
202
|
const Yr = (e) => {
|
|
203
203
|
if (Jr()) {
|
|
204
|
-
|
|
204
|
+
je(e);
|
|
205
205
|
return;
|
|
206
206
|
}
|
|
207
|
-
ge || (ge = Xr()), ge.then(() =>
|
|
207
|
+
ge || (ge = Xr()), ge.then(() => je(e));
|
|
208
208
|
};
|
|
209
209
|
var Xr = async () => {
|
|
210
210
|
const e = document.querySelectorAll(Ur);
|
|
@@ -219,16 +219,16 @@ var Xr = async () => {
|
|
|
219
219
|
}), Fe(Array.from(t.sheet?.cssRules ?? []).map((r) => r.cssText).join(`
|
|
220
220
|
`)));
|
|
221
221
|
}
|
|
222
|
-
},
|
|
223
|
-
const t = e.adoptedStyleSheets ?? [], r =
|
|
222
|
+
}, je = (e) => {
|
|
223
|
+
const t = e.adoptedStyleSheets ?? [], r = ze.filter((l) => !t.includes(l));
|
|
224
224
|
r.length > 0 && (e.adoptedStyleSheets = [...t, ...r]);
|
|
225
225
|
}, Fe = (e) => {
|
|
226
226
|
const t = e.trim();
|
|
227
227
|
if (t.length > 0) {
|
|
228
228
|
const r = new CSSStyleSheet();
|
|
229
|
-
r.replaceSync(t),
|
|
229
|
+
r.replaceSync(t), ze.push(r);
|
|
230
230
|
}
|
|
231
|
-
}, Jr = () =>
|
|
231
|
+
}, Jr = () => ze.length > 0, Qr = class extends HTMLElement {
|
|
232
232
|
constructor(e, t) {
|
|
233
233
|
super(), this._unsubscribers = [], this._renderScheduled = !1, this._booleanProperties = /* @__PURE__ */ new Set(), this._meta = e, this._component = t, this._component.elementRef = this, this._root = this.attachShadow({ mode: "open" }), Yr(this._root), this._style = this.renderStyles(), this.observe(), this._component.onInit && this._component.onInit();
|
|
234
234
|
}
|
|
@@ -262,10 +262,10 @@ var Xr = async () => {
|
|
|
262
262
|
}
|
|
263
263
|
renderStyles() {
|
|
264
264
|
const e = document.createElement("style");
|
|
265
|
-
return this._meta.styles &&
|
|
265
|
+
return this._meta.styles && Le(this._meta.styles(), e), this._root.appendChild(e);
|
|
266
266
|
}
|
|
267
267
|
render() {
|
|
268
|
-
this._meta.template && (
|
|
268
|
+
this._meta.template && (Le(this._meta.template(this._component, this.getAttributeValues()), this._root), this._style.parentNode !== this._root && this._root.appendChild(this._style)), this._component.onRender !== void 0 && this._component.onRender();
|
|
269
269
|
}
|
|
270
270
|
scheduleRender() {
|
|
271
271
|
this._renderScheduled || (this._renderScheduled = !0, queueMicrotask(() => {
|
|
@@ -375,19 +375,19 @@ function _s(e) {
|
|
|
375
375
|
t.bindValue(tl, e);
|
|
376
376
|
};
|
|
377
377
|
}
|
|
378
|
-
var
|
|
378
|
+
var Ae = class $r extends Error {
|
|
379
379
|
constructor(t, r, l) {
|
|
380
380
|
super(t), this.config = r, this.code = l, this.name = "HttpBaseError", Object.setPrototypeOf(this, $r.prototype);
|
|
381
381
|
}
|
|
382
|
-
},
|
|
382
|
+
}, qe = class Cr extends Ae {
|
|
383
383
|
constructor(t, r, l) {
|
|
384
384
|
super(t, l, `HTTP_${r.status}`), this.response = r, this.name = "HttpError", Object.setPrototypeOf(this, Cr.prototype);
|
|
385
385
|
}
|
|
386
|
-
}, rl = class Sr extends
|
|
386
|
+
}, rl = class Sr extends Ae {
|
|
387
387
|
constructor(t, r) {
|
|
388
388
|
super(t, r, "NETWORK_ERROR"), this.name = "NetworkError", Object.setPrototypeOf(this, Sr.prototype);
|
|
389
389
|
}
|
|
390
|
-
}, ll = class Er extends
|
|
390
|
+
}, ll = class Er extends Ae {
|
|
391
391
|
constructor(t, r) {
|
|
392
392
|
super(t, r, "ABORTED"), this.name = "AbortError", Object.setPrototypeOf(this, Er.prototype);
|
|
393
393
|
}
|
|
@@ -439,7 +439,7 @@ var ze = class $r extends Error {
|
|
|
439
439
|
}
|
|
440
440
|
return t;
|
|
441
441
|
}
|
|
442
|
-
},
|
|
442
|
+
}, Be = class {
|
|
443
443
|
constructor(e) {
|
|
444
444
|
this._requestManager = new al(), this._interceptors = {
|
|
445
445
|
request: [],
|
|
@@ -535,10 +535,10 @@ var ze = class $r extends Error {
|
|
|
535
535
|
headers: r.headers,
|
|
536
536
|
config: e
|
|
537
537
|
};
|
|
538
|
-
if (!r.ok) throw new
|
|
538
|
+
if (!r.ok) throw new qe(`HTTP Error: ${r.status} ${r.statusText}`, l, e);
|
|
539
539
|
return l;
|
|
540
540
|
}).catch((r) => {
|
|
541
|
-
throw r instanceof
|
|
541
|
+
throw r instanceof qe ? r : r instanceof Error && r.name === "AbortError" ? new ll("Request aborted", e) : new rl((r instanceof Error ? r.message : "Network error") || "Network error", e);
|
|
542
542
|
});
|
|
543
543
|
return e.deduplicate === !0 && this._requestManager.addPendingRequest(e, t), await t;
|
|
544
544
|
}
|
|
@@ -607,8 +607,8 @@ var ze = class $r extends Error {
|
|
|
607
607
|
};
|
|
608
608
|
function ys(e, t) {
|
|
609
609
|
return (r) => {
|
|
610
|
-
const l = new
|
|
611
|
-
r.bindValue(
|
|
610
|
+
const l = new Be(e);
|
|
611
|
+
r.bindValue(Be, l), t?.request && t.request.forEach((a) => {
|
|
612
612
|
l.interceptors.request(a);
|
|
613
613
|
}), t?.response && t.response.forEach((a) => {
|
|
614
614
|
l.interceptors.response(a);
|
|
@@ -624,7 +624,7 @@ function ws(e) {
|
|
|
624
624
|
function ks(e) {
|
|
625
625
|
return { resolve: e };
|
|
626
626
|
}
|
|
627
|
-
var
|
|
627
|
+
var _e = class {
|
|
628
628
|
constructor(e, t) {
|
|
629
629
|
this._reEscape = /[-[\]{}()+?.,\\^$|#\s]/g, this._reParam = /([:*])(\w+)/g, this._names = [], this._isWildcard = !1, this._route = e, this._rules = t, this._isWildcard = e.includes("*");
|
|
630
630
|
let r = this._route.replace(this._reEscape, "\\$&");
|
|
@@ -689,7 +689,7 @@ var $s = class extends CustomEvent {
|
|
|
689
689
|
};
|
|
690
690
|
function Rr(e, t, r, l, a) {
|
|
691
691
|
for (const o of e) {
|
|
692
|
-
const s = new
|
|
692
|
+
const s = new _e(o.path);
|
|
693
693
|
if (o.redirectTo && o.path === t) return {
|
|
694
694
|
matches: l,
|
|
695
695
|
params: a,
|
|
@@ -737,7 +737,7 @@ function Rr(e, t, r, l, a) {
|
|
|
737
737
|
isExactMatch: !1
|
|
738
738
|
};
|
|
739
739
|
}
|
|
740
|
-
function
|
|
740
|
+
function ye(e, t, r = "") {
|
|
741
741
|
const l = Rr(e, t.startsWith("/") ? t.slice(1) : t, r, [], {});
|
|
742
742
|
return {
|
|
743
743
|
matches: l.matches,
|
|
@@ -761,11 +761,11 @@ function sl(e, t, r = {}) {
|
|
|
761
761
|
function a(o, s) {
|
|
762
762
|
for (const n of o) {
|
|
763
763
|
if (n.name === s) {
|
|
764
|
-
const c = new
|
|
764
|
+
const c = new _e(n.path);
|
|
765
765
|
return l.push(c.stringify(r)), !0;
|
|
766
766
|
}
|
|
767
767
|
if (n.children) {
|
|
768
|
-
const c = new
|
|
768
|
+
const c = new _e(n.path).stringify(r);
|
|
769
769
|
if (a(n.children, s))
|
|
770
770
|
return l.unshift(c), !0;
|
|
771
771
|
}
|
|
@@ -780,7 +780,7 @@ function g(e, t, r, l) {
|
|
|
780
780
|
else for (var n = e.length - 1; n >= 0; n--) (s = e[n]) && (o = (a < 3 ? s(o) : a > 3 ? s(t, r, o) : s(t, r)) || o);
|
|
781
781
|
return a > 3 && o && Object.defineProperty(t, r, o), o;
|
|
782
782
|
}
|
|
783
|
-
var
|
|
783
|
+
var xe = class {
|
|
784
784
|
constructor() {
|
|
785
785
|
this._matchStack = [], this._contexts = /* @__PURE__ */ new Map(), this._currentMatchResult = null, this._resolvedData = /* @__PURE__ */ new Map();
|
|
786
786
|
}
|
|
@@ -852,11 +852,11 @@ var ye = class {
|
|
|
852
852
|
return this._resolvedData.get(t);
|
|
853
853
|
}
|
|
854
854
|
};
|
|
855
|
-
|
|
856
|
-
function
|
|
855
|
+
xe = g([Z()], xe);
|
|
856
|
+
function j(e, t) {
|
|
857
857
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function") return Reflect.metadata(e, t);
|
|
858
858
|
}
|
|
859
|
-
var
|
|
859
|
+
var De = (e, t, r, l) => new PopStateEvent("History", { state: {
|
|
860
860
|
type: e,
|
|
861
861
|
data: t,
|
|
862
862
|
url: l,
|
|
@@ -875,7 +875,7 @@ history.pushState = (e, t, r) => {
|
|
|
875
875
|
t,
|
|
876
876
|
r
|
|
877
877
|
]);
|
|
878
|
-
const l = new CustomEvent("NavigationEvent", { detail:
|
|
878
|
+
const l = new CustomEvent("NavigationEvent", { detail: De("push", e, t, r) });
|
|
879
879
|
window.dispatchEvent(l);
|
|
880
880
|
};
|
|
881
881
|
var dl = history.replaceState;
|
|
@@ -885,12 +885,12 @@ history.replaceState = (e, t, r) => {
|
|
|
885
885
|
t,
|
|
886
886
|
r
|
|
887
887
|
]);
|
|
888
|
-
const l = new CustomEvent("NavigationEvent", { detail:
|
|
888
|
+
const l = new CustomEvent("NavigationEvent", { detail: De("replace", e, t, r) });
|
|
889
889
|
window.dispatchEvent(l);
|
|
890
890
|
};
|
|
891
891
|
var V = class {
|
|
892
892
|
constructor() {
|
|
893
|
-
this._routes = [], this._currentMatches = [], this._resolversExecutedForPath = null, this._currentPath = `${window.location.pathname}${window.location.search}`, this._contextService = new
|
|
893
|
+
this._routes = [], this._currentMatches = [], this._resolversExecutedForPath = null, this._currentPath = `${window.location.pathname}${window.location.search}`, this._contextService = new xe(), window.addEventListener("NavigationEvent", (t) => {
|
|
894
894
|
this._route = t.detail.state;
|
|
895
895
|
}), window.addEventListener("popstate", (t) => {
|
|
896
896
|
this.handlePopState(t);
|
|
@@ -927,7 +927,7 @@ var V = class {
|
|
|
927
927
|
return this._contextService.getMergedResolvedData(t);
|
|
928
928
|
}
|
|
929
929
|
matchPath(t) {
|
|
930
|
-
return
|
|
930
|
+
return ye(this._routes, t);
|
|
931
931
|
}
|
|
932
932
|
setCurrentMatches(t) {
|
|
933
933
|
this._currentMatches = t.matches, this._contextService.setMatchResult(t);
|
|
@@ -1083,7 +1083,7 @@ var V = class {
|
|
|
1083
1083
|
return;
|
|
1084
1084
|
}
|
|
1085
1085
|
this._currentPath = r;
|
|
1086
|
-
const a = new CustomEvent("NavigationEvent", { detail:
|
|
1086
|
+
const a = new CustomEvent("NavigationEvent", { detail: De("push", t.state, "", window.location.pathname) });
|
|
1087
1087
|
window.dispatchEvent(a);
|
|
1088
1088
|
}
|
|
1089
1089
|
async executeResolver(t, r) {
|
|
@@ -1100,7 +1100,7 @@ var V = class {
|
|
|
1100
1100
|
};
|
|
1101
1101
|
}
|
|
1102
1102
|
};
|
|
1103
|
-
V = g([Z(),
|
|
1103
|
+
V = g([Z(), j("design:paramtypes", [])], V);
|
|
1104
1104
|
var W = /* @__PURE__ */ new Map(), Tr = (e) => {
|
|
1105
1105
|
if (W.has(e)) return W.get(e);
|
|
1106
1106
|
const t = e.toLowerCase();
|
|
@@ -1124,10 +1124,10 @@ function Ts() {
|
|
|
1124
1124
|
function oe(e) {
|
|
1125
1125
|
return typeof e == "object" && e !== null && "__directive" in e;
|
|
1126
1126
|
}
|
|
1127
|
-
var pe = `m${Math.random().toString(36).slice(2, 9)}`, ml = `<!--${pe}-->`,
|
|
1128
|
-
function
|
|
1129
|
-
let t =
|
|
1130
|
-
return t === void 0 && (t = e.join(pe),
|
|
1127
|
+
var pe = `m${Math.random().toString(36).slice(2, 9)}`, ml = `<!--${pe}-->`, Ie = `__${pe}_`, He = new RegExp(`${Ie}(\\d+)__`, "g"), ie = (e) => `${Ie}${e}__`, Y = /* @__PURE__ */ new Map(), Ke = /* @__PURE__ */ new WeakMap();
|
|
1128
|
+
function be(e) {
|
|
1129
|
+
let t = Ke.get(e);
|
|
1130
|
+
return t === void 0 && (t = e.join(pe), Ke.set(e, t)), t;
|
|
1131
1131
|
}
|
|
1132
1132
|
var ul = class X {
|
|
1133
1133
|
constructor(t, r) {
|
|
@@ -1138,11 +1138,11 @@ var ul = class X {
|
|
|
1138
1138
|
* Returns the rendered nodes directly.
|
|
1139
1139
|
*/
|
|
1140
1140
|
renderOnce(t) {
|
|
1141
|
-
const r =
|
|
1141
|
+
const r = be(this.strings), l = this.getTemplate(r), a = l.element.content.cloneNode(!0), o = this.prepareParts(a, l);
|
|
1142
1142
|
return this.commit(o), t.appendChild(a), t.__parts = o, t.__templateKey = r, Array.from(t.childNodes);
|
|
1143
1143
|
}
|
|
1144
1144
|
renderInto(t) {
|
|
1145
|
-
const r =
|
|
1145
|
+
const r = be(this.strings), { element: l } = this.getTemplate(r), a = t.__templateKey;
|
|
1146
1146
|
if (a && a !== r) {
|
|
1147
1147
|
const s = t.__parts;
|
|
1148
1148
|
s && this.cleanupParts(s), delete t.__parts;
|
|
@@ -1263,7 +1263,7 @@ var ul = class X {
|
|
|
1263
1263
|
name: R.name.slice(1),
|
|
1264
1264
|
staticValue: R.value
|
|
1265
1265
|
});
|
|
1266
|
-
else if (R.value.includes(
|
|
1266
|
+
else if (R.value.includes(Ie)) {
|
|
1267
1267
|
const A = this.parseAttributeValue(R.value);
|
|
1268
1268
|
if (A) {
|
|
1269
1269
|
const E = A.indices.length > 1 || A.strings.some((q) => q.length > 0);
|
|
@@ -1384,7 +1384,7 @@ var ul = class X {
|
|
|
1384
1384
|
parseAttributeValue(t) {
|
|
1385
1385
|
const r = [], l = [];
|
|
1386
1386
|
let a = 0, o;
|
|
1387
|
-
for (
|
|
1387
|
+
for (He.lastIndex = 0; (o = He.exec(t)) !== null; )
|
|
1388
1388
|
r.push(t.slice(a, o.index)), l.push(Number(o[1])), a = o.index + o[0].length;
|
|
1389
1389
|
return l.length === 0 ? null : (r.push(t.slice(a)), {
|
|
1390
1390
|
strings: r,
|
|
@@ -1423,12 +1423,26 @@ var ul = class X {
|
|
|
1423
1423
|
}
|
|
1424
1424
|
}
|
|
1425
1425
|
/**
|
|
1426
|
-
* Renders a nested TemplateResult into a node part
|
|
1426
|
+
* Renders a nested TemplateResult into a node part.
|
|
1427
|
+
*
|
|
1428
|
+
* Uses a persistent DocumentFragment container to enable in-place updates
|
|
1429
|
+
* when the template structure hasn't changed (same tagged template literal).
|
|
1430
|
+
* This follows the same pattern as the `when` directive — the fragment holds
|
|
1431
|
+
* __parts/__templateKey after its children move to the real DOM, so subsequent
|
|
1432
|
+
* renderInto() calls diff and update existing nodes instead of recreating them.
|
|
1427
1433
|
*/
|
|
1428
1434
|
renderNestedTemplate(t, r) {
|
|
1429
|
-
this.ensureMarkers(t),
|
|
1435
|
+
if (this.ensureMarkers(t), t.nestedContainer) {
|
|
1436
|
+
if (t.nestedContainer.__templateKey === be(r.strings)) {
|
|
1437
|
+
r.renderInto(t.nestedContainer);
|
|
1438
|
+
return;
|
|
1439
|
+
}
|
|
1440
|
+
const a = t.nestedContainer.__parts;
|
|
1441
|
+
a && this.cleanupParts(a);
|
|
1442
|
+
}
|
|
1443
|
+
this.clearRenderedNodes(t), t.node.textContent = "";
|
|
1430
1444
|
const l = document.createDocumentFragment();
|
|
1431
|
-
r.renderInto(l), t.renderedNodes = Array.from(l.childNodes), t.endMarker.parentNode.insertBefore(l, t.endMarker);
|
|
1445
|
+
r.renderInto(l), t.nestedContainer = l, t.renderedNodes = Array.from(l.childNodes), t.endMarker.parentNode.insertBefore(l, t.endMarker);
|
|
1432
1446
|
}
|
|
1433
1447
|
/**
|
|
1434
1448
|
* Renders a DOM Node into a node part
|
|
@@ -1592,7 +1606,7 @@ function i(e, ...t) {
|
|
|
1592
1606
|
return new ul(e, t);
|
|
1593
1607
|
}
|
|
1594
1608
|
const y = i;
|
|
1595
|
-
var We, Ge = "melodic:outlet-register",
|
|
1609
|
+
var We, Ge = "melodic:outlet-register", we = class {
|
|
1596
1610
|
constructor() {
|
|
1597
1611
|
this._depth = 0, this._context = null, this._currentComponent = null, this._currentElement = null, this._childOutlets = /* @__PURE__ */ new Map(), this._parentOutlet = null, this._initialized = !1, this._navigationCleanup = null, this.routes = [], this.name = "primary";
|
|
1598
1612
|
}
|
|
@@ -1694,7 +1708,7 @@ var We, Ge = "melodic:outlet-register", xe = class {
|
|
|
1694
1708
|
async matchAndRender(t) {
|
|
1695
1709
|
const r = this.routes.length > 0 ? this.routes : this._router.getRoutes();
|
|
1696
1710
|
if (r.length === 0) return;
|
|
1697
|
-
const l =
|
|
1711
|
+
const l = ye(r, t);
|
|
1698
1712
|
if (l.redirectTo) {
|
|
1699
1713
|
window.location.pathname !== l.redirectTo && this._router.navigate(l.redirectTo, { replace: !0 });
|
|
1700
1714
|
return;
|
|
@@ -1732,7 +1746,7 @@ var We, Ge = "melodic:outlet-register", xe = class {
|
|
|
1732
1746
|
}
|
|
1733
1747
|
async renderFromContext() {
|
|
1734
1748
|
if (!this._context || this.routes.length === 0) return;
|
|
1735
|
-
const t = this._context.remainingPath, r =
|
|
1749
|
+
const t = this._context.remainingPath, r = ye(this.routes, t, this._context.basePath);
|
|
1736
1750
|
if (r.redirectTo) {
|
|
1737
1751
|
const l = this._context.basePath ? `/${this._context.basePath}/${r.redirectTo}`.replace(/\/+/g, "/") : r.redirectTo;
|
|
1738
1752
|
window.location.pathname !== l && this._router.navigate(l, { replace: !0 });
|
|
@@ -1789,12 +1803,12 @@ var We, Ge = "melodic:outlet-register", xe = class {
|
|
|
1789
1803
|
t?.component ? await this.renderComponent(t.component) : this._depth === 0 && this._router.navigate("/404", { replace: !0 });
|
|
1790
1804
|
}
|
|
1791
1805
|
};
|
|
1792
|
-
g([H(V),
|
|
1793
|
-
|
|
1806
|
+
g([H(V), j("design:type", typeof (We = typeof V < "u" && V) == "function" ? We : Object)], we.prototype, "_router", void 0);
|
|
1807
|
+
we = g([_({
|
|
1794
1808
|
selector: "router-outlet",
|
|
1795
1809
|
template: () => i`<slot></slot>`
|
|
1796
|
-
})],
|
|
1797
|
-
var Ue,
|
|
1810
|
+
})], we);
|
|
1811
|
+
var Ue, ke = class {
|
|
1798
1812
|
constructor() {
|
|
1799
1813
|
this._anchorElement = null, this._navigationCleanup = null, this.href = "", this.data = null, this.queryParams = {}, this.activeClass = "active", this.exactMatch = !1, this.replace = !1;
|
|
1800
1814
|
}
|
|
@@ -1851,8 +1865,8 @@ var Ue, we = class {
|
|
|
1851
1865
|
this.exactMatch ? o = l === a : o = l === a || l.startsWith(a + "/"), o ? (this.elementRef.classList.add(this.activeClass), this._anchorElement?.setAttribute("aria-current", "page")) : (this.elementRef.classList.remove(this.activeClass), this._anchorElement?.removeAttribute("aria-current"));
|
|
1852
1866
|
}
|
|
1853
1867
|
};
|
|
1854
|
-
g([H(V),
|
|
1855
|
-
|
|
1868
|
+
g([H(V), j("design:type", typeof (Ue = typeof V < "u" && V) == "function" ? Ue : Object)], ke.prototype, "_router", void 0);
|
|
1869
|
+
ke = g([_({
|
|
1856
1870
|
selector: "router-link",
|
|
1857
1871
|
template: () => i`<a part="link"><slot></slot></a>`,
|
|
1858
1872
|
styles: () => y`
|
|
@@ -1868,7 +1882,7 @@ we = g([_({
|
|
|
1868
1882
|
}
|
|
1869
1883
|
`,
|
|
1870
1884
|
attributes: ["href", "active-class"]
|
|
1871
|
-
})],
|
|
1885
|
+
})], ke);
|
|
1872
1886
|
function hl(e, t, r) {
|
|
1873
1887
|
let l;
|
|
1874
1888
|
if (typeof t == "string") l = { href: t };
|
|
@@ -1990,7 +2004,7 @@ const Ps = (e) => {
|
|
|
1990
2004
|
}, Os = (e, t) => ({
|
|
1991
2005
|
action: e(),
|
|
1992
2006
|
reducer: t
|
|
1993
|
-
}),
|
|
2007
|
+
}), $e = ee("RX_INIT_STATE"), Ce = ee("RX_ACTION_PROVIDERS"), Se = ee("RX_EFFECTS_PROVIDERS"), Ir = ee("RX_STATE_DEBUG");
|
|
1994
2008
|
var pl = class {
|
|
1995
2009
|
constructor() {
|
|
1996
2010
|
this._effects = [];
|
|
@@ -2035,7 +2049,7 @@ var pl = class {
|
|
|
2035
2049
|
});
|
|
2036
2050
|
});
|
|
2037
2051
|
}
|
|
2038
|
-
},
|
|
2052
|
+
}, F = class {
|
|
2039
2053
|
constructor() {
|
|
2040
2054
|
this._debug && console.info("RX State Debugging: Enabled");
|
|
2041
2055
|
}
|
|
@@ -2113,17 +2127,17 @@ var pl = class {
|
|
|
2113
2127
|
return Object.keys(this._state).reduce((t, r) => (t[r] = this._state[r](), t), {});
|
|
2114
2128
|
}
|
|
2115
2129
|
};
|
|
2116
|
-
g([H(
|
|
2117
|
-
g([H(
|
|
2118
|
-
g([H(
|
|
2119
|
-
g([H(Ir),
|
|
2120
|
-
|
|
2130
|
+
g([H($e), j("design:type", Object)], F.prototype, "_state", void 0);
|
|
2131
|
+
g([H(Ce), j("design:type", Object)], F.prototype, "_reducerMap", void 0);
|
|
2132
|
+
g([H(Se), j("design:type", Object)], F.prototype, "_effectMap", void 0);
|
|
2133
|
+
g([H(Ir), j("design:type", Boolean)], F.prototype, "_debug", void 0);
|
|
2134
|
+
F = g([Z(), j("design:paramtypes", [])], F);
|
|
2121
2135
|
function Vs(e, t, r, l = !1) {
|
|
2122
2136
|
return (a) => {
|
|
2123
|
-
a.bindValue(
|
|
2124
|
-
ke,
|
|
2137
|
+
a.bindValue($e, e), a.bindValue(Ce, t), a.bindValue(Se, r), a.bindValue(Ir, l), a.bind(F, F, { dependencies: [
|
|
2125
2138
|
$e,
|
|
2126
|
-
Ce
|
|
2139
|
+
Ce,
|
|
2140
|
+
Se
|
|
2127
2141
|
] });
|
|
2128
2142
|
};
|
|
2129
2143
|
}
|
|
@@ -2371,7 +2385,7 @@ function xl(e) {
|
|
|
2371
2385
|
a[s] = o, o = t[o];
|
|
2372
2386
|
return a;
|
|
2373
2387
|
}
|
|
2374
|
-
function
|
|
2388
|
+
function js(e, t, r) {
|
|
2375
2389
|
return U((l, a) => {
|
|
2376
2390
|
if (!a) {
|
|
2377
2391
|
const o = l.parentNode;
|
|
@@ -2508,7 +2522,7 @@ function G(e) {
|
|
|
2508
2522
|
return a;
|
|
2509
2523
|
});
|
|
2510
2524
|
}
|
|
2511
|
-
function
|
|
2525
|
+
function Fs(e) {
|
|
2512
2526
|
return U((t, r) => {
|
|
2513
2527
|
if (!r) {
|
|
2514
2528
|
const l = t.parentNode;
|
|
@@ -3255,7 +3269,7 @@ const Dl = {
|
|
|
3255
3269
|
lg: 1024,
|
|
3256
3270
|
xl: 1280,
|
|
3257
3271
|
"2xl": 1536
|
|
3258
|
-
},
|
|
3272
|
+
}, jl = {
|
|
3259
3273
|
...Dl,
|
|
3260
3274
|
...Il,
|
|
3261
3275
|
...Ml,
|
|
@@ -3265,7 +3279,7 @@ const Dl = {
|
|
|
3265
3279
|
...Ll,
|
|
3266
3280
|
...Vl
|
|
3267
3281
|
};
|
|
3268
|
-
function
|
|
3282
|
+
function Fl(e) {
|
|
3269
3283
|
return Object.entries(e).map(([t, r]) => `${t}: ${r};`).join(`
|
|
3270
3284
|
`);
|
|
3271
3285
|
}
|
|
@@ -3372,12 +3386,12 @@ const ql = {
|
|
|
3372
3386
|
color-scheme: dark;
|
|
3373
3387
|
}
|
|
3374
3388
|
}`, Js = `:root {
|
|
3375
|
-
${jl
|
|
3389
|
+
${Fl(jl)}
|
|
3376
3390
|
|
|
3377
3391
|
/* Default to light color scheme */
|
|
3378
3392
|
color-scheme: light;
|
|
3379
3393
|
}`;
|
|
3380
|
-
var ce = "system",
|
|
3394
|
+
var ce = "system", Ee = /* @__PURE__ */ new Set(), ne = null;
|
|
3381
3395
|
function Qs() {
|
|
3382
3396
|
return ce;
|
|
3383
3397
|
}
|
|
@@ -3388,19 +3402,19 @@ function Hl(e) {
|
|
|
3388
3402
|
if (ne && (ne(), ne = null), ce = e, e === "system") {
|
|
3389
3403
|
const t = window.matchMedia("(prefers-color-scheme: dark)"), r = () => {
|
|
3390
3404
|
const a = t.matches ? "dark" : "light";
|
|
3391
|
-
document.documentElement.setAttribute("data-theme", a),
|
|
3405
|
+
document.documentElement.setAttribute("data-theme", a), fe("system", a);
|
|
3392
3406
|
};
|
|
3393
3407
|
t.addEventListener("change", r), ne = () => t.removeEventListener("change", r);
|
|
3394
3408
|
const l = t.matches ? "dark" : "light";
|
|
3395
|
-
document.documentElement.setAttribute("data-theme", l),
|
|
3409
|
+
document.documentElement.setAttribute("data-theme", l), fe("system", l);
|
|
3396
3410
|
} else
|
|
3397
|
-
document.documentElement.setAttribute("data-theme", e),
|
|
3411
|
+
document.documentElement.setAttribute("data-theme", e), fe(e, e);
|
|
3398
3412
|
}
|
|
3399
3413
|
function Zs(e) {
|
|
3400
|
-
return
|
|
3414
|
+
return Ee.add(e), () => Ee.delete(e);
|
|
3401
3415
|
}
|
|
3402
|
-
function
|
|
3403
|
-
|
|
3416
|
+
function fe(e, t) {
|
|
3417
|
+
Ee.forEach((r) => r(e, t));
|
|
3404
3418
|
}
|
|
3405
3419
|
function en() {
|
|
3406
3420
|
Hl(Bl() === "light" ? "dark" : "light");
|
|
@@ -3526,7 +3540,7 @@ function Gl(e) {
|
|
|
3526
3540
|
}
|
|
3527
3541
|
return t;
|
|
3528
3542
|
}
|
|
3529
|
-
function
|
|
3543
|
+
function Me(e, t, r, l = {}) {
|
|
3530
3544
|
const { ancestorScroll: a = !0, ancestorResize: o = !0, elementResize: s = !0, animationFrame: n = !1 } = l, c = [];
|
|
3531
3545
|
if (a) {
|
|
3532
3546
|
const m = Gl(e);
|
|
@@ -3732,14 +3746,14 @@ var Yl = [
|
|
|
3732
3746
|
"[contenteditable]",
|
|
3733
3747
|
'[tabindex]:not([tabindex="-1"])'
|
|
3734
3748
|
].join(", ");
|
|
3735
|
-
function
|
|
3749
|
+
function Pe(e) {
|
|
3736
3750
|
return Array.from(e.querySelectorAll(Yl)).filter((t) => !(t.offsetParent === null && t.style.position !== "fixed" || getComputedStyle(t).visibility === "hidden"));
|
|
3737
3751
|
}
|
|
3738
3752
|
function Lr(e) {
|
|
3739
|
-
return
|
|
3753
|
+
return Pe(e)[0] ?? null;
|
|
3740
3754
|
}
|
|
3741
3755
|
function Xl(e) {
|
|
3742
|
-
const t =
|
|
3756
|
+
const t = Pe(e);
|
|
3743
3757
|
return t[t.length - 1] ?? null;
|
|
3744
3758
|
}
|
|
3745
3759
|
function ln(e) {
|
|
@@ -3755,7 +3769,7 @@ function Jl(e, t = {}) {
|
|
|
3755
3769
|
let o = !1, s = null;
|
|
3756
3770
|
function n(h) {
|
|
3757
3771
|
if (h.key !== "Tab" || !o) return;
|
|
3758
|
-
const p =
|
|
3772
|
+
const p = Pe(e);
|
|
3759
3773
|
if (p.length === 0) return;
|
|
3760
3774
|
const b = p[0], x = p[p.length - 1];
|
|
3761
3775
|
h.shiftKey ? document.activeElement === b && (h.preventDefault(), x.focus()) : document.activeElement === x && (h.preventDefault(), b.focus());
|
|
@@ -3956,7 +3970,7 @@ function pn(e, t) {
|
|
|
3956
3970
|
document.removeEventListener("click", r, !0);
|
|
3957
3971
|
};
|
|
3958
3972
|
}
|
|
3959
|
-
var
|
|
3973
|
+
var jr = class {
|
|
3960
3974
|
constructor() {
|
|
3961
3975
|
this._viewport = null, this._resizeObserver = null, this._options = null, this._handleScroll = () => {
|
|
3962
3976
|
this._compute(this._viewport.clientHeight);
|
|
@@ -7709,7 +7723,7 @@ function Va(e) {
|
|
|
7709
7723
|
</div>
|
|
7710
7724
|
`;
|
|
7711
7725
|
}
|
|
7712
|
-
const
|
|
7726
|
+
const ja = () => y`
|
|
7713
7727
|
:host {
|
|
7714
7728
|
display: block;
|
|
7715
7729
|
}
|
|
@@ -7861,7 +7875,7 @@ const Fa = () => y`
|
|
|
7861
7875
|
color: var(--ml-color-danger);
|
|
7862
7876
|
}
|
|
7863
7877
|
`;
|
|
7864
|
-
var
|
|
7878
|
+
var Fa = [
|
|
7865
7879
|
"Jan",
|
|
7866
7880
|
"Feb",
|
|
7867
7881
|
"Mar",
|
|
@@ -7880,7 +7894,7 @@ function qa(e) {
|
|
|
7880
7894
|
const t = e.split("-");
|
|
7881
7895
|
if (t.length !== 3) return e;
|
|
7882
7896
|
const r = parseInt(t[1], 10) - 1, l = parseInt(t[2], 10), a = parseInt(t[0], 10);
|
|
7883
|
-
return `${
|
|
7897
|
+
return `${Fa[r]} ${l}, ${a}`;
|
|
7884
7898
|
}
|
|
7885
7899
|
var xt = class {
|
|
7886
7900
|
constructor() {
|
|
@@ -7925,7 +7939,7 @@ var xt = class {
|
|
|
7925
7939
|
const t = this.getTriggerEl(), r = this.getPopoverEl();
|
|
7926
7940
|
if (!t || !r) return;
|
|
7927
7941
|
const l = () => this.updatePosition(t, r);
|
|
7928
|
-
this._cleanupAutoUpdate?.(), this._cleanupAutoUpdate =
|
|
7942
|
+
this._cleanupAutoUpdate?.(), this._cleanupAutoUpdate = Me(t, r, l);
|
|
7929
7943
|
}
|
|
7930
7944
|
updatePosition(t, r) {
|
|
7931
7945
|
const { x: l, y: a } = te(t, r, {
|
|
@@ -7952,7 +7966,7 @@ var xt = class {
|
|
|
7952
7966
|
xt = g([_({
|
|
7953
7967
|
selector: "ml-date-picker",
|
|
7954
7968
|
template: Va,
|
|
7955
|
-
styles:
|
|
7969
|
+
styles: ja,
|
|
7956
7970
|
attributes: [
|
|
7957
7971
|
"value",
|
|
7958
7972
|
"placeholder",
|
|
@@ -10597,6 +10611,7 @@ const Eo = () => y`
|
|
|
10597
10611
|
|
|
10598
10612
|
.ml-table--hoverable .ml-table__row:hover {
|
|
10599
10613
|
background-color: var(--ml-color-surface-sunken);
|
|
10614
|
+
cursor: pointer;
|
|
10600
10615
|
}
|
|
10601
10616
|
|
|
10602
10617
|
.ml-table__row--selected {
|
|
@@ -10707,7 +10722,7 @@ const Eo = () => y`
|
|
|
10707
10722
|
`;
|
|
10708
10723
|
var Vt = class {
|
|
10709
10724
|
constructor() {
|
|
10710
|
-
this.hasFooter = !1, this.hasHeaderActions = !1, this.selectable = !1, this.striped = !1, this.hoverable = !0, this.stickyHeader = !1, this.size = "md", this.tableTitle = "", this.description = "", this.virtual = !1, this.columns = [], this.rows = [], this.sortKey = "", this.sortDirection = "asc", this.selectedIndices = [], this.startIndex = 0, this.endIndex = 50, this._scroller = new
|
|
10725
|
+
this.hasFooter = !1, this.hasHeaderActions = !1, this.selectable = !1, this.striped = !1, this.hoverable = !0, this.stickyHeader = !1, this.size = "md", this.tableTitle = "", this.description = "", this.virtual = !1, this.columns = [], this.rows = [], this.sortKey = "", this.sortDirection = "asc", this.selectedIndices = [], this.startIndex = 0, this.endIndex = 50, this._scroller = new jr(), this._viewport = null, this.isRowSelected = (t) => this.selectedIndices.includes(t), this.handleSort = (t) => {
|
|
10711
10726
|
t.sortable && (this.sortKey === t.key ? this.sortDirection = this.sortDirection === "asc" ? "desc" : "asc" : (this.sortKey = t.key, this.sortDirection = "asc"), this.selectedIndices = [], this._scroller.invalidate(), this.elementRef.dispatchEvent(new CustomEvent("ml:sort", {
|
|
10712
10727
|
bubbles: !0,
|
|
10713
10728
|
composed: !0,
|
|
@@ -11522,9 +11537,9 @@ const zo = () => y`
|
|
|
11522
11537
|
cursor: not-allowed;
|
|
11523
11538
|
}
|
|
11524
11539
|
`;
|
|
11525
|
-
var
|
|
11540
|
+
var jt = class {
|
|
11526
11541
|
constructor() {
|
|
11527
|
-
this.selectable = !1, this.striped = !1, this.hoverable = !0, this.size = "md", this.gridTitle = "", this.description = "", this.serverSide = !1, this.pageSize = 50, this.virtual = !0, this.showFilterRow = !1, this.columns = [], this.rows = [], this.sortKey = "", this.sortDirection = "asc", this.filters = {}, this.selectedIndices = [], this.currentPage = 1, this.startIndex = 0, this.endIndex = 50, this.colWidths = {}, this.colOrder = [], this.resizingKey = null, this.draggingKey = null, this.dragOverKey = null, this._scroller = new
|
|
11542
|
+
this.selectable = !1, this.striped = !1, this.hoverable = !0, this.size = "md", this.gridTitle = "", this.description = "", this.serverSide = !1, this.pageSize = 50, this.virtual = !0, this.showFilterRow = !1, this.columns = [], this.rows = [], this.sortKey = "", this.sortDirection = "asc", this.filters = {}, this.selectedIndices = [], this.currentPage = 1, this.startIndex = 0, this.endIndex = 50, this.colWidths = {}, this.colOrder = [], this.resizingKey = null, this.draggingKey = null, this.dragOverKey = null, this._scroller = new jr(), this._viewport = null, this._resizeStartX = 0, this._resizeStartWidth = 0, this.isRowSelected = (t) => this.selectedIndices.includes(t), this.handleSort = (t) => {
|
|
11528
11543
|
t.sortable && (this.sortKey === t.key ? this.sortDirection = this.sortDirection === "asc" ? "desc" : "asc" : (this.sortKey = t.key, this.sortDirection = "asc"), this.currentPage = 1, this._scroller.invalidate(), this.elementRef.dispatchEvent(new CustomEvent("ml:sort", {
|
|
11529
11544
|
bubbles: !0,
|
|
11530
11545
|
composed: !0,
|
|
@@ -11729,7 +11744,7 @@ var Ft = class {
|
|
|
11729
11744
|
}));
|
|
11730
11745
|
}
|
|
11731
11746
|
};
|
|
11732
|
-
|
|
11747
|
+
jt = g([_({
|
|
11733
11748
|
selector: "ml-data-grid",
|
|
11734
11749
|
template: To,
|
|
11735
11750
|
styles: zo,
|
|
@@ -11745,7 +11760,7 @@ Ft = g([_({
|
|
|
11745
11760
|
"virtual",
|
|
11746
11761
|
"show-filter-row"
|
|
11747
11762
|
]
|
|
11748
|
-
})],
|
|
11763
|
+
})], jt);
|
|
11749
11764
|
var Ao = [
|
|
11750
11765
|
"January",
|
|
11751
11766
|
"February",
|
|
@@ -11759,7 +11774,7 @@ var Ao = [
|
|
|
11759
11774
|
"October",
|
|
11760
11775
|
"November",
|
|
11761
11776
|
"December"
|
|
11762
|
-
],
|
|
11777
|
+
], Re = [
|
|
11763
11778
|
"Jan",
|
|
11764
11779
|
"Feb",
|
|
11765
11780
|
"Mar",
|
|
@@ -11772,7 +11787,7 @@ var Ao = [
|
|
|
11772
11787
|
"Oct",
|
|
11773
11788
|
"Nov",
|
|
11774
11789
|
"Dec"
|
|
11775
|
-
],
|
|
11790
|
+
], Fr = [
|
|
11776
11791
|
"Sunday",
|
|
11777
11792
|
"Monday",
|
|
11778
11793
|
"Tuesday",
|
|
@@ -11780,7 +11795,7 @@ var Ao = [
|
|
|
11780
11795
|
"Thursday",
|
|
11781
11796
|
"Friday",
|
|
11782
11797
|
"Saturday"
|
|
11783
|
-
],
|
|
11798
|
+
], Oe = [
|
|
11784
11799
|
"Sun",
|
|
11785
11800
|
"Mon",
|
|
11786
11801
|
"Tue",
|
|
@@ -11792,7 +11807,7 @@ var Ao = [
|
|
|
11792
11807
|
function N(e, t, r) {
|
|
11793
11808
|
return `${e}-${String(t + 1).padStart(2, "0")}-${String(r).padStart(2, "0")}`;
|
|
11794
11809
|
}
|
|
11795
|
-
function
|
|
11810
|
+
function Ft(e) {
|
|
11796
11811
|
const [t, r, l] = e.split("T")[0].split("-").map(Number);
|
|
11797
11812
|
return new Date(t, r - 1, l);
|
|
11798
11813
|
}
|
|
@@ -11828,7 +11843,7 @@ function Bt(e) {
|
|
|
11828
11843
|
return `${Ao[e.getMonth()]} ${e.getFullYear()}`;
|
|
11829
11844
|
}
|
|
11830
11845
|
function Mo(e, t) {
|
|
11831
|
-
const r =
|
|
11846
|
+
const r = Re[e.getMonth()], l = Re[t.getMonth()];
|
|
11832
11847
|
return e.getMonth() === t.getMonth() && e.getFullYear() === t.getFullYear() ? `${r} ${e.getDate()} – ${t.getDate()}, ${e.getFullYear()}` : e.getFullYear() === t.getFullYear() ? `${r} ${e.getDate()} – ${l} ${t.getDate()}, ${e.getFullYear()}` : `${r} ${e.getDate()}, ${e.getFullYear()} – ${l} ${t.getDate()}, ${t.getFullYear()}`;
|
|
11833
11848
|
}
|
|
11834
11849
|
function Ht(e, t, r = 0) {
|
|
@@ -11880,8 +11895,8 @@ function Kt(e = 0) {
|
|
|
11880
11895
|
return Array.from({ length: 7 }, (t, r) => {
|
|
11881
11896
|
const l = (e + r) % 7;
|
|
11882
11897
|
return {
|
|
11883
|
-
short:
|
|
11884
|
-
full:
|
|
11898
|
+
short: Oe[l],
|
|
11899
|
+
full: Fr[l]
|
|
11885
11900
|
};
|
|
11886
11901
|
});
|
|
11887
11902
|
}
|
|
@@ -11889,10 +11904,10 @@ function ue(e, t) {
|
|
|
11889
11904
|
return e.filter((r) => r.start.split("T")[0] === t);
|
|
11890
11905
|
}
|
|
11891
11906
|
function Oo(e) {
|
|
11892
|
-
return
|
|
11907
|
+
return Re[e.getMonth()];
|
|
11893
11908
|
}
|
|
11894
11909
|
function No(e) {
|
|
11895
|
-
return
|
|
11910
|
+
return Fr[e.getDay()];
|
|
11896
11911
|
}
|
|
11897
11912
|
function M(e) {
|
|
11898
11913
|
const t = new Date(e);
|
|
@@ -11961,24 +11976,24 @@ function Vo(e, t, r) {
|
|
|
11961
11976
|
const a = N(l.getFullYear(), l.getMonth(), l.getDate()), o = ue(r, a).filter((s) => !s.allDay);
|
|
11962
11977
|
return {
|
|
11963
11978
|
date: a,
|
|
11964
|
-
dayLabel:
|
|
11979
|
+
dayLabel: Oe[l.getDay()],
|
|
11965
11980
|
dayNumber: l.getDate(),
|
|
11966
11981
|
isToday: qr(l),
|
|
11967
11982
|
events: Hr(o)
|
|
11968
11983
|
};
|
|
11969
11984
|
});
|
|
11970
11985
|
}
|
|
11971
|
-
function
|
|
11986
|
+
function jo(e, t) {
|
|
11972
11987
|
const r = N(e.getFullYear(), e.getMonth(), e.getDate()), l = ue(t, r).filter((a) => !a.allDay);
|
|
11973
11988
|
return {
|
|
11974
11989
|
date: r,
|
|
11975
|
-
dayLabel:
|
|
11990
|
+
dayLabel: Oe[e.getDay()],
|
|
11976
11991
|
dayNumber: e.getDate(),
|
|
11977
11992
|
isToday: qr(e),
|
|
11978
11993
|
events: Hr(l)
|
|
11979
11994
|
};
|
|
11980
11995
|
}
|
|
11981
|
-
function
|
|
11996
|
+
function Fo(e, t, r) {
|
|
11982
11997
|
const l = /* @__PURE__ */ new Set(), a = new Date(e, t + 1, 0).getDate();
|
|
11983
11998
|
for (let o = 1; o <= a; o++) {
|
|
11984
11999
|
const s = N(e, t, o);
|
|
@@ -13203,7 +13218,7 @@ var Gt = class {
|
|
|
13203
13218
|
}, this.miniCalNextMonth = () => {
|
|
13204
13219
|
this._miniCalMonth === 11 ? (this._miniCalMonth = 0, this._miniCalYear++) : this._miniCalMonth++;
|
|
13205
13220
|
}, this.handleMiniCalSelect = (t) => {
|
|
13206
|
-
this.setDate(
|
|
13221
|
+
this.setDate(Ft(t));
|
|
13207
13222
|
};
|
|
13208
13223
|
}
|
|
13209
13224
|
/** Check if header-left slot has consumer content */
|
|
@@ -13215,7 +13230,7 @@ var Gt = class {
|
|
|
13215
13230
|
return this.elementRef?.querySelector('[slot="header-actions"]') !== null;
|
|
13216
13231
|
}
|
|
13217
13232
|
get _currentDate() {
|
|
13218
|
-
return this.date ?
|
|
13233
|
+
return this.date ? Ft(this.date) : /* @__PURE__ */ new Date();
|
|
13219
13234
|
}
|
|
13220
13235
|
onCreate() {
|
|
13221
13236
|
if (!this.date) {
|
|
@@ -13281,7 +13296,7 @@ var Gt = class {
|
|
|
13281
13296
|
return Lo();
|
|
13282
13297
|
}
|
|
13283
13298
|
get dayColumn() {
|
|
13284
|
-
return
|
|
13299
|
+
return jo(this._currentDate, this.events);
|
|
13285
13300
|
}
|
|
13286
13301
|
get dayEvents() {
|
|
13287
13302
|
return ue(this.events, this.currentIsoDate);
|
|
@@ -13303,7 +13318,7 @@ var Gt = class {
|
|
|
13303
13318
|
return Ht(this._miniCalYear, this._miniCalMonth, this.weekStartsOn);
|
|
13304
13319
|
}
|
|
13305
13320
|
get miniCalendarDots() {
|
|
13306
|
-
return
|
|
13321
|
+
return Fo(this._miniCalYear, this._miniCalMonth, this.events);
|
|
13307
13322
|
}
|
|
13308
13323
|
setDate(t) {
|
|
13309
13324
|
this.date = N(t.getFullYear(), t.getMonth(), t.getDate()), this._miniCalYear = t.getFullYear(), this._miniCalMonth = t.getMonth(), this.elementRef.dispatchEvent(new CustomEvent("ml:date-change", {
|
|
@@ -14260,7 +14275,7 @@ function bi(e) {
|
|
|
14260
14275
|
<div class="ml-sidebar__footer">
|
|
14261
14276
|
${r ? i`
|
|
14262
14277
|
<div class="ml-sidebar__footer-nav">
|
|
14263
|
-
${$(e.footerNavigation, (a) => a.value, (a) =>
|
|
14278
|
+
${$(e.footerNavigation, (a) => a.value, (a) => Ne(e, a, 0))}
|
|
14264
14279
|
</div>
|
|
14265
14280
|
` : i`
|
|
14266
14281
|
<div class="ml-sidebar__footer-nav">
|
|
@@ -14291,12 +14306,12 @@ function fi(e, t) {
|
|
|
14291
14306
|
<span class="ml-sidebar__group-label">${t.label}</span>
|
|
14292
14307
|
`)}
|
|
14293
14308
|
<div class="ml-sidebar__group-items">
|
|
14294
|
-
${$(t.items, (l) => l.value, (l) =>
|
|
14309
|
+
${$(t.items, (l) => l.value, (l) => Ne(e, l, 0))}
|
|
14295
14310
|
</div>
|
|
14296
14311
|
</div>
|
|
14297
14312
|
`;
|
|
14298
14313
|
}
|
|
14299
|
-
function
|
|
14314
|
+
function Ne(e, t, r) {
|
|
14300
14315
|
const l = e.active === t.value, a = !!t.children && t.children.length > 0, o = e.expandedItems.has(t.value), s = e.collapsed, n = v({
|
|
14301
14316
|
"ml-sidebar__item-link": !0,
|
|
14302
14317
|
"ml-sidebar__item-link--active": l,
|
|
@@ -14360,7 +14375,7 @@ function Oe(e, t, r) {
|
|
|
14360
14375
|
`)}
|
|
14361
14376
|
${d(a && o && !s, () => i`
|
|
14362
14377
|
<div class="ml-sidebar__item-submenu">
|
|
14363
|
-
${$(t.children, (u) => u.value, (u) =>
|
|
14378
|
+
${$(t.children, (u) => u.value, (u) => Ne(e, u, r + 1))}
|
|
14364
14379
|
</div>
|
|
14365
14380
|
`)}
|
|
14366
14381
|
</div>
|
|
@@ -16490,7 +16505,7 @@ function Vi(e) {
|
|
|
16490
16505
|
</div>
|
|
16491
16506
|
`;
|
|
16492
16507
|
}
|
|
16493
|
-
const
|
|
16508
|
+
const ji = () => y`
|
|
16494
16509
|
:host {
|
|
16495
16510
|
display: block;
|
|
16496
16511
|
}
|
|
@@ -16511,10 +16526,10 @@ var sr = class {
|
|
|
16511
16526
|
sr = g([_({
|
|
16512
16527
|
selector: "ml-step-panel",
|
|
16513
16528
|
template: Vi,
|
|
16514
|
-
styles:
|
|
16529
|
+
styles: ji,
|
|
16515
16530
|
attributes: ["value"]
|
|
16516
16531
|
})], sr);
|
|
16517
|
-
const
|
|
16532
|
+
const Fi = () => i`<dialog class="ml-dialog">
|
|
16518
16533
|
<div class="ml-dialog-header">
|
|
16519
16534
|
<slot name="dialog-header"></slot>
|
|
16520
16535
|
</div>
|
|
@@ -16709,9 +16724,6 @@ var Bi = class {
|
|
|
16709
16724
|
constructor(e, t) {
|
|
16710
16725
|
this._dialogID = e, this._dialogEl = t, this._afterOpenedCallback = null, this._afterClosedCallback = null, this._disableClose = !1, this._handleCancel = this.onCancel.bind(this), this._handleBackdropClick = this.onBackdropClick.bind(this), this._dialogEl.addEventListener("cancel", this._handleCancel), this._dialogEl.addEventListener("click", this._handleBackdropClick);
|
|
16711
16726
|
}
|
|
16712
|
-
updateDialogElement(e) {
|
|
16713
|
-
this._dialogEl.removeEventListener("cancel", this._handleCancel), this._dialogEl.removeEventListener("click", this._handleBackdropClick), this._dialogEl = e, this._dialogEl.addEventListener("cancel", this._handleCancel), this._dialogEl.addEventListener("click", this._handleBackdropClick);
|
|
16714
|
-
}
|
|
16715
16727
|
get dialogID() {
|
|
16716
16728
|
return this._dialogID;
|
|
16717
16729
|
}
|
|
@@ -16769,30 +16781,8 @@ var Bi = class {
|
|
|
16769
16781
|
const o = this.mountDialog(t);
|
|
16770
16782
|
l = ((o.shadowRoot?.querySelector("ml-dialog")).shadowRoot?.querySelector("dialog")).id, a = this._dialogs.get(l), a.dialogComponent = o, r && a.dialogRef.applyConfig(r), o.component.onDialogRefSet?.(a.dialogRef);
|
|
16771
16783
|
}
|
|
16772
|
-
if (!a) {
|
|
16773
|
-
const o = this.findDialogElement(l);
|
|
16774
|
-
if (o && (o.component.open(), a = this._dialogs.get(l)), !a) throw new Error(`Dialog "${l}" not found. Ensure an <ml-dialog #${l}> exists in the DOM.`);
|
|
16775
|
-
return a.dialogRef;
|
|
16776
|
-
}
|
|
16777
16784
|
return a.dialogRef.open(), a.dialogRef;
|
|
16778
16785
|
}
|
|
16779
|
-
findDialogElement(t) {
|
|
16780
|
-
for (const r of document.body.querySelectorAll("*")) if (r.shadowRoot) {
|
|
16781
|
-
const l = this.deepFindDialog(r, t);
|
|
16782
|
-
if (l) return l;
|
|
16783
|
-
}
|
|
16784
|
-
return null;
|
|
16785
|
-
}
|
|
16786
|
-
deepFindDialog(t, r) {
|
|
16787
|
-
const l = t.shadowRoot;
|
|
16788
|
-
if (!l) return null;
|
|
16789
|
-
for (const a of l.querySelectorAll("ml-dialog")) if (a.hasAttribute(`#${r}`)) return a;
|
|
16790
|
-
for (const a of l.querySelectorAll("*")) if (a.shadowRoot) {
|
|
16791
|
-
const o = this.deepFindDialog(a, r);
|
|
16792
|
-
if (o) return o;
|
|
16793
|
-
}
|
|
16794
|
-
return null;
|
|
16795
|
-
}
|
|
16796
16786
|
close(t, r) {
|
|
16797
16787
|
this._dialogs.has(t) && this._dialogs.get(t).dialogRef.close(r);
|
|
16798
16788
|
}
|
|
@@ -16808,13 +16798,10 @@ var Bi = class {
|
|
|
16808
16798
|
}
|
|
16809
16799
|
};
|
|
16810
16800
|
Q = g([Z()], Q);
|
|
16811
|
-
var nr,
|
|
16801
|
+
var nr, Te = class {
|
|
16812
16802
|
constructor() {
|
|
16813
16803
|
this._dialogID = Zl(), this._registered = !1;
|
|
16814
16804
|
}
|
|
16815
|
-
onCreate() {
|
|
16816
|
-
this.registerDialog();
|
|
16817
|
-
}
|
|
16818
16805
|
registerDialog() {
|
|
16819
16806
|
if (this._registered) return;
|
|
16820
16807
|
const t = this.elementRef.shadowRoot?.querySelector("dialog");
|
|
@@ -16824,9 +16811,7 @@ var nr, Re = class {
|
|
|
16824
16811
|
this._dialogService.removeDialog(this._dialogID);
|
|
16825
16812
|
}
|
|
16826
16813
|
open() {
|
|
16827
|
-
this.registerDialog();
|
|
16828
|
-
const t = this.elementRef.shadowRoot?.querySelector("dialog");
|
|
16829
|
-
t && t !== this._dialogEl && (this._dialogEl = t, this._dialogRef.updateDialogElement(t)), this._dialogRef.open();
|
|
16814
|
+
this.registerDialog(), this._dialogRef.open();
|
|
16830
16815
|
}
|
|
16831
16816
|
close(t) {
|
|
16832
16817
|
this._dialogRef.close(t);
|
|
@@ -16835,13 +16820,13 @@ var nr, Re = class {
|
|
|
16835
16820
|
return this.elementRef.getAttributeNames().find((t) => t.startsWith("#"))?.slice(1) ?? this._dialogID;
|
|
16836
16821
|
}
|
|
16837
16822
|
};
|
|
16838
|
-
g([H(Q),
|
|
16839
|
-
|
|
16823
|
+
g([H(Q), j("design:type", typeof (nr = typeof Q < "u" && Q) == "function" ? nr : Object)], Te.prototype, "_dialogService", void 0);
|
|
16824
|
+
Te = g([_({
|
|
16840
16825
|
selector: "ml-dialog",
|
|
16841
|
-
template:
|
|
16826
|
+
template: Fi,
|
|
16842
16827
|
styles: qi,
|
|
16843
16828
|
attributes: []
|
|
16844
|
-
})],
|
|
16829
|
+
})], Te);
|
|
16845
16830
|
function Hi(e) {
|
|
16846
16831
|
const t = e.side === "left" ? "left" : "right", r = e.size === "sm" || e.size === "md" || e.size === "lg" || e.size === "xl" ? e.size : "md";
|
|
16847
16832
|
return i`
|
|
@@ -17350,7 +17335,7 @@ var cr = class {
|
|
|
17350
17335
|
const t = this.getTriggerEl(), r = this.getMenuEl();
|
|
17351
17336
|
if (!t || !r) return;
|
|
17352
17337
|
const l = () => this.updatePosition(t, r);
|
|
17353
|
-
this._cleanupAutoUpdate?.(), this._cleanupAutoUpdate =
|
|
17338
|
+
this._cleanupAutoUpdate?.(), this._cleanupAutoUpdate = Me(t, r, l);
|
|
17354
17339
|
}
|
|
17355
17340
|
updatePosition(t, r) {
|
|
17356
17341
|
const l = this.arrow ? this.elementRef.shadowRoot?.querySelector(".ml-dropdown__arrow") : null, a = [
|
|
@@ -17818,7 +17803,7 @@ var vr = class {
|
|
|
17818
17803
|
const t = this.getTriggerEl(), r = this.getPopoverEl();
|
|
17819
17804
|
if (!t || !r) return;
|
|
17820
17805
|
const l = () => this.updatePosition(t, r);
|
|
17821
|
-
this._cleanupAutoUpdate?.(), this._cleanupAutoUpdate =
|
|
17806
|
+
this._cleanupAutoUpdate?.(), this._cleanupAutoUpdate = Me(t, r, l);
|
|
17822
17807
|
}
|
|
17823
17808
|
updatePosition(t, r) {
|
|
17824
17809
|
const l = this.arrow ? this.elementRef.shadowRoot?.querySelector(".ml-popover__arrow") : null, a = [
|
|
@@ -19249,7 +19234,7 @@ export {
|
|
|
19249
19234
|
zt as ContainerComponent,
|
|
19250
19235
|
xr as DashboardPageComponent,
|
|
19251
19236
|
xt as DatePickerComponent,
|
|
19252
|
-
|
|
19237
|
+
Te as DialogComponent,
|
|
19253
19238
|
Bi as DialogRef,
|
|
19254
19239
|
Q as DialogService,
|
|
19255
19240
|
qs as Directive,
|
|
@@ -19266,9 +19251,9 @@ export {
|
|
|
19266
19251
|
ft as FormFieldComponent,
|
|
19267
19252
|
Rl as FormGroup,
|
|
19268
19253
|
br as HeroSectionComponent,
|
|
19269
|
-
|
|
19270
|
-
|
|
19271
|
-
|
|
19254
|
+
Ae as HttpBaseError,
|
|
19255
|
+
Be as HttpClient,
|
|
19256
|
+
qe as HttpError,
|
|
19272
19257
|
Ut as IconComponent,
|
|
19273
19258
|
gs as Inject,
|
|
19274
19259
|
Z as Injectable,
|
|
@@ -19285,19 +19270,19 @@ export {
|
|
|
19285
19270
|
vr as PopoverComponent,
|
|
19286
19271
|
St as ProgressComponent,
|
|
19287
19272
|
ol as ROUTE_CONTEXT_EVENT,
|
|
19288
|
-
|
|
19289
|
-
|
|
19290
|
-
|
|
19273
|
+
Ce as RX_ACTION_PROVIDERS,
|
|
19274
|
+
Se as RX_EFFECTS_PROVIDERS,
|
|
19275
|
+
$e as RX_INIT_STATE,
|
|
19291
19276
|
Ir as RX_STATE_DEBUG,
|
|
19292
19277
|
pt as RadioCardComponent,
|
|
19293
19278
|
ht as RadioCardGroupComponent,
|
|
19294
19279
|
mt as RadioComponent,
|
|
19295
19280
|
ut as RadioGroupComponent,
|
|
19296
19281
|
$s as RouteContextEvent,
|
|
19297
|
-
|
|
19298
|
-
|
|
19299
|
-
|
|
19300
|
-
|
|
19282
|
+
xe as RouteContextService,
|
|
19283
|
+
_e as RouteMatcher,
|
|
19284
|
+
ke as RouterLinkComponent,
|
|
19285
|
+
we as RouterOutletComponent,
|
|
19301
19286
|
V as RouterService,
|
|
19302
19287
|
wr as SIGNAL_MARKER,
|
|
19303
19288
|
gt as SelectComponent,
|
|
@@ -19306,7 +19291,7 @@ export {
|
|
|
19306
19291
|
rr as SidebarGroupComponent,
|
|
19307
19292
|
lr as SidebarItemComponent,
|
|
19308
19293
|
Dr as SignalEffect,
|
|
19309
|
-
|
|
19294
|
+
F as SignalStoreService,
|
|
19310
19295
|
yr as SignupPageComponent,
|
|
19311
19296
|
bt as SliderComponent,
|
|
19312
19297
|
at as SpinnerComponent,
|
|
@@ -19327,19 +19312,19 @@ export {
|
|
|
19327
19312
|
vt as ToggleComponent,
|
|
19328
19313
|
pr as TooltipComponent,
|
|
19329
19314
|
Ks as Validators,
|
|
19330
|
-
|
|
19315
|
+
jr as VirtualScroller,
|
|
19331
19316
|
$o as activityFeedItemStyles,
|
|
19332
19317
|
ko as activityFeedItemTemplate,
|
|
19333
19318
|
wo as activityFeedStyles,
|
|
19334
19319
|
xo as activityFeedTemplate,
|
|
19335
|
-
|
|
19320
|
+
jl as allTokens,
|
|
19336
19321
|
dn as announce,
|
|
19337
19322
|
os as appShellStyles,
|
|
19338
19323
|
as as appShellTemplate,
|
|
19339
19324
|
Yr as applyGlobalStyles,
|
|
19340
19325
|
Hl as applyTheme,
|
|
19341
19326
|
Nr as arrow,
|
|
19342
|
-
|
|
19327
|
+
Me as autoUpdate,
|
|
19343
19328
|
Js as baseThemeCss,
|
|
19344
19329
|
bs as bootstrap,
|
|
19345
19330
|
Nl as borderTokens,
|
|
@@ -19406,7 +19391,7 @@ export {
|
|
|
19406
19391
|
cl as getAttributeDirective,
|
|
19407
19392
|
Zr as getEnvironment,
|
|
19408
19393
|
Lr as getFirstFocusable,
|
|
19409
|
-
|
|
19394
|
+
Pe as getFocusableElements,
|
|
19410
19395
|
Xl as getLastFocusable,
|
|
19411
19396
|
Ts as getRegisteredDirectives,
|
|
19412
19397
|
Bl as getResolvedTheme,
|
|
@@ -19428,7 +19413,7 @@ export {
|
|
|
19428
19413
|
bo as listTemplate,
|
|
19429
19414
|
ms as loginPageStyles,
|
|
19430
19415
|
cs as loginPageTemplate,
|
|
19431
|
-
|
|
19416
|
+
ye as matchRouteTree,
|
|
19432
19417
|
Zl as newID,
|
|
19433
19418
|
re as offset,
|
|
19434
19419
|
Os as onAction,
|
|
@@ -19446,9 +19431,9 @@ export {
|
|
|
19446
19431
|
ys as provideHttp,
|
|
19447
19432
|
Vs as provideRX,
|
|
19448
19433
|
he as registerAttributeDirective,
|
|
19449
|
-
|
|
19434
|
+
Le as render,
|
|
19450
19435
|
$ as repeat,
|
|
19451
|
-
|
|
19436
|
+
js as repeatRaw,
|
|
19452
19437
|
mn as resetStyles,
|
|
19453
19438
|
hl as routerLinkDirective,
|
|
19454
19439
|
za as selectStyles,
|
|
@@ -19468,7 +19453,7 @@ export {
|
|
|
19468
19453
|
Da as sliderStyles,
|
|
19469
19454
|
Aa as sliderTemplate,
|
|
19470
19455
|
Ml as spacingTokens,
|
|
19471
|
-
|
|
19456
|
+
ji as stepPanelStyles,
|
|
19472
19457
|
Vi as stepPanelTemplate,
|
|
19473
19458
|
Li as stepStyles,
|
|
19474
19459
|
Ai as stepTemplate,
|
|
@@ -19488,12 +19473,12 @@ export {
|
|
|
19488
19473
|
Wa as toastStyles,
|
|
19489
19474
|
Ka as toastTemplate,
|
|
19490
19475
|
en as toggleTheme,
|
|
19491
|
-
|
|
19476
|
+
Fl as tokensToCss,
|
|
19492
19477
|
ta as tooltipDirective,
|
|
19493
19478
|
Ll as transitionTokens,
|
|
19494
19479
|
Pl as typographyTokens,
|
|
19495
19480
|
Rs as unregisterAttributeDirective,
|
|
19496
|
-
|
|
19481
|
+
Fs as unsafeHTML,
|
|
19497
19482
|
un as visuallyHiddenStyles,
|
|
19498
19483
|
d as when
|
|
19499
19484
|
};
|