@webority/ui-react 0.9.5 → 0.9.6
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/dist/types/components/AppTextarea.d.ts +2 -0
- package/dist/ui-react.js +542 -532
- package/package.json +3 -3
package/dist/ui-react.js
CHANGED
|
@@ -601,33 +601,33 @@ var we = class extends HTMLElement {
|
|
|
601
601
|
let e = this.getAttribute("tone"), t = Number.parseInt(this.getAttribute("size"), 10) || 72, n = Ce[e] || Ce.info;
|
|
602
602
|
this.innerHTML = `<svg width="${t}" height="${t}" viewBox="0 0 174 174" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">${n}</svg>`;
|
|
603
603
|
}
|
|
604
|
-
}, Te = 4;
|
|
605
|
-
function
|
|
604
|
+
}, Te = 4, Ee = 300, De = 400;
|
|
605
|
+
function Oe(e, t, n = {}) {
|
|
606
606
|
if (!e || !t) return;
|
|
607
607
|
let r = e.getBoundingClientRect(), i = t.offsetHeight, a = window.innerHeight - r.bottom, o = a < i + Te && r.top > a;
|
|
608
|
-
t.classList.toggle("drop-up", o), t.style.position = "fixed", t.style.top = o ? `${Math.max(Te, r.top - i - Te)}px` : `${r.bottom + Te}px`, n.matchWidth && (t.style.minWidth = `${r.width}px`, t.style.width = "max-content", t.style.maxWidth = `${window.innerWidth - Te * 2}px`);
|
|
608
|
+
t.classList.toggle("drop-up", o), t.style.position = "fixed", t.style.top = o ? `${Math.max(Te, r.top - i - Te)}px` : `${r.bottom + Te}px`, n.matchWidth && (r.width >= Ee ? (t.style.minWidth = `${r.width}px`, t.style.width = `${r.width}px`, t.style.maxWidth = `${r.width}px`) : (t.style.minWidth = `${r.width}px`, t.style.width = "max-content", t.style.maxWidth = `${Math.min(De, window.innerWidth - Te * 2)}px`));
|
|
609
609
|
let s = t.offsetWidth, c = Math.min(r.left, window.innerWidth - s - Te);
|
|
610
610
|
t.style.left = `${Math.max(Te, c)}px`;
|
|
611
611
|
}
|
|
612
|
-
function
|
|
613
|
-
|
|
612
|
+
function ke(e, t) {
|
|
613
|
+
Ae(e), e._reanchor = t, window.addEventListener("resize", e._reanchor), window.addEventListener("scroll", e._reanchor, !0);
|
|
614
614
|
}
|
|
615
|
-
function
|
|
615
|
+
function Ae(e) {
|
|
616
616
|
e?._reanchor && (window.removeEventListener("resize", e._reanchor), window.removeEventListener("scroll", e._reanchor, !0), e._reanchor = null);
|
|
617
617
|
}
|
|
618
|
-
var
|
|
618
|
+
var je = "data-wui-mirror";
|
|
619
619
|
function G(e, t) {
|
|
620
|
-
let n = e.getAttribute("name"), r = e.querySelector(`:scope > input[${
|
|
620
|
+
let n = e.getAttribute("name"), r = e.querySelector(`:scope > input[${je}]`);
|
|
621
621
|
if (!n) {
|
|
622
622
|
r?.remove();
|
|
623
623
|
return;
|
|
624
624
|
}
|
|
625
|
-
r || (r = document.createElement("input"), r.type = "hidden", r.setAttribute(
|
|
625
|
+
r || (r = document.createElement("input"), r.type = "hidden", r.setAttribute(je, ""), e.appendChild(r)), r.name = n, r.value = t == null ? "" : String(t);
|
|
626
626
|
for (let t of [...r.attributes]) t.name.startsWith("data-val") && !e.hasAttribute(t.name) && r.removeAttribute(t.name);
|
|
627
627
|
for (let t of e.attributes) t.name.startsWith("data-val") && r.setAttribute(t.name, t.value);
|
|
628
628
|
r.disabled = e.hasAttribute("disabled");
|
|
629
629
|
}
|
|
630
|
-
var
|
|
630
|
+
var Me = {
|
|
631
631
|
activity: "<path d=\"M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path><path d=\"m7.33 14.49 2.38-3.09c.34-.44.97-.52 1.41-.18l1.83 1.44c.44.34 1.07.26 1.41-.17l2.31-2.98\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
|
|
632
632
|
alarm: "<path d=\"M2 22h20M12 6a9 9 0 0 0-9 9v7h18v-7a9 9 0 0 0-9-9ZM12 2v1M4 4l1 1M20 4l-1 1\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
|
|
633
633
|
"alert-circle": "<path d=\"M12 7.75V13M21.08 8.58v6.84c0 1.12-.6 2.16-1.57 2.73l-5.94 3.43c-.97.56-2.17.56-3.15 0l-5.94-3.43a3.15 3.15 0 0 1-1.57-2.73V8.58c0-1.12.6-2.16 1.57-2.73l5.94-3.43c.97-.56 2.17-.56 3.15 0l5.94 3.43c.97.57 1.57 1.6 1.57 2.73Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path><path d=\"M12 16.2v.1\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
|
|
@@ -770,12 +770,12 @@ var Ae = {
|
|
|
770
770
|
"zoom-in": "<path d=\"M11 20a9 9 0 1 0 0-18 9 9 0 0 0 0 18ZM8.5 11h5M11 13.5v-5M18.93 20.69c.53 1.6 1.74 1.76 2.67.36.85-1.28.29-2.33-1.25-2.33-1.14-.01-1.78.88-1.42 1.97Z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>",
|
|
771
771
|
"zoom-out": "<path d=\"M9 11.7h5M11.5 21a9.5 9.5 0 1 0 0-19 9.5 9.5 0 0 0 0 19ZM22 22l-2-2\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>"
|
|
772
772
|
};
|
|
773
|
-
Object.keys(
|
|
773
|
+
Object.keys(Me);
|
|
774
774
|
function K(e, { size: t = 16, className: n = "", style: r = "" } = {}) {
|
|
775
|
-
let i =
|
|
775
|
+
let i = Me[e];
|
|
776
776
|
return i ? `<svg class="${n ? `wui-icon ${n}` : "wui-icon"}" data-icon="${e}" width="${t}" height="${t}" viewBox="0 0 24 24" fill="none" aria-hidden="true" style="vertical-align:-.125em${r ? `;${r}` : ""}">${i}</svg>` : "";
|
|
777
777
|
}
|
|
778
|
-
function
|
|
778
|
+
function Ne(e) {
|
|
779
779
|
let { getVisibleOptions: t, getActive: n, setActive: r, onEnter: i, onEscape: a, onTypeahead: o, typeaheadMs: s = 500 } = e, c = "", l = null, u = () => {
|
|
780
780
|
clearTimeout(l), l = null, c = "";
|
|
781
781
|
};
|
|
@@ -804,15 +804,15 @@ function je(e) {
|
|
|
804
804
|
teardown: u
|
|
805
805
|
};
|
|
806
806
|
}
|
|
807
|
-
var
|
|
807
|
+
var Pe = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'"), Fe = (e) => {
|
|
808
808
|
if (!e) return "";
|
|
809
809
|
let t = String(e).toLowerCase().replace(/[^a-z0-9-]/g, "");
|
|
810
810
|
return t ? K(t) : "";
|
|
811
|
-
},
|
|
811
|
+
}, Ie = (e) => {
|
|
812
812
|
if (e == null) return "";
|
|
813
|
-
let t = e[
|
|
813
|
+
let t = e[Pe] ? String(e.label ?? "") : q(e.label), n = Fe(e.icon);
|
|
814
814
|
return n ? `<span class="wui-opt-label">${n}${t}</span>` : t;
|
|
815
|
-
},
|
|
815
|
+
}, Le = class extends HTMLElement {
|
|
816
816
|
static formAssociated = !0;
|
|
817
817
|
_accessibleName() {
|
|
818
818
|
return this.getAttribute("aria-label") || this.getAttribute("placeholder") || "Select";
|
|
@@ -873,12 +873,12 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
|
|
|
873
873
|
set value(e) {
|
|
874
874
|
this._value = e == null ? "" : String(e), G(this, this._value);
|
|
875
875
|
let t = this._readOptions().find((e) => String(e.value) === this._value);
|
|
876
|
-
this._label = t ?
|
|
876
|
+
this._label = t ? ze(t.label) : "", this._syncInput(), this._renderOptions("");
|
|
877
877
|
}
|
|
878
878
|
set options(e) {
|
|
879
879
|
this._optionsProp = Array.isArray(e) ? e : [];
|
|
880
880
|
let t = this._readOptions().find((e) => String(e.value) === this._value);
|
|
881
|
-
t && (this._label =
|
|
881
|
+
t && (this._label = ze(t.label)), this._renderOptions(), this._syncInput();
|
|
882
882
|
}
|
|
883
883
|
get options() {
|
|
884
884
|
return this._readOptions();
|
|
@@ -897,7 +897,7 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
|
|
|
897
897
|
}
|
|
898
898
|
_matchesKnownOption(e) {
|
|
899
899
|
let t = e.toLowerCase();
|
|
900
|
-
return this._readOptions().some((e) =>
|
|
900
|
+
return this._readOptions().some((e) => ze(e.label).toLowerCase() === t || String(e.value ?? "").toLowerCase() === t);
|
|
901
901
|
}
|
|
902
902
|
get _minChars() {
|
|
903
903
|
return Math.max(0, Number(this.getAttribute("min-chars")) || +!!this._remote);
|
|
@@ -915,7 +915,7 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
|
|
|
915
915
|
value: e.getAttribute("value") ?? e.textContent.trim(),
|
|
916
916
|
label: e.innerHTML,
|
|
917
917
|
icon: e.getAttribute("icon") || void 0,
|
|
918
|
-
[
|
|
918
|
+
[Pe]: !0,
|
|
919
919
|
selected: e.hasAttribute("selected")
|
|
920
920
|
})));
|
|
921
921
|
}
|
|
@@ -929,12 +929,12 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
|
|
|
929
929
|
let r = `${this.id}-listbox`;
|
|
930
930
|
this._listboxId = r, this.innerHTML = `
|
|
931
931
|
<div class="search-select${n}">
|
|
932
|
-
<div class="input search-select-control search-select-ac" role="combobox" aria-haspopup="listbox" aria-expanded="false" aria-controls="${
|
|
933
|
-
<input class="search-select-input search-select-ac-input" placeholder="${
|
|
932
|
+
<div class="input search-select-control search-select-ac" role="combobox" aria-haspopup="listbox" aria-expanded="false" aria-controls="${Re(r)}" aria-label="${Re(this._accessibleName())}"${this.hasAttribute("aria-invalid") ? " aria-invalid=\"true\"" : ""}>
|
|
933
|
+
<input class="search-select-input search-select-ac-input" placeholder="${Re(e)}" aria-autocomplete="list" autocomplete="off"${this.hasAttribute("disabled") ? " disabled" : ""} />
|
|
934
934
|
<span class="search-select-spinner spinner-border spinner-border-sm" role="status" aria-hidden="true" hidden></span>
|
|
935
935
|
<button type="button" class="search-select-clear" aria-label="Clear" hidden>${K("x")}</button>
|
|
936
936
|
</div>
|
|
937
|
-
<div class="search-select-menu search-select-menu-fixed" role="listbox" id="${
|
|
937
|
+
<div class="search-select-menu search-select-menu-fixed" role="listbox" id="${Re(r)}" tabindex="-1" hidden>
|
|
938
938
|
<div class="search-select-options"></div>
|
|
939
939
|
<div class="search-select-empty" hidden>No matches</div>
|
|
940
940
|
<div class="search-select-hint" hidden>Type to search…</div>
|
|
@@ -968,7 +968,7 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
|
|
|
968
968
|
let t = this._refs();
|
|
969
969
|
if (!t.optionsWrap) return;
|
|
970
970
|
let n = e ?? (t.input ? t.input.value : ""), r = n.trim().toLowerCase(), i = this._readOptions();
|
|
971
|
-
!this._remote && r && (i = i.filter((e) =>
|
|
971
|
+
!this._remote && r && (i = i.filter((e) => ze(e.label).toLowerCase().includes(r)));
|
|
972
972
|
let a = n.trim(), o = this._allowCustom && a && !this._matchesKnownOption(a) ? [...i, {
|
|
973
973
|
value: a,
|
|
974
974
|
custom: !0
|
|
@@ -977,19 +977,19 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
|
|
|
977
977
|
let n = `${s}-opt-${t}`;
|
|
978
978
|
if (e.custom) {
|
|
979
979
|
let t = `Add “${q(e.value)}”`;
|
|
980
|
-
return `<button type="button" role="option" id="${
|
|
980
|
+
return `<button type="button" role="option" id="${Re(n)}" class="search-select-option search-select-option-custom" data-value="${Re(e.value)}" data-custom="true" aria-selected="false">${t}</button>`;
|
|
981
981
|
}
|
|
982
982
|
let r = String(e.value) === String(this._value);
|
|
983
|
-
return `<button type="button" role="option" id="${
|
|
983
|
+
return `<button type="button" role="option" id="${Re(n)}" class="search-select-option${r ? " selected" : ""}" data-value="${Re(e.value)}" aria-selected="${r}">${Ie(e)}</button>`;
|
|
984
984
|
}).join(""), this._active = -1, t.control?.removeAttribute("aria-activedescendant");
|
|
985
985
|
let c = r.length < this._minChars;
|
|
986
|
-
t.hint && (t.hint.hidden = !(this._remote && c && !i.length)), t.empty && (t.empty.hidden = this._loading || o.length > 0 || this._remote && c);
|
|
986
|
+
t.hint && (t.hint.hidden = !(this._remote && c && !i.length)), t.empty && (t.empty.hidden = this._loading || o.length > 0 || this._remote && c), this._reanchor?.();
|
|
987
987
|
}
|
|
988
988
|
_wire() {
|
|
989
989
|
this._teardown();
|
|
990
990
|
let e = this._refs();
|
|
991
991
|
if (!e.control || !e.input) return;
|
|
992
|
-
let t = () =>
|
|
992
|
+
let t = () => Oe(e.control, e.menu, { matchWidth: !0 }), n = () => this._optionEls().filter((e) => !e.hidden), r = (t) => {
|
|
993
993
|
let r = n();
|
|
994
994
|
this._active = t;
|
|
995
995
|
for (let e of this._optionEls()) e.classList.remove("is-active");
|
|
@@ -1000,7 +1000,7 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
|
|
|
1000
1000
|
e.menu.hidden = !0, e.control.setAttribute("aria-expanded", "false"), e.control.classList.remove("open"), r(-1), clearTimeout(this._typeaheadTimer), this._typeaheadTimer = null, this._typeahead = "", this._syncInput();
|
|
1001
1001
|
}, s = (t) => {
|
|
1002
1002
|
let n = t.dataset.custom === "true";
|
|
1003
|
-
this._value = t.dataset.value, this._label = n ? t.dataset.value :
|
|
1003
|
+
this._value = t.dataset.value, this._label = n ? t.dataset.value : ze(t.innerHTML), G(this, this._value), e.input.value = this._label, this.dispatchEvent(new CustomEvent("change", {
|
|
1004
1004
|
bubbles: !0,
|
|
1005
1005
|
detail: { isCustom: n }
|
|
1006
1006
|
})), o(), e.input.focus();
|
|
@@ -1023,7 +1023,7 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
|
|
|
1023
1023
|
}, this._timer = setTimeout(() => this._fireSearch(t, e), this._debounceMs);
|
|
1024
1024
|
} else this._renderOptions(t);
|
|
1025
1025
|
};
|
|
1026
|
-
this._navHandler =
|
|
1026
|
+
this._navHandler = Ne({
|
|
1027
1027
|
getVisibleOptions: n,
|
|
1028
1028
|
getActive: () => this._active,
|
|
1029
1029
|
setActive: (e) => r(e),
|
|
@@ -1067,7 +1067,7 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
|
|
|
1067
1067
|
}), this._bindGlobal = () => {
|
|
1068
1068
|
this._teardown(), this._onDocClick = (e) => {
|
|
1069
1069
|
i() && !this.contains(e.target) && o();
|
|
1070
|
-
}, document.addEventListener("click", this._onDocClick),
|
|
1070
|
+
}, document.addEventListener("click", this._onDocClick), ke(this, () => {
|
|
1071
1071
|
i() && t();
|
|
1072
1072
|
});
|
|
1073
1073
|
}, this._bindGlobal();
|
|
@@ -1082,12 +1082,12 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
|
|
|
1082
1082
|
}));
|
|
1083
1083
|
}
|
|
1084
1084
|
_teardown() {
|
|
1085
|
-
this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null),
|
|
1085
|
+
this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), Ae(this), clearTimeout(this._timer), this._navHandler?.teardown();
|
|
1086
1086
|
}
|
|
1087
1087
|
disconnectedCallback() {
|
|
1088
1088
|
this._teardown();
|
|
1089
1089
|
}
|
|
1090
|
-
},
|
|
1090
|
+
}, Re = (e) => String(e ?? "").replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<"), ze = (e) => String(e ?? "").replace(/<[^>]*>/g, ""), Be = [
|
|
1091
1091
|
"January",
|
|
1092
1092
|
"February",
|
|
1093
1093
|
"March",
|
|
@@ -1100,7 +1100,7 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
|
|
|
1100
1100
|
"October",
|
|
1101
1101
|
"November",
|
|
1102
1102
|
"December"
|
|
1103
|
-
],
|
|
1103
|
+
], Ve = [
|
|
1104
1104
|
"Su",
|
|
1105
1105
|
"Mo",
|
|
1106
1106
|
"Tu",
|
|
@@ -1108,24 +1108,24 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
|
|
|
1108
1108
|
"Th",
|
|
1109
1109
|
"Fr",
|
|
1110
1110
|
"Sa"
|
|
1111
|
-
],
|
|
1111
|
+
], He = (e) => String(e).padStart(2, "0"), Ue = (e, t, n) => `${e}-${He(t + 1)}-${He(n)}`, J = (e) => {
|
|
1112
1112
|
let t = /^(\d{4})-(\d{2})-(\d{2})$/.exec(e || "");
|
|
1113
1113
|
return t ? {
|
|
1114
1114
|
y: +t[1],
|
|
1115
1115
|
m: t[2] - 1,
|
|
1116
1116
|
d: +t[3]
|
|
1117
1117
|
} : null;
|
|
1118
|
-
},
|
|
1118
|
+
}, We = (e) => {
|
|
1119
1119
|
let t = J(e);
|
|
1120
|
-
return t ? `${
|
|
1121
|
-
},
|
|
1120
|
+
return t ? `${He(t.d)} ${Be[t.m].slice(0, 3)} ${t.y}` : "";
|
|
1121
|
+
}, Ge = (e, t) => new Date(e, t + 1, 0).getDate(), Ke = (e, t) => {
|
|
1122
1122
|
for (; t < 0;) t += 12, --e;
|
|
1123
1123
|
for (; t > 11;) t -= 12, e += 1;
|
|
1124
1124
|
return {
|
|
1125
1125
|
y: e,
|
|
1126
1126
|
m: t
|
|
1127
1127
|
};
|
|
1128
|
-
},
|
|
1128
|
+
}, qe = class extends HTMLElement {
|
|
1129
1129
|
static formAssociated = !0;
|
|
1130
1130
|
static get observedAttributes() {
|
|
1131
1131
|
return [
|
|
@@ -1182,7 +1182,7 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
|
|
|
1182
1182
|
this.innerHTML = `
|
|
1183
1183
|
<div class="datepicker">
|
|
1184
1184
|
<button type="button" class="input datepicker-trigger${r}${t ? " has-value" : ""}" aria-haspopup="dialog" aria-expanded="false"${this.hasAttribute("disabled") ? " disabled" : ""}${i ? ` aria-label="${q(i)}"` : ""}${a ? ` aria-describedby="${q(a)}"` : ""}>
|
|
1185
|
-
<span data-trigger-label class="${t ? "" : "search-select-placeholder"}">${t ?
|
|
1185
|
+
<span data-trigger-label class="${t ? "" : "search-select-placeholder"}">${t ? We(this._value) : q(e)}</span>
|
|
1186
1186
|
${K("calendar-dots")}
|
|
1187
1187
|
</button>
|
|
1188
1188
|
<div class="datepicker-pop" role="dialog" aria-modal="false" hidden></div>
|
|
@@ -1195,7 +1195,7 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
|
|
|
1195
1195
|
let e = this.querySelector(".datepicker-trigger"), t = this.querySelector("[data-trigger-label]");
|
|
1196
1196
|
if (!t) return;
|
|
1197
1197
|
let n = J(this._value);
|
|
1198
|
-
t.textContent = n ?
|
|
1198
|
+
t.textContent = n ? We(this._value) : this.getAttribute("placeholder") || "Enter Date", t.classList.toggle("search-select-placeholder", !n), e?.classList.toggle("has-value", !!n);
|
|
1199
1199
|
}
|
|
1200
1200
|
_limits() {
|
|
1201
1201
|
let e = J(this.getAttribute("min")), t = J(this.getAttribute("max")), n = e ? new Date(e.y, e.m, e.d).getTime() : -Infinity, r = t ? new Date(t.y, t.m, t.d).getTime() : Infinity;
|
|
@@ -1206,7 +1206,7 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
|
|
|
1206
1206
|
},
|
|
1207
1207
|
monthDisabled: (e, t) => {
|
|
1208
1208
|
let i = new Date(e, t, 1).getTime();
|
|
1209
|
-
return new Date(e, t,
|
|
1209
|
+
return new Date(e, t, Ge(e, t)).getTime() < n || i > r;
|
|
1210
1210
|
},
|
|
1211
1211
|
yearDisabled: (e) => {
|
|
1212
1212
|
let t = new Date(e, 0, 1).getTime();
|
|
@@ -1219,28 +1219,28 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
|
|
|
1219
1219
|
e && (this._mode === "months" ? e.innerHTML = this._monthsHtml() : this._mode === "years" ? e.innerHTML = this._yearsHtml() : e.innerHTML = this._daysHtml(), this._focusActive());
|
|
1220
1220
|
}
|
|
1221
1221
|
_daysHtml() {
|
|
1222
|
-
let e = this._firstDay(), t = (new Date(this._viewY, this._viewM, 1).getDay() - e + 7) % 7, n =
|
|
1222
|
+
let e = this._firstDay(), t = (new Date(this._viewY, this._viewM, 1).getDay() - e + 7) % 7, n = Ge(this._viewY, this._viewM), r = J(this._value), i = /* @__PURE__ */ new Date(), { dayDisabled: a } = this._limits(), o = this._focus || r || {
|
|
1223
1223
|
y: this._viewY,
|
|
1224
1224
|
m: this._viewM,
|
|
1225
1225
|
d: 1
|
|
1226
1226
|
}, s = (e, t, n, s) => {
|
|
1227
|
-
let c =
|
|
1227
|
+
let c = Ue(e, t, n), l = r && r.y === e && r.m === t && r.d === n, u = i.getFullYear() === e && i.getMonth() === t && i.getDate() === n, d = o.y === e && o.m === t && o.d === n, f = a(e, t, n);
|
|
1228
1228
|
return `<button type="button" class="${[
|
|
1229
1229
|
"datepicker-day",
|
|
1230
1230
|
s ? "is-outside" : "",
|
|
1231
1231
|
u ? "is-today" : "",
|
|
1232
1232
|
l ? "is-selected" : ""
|
|
1233
1233
|
].filter(Boolean).join(" ")}" data-iso="${c}" role="gridcell" tabindex="${d && !f ? "0" : "-1"}"${l ? " aria-selected=\"true\"" : ""}${f ? " disabled aria-disabled=\"true\"" : ""}>${n}</button>`;
|
|
1234
|
-
}, c = "", l =
|
|
1234
|
+
}, c = "", l = Ke(this._viewY, this._viewM - 1), u = Ge(l.y, l.m);
|
|
1235
1235
|
for (let e = t - 1; e >= 0; e--) c += s(l.y, l.m, u - e, !0);
|
|
1236
1236
|
for (let e = 1; e <= n; e++) c += s(this._viewY, this._viewM, e, !1);
|
|
1237
|
-
let d =
|
|
1237
|
+
let d = Ke(this._viewY, this._viewM + 1), f = (7 - (t + n) % 7) % 7;
|
|
1238
1238
|
for (let e = 1; e <= f; e++) c += s(d.y, d.m, e, !0);
|
|
1239
|
-
let p =
|
|
1239
|
+
let p = Ve.map((t, n) => Ve[(n + e) % 7]).map((e) => `<span>${e}</span>`).join("");
|
|
1240
1240
|
return `
|
|
1241
1241
|
<div class="datepicker-head">
|
|
1242
1242
|
<button type="button" class="datepicker-nav-btn" data-nav="-1" aria-label="Previous month">${K("chevron-left")}</button>
|
|
1243
|
-
<button type="button" class="datepicker-month" data-view="months" aria-label="Choose month and year">${
|
|
1243
|
+
<button type="button" class="datepicker-month" data-view="months" aria-label="Choose month and year">${Be[this._viewM]} ${this._viewY}</button>
|
|
1244
1244
|
<button type="button" class="datepicker-nav-btn" data-nav="1" aria-label="Next month">${K("chevron-right")}</button>
|
|
1245
1245
|
</div>
|
|
1246
1246
|
<div class="datepicker-weekdays">${p}</div>
|
|
@@ -1258,7 +1258,7 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
|
|
|
1258
1258
|
o ? "is-today" : "",
|
|
1259
1259
|
a ? "is-selected" : ""
|
|
1260
1260
|
].filter(Boolean).join(" ");
|
|
1261
|
-
r += `<button type="button" class="${c}" data-month="${i}"${s ? " disabled" : ""}>${
|
|
1261
|
+
r += `<button type="button" class="${c}" data-month="${i}"${s ? " disabled" : ""}>${Be[i].slice(0, 3)}</button>`;
|
|
1262
1262
|
}
|
|
1263
1263
|
return `
|
|
1264
1264
|
<div class="datepicker-head">
|
|
@@ -1291,17 +1291,17 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
|
|
|
1291
1291
|
t && e.contains(document.activeElement) && t.focus();
|
|
1292
1292
|
}
|
|
1293
1293
|
_position(e, t) {
|
|
1294
|
-
|
|
1294
|
+
Oe(e, t);
|
|
1295
1295
|
}
|
|
1296
1296
|
_setFocus(e, t, n, r) {
|
|
1297
|
-
let { y: i, m: a } =
|
|
1297
|
+
let { y: i, m: a } = Ke(e, t);
|
|
1298
1298
|
this._focus = {
|
|
1299
1299
|
y: i,
|
|
1300
1300
|
m: a,
|
|
1301
1301
|
d: n
|
|
1302
1302
|
};
|
|
1303
1303
|
let o = i !== this._viewY || a !== this._viewM;
|
|
1304
|
-
this._viewY = i, this._viewM = a, this._slide = o && r || "", this._renderView(), this._slide = "", this.querySelector(`.datepicker-day[data-iso="${
|
|
1304
|
+
this._viewY = i, this._viewM = a, this._slide = o && r || "", this._renderView(), this._slide = "", this.querySelector(`.datepicker-day[data-iso="${Ue(i, a, n)}"]`)?.focus();
|
|
1305
1305
|
}
|
|
1306
1306
|
_onKey(e) {
|
|
1307
1307
|
if (this._mode !== "days") {
|
|
@@ -1326,17 +1326,17 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
|
|
|
1326
1326
|
case "End": return n(6 - (new Date(t.y, t.m, t.d).getDay() - this._firstDay() + 7) % 7, "slide-next");
|
|
1327
1327
|
case "PageUp": {
|
|
1328
1328
|
e.preventDefault();
|
|
1329
|
-
let n =
|
|
1330
|
-
return this._setFocus(n.y, n.m, Math.min(t.d,
|
|
1329
|
+
let n = Ke(t.y, t.m - (e.shiftKey ? 12 : 1));
|
|
1330
|
+
return this._setFocus(n.y, n.m, Math.min(t.d, Ge(n.y, n.m)), "slide-prev");
|
|
1331
1331
|
}
|
|
1332
1332
|
case "PageDown": {
|
|
1333
1333
|
e.preventDefault();
|
|
1334
|
-
let n =
|
|
1335
|
-
return this._setFocus(n.y, n.m, Math.min(t.d,
|
|
1334
|
+
let n = Ke(t.y, t.m + (e.shiftKey ? 12 : 1));
|
|
1335
|
+
return this._setFocus(n.y, n.m, Math.min(t.d, Ge(n.y, n.m)), "slide-next");
|
|
1336
1336
|
}
|
|
1337
1337
|
case "Enter":
|
|
1338
1338
|
case " ":
|
|
1339
|
-
e.preventDefault(), this._limits().dayDisabled(t.y, t.m, t.d) || (this.value =
|
|
1339
|
+
e.preventDefault(), this._limits().dayDisabled(t.y, t.m, t.d) || (this.value = Ue(t.y, t.m, t.d), this.dispatchEvent(new Event("change", { bubbles: !0 })), this._close());
|
|
1340
1340
|
return;
|
|
1341
1341
|
case "Escape": return this._close();
|
|
1342
1342
|
default:
|
|
@@ -1363,7 +1363,7 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
|
|
|
1363
1363
|
let t = e.target.closest("[data-nav]");
|
|
1364
1364
|
if (t) {
|
|
1365
1365
|
this._viewNavigated = !0, this._slide = Number(t.dataset.nav) < 0 ? "slide-prev" : "slide-next";
|
|
1366
|
-
let e =
|
|
1366
|
+
let e = Ke(this._viewY, this._viewM + Number(t.dataset.nav));
|
|
1367
1367
|
this._viewY = e.y, this._viewM = e.m, this._focus = {
|
|
1368
1368
|
y: e.y,
|
|
1369
1369
|
m: e.m,
|
|
@@ -1402,7 +1402,7 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
|
|
|
1402
1402
|
}
|
|
1403
1403
|
if (e.target.closest("[data-today]")) {
|
|
1404
1404
|
let e = /* @__PURE__ */ new Date();
|
|
1405
|
-
this.value =
|
|
1405
|
+
this.value = Ue(e.getFullYear(), e.getMonth(), e.getDate()), this.dispatchEvent(new Event("change", { bubbles: !0 })), this._close();
|
|
1406
1406
|
return;
|
|
1407
1407
|
}
|
|
1408
1408
|
if (e.target.closest("[data-clear]")) {
|
|
@@ -1419,18 +1419,18 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
|
|
|
1419
1419
|
this._popClick = !1, r() && !t && !this.contains(e.target) && this._close();
|
|
1420
1420
|
}, document.addEventListener("click", this._onDocClick), this._onDocKey = (e) => {
|
|
1421
1421
|
r() && e.key === "Escape" && this._close();
|
|
1422
|
-
}, document.addEventListener("keydown", this._onDocKey),
|
|
1422
|
+
}, document.addEventListener("keydown", this._onDocKey), ke(this, () => {
|
|
1423
1423
|
r() && this._position(e, t);
|
|
1424
1424
|
});
|
|
1425
1425
|
}, this._bindGlobal(), this._syncFormValue();
|
|
1426
1426
|
}
|
|
1427
1427
|
_teardown() {
|
|
1428
|
-
this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), this._onDocKey &&= (document.removeEventListener("keydown", this._onDocKey), null),
|
|
1428
|
+
this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), this._onDocKey &&= (document.removeEventListener("keydown", this._onDocKey), null), Ae(this);
|
|
1429
1429
|
}
|
|
1430
1430
|
disconnectedCallback() {
|
|
1431
1431
|
this._teardown();
|
|
1432
1432
|
}
|
|
1433
|
-
},
|
|
1433
|
+
}, Je = class extends HTMLElement {
|
|
1434
1434
|
static formAssociated = !0;
|
|
1435
1435
|
static get observedAttributes() {
|
|
1436
1436
|
return [
|
|
@@ -1489,7 +1489,7 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
|
|
|
1489
1489
|
text: e,
|
|
1490
1490
|
empty: !0
|
|
1491
1491
|
} : {
|
|
1492
|
-
text: `${
|
|
1492
|
+
text: `${We(this._start) || "Start"} – ${We(this._end) || "End"}`,
|
|
1493
1493
|
empty: !1
|
|
1494
1494
|
};
|
|
1495
1495
|
}
|
|
@@ -1536,17 +1536,17 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
|
|
|
1536
1536
|
};
|
|
1537
1537
|
}
|
|
1538
1538
|
_monthHtml(e, t) {
|
|
1539
|
-
let n = this._firstDay(), r = (new Date(e, t, 1).getDay() - n + 7) % 7, i =
|
|
1540
|
-
let i =
|
|
1539
|
+
let n = this._firstDay(), r = (new Date(e, t, 1).getDay() - n + 7) % 7, i = Ge(e, t), a = this._limits(), o = Ve.map((e, t) => Ve[(t + n) % 7]).map((e) => `<span>${e}</span>`).join(""), s = (e, t, n, r) => {
|
|
1540
|
+
let i = Ue(e, t, n), o = a(e, t, n);
|
|
1541
1541
|
return `<button type="button" class="${["datepicker-day", r ? "is-outside" : ""].filter(Boolean).join(" ")}" data-iso="${i}"${o ? " disabled" : ""}>${n}</button>`;
|
|
1542
|
-
}, c = "", l =
|
|
1542
|
+
}, c = "", l = Ke(e, t - 1), u = Ge(l.y, l.m);
|
|
1543
1543
|
for (let e = r - 1; e >= 0; e--) c += s(l.y, l.m, u - e, !0);
|
|
1544
1544
|
for (let n = 1; n <= i; n++) c += s(e, t, n, !1);
|
|
1545
|
-
let d =
|
|
1545
|
+
let d = Ke(e, t + 1), f = (7 - (r + i) % 7) % 7;
|
|
1546
1546
|
for (let e = 1; e <= f; e++) c += s(d.y, d.m, e, !0);
|
|
1547
1547
|
return `
|
|
1548
1548
|
<div class="daterange-cal">
|
|
1549
|
-
<div class="datepicker-month-label">${
|
|
1549
|
+
<div class="datepicker-month-label">${Be[t]} ${e}</div>
|
|
1550
1550
|
<div class="datepicker-weekdays">${o}</div>
|
|
1551
1551
|
<div class="datepicker-grid" role="grid">${c}</div>
|
|
1552
1552
|
</div>`;
|
|
@@ -1554,7 +1554,7 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
|
|
|
1554
1554
|
_renderView() {
|
|
1555
1555
|
let e = this.querySelector(".daterange-pop");
|
|
1556
1556
|
if (!e) return;
|
|
1557
|
-
let t =
|
|
1557
|
+
let t = Ke(this._viewY, this._viewM + 1);
|
|
1558
1558
|
e.innerHTML = `
|
|
1559
1559
|
<div class="daterange-head">
|
|
1560
1560
|
<button type="button" class="datepicker-nav-btn" data-nav="-1" aria-label="Previous month">${K("chevron-left")}</button>
|
|
@@ -1580,10 +1580,10 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
|
|
|
1580
1580
|
n.classList.toggle("is-range-start", i), n.classList.toggle("is-range-end", a), n.classList.toggle("in-range", o);
|
|
1581
1581
|
}
|
|
1582
1582
|
let i = e.querySelector("[data-range-hint]");
|
|
1583
|
-
i && (i.textContent = this._start ? this._end ? `${
|
|
1583
|
+
i && (i.textContent = this._start ? this._end ? `${We(this._start)} – ${We(this._end)}` : "Pick an end date" : "Pick a start date");
|
|
1584
1584
|
}
|
|
1585
1585
|
_position(e, t) {
|
|
1586
|
-
|
|
1586
|
+
Oe(e, t);
|
|
1587
1587
|
}
|
|
1588
1588
|
_pick(e) {
|
|
1589
1589
|
if (!this._start || this._start && this._end) {
|
|
@@ -1615,7 +1615,7 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
|
|
|
1615
1615
|
this._popClick = !0;
|
|
1616
1616
|
let t = e.target.closest("[data-nav]");
|
|
1617
1617
|
if (t) {
|
|
1618
|
-
let e =
|
|
1618
|
+
let e = Ke(this._viewY, this._viewM + Number(t.dataset.nav));
|
|
1619
1619
|
this._viewY = e.y, this._viewM = e.m, this._renderView();
|
|
1620
1620
|
return;
|
|
1621
1621
|
}
|
|
@@ -1634,18 +1634,18 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
|
|
|
1634
1634
|
this._popClick = !1, r() && !t && !this.contains(e.target) && this._close();
|
|
1635
1635
|
}, document.addEventListener("click", this._onDocClick), this._onDocKey = (e) => {
|
|
1636
1636
|
r() && e.key === "Escape" && this._close();
|
|
1637
|
-
}, document.addEventListener("keydown", this._onDocKey),
|
|
1637
|
+
}, document.addEventListener("keydown", this._onDocKey), ke(this, () => {
|
|
1638
1638
|
r() && this._position(e, t);
|
|
1639
1639
|
});
|
|
1640
1640
|
}, this._bindGlobal(), this._syncMirrors();
|
|
1641
1641
|
}
|
|
1642
1642
|
_teardown() {
|
|
1643
|
-
this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), this._onDocKey &&= (document.removeEventListener("keydown", this._onDocKey), null),
|
|
1643
|
+
this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), this._onDocKey &&= (document.removeEventListener("keydown", this._onDocKey), null), Ae(this);
|
|
1644
1644
|
}
|
|
1645
1645
|
disconnectedCallback() {
|
|
1646
1646
|
this._teardown();
|
|
1647
1647
|
}
|
|
1648
|
-
},
|
|
1648
|
+
}, Ye = class extends HTMLElement {
|
|
1649
1649
|
static get observedAttributes() {
|
|
1650
1650
|
return [
|
|
1651
1651
|
"static",
|
|
@@ -1666,10 +1666,10 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
|
|
|
1666
1666
|
e === "static" && this.isConnected && this._wire();
|
|
1667
1667
|
}
|
|
1668
1668
|
_maxScale() {
|
|
1669
|
-
return
|
|
1669
|
+
return Xe(this.getAttribute("max-scale"), 1.6);
|
|
1670
1670
|
}
|
|
1671
1671
|
_radius() {
|
|
1672
|
-
return
|
|
1672
|
+
return Xe(this.getAttribute("radius"), 100);
|
|
1673
1673
|
}
|
|
1674
1674
|
_magnifyEnabled() {
|
|
1675
1675
|
return !(this.hasAttribute("static") || typeof matchMedia == "function" && (matchMedia("(pointer: coarse)").matches || matchMedia("(prefers-reduced-motion: reduce)").matches));
|
|
@@ -1694,10 +1694,10 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
|
|
|
1694
1694
|
_teardown() {
|
|
1695
1695
|
this._pointerMoveListener &&= (this.removeEventListener("pointermove", this._pointerMoveListener), null), this._pointerLeaveListener &&= (this.removeEventListener("pointerleave", this._pointerLeaveListener), null), this._resetMagnification();
|
|
1696
1696
|
}
|
|
1697
|
-
},
|
|
1697
|
+
}, Xe = (e, t) => {
|
|
1698
1698
|
let n = Number.parseFloat(e);
|
|
1699
1699
|
return Number.isFinite(n) ? n : t;
|
|
1700
|
-
},
|
|
1700
|
+
}, Ze = class extends HTMLElement {
|
|
1701
1701
|
static formAssociated = !0;
|
|
1702
1702
|
_accessibleName() {
|
|
1703
1703
|
return this.getAttribute("aria-label") || this.getAttribute("placeholder") || "Select";
|
|
@@ -1775,7 +1775,7 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
|
|
|
1775
1775
|
value: e.getAttribute("value") ?? e.textContent.trim(),
|
|
1776
1776
|
label: e.innerHTML,
|
|
1777
1777
|
icon: e.getAttribute("icon") || void 0,
|
|
1778
|
-
[
|
|
1778
|
+
[Pe]: !0,
|
|
1779
1779
|
selected: e.hasAttribute("selected")
|
|
1780
1780
|
})));
|
|
1781
1781
|
}
|
|
@@ -1788,7 +1788,7 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
|
|
|
1788
1788
|
}
|
|
1789
1789
|
_labelHtmlFor(e) {
|
|
1790
1790
|
let t = this._readOptions().find((t) => String(t.value) === String(e));
|
|
1791
|
-
return t ?
|
|
1791
|
+
return t ? Ie(t) : q(e);
|
|
1792
1792
|
}
|
|
1793
1793
|
render() {
|
|
1794
1794
|
this._snapshotDeclared();
|
|
@@ -1797,13 +1797,13 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
|
|
|
1797
1797
|
let a = `${this.id}-listbox`;
|
|
1798
1798
|
this._listboxId = a, this.innerHTML = `
|
|
1799
1799
|
<div class="search-select${i}">
|
|
1800
|
-
<div class="input search-select-control search-select-multi" role="combobox" aria-haspopup="listbox" aria-expanded="false" aria-controls="${
|
|
1800
|
+
<div class="input search-select-control search-select-multi" role="combobox" aria-haspopup="listbox" aria-expanded="false" aria-controls="${Qe(a)}" aria-label="${Qe(this._accessibleName())}"${this.hasAttribute("aria-invalid") ? " aria-invalid=\"true\"" : ""}${this.hasAttribute("disabled") ? " aria-disabled=\"true\"" : " tabindex=\"0\""}>
|
|
1801
1801
|
${n ? K(n, { className: "search-select-icon" }) : ""}
|
|
1802
1802
|
<div class="ms-chips" data-chips></div>
|
|
1803
1803
|
${K("chevron-down", { className: "search-select-caret" })}
|
|
1804
1804
|
</div>
|
|
1805
|
-
<div class="search-select-menu search-select-menu-fixed" role="listbox" id="${
|
|
1806
|
-
${e ? `<div class="search-select-search">${K("search")}<input class="search-select-input" placeholder="${
|
|
1805
|
+
<div class="search-select-menu search-select-menu-fixed" role="listbox" id="${Qe(a)}" aria-multiselectable="true" tabindex="-1" hidden>
|
|
1806
|
+
${e ? `<div class="search-select-search">${K("search")}<input class="search-select-input" placeholder="${Qe(t)}" aria-autocomplete="list" /><button type="button" class="search-select-clear" aria-label="Clear search" hidden>${K("x")}</button></div>` : ""}
|
|
1807
1807
|
<div class="search-select-options"></div>
|
|
1808
1808
|
<div class="search-select-empty" hidden>No matches</div>
|
|
1809
1809
|
</div>
|
|
@@ -1817,7 +1817,7 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
|
|
|
1817
1817
|
e.innerHTML = `<span class="search-select-placeholder">${q(t)}</span>`;
|
|
1818
1818
|
return;
|
|
1819
1819
|
}
|
|
1820
|
-
e.innerHTML = this._values.map((e) => `<span class="chip chip-sm"><span class="chip-label">${this._labelHtmlFor(e)}</span><button type="button" class="chip-remove" data-remove="${
|
|
1820
|
+
e.innerHTML = this._values.map((e) => `<span class="chip chip-sm"><span class="chip-label">${this._labelHtmlFor(e)}</span><button type="button" class="chip-remove" data-remove="${Qe(e)}" aria-label="Remove ${Qe($e(this._labelFor(e)))}">${K("x")}</button></span>`).join(""), this._collapseChips();
|
|
1821
1821
|
}
|
|
1822
1822
|
_collapseChips() {
|
|
1823
1823
|
let e = this.querySelector("[data-chips]");
|
|
@@ -1841,18 +1841,18 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
|
|
|
1841
1841
|
let t = this.querySelector(".search-select-options"), n = this.querySelector(".search-select-empty");
|
|
1842
1842
|
if (!t) return;
|
|
1843
1843
|
let r = (e || "").trim().toLowerCase(), i = this._readOptions();
|
|
1844
|
-
r && (i = i.filter((e) =>
|
|
1844
|
+
r && (i = i.filter((e) => $e(e.label).toLowerCase().includes(r)));
|
|
1845
1845
|
let a = this._listboxId || `${this.id || "wui-multiselect"}-listbox`;
|
|
1846
1846
|
t.innerHTML = i.map((e, t) => {
|
|
1847
1847
|
let n = this._values.includes(String(e.value));
|
|
1848
|
-
return `<button type="button" role="option" id="${
|
|
1849
|
-
}).join(""), n && (n.hidden = i.length > 0), this._active = -1, this.querySelector(".search-select-control")?.removeAttribute("aria-activedescendant");
|
|
1848
|
+
return `<button type="button" role="option" id="${Qe(`${a}-opt-${t}`)}" class="search-select-option${n ? " selected" : ""}" data-value="${Qe(e.value)}" aria-selected="${n}"><span class="ms-opt-label">${Ie(e)}</span><span class="ms-check">${K("check")}</span></button>`;
|
|
1849
|
+
}).join(""), n && (n.hidden = i.length > 0), this._active = -1, this.querySelector(".search-select-control")?.removeAttribute("aria-activedescendant"), this._reanchor?.();
|
|
1850
1850
|
}
|
|
1851
1851
|
_wire() {
|
|
1852
1852
|
this._teardown();
|
|
1853
1853
|
let e = this.querySelector(".search-select-control"), t = this.querySelector(".search-select-menu"), n = this.querySelector(".search-select-input"), r = this.querySelector(".search-select-clear"), i = this.querySelector(".search-select-options");
|
|
1854
1854
|
if (!e || !t) return;
|
|
1855
|
-
let a = () => this.hasAttribute("disabled"), o = () =>
|
|
1855
|
+
let a = () => this.hasAttribute("disabled"), o = () => Oe(e, t, { matchWidth: !0 }), s = () => [...this.querySelectorAll(".search-select-option")], c = () => s().filter((e) => !e.hidden), l = (t) => {
|
|
1856
1856
|
let n = c();
|
|
1857
1857
|
this._active = t;
|
|
1858
1858
|
for (let e of s()) e.classList.remove("is-active");
|
|
@@ -1885,7 +1885,7 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
|
|
|
1885
1885
|
t && l(c().indexOf(t));
|
|
1886
1886
|
}), i.addEventListener("mouseleave", () => l(-1)), n?.addEventListener("input", () => {
|
|
1887
1887
|
this._renderOptions(n.value), r && (r.hidden = !n.value), l(-1);
|
|
1888
|
-
}), this._navHandler =
|
|
1888
|
+
}), this._navHandler = Ne({
|
|
1889
1889
|
getVisibleOptions: c,
|
|
1890
1890
|
getActive: () => this._active,
|
|
1891
1891
|
setActive: (e) => l(e),
|
|
@@ -1914,18 +1914,18 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
|
|
|
1914
1914
|
}), this._bindGlobal = () => {
|
|
1915
1915
|
this._teardown(), !this._ro && typeof ResizeObserver < "u" && (this._ro = new ResizeObserver(() => this._collapseChips()), this._ro.observe(this)), this._onDocClick = (e) => {
|
|
1916
1916
|
u() && !this.contains(e.target) && f();
|
|
1917
|
-
}, document.addEventListener("click", this._onDocClick),
|
|
1917
|
+
}, document.addEventListener("click", this._onDocClick), ke(this, () => {
|
|
1918
1918
|
u() && o();
|
|
1919
1919
|
});
|
|
1920
1920
|
}, this._bindGlobal();
|
|
1921
1921
|
}
|
|
1922
1922
|
_teardown() {
|
|
1923
|
-
this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null),
|
|
1923
|
+
this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), Ae(this), this._navHandler?.teardown();
|
|
1924
1924
|
}
|
|
1925
1925
|
disconnectedCallback() {
|
|
1926
1926
|
this._teardown(), this._ro?.disconnect(), this._ro = null;
|
|
1927
1927
|
}
|
|
1928
|
-
},
|
|
1928
|
+
}, Qe = (e) => String(e ?? "").replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<"), $e = (e) => String(e ?? "").replace(/<[^>]*>/g, ""), et = /[^0-9]/g, tt = /[^0-9a-zA-Z]/g, nt = class extends HTMLElement {
|
|
1929
1929
|
static formAssociated = !0;
|
|
1930
1930
|
static get observedAttributes() {
|
|
1931
1931
|
return [
|
|
@@ -1956,7 +1956,7 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
|
|
|
1956
1956
|
this._value = this._clean(e), G(this, this._value), this._paint();
|
|
1957
1957
|
}
|
|
1958
1958
|
_clean(e) {
|
|
1959
|
-
return (e == null ? "" : String(e)).replace(this.mode === "alphanumeric" ?
|
|
1959
|
+
return (e == null ? "" : String(e)).replace(this.mode === "alphanumeric" ? tt : et, "").slice(0, this.length);
|
|
1960
1960
|
}
|
|
1961
1961
|
constructor() {
|
|
1962
1962
|
super();
|
|
@@ -2047,7 +2047,7 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
|
|
|
2047
2047
|
disconnectedCallback() {
|
|
2048
2048
|
this._onSelectionChange && document.removeEventListener("selectionchange", this._onSelectionChange);
|
|
2049
2049
|
}
|
|
2050
|
-
},
|
|
2050
|
+
}, rt = [
|
|
2051
2051
|
[
|
|
2052
2052
|
"AF",
|
|
2053
2053
|
"Afghanistan",
|
|
@@ -3273,20 +3273,20 @@ var Me = Symbol("wui.trustedHtml"), q = (e) => String(e ?? "").replace(/&/g, "&a
|
|
|
3273
3273
|
"Zimbabwe",
|
|
3274
3274
|
"263"
|
|
3275
3275
|
]
|
|
3276
|
-
],
|
|
3276
|
+
], it = (e) => (rt.find((t) => t[0] === e) || [
|
|
3277
3277
|
"",
|
|
3278
3278
|
"",
|
|
3279
3279
|
""
|
|
3280
|
-
])[2],
|
|
3281
|
-
function
|
|
3282
|
-
return Y ? Promise.resolve(Y) : (
|
|
3280
|
+
])[2], at = (e) => `wui-flag wui-flag-${String(e).toLowerCase()}`, Y = null, ot = null;
|
|
3281
|
+
function st() {
|
|
3282
|
+
return Y ? Promise.resolve(Y) : (ot ||= Promise.all([import("./libphonenumber-js-BcNT8oq0-DMpMlice.js"), import("./examples.mobile.json-BMXTGiGC-Dl_Tt3py.js")]).then(([e, t]) => (Y = {
|
|
3283
3283
|
AsYouType: e.AsYouType,
|
|
3284
3284
|
getExampleNumber: e.getExampleNumber,
|
|
3285
3285
|
isValidPhoneNumber: e.isValidPhoneNumber,
|
|
3286
3286
|
examples: t.default || t
|
|
3287
|
-
}, Y)).catch(() => null),
|
|
3287
|
+
}, Y)).catch(() => null), ot);
|
|
3288
3288
|
}
|
|
3289
|
-
function
|
|
3289
|
+
function ct(e, t) {
|
|
3290
3290
|
if (!Y || !t) return t;
|
|
3291
3291
|
try {
|
|
3292
3292
|
return new Y.AsYouType(e).input(t);
|
|
@@ -3294,7 +3294,7 @@ function ot(e, t) {
|
|
|
3294
3294
|
return t;
|
|
3295
3295
|
}
|
|
3296
3296
|
}
|
|
3297
|
-
function
|
|
3297
|
+
function lt(e) {
|
|
3298
3298
|
if (!Y) return null;
|
|
3299
3299
|
try {
|
|
3300
3300
|
return Y.getExampleNumber(e, Y.examples)?.formatNational() || null;
|
|
@@ -3302,7 +3302,7 @@ function st(e) {
|
|
|
3302
3302
|
return null;
|
|
3303
3303
|
}
|
|
3304
3304
|
}
|
|
3305
|
-
function
|
|
3305
|
+
function ut(e) {
|
|
3306
3306
|
if (!Y || !e) return null;
|
|
3307
3307
|
try {
|
|
3308
3308
|
return Y.isValidPhoneNumber(e);
|
|
@@ -3310,7 +3310,7 @@ function ct(e) {
|
|
|
3310
3310
|
return null;
|
|
3311
3311
|
}
|
|
3312
3312
|
}
|
|
3313
|
-
function
|
|
3313
|
+
function dt(e) {
|
|
3314
3314
|
if (!Y) return null;
|
|
3315
3315
|
try {
|
|
3316
3316
|
let t = Y.getExampleNumber(e, Y.examples);
|
|
@@ -3319,7 +3319,7 @@ function lt(e) {
|
|
|
3319
3319
|
return null;
|
|
3320
3320
|
}
|
|
3321
3321
|
}
|
|
3322
|
-
function
|
|
3322
|
+
function ft(e) {
|
|
3323
3323
|
if (!Y || !e?.trim().startsWith("+")) return null;
|
|
3324
3324
|
try {
|
|
3325
3325
|
let t = new Y.AsYouType();
|
|
@@ -3333,7 +3333,7 @@ function ut(e) {
|
|
|
3333
3333
|
return null;
|
|
3334
3334
|
}
|
|
3335
3335
|
}
|
|
3336
|
-
var
|
|
3336
|
+
var pt = class extends HTMLElement {
|
|
3337
3337
|
static formAssociated = !0;
|
|
3338
3338
|
static get observedAttributes() {
|
|
3339
3339
|
return [
|
|
@@ -3373,13 +3373,13 @@ var dt = class extends HTMLElement {
|
|
|
3373
3373
|
this.value = this._defaultValue || "";
|
|
3374
3374
|
}
|
|
3375
3375
|
get value() {
|
|
3376
|
-
return this._national ? `+${
|
|
3376
|
+
return this._national ? `+${it(this._country)}${this._national}` : "";
|
|
3377
3377
|
}
|
|
3378
3378
|
set value(e) {
|
|
3379
|
-
let t = String(e ?? "").trim(), n =
|
|
3379
|
+
let t = String(e ?? "").trim(), n = ft(t);
|
|
3380
3380
|
if (n) this._country = n.country, this._national = n.national.replace(/[^0-9]/g, "");
|
|
3381
3381
|
else if (t.startsWith("+")) {
|
|
3382
|
-
let e = t.replace(/[^0-9]/g, ""), n = String(
|
|
3382
|
+
let e = t.replace(/[^0-9]/g, ""), n = String(it(this._country));
|
|
3383
3383
|
n && e.startsWith(n) && (e = e.slice(n.length)), this._national = e;
|
|
3384
3384
|
} else this._national = t.replace(/[^0-9]/g, "");
|
|
3385
3385
|
n && this.getAttribute("country") !== this._country ? this.setAttribute("country", this._country) : this._rendered && this.render(), this._committedValue = this.value, this._syncMirror();
|
|
@@ -3395,25 +3395,25 @@ var dt = class extends HTMLElement {
|
|
|
3395
3395
|
}
|
|
3396
3396
|
render() {
|
|
3397
3397
|
this._defaultValue === void 0 && (this._defaultValue = this.getAttribute("value") || ""), this._country = this.getAttribute("country") || this._country;
|
|
3398
|
-
let e = this.getAttribute("placeholder") ||
|
|
3398
|
+
let e = this.getAttribute("placeholder") || lt(this._country) || "Enter phone number";
|
|
3399
3399
|
this.id ||= `wui-phone-${Math.random().toString(36).slice(2, 9)}`;
|
|
3400
3400
|
let t = `${this.id}-listbox`;
|
|
3401
3401
|
this._listboxId = t;
|
|
3402
|
-
let n =
|
|
3402
|
+
let n = rt.map(([e, n, r], i) => `<button type="button" role="option" id="${mt(`${t}-opt-${i}`)}" class="country-dropdown-item${e === this._country ? " selected" : ""}" data-iso="${e}" aria-selected="${e === this._country}"><span class="${at(e)}" aria-hidden="true"></span><span class="country-name-text">${n}<span class="country-code-text">+${r}</span></span></button>`).join("");
|
|
3403
3403
|
this.innerHTML = `
|
|
3404
3404
|
<div class="phone-input-wrap">
|
|
3405
3405
|
<div class="phone-country-adornment">
|
|
3406
|
-
<button type="button" class="country-toggle" aria-label="Choose country" aria-haspopup="listbox" aria-expanded="false" aria-controls="${
|
|
3407
|
-
<span class="${
|
|
3406
|
+
<button type="button" class="country-toggle" aria-label="Choose country" aria-haspopup="listbox" aria-expanded="false" aria-controls="${mt(t)}"${this.hasAttribute("disabled") ? " disabled" : ""}>
|
|
3407
|
+
<span class="${at(this._country)}" data-flag aria-hidden="true"></span>
|
|
3408
3408
|
${K("chevron-down", { className: "phone-chevron" })}
|
|
3409
|
-
<span class="phone-dial" data-dial>+${
|
|
3409
|
+
<span class="phone-dial" data-dial>+${it(this._country)}</span>
|
|
3410
3410
|
</button>
|
|
3411
|
-
<div class="country-dropdown-menu" role="listbox" id="${
|
|
3412
|
-
<div class="dropdown-search-wrapper"><span class="dropdown-search-icon">${K("search")}</span><input type="text" class="dropdown-search-input" placeholder="Search country or code" aria-label="Search countries" aria-controls="${
|
|
3411
|
+
<div class="country-dropdown-menu" role="listbox" id="${mt(t)}" tabindex="-1" hidden>
|
|
3412
|
+
<div class="dropdown-search-wrapper"><span class="dropdown-search-icon">${K("search")}</span><input type="text" class="dropdown-search-input" placeholder="Search country or code" aria-label="Search countries" aria-controls="${mt(t)}" aria-autocomplete="list" /></div>
|
|
3413
3413
|
<div class="country-list-scroll">${n}<div class="country-empty" hidden>No countries found</div></div>
|
|
3414
3414
|
</div>
|
|
3415
3415
|
</div>
|
|
3416
|
-
<input type="tel" class="input" placeholder="${
|
|
3416
|
+
<input type="tel" class="input" placeholder="${mt(e)}" value="${mt(ct(this._country, this._national))}"${this.getAttribute("aria-label") ? ` aria-label="${mt(this.getAttribute("aria-label"))}"` : ""}${this.getAttribute("aria-describedby") ? ` aria-describedby="${mt(this.getAttribute("aria-describedby"))}"` : ""}${this.hasAttribute("required") ? " required aria-required=\"true\"" : ""}${this.hasAttribute("disabled") ? " disabled" : ""} />
|
|
3417
3417
|
</div>
|
|
3418
3418
|
<div class="field-error" data-phone-error hidden></div>`, this._rendered = !0, G(this, this.value), this._wire();
|
|
3419
3419
|
}
|
|
@@ -3427,7 +3427,7 @@ var dt = class extends HTMLElement {
|
|
|
3427
3427
|
this._teardown();
|
|
3428
3428
|
let e = this.querySelector(".country-toggle"), t = this.querySelector(".phone-input-wrap"), n = this.querySelector(".country-dropdown-menu"), r = this.querySelector(".dropdown-search-input"), i = this.querySelector(".country-list-scroll"), a = this.querySelector(".country-empty"), o = this.querySelector("input[type=tel]"), s = this.querySelector("[data-flag]"), c = this.querySelector("[data-dial]");
|
|
3429
3429
|
if (!e || !n) return;
|
|
3430
|
-
let l = () => !n.hidden, u = () =>
|
|
3430
|
+
let l = () => !n.hidden, u = () => Oe(t || e, n), d = (e) => {
|
|
3431
3431
|
let t = this._visibleItems();
|
|
3432
3432
|
this._active = e;
|
|
3433
3433
|
for (let e of this._itemEls()) e.classList.remove("is-active");
|
|
@@ -3444,12 +3444,12 @@ var dt = class extends HTMLElement {
|
|
|
3444
3444
|
}
|
|
3445
3445
|
a && (a.hidden = n > 0);
|
|
3446
3446
|
}, h = (e) => {
|
|
3447
|
-
this._country = e, this.getAttribute("country") !== e && (this._suppressCountryRender = !0, this.setAttribute("country", e), this._suppressCountryRender = !1), s && (s.className =
|
|
3447
|
+
this._country = e, this.getAttribute("country") !== e && (this._suppressCountryRender = !0, this.setAttribute("country", e), this._suppressCountryRender = !1), s && (s.className = at(e)), c && (c.textContent = `+${it(e)}`);
|
|
3448
3448
|
for (let t of this._itemEls()) {
|
|
3449
3449
|
let n = t.dataset.iso === e;
|
|
3450
3450
|
t.classList.toggle("selected", n), t.setAttribute("aria-selected", String(n));
|
|
3451
3451
|
}
|
|
3452
|
-
!this.getAttribute("placeholder") && o && (o.placeholder =
|
|
3452
|
+
!this.getAttribute("placeholder") && o && (o.placeholder = lt(e) || "Enter phone number"), o && this._national && (o.value = ct(e, this._national)), p(), this._syncMirror(), this._emitChange(), o?.focus();
|
|
3453
3453
|
}, g = (t) => {
|
|
3454
3454
|
let n = this._visibleItems();
|
|
3455
3455
|
if (t.key === "ArrowDown") {
|
|
@@ -3483,7 +3483,7 @@ var dt = class extends HTMLElement {
|
|
|
3483
3483
|
let _ = this.querySelector("[data-phone-error]"), v = (e) => {
|
|
3484
3484
|
if (o.classList.toggle("is-invalid", e), e ? o.setAttribute("aria-invalid", "true") : o.removeAttribute("aria-invalid"), _) {
|
|
3485
3485
|
if (e) {
|
|
3486
|
-
let e =
|
|
3486
|
+
let e = lt(this._country);
|
|
3487
3487
|
_.textContent = e ? `Enter a valid phone number, e.g. ${e}` : "Enter a valid phone number";
|
|
3488
3488
|
}
|
|
3489
3489
|
_.hidden = !e;
|
|
@@ -3491,26 +3491,26 @@ var dt = class extends HTMLElement {
|
|
|
3491
3491
|
};
|
|
3492
3492
|
o.addEventListener("input", (e) => {
|
|
3493
3493
|
e.stopPropagation();
|
|
3494
|
-
let t = o.value.replace(/[^0-9]/g, ""), n =
|
|
3494
|
+
let t = o.value.replace(/[^0-9]/g, ""), n = dt(this._country);
|
|
3495
3495
|
n && t.length > n && (t = t.slice(0, n)), this._national = t;
|
|
3496
|
-
let r =
|
|
3497
|
-
o.value !== r && (o.value = r), this._syncMirror(), this._emitInput(), o.classList.contains("is-invalid") && (!this._national ||
|
|
3496
|
+
let r = ct(this._country, this._national);
|
|
3497
|
+
o.value !== r && (o.value = r), this._syncMirror(), this._emitInput(), o.classList.contains("is-invalid") && (!this._national || ut(this.value) === !0) && v(!1);
|
|
3498
3498
|
}), o.addEventListener("change", (e) => e.stopPropagation()), o.addEventListener("blur", () => {
|
|
3499
|
-
v(this._national.length > 0 &&
|
|
3499
|
+
v(this._national.length > 0 && ut(this.value) === !1), this.value !== this._committedValue && this._emitChange();
|
|
3500
3500
|
}), o.addEventListener("paste", (e) => {
|
|
3501
|
-
let t =
|
|
3502
|
-
t && (e.preventDefault(), this._national = t.national.replace(/[^0-9]/g, ""), t.country === this._country ? o.value =
|
|
3501
|
+
let t = ft(e.clipboardData?.getData("text"));
|
|
3502
|
+
t && (e.preventDefault(), this._national = t.national.replace(/[^0-9]/g, ""), t.country === this._country ? o.value = ct(this._country, this._national) : this.setAttribute("country", t.country), this._syncMirror(), this._emitInput(), this._emitChange(), this.querySelector("input[type=tel]")?.focus());
|
|
3503
3503
|
}), this._bindGlobal = () => {
|
|
3504
3504
|
this._teardownGlobals?.(), this._onDocClick = (e) => {
|
|
3505
3505
|
l() && !this.contains(e.target) && p();
|
|
3506
|
-
}, document.addEventListener("click", this._onDocClick),
|
|
3506
|
+
}, document.addEventListener("click", this._onDocClick), ke(this, () => {
|
|
3507
3507
|
l() && u();
|
|
3508
3508
|
});
|
|
3509
3509
|
}, this._teardownGlobals = () => {
|
|
3510
|
-
this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null),
|
|
3511
|
-
}, this._bindGlobal(),
|
|
3512
|
-
if (!(!e || !o.isConnected) && (this._national && (o.value =
|
|
3513
|
-
let e =
|
|
3510
|
+
this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), Ae(this);
|
|
3511
|
+
}, this._bindGlobal(), st().then((e) => {
|
|
3512
|
+
if (!(!e || !o.isConnected) && (this._national && (o.value = ct(this._country, this._national)), !this.getAttribute("placeholder"))) {
|
|
3513
|
+
let e = lt(this._country);
|
|
3514
3514
|
e && (o.placeholder = e);
|
|
3515
3515
|
}
|
|
3516
3516
|
}), this._syncMirror();
|
|
@@ -3521,7 +3521,7 @@ var dt = class extends HTMLElement {
|
|
|
3521
3521
|
disconnectedCallback() {
|
|
3522
3522
|
this._teardown();
|
|
3523
3523
|
}
|
|
3524
|
-
},
|
|
3524
|
+
}, mt = (e) => String(e ?? "").replace(/"/g, """).replace(/</g, "<"), ht = class extends HTMLElement {
|
|
3525
3525
|
static formAssociated = !0;
|
|
3526
3526
|
static get observedAttributes() {
|
|
3527
3527
|
return [
|
|
@@ -3595,7 +3595,7 @@ var dt = class extends HTMLElement {
|
|
|
3595
3595
|
value: e.getAttribute("value") ?? e.textContent.trim(),
|
|
3596
3596
|
label: e.innerHTML,
|
|
3597
3597
|
icon: e.getAttribute("icon") || void 0,
|
|
3598
|
-
[
|
|
3598
|
+
[Pe]: !0,
|
|
3599
3599
|
selected: e.hasAttribute("selected")
|
|
3600
3600
|
})));
|
|
3601
3601
|
}
|
|
@@ -3610,19 +3610,19 @@ var dt = class extends HTMLElement {
|
|
|
3610
3610
|
this._listboxId = u;
|
|
3611
3611
|
let d = e.map((e, t) => {
|
|
3612
3612
|
let n = String(e.value) === String(this._value);
|
|
3613
|
-
return `<button type="button" role="option" id="${
|
|
3613
|
+
return `<button type="button" role="option" id="${gt(`${u}-opt-${t}`)}" class="search-select-option${n ? " selected" : ""}" data-value="${gt(e.value)}" aria-selected="${n}">${Ie(e)}</button>`;
|
|
3614
3614
|
}).join("");
|
|
3615
3615
|
this.innerHTML = `
|
|
3616
3616
|
<div class="search-select${this.hasAttribute("compact") ? " search-select-compact" : ""}${i}">
|
|
3617
|
-
<button type="button" role="combobox" class="input search-select-control" aria-haspopup="listbox" aria-expanded="false" aria-controls="${
|
|
3617
|
+
<button type="button" role="combobox" class="input search-select-control" aria-haspopup="listbox" aria-expanded="false" aria-controls="${gt(u)}" aria-label="${gt(this._accessibleName())}"${this.hasAttribute("aria-invalid") ? " aria-invalid=\"true\"" : ""}${this.hasAttribute("disabled") ? " disabled" : ""}>
|
|
3618
3618
|
${a ? K(a, { className: "search-select-icon" }) : ""}
|
|
3619
3619
|
${o ? `<span class="search-select-prefix">${q(o)}</span>` : ""}
|
|
3620
|
-
<span class="${l ? "" : "search-select-placeholder"}" data-label>${l ?
|
|
3620
|
+
<span class="${l ? "" : "search-select-placeholder"}" data-label>${l ? Ie(l) : q(s)}</span>
|
|
3621
3621
|
${n ? `<span class="search-select-reset" role="button" aria-label="Clear selection" hidden>${K("x")}</span>` : ""}
|
|
3622
3622
|
${K("chevron-down", { className: "search-select-caret" })}
|
|
3623
3623
|
</button>
|
|
3624
|
-
<div class="search-select-menu search-select-menu-fixed" role="listbox" id="${
|
|
3625
|
-
${t ? `<div class="search-select-search">${K("search")}<input class="search-select-input" placeholder="${
|
|
3624
|
+
<div class="search-select-menu search-select-menu-fixed" role="listbox" id="${gt(u)}" tabindex="-1" hidden>
|
|
3625
|
+
${t ? `<div class="search-select-search">${K("search")}<input class="search-select-input" placeholder="${gt(c)}" aria-autocomplete="list" /><button type="button" class="search-select-clear" aria-label="Clear search" hidden>${K("x")}</button></div>` : ""}
|
|
3626
3626
|
<div class="search-select-options">${d}<div class="search-select-empty" hidden>No matches</div></div>
|
|
3627
3627
|
</div>
|
|
3628
3628
|
</div>`, this._rendered = !0, G(this, this._value), this._wire(), this._syncReset();
|
|
@@ -3651,7 +3651,7 @@ var dt = class extends HTMLElement {
|
|
|
3651
3651
|
let t = e.dataset.value === String(this._value);
|
|
3652
3652
|
e.classList.toggle("selected", t), e.setAttribute("aria-selected", String(t));
|
|
3653
3653
|
}
|
|
3654
|
-
e && (e.innerHTML = t ?
|
|
3654
|
+
e && (e.innerHTML = t ? Ie(t) : q(this.getAttribute("placeholder") || "Select..."), e.classList.toggle("search-select-placeholder", !t));
|
|
3655
3655
|
}
|
|
3656
3656
|
_syncReset() {
|
|
3657
3657
|
let { reset: e } = this._refs();
|
|
@@ -3664,20 +3664,20 @@ var dt = class extends HTMLElement {
|
|
|
3664
3664
|
let t = () => {
|
|
3665
3665
|
if (this.hasAttribute("compact")) {
|
|
3666
3666
|
let t = e.control.getBoundingClientRect();
|
|
3667
|
-
e.menu.style.width = "max-content", e.menu.style.minWidth = `${t.width}px`, e.menu.style.maxWidth = "280px",
|
|
3668
|
-
} else
|
|
3667
|
+
e.menu.style.width = "max-content", e.menu.style.minWidth = `${t.width}px`, e.menu.style.maxWidth = "280px", Oe(e.control, e.menu);
|
|
3668
|
+
} else Oe(e.control, e.menu, { matchWidth: !0 });
|
|
3669
3669
|
}, n = (t) => {
|
|
3670
3670
|
let n = this._visible();
|
|
3671
3671
|
this._active = t;
|
|
3672
3672
|
for (let e of this._optionEls()) e.classList.remove("is-active");
|
|
3673
3673
|
t >= 0 && n[t] ? (n[t].classList.add("is-active"), n[t].scrollIntoView({ block: "nearest" }), e.control.setAttribute("aria-activedescendant", n[t].id)) : e.control.removeAttribute("aria-activedescendant");
|
|
3674
|
-
}, r = (
|
|
3675
|
-
let
|
|
3674
|
+
}, r = (n) => {
|
|
3675
|
+
let r = n.trim().toLowerCase(), i = 0;
|
|
3676
3676
|
for (let e of this._optionEls()) {
|
|
3677
|
-
let t = !
|
|
3678
|
-
e.hidden = !t, t && (
|
|
3677
|
+
let t = !r || e.textContent.toLowerCase().includes(r);
|
|
3678
|
+
e.hidden = !t, t && (i += 1);
|
|
3679
3679
|
}
|
|
3680
|
-
e.empty && (e.empty.hidden =
|
|
3680
|
+
e.empty && (e.empty.hidden = i > 0), e.clear && (e.clear.hidden = !r), e.menu.hidden || t();
|
|
3681
3681
|
}, i = () => !e.menu.hidden, a = () => {
|
|
3682
3682
|
e.menu.hidden = !1, e.control.setAttribute("aria-expanded", "true"), e.control.classList.add("open"), t(), e.search && (e.search.value = "", r(""), e.search.focus()), n(this._optionEls().findIndex((e) => e.classList.contains("selected")));
|
|
3683
3683
|
}, o = () => {
|
|
@@ -3685,7 +3685,7 @@ var dt = class extends HTMLElement {
|
|
|
3685
3685
|
}, s = (t) => {
|
|
3686
3686
|
this.value = t.dataset.value, this.dispatchEvent(new Event("change", { bubbles: !0 })), o(), e.control.focus();
|
|
3687
3687
|
};
|
|
3688
|
-
this._navHandler =
|
|
3688
|
+
this._navHandler = Ne({
|
|
3689
3689
|
getVisibleOptions: () => this._visible(),
|
|
3690
3690
|
getActive: () => this._active,
|
|
3691
3691
|
setActive: (e) => n(e),
|
|
@@ -3716,18 +3716,18 @@ var dt = class extends HTMLElement {
|
|
|
3716
3716
|
}), e.menu.addEventListener("keydown", this._navHandler.handler), this._bindGlobal = () => {
|
|
3717
3717
|
this._teardown(), this._onDocClick = (e) => {
|
|
3718
3718
|
i() && !this.contains(e.target) && o();
|
|
3719
|
-
}, document.addEventListener("click", this._onDocClick),
|
|
3719
|
+
}, document.addEventListener("click", this._onDocClick), ke(this, () => {
|
|
3720
3720
|
i() && t();
|
|
3721
3721
|
});
|
|
3722
3722
|
}, this._bindGlobal();
|
|
3723
3723
|
}
|
|
3724
3724
|
_teardown() {
|
|
3725
|
-
this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null),
|
|
3725
|
+
this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), Ae(this), this._navHandler?.teardown();
|
|
3726
3726
|
}
|
|
3727
3727
|
disconnectedCallback() {
|
|
3728
3728
|
this._teardown();
|
|
3729
3729
|
}
|
|
3730
|
-
},
|
|
3730
|
+
}, gt = (e) => String(e ?? "").replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<"), _t = class extends HTMLElement {
|
|
3731
3731
|
static formAssociated = !0;
|
|
3732
3732
|
static get observedAttributes() {
|
|
3733
3733
|
return [
|
|
@@ -3767,19 +3767,19 @@ var dt = class extends HTMLElement {
|
|
|
3767
3767
|
return this._value;
|
|
3768
3768
|
}
|
|
3769
3769
|
set value(e) {
|
|
3770
|
-
this._value = this._snapToStep(this._clamp(
|
|
3770
|
+
this._value = this._snapToStep(this._clamp(vt(e, this._value))), this._syncValue(), this._syncMirrors();
|
|
3771
3771
|
}
|
|
3772
3772
|
get start() {
|
|
3773
3773
|
return this._start;
|
|
3774
3774
|
}
|
|
3775
3775
|
set start(e) {
|
|
3776
|
-
this._start = Math.min(this._snapToStep(this._clamp(
|
|
3776
|
+
this._start = Math.min(this._snapToStep(this._clamp(vt(e, this._start))), this._end), this._syncValue(), this._syncMirrors();
|
|
3777
3777
|
}
|
|
3778
3778
|
get end() {
|
|
3779
3779
|
return this._end;
|
|
3780
3780
|
}
|
|
3781
3781
|
set end(e) {
|
|
3782
|
-
this._end = Math.max(this._snapToStep(this._clamp(
|
|
3782
|
+
this._end = Math.max(this._snapToStep(this._clamp(vt(e, this._end))), this._start), this._syncValue(), this._syncMirrors();
|
|
3783
3783
|
}
|
|
3784
3784
|
attributeChangedCallback(e, t, n) {
|
|
3785
3785
|
if (e === "value" || e === "start" || e === "end" || e === "min" || e === "max" || e === "step") {
|
|
@@ -3792,19 +3792,19 @@ var dt = class extends HTMLElement {
|
|
|
3792
3792
|
this._isRange() ? this._resetRange() : this._resetSingle();
|
|
3793
3793
|
}
|
|
3794
3794
|
_updateFromAttribute(e) {
|
|
3795
|
-
e === "value" ? this._value = this._snapToStep(this._clamp(
|
|
3795
|
+
e === "value" ? this._value = this._snapToStep(this._clamp(vt(this.getAttribute("value"), this._value))) : e === "start" ? this._start = this._snapToStep(this._clamp(vt(this.getAttribute("start"), this._start))) : e === "end" && (this._end = this._snapToStep(this._clamp(vt(this.getAttribute("end"), this._end))));
|
|
3796
3796
|
}
|
|
3797
3797
|
_isRange() {
|
|
3798
3798
|
return this.hasAttribute("range");
|
|
3799
3799
|
}
|
|
3800
3800
|
_min() {
|
|
3801
|
-
return
|
|
3801
|
+
return vt(this.getAttribute("min"), 0);
|
|
3802
3802
|
}
|
|
3803
3803
|
_max() {
|
|
3804
|
-
return
|
|
3804
|
+
return vt(this.getAttribute("max"), 100);
|
|
3805
3805
|
}
|
|
3806
3806
|
_step() {
|
|
3807
|
-
return
|
|
3807
|
+
return vt(this.getAttribute("step"), 1);
|
|
3808
3808
|
}
|
|
3809
3809
|
_clamp(e) {
|
|
3810
3810
|
return Math.max(this._min(), Math.min(e, this._max()));
|
|
@@ -3869,7 +3869,7 @@ var dt = class extends HTMLElement {
|
|
|
3869
3869
|
aria-valuenow="${this._value}"
|
|
3870
3870
|
aria-valuetext="${this._formatValue(this._value)}"
|
|
3871
3871
|
${a ? "disabled" : ""}
|
|
3872
|
-
aria-label="${
|
|
3872
|
+
aria-label="${yt(this.getAttribute("aria-label") || "Value")}"
|
|
3873
3873
|
></button>
|
|
3874
3874
|
`}
|
|
3875
3875
|
${this.hasAttribute("show-value") ? n ? `<span class="slider-value">${this._formatValue(this._start)} – ${this._formatValue(this._end)}</span>` : `<span class="slider-value">${this._formatValue(this._value)}</span>` : ""}
|
|
@@ -3969,10 +3969,10 @@ var dt = class extends HTMLElement {
|
|
|
3969
3969
|
disconnectedCallback() {
|
|
3970
3970
|
this._teardown();
|
|
3971
3971
|
}
|
|
3972
|
-
},
|
|
3972
|
+
}, vt = (e, t) => {
|
|
3973
3973
|
let n = Number.parseFloat(e);
|
|
3974
3974
|
return Number.isFinite(n) ? n : t;
|
|
3975
|
-
},
|
|
3975
|
+
}, yt = (e) => String(e ?? "").replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<"), bt = class extends HTMLElement {
|
|
3976
3976
|
static formAssociated = !0;
|
|
3977
3977
|
_accessibleName() {
|
|
3978
3978
|
return this.getAttribute("aria-label") || this.getAttribute("placeholder") || "Add tags";
|
|
@@ -4045,7 +4045,7 @@ var dt = class extends HTMLElement {
|
|
|
4045
4045
|
G(this, this._values.join(",")), this.innerHTML = `
|
|
4046
4046
|
<div class="search-select${t}">
|
|
4047
4047
|
<div class="input search-select-control search-select-multi"${this.hasAttribute("aria-invalid") ? " aria-invalid=\"true\"" : ""}${this.hasAttribute("disabled") ? " aria-disabled=\"true\"" : ""}>
|
|
4048
|
-
<input type="text" class="ms-input" data-input aria-label="${
|
|
4048
|
+
<input type="text" class="ms-input" data-input aria-label="${St(this._accessibleName())}" placeholder="${St(this.getAttribute("placeholder") || "Add…")}" autocomplete="off"${this.hasAttribute("disabled") ? " disabled" : ""}/>
|
|
4049
4049
|
<div class="ms-chips" data-chips></div>
|
|
4050
4050
|
</div>
|
|
4051
4051
|
</div>`, this._rendered = !0, G(this, this._values.join(",")), this._renderControl(), this._wire();
|
|
@@ -4057,7 +4057,7 @@ var dt = class extends HTMLElement {
|
|
|
4057
4057
|
e.innerHTML = "";
|
|
4058
4058
|
return;
|
|
4059
4059
|
}
|
|
4060
|
-
e.innerHTML = this._values.map((e) => `<span class="chip chip-sm"><span class="chip-label">${
|
|
4060
|
+
e.innerHTML = this._values.map((e) => `<span class="chip chip-sm"><span class="chip-label">${xt(e)}</span><button type="button" class="chip-remove" data-remove="${St(e)}" aria-label="Remove ${St(e)}">${K("x")}</button></span>`).join("");
|
|
4061
4061
|
}
|
|
4062
4062
|
}
|
|
4063
4063
|
_wire() {
|
|
@@ -4128,18 +4128,18 @@ var dt = class extends HTMLElement {
|
|
|
4128
4128
|
disconnectedCallback() {
|
|
4129
4129
|
this._teardown();
|
|
4130
4130
|
}
|
|
4131
|
-
},
|
|
4131
|
+
}, xt = (e) => String(e ?? "").replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"), St = (e) => String(e ?? "").replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<"), Ct = (e) => String(e).padStart(2, "0"), wt = (e, t) => `${Ct(e)}:${Ct(t)}`, Tt = (e) => {
|
|
4132
4132
|
let t = /^(\d{2}):(\d{2})$/.exec(e || "");
|
|
4133
4133
|
return t ? {
|
|
4134
4134
|
h: +t[1],
|
|
4135
4135
|
m: +t[2]
|
|
4136
4136
|
} : null;
|
|
4137
|
-
},
|
|
4137
|
+
}, Et = (e, t = "24") => {
|
|
4138
4138
|
if (!e) return "";
|
|
4139
|
-
if (t === "24") return
|
|
4139
|
+
if (t === "24") return wt(e.h, e.m);
|
|
4140
4140
|
let n = e.h % 12 || 12, r = e.h >= 12 ? "PM" : "AM";
|
|
4141
|
-
return `${n}:${
|
|
4142
|
-
},
|
|
4141
|
+
return `${n}:${Ct(e.m)} ${r}`;
|
|
4142
|
+
}, Dt = class extends HTMLElement {
|
|
4143
4143
|
static formAssociated = !0;
|
|
4144
4144
|
static get observedAttributes() {
|
|
4145
4145
|
return [
|
|
@@ -4186,11 +4186,11 @@ var dt = class extends HTMLElement {
|
|
|
4186
4186
|
}
|
|
4187
4187
|
render() {
|
|
4188
4188
|
this._defaultValue === void 0 && (this._defaultValue = this.getAttribute("value") || "", this._value = this._defaultValue || this._value);
|
|
4189
|
-
let e = this.getAttribute("placeholder") || "Select time", t =
|
|
4189
|
+
let e = this.getAttribute("placeholder") || "Select time", t = Tt(this._value), n = this.getAttribute("format") || "24", r = this.getAttribute("size"), i = r === "sm" ? " input-sm" : r === "lg" ? " input-lg" : "", a = this.getAttribute("aria-label"), o = this.getAttribute("aria-describedby");
|
|
4190
4190
|
this.innerHTML = `
|
|
4191
4191
|
<div class="timepicker">
|
|
4192
4192
|
<button type="button" class="input timepicker-trigger${i}${t ? " has-value" : ""}" aria-haspopup="listbox" aria-expanded="false"${this.hasAttribute("disabled") ? " disabled" : ""}${a ? ` aria-label="${q(a)}"` : ""}${o ? ` aria-describedby="${q(o)}"` : ""}>
|
|
4193
|
-
<span data-trigger-label class="${t ? "" : "timepicker-placeholder"}">${t ?
|
|
4193
|
+
<span data-trigger-label class="${t ? "" : "timepicker-placeholder"}">${t ? Et(t, n) : q(e)}</span>
|
|
4194
4194
|
${K("clock")}
|
|
4195
4195
|
</button>
|
|
4196
4196
|
<div class="timepicker-pop" role="listbox" tabindex="-1" hidden></div>
|
|
@@ -4202,14 +4202,14 @@ var dt = class extends HTMLElement {
|
|
|
4202
4202
|
_syncTrigger() {
|
|
4203
4203
|
let e = this.querySelector(".timepicker-trigger"), t = this.querySelector("[data-trigger-label]");
|
|
4204
4204
|
if (!t) return;
|
|
4205
|
-
let n =
|
|
4206
|
-
t.textContent = n ?
|
|
4205
|
+
let n = Tt(this._value), r = this.getAttribute("format") || "24";
|
|
4206
|
+
t.textContent = n ? Et(n, r) : this.getAttribute("placeholder") || "Select time", t.classList.toggle("timepicker-placeholder", !n), e?.classList.toggle("has-value", !!n);
|
|
4207
4207
|
}
|
|
4208
4208
|
_buildTimes() {
|
|
4209
|
-
let e = Math.max(1, parseInt(this.getAttribute("step") || "30", 10)), t = this.getAttribute("min") || "00:00", n = this.getAttribute("max") || "23:59", r =
|
|
4209
|
+
let e = Math.max(1, parseInt(this.getAttribute("step") || "30", 10)), t = this.getAttribute("min") || "00:00", n = this.getAttribute("max") || "23:59", r = Tt(t) || {
|
|
4210
4210
|
h: 0,
|
|
4211
4211
|
m: 0
|
|
4212
|
-
}, i =
|
|
4212
|
+
}, i = Tt(n) || {
|
|
4213
4213
|
h: 23,
|
|
4214
4214
|
m: 59
|
|
4215
4215
|
}, a = [], o = r.h, s = r.m;
|
|
@@ -4222,10 +4222,10 @@ var dt = class extends HTMLElement {
|
|
|
4222
4222
|
_renderOptions() {
|
|
4223
4223
|
let e = this.querySelector(".timepicker-pop");
|
|
4224
4224
|
if (!e) return;
|
|
4225
|
-
let t = this.getAttribute("format") || "24", n = this._buildTimes(), r =
|
|
4225
|
+
let t = this.getAttribute("format") || "24", n = this._buildTimes(), r = Tt(this._value), i = this._focus, a = "";
|
|
4226
4226
|
for (let e = 0; e < n.length; e++) {
|
|
4227
|
-
let o = n[e], s =
|
|
4228
|
-
a += `<button type="button" class="timepicker-option${c ? " is-selected" : ""}" data-hm="${s}" role="option" tabindex="${i === e ? "0" : "-1"}"${c ? " aria-selected=\"true\"" : ""}>${
|
|
4227
|
+
let o = n[e], s = wt(o.h, o.m), c = r && r.h === o.h && r.m === o.m;
|
|
4228
|
+
a += `<button type="button" class="timepicker-option${c ? " is-selected" : ""}" data-hm="${s}" role="option" tabindex="${i === e ? "0" : "-1"}"${c ? " aria-selected=\"true\"" : ""}>${Et(o, t)}</button>`;
|
|
4229
4229
|
}
|
|
4230
4230
|
e.innerHTML = a, this._focusActive();
|
|
4231
4231
|
}
|
|
@@ -4234,7 +4234,7 @@ var dt = class extends HTMLElement {
|
|
|
4234
4234
|
t && !e.hidden && t.focus();
|
|
4235
4235
|
}
|
|
4236
4236
|
_position(e, t) {
|
|
4237
|
-
|
|
4237
|
+
Oe(e, t);
|
|
4238
4238
|
}
|
|
4239
4239
|
_onKey(e) {
|
|
4240
4240
|
let t = [...this.querySelector(".timepicker-pop").querySelectorAll(".timepicker-option")];
|
|
@@ -4312,18 +4312,18 @@ var dt = class extends HTMLElement {
|
|
|
4312
4312
|
this._popClick = !1, r() && !t && !this.contains(e.target) && this._close();
|
|
4313
4313
|
}, document.addEventListener("click", this._onDocClick), this._onDocKey = (e) => {
|
|
4314
4314
|
r() && e.key === "Escape" && this._close();
|
|
4315
|
-
}, document.addEventListener("keydown", this._onDocKey),
|
|
4315
|
+
}, document.addEventListener("keydown", this._onDocKey), ke(this, () => {
|
|
4316
4316
|
r() && this._position(e, t);
|
|
4317
4317
|
});
|
|
4318
4318
|
}, this._bindGlobal(), this._syncFormValue();
|
|
4319
4319
|
}
|
|
4320
4320
|
_teardown() {
|
|
4321
|
-
this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), this._onDocKey &&= (document.removeEventListener("keydown", this._onDocKey), null),
|
|
4321
|
+
this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), this._onDocKey &&= (document.removeEventListener("keydown", this._onDocKey), null), Ae(this), clearTimeout(this._typeaheadTimer), this._typeaheadTimer = null, this._typeahead = "";
|
|
4322
4322
|
}
|
|
4323
4323
|
disconnectedCallback() {
|
|
4324
4324
|
this._teardown();
|
|
4325
4325
|
}
|
|
4326
|
-
},
|
|
4326
|
+
}, Ot = "wui-wizard-step", kt = class extends HTMLElement {
|
|
4327
4327
|
static get observedAttributes() {
|
|
4328
4328
|
return [
|
|
4329
4329
|
"active",
|
|
@@ -4357,7 +4357,7 @@ var dt = class extends HTMLElement {
|
|
|
4357
4357
|
this._beforeNext = typeof e == "function" ? e : null;
|
|
4358
4358
|
}
|
|
4359
4359
|
get _steps() {
|
|
4360
|
-
return [...this.querySelectorAll(`:scope > ${
|
|
4360
|
+
return [...this.querySelectorAll(`:scope > ${Ot}`)];
|
|
4361
4361
|
}
|
|
4362
4362
|
refresh() {
|
|
4363
4363
|
this._rendered && this._renderChrome();
|
|
@@ -4416,13 +4416,13 @@ var dt = class extends HTMLElement {
|
|
|
4416
4416
|
return e.map((e, r) => {
|
|
4417
4417
|
let a = this._stepStatus(e, r), o = e.getAttribute("label") || "", s = e.getAttribute("description") || "", c = e.getAttribute("icon") || "", l = r + 1, u;
|
|
4418
4418
|
u = a === "done" ? K("check") : a === "error" ? K("alert-triangle") : a === "skipped" ? K("minus") : c ? K(c) : String(l);
|
|
4419
|
-
let d = a === "pending" ? "step" : `step ${a}`, f = a === "active" ? " aria-current=\"step\"" : "", p = i || r < this._active, m = s ? `<span class="step-desc">${
|
|
4420
|
-
return h = t ? `<span class="step-circle">${u}</span><span class="step-text"><span class="step-index">Step ${l}</span><span class="step-label">${
|
|
4419
|
+
let d = a === "pending" ? "step" : `step ${a}`, f = a === "active" ? " aria-current=\"step\"" : "", p = i || r < this._active, m = s ? `<span class="step-desc">${At(s)}</span>` : "", h;
|
|
4420
|
+
return h = t ? `<span class="step-circle">${u}</span><span class="step-text"><span class="step-index">Step ${l}</span><span class="step-label">${At(o)}</span>${m}</span>` : n ? `<span class="step-circle">${u}</span><span class="step-index">Step ${l}</span><span class="step-label">${At(o)}</span>${m}` : `<span class="step-circle">${u}</span><span class="step-label">${At(o)}</span>${m}`, p ? `<button type="button" class="${d}" data-step="${r}"${f}>${h}</button>` : `<div class="${d}"${f}>${h}</div>`;
|
|
4421
4421
|
}).join("");
|
|
4422
4422
|
}
|
|
4423
4423
|
_footerHtml(e) {
|
|
4424
4424
|
let t = this._active, n = e.length - 1, r = this.hasAttribute("disabled") ? " disabled" : "", i = e[t]?.hasAttribute("optional") || this.hasAttribute("skippable"), a = this.getAttribute("back-label") || "Back", o = this.getAttribute("next-label") || "Next", s = this.getAttribute("skip-label") || "Skip", c = this.getAttribute("finish-label") || "Finish";
|
|
4425
|
-
return `${t > 0 ? `<button type="button" class="btn btn-secondary" data-nav="back"${r}>${K("arrow-left", { className: "me-2" })}${
|
|
4425
|
+
return `${t > 0 ? `<button type="button" class="btn btn-secondary" data-nav="back"${r}>${K("arrow-left", { className: "me-2" })}${At(a)}</button>` : "<span></span>"}<span class="wizard-footer-actions">${i && t < n ? `<button type="button" class="btn btn-subtle" data-nav="skip"${r}>${At(s)}</button>` : ""}${t < n ? `<button type="button" class="btn btn-primary" data-nav="next"${r}>${At(o)}${K("arrow-right", { className: "ms-2" })}</button>` : `<button type="button" class="btn btn-primary" data-nav="finish"${r}>${At(c)}</button>`}</span>`;
|
|
4426
4426
|
}
|
|
4427
4427
|
_wire() {
|
|
4428
4428
|
this._teardown(), this._onHeaderClick = (e) => {
|
|
@@ -4490,7 +4490,7 @@ var dt = class extends HTMLElement {
|
|
|
4490
4490
|
_reflectActive(e) {
|
|
4491
4491
|
this._reflecting = !0, this.setAttribute("active", String(e)), this._reflecting = !1;
|
|
4492
4492
|
}
|
|
4493
|
-
},
|
|
4493
|
+
}, At = (e) => String(e ?? "").replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"), jt = class extends HTMLElement {
|
|
4494
4494
|
static get observedAttributes() {
|
|
4495
4495
|
return [
|
|
4496
4496
|
"label",
|
|
@@ -4504,14 +4504,14 @@ var dt = class extends HTMLElement {
|
|
|
4504
4504
|
let e = this.closest("wui-wizard");
|
|
4505
4505
|
e && typeof e.refresh == "function" && e.refresh();
|
|
4506
4506
|
}
|
|
4507
|
-
},
|
|
4507
|
+
}, Mt = "image/png,image/jpeg,image/webp", Nt = {
|
|
4508
4508
|
"image/png": [".png"],
|
|
4509
4509
|
"image/jpeg": [".jpg", ".jpeg"],
|
|
4510
4510
|
"image/webp": [".webp"],
|
|
4511
4511
|
"image/gif": [".gif"],
|
|
4512
4512
|
"image/svg+xml": [".svg"],
|
|
4513
4513
|
"application/pdf": [".pdf"]
|
|
4514
|
-
},
|
|
4514
|
+
}, Pt = {
|
|
4515
4515
|
"image/png": "PNG",
|
|
4516
4516
|
"image/jpeg": "JPG",
|
|
4517
4517
|
"image/webp": "WEBP",
|
|
@@ -4525,7 +4525,7 @@ var dt = class extends HTMLElement {
|
|
|
4525
4525
|
".gif": "GIF",
|
|
4526
4526
|
".svg": "SVG",
|
|
4527
4527
|
".pdf": "PDF"
|
|
4528
|
-
},
|
|
4528
|
+
}, Ft = (e) => String(e || "").split(",").map((e) => e.trim().toLowerCase()).filter(Boolean), It = [
|
|
4529
4529
|
".png",
|
|
4530
4530
|
".jpg",
|
|
4531
4531
|
".jpeg",
|
|
@@ -4536,46 +4536,46 @@ var dt = class extends HTMLElement {
|
|
|
4536
4536
|
".avif",
|
|
4537
4537
|
".heic"
|
|
4538
4538
|
];
|
|
4539
|
-
function
|
|
4539
|
+
function Lt(e) {
|
|
4540
4540
|
if (!e) return !1;
|
|
4541
4541
|
let t = typeof e == "object" && e.type ? String(e.type).toLowerCase() : "";
|
|
4542
4542
|
if (t) return t.startsWith("image/");
|
|
4543
4543
|
let n = typeof e == "string" ? e : e.name || e.url || "", r = String(n).toLowerCase();
|
|
4544
|
-
return
|
|
4544
|
+
return It.some((e) => r.endsWith(e));
|
|
4545
4545
|
}
|
|
4546
|
-
function
|
|
4547
|
-
let t =
|
|
4548
|
-
return t.length ? t.every((e) => e.startsWith(".") ?
|
|
4546
|
+
function Rt(e) {
|
|
4547
|
+
let t = Ft(e);
|
|
4548
|
+
return t.length ? t.every((e) => e.startsWith(".") ? It.includes(e) : e === "image/*" || e.startsWith("image/")) : !1;
|
|
4549
4549
|
}
|
|
4550
|
-
function
|
|
4550
|
+
function zt(e) {
|
|
4551
4551
|
let t = [];
|
|
4552
|
-
for (let n of
|
|
4553
|
-
let e =
|
|
4552
|
+
for (let n of Ft(e)) {
|
|
4553
|
+
let e = Pt[n] || (n.startsWith(".") ? n.slice(1).toUpperCase() : n.toUpperCase());
|
|
4554
4554
|
t.includes(e) || t.push(e);
|
|
4555
4555
|
}
|
|
4556
4556
|
return t.length <= 1 ? t[0] || "supported" : `${t.slice(0, -1).join(", ")} or ${t[t.length - 1]}`;
|
|
4557
4557
|
}
|
|
4558
|
-
function
|
|
4559
|
-
let n =
|
|
4558
|
+
function Bt(e, t) {
|
|
4559
|
+
let n = Ft(t);
|
|
4560
4560
|
if (!n.length) return !0;
|
|
4561
4561
|
let r = (e.type || "").toLowerCase(), i = (e.name || "").toLowerCase();
|
|
4562
|
-
return n.some((e) => e.startsWith(".") ? i.endsWith(e) : e.endsWith("/*") ? r.startsWith(e.slice(0, -1)) : r && r === e ? !0 : !r && (
|
|
4562
|
+
return n.some((e) => e.startsWith(".") ? i.endsWith(e) : e.endsWith("/*") ? r.startsWith(e.slice(0, -1)) : r && r === e ? !0 : !r && (Nt[e] || []).some((e) => i.endsWith(e)));
|
|
4563
4563
|
}
|
|
4564
|
-
function
|
|
4564
|
+
function Vt(e, t = {}) {
|
|
4565
4565
|
if (!e) return null;
|
|
4566
|
-
let n = t.accept === void 0 ?
|
|
4567
|
-
return
|
|
4566
|
+
let n = t.accept === void 0 ? Mt : t.accept, r = t.maxSizeMb || 5;
|
|
4567
|
+
return Bt(e, n) ? e.size > r * 1024 * 1024 ? `Keep the file under ${r} MB.` : null : `Choose a ${zt(n)} file.`;
|
|
4568
4568
|
}
|
|
4569
4569
|
var X = (e, t) => {
|
|
4570
4570
|
typeof customElements < "u" && !customElements.get(e) && customElements.define(e, t);
|
|
4571
4571
|
};
|
|
4572
|
-
function
|
|
4573
|
-
X("wui-select",
|
|
4572
|
+
function Ht() {
|
|
4573
|
+
X("wui-select", ht), X("wui-phone", pt), X("wui-datepicker", qe), X("wui-date-range", Je), X("wui-dock", Ye), X("wui-slider", _t), X("wui-timepicker", Dt), X("wui-autocomplete", Le), X("wui-multiselect", Ze), X("wui-taginput", bt), X("wui-otp", nt), X("wui-status-icon", we), X("wui-wizard-step", jt), X("wui-wizard", kt);
|
|
4574
4574
|
}
|
|
4575
|
-
|
|
4575
|
+
Ht();
|
|
4576
4576
|
//#endregion
|
|
4577
4577
|
//#region src/components/AppPopover.jsx
|
|
4578
|
-
function
|
|
4578
|
+
function Ut({ trigger: e, children: t, title: r, placement: i = "bottom", triggerType: a = "click", onToggle: o, className: c = "", ...l }) {
|
|
4579
4579
|
N("AppPopover", l);
|
|
4580
4580
|
let u = s(), [f, h] = d(!1), g = (e) => {
|
|
4581
4581
|
h(e), o?.(e);
|
|
@@ -4610,13 +4610,13 @@ function Vt({ trigger: e, children: t, title: r, placement: i = "bottom", trigge
|
|
|
4610
4610
|
}
|
|
4611
4611
|
//#endregion
|
|
4612
4612
|
//#region src/components/AppInfoTip.jsx
|
|
4613
|
-
function
|
|
4613
|
+
function Wt({ label: e, children: t, placement: n = "auto", className: r = "", ...i }) {
|
|
4614
4614
|
N("AppInfoTip", i);
|
|
4615
4615
|
let [a, o] = d(!1), s = !!e;
|
|
4616
4616
|
return !s && !t ? null : /* @__PURE__ */ p("span", {
|
|
4617
4617
|
className: `infotip${r ? ` ${r}` : ""}`,
|
|
4618
4618
|
...i,
|
|
4619
|
-
children: /* @__PURE__ */ p(
|
|
4619
|
+
children: /* @__PURE__ */ p(Ut, {
|
|
4620
4620
|
trigger: /* @__PURE__ */ p("button", {
|
|
4621
4621
|
type: "button",
|
|
4622
4622
|
className: "infotip-btn",
|
|
@@ -4646,8 +4646,8 @@ function Z() {
|
|
|
4646
4646
|
}
|
|
4647
4647
|
//#endregion
|
|
4648
4648
|
//#region src/components/useWuiControl.js
|
|
4649
|
-
function Q({ ref: e, value: t, onChange: n, readValue: r, writeValue: i, events: s =
|
|
4650
|
-
let d = u(null), f = r ??
|
|
4649
|
+
function Q({ ref: e, value: t, onChange: n, readValue: r, writeValue: i, events: s = Gt, on: c, syncDeps: l = [] } = {}) {
|
|
4650
|
+
let d = u(null), f = r ?? Kt, p = i ?? qt, m = (s || Gt).join("\0"), h = Object.keys(c ?? {}).join("\0"), g = u({});
|
|
4651
4651
|
g.current = {
|
|
4652
4652
|
ref: e,
|
|
4653
4653
|
value: t,
|
|
@@ -4665,7 +4665,7 @@ function Q({ ref: e, value: t, onChange: n, readValue: r, writeValue: i, events:
|
|
|
4665
4665
|
_.current = null;
|
|
4666
4666
|
}
|
|
4667
4667
|
}, []), y = a((e) => {
|
|
4668
|
-
let t = g.current.eventKey ? g.current.eventKey.split("\0") :
|
|
4668
|
+
let t = g.current.eventKey ? g.current.eventKey.split("\0") : Gt, n = Object.keys(g.current.on ?? {}), r = {
|
|
4669
4669
|
el: e,
|
|
4670
4670
|
names: t,
|
|
4671
4671
|
extraNames: n,
|
|
@@ -4692,7 +4692,7 @@ function Q({ ref: e, value: t, onChange: n, readValue: r, writeValue: i, events:
|
|
|
4692
4692
|
...l
|
|
4693
4693
|
]), o(() => {
|
|
4694
4694
|
let e = d.current, t = _.current;
|
|
4695
|
-
!e || !t || (t.names.join("\0") !== (m ||
|
|
4695
|
+
!e || !t || (t.names.join("\0") !== (m || Gt.join("\0")) || t.extraNames.join("\0") !== h) && (v(), y(e));
|
|
4696
4696
|
}, [
|
|
4697
4697
|
m,
|
|
4698
4698
|
h,
|
|
@@ -4703,39 +4703,39 @@ function Q({ ref: e, value: t, onChange: n, readValue: r, writeValue: i, events:
|
|
|
4703
4703
|
innerRef: d
|
|
4704
4704
|
};
|
|
4705
4705
|
}
|
|
4706
|
-
var
|
|
4707
|
-
function
|
|
4706
|
+
var Gt = ["change"];
|
|
4707
|
+
function Kt(e) {
|
|
4708
4708
|
return e.value;
|
|
4709
4709
|
}
|
|
4710
|
-
function
|
|
4710
|
+
function qt(e, t) {
|
|
4711
4711
|
let n = t ?? "";
|
|
4712
4712
|
String(e.value ?? "") !== String(n) && (e.value = n);
|
|
4713
4713
|
}
|
|
4714
|
-
function
|
|
4714
|
+
function Jt(e, t) {
|
|
4715
4715
|
let n = e || [], r = t || [];
|
|
4716
4716
|
return n.length === r.length && n.every((e, t) => e?.value === r[t]?.value && e?.label === r[t]?.label);
|
|
4717
4717
|
}
|
|
4718
|
-
function
|
|
4718
|
+
function Yt(e) {
|
|
4719
4719
|
return e.values;
|
|
4720
4720
|
}
|
|
4721
|
-
function
|
|
4721
|
+
function Xt(e, t) {
|
|
4722
4722
|
let n = t || [], r = e.values || [];
|
|
4723
4723
|
(n.length !== r.length || !n.every((e, t) => e === r[t])) && (e.values = n);
|
|
4724
4724
|
}
|
|
4725
|
-
function
|
|
4725
|
+
function Zt(e) {
|
|
4726
4726
|
return {
|
|
4727
4727
|
start: e.start,
|
|
4728
4728
|
end: e.end
|
|
4729
4729
|
};
|
|
4730
4730
|
}
|
|
4731
|
-
function
|
|
4731
|
+
function Qt(e, t) {
|
|
4732
4732
|
if (t === void 0) return;
|
|
4733
4733
|
let n = Number.parseFloat(t);
|
|
4734
4734
|
Number.isFinite(n) && e.value !== n && (e.value = n);
|
|
4735
4735
|
}
|
|
4736
4736
|
//#endregion
|
|
4737
4737
|
//#region src/components/AppAutocomplete.jsx
|
|
4738
|
-
var
|
|
4738
|
+
var $t = i(function({ value: e, onChange: t, options: n, loadOptions: r, placeholder: i = "Search…", minChars: a, debounce: c, disabled: l = !1, size: u, allowCustom: d = !1, name: f, label: h, error: g, hint: _, required: v = !1, help: y, helpLabel: b = "More information", fieldClassName: x = "", ...S }, C) {
|
|
4739
4739
|
N("AppAutocomplete", S);
|
|
4740
4740
|
let w = typeof r == "function", T = s(), E = f || T, { setRef: D, innerRef: O } = Q({
|
|
4741
4741
|
ref: C,
|
|
@@ -4784,7 +4784,7 @@ var Zt = i(function({ value: e, onChange: t, options: n, loadOptions: r, placeho
|
|
|
4784
4784
|
children: [
|
|
4785
4785
|
h,
|
|
4786
4786
|
v && /* @__PURE__ */ p(Z, {}),
|
|
4787
|
-
y && /* @__PURE__ */ p(
|
|
4787
|
+
y && /* @__PURE__ */ p(Wt, {
|
|
4788
4788
|
label: b,
|
|
4789
4789
|
children: y
|
|
4790
4790
|
})
|
|
@@ -4818,14 +4818,14 @@ var Zt = i(function({ value: e, onChange: t, options: n, loadOptions: r, placeho
|
|
|
4818
4818
|
}) : null
|
|
4819
4819
|
]
|
|
4820
4820
|
});
|
|
4821
|
-
}),
|
|
4821
|
+
}), en = /* @__PURE__ */ new Set([
|
|
4822
4822
|
"xs",
|
|
4823
4823
|
"sm",
|
|
4824
4824
|
"md",
|
|
4825
4825
|
"lg",
|
|
4826
4826
|
"xl",
|
|
4827
4827
|
"2xl"
|
|
4828
|
-
]),
|
|
4828
|
+
]), tn = {
|
|
4829
4829
|
xs: 20,
|
|
4830
4830
|
sm: 24,
|
|
4831
4831
|
md: 32,
|
|
@@ -4833,30 +4833,30 @@ var Zt = i(function({ value: e, onChange: t, options: n, loadOptions: r, placeho
|
|
|
4833
4833
|
xl: 64,
|
|
4834
4834
|
"2xl": 96
|
|
4835
4835
|
};
|
|
4836
|
-
function
|
|
4836
|
+
function nn(e) {
|
|
4837
4837
|
let t = (e || "").trim();
|
|
4838
4838
|
if (!t) return "?";
|
|
4839
4839
|
let n = t.split(/\s+/).filter(Boolean);
|
|
4840
4840
|
return n.length === 1 ? n[0].slice(0, 2).toUpperCase() : (n[0][0] + n[n.length - 1][0]).toUpperCase();
|
|
4841
4841
|
}
|
|
4842
|
-
function
|
|
4842
|
+
function rn(e) {
|
|
4843
4843
|
let t = e || "", n = 0;
|
|
4844
4844
|
for (let e = 0; e < t.length; e += 1) n = Math.imul(n, 31) + t.charCodeAt(e) >>> 0;
|
|
4845
4845
|
return n % 360;
|
|
4846
4846
|
}
|
|
4847
|
-
function
|
|
4847
|
+
function an(e) {
|
|
4848
4848
|
if (typeof e == "number") return e;
|
|
4849
|
-
if (
|
|
4849
|
+
if (tn[e] != null) return tn[e];
|
|
4850
4850
|
let t = Number.parseInt(e, 10);
|
|
4851
4851
|
return Number.isNaN(t) ? 32 : t;
|
|
4852
4852
|
}
|
|
4853
|
-
function
|
|
4853
|
+
function on({ name: e, src: t, size: n = "md", shape: r = "circle", tone: i = "primary", status: a = "none", ring: s = !1, label: c, icon: l, badge: u, href: h, onClick: g, linkComponent: _, className: v = "", ...y }) {
|
|
4854
4854
|
N("AppAvatar", y);
|
|
4855
4855
|
let { style: b, ...x } = y, [S, C] = d(!1);
|
|
4856
4856
|
o(() => {
|
|
4857
4857
|
C(!1);
|
|
4858
4858
|
}, [t]);
|
|
4859
|
-
let w = typeof n == "string" &&
|
|
4859
|
+
let w = typeof n == "string" && en.has(n), T = w ? null : typeof n == "number" || /^\d+$/.test(n) ? `${n}px` : n, E = h != null || g != null, D = t != null && t !== "" && !S, O = [
|
|
4860
4860
|
"avatar",
|
|
4861
4861
|
w && n !== "md" ? `avatar-${n}` : "",
|
|
4862
4862
|
r === "circle" ? "" : `avatar-${r}`,
|
|
@@ -4865,16 +4865,16 @@ function rn({ name: e, src: t, size: n = "md", shape: r = "circle", tone: i = "p
|
|
|
4865
4865
|
E ? "avatar-clickable" : "",
|
|
4866
4866
|
v
|
|
4867
4867
|
].filter(Boolean).join(" "), k = {};
|
|
4868
|
-
T && (k["--avatar-size"] = T), i === "auto" && (k["--avatar-hue"] =
|
|
4868
|
+
T && (k["--avatar-size"] = T), i === "auto" && (k["--avatar-hue"] = rn(e));
|
|
4869
4869
|
let A = Object.keys(k).length || b ? {
|
|
4870
4870
|
...k,
|
|
4871
4871
|
...b
|
|
4872
4872
|
} : void 0, j = /* @__PURE__ */ p("span", {
|
|
4873
4873
|
className: "avatar-face",
|
|
4874
4874
|
"aria-hidden": "true",
|
|
4875
|
-
children: l == null ?
|
|
4875
|
+
children: l == null ? nn(e) : /* @__PURE__ */ p(V, {
|
|
4876
4876
|
name: l,
|
|
4877
|
-
size: Math.round(
|
|
4877
|
+
size: Math.round(an(n) * .55)
|
|
4878
4878
|
})
|
|
4879
4879
|
}), M = /* @__PURE__ */ m(f, { children: [
|
|
4880
4880
|
a !== "none" && /* @__PURE__ */ p("span", {
|
|
@@ -4936,7 +4936,7 @@ function rn({ name: e, src: t, size: n = "md", shape: r = "circle", tone: i = "p
|
|
|
4936
4936
|
}
|
|
4937
4937
|
//#endregion
|
|
4938
4938
|
//#region src/components/AppAvatarGroup.jsx
|
|
4939
|
-
var
|
|
4939
|
+
var sn = {
|
|
4940
4940
|
xs: 20,
|
|
4941
4941
|
sm: 24,
|
|
4942
4942
|
md: 32,
|
|
@@ -4944,16 +4944,16 @@ var an = {
|
|
|
4944
4944
|
xl: 64,
|
|
4945
4945
|
"2xl": 96
|
|
4946
4946
|
};
|
|
4947
|
-
function
|
|
4948
|
-
return e == null ? null : typeof e == "number" ? `${e}px` :
|
|
4947
|
+
function cn(e) {
|
|
4948
|
+
return e == null ? null : typeof e == "number" ? `${e}px` : sn[e] == null ? /^\d+$/.test(e) ? `${e}px` : e : `${sn[e]}px`;
|
|
4949
4949
|
}
|
|
4950
|
-
function
|
|
4950
|
+
function ln({ children: e, size: t, spacing: n = "normal", overflow: r, className: i = "", ...a }) {
|
|
4951
4951
|
N("AppAvatarGroup", a);
|
|
4952
4952
|
let { style: o, ...s } = a, c = [
|
|
4953
4953
|
"avatar-group",
|
|
4954
4954
|
n === "normal" ? "" : `avatar-group-${n}`,
|
|
4955
4955
|
i
|
|
4956
|
-
].filter(Boolean).join(" "), l =
|
|
4956
|
+
].filter(Boolean).join(" "), l = cn(t), u = l ? {
|
|
4957
4957
|
"--avatar-size": l,
|
|
4958
4958
|
...o
|
|
4959
4959
|
} : o, d = typeof r == "string" ? Number.parseInt(r, 10) : r;
|
|
@@ -4971,7 +4971,7 @@ function sn({ children: e, size: t, spacing: n = "normal", overflow: r, classNam
|
|
|
4971
4971
|
}
|
|
4972
4972
|
//#endregion
|
|
4973
4973
|
//#region src/components/AppBadge.jsx
|
|
4974
|
-
function
|
|
4974
|
+
function un({ children: e, tone: t, dot: n = !1, className: r = "", ...i }) {
|
|
4975
4975
|
return N("AppBadge", i), /* @__PURE__ */ p(g, {
|
|
4976
4976
|
bg: !1,
|
|
4977
4977
|
className: [
|
|
@@ -4985,18 +4985,18 @@ function cn({ children: e, tone: t, dot: n = !1, className: r = "", ...i }) {
|
|
|
4985
4985
|
}
|
|
4986
4986
|
//#endregion
|
|
4987
4987
|
//#region src/components/AppBanner.jsx
|
|
4988
|
-
var
|
|
4988
|
+
var dn = [
|
|
4989
4989
|
"info",
|
|
4990
4990
|
"success",
|
|
4991
4991
|
"warning",
|
|
4992
4992
|
"danger",
|
|
4993
4993
|
"neutral"
|
|
4994
4994
|
];
|
|
4995
|
-
function
|
|
4995
|
+
function fn({ tone: e = "info", icon: t, children: n, dismissible: r = !1, onDismiss: i, className: a = "", ...o }) {
|
|
4996
4996
|
N("AppBanner", o);
|
|
4997
4997
|
let [s, c] = d(!0);
|
|
4998
4998
|
if (!s) return null;
|
|
4999
|
-
let l =
|
|
4999
|
+
let l = dn.includes(e) ? e : "info", u = () => {
|
|
5000
5000
|
c(!1), i?.();
|
|
5001
5001
|
};
|
|
5002
5002
|
return /* @__PURE__ */ m("div", {
|
|
@@ -5027,7 +5027,7 @@ function un({ tone: e = "info", icon: t, children: n, dismissible: r = !1, onDis
|
|
|
5027
5027
|
}
|
|
5028
5028
|
//#endregion
|
|
5029
5029
|
//#region src/components/AppBreadcrumbs.jsx
|
|
5030
|
-
function
|
|
5030
|
+
function pn({ items: e = [], linkComponent: t, className: n = "", ...r }) {
|
|
5031
5031
|
return N("AppBreadcrumbs", r), /* @__PURE__ */ p(_, {
|
|
5032
5032
|
className: n || void 0,
|
|
5033
5033
|
...r,
|
|
@@ -5046,17 +5046,17 @@ function dn({ items: e = [], linkComponent: t, className: n = "", ...r }) {
|
|
|
5046
5046
|
}
|
|
5047
5047
|
//#endregion
|
|
5048
5048
|
//#region src/components/AppCallout.jsx
|
|
5049
|
-
var
|
|
5049
|
+
var mn = {
|
|
5050
5050
|
info: "info",
|
|
5051
5051
|
success: "check",
|
|
5052
5052
|
warning: "alert-triangle",
|
|
5053
5053
|
danger: "x"
|
|
5054
5054
|
};
|
|
5055
|
-
function
|
|
5055
|
+
function hn({ children: e, tone: t = "info", title: n, icon: r, image: i, imageAlt: a = "", size: o = "md", bordered: s = !0, action: c, dismissible: l = !1, onDismiss: u, className: f = "", ...h }) {
|
|
5056
5056
|
N("AppCallout", h);
|
|
5057
5057
|
let [g, _] = d(!0);
|
|
5058
5058
|
if (!g) return null;
|
|
5059
|
-
let v = r === void 0 ?
|
|
5059
|
+
let v = r === void 0 ? mn[t] : r === "none" ? null : r, y = !!i, b = y || !!v, x = b && !!n && e != null && e !== !1 && e !== "", S = x ? 13 : 11;
|
|
5060
5060
|
return /* @__PURE__ */ m("div", {
|
|
5061
5061
|
className: [
|
|
5062
5062
|
"info-callout",
|
|
@@ -5106,13 +5106,13 @@ function pn({ children: e, tone: t = "info", title: n, icon: r, image: i, imageA
|
|
|
5106
5106
|
}
|
|
5107
5107
|
//#endregion
|
|
5108
5108
|
//#region src/components/AppCard.jsx
|
|
5109
|
-
var
|
|
5109
|
+
var gn = {
|
|
5110
5110
|
xs: 320,
|
|
5111
5111
|
sm: 420,
|
|
5112
5112
|
md: 560,
|
|
5113
5113
|
lg: 720
|
|
5114
5114
|
};
|
|
5115
|
-
function
|
|
5115
|
+
function _n({ title: e, subtitle: t, headerIcon: n, titleClassName: r = "", header: i, headerExtra: a, headerActions: o, footer: s, media: c, children: l, variant: u = "default", tone: d = "primary", padding: h = "md", maxWidth: g, className: _ = "", bodyClassName: v = "", headerClassName: b = "", body: x = !0, lifted: S = !1, href: C, onClick: w, linkComponent: T, ...E }) {
|
|
5116
5116
|
N("AppCard", E);
|
|
5117
5117
|
let { style: D, ...O } = E, k = C != null || w != null, A = [
|
|
5118
5118
|
u && u !== "default" ? `card-${u}` : "",
|
|
@@ -5122,7 +5122,7 @@ function hn({ title: e, subtitle: t, headerIcon: n, titleClassName: r = "", head
|
|
|
5122
5122
|
g == null ? "" : "card-constrained",
|
|
5123
5123
|
k ? "card-clickable" : "",
|
|
5124
5124
|
_
|
|
5125
|
-
].filter(Boolean).join(" ") || void 0, j = g == null ? void 0 :
|
|
5125
|
+
].filter(Boolean).join(" ") || void 0, j = g == null ? void 0 : gn[g] == null ? typeof g == "number" ? `${g}px` : g : `${gn[g]}px`, M = j ? {
|
|
5126
5126
|
"--card-max-width": j,
|
|
5127
5127
|
...D
|
|
5128
5128
|
} : D, P = {};
|
|
@@ -5193,7 +5193,7 @@ function hn({ title: e, subtitle: t, headerIcon: n, titleClassName: r = "", head
|
|
|
5193
5193
|
}
|
|
5194
5194
|
//#endregion
|
|
5195
5195
|
//#region src/lib/CheckField.jsx
|
|
5196
|
-
var
|
|
5196
|
+
var vn = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a = "", rest: o = {}, inputType: c, wrapperClass: l }, u) {
|
|
5197
5197
|
let d = s(), f = t || d;
|
|
5198
5198
|
return /* @__PURE__ */ m("div", {
|
|
5199
5199
|
className: `${l}${a ? ` ${a}` : ""}`,
|
|
@@ -5221,8 +5221,8 @@ var gn = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a
|
|
|
5221
5221
|
}) : null
|
|
5222
5222
|
]
|
|
5223
5223
|
});
|
|
5224
|
-
}),
|
|
5225
|
-
return N("AppCheckbox", o), /* @__PURE__ */ p(
|
|
5224
|
+
}), yn = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a = "", ...o }, s) {
|
|
5225
|
+
return N("AppCheckbox", o), /* @__PURE__ */ p(vn, {
|
|
5226
5226
|
ref: s,
|
|
5227
5227
|
label: e,
|
|
5228
5228
|
id: t,
|
|
@@ -5237,7 +5237,7 @@ var gn = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a
|
|
|
5237
5237
|
});
|
|
5238
5238
|
//#endregion
|
|
5239
5239
|
//#region src/components/AppChip.jsx
|
|
5240
|
-
function
|
|
5240
|
+
function bn({ label: e, children: t, tone: n = "neutral", variant: r = "soft", size: i = "md", leadingIcon: a, avatar: o, onRemove: s, onClick: c, disabled: l = !1, removeLabel: u, className: d = "", ...h }) {
|
|
5241
5241
|
N("AppChip", h);
|
|
5242
5242
|
let g = e ?? t, _ = [
|
|
5243
5243
|
"chip",
|
|
@@ -5291,7 +5291,7 @@ function vn({ label: e, children: t, tone: n = "neutral", variant: r = "soft", s
|
|
|
5291
5291
|
}
|
|
5292
5292
|
//#endregion
|
|
5293
5293
|
//#region src/components/AppChoiceCard.jsx
|
|
5294
|
-
function
|
|
5294
|
+
function xn({ name: e, multiple: t = !1, value: n, checked: r, onChange: i, icon: a, iconNode: o, iconSize: s = 18, image: c, imageAlt: l = "", children: u, title: d, description: h, checkIcon: g = "check", checkSize: _ = 18, className: v = "", ...y }) {
|
|
5295
5295
|
return N("AppChoiceCard", y), /* @__PURE__ */ m("label", {
|
|
5296
5296
|
className: `struct-card${c ? " struct-card-img-card" : ""}${r ? " checked" : ""}${v ? ` ${v}` : ""}`,
|
|
5297
5297
|
...y,
|
|
@@ -5340,7 +5340,7 @@ function yn({ name: e, multiple: t = !1, value: n, checked: r, onChange: i, icon
|
|
|
5340
5340
|
}
|
|
5341
5341
|
//#endregion
|
|
5342
5342
|
//#region src/components/AppChoiceChip.jsx
|
|
5343
|
-
function
|
|
5343
|
+
function Sn({ multiple: e = !0, label: t, name: n, value: r, checked: i, onChange: a, children: o, count: s, size: c = "md", className: l = "", ...u }) {
|
|
5344
5344
|
return N("AppChoiceChip", u), /* @__PURE__ */ m("label", {
|
|
5345
5345
|
className: `choice-chip${i ? " checked" : ""}${c === "sm" ? " choice-chip-sm" : c === "lg" ? " choice-chip-lg" : ""}${l ? ` ${l}` : ""}`,
|
|
5346
5346
|
...u,
|
|
@@ -5362,7 +5362,7 @@ function bn({ multiple: e = !0, label: t, name: n, value: r, checked: i, onChang
|
|
|
5362
5362
|
}
|
|
5363
5363
|
//#endregion
|
|
5364
5364
|
//#region src/components/AppColorField.jsx
|
|
5365
|
-
function
|
|
5365
|
+
function Cn({ value: e = "#000000", onChange: t, label: n, required: r = !1, error: i, hint: a, name: o, id: c, disabled: l = !1, size: u = "md", className: d = "", ...f }) {
|
|
5366
5366
|
N("AppColorField", f);
|
|
5367
5367
|
let h = s(), g = c || h, _ = (e) => /^#[0-9a-f]{6}$/i.test(e), v = u === "sm" ? " color-field-sm" : u === "lg" ? " color-field-lg" : "", y = u === "sm" ? " input-sm" : u === "lg" ? " input-lg" : "";
|
|
5368
5368
|
return /* @__PURE__ */ m("div", {
|
|
@@ -5411,7 +5411,7 @@ function xn({ value: e = "#000000", onChange: t, label: n, required: r = !1, err
|
|
|
5411
5411
|
}
|
|
5412
5412
|
//#endregion
|
|
5413
5413
|
//#region src/components/AppCompareTable.jsx
|
|
5414
|
-
function
|
|
5414
|
+
function wn({ columns: e = [], rows: t = [], caption: n, className: r = "", ...i }) {
|
|
5415
5415
|
N("AppCompareTable", i);
|
|
5416
5416
|
let a = (e) => e === !0 ? /* @__PURE__ */ p("span", {
|
|
5417
5417
|
className: "compare-yes",
|
|
@@ -5448,7 +5448,7 @@ function Sn({ columns: e = [], rows: t = [], caption: n, className: r = "", ...i
|
|
|
5448
5448
|
}
|
|
5449
5449
|
//#endregion
|
|
5450
5450
|
//#region src/components/AppInput.jsx
|
|
5451
|
-
var
|
|
5451
|
+
var Tn = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, helpLabel: a = "More information", type: c = "text", size: l = "md", leftIcon: f, rightIcon: h, onRightIconClick: g, rightIconLabel: _, unit: v, id: y, name: b, className: S = "", fieldClassName: C = "", disabled: w = !1, clearable: T = !1, showCount: E = !1, maxLength: D, prefix: O, suffix: k, floatingLabel: A = !1, variant: j, ...M }, P) {
|
|
5452
5452
|
N("AppInput", M);
|
|
5453
5453
|
let [F, I] = d(!1), L = s(), R = y || L, z = c === "password", ee = z && F ? "text" : c, B = u(null), te = (e) => {
|
|
5454
5454
|
B.current = e, typeof P == "function" ? P(e) : P && (P.current = e);
|
|
@@ -5595,7 +5595,7 @@ var Cn = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, he
|
|
|
5595
5595
|
children: [
|
|
5596
5596
|
e,
|
|
5597
5597
|
t && /* @__PURE__ */ p(Z, {}),
|
|
5598
|
-
i && /* @__PURE__ */ p(
|
|
5598
|
+
i && /* @__PURE__ */ p(Wt, {
|
|
5599
5599
|
label: a,
|
|
5600
5600
|
children: i
|
|
5601
5601
|
})
|
|
@@ -5617,34 +5617,34 @@ var Cn = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, he
|
|
|
5617
5617
|
})
|
|
5618
5618
|
]
|
|
5619
5619
|
});
|
|
5620
|
-
}),
|
|
5620
|
+
}), En = "a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex=\"-1\"])", Dn = {
|
|
5621
5621
|
sm: 380,
|
|
5622
5622
|
md: 440,
|
|
5623
5623
|
lg: 640,
|
|
5624
5624
|
xl: 880
|
|
5625
|
-
},
|
|
5626
|
-
function
|
|
5625
|
+
}, On = !1;
|
|
5626
|
+
function kn() {
|
|
5627
5627
|
let e = !0;
|
|
5628
5628
|
try {
|
|
5629
5629
|
e = process.env.NODE_ENV !== "production";
|
|
5630
5630
|
} catch {
|
|
5631
5631
|
e = !0;
|
|
5632
5632
|
}
|
|
5633
|
-
!e ||
|
|
5633
|
+
!e || On || (On = !0, console.warn("[@webority/ui-react] <AppModal hideHeader> has no accessible name — pass `ariaLabel` (or a string `title`)."));
|
|
5634
5634
|
}
|
|
5635
|
-
function
|
|
5636
|
-
N("AppModal", b), W("AppModal", "size", typeof d == "string" ? d : null, Object.keys(
|
|
5635
|
+
function An({ open: e, eyebrow: t, title: n, subtitle: r, headerIcon: i, tone: a = "default", dismissible: s = !0, onClose: c, footer: l, size: d = "md", placement: f = "center", hideHeader: h = !1, staticBackdrop: g = !1, ariaLabel: _, className: v = "", children: y, ...b }) {
|
|
5636
|
+
N("AppModal", b), W("AppModal", "size", typeof d == "string" ? d : null, Object.keys(Dn));
|
|
5637
5637
|
let { style: x, ...C } = b;
|
|
5638
|
-
h && !_ && typeof n != "string" &&
|
|
5638
|
+
h && !_ && typeof n != "string" && kn();
|
|
5639
5639
|
let w = u(null);
|
|
5640
5640
|
o(() => {
|
|
5641
5641
|
if (!e) return;
|
|
5642
5642
|
let t = w.current?.closest(".modal-content");
|
|
5643
5643
|
if (!t) return;
|
|
5644
|
-
let n = () => Array.from(t.querySelectorAll(
|
|
5644
|
+
let n = () => Array.from(t.querySelectorAll(En));
|
|
5645
5645
|
(t.querySelector("[data-autofocus]") || n().find((e) => !e.classList.contains("wui-modal-close")) || n()[0] || t).focus?.();
|
|
5646
5646
|
}, [e]);
|
|
5647
|
-
let T = typeof d == "number" ? d :
|
|
5647
|
+
let T = typeof d == "number" ? d : Dn[d] ?? Dn.md, E = [
|
|
5648
5648
|
"wui-modal",
|
|
5649
5649
|
a === "default" ? "" : `tone-${a}`,
|
|
5650
5650
|
v
|
|
@@ -5729,30 +5729,30 @@ function On({ open: e, eyebrow: t, title: n, subtitle: r, headerIcon: i, tone: a
|
|
|
5729
5729
|
}
|
|
5730
5730
|
//#endregion
|
|
5731
5731
|
//#region src/components/ModalIcons.jsx
|
|
5732
|
-
var
|
|
5732
|
+
var jn = (e) => function({ size: t = 72 }) {
|
|
5733
5733
|
return /* @__PURE__ */ p("wui-status-icon", {
|
|
5734
5734
|
tone: e,
|
|
5735
5735
|
size: t
|
|
5736
5736
|
});
|
|
5737
|
-
},
|
|
5738
|
-
success:
|
|
5739
|
-
error:
|
|
5740
|
-
warning:
|
|
5741
|
-
info:
|
|
5742
|
-
delete:
|
|
5737
|
+
}, Mn = {
|
|
5738
|
+
success: jn("success"),
|
|
5739
|
+
error: jn("error"),
|
|
5740
|
+
warning: jn("warning"),
|
|
5741
|
+
info: jn("info"),
|
|
5742
|
+
delete: jn("delete")
|
|
5743
5743
|
};
|
|
5744
5744
|
//#endregion
|
|
5745
5745
|
//#region src/components/AppConfirmDialog.jsx
|
|
5746
|
-
function
|
|
5746
|
+
function Nn({ open: e, title: t, message: n, confirmLabel: r = "Confirm", cancelLabel: i = "Cancel", danger: a = !1, tone: s, confirmPhrase: c, onConfirm: l, onClose: u, loading: h = !1, staticBackdrop: g = !1, placement: _ = "center", className: v = "", ...y }) {
|
|
5747
5747
|
N("AppConfirmDialog", y);
|
|
5748
5748
|
let [b, x] = d("");
|
|
5749
5749
|
if (o(() => {
|
|
5750
5750
|
e || x("");
|
|
5751
5751
|
}, [e]), !e) return null;
|
|
5752
|
-
let S = !!c && b.trim() !== c, C =
|
|
5752
|
+
let S = !!c && b.trim() !== c, C = Mn[s || (a ? "delete" : "info")], w = () => {
|
|
5753
5753
|
h || u?.();
|
|
5754
5754
|
};
|
|
5755
|
-
return /* @__PURE__ */ p(
|
|
5755
|
+
return /* @__PURE__ */ p(An, {
|
|
5756
5756
|
...y,
|
|
5757
5757
|
open: e,
|
|
5758
5758
|
hideHeader: !0,
|
|
@@ -5793,7 +5793,7 @@ function jn({ open: e, title: t, message: n, confirmLabel: r = "Confirm", cancel
|
|
|
5793
5793
|
className: "wui-confirm-msg",
|
|
5794
5794
|
children: n
|
|
5795
5795
|
}),
|
|
5796
|
-
c && /* @__PURE__ */ p(
|
|
5796
|
+
c && /* @__PURE__ */ p(Tn, {
|
|
5797
5797
|
fieldClassName: "mt-3 mb-0 w-100 text-start",
|
|
5798
5798
|
label: /* @__PURE__ */ m(f, { children: [
|
|
5799
5799
|
"Type ",
|
|
@@ -5811,13 +5811,13 @@ function jn({ open: e, title: t, message: n, confirmLabel: r = "Confirm", cancel
|
|
|
5811
5811
|
}
|
|
5812
5812
|
//#endregion
|
|
5813
5813
|
//#region src/components/AppCopyButton.jsx
|
|
5814
|
-
var
|
|
5814
|
+
var Pn = {
|
|
5815
5815
|
sm: 14,
|
|
5816
5816
|
md: 16,
|
|
5817
5817
|
lg: 20
|
|
5818
5818
|
};
|
|
5819
|
-
function
|
|
5820
|
-
N("AppCopyButton", l), W("AppCopyButton", "size", i, Object.keys(
|
|
5819
|
+
function Fn({ text: e, label: t = "Copy", copiedLabel: n = "Copied", iconOnly: r = !1, size: i = "md", variant: o = "ghost", onCopied: s, className: c = "", ...l }) {
|
|
5820
|
+
N("AppCopyButton", l), W("AppCopyButton", "size", i, Object.keys(Pn));
|
|
5821
5821
|
let [u, f] = d(!1), m = a(async () => {
|
|
5822
5822
|
try {
|
|
5823
5823
|
if (navigator.clipboard?.writeText) {
|
|
@@ -5835,7 +5835,7 @@ function Nn({ text: e, label: t = "Copy", copiedLabel: n = "Copied", iconOnly: r
|
|
|
5835
5835
|
return r ? /* @__PURE__ */ p(de, {
|
|
5836
5836
|
icon: g,
|
|
5837
5837
|
label: h,
|
|
5838
|
-
size:
|
|
5838
|
+
size: Pn[i] ?? Pn.md,
|
|
5839
5839
|
onClick: m,
|
|
5840
5840
|
className: c,
|
|
5841
5841
|
...l
|
|
@@ -5852,7 +5852,7 @@ function Nn({ text: e, label: t = "Copy", copiedLabel: n = "Copied", iconOnly: r
|
|
|
5852
5852
|
}
|
|
5853
5853
|
//#endregion
|
|
5854
5854
|
//#region src/components/AppSkeleton.jsx
|
|
5855
|
-
function
|
|
5855
|
+
function In({ width: e = "100%", height: t = 14, radius: n = 6, className: r = "", style: i, ...a }) {
|
|
5856
5856
|
return N("AppSkeleton", a), /* @__PURE__ */ p("span", {
|
|
5857
5857
|
className: `skeleton${r ? ` ${r}` : ""}`,
|
|
5858
5858
|
"aria-hidden": "true",
|
|
@@ -5865,28 +5865,28 @@ function Pn({ width: e = "100%", height: t = 14, radius: n = 6, className: r = "
|
|
|
5865
5865
|
...a
|
|
5866
5866
|
});
|
|
5867
5867
|
}
|
|
5868
|
-
function
|
|
5869
|
-
return Array.from({ length: e }).map((e, n) => /* @__PURE__ */ p("tr", { children: Array.from({ length: t }).map((e, t) => /* @__PURE__ */ p("td", { children: /* @__PURE__ */ p(
|
|
5868
|
+
function Ln({ rows: e = 4, cols: t = 5 }) {
|
|
5869
|
+
return Array.from({ length: e }).map((e, n) => /* @__PURE__ */ p("tr", { children: Array.from({ length: t }).map((e, t) => /* @__PURE__ */ p("td", { children: /* @__PURE__ */ p(In, {
|
|
5870
5870
|
width: t === 0 ? "70%" : "50%",
|
|
5871
5871
|
height: 12
|
|
5872
5872
|
}) }, `col-${t}`)) }, `row-${n}`));
|
|
5873
5873
|
}
|
|
5874
5874
|
//#endregion
|
|
5875
5875
|
//#region src/lib/pageWindow.js
|
|
5876
|
-
var
|
|
5876
|
+
var Rn = (e, t) => {
|
|
5877
5877
|
let n = [];
|
|
5878
5878
|
for (let r = e; r <= t; r += 1) n.push(r);
|
|
5879
5879
|
return n;
|
|
5880
5880
|
};
|
|
5881
|
-
function
|
|
5881
|
+
function zn(e, t, { siblingCount: n = 2, boundaryCount: r = 1 } = {}) {
|
|
5882
5882
|
let i = Math.max(1, t), a = Math.min(Math.max(1, e), i);
|
|
5883
|
-
if (i <= n * 2 + 3 + r * 2) return
|
|
5884
|
-
let o = Math.max(a - n, r + 2), s = Math.min(a + n, i - r - 1), c = o > r + 2, l = s < i - r - 1, u =
|
|
5885
|
-
return u.push(...c ? ["ellipsis-left"] :
|
|
5883
|
+
if (i <= n * 2 + 3 + r * 2) return Rn(1, i);
|
|
5884
|
+
let o = Math.max(a - n, r + 2), s = Math.min(a + n, i - r - 1), c = o > r + 2, l = s < i - r - 1, u = Rn(1, r);
|
|
5885
|
+
return u.push(...c ? ["ellipsis-left"] : Rn(r + 1, o - 1)), u.push(...Rn(o, s)), u.push(...l ? ["ellipsis-right"] : Rn(s + 1, i - r)), u.push(...Rn(i - r + 1, i)), u;
|
|
5886
5886
|
}
|
|
5887
5887
|
//#endregion
|
|
5888
5888
|
//#region src/components/AppSelectMini.jsx
|
|
5889
|
-
function
|
|
5889
|
+
function Bn({ value: e, onChange: t, options: n = [], placeholder: r = "Select...", name: i, ariaLabel: a, id: s, disabled: c, size: l, icon: u, prefix: d, className: f, ...m }) {
|
|
5890
5890
|
N("AppSelectMini", m);
|
|
5891
5891
|
let { setRef: h, innerRef: g } = Q({
|
|
5892
5892
|
value: e ?? "",
|
|
@@ -5900,7 +5900,7 @@ function Rn({ value: e, onChange: t, options: n = [], placeholder: r = "Select..
|
|
|
5900
5900
|
label: e.label ?? e.text ?? "",
|
|
5901
5901
|
icon: e.icon
|
|
5902
5902
|
}));
|
|
5903
|
-
|
|
5903
|
+
Jt(t, e.options) || (e.options = t);
|
|
5904
5904
|
}, [n, g]), o(() => {
|
|
5905
5905
|
let e = g.current;
|
|
5906
5906
|
if (e) for (let [t, n] of [["icon", u], ["prefix", d]]) n == null || n === "" ? e.removeAttribute(t) : e.setAttribute(t, n);
|
|
@@ -5923,22 +5923,22 @@ function Rn({ value: e, onChange: t, options: n = [], placeholder: r = "Select..
|
|
|
5923
5923
|
}
|
|
5924
5924
|
//#endregion
|
|
5925
5925
|
//#region src/components/AppTablePagination.jsx
|
|
5926
|
-
var
|
|
5926
|
+
var Vn = [
|
|
5927
5927
|
5,
|
|
5928
5928
|
10,
|
|
5929
5929
|
25,
|
|
5930
5930
|
50
|
|
5931
5931
|
];
|
|
5932
|
-
function
|
|
5932
|
+
function Hn({ page: e, totalPages: t, pageSize: n, total: r, firstRow: i, lastRow: a, onPageChange: o, onPageSizeChange: s, pageSizes: c = Vn, mode: l = "prev-next", showPageSize: u = !0, className: d = "", ...f }) {
|
|
5933
5933
|
N("AppTablePagination", f);
|
|
5934
|
-
let h = l === "numbered", g = h ?
|
|
5934
|
+
let h = l === "numbered", g = h ? zn(e, t) : null;
|
|
5935
5935
|
return /* @__PURE__ */ m("div", {
|
|
5936
5936
|
className: `table-pagination${d ? ` ${d}` : ""}`,
|
|
5937
5937
|
...f,
|
|
5938
5938
|
children: [
|
|
5939
5939
|
u && /* @__PURE__ */ m("span", {
|
|
5940
5940
|
className: "tpg-rows",
|
|
5941
|
-
children: ["Rows per page:", /* @__PURE__ */ p(
|
|
5941
|
+
children: ["Rows per page:", /* @__PURE__ */ p(Bn, {
|
|
5942
5942
|
value: n,
|
|
5943
5943
|
onChange: (e) => s(Number(e)),
|
|
5944
5944
|
ariaLabel: "Rows per page",
|
|
@@ -6002,13 +6002,13 @@ function Bn({ page: e, totalPages: t, pageSize: n, total: r, firstRow: i, lastRo
|
|
|
6002
6002
|
}
|
|
6003
6003
|
//#endregion
|
|
6004
6004
|
//#region src/components/AppDataTable.jsx
|
|
6005
|
-
function
|
|
6005
|
+
function Un(e) {
|
|
6006
6006
|
return e === "end" ? "wui-cell-end" : e === "num" ? "num" : e === "center" ? "text-center" : "";
|
|
6007
6007
|
}
|
|
6008
|
-
function
|
|
6008
|
+
function Wn(e) {
|
|
6009
6009
|
return e == null || e === "" ? "—" : typeof e == "boolean" ? String(e) : e;
|
|
6010
6010
|
}
|
|
6011
|
-
function
|
|
6011
|
+
function Gn({ columns: e, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a, loading: o = !1, skeletonRows: s = 5, empty: c = "No records found.", emptyFiltered: l, sourceCount: u, rowActions: h, rowActionsLabel: g, pagination: _, ariaLabel: v, className: y = "", wrapperClassName: b = "", selectable: x = !1, selectedIds: S, onToggleRow: C, onToggleAll: w, renderExpanded: T, ...E }) {
|
|
6012
6012
|
N("AppDataTable", E);
|
|
6013
6013
|
let D = typeof T == "function", [O, k] = d(() => /* @__PURE__ */ new Set()), A = (e) => k((t) => {
|
|
6014
6014
|
let n = new Set(t);
|
|
@@ -6044,7 +6044,7 @@ function Un({ columns: e, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a,
|
|
|
6044
6044
|
e.map((e, t) => {
|
|
6045
6045
|
let n = !!(e.sortable && a), r = i && i.key === e.key;
|
|
6046
6046
|
return /* @__PURE__ */ m("th", {
|
|
6047
|
-
className: (n ? "sortable " : "") + (t === 0 ? "wui-name-cell " : "") +
|
|
6047
|
+
className: (n ? "sortable " : "") + (t === 0 ? "wui-name-cell " : "") + Un(e.align),
|
|
6048
6048
|
style: e.width ? { width: e.width } : void 0,
|
|
6049
6049
|
tabIndex: n ? 0 : void 0,
|
|
6050
6050
|
"aria-sort": r ? i.dir === "asc" ? "ascending" : "descending" : n ? "none" : void 0,
|
|
@@ -6071,7 +6071,7 @@ function Un({ columns: e, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a,
|
|
|
6071
6071
|
children: "Actions"
|
|
6072
6072
|
})
|
|
6073
6073
|
}))
|
|
6074
|
-
] }) }), /* @__PURE__ */ p("tbody", { children: o ? /* @__PURE__ */ p(
|
|
6074
|
+
] }) }), /* @__PURE__ */ p("tbody", { children: o ? /* @__PURE__ */ p(Ln, {
|
|
6075
6075
|
rows: s,
|
|
6076
6076
|
cols: j
|
|
6077
6077
|
}) : n?.length ? n.map((n, i) => {
|
|
@@ -6105,9 +6105,9 @@ function Un({ columns: e, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a,
|
|
|
6105
6105
|
})
|
|
6106
6106
|
}),
|
|
6107
6107
|
e.map((e, t) => /* @__PURE__ */ p("td", {
|
|
6108
|
-
className: (t === 0 ? "wui-name-cell " : "") +
|
|
6108
|
+
className: (t === 0 ? "wui-name-cell " : "") + Un(e.align) + (e.cellClassName ? ` ${e.cellClassName}` : ""),
|
|
6109
6109
|
style: e.cellStyle,
|
|
6110
|
-
children: e.render ? e.render(n) :
|
|
6110
|
+
children: e.render ? e.render(n) : Wn(n[e.key])
|
|
6111
6111
|
}, e.key)),
|
|
6112
6112
|
h && /* @__PURE__ */ p("td", { children: /* @__PURE__ */ p("div", {
|
|
6113
6113
|
className: "u-row-actions",
|
|
@@ -6131,7 +6131,7 @@ function Un({ columns: e, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a,
|
|
|
6131
6131
|
}) : L
|
|
6132
6132
|
}) }) })]
|
|
6133
6133
|
})
|
|
6134
|
-
}), _ && !o && _.total > 0 && /* @__PURE__ */ p(
|
|
6134
|
+
}), _ && !o && _.total > 0 && /* @__PURE__ */ p(Hn, {
|
|
6135
6135
|
page: _.page,
|
|
6136
6136
|
totalPages: _.totalPages,
|
|
6137
6137
|
pageSize: _.pageSize,
|
|
@@ -6144,7 +6144,7 @@ function Un({ columns: e, rows: n, rowKey: r = (e) => e.id, sort: i, onSort: a,
|
|
|
6144
6144
|
}
|
|
6145
6145
|
//#endregion
|
|
6146
6146
|
//#region src/components/AppDatePicker.jsx
|
|
6147
|
-
var
|
|
6147
|
+
var Kn = i(function({ value: e, onChange: t, label: n, required: r = !1, hint: i, error: a, name: o, min: c, max: l, placeholder: u = "Enter Date", disabled: d, size: f, firstDay: h, id: g, ariaLabel: _, className: v = "", ...y }, b) {
|
|
6148
6148
|
N("AppDatePicker", y);
|
|
6149
6149
|
let x = s(), S = g || o || x, { setRef: C } = Q({
|
|
6150
6150
|
ref: b,
|
|
@@ -6188,7 +6188,7 @@ var Wn = i(function({ value: e, onChange: t, label: n, required: r = !1, hint: i
|
|
|
6188
6188
|
})
|
|
6189
6189
|
]
|
|
6190
6190
|
});
|
|
6191
|
-
}),
|
|
6191
|
+
}), qn = i(function({ start: e, end: t, onChange: n, label: r, required: i = !1, hint: a, error: c, startName: l, endName: u, min: d, max: f, placeholder: h = "Start – End", disabled: g, size: _, firstDay: v, id: y, ariaLabel: b, className: x = "", ...S }, C) {
|
|
6192
6192
|
N("AppDateRangePicker", S);
|
|
6193
6193
|
let w = s(), T = y || l || w, { setRef: E, innerRef: D } = Q({
|
|
6194
6194
|
ref: C,
|
|
@@ -6249,12 +6249,12 @@ var Wn = i(function({ value: e, onChange: t, label: n, required: r = !1, hint: i
|
|
|
6249
6249
|
});
|
|
6250
6250
|
//#endregion
|
|
6251
6251
|
//#region src/lib/emptyValue.js
|
|
6252
|
-
function
|
|
6252
|
+
function Jn(e) {
|
|
6253
6253
|
return e == null || e === "";
|
|
6254
6254
|
}
|
|
6255
6255
|
//#endregion
|
|
6256
6256
|
//#region src/components/AppDescriptions.jsx
|
|
6257
|
-
function
|
|
6257
|
+
function Yn({ items: e = [], columns: t = 2, size: n = "md", bordered: r = !1, title: i, className: a = "", ...o }) {
|
|
6258
6258
|
return N("AppDescriptions", o), /* @__PURE__ */ m("div", {
|
|
6259
6259
|
className: [
|
|
6260
6260
|
"descs",
|
|
@@ -6270,7 +6270,7 @@ function qn({ items: e = [], columns: t = 2, size: n = "md", bordered: r = !1, t
|
|
|
6270
6270
|
}), /* @__PURE__ */ p("dl", {
|
|
6271
6271
|
className: "descs-list",
|
|
6272
6272
|
children: e.map((e, t) => {
|
|
6273
|
-
let n =
|
|
6273
|
+
let n = Jn(e.value), r = e.span ?? 1, i = e.key ?? `${e.label}-${t}`;
|
|
6274
6274
|
return /* @__PURE__ */ m("div", {
|
|
6275
6275
|
className: "descs-item",
|
|
6276
6276
|
style: { "--descs-span": r },
|
|
@@ -6288,24 +6288,24 @@ function qn({ items: e = [], columns: t = 2, size: n = "md", bordered: r = !1, t
|
|
|
6288
6288
|
}
|
|
6289
6289
|
//#endregion
|
|
6290
6290
|
//#region src/components/AppDropdown.jsx
|
|
6291
|
-
var
|
|
6292
|
-
function
|
|
6291
|
+
var Xn = !1;
|
|
6292
|
+
function Zn() {
|
|
6293
6293
|
let e = !0;
|
|
6294
6294
|
try {
|
|
6295
6295
|
e = process.env.NODE_ENV !== "production";
|
|
6296
6296
|
} catch {
|
|
6297
6297
|
e = !0;
|
|
6298
6298
|
}
|
|
6299
|
-
!e ||
|
|
6299
|
+
!e || Xn || (Xn = !0, console.warn("[@webority/ui-react] <AppDropdown> icon-only toggle has no accessible name — pass `label` or `ariaLabel`."));
|
|
6300
6300
|
}
|
|
6301
|
-
function
|
|
6302
|
-
N("AppDropdown", d), !u && !i && !r &&
|
|
6301
|
+
function Qn({ icon: e, iconSize: t, toggleClassName: n, label: r, ariaLabel: i, align: a = "end", items: o = [], menuClassName: s = "", linkComponent: c, children: l, trigger: u, ...d }) {
|
|
6302
|
+
N("AppDropdown", d), !u && !i && !r && Zn();
|
|
6303
6303
|
let f = n ?? (u ? "wui-dropdown-trigger" : "topbar-icon-btn");
|
|
6304
6304
|
return /* @__PURE__ */ m(b, {
|
|
6305
6305
|
align: a,
|
|
6306
6306
|
...d,
|
|
6307
6307
|
children: [/* @__PURE__ */ p(b.Toggle, {
|
|
6308
|
-
as:
|
|
6308
|
+
as: $n,
|
|
6309
6309
|
icon: e,
|
|
6310
6310
|
iconSize: t,
|
|
6311
6311
|
btnClassName: f,
|
|
@@ -6315,6 +6315,7 @@ function Xn({ icon: e, iconSize: t, toggleClassName: n, label: r, ariaLabel: i,
|
|
|
6315
6315
|
}), /* @__PURE__ */ p(b.Menu, {
|
|
6316
6316
|
className: s,
|
|
6317
6317
|
renderOnMount: !0,
|
|
6318
|
+
popperConfig: { strategy: "fixed" },
|
|
6318
6319
|
children: l ?? o.map((e) => {
|
|
6319
6320
|
if (e.divider) return /* @__PURE__ */ p(b.Divider, {}, e.key);
|
|
6320
6321
|
let t = e.to ? c ? {
|
|
@@ -6340,7 +6341,7 @@ function Xn({ icon: e, iconSize: t, toggleClassName: n, label: r, ariaLabel: i,
|
|
|
6340
6341
|
})]
|
|
6341
6342
|
});
|
|
6342
6343
|
}
|
|
6343
|
-
var
|
|
6344
|
+
var $n = i(function({ icon: e, iconSize: t = 20, btnClassName: n = "topbar-icon-btn", trigger: r, "aria-label": i, className: a, ...o }, s) {
|
|
6344
6345
|
return /* @__PURE__ */ p("button", {
|
|
6345
6346
|
ref: s,
|
|
6346
6347
|
type: "button",
|
|
@@ -6355,16 +6356,16 @@ var Zn = i(function({ icon: e, iconSize: t = 20, btnClassName: n = "topbar-icon-
|
|
|
6355
6356
|
});
|
|
6356
6357
|
//#endregion
|
|
6357
6358
|
//#region src/lib/fileItem.js
|
|
6358
|
-
function
|
|
6359
|
+
function er(e) {
|
|
6359
6360
|
return e instanceof File ? `${e.name}:${e.size}` : e?.url || e?.name || "item";
|
|
6360
6361
|
}
|
|
6361
|
-
function
|
|
6362
|
+
function tr(e) {
|
|
6362
6363
|
return e instanceof File ? e.name : e?.name;
|
|
6363
6364
|
}
|
|
6364
|
-
function
|
|
6365
|
+
function nr(e) {
|
|
6365
6366
|
return e instanceof File ? `${(e.size / 1024).toFixed(0)} KB` : null;
|
|
6366
6367
|
}
|
|
6367
|
-
function
|
|
6368
|
+
function rr(e, t) {
|
|
6368
6369
|
let [n, r] = d(null);
|
|
6369
6370
|
return o(() => {
|
|
6370
6371
|
if (!t) {
|
|
@@ -6380,8 +6381,8 @@ function tr(e, t) {
|
|
|
6380
6381
|
}
|
|
6381
6382
|
//#endregion
|
|
6382
6383
|
//#region src/lib/FileItemRow.jsx
|
|
6383
|
-
function
|
|
6384
|
-
let i =
|
|
6384
|
+
function ir({ item: e, isImage: t, onRemove: n, noun: r = "attachment" }) {
|
|
6385
|
+
let i = rr(e, t), a = tr(e), o = nr(e);
|
|
6385
6386
|
return /* @__PURE__ */ m("div", {
|
|
6386
6387
|
className: "attach-item",
|
|
6387
6388
|
children: [
|
|
@@ -6420,15 +6421,15 @@ function nr({ item: e, isImage: t, onRemove: n, noun: r = "attachment" }) {
|
|
|
6420
6421
|
}
|
|
6421
6422
|
//#endregion
|
|
6422
6423
|
//#region src/components/AppFileAttachment.jsx
|
|
6423
|
-
function
|
|
6424
|
+
function ar({ label: e = "Attachment", value: t, name: n, onChange: r, multiple: i = !1, accept: a = Mt, maxSizeMb: o = 5, optional: c = !1, error: l, id: u, ...h }) {
|
|
6424
6425
|
N("AppFileAttachment", h);
|
|
6425
|
-
let g = s(), _ = u || n || g, [v, y] = d(""), b = i && Array.isArray(t) ? t : t ? [t] : [], x =
|
|
6426
|
+
let g = s(), _ = u || n || g, [v, y] = d(""), b = i && Array.isArray(t) ? t : t ? [t] : [], x = Rt(a), S = (e) => e instanceof File ? Lt(e) : x || Lt(e), C = !i && b.length === 1 && S(b[0]);
|
|
6426
6427
|
function w(e) {
|
|
6427
6428
|
let n = Array.from(e.target.files || []);
|
|
6428
6429
|
if (e.target.value = "", !n.length) return;
|
|
6429
6430
|
let s = [], c = "";
|
|
6430
6431
|
for (let e of n) {
|
|
6431
|
-
let t =
|
|
6432
|
+
let t = Vt(e, {
|
|
6432
6433
|
accept: a,
|
|
6433
6434
|
maxSizeMb: o
|
|
6434
6435
|
});
|
|
@@ -6439,8 +6440,8 @@ function rr({ label: e = "Attachment", value: t, name: n, onChange: r, multiple:
|
|
|
6439
6440
|
s.push(e);
|
|
6440
6441
|
}
|
|
6441
6442
|
if (y(c), s.length) if (i) {
|
|
6442
|
-
let e = Array.isArray(t) ? t : t ? [t] : [], n = new Set(e.map(
|
|
6443
|
-
r(e.concat(s.filter((e) => !n.has(
|
|
6443
|
+
let e = Array.isArray(t) ? t : t ? [t] : [], n = new Set(e.map(er));
|
|
6444
|
+
r(e.concat(s.filter((e) => !n.has(er(e)))));
|
|
6444
6445
|
} else r(s[0]);
|
|
6445
6446
|
}
|
|
6446
6447
|
function T(e) {
|
|
@@ -6477,7 +6478,7 @@ function rr({ label: e = "Attachment", value: t, name: n, onChange: r, multiple:
|
|
|
6477
6478
|
}), /* @__PURE__ */ m("span", {
|
|
6478
6479
|
className: "attach-drop-hint",
|
|
6479
6480
|
children: [
|
|
6480
|
-
|
|
6481
|
+
zt(a),
|
|
6481
6482
|
", up to ",
|
|
6482
6483
|
o,
|
|
6483
6484
|
" MB"
|
|
@@ -6499,17 +6500,17 @@ function rr({ label: e = "Attachment", value: t, name: n, onChange: r, multiple:
|
|
|
6499
6500
|
onChange: w,
|
|
6500
6501
|
...h
|
|
6501
6502
|
})] }),
|
|
6502
|
-
C ? /* @__PURE__ */ p(
|
|
6503
|
+
C ? /* @__PURE__ */ p(or, {
|
|
6503
6504
|
item: b[0],
|
|
6504
6505
|
isImage: !0,
|
|
6505
6506
|
onRemove: () => T(0)
|
|
6506
6507
|
}) : b.length > 0 && /* @__PURE__ */ p("div", {
|
|
6507
6508
|
className: "attach-list",
|
|
6508
|
-
children: b.map((e, t) => /* @__PURE__ */ p(
|
|
6509
|
+
children: b.map((e, t) => /* @__PURE__ */ p(ir, {
|
|
6509
6510
|
item: e,
|
|
6510
6511
|
isImage: S(e),
|
|
6511
6512
|
onRemove: () => T(t)
|
|
6512
|
-
},
|
|
6513
|
+
}, er(e)))
|
|
6513
6514
|
}),
|
|
6514
6515
|
E && /* @__PURE__ */ p("div", {
|
|
6515
6516
|
className: "field-error",
|
|
@@ -6518,8 +6519,8 @@ function rr({ label: e = "Attachment", value: t, name: n, onChange: r, multiple:
|
|
|
6518
6519
|
]
|
|
6519
6520
|
});
|
|
6520
6521
|
}
|
|
6521
|
-
function
|
|
6522
|
-
let r =
|
|
6522
|
+
function or({ item: e, isImage: t, onRemove: n }) {
|
|
6523
|
+
let r = rr(e, t), i = tr(e), a = nr(e);
|
|
6523
6524
|
return /* @__PURE__ */ m("div", {
|
|
6524
6525
|
className: "attach-preview",
|
|
6525
6526
|
children: [/* @__PURE__ */ m("div", {
|
|
@@ -6551,18 +6552,18 @@ function ir({ item: e, isImage: t, onRemove: n }) {
|
|
|
6551
6552
|
}
|
|
6552
6553
|
//#endregion
|
|
6553
6554
|
//#region src/components/AppFilePicker.jsx
|
|
6554
|
-
function
|
|
6555
|
+
function sr({ label: e, value: t, name: n, onPick: r, multiple: i = !1, maxFiles: a, accept: c = ".jpg,.jpeg,.png", maxSizeMb: l = 5, required: f, error: h, className: g = "", ..._ }) {
|
|
6555
6556
|
N("AppFilePicker", _);
|
|
6556
6557
|
let [v, y] = d(null), [b, x] = d(!1), [S, C] = d(""), w = u(null), T = s(), E = n || T;
|
|
6557
6558
|
o(() => {
|
|
6558
|
-
if (!i && t instanceof File &&
|
|
6559
|
+
if (!i && t instanceof File && Lt(t)) {
|
|
6559
6560
|
let e = URL.createObjectURL(t);
|
|
6560
6561
|
return y(e), () => URL.revokeObjectURL(e);
|
|
6561
6562
|
}
|
|
6562
6563
|
y(null);
|
|
6563
6564
|
}, [t, i]);
|
|
6564
|
-
let D = i ? Array.isArray(t) ? t : t ? [t] : [] : [], O = h || S, k =
|
|
6565
|
-
let t =
|
|
6565
|
+
let D = i ? Array.isArray(t) ? t : t ? [t] : [] : [], O = h || S, k = Rt(c), A = !i && !!t, j = A && (t instanceof File ? Lt(t) : k || Lt(t)), M = t?.name, P = j ? t?.url || v : null, F = (e) => {
|
|
6566
|
+
let t = Vt(e, {
|
|
6566
6567
|
accept: c,
|
|
6567
6568
|
maxSizeMb: l
|
|
6568
6569
|
});
|
|
@@ -6570,9 +6571,9 @@ function ar({ label: e, value: t, name: n, onPick: r, multiple: i = !1, maxFiles
|
|
|
6570
6571
|
}, I = (e) => {
|
|
6571
6572
|
let n = Array.from(e || []);
|
|
6572
6573
|
if (!n.length) return;
|
|
6573
|
-
let i = Array.isArray(t) ? t : t ? [t] : [], o = new Set(i.map(
|
|
6574
|
+
let i = Array.isArray(t) ? t : t ? [t] : [], o = new Set(i.map(er)), s = "", u = [];
|
|
6574
6575
|
for (let e of n) {
|
|
6575
|
-
let t =
|
|
6576
|
+
let t = Vt(e, {
|
|
6576
6577
|
accept: c,
|
|
6577
6578
|
maxSizeMb: l
|
|
6578
6579
|
});
|
|
@@ -6580,7 +6581,7 @@ function ar({ label: e, value: t, name: n, onPick: r, multiple: i = !1, maxFiles
|
|
|
6580
6581
|
s ||= t;
|
|
6581
6582
|
continue;
|
|
6582
6583
|
}
|
|
6583
|
-
o.has(
|
|
6584
|
+
o.has(er(e)) || (o.add(er(e)), u.push(e));
|
|
6584
6585
|
}
|
|
6585
6586
|
let d = i.concat(u);
|
|
6586
6587
|
a && d.length > a && (d = d.slice(0, a), s ||= `Up to ${a} files.`), C(s), r(d);
|
|
@@ -6702,7 +6703,7 @@ function ar({ label: e, value: t, name: n, onPick: r, multiple: i = !1, maxFiles
|
|
|
6702
6703
|
/* @__PURE__ */ m("span", {
|
|
6703
6704
|
className: "file-input-text",
|
|
6704
6705
|
children: [
|
|
6705
|
-
|
|
6706
|
+
zt(c),
|
|
6706
6707
|
" · up to ",
|
|
6707
6708
|
l,
|
|
6708
6709
|
" MB"
|
|
@@ -6713,12 +6714,12 @@ function ar({ label: e, value: t, name: n, onPick: r, multiple: i = !1, maxFiles
|
|
|
6713
6714
|
B,
|
|
6714
6715
|
i && D.length > 0 && /* @__PURE__ */ p("div", {
|
|
6715
6716
|
className: "attach-list",
|
|
6716
|
-
children: D.map((e, t) => /* @__PURE__ */ p(
|
|
6717
|
+
children: D.map((e, t) => /* @__PURE__ */ p(ir, {
|
|
6717
6718
|
item: e,
|
|
6718
|
-
isImage: e instanceof File ?
|
|
6719
|
+
isImage: e instanceof File ? Lt(e) : k || Lt(e),
|
|
6719
6720
|
noun: "file",
|
|
6720
6721
|
onRemove: () => z(t)
|
|
6721
|
-
},
|
|
6722
|
+
}, er(e)))
|
|
6722
6723
|
})
|
|
6723
6724
|
]
|
|
6724
6725
|
}),
|
|
@@ -6731,7 +6732,7 @@ function ar({ label: e, value: t, name: n, onPick: r, multiple: i = !1, maxFiles
|
|
|
6731
6732
|
}
|
|
6732
6733
|
//#endregion
|
|
6733
6734
|
//#region src/components/AppFloatingDock.jsx
|
|
6734
|
-
function
|
|
6735
|
+
function cr({ items: e = [], linkComponent: t, ariaLabel: n = "Quick navigation", magnify: r = !0, maxScale: i, radius: a, className: o = "", ...s }) {
|
|
6735
6736
|
return N("AppFloatingDock", s), /* @__PURE__ */ p("wui-dock", {
|
|
6736
6737
|
role: "navigation",
|
|
6737
6738
|
"aria-label": n,
|
|
@@ -6773,7 +6774,7 @@ function or({ items: e = [], linkComponent: t, ariaLabel: n = "Quick navigation"
|
|
|
6773
6774
|
}
|
|
6774
6775
|
//#endregion
|
|
6775
6776
|
//#region src/components/AppFormActions.jsx
|
|
6776
|
-
function
|
|
6777
|
+
function lr({ children: e, sticky: t = !1, align: n = "end", className: r = "", ...i }) {
|
|
6777
6778
|
return N("AppFormActions", i), /* @__PURE__ */ p("div", {
|
|
6778
6779
|
className: [
|
|
6779
6780
|
"form-actions",
|
|
@@ -6787,7 +6788,7 @@ function sr({ children: e, sticky: t = !1, align: n = "end", className: r = "",
|
|
|
6787
6788
|
}
|
|
6788
6789
|
//#endregion
|
|
6789
6790
|
//#region src/components/AppFormRow.jsx
|
|
6790
|
-
function
|
|
6791
|
+
function ur({ children: e, columns: t = 2, className: n = "", ...r }) {
|
|
6791
6792
|
N("AppFormRow", r);
|
|
6792
6793
|
let { style: i, ...a } = r;
|
|
6793
6794
|
return /* @__PURE__ */ p("div", {
|
|
@@ -6802,7 +6803,7 @@ function cr({ children: e, columns: t = 2, className: n = "", ...r }) {
|
|
|
6802
6803
|
}
|
|
6803
6804
|
//#endregion
|
|
6804
6805
|
//#region src/components/AppFormSection.jsx
|
|
6805
|
-
function
|
|
6806
|
+
function dr({ children: e, title: t, description: n, className: r = "", ...i }) {
|
|
6806
6807
|
return N("AppFormSection", i), /* @__PURE__ */ m("section", {
|
|
6807
6808
|
className: ["form-section", r].filter(Boolean).join(" "),
|
|
6808
6809
|
...i,
|
|
@@ -6823,12 +6824,12 @@ function lr({ children: e, title: t, description: n, className: r = "", ...i })
|
|
|
6823
6824
|
}
|
|
6824
6825
|
//#endregion
|
|
6825
6826
|
//#region src/components/AppInfoList.jsx
|
|
6826
|
-
function
|
|
6827
|
+
function fr({ items: e = [], className: t = "", ...n }) {
|
|
6827
6828
|
return N("AppInfoList", n), /* @__PURE__ */ p("div", {
|
|
6828
6829
|
className: `info-list${t ? ` ${t}` : ""}`,
|
|
6829
6830
|
...n,
|
|
6830
6831
|
children: e.map((e, t) => {
|
|
6831
|
-
let n =
|
|
6832
|
+
let n = Jn(e.value), r = /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("span", {
|
|
6832
6833
|
className: "info-icon",
|
|
6833
6834
|
children: H(e.icon, { size: 16 })
|
|
6834
6835
|
}), /* @__PURE__ */ m("span", {
|
|
@@ -6854,23 +6855,23 @@ function ur({ items: e = [], className: t = "", ...n }) {
|
|
|
6854
6855
|
}
|
|
6855
6856
|
//#endregion
|
|
6856
6857
|
//#region src/components/AppKpiTile.jsx
|
|
6857
|
-
var
|
|
6858
|
-
function
|
|
6859
|
-
if (!e || e.length < 2) return `0,${
|
|
6860
|
-
let t = Math.min(...e), n = Math.max(...e) - t, r =
|
|
6861
|
-
return e.map((e, i) => `${i * r},${n === 0 ?
|
|
6858
|
+
var pr = 48, mr = 16;
|
|
6859
|
+
function hr(e) {
|
|
6860
|
+
if (!e || e.length < 2) return `0,${mr / 2} ${pr},${mr / 2}`;
|
|
6861
|
+
let t = Math.min(...e), n = Math.max(...e) - t, r = pr / (e.length - 1);
|
|
6862
|
+
return e.map((e, i) => `${i * r},${n === 0 ? mr / 2 : mr - (e - t) / n * mr}`).join(" ");
|
|
6862
6863
|
}
|
|
6863
|
-
function
|
|
6864
|
+
function gr(e) {
|
|
6864
6865
|
if (typeof e != "string") return "flat";
|
|
6865
6866
|
let t = e.trim();
|
|
6866
6867
|
return t.startsWith("+") ? "up" : t.startsWith("-") || t.startsWith("−") ? "down" : "flat";
|
|
6867
6868
|
}
|
|
6868
|
-
function
|
|
6869
|
+
function _r({ label: e, value: t, caption: n, icon: r, iconTone: i, delta: a, deltaDirection: o, sparkline: s, variant: c = "plain", size: l = "md", valueSize: u, inline: d = !1, attention: f = !1, href: h, linkComponent: g, className: _ = "", style: v, iconClassName: y = "", labelClassName: b = "", valueClassName: x = "", captionClassName: S = "", deltaClassName: C = "", sparklineClassName: w = "", ...T }) {
|
|
6869
6870
|
N("AppKpiTile", T);
|
|
6870
6871
|
let E = `kpi${d ? " kpi-inline" : ""}${c === "filled" ? " kpi-filled" : c === "accent" ? " kpi-accent" : c === "spotlight" ? " kpi-spotlight" : ""}${l === "lg" ? " kpi-lg" : l === "sm" ? " kpi-sm" : ""}${f ? " kpi-attention" : ""}${_ ? ` ${_}` : ""}`, D = typeof u == "number" && u > 0 ? {
|
|
6871
6872
|
...v,
|
|
6872
6873
|
"--wui-kpi-value-size": `${u}px`
|
|
6873
|
-
} : v, O = o ??
|
|
6874
|
+
} : v, O = o ?? gr(a), k = O === "up" ? "arrow-up" : O === "down" ? "arrow-down" : null, A = {};
|
|
6874
6875
|
return h != null && (A = g ? {
|
|
6875
6876
|
as: g,
|
|
6876
6877
|
to: h
|
|
@@ -6908,12 +6909,12 @@ function hr({ label: e, value: t, caption: n, icon: r, iconTone: i, delta: a, de
|
|
|
6908
6909
|
}),
|
|
6909
6910
|
s && s.length > 0 && /* @__PURE__ */ p("svg", {
|
|
6910
6911
|
className: `kpi-sparkline${w ? ` ${w}` : ""}`,
|
|
6911
|
-
width:
|
|
6912
|
-
height:
|
|
6913
|
-
viewBox: `0 0 ${
|
|
6912
|
+
width: pr,
|
|
6913
|
+
height: mr,
|
|
6914
|
+
viewBox: `0 0 ${pr} ${mr}`,
|
|
6914
6915
|
"aria-hidden": "true",
|
|
6915
6916
|
children: /* @__PURE__ */ p("polyline", {
|
|
6916
|
-
points:
|
|
6917
|
+
points: hr(s),
|
|
6917
6918
|
stroke: "currentColor",
|
|
6918
6919
|
fill: "none"
|
|
6919
6920
|
})
|
|
@@ -6923,13 +6924,13 @@ function hr({ label: e, value: t, caption: n, icon: r, iconTone: i, delta: a, de
|
|
|
6923
6924
|
}
|
|
6924
6925
|
//#endregion
|
|
6925
6926
|
//#region src/components/AppLogoPicker.jsx
|
|
6926
|
-
var
|
|
6927
|
+
var vr = {
|
|
6927
6928
|
sm: 72,
|
|
6928
6929
|
md: 120,
|
|
6929
6930
|
lg: 160
|
|
6930
6931
|
};
|
|
6931
|
-
function
|
|
6932
|
-
N("AppLogoPicker", k), W("AppLogoPicker", "size", typeof E == "string" ? E : null, Object.keys(
|
|
6932
|
+
function yr({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a = !1, disabled: c = !1, accept: l = "image/png,image/jpeg,image/webp", maxSizeMb: f = 5, overlayIcon: h = "image", overlayLabel: g = "Update photo", ariaLabel: _ = "Upload photo", label: v, hint: y, error: b, layout: x = "stacked", title: S, subtitle: C, required: w = !1, variant: T = "initials", size: E = "md", shape: D = "circle", className: O = "", ...k }) {
|
|
6933
|
+
N("AppLogoPicker", k), W("AppLogoPicker", "size", typeof E == "string" ? E : null, Object.keys(vr));
|
|
6933
6934
|
let A = u(null), j = s(), M = n || j, [P, F] = d(null), [I, L] = d(""), [R, z] = d(!1), [ee, B] = d(!1);
|
|
6934
6935
|
o(() => () => P && URL.revokeObjectURL(P), [P]), o(() => {
|
|
6935
6936
|
F(null), z(!1);
|
|
@@ -6937,7 +6938,7 @@ function _r({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a
|
|
|
6937
6938
|
let te = a || c, ne = P || (e && !R ? e : null), re = b || I, ie = !te && (!!P || !!ne && !!i), ae = () => {
|
|
6938
6939
|
te || A.current?.click();
|
|
6939
6940
|
}, oe = (e) => {
|
|
6940
|
-
let t =
|
|
6941
|
+
let t = Vt(e, {
|
|
6941
6942
|
accept: l,
|
|
6942
6943
|
maxSizeMb: f
|
|
6943
6944
|
});
|
|
@@ -6955,7 +6956,7 @@ function _r({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a
|
|
|
6955
6956
|
t && oe(t);
|
|
6956
6957
|
}, le = () => {
|
|
6957
6958
|
F(null), L(""), z(!1), A.current && (A.current.value = ""), i?.();
|
|
6958
|
-
}, ue = typeof E == "number" ? E :
|
|
6959
|
+
}, ue = typeof E == "number" ? E : vr[E] ?? vr.md, H = Math.max(14, Math.round(ue * .18)), de = Math.round(ue * .5), fe = [
|
|
6959
6960
|
"set-uploader",
|
|
6960
6961
|
T === "avatar" ? "set-uploader--avatar" : "",
|
|
6961
6962
|
D === "rounded" ? "set-uploader--rounded" : D === "square" ? "set-uploader--square" : "",
|
|
@@ -7083,27 +7084,27 @@ function _r({ value: e, fallback: t, name: n, onPick: r, onRemove: i, loading: a
|
|
|
7083
7084
|
}
|
|
7084
7085
|
//#endregion
|
|
7085
7086
|
//#region src/components/AppMeter.jsx
|
|
7086
|
-
var
|
|
7087
|
+
var br = [
|
|
7087
7088
|
"info",
|
|
7088
7089
|
"success",
|
|
7089
7090
|
"warning",
|
|
7090
7091
|
"danger",
|
|
7091
7092
|
"neutral"
|
|
7092
7093
|
];
|
|
7093
|
-
function
|
|
7094
|
+
function xr(e, t, n) {
|
|
7094
7095
|
let r = n - t;
|
|
7095
7096
|
if (!(r > 0)) return 0;
|
|
7096
7097
|
let i = Math.min(100, Math.max(0, (e - t) / r * 100));
|
|
7097
7098
|
return Number(i.toFixed(2));
|
|
7098
7099
|
}
|
|
7099
|
-
function
|
|
7100
|
+
function Sr(e, t, n, r, i) {
|
|
7100
7101
|
if (t == null && n == null) return i;
|
|
7101
7102
|
let a = "mid";
|
|
7102
7103
|
return t != null && e <= t ? a = "low" : n != null && e >= n && (a = "high"), r === "low" ? a === "low" ? "success" : a === "high" ? "danger" : "warning" : a === "high" ? "success" : a === "low" ? "danger" : "warning";
|
|
7103
7104
|
}
|
|
7104
|
-
function
|
|
7105
|
+
function Cr({ value: e = 0, min: t = 0, max: n = 100, tone: r = "info", optimum: i = "high", low: a, high: o, size: s = "md", label: c, showLabel: l = !1, className: u = "", ...d }) {
|
|
7105
7106
|
N("AppMeter", d);
|
|
7106
|
-
let f =
|
|
7107
|
+
let f = Sr(e, a, o, i, br.includes(r) ? r : "info"), m = xr(e, t, n);
|
|
7107
7108
|
return /* @__PURE__ */ p("div", {
|
|
7108
7109
|
className: `progress${s === "sm" ? " progress-sm" : ""}${u ? ` ${u}` : ""}`,
|
|
7109
7110
|
role: "meter",
|
|
@@ -7121,20 +7122,20 @@ function xr({ value: e = 0, min: t = 0, max: n = 100, tone: r = "info", optimum:
|
|
|
7121
7122
|
}
|
|
7122
7123
|
//#endregion
|
|
7123
7124
|
//#region src/components/AppMultiSelect.jsx
|
|
7124
|
-
var
|
|
7125
|
+
var wr = i(function({ values: e, onChange: t, options: n, placeholder: r = "Select…", searchPlaceholder: i = "Search…", searchable: a = !0, disabled: c = !1, icon: l, size: u, collapseChips: d = !1, name: f, label: h, error: g, hint: _, required: v = !1, help: y, helpLabel: b = "More information", fieldClassName: x = "", ...S }, C) {
|
|
7125
7126
|
N("AppMultiSelect", S);
|
|
7126
7127
|
let w = s(), T = f || w, { setRef: E, innerRef: D } = Q({
|
|
7127
7128
|
ref: C,
|
|
7128
7129
|
value: e,
|
|
7129
7130
|
onChange: t,
|
|
7130
|
-
readValue:
|
|
7131
|
-
writeValue:
|
|
7131
|
+
readValue: Yt,
|
|
7132
|
+
writeValue: Xt
|
|
7132
7133
|
});
|
|
7133
7134
|
return o(() => {
|
|
7134
7135
|
let e = D.current;
|
|
7135
7136
|
if (!e) return;
|
|
7136
7137
|
let t = n || [];
|
|
7137
|
-
|
|
7138
|
+
Jt(t, e.options) || (e.options = t);
|
|
7138
7139
|
}, [n, D]), /* @__PURE__ */ m("div", {
|
|
7139
7140
|
className: `field${x ? ` ${x}` : ""}`,
|
|
7140
7141
|
children: [
|
|
@@ -7144,7 +7145,7 @@ var Sr = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
|
|
|
7144
7145
|
children: [
|
|
7145
7146
|
h,
|
|
7146
7147
|
v && /* @__PURE__ */ p(Z, {}),
|
|
7147
|
-
y && /* @__PURE__ */ p(
|
|
7148
|
+
y && /* @__PURE__ */ p(Wt, {
|
|
7148
7149
|
label: b,
|
|
7149
7150
|
children: y
|
|
7150
7151
|
})
|
|
@@ -7178,7 +7179,7 @@ var Sr = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
|
|
|
7178
7179
|
}) : null
|
|
7179
7180
|
]
|
|
7180
7181
|
});
|
|
7181
|
-
}),
|
|
7182
|
+
}), Tr = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, helpLabel: a = "More information", value: c, onChange: l, min: u, max: f, step: h = 1, precision: g = 0, unit: _, size: v = "md", id: y, name: b, className: S = "", fieldClassName: C = "", disabled: w = !1, ...T }, E) {
|
|
7182
7183
|
N("AppNumberInput", T);
|
|
7183
7184
|
let D = s(), O = y || D, k = (e) => {
|
|
7184
7185
|
if (g === 0) return Math.round(e);
|
|
@@ -7283,7 +7284,7 @@ var Sr = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
|
|
|
7283
7284
|
children: [
|
|
7284
7285
|
e,
|
|
7285
7286
|
t && /* @__PURE__ */ p(Z, {}),
|
|
7286
|
-
i && /* @__PURE__ */ p(
|
|
7287
|
+
i && /* @__PURE__ */ p(Wt, {
|
|
7287
7288
|
label: a,
|
|
7288
7289
|
children: i
|
|
7289
7290
|
})
|
|
@@ -7301,7 +7302,7 @@ var Sr = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
|
|
|
7301
7302
|
}) : null
|
|
7302
7303
|
]
|
|
7303
7304
|
});
|
|
7304
|
-
}),
|
|
7305
|
+
}), Er = i(function({ value: e, onChange: t, onComplete: n, length: r = 6, mode: i = "numeric", label: a, required: o = !1, hint: c, error: l, disabled: u = !1, name: d, id: f, className: h = "", ...g }, _) {
|
|
7305
7306
|
N("AppOtpInput", g);
|
|
7306
7307
|
let v = s(), y = f || v, { setRef: b } = Q({
|
|
7307
7308
|
ref: _,
|
|
@@ -7342,7 +7343,7 @@ var Sr = i(function({ values: e, onChange: t, options: n, placeholder: r = "Sele
|
|
|
7342
7343
|
});
|
|
7343
7344
|
//#endregion
|
|
7344
7345
|
//#region src/components/AppPageHeader.jsx
|
|
7345
|
-
function
|
|
7346
|
+
function Dr({ title: e, subtitle: t, eyebrow: n, icon: r, tone: i = "primary", status: a, breadcrumbs: o, actions: s, size: c = "md", align: l = "start", divider: u = !1, sticky: d = !1, className: f = "", ...h }) {
|
|
7346
7347
|
N("AppPageHeader", h);
|
|
7347
7348
|
let g = [
|
|
7348
7349
|
"page-header",
|
|
@@ -7401,9 +7402,9 @@ function Tr({ title: e, subtitle: t, eyebrow: n, icon: r, tone: i = "primary", s
|
|
|
7401
7402
|
}
|
|
7402
7403
|
//#endregion
|
|
7403
7404
|
//#region src/components/AppPagination.jsx
|
|
7404
|
-
function
|
|
7405
|
+
function Or({ page: e, totalPages: t, onChange: n, siblings: r = 1, size: i = "md", ariaLabel: a = "Pagination", className: o, ...s }) {
|
|
7405
7406
|
if (N("AppPagination", s), t <= 1) return null;
|
|
7406
|
-
let c =
|
|
7407
|
+
let c = zn(e, t, { siblingCount: r });
|
|
7407
7408
|
return /* @__PURE__ */ p("nav", {
|
|
7408
7409
|
className: [
|
|
7409
7410
|
"pagination-nav",
|
|
@@ -7461,7 +7462,7 @@ function Er({ page: e, totalPages: t, onChange: n, siblings: r = 1, size: i = "m
|
|
|
7461
7462
|
}
|
|
7462
7463
|
//#endregion
|
|
7463
7464
|
//#region src/components/AppPhoneNumberInput.jsx
|
|
7464
|
-
var
|
|
7465
|
+
var kr = i(function({ value: e, onChange: t, country: n, disabled: r = !1, name: i, label: a = "Phone number", placeholder: o, required: c = !1, error: l, showFlag: u = !0, showDialCode: d = !0, size: f = "md", fieldClassName: h = "", ...g }, _) {
|
|
7465
7466
|
N("AppPhoneNumberInput", g);
|
|
7466
7467
|
let v = s(), y = i || v, b = l && y ? `${y}-error` : void 0, { setRef: x } = Q({
|
|
7467
7468
|
ref: _,
|
|
@@ -7501,7 +7502,7 @@ var Dr = i(function({ value: e, onChange: t, country: n, disabled: r = !1, name:
|
|
|
7501
7502
|
});
|
|
7502
7503
|
//#endregion
|
|
7503
7504
|
//#region src/components/AppPricingCard.jsx
|
|
7504
|
-
function
|
|
7505
|
+
function Ar({ name: e, price: t, unit: n, tagline: r, features: i = [], cta: a, featured: o = !1, current: s = !1, badge: c = "Most popular", className: l = "", ...u }) {
|
|
7505
7506
|
return N("AppPricingCard", u), /* @__PURE__ */ m("div", {
|
|
7506
7507
|
className: [
|
|
7507
7508
|
"plan-card",
|
|
@@ -7555,21 +7556,21 @@ function Or({ name: e, price: t, unit: n, tagline: r, features: i = [], cta: a,
|
|
|
7555
7556
|
}
|
|
7556
7557
|
//#endregion
|
|
7557
7558
|
//#region src/components/AppProgress.jsx
|
|
7558
|
-
var
|
|
7559
|
+
var jr = [
|
|
7559
7560
|
"info",
|
|
7560
7561
|
"success",
|
|
7561
7562
|
"warning",
|
|
7562
7563
|
"danger",
|
|
7563
7564
|
"neutral"
|
|
7564
7565
|
];
|
|
7565
|
-
function
|
|
7566
|
+
function Mr(e, t) {
|
|
7566
7567
|
if (!(t > 0)) return 0;
|
|
7567
7568
|
let n = Math.min(100, Math.max(0, e / t * 100));
|
|
7568
7569
|
return Number(n.toFixed(2));
|
|
7569
7570
|
}
|
|
7570
|
-
function
|
|
7571
|
+
function Nr({ value: e = 0, max: t = 100, tone: n = "info", size: r = "md", label: i, showLabel: a = !1, striped: o = !1, animated: s = !1, indeterminate: c = !1, className: l = "", ...u }) {
|
|
7571
7572
|
N("AppProgress", u);
|
|
7572
|
-
let d =
|
|
7573
|
+
let d = jr.includes(n) ? n : "info", f = Mr(e, t), m = `progress${r === "sm" ? " progress-sm" : ""}${l ? ` ${l}` : ""}`, h = [
|
|
7573
7574
|
"progress-bar",
|
|
7574
7575
|
`wui-progress-${d}`,
|
|
7575
7576
|
o || s ? "progress-bar-striped" : "",
|
|
@@ -7593,8 +7594,8 @@ function jr({ value: e = 0, max: t = 100, tone: n = "info", size: r = "md", labe
|
|
|
7593
7594
|
}
|
|
7594
7595
|
//#endregion
|
|
7595
7596
|
//#region src/components/AppRadio.jsx
|
|
7596
|
-
var
|
|
7597
|
-
return N("AppRadio", o), /* @__PURE__ */ p(
|
|
7597
|
+
var Pr = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a = "", ...o }, s) {
|
|
7598
|
+
return N("AppRadio", o), /* @__PURE__ */ p(vn, {
|
|
7598
7599
|
ref: s,
|
|
7599
7600
|
label: e,
|
|
7600
7601
|
id: t,
|
|
@@ -7609,7 +7610,7 @@ var Mr = i(function({ label: e, id: t, name: n, error: r, hint: i, className: a
|
|
|
7609
7610
|
});
|
|
7610
7611
|
//#endregion
|
|
7611
7612
|
//#region src/components/AppRepeater.jsx
|
|
7612
|
-
function
|
|
7613
|
+
function Fr({ rows: e = [], renderRow: t, onAdd: n, onRemove: r, addLabel: i = "Add another", removeLabel: a = "Remove row", emptyText: o, min: s = 0, max: c, numbered: l = !0, className: u = "", ...d }) {
|
|
7613
7614
|
N("AppRepeater", d);
|
|
7614
7615
|
let f = typeof c == "number" && e.length >= c, h = !!r && e.length > s;
|
|
7615
7616
|
return /* @__PURE__ */ m("div", {
|
|
@@ -7654,7 +7655,7 @@ function Nr({ rows: e = [], renderRow: t, onAdd: n, onRemove: r, addLabel: i = "
|
|
|
7654
7655
|
}
|
|
7655
7656
|
//#endregion
|
|
7656
7657
|
//#region src/components/AppResourceCard.jsx
|
|
7657
|
-
function
|
|
7658
|
+
function Ir({ icon: e, title: t, text: n, href: r, external: i = !1, linkComponent: a, className: o = "", ...s }) {
|
|
7658
7659
|
N("AppResourceCard", s);
|
|
7659
7660
|
let c = /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("span", {
|
|
7660
7661
|
className: "res-card-icon",
|
|
@@ -7688,7 +7689,7 @@ function Pr({ icon: e, title: t, text: n, href: r, external: i = !1, linkCompone
|
|
|
7688
7689
|
}
|
|
7689
7690
|
//#endregion
|
|
7690
7691
|
//#region src/components/AppResult.jsx
|
|
7691
|
-
var
|
|
7692
|
+
var Lr = {
|
|
7692
7693
|
success: {
|
|
7693
7694
|
icon: "check-circle",
|
|
7694
7695
|
tone: "success"
|
|
@@ -7709,9 +7710,9 @@ var Fr = {
|
|
|
7709
7710
|
404: { tone: "muted" },
|
|
7710
7711
|
500: { tone: "muted" }
|
|
7711
7712
|
};
|
|
7712
|
-
function
|
|
7713
|
-
N("AppResult", s), W("AppResult", "status", e, Object.keys(
|
|
7714
|
-
let c =
|
|
7713
|
+
function Rr({ status: e = "info", title: t, subtitle: n, icon: r, actions: i, children: a, className: o = "", ...s }) {
|
|
7714
|
+
N("AppResult", s), W("AppResult", "status", e, Object.keys(Lr));
|
|
7715
|
+
let c = Lr[e] || Lr.info, l = c.tone, u = /^\d+$/.test(e), d = r ?? (u ? null : c.icon);
|
|
7715
7716
|
return /* @__PURE__ */ m("div", {
|
|
7716
7717
|
className: [
|
|
7717
7718
|
"result",
|
|
@@ -7749,7 +7750,7 @@ function Ir({ status: e = "info", title: t, subtitle: n, icon: r, actions: i, ch
|
|
|
7749
7750
|
}
|
|
7750
7751
|
//#endregion
|
|
7751
7752
|
//#region src/components/AppScrollbar.jsx
|
|
7752
|
-
function
|
|
7753
|
+
function zr({ children: e, className: t = "", maxHeight: n, style: r, ...i }) {
|
|
7753
7754
|
return N("AppScrollbar", i), /* @__PURE__ */ p("div", {
|
|
7754
7755
|
className: t ? `wui-scroll ${t}` : "wui-scroll",
|
|
7755
7756
|
style: n == null ? r : {
|
|
@@ -7762,7 +7763,7 @@ function Lr({ children: e, className: t = "", maxHeight: n, style: r, ...i }) {
|
|
|
7762
7763
|
}
|
|
7763
7764
|
//#endregion
|
|
7764
7765
|
//#region src/components/AppSearch.jsx
|
|
7765
|
-
function
|
|
7766
|
+
function Br({ value: e, onChange: t, onValueChange: n, placeholder: r = "Search…", ariaLabel: i, iconSize: a = 18, size: o, loading: s = !1, disabled: c = !1, className: l = "", ...u }) {
|
|
7766
7767
|
N("AppSearch", u);
|
|
7767
7768
|
let d = t || n;
|
|
7768
7769
|
return /* @__PURE__ */ m("div", {
|
|
@@ -7809,7 +7810,7 @@ function Rr({ value: e, onChange: t, onValueChange: n, placeholder: r = "Search
|
|
|
7809
7810
|
}
|
|
7810
7811
|
//#endregion
|
|
7811
7812
|
//#region src/components/AppSegmented.jsx
|
|
7812
|
-
function
|
|
7813
|
+
function Vr({ options: e = [], value: t, onChange: n, label: r, name: i, size: a = "md", fullWidth: l = !1, disabled: d = !1, className: f = "", ...h }) {
|
|
7813
7814
|
N("AppSegmented", h);
|
|
7814
7815
|
let g = s(), _ = i || g, v = u(null), y = u(null), b = [
|
|
7815
7816
|
"segmented",
|
|
@@ -7884,7 +7885,7 @@ function zr({ options: e = [], value: t, onChange: n, label: r, name: i, size: a
|
|
|
7884
7885
|
}
|
|
7885
7886
|
//#endregion
|
|
7886
7887
|
//#region src/components/AppSelect.jsx
|
|
7887
|
-
var
|
|
7888
|
+
var Hr = (e) => e == null ? "" : e.label ?? e.text ?? "", Ur = i(function({ value: e, onChange: t, options: n = [], placeholder: r = "Select...", searchPlaceholder: i = "Search...", searchable: a = !1, clearable: c = !1, size: l, icon: u, floatingLabel: d = !1, disabled: f, label: h, required: g = !1, error: _, hint: v, help: y, helpLabel: b = "More information", id: x, name: S, className: C = "", fieldClassName: w = "", "aria-label": T, "aria-labelledby": E, "aria-describedby": D, ...O }, k) {
|
|
7888
7889
|
N("AppSelect", O);
|
|
7889
7890
|
let A = s(), { setRef: j, innerRef: M } = Q({
|
|
7890
7891
|
ref: k,
|
|
@@ -7896,10 +7897,10 @@ var Br = (e) => e == null ? "" : e.label ?? e.text ?? "", Vr = i(function({ valu
|
|
|
7896
7897
|
if (!e) return;
|
|
7897
7898
|
let t = n.map((e) => ({
|
|
7898
7899
|
value: e.value,
|
|
7899
|
-
label:
|
|
7900
|
+
label: Hr(e),
|
|
7900
7901
|
icon: e.icon
|
|
7901
7902
|
}));
|
|
7902
|
-
|
|
7903
|
+
Jt(t, e.options) || (e.options = t);
|
|
7903
7904
|
}, [n, M]);
|
|
7904
7905
|
let P = x || S || A, F = d && h, I = _ && P ? `${P}-error` : void 0, L = v && P ? `${P}-hint` : void 0, R = /* @__PURE__ */ p("wui-select", {
|
|
7905
7906
|
"aria-label": T || (typeof h == "string" ? h : void 0),
|
|
@@ -7932,7 +7933,7 @@ var Br = (e) => e == null ? "" : e.label ?? e.text ?? "", Vr = i(function({ valu
|
|
|
7932
7933
|
children: [
|
|
7933
7934
|
h,
|
|
7934
7935
|
g && /* @__PURE__ */ p(Z, {}),
|
|
7935
|
-
y && /* @__PURE__ */ p(
|
|
7936
|
+
y && /* @__PURE__ */ p(Wt, {
|
|
7936
7937
|
label: b,
|
|
7937
7938
|
children: y
|
|
7938
7939
|
})
|
|
@@ -7960,7 +7961,7 @@ var Br = (e) => e == null ? "" : e.label ?? e.text ?? "", Vr = i(function({ valu
|
|
|
7960
7961
|
});
|
|
7961
7962
|
//#endregion
|
|
7962
7963
|
//#region src/components/AppShell.jsx
|
|
7963
|
-
function
|
|
7964
|
+
function Wr({ groups: e = [], brand: t, sidebarStart: n, sidebarStartCompact: r, sidebarFooter: i, topbarStart: a, topbarEnd: s, footer: c, children: l, collapsed: u, onCollapsedChange: f, noSidebar: h = !1, navLabel: g = "Main navigation", linkComponent: _, className: v = "", ...y }) {
|
|
7964
7965
|
N("AppShell", y);
|
|
7965
7966
|
let [b, x] = d(!1), [S, C] = d(!1), [w, T] = d(!1), E = u ?? b, D = () => {
|
|
7966
7967
|
let e = !E;
|
|
@@ -8008,7 +8009,7 @@ function Hr({ groups: e = [], brand: t, sidebarStart: n, sidebarStartCompact: r,
|
|
|
8008
8009
|
children: [e.label && /* @__PURE__ */ p("div", {
|
|
8009
8010
|
className: "app-nav-group-label",
|
|
8010
8011
|
children: e.label
|
|
8011
|
-
}), e.items.map((e) => /* @__PURE__ */ p(
|
|
8012
|
+
}), e.items.map((e) => /* @__PURE__ */ p(Gr, {
|
|
8012
8013
|
item: e,
|
|
8013
8014
|
linkComponent: _,
|
|
8014
8015
|
onNavigate: () => C(!1)
|
|
@@ -8075,7 +8076,7 @@ function Hr({ groups: e = [], brand: t, sidebarStart: n, sidebarStartCompact: r,
|
|
|
8075
8076
|
]
|
|
8076
8077
|
});
|
|
8077
8078
|
}
|
|
8078
|
-
function
|
|
8079
|
+
function Gr({ item: e, linkComponent: t, onNavigate: n, sub: r = !1 }) {
|
|
8079
8080
|
let i = Array.isArray(e.children) && e.children.length > 0, a = i && e.children.some((e) => e.active), [s, c] = d(a);
|
|
8080
8081
|
o(() => {
|
|
8081
8082
|
a && !s && c(!0);
|
|
@@ -8115,7 +8116,7 @@ function Ur({ item: e, linkComponent: t, onNavigate: n, sub: r = !1 }) {
|
|
|
8115
8116
|
className: `app-nav-sub${s ? " expanded" : ""}`,
|
|
8116
8117
|
children: /* @__PURE__ */ p("div", {
|
|
8117
8118
|
className: "app-nav-sub-inner",
|
|
8118
|
-
children: e.children.map((e) => /* @__PURE__ */ p(
|
|
8119
|
+
children: e.children.map((e) => /* @__PURE__ */ p(Gr, {
|
|
8119
8120
|
item: e,
|
|
8120
8121
|
linkComponent: t,
|
|
8121
8122
|
onNavigate: n,
|
|
@@ -8156,7 +8157,7 @@ function Ur({ item: e, linkComponent: t, onNavigate: n, sub: r = !1 }) {
|
|
|
8156
8157
|
}
|
|
8157
8158
|
//#endregion
|
|
8158
8159
|
//#region src/components/AppSidebarMenu.jsx
|
|
8159
|
-
var
|
|
8160
|
+
var Kr = {
|
|
8160
8161
|
left: "start",
|
|
8161
8162
|
right: "end",
|
|
8162
8163
|
start: "start",
|
|
@@ -8164,9 +8165,9 @@ var Wr = {
|
|
|
8164
8165
|
top: "top",
|
|
8165
8166
|
bottom: "bottom"
|
|
8166
8167
|
};
|
|
8167
|
-
function
|
|
8168
|
-
N("AppSidebarMenu", b), W("AppSidebarMenu", "side", n, Object.keys(
|
|
8169
|
-
let { style: x, ...S } = b, w =
|
|
8168
|
+
function qr({ show: e, onHide: t, side: n = "right", title: r, titleIcon: i, header: a, children: o, footer: s, width: c, maxWidth: l, backdrop: u = !0, scroll: d = !1, keyboard: f = !0, closeButton: h = !0, responsive: g, className: _ = "", bodyClassName: v = "", ariaLabel: y, ...b }) {
|
|
8169
|
+
N("AppSidebarMenu", b), W("AppSidebarMenu", "side", n, Object.keys(Kr));
|
|
8170
|
+
let { style: x, ...S } = b, w = Kr[n] || "end", T = c || l || x ? {
|
|
8170
8171
|
...c && { "--asm-width": c },
|
|
8171
8172
|
...l && { "--asm-max-width": l },
|
|
8172
8173
|
...x
|
|
@@ -8219,14 +8220,14 @@ function Gr({ show: e, onHide: t, side: n = "right", title: r, titleIcon: i, hea
|
|
|
8219
8220
|
}
|
|
8220
8221
|
//#endregion
|
|
8221
8222
|
//#region src/components/AppSlider.jsx
|
|
8222
|
-
var
|
|
8223
|
+
var Jr = i(function({ value: e, start: t, end: n, range: r = !1, onChange: i, label: a, required: c = !1, hint: l, error: u, name: d, startName: f, endName: h, min: g = 0, max: _ = 100, step: v = 1, disabled: y, size: b, showValue: x, unit: S, id: C, ariaLabel: w, className: T = "", ...E }, D) {
|
|
8223
8224
|
N("AppSlider", E);
|
|
8224
8225
|
let O = s(), k = C || d || r && f || O, A = r, { setRef: j, innerRef: M } = Q({
|
|
8225
8226
|
ref: D,
|
|
8226
8227
|
value: A ? void 0 : e,
|
|
8227
8228
|
onChange: i,
|
|
8228
|
-
readValue: A ?
|
|
8229
|
-
writeValue: A ? void 0 :
|
|
8229
|
+
readValue: A ? Zt : void 0,
|
|
8230
|
+
writeValue: A ? void 0 : Qt
|
|
8230
8231
|
});
|
|
8231
8232
|
o(() => {
|
|
8232
8233
|
if (!A) return;
|
|
@@ -8280,14 +8281,14 @@ var Kr = i(function({ value: e, start: t, end: n, range: r = !1, onChange: i, la
|
|
|
8280
8281
|
})
|
|
8281
8282
|
]
|
|
8282
8283
|
});
|
|
8283
|
-
}),
|
|
8284
|
+
}), Yr = {
|
|
8284
8285
|
sm: 44,
|
|
8285
8286
|
md: 56,
|
|
8286
8287
|
lg: 72
|
|
8287
8288
|
};
|
|
8288
|
-
function
|
|
8289
|
-
N("AppSplash", c), W("AppSplash", "size", typeof a == "string" ? a : null, Object.keys(
|
|
8290
|
-
let { style: l, ...u } = c, d = typeof a == "number" ? a :
|
|
8289
|
+
function Xr({ logo: e, initials: t, text: n, subtext: r, variant: i = "bar", size: a = "md", label: o = "Loading", className: s = "", ...c }) {
|
|
8290
|
+
N("AppSplash", c), W("AppSplash", "size", typeof a == "string" ? a : null, Object.keys(Yr));
|
|
8291
|
+
let { style: l, ...u } = c, d = typeof a == "number" ? a : Yr[a] ?? Yr.md, f = i === "ring" ? /* @__PURE__ */ p("span", {
|
|
8291
8292
|
className: "splash-ring",
|
|
8292
8293
|
"aria-hidden": "true"
|
|
8293
8294
|
}) : i === "dots" ? /* @__PURE__ */ m("span", {
|
|
@@ -8334,7 +8335,7 @@ function Jr({ logo: e, initials: t, text: n, subtext: r, variant: i = "bar", siz
|
|
|
8334
8335
|
}
|
|
8335
8336
|
//#endregion
|
|
8336
8337
|
//#region src/components/AppStatusBadge.jsx
|
|
8337
|
-
function
|
|
8338
|
+
function Zr({ label: e, tone: t = "neutral", className: n = "", ...r }) {
|
|
8338
8339
|
return N("AppStatusBadge", r), e == null || e === "" ? "—" : /* @__PURE__ */ p("span", {
|
|
8339
8340
|
className: `status-label ${t}${n ? ` ${n}` : ""}`,
|
|
8340
8341
|
...r,
|
|
@@ -8343,7 +8344,7 @@ function Yr({ label: e, tone: t = "neutral", className: n = "", ...r }) {
|
|
|
8343
8344
|
}
|
|
8344
8345
|
//#endregion
|
|
8345
8346
|
//#region src/components/AppStepper.jsx
|
|
8346
|
-
function
|
|
8347
|
+
function Qr({ steps: e = [], variant: t = "steps", orientation: n = "horizontal", activeStep: r, onStepClick: i, label: a = "Progress", linkComponent: o, className: s = "", ...c }) {
|
|
8347
8348
|
N("AppStepper", c);
|
|
8348
8349
|
let l = t === "journey";
|
|
8349
8350
|
return /* @__PURE__ */ p("nav", {
|
|
@@ -8356,7 +8357,7 @@ function Xr({ steps: e = [], variant: t = "steps", orientation: n = "horizontal"
|
|
|
8356
8357
|
"aria-label": a,
|
|
8357
8358
|
...c,
|
|
8358
8359
|
children: e.map((t, n) => {
|
|
8359
|
-
let a = t.status ||
|
|
8360
|
+
let a = t.status || $r(n, r), s = `step${a === "pending" ? "" : ` ${a}`}`, c;
|
|
8360
8361
|
c = a === "done" ? /* @__PURE__ */ p(V, {
|
|
8361
8362
|
name: "check",
|
|
8362
8363
|
size: 14
|
|
@@ -8420,13 +8421,13 @@ function Xr({ steps: e = [], variant: t = "steps", orientation: n = "horizontal"
|
|
|
8420
8421
|
})
|
|
8421
8422
|
});
|
|
8422
8423
|
}
|
|
8423
|
-
function
|
|
8424
|
+
function $r(e, t) {
|
|
8424
8425
|
return typeof t == "number" ? e < t ? "done" : e === t ? "active" : "pending" : "pending";
|
|
8425
8426
|
}
|
|
8426
8427
|
//#endregion
|
|
8427
8428
|
//#region src/components/AppSwitch.jsx
|
|
8428
|
-
var
|
|
8429
|
-
return N("AppSwitch", s), /* @__PURE__ */ p(
|
|
8429
|
+
var ei = i(function({ label: e, id: t, name: n, error: r, hint: i, shape: a = "pill", className: o = "", ...s }, c) {
|
|
8430
|
+
return N("AppSwitch", s), /* @__PURE__ */ p(vn, {
|
|
8430
8431
|
ref: c,
|
|
8431
8432
|
label: e,
|
|
8432
8433
|
id: t,
|
|
@@ -8441,7 +8442,7 @@ var Qr = i(function({ label: e, id: t, name: n, error: r, hint: i, shape: a = "p
|
|
|
8441
8442
|
});
|
|
8442
8443
|
//#endregion
|
|
8443
8444
|
//#region src/components/AppTableEmptyState.jsx
|
|
8444
|
-
function
|
|
8445
|
+
function ti({ icon: e, title: t, text: n, action: r, ...i }) {
|
|
8445
8446
|
return N("AppTableEmptyState", i), /* @__PURE__ */ m("div", {
|
|
8446
8447
|
className: "tbl-empty",
|
|
8447
8448
|
...i,
|
|
@@ -8467,13 +8468,13 @@ function $r({ icon: e, title: t, text: n, action: r, ...i }) {
|
|
|
8467
8468
|
}
|
|
8468
8469
|
//#endregion
|
|
8469
8470
|
//#region src/components/AppTooltip.jsx
|
|
8470
|
-
var
|
|
8471
|
+
var ni = {
|
|
8471
8472
|
start: "left",
|
|
8472
8473
|
end: "right",
|
|
8473
8474
|
top: "top",
|
|
8474
8475
|
bottom: "bottom"
|
|
8475
8476
|
};
|
|
8476
|
-
function
|
|
8477
|
+
function ri({ content: e, children: t, placement: r = "top", tone: i = "default", size: a = "md", className: o = "", ...c }) {
|
|
8477
8478
|
N("AppTooltip", c);
|
|
8478
8479
|
let l = /* @__PURE__ */ p(E, {
|
|
8479
8480
|
id: s(),
|
|
@@ -8487,14 +8488,14 @@ function ti({ content: e, children: t, placement: r = "top", tone: i = "default"
|
|
|
8487
8488
|
});
|
|
8488
8489
|
return /* @__PURE__ */ p(w, {
|
|
8489
8490
|
trigger: ["hover", "focus"],
|
|
8490
|
-
placement:
|
|
8491
|
+
placement: ni[r] || r,
|
|
8491
8492
|
overlay: l,
|
|
8492
8493
|
children: n(t, c)
|
|
8493
8494
|
});
|
|
8494
8495
|
}
|
|
8495
8496
|
//#endregion
|
|
8496
8497
|
//#region src/components/AppTabs.jsx
|
|
8497
|
-
function
|
|
8498
|
+
function ii({ tabs: e, value: t, onChange: n, variant: r = "underline", orientation: i = "horizontal", size: s = "md", fitted: l = !1, activation: f = "automatic", ariaLabel: h, className: g = "", style: _, ...v }) {
|
|
8498
8499
|
N("AppTabs", v);
|
|
8499
8500
|
let y = u(null), b = u(null), x = i === "vertical", [S, C] = d(t);
|
|
8500
8501
|
o(() => {
|
|
@@ -8601,7 +8602,7 @@ function ni({ tabs: e, value: t, onChange: n, variant: r = "underline", orientat
|
|
|
8601
8602
|
})
|
|
8602
8603
|
]
|
|
8603
8604
|
}, e.key);
|
|
8604
|
-
return e.tooltip ? /* @__PURE__ */ p(
|
|
8605
|
+
return e.tooltip ? /* @__PURE__ */ p(ri, {
|
|
8605
8606
|
content: e.tooltip,
|
|
8606
8607
|
children: i
|
|
8607
8608
|
}, e.key) : i;
|
|
@@ -8643,14 +8644,14 @@ function ni({ tabs: e, value: t, onChange: n, variant: r = "underline", orientat
|
|
|
8643
8644
|
}
|
|
8644
8645
|
//#endregion
|
|
8645
8646
|
//#region src/components/AppTagInput.jsx
|
|
8646
|
-
var
|
|
8647
|
+
var ai = i(function({ values: e, onChange: t, placeholder: n = "Add…", name: r, label: i, error: a, hint: o, required: c = !1, size: l, maxTags: u, allowDuplicates: d = !1, disabled: f = !1, id: h, ariaLabel: g, className: _ = "", fieldClassName: v = "", help: y, helpLabel: b = "More information", ...x }, S) {
|
|
8647
8648
|
N("AppTagInput", x);
|
|
8648
8649
|
let C = s(), w = h || r || C, { setRef: T } = Q({
|
|
8649
8650
|
ref: S,
|
|
8650
8651
|
value: e,
|
|
8651
8652
|
onChange: t,
|
|
8652
|
-
readValue:
|
|
8653
|
-
writeValue:
|
|
8653
|
+
readValue: Yt,
|
|
8654
|
+
writeValue: Xt
|
|
8654
8655
|
});
|
|
8655
8656
|
return /* @__PURE__ */ m("div", {
|
|
8656
8657
|
className: `field${v ? ` ${v}` : ""}`,
|
|
@@ -8661,7 +8662,7 @@ var ri = i(function({ values: e, onChange: t, placeholder: n = "Add…", name: r
|
|
|
8661
8662
|
children: [
|
|
8662
8663
|
i,
|
|
8663
8664
|
c && /* @__PURE__ */ p(Z, {}),
|
|
8664
|
-
y && /* @__PURE__ */ p(
|
|
8665
|
+
y && /* @__PURE__ */ p(Wt, {
|
|
8665
8666
|
label: b,
|
|
8666
8667
|
children: y
|
|
8667
8668
|
})
|
|
@@ -8694,69 +8695,78 @@ var ri = i(function({ values: e, onChange: t, placeholder: n = "Add…", name: r
|
|
|
8694
8695
|
}) : null
|
|
8695
8696
|
]
|
|
8696
8697
|
});
|
|
8697
|
-
}),
|
|
8698
|
-
N("AppTextarea",
|
|
8699
|
-
let
|
|
8698
|
+
}), oi = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, helpLabel: l = "More information", id: f, name: h, rows: g = 4, autoGrow: _ = !1, showCount: v = !1, maxLength: y, className: b = "", fieldClassName: S = "", ...C }, w) {
|
|
8699
|
+
N("AppTextarea", C);
|
|
8700
|
+
let T = s(), E = f || T, D = [
|
|
8700
8701
|
"textarea",
|
|
8701
|
-
|
|
8702
|
+
_ ? "autosize" : "",
|
|
8702
8703
|
n ? "error" : "",
|
|
8703
|
-
|
|
8704
|
-
].filter(Boolean).join(" "),
|
|
8705
|
-
|
|
8706
|
-
},
|
|
8707
|
-
let e =
|
|
8704
|
+
b
|
|
8705
|
+
].filter(Boolean).join(" "), O = n && E ? `${E}-error` : void 0, k = r && E ? `${E}-hint` : void 0, A = O || k, j = u(null), M = (e) => {
|
|
8706
|
+
j.current = e, typeof w == "function" ? w(e) : w && (w.current = e);
|
|
8707
|
+
}, P = a(() => {
|
|
8708
|
+
let e = j.current;
|
|
8708
8709
|
e && (e.style.height = "auto", e.style.height = `${e.scrollHeight}px`);
|
|
8709
8710
|
}, []);
|
|
8710
8711
|
c(() => {
|
|
8711
|
-
|
|
8712
|
+
_ && P();
|
|
8712
8713
|
}, [
|
|
8713
|
-
|
|
8714
|
-
|
|
8715
|
-
|
|
8714
|
+
_,
|
|
8715
|
+
P,
|
|
8716
|
+
C.value
|
|
8716
8717
|
]);
|
|
8717
|
-
let
|
|
8718
|
-
|
|
8718
|
+
let [F, I] = d(() => String(C.value ?? C.defaultValue ?? "").length);
|
|
8719
|
+
o(() => {
|
|
8720
|
+
!v || C.value === void 0 || I(String(C.value ?? "").length);
|
|
8721
|
+
}, [C.value, v]);
|
|
8722
|
+
let L = (e) => {
|
|
8723
|
+
_ && P(), v && I(e.target.value.length), C.onInput?.(e);
|
|
8719
8724
|
};
|
|
8720
8725
|
return /* @__PURE__ */ m(x.Group, {
|
|
8721
|
-
className: `field${
|
|
8726
|
+
className: `field${S ? ` ${S}` : ""}`,
|
|
8722
8727
|
children: [
|
|
8723
8728
|
e && /* @__PURE__ */ m(x.Label, {
|
|
8724
8729
|
className: "label",
|
|
8725
|
-
htmlFor:
|
|
8730
|
+
htmlFor: E,
|
|
8726
8731
|
children: [
|
|
8727
8732
|
e,
|
|
8728
8733
|
t && /* @__PURE__ */ p(Z, {}),
|
|
8729
|
-
i && /* @__PURE__ */ p(
|
|
8730
|
-
label:
|
|
8734
|
+
i && /* @__PURE__ */ p(Wt, {
|
|
8735
|
+
label: l,
|
|
8731
8736
|
children: i
|
|
8732
8737
|
})
|
|
8733
8738
|
]
|
|
8734
8739
|
}),
|
|
8735
8740
|
/* @__PURE__ */ p(x.Control, {
|
|
8736
8741
|
as: "textarea",
|
|
8737
|
-
id:
|
|
8738
|
-
name:
|
|
8739
|
-
rows:
|
|
8740
|
-
className:
|
|
8742
|
+
id: E,
|
|
8743
|
+
name: h,
|
|
8744
|
+
rows: g,
|
|
8745
|
+
className: D,
|
|
8741
8746
|
"aria-invalid": n ? "true" : "false",
|
|
8742
|
-
"aria-describedby":
|
|
8747
|
+
"aria-describedby": A,
|
|
8743
8748
|
required: t,
|
|
8744
|
-
|
|
8745
|
-
|
|
8746
|
-
|
|
8749
|
+
maxLength: y,
|
|
8750
|
+
...C,
|
|
8751
|
+
ref: M,
|
|
8752
|
+
onInput: L
|
|
8747
8753
|
}),
|
|
8748
8754
|
n ? /* @__PURE__ */ p("div", {
|
|
8749
8755
|
className: "field-error",
|
|
8750
|
-
id:
|
|
8756
|
+
id: O,
|
|
8751
8757
|
children: n
|
|
8752
8758
|
}) : r ? /* @__PURE__ */ p("div", {
|
|
8753
8759
|
className: "field-hint",
|
|
8754
|
-
id:
|
|
8760
|
+
id: k,
|
|
8755
8761
|
children: r
|
|
8756
|
-
}) : null
|
|
8762
|
+
}) : null,
|
|
8763
|
+
v && /* @__PURE__ */ m("div", {
|
|
8764
|
+
className: `field-count${y && F >= y ? " at-limit" : ""}`,
|
|
8765
|
+
children: [F, y ? ` / ${y}` : ""]
|
|
8766
|
+
})
|
|
8757
8767
|
]
|
|
8758
8768
|
});
|
|
8759
|
-
}),
|
|
8769
|
+
}), si = {
|
|
8760
8770
|
done: "check",
|
|
8761
8771
|
current: "clock",
|
|
8762
8772
|
"on-hold": "lock",
|
|
@@ -8765,7 +8775,7 @@ var ri = i(function({ values: e, onChange: t, placeholder: n = "Add…", name: r
|
|
|
8765
8775
|
skipped: "arrow-right",
|
|
8766
8776
|
upcoming: null
|
|
8767
8777
|
};
|
|
8768
|
-
function
|
|
8778
|
+
function ci({ items: e = [], variant: t = "feed", orientation: n = "vertical", size: r, className: i = "", style: a, ...o }) {
|
|
8769
8779
|
N("AppTimeline", o);
|
|
8770
8780
|
let s = t === "progress", c = `timeline${s ? " timeline--progress" : ""}${n === "horizontal" ? " timeline--horizontal" : ""}${i ? ` ${i}` : ""}`, l = typeof r == "number" && r > 0 ? r : void 0, u = l ? Math.round(l * .54) : s ? 13 : 12;
|
|
8771
8781
|
return /* @__PURE__ */ p("ol", {
|
|
@@ -8776,7 +8786,7 @@ function oi({ items: e = [], variant: t = "feed", orientation: n = "vertical", s
|
|
|
8776
8786
|
} : a,
|
|
8777
8787
|
...o,
|
|
8778
8788
|
children: e.map((e, t) => {
|
|
8779
|
-
let n = s ? e.status : void 0, r = n ? ` is-${n}` : "", i = e.tone && e.tone !== "neutral" ? ` ${e.tone}` : "", a = s ? e.icon ?? (n ?
|
|
8789
|
+
let n = s ? e.status : void 0, r = n ? ` is-${n}` : "", i = e.tone && e.tone !== "neutral" ? ` ${e.tone}` : "", a = s ? e.icon ?? (n ? si[n] : void 0) : e.icon || "circle";
|
|
8780
8790
|
return /* @__PURE__ */ m("li", {
|
|
8781
8791
|
className: `timeline-item${r}${i}`,
|
|
8782
8792
|
children: [/* @__PURE__ */ p("span", {
|
|
@@ -8834,7 +8844,7 @@ function oi({ items: e = [], variant: t = "feed", orientation: n = "vertical", s
|
|
|
8834
8844
|
}
|
|
8835
8845
|
//#endregion
|
|
8836
8846
|
//#region src/components/AppTimePicker.jsx
|
|
8837
|
-
var
|
|
8847
|
+
var li = i(function({ value: e, onChange: t, label: n, required: r = !1, hint: i, error: a, name: o, min: c, max: l, step: u, format: d = "24", placeholder: f = "Select time", disabled: h, size: g, id: _, ariaLabel: v, className: y = "", ...b }, x) {
|
|
8838
8848
|
N("AppTimePicker", b);
|
|
8839
8849
|
let S = s(), C = _ || o || S, { setRef: w } = Q({
|
|
8840
8850
|
ref: x,
|
|
@@ -8879,32 +8889,32 @@ var si = i(function({ value: e, onChange: t, label: n, required: r = !1, hint: i
|
|
|
8879
8889
|
})
|
|
8880
8890
|
]
|
|
8881
8891
|
});
|
|
8882
|
-
}),
|
|
8883
|
-
function
|
|
8884
|
-
for (let e of
|
|
8892
|
+
}), ui = 6, $ = [], di = /* @__PURE__ */ new Set(), fi = /* @__PURE__ */ new Map(), pi = 0;
|
|
8893
|
+
function mi() {
|
|
8894
|
+
for (let e of di) e($);
|
|
8885
8895
|
}
|
|
8886
|
-
function
|
|
8887
|
-
let t =
|
|
8888
|
-
t !== void 0 && (clearTimeout(t),
|
|
8896
|
+
function hi(e) {
|
|
8897
|
+
let t = fi.get(e);
|
|
8898
|
+
t !== void 0 && (clearTimeout(t), fi.delete(e));
|
|
8889
8899
|
}
|
|
8890
|
-
function
|
|
8891
|
-
if (e.length <=
|
|
8900
|
+
function gi(e) {
|
|
8901
|
+
if (e.length <= ui) return e;
|
|
8892
8902
|
let t = [...e];
|
|
8893
|
-
for (; t.length >
|
|
8903
|
+
for (; t.length > ui;) {
|
|
8894
8904
|
let e = t.findIndex((e) => e.duration !== 0);
|
|
8895
8905
|
t.splice(e === -1 ? 0 : e, 1);
|
|
8896
8906
|
}
|
|
8897
8907
|
return t;
|
|
8898
8908
|
}
|
|
8899
|
-
function
|
|
8900
|
-
return
|
|
8909
|
+
function _i(e) {
|
|
8910
|
+
return di.add(e), e($), () => di.delete(e);
|
|
8901
8911
|
}
|
|
8902
|
-
function
|
|
8912
|
+
function vi(e, t, n = {}) {
|
|
8903
8913
|
let r = n.id, i = r || typeof e != "string" ? void 0 : `${t}:${e}`;
|
|
8904
8914
|
if (r) {
|
|
8905
8915
|
let i = $.find((e) => e.externalId === r);
|
|
8906
8916
|
if (i) {
|
|
8907
|
-
|
|
8917
|
+
hi(i.id);
|
|
8908
8918
|
let r = n.duration === void 0 ? 5e3 : n.duration;
|
|
8909
8919
|
$ = $.map((a) => a.id === i.id ? {
|
|
8910
8920
|
...a,
|
|
@@ -8917,12 +8927,12 @@ function gi(e, t, n = {}) {
|
|
|
8917
8927
|
shape: n.shape,
|
|
8918
8928
|
surface: n.surface,
|
|
8919
8929
|
progress: n.progress
|
|
8920
|
-
} : a),
|
|
8930
|
+
} : a), mi(), r > 0 && fi.set(i.id, setTimeout(() => yi(i.id), r));
|
|
8921
8931
|
return;
|
|
8922
8932
|
}
|
|
8923
8933
|
} else if (i && $.some((e) => e.key === i)) return;
|
|
8924
|
-
let a = ++
|
|
8925
|
-
$ =
|
|
8934
|
+
let a = ++pi, o = n.duration === void 0 ? 5e3 : n.duration;
|
|
8935
|
+
$ = gi([...$, {
|
|
8926
8936
|
id: a,
|
|
8927
8937
|
externalId: r,
|
|
8928
8938
|
message: e,
|
|
@@ -8935,19 +8945,19 @@ function gi(e, t, n = {}) {
|
|
|
8935
8945
|
surface: n.surface,
|
|
8936
8946
|
progress: n.progress,
|
|
8937
8947
|
key: i
|
|
8938
|
-
}]),
|
|
8948
|
+
}]), mi(), o > 0 && fi.set(a, setTimeout(() => yi(a), o));
|
|
8939
8949
|
}
|
|
8940
|
-
function
|
|
8941
|
-
|
|
8950
|
+
function yi(e) {
|
|
8951
|
+
hi(e);
|
|
8942
8952
|
let t = $.filter((t) => t.id !== e);
|
|
8943
|
-
t.length !== $.length && ($ = t,
|
|
8953
|
+
t.length !== $.length && ($ = t, mi());
|
|
8944
8954
|
}
|
|
8945
|
-
function
|
|
8946
|
-
$.length !== 0 && ($ = [],
|
|
8955
|
+
function bi() {
|
|
8956
|
+
$.length !== 0 && ($ = [], mi());
|
|
8947
8957
|
}
|
|
8948
8958
|
//#endregion
|
|
8949
8959
|
//#region src/components/AppToast.jsx
|
|
8950
|
-
var
|
|
8960
|
+
var xi = {
|
|
8951
8961
|
success: {
|
|
8952
8962
|
icon: "check-circle",
|
|
8953
8963
|
assertive: !1
|
|
@@ -8964,7 +8974,7 @@ var yi = {
|
|
|
8964
8974
|
icon: "alert-circle",
|
|
8965
8975
|
assertive: !0
|
|
8966
8976
|
}
|
|
8967
|
-
},
|
|
8977
|
+
}, Si = {
|
|
8968
8978
|
"top-start": "top-0 start-0",
|
|
8969
8979
|
"top-center": "top-0 start-50 translate-middle-x",
|
|
8970
8980
|
"top-end": "top-0 end-0",
|
|
@@ -8972,21 +8982,21 @@ var yi = {
|
|
|
8972
8982
|
"bottom-start": "bottom-0 start-0",
|
|
8973
8983
|
"bottom-center": "bottom-0 start-50 translate-middle-x",
|
|
8974
8984
|
"bottom-end": "bottom-0 end-0"
|
|
8975
|
-
},
|
|
8985
|
+
}, Ci = 64, wi = /* @__PURE__ */ new Set([
|
|
8976
8986
|
"rise",
|
|
8977
8987
|
"organic",
|
|
8978
8988
|
"jelly",
|
|
8979
8989
|
"spring"
|
|
8980
|
-
]),
|
|
8990
|
+
]), Ti = /* @__PURE__ */ new Set([
|
|
8981
8991
|
"rounded",
|
|
8982
8992
|
"pill",
|
|
8983
8993
|
"sharp"
|
|
8984
|
-
]),
|
|
8985
|
-
function
|
|
8986
|
-
N("AppToast", s), W("AppToast", "position", e, Object.keys(
|
|
8994
|
+
]), Ei = /* @__PURE__ */ new Set(["auto", "inverse"]);
|
|
8995
|
+
function Di({ position: e = "bottom-end", maxVisible: t = 4, animation: n = "rise", shape: r = "rounded", surface: i = "auto", className: a = "", ...s }) {
|
|
8996
|
+
N("AppToast", s), W("AppToast", "position", e, Object.keys(Si)), W("AppToast", "animation", n, wi), W("AppToast", "shape", r, Ti), W("AppToast", "surface", i, Ei);
|
|
8987
8997
|
let [c, l] = d([]);
|
|
8988
|
-
o(() =>
|
|
8989
|
-
let u = Math.max(0, c.length - t), f = u ? c.slice(u) : c, h =
|
|
8998
|
+
o(() => _i(l), []);
|
|
8999
|
+
let u = Math.max(0, c.length - t), f = u ? c.slice(u) : c, h = Si[e] ?? Si["bottom-end"];
|
|
8990
9000
|
return /* @__PURE__ */ m("div", {
|
|
8991
9001
|
...s,
|
|
8992
9002
|
className: `wui-toast-container toast-container position-fixed ${h} p-3 ${a}`.trim(),
|
|
@@ -8998,7 +9008,7 @@ function Ti({ position: e = "bottom-end", maxVisible: t = 4, animation: n = "ris
|
|
|
8998
9008
|
u,
|
|
8999
9009
|
" more"
|
|
9000
9010
|
]
|
|
9001
|
-
}), f.map((e) => /* @__PURE__ */ p(
|
|
9011
|
+
}), f.map((e) => /* @__PURE__ */ p(Oi, {
|
|
9002
9012
|
toast: e,
|
|
9003
9013
|
defaultAnimation: n,
|
|
9004
9014
|
defaultShape: r,
|
|
@@ -9006,8 +9016,8 @@ function Ti({ position: e = "bottom-end", maxVisible: t = 4, animation: n = "ris
|
|
|
9006
9016
|
}, e.id))]
|
|
9007
9017
|
});
|
|
9008
9018
|
}
|
|
9009
|
-
function
|
|
9010
|
-
let i =
|
|
9019
|
+
function Oi({ toast: e, defaultAnimation: t = "rise", defaultShape: n = "rounded", defaultSurface: r = "auto" }) {
|
|
9020
|
+
let i = xi[e.variant] ?? xi.success, a = wi.has(e.animation) ? e.animation : t, o = Ti.has(e.shape) ? e.shape : n, s = Ei.has(e.surface) ? e.surface : r, c = (a !== "rise" && wi.has(a) ? ` wui-toast--anim-${a}` : "") + (o !== "rounded" && Ti.has(o) ? ` wui-toast--shape-${o}` : "") + (s === "inverse" ? " wui-toast--surface-inverse" : ""), l = e.duration === 0, [f, h] = d(0), [g, _] = d(!1), v = u(null), y = () => yi(e.id), b = (e) => {
|
|
9011
9021
|
e.button !== 0 || e.target.closest("button") || (v.current = e.clientX, _(!0), e.currentTarget.setPointerCapture?.(e.pointerId));
|
|
9012
9022
|
}, x = (e) => {
|
|
9013
9023
|
v.current !== null && h(e.clientX - v.current);
|
|
@@ -9016,7 +9026,7 @@ function Ei({ toast: e, defaultAnimation: t = "rise", defaultShape: n = "rounded
|
|
|
9016
9026
|
}, C = (e) => {
|
|
9017
9027
|
if (v.current === null) return;
|
|
9018
9028
|
let t = e.clientX - v.current;
|
|
9019
|
-
if (Math.abs(t) >
|
|
9029
|
+
if (Math.abs(t) > Ci) {
|
|
9020
9030
|
y();
|
|
9021
9031
|
return;
|
|
9022
9032
|
}
|
|
@@ -9099,7 +9109,7 @@ function Ei({ toast: e, defaultAnimation: t = "rise", defaultShape: n = "rounded
|
|
|
9099
9109
|
}
|
|
9100
9110
|
//#endregion
|
|
9101
9111
|
//#region src/components/AppToolbar.jsx
|
|
9102
|
-
function
|
|
9112
|
+
function ki({ items: e = [], actions: t = [], value: n, defaultValue: r, onSelect: i, label: a, name: o, disabled: c = !1, className: l = "", ...u }) {
|
|
9103
9113
|
N("AppToolbar", u);
|
|
9104
9114
|
let f = s(), h = o || f, [g, _] = d(r), v = n === void 0 ? g : n;
|
|
9105
9115
|
return /* @__PURE__ */ m("div", {
|
|
@@ -9157,7 +9167,7 @@ function Di({ items: e = [], actions: t = [], value: n, defaultValue: r, onSelec
|
|
|
9157
9167
|
}
|
|
9158
9168
|
//#endregion
|
|
9159
9169
|
//#region src/components/AppWizard.jsx
|
|
9160
|
-
var
|
|
9170
|
+
var Ai = i(function({ steps: t = [], children: n, active: r, defaultActive: i = 0, onStepChange: a, onFinish: s, onSkip: c, beforeNext: l, onInvalid: d, variant: f = "steps", tone: m, orientation: h = "horizontal", skippable: g = !1, nonLinear: _ = !1, hideStepper: v = !1, disabled: y = !1, label: b = "Progress", backLabel: x = "Back", nextLabel: S = "Next", skipLabel: C = "Skip", finishLabel: w = "Finish", className: T = "", ...E }, D) {
|
|
9161
9171
|
N("AppWizard", E);
|
|
9162
9172
|
let O = u(null), k = (e) => {
|
|
9163
9173
|
O.current = e, typeof D == "function" ? D(e) : D && (D.current = e);
|
|
@@ -9212,7 +9222,7 @@ var Oi = i(function({ steps: t = [], children: n, active: r, defaultActive: i =
|
|
|
9212
9222
|
});
|
|
9213
9223
|
//#endregion
|
|
9214
9224
|
//#region src/components/AppWorkspaceSwitcher.jsx
|
|
9215
|
-
function
|
|
9225
|
+
function ji({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAction: i, linkComponent: a, searchable: s = !1, onCreate: c, canCreate: f = !1, createLabel: h = "Create workspace", compact: g = !1, size: _ = "md", ariaLabel: v, ...y }) {
|
|
9216
9226
|
let { onToggle: x, ...S } = y;
|
|
9217
9227
|
N("AppWorkspaceSwitcher", S);
|
|
9218
9228
|
let [C, w] = d(""), [T, E] = d(!1), D = u(null), O = e.find((e) => e.id === t) ?? e[0], k = l(() => {
|
|
@@ -9240,7 +9250,7 @@ function ki({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAc
|
|
|
9240
9250
|
},
|
|
9241
9251
|
...S,
|
|
9242
9252
|
children: [/* @__PURE__ */ p(b.Toggle, {
|
|
9243
|
-
as:
|
|
9253
|
+
as: Fi,
|
|
9244
9254
|
compact: g,
|
|
9245
9255
|
tenant: O,
|
|
9246
9256
|
"aria-label": j
|
|
@@ -9275,7 +9285,7 @@ function ki({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAc
|
|
|
9275
9285
|
className: `workspace-switcher-option${e.id === O?.id ? " is-active" : ""}`,
|
|
9276
9286
|
onClick: () => n?.(e),
|
|
9277
9287
|
children: [
|
|
9278
|
-
/* @__PURE__ */ p(
|
|
9288
|
+
/* @__PURE__ */ p(Ni, { tenant: e }),
|
|
9279
9289
|
/* @__PURE__ */ p("span", {
|
|
9280
9290
|
className: "workspace-switcher-option-name",
|
|
9281
9291
|
children: e.name
|
|
@@ -9307,17 +9317,17 @@ function ki({ tenants: e = [], currentId: t, onSelect: n, menuLabel: r, footerAc
|
|
|
9307
9317
|
}) : null,
|
|
9308
9318
|
i ? /* @__PURE__ */ p("div", {
|
|
9309
9319
|
className: "workspace-switcher-footer",
|
|
9310
|
-
children:
|
|
9320
|
+
children: Pi(i, a)
|
|
9311
9321
|
}) : null
|
|
9312
9322
|
]
|
|
9313
9323
|
})]
|
|
9314
9324
|
});
|
|
9315
9325
|
}
|
|
9316
|
-
function
|
|
9326
|
+
function Mi(e) {
|
|
9317
9327
|
let t = String(e ?? "").trim().split(/\s+/).filter(Boolean);
|
|
9318
9328
|
return t.length === 0 ? "" : (t[0][0] + (t.length > 1 ? t[t.length - 1][0] : "")).toUpperCase();
|
|
9319
9329
|
}
|
|
9320
|
-
function
|
|
9330
|
+
function Ni({ tenant: e }) {
|
|
9321
9331
|
return e?.logoUrl ? /* @__PURE__ */ p("img", {
|
|
9322
9332
|
className: "workspace-switcher-mark",
|
|
9323
9333
|
src: e.logoUrl,
|
|
@@ -9325,10 +9335,10 @@ function ji({ tenant: e }) {
|
|
|
9325
9335
|
loading: "lazy"
|
|
9326
9336
|
}) : /* @__PURE__ */ p("span", {
|
|
9327
9337
|
className: "workspace-switcher-mark",
|
|
9328
|
-
children:
|
|
9338
|
+
children: Mi(e?.name)
|
|
9329
9339
|
});
|
|
9330
9340
|
}
|
|
9331
|
-
function
|
|
9341
|
+
function Pi(e, t) {
|
|
9332
9342
|
if (typeof e != "object" || !e || !("label" in e)) return e;
|
|
9333
9343
|
let { label: n, icon: r, href: i } = e;
|
|
9334
9344
|
return /* @__PURE__ */ m(i ? t ?? "a" : "button", {
|
|
@@ -9340,7 +9350,7 @@ function Mi(e, t) {
|
|
|
9340
9350
|
}) : null, n]
|
|
9341
9351
|
});
|
|
9342
9352
|
}
|
|
9343
|
-
var
|
|
9353
|
+
var Fi = i(function({ compact: e, tenant: t, "aria-label": n, className: r, ...i }, a) {
|
|
9344
9354
|
return /* @__PURE__ */ m("button", {
|
|
9345
9355
|
ref: a,
|
|
9346
9356
|
type: "button",
|
|
@@ -9348,7 +9358,7 @@ var Ni = i(function({ compact: e, tenant: t, "aria-label": n, className: r, ...i
|
|
|
9348
9358
|
"aria-haspopup": "true",
|
|
9349
9359
|
"aria-label": n,
|
|
9350
9360
|
...i,
|
|
9351
|
-
children: [/* @__PURE__ */ p(
|
|
9361
|
+
children: [/* @__PURE__ */ p(Ni, { tenant: t }), e ? null : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("span", {
|
|
9352
9362
|
className: "workspace-switcher-trigger-name",
|
|
9353
9363
|
children: t?.name
|
|
9354
9364
|
}), /* @__PURE__ */ p(V, {
|
|
@@ -9360,36 +9370,36 @@ var Ni = i(function({ compact: e, tenant: t, "aria-label": n, className: r, ...i
|
|
|
9360
9370
|
});
|
|
9361
9371
|
//#endregion
|
|
9362
9372
|
//#region src/components/toast.js
|
|
9363
|
-
function
|
|
9364
|
-
|
|
9373
|
+
function Ii() {
|
|
9374
|
+
bi();
|
|
9365
9375
|
}
|
|
9366
|
-
var
|
|
9376
|
+
var Li = /* @__PURE__ */ new Set([
|
|
9367
9377
|
"success",
|
|
9368
9378
|
"info",
|
|
9369
9379
|
"warning",
|
|
9370
9380
|
"error"
|
|
9371
9381
|
]);
|
|
9372
|
-
function
|
|
9382
|
+
function Ri(e, t = "info") {
|
|
9373
9383
|
let n = "info", r = {};
|
|
9374
|
-
typeof t == "string" ? n =
|
|
9384
|
+
typeof t == "string" ? n = Li.has(t) ? t : "info" : typeof t == "object" && t && (r = t, n = Li.has(r.variant) ? r.variant : "info"), vi(e, n, r);
|
|
9375
9385
|
}
|
|
9376
|
-
function
|
|
9377
|
-
|
|
9386
|
+
function zi(e, t = {}) {
|
|
9387
|
+
vi(e, "error", t);
|
|
9378
9388
|
}
|
|
9379
|
-
|
|
9389
|
+
Ri.promise = (e, t, n = {}) => {
|
|
9380
9390
|
let r = n.id || `promise-${Date.now()}-${Math.random()}`;
|
|
9381
|
-
return
|
|
9391
|
+
return Ri(t.loading || "Loading...", {
|
|
9382
9392
|
...n,
|
|
9383
9393
|
variant: "info",
|
|
9384
9394
|
id: r,
|
|
9385
9395
|
duration: 0
|
|
9386
|
-
}), e.then((e) => (
|
|
9396
|
+
}), e.then((e) => (Ri((typeof t.success == "function" ? t.success(e) : t.success) || "Done", {
|
|
9387
9397
|
...n,
|
|
9388
9398
|
variant: "success",
|
|
9389
9399
|
id: r,
|
|
9390
9400
|
duration: n.duration === void 0 ? 5e3 : n.duration
|
|
9391
9401
|
}), e)).catch((e) => {
|
|
9392
|
-
throw
|
|
9402
|
+
throw Ri((typeof t.error == "function" ? t.error(e) : t.error) || "Error", {
|
|
9393
9403
|
...n,
|
|
9394
9404
|
variant: "error",
|
|
9395
9405
|
id: r,
|
|
@@ -9399,7 +9409,7 @@ Ii.promise = (e, t, n = {}) => {
|
|
|
9399
9409
|
};
|
|
9400
9410
|
//#endregion
|
|
9401
9411
|
//#region src/lib/usePagination.js
|
|
9402
|
-
function
|
|
9412
|
+
function Bi(e, t = 10) {
|
|
9403
9413
|
let [n, r] = d(1), [i, a] = d(t), s = e.length, c = Math.max(1, Math.ceil(s / i));
|
|
9404
9414
|
o(() => {
|
|
9405
9415
|
n > c && r(c);
|
|
@@ -9425,4 +9435,4 @@ function Ri(e, t = 10) {
|
|
|
9425
9435
|
};
|
|
9426
9436
|
}
|
|
9427
9437
|
//#endregion
|
|
9428
|
-
export { ue as AppAccordion, de as AppActionIcon, U as AppAlert, Se as AppAsyncBlock,
|
|
9438
|
+
export { ue as AppAccordion, de as AppActionIcon, U as AppAlert, Se as AppAsyncBlock, $t as AppAutocomplete, on as AppAvatar, ln as AppAvatarGroup, un as AppBadge, fn as AppBanner, pn as AppBreadcrumbs, ye as AppButton, hn as AppCallout, _n as AppCard, yn as AppCheckbox, bn as AppChip, xn as AppChoiceCard, Sn as AppChoiceChip, Cn as AppColorField, wn as AppCompareTable, Nn as AppConfirmDialog, Fn as AppCopyButton, Gn as AppDataTable, Kn as AppDatePicker, qn as AppDateRangePicker, Yn as AppDescriptions, Qn as AppDropdown, be as AppEmptyState, ar as AppFileAttachment, sr as AppFilePicker, cr as AppFloatingDock, lr as AppFormActions, ur as AppFormRow, dr as AppFormSection, V as AppIcon, fr as AppInfoList, Wt as AppInfoTip, Tn as AppInput, _r as AppKpiTile, yr as AppLogoPicker, Cr as AppMeter, An as AppModal, wr as AppMultiSelect, Tr as AppNumberInput, Er as AppOtpInput, Dr as AppPageHeader, Or as AppPagination, kr as AppPhoneNumberInput, Ut as AppPopover, Ar as AppPricingCard, Nr as AppProgress, Pr as AppRadio, Fr as AppRepeater, Z as AppRequiredMark, Ir as AppResourceCard, Rr as AppResult, zr as AppScrollbar, Br as AppSearch, Vr as AppSegmented, Ur as AppSelect, Bn as AppSelectMini, Wr as AppShell, qr as AppSidebarMenu, In as AppSkeleton, Ln as AppSkeletonRows, Jr as AppSlider, xe as AppSpinner, Xr as AppSplash, Zr as AppStatusBadge, Qr as AppStepper, ei as AppSwitch, ti as AppTableEmptyState, Hn as AppTablePagination, ii as AppTabs, ai as AppTagInput, oi as AppTextarea, li as AppTimePicker, ci as AppTimeline, Di as AppToast, ki as AppToolbar, ri as AppTooltip, Ai as AppWizard, ji as AppWorkspaceSwitcher, Mn as MODAL_ICONS, Ii as dismissAll, zi as errorToast, se as iconNames, le as registerIcons, Ri as toast, Bi as usePagination };
|