@webority/ui-react 0.6.5 → 0.6.7
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/ui-react.js
CHANGED
|
@@ -180,6 +180,7 @@ function k({ icon: e, label: n, danger: r = !1, disabled: i = !1, size: a = 20,
|
|
|
180
180
|
title: n,
|
|
181
181
|
disabled: p ? i : void 0,
|
|
182
182
|
"aria-disabled": !p && i ? "true" : void 0,
|
|
183
|
+
role: !p && i ? "link" : void 0,
|
|
183
184
|
onClick: o,
|
|
184
185
|
...u,
|
|
185
186
|
children: /* @__PURE__ */ t(O, {
|
|
@@ -258,7 +259,7 @@ var M = {
|
|
|
258
259
|
delete: "<rect width=\"174\" height=\"174\" rx=\"87\" fill=\"var(--wui-danger-5)\"/>\n<rect x=\"24\" y=\"24\" width=\"126\" height=\"126\" rx=\"63\" stroke=\"var(--wui-danger-20)\" stroke-width=\"16\"/>\n<g clip-path=\"url(#wui_delete_clip0)\">\n<rect x=\"32\" y=\"32\" width=\"110\" height=\"110\" rx=\"55\" fill=\"var(--wui-danger)\"/>\n<path d=\"M114.529 67.5672L163.249 116.287L116.354 163.183L67.6336 114.463L100.999 81.0975L64.999 77.5L58.999 69.5L114.529 67.5672Z\" fill=\"var(--wui-danger-active)\"/>\n<path d=\"M103.5 79L100.5 105.5L76 113L69.5 83.5L103.5 79Z\" fill=\"var(--wui-danger)\"/>\n<g clip-path=\"url(#wui_delete_clip1)\">\n<path d=\"M113.652 66.9993C108.895 66.5266 104.139 66.1721 99.3522 65.9061V65.8766L98.7022 62.0357C98.259 59.3175 97.609 55.2402 90.6954 55.2402H82.9545C76.0704 55.2402 75.4204 59.1402 74.9477 62.0061L74.3272 65.788C71.5795 65.9652 68.8318 66.1425 66.084 66.4084L60.0568 66.9993C58.8159 67.1175 57.9295 68.2107 58.0477 69.4221C58.1659 70.6334 59.2295 71.5198 60.4704 71.4016L66.4977 70.8107C81.9795 69.2743 97.5795 69.8652 113.239 71.4311C113.327 71.4311 113.386 71.4311 113.475 71.4311C114.598 71.4311 115.573 70.5743 115.691 69.4221C115.779 68.2107 114.893 67.1175 113.652 66.9993Z\" fill=\"white\"/>\n<path d=\"M108.216 75.5971C107.507 74.8585 106.532 74.4448 105.527 74.4448H68.1816C67.177 74.4448 66.1725 74.8585 65.4929 75.5971C64.8134 76.3357 64.4293 77.3403 64.4884 78.3744L66.3202 108.688C66.6452 113.179 67.0588 118.793 77.3702 118.793H96.3384C106.65 118.793 107.063 113.208 107.388 108.688L109.22 78.4039C109.279 77.3403 108.895 76.3357 108.216 75.5971ZM91.7588 103.99H81.9202C80.7088 103.99 79.7043 102.986 79.7043 101.774C79.7043 100.563 80.7088 99.5585 81.9202 99.5585H91.7588C92.9702 99.5585 93.9747 100.563 93.9747 101.774C93.9747 102.986 92.9702 103.99 91.7588 103.99ZM94.2406 92.1721H79.4679C78.2566 92.1721 77.252 91.1676 77.252 89.9562C77.252 88.7448 78.2566 87.7403 79.4679 87.7403H94.2406C95.452 87.7403 96.4566 88.7448 96.4566 89.9562C96.4566 91.1676 95.452 92.1721 94.2406 92.1721Z\" fill=\"white\"/>\n</g>\n</g>\n<defs><clipPath id=\"wui_delete_clip0\"><rect x=\"32\" y=\"32\" width=\"110\" height=\"110\" rx=\"55\" fill=\"white\"/></clipPath><clipPath id=\"wui_delete_clip1\"><rect width=\"65\" height=\"65\" fill=\"white\" transform=\"translate(54.3535 54.502)\"/></clipPath></defs>"
|
|
259
260
|
};
|
|
260
261
|
Object.keys(M);
|
|
261
|
-
var
|
|
262
|
+
var N = class extends HTMLElement {
|
|
262
263
|
static get observedAttributes() {
|
|
263
264
|
return ["tone", "size"];
|
|
264
265
|
}
|
|
@@ -272,14 +273,14 @@ var ee = class extends HTMLElement {
|
|
|
272
273
|
let e = this.getAttribute("tone"), t = this.getAttribute("size") || "72", n = M[e] || M.info;
|
|
273
274
|
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>`;
|
|
274
275
|
}
|
|
275
|
-
},
|
|
276
|
+
}, ee = "data-wui-mirror";
|
|
276
277
|
function P(e, t) {
|
|
277
|
-
let n = e.getAttribute("name"), r = e.querySelector(`:scope > input[${
|
|
278
|
+
let n = e.getAttribute("name"), r = e.querySelector(`:scope > input[${ee}]`);
|
|
278
279
|
if (!n) {
|
|
279
280
|
r?.remove();
|
|
280
281
|
return;
|
|
281
282
|
}
|
|
282
|
-
r || (r = document.createElement("input"), r.type = "hidden", r.setAttribute(
|
|
283
|
+
r || (r = document.createElement("input"), r.type = "hidden", r.setAttribute(ee, ""), e.appendChild(r)), r.name = n, r.value = t == null ? "" : String(t);
|
|
283
284
|
for (let t of e.attributes) t.name.startsWith("data-val") && r.setAttribute(t.name, t.value);
|
|
284
285
|
r.disabled = e.hasAttribute("disabled");
|
|
285
286
|
}
|
|
@@ -673,7 +674,7 @@ var F = Symbol("wui.trustedHtml"), I = (e) => String(e ?? "").replace(/&/g, "&am
|
|
|
673
674
|
let t = this.querySelector(".search-select-options"), n = this.querySelector(".search-select-empty");
|
|
674
675
|
if (!t) return;
|
|
675
676
|
let r = (e || "").trim().toLowerCase(), i = this._readOptions();
|
|
676
|
-
r && (i = i.filter((e) =>
|
|
677
|
+
r && (i = i.filter((e) => G(e.label).toLowerCase().includes(r))), t.innerHTML = i.map((e) => {
|
|
677
678
|
let t = this._values.includes(String(e.value));
|
|
678
679
|
return `<button type="button" role="option" class="search-select-option${t ? " selected" : ""}" data-value="${W(e.value)}" aria-selected="${t}"><span class="ms-check"><i class="bi bi-check" aria-hidden="true"></i></span><span class="ms-opt-label">${L(e)}</span></button>`;
|
|
679
680
|
}).join(""), n && (n.hidden = i.length > 0), this._active = -1;
|
|
@@ -738,7 +739,103 @@ var F = Symbol("wui.trustedHtml"), I = (e) => String(e ?? "").replace(/&/g, "&am
|
|
|
738
739
|
disconnectedCallback() {
|
|
739
740
|
this._onDocClick && document.removeEventListener("click", this._onDocClick);
|
|
740
741
|
}
|
|
741
|
-
}, W = (e) => String(e ?? "").replace(/"/g, """).replace(/</g, "<"),
|
|
742
|
+
}, W = (e) => String(e ?? "").replace(/"/g, """).replace(/</g, "<"), G = (e) => String(e ?? "").replace(/<[^>]*>/g, ""), oe = /[^0-9]/g, se = /[^0-9a-zA-Z]/g, ce = class extends HTMLElement {
|
|
743
|
+
static get observedAttributes() {
|
|
744
|
+
return [
|
|
745
|
+
"value",
|
|
746
|
+
"length",
|
|
747
|
+
"mode",
|
|
748
|
+
"disabled",
|
|
749
|
+
"aria-label"
|
|
750
|
+
];
|
|
751
|
+
}
|
|
752
|
+
get length() {
|
|
753
|
+
let e = Number.parseInt(this.getAttribute("length") ?? "6", 10);
|
|
754
|
+
return Number.isFinite(e) && e > 0 ? e : 6;
|
|
755
|
+
}
|
|
756
|
+
set length(e) {
|
|
757
|
+
this.setAttribute("length", String(e));
|
|
758
|
+
}
|
|
759
|
+
get mode() {
|
|
760
|
+
return this.getAttribute("mode") === "alphanumeric" ? "alphanumeric" : "numeric";
|
|
761
|
+
}
|
|
762
|
+
set mode(e) {
|
|
763
|
+
this.setAttribute("mode", String(e ?? "numeric"));
|
|
764
|
+
}
|
|
765
|
+
get value() {
|
|
766
|
+
return this._value ?? "";
|
|
767
|
+
}
|
|
768
|
+
set value(e) {
|
|
769
|
+
this._value = this._clean(e), P(this, this._value), this._paint();
|
|
770
|
+
}
|
|
771
|
+
_clean(e) {
|
|
772
|
+
return (e == null ? "" : String(e)).replace(this.mode === "alphanumeric" ? se : oe, "").slice(0, this.length);
|
|
773
|
+
}
|
|
774
|
+
connectedCallback() {
|
|
775
|
+
this._rendered || this.render();
|
|
776
|
+
}
|
|
777
|
+
attributeChangedCallback(e, t, n) {
|
|
778
|
+
this._rendered && (e === "value" ? (this._value = this._clean(n), P(this, this._value), this._paint()) : this.render());
|
|
779
|
+
}
|
|
780
|
+
render() {
|
|
781
|
+
this._value = this._clean(this.getAttribute("value") ?? this._value);
|
|
782
|
+
let e = this.length, t = this.mode === "numeric", n = this.hasAttribute("disabled"), r = Array.from({ length: e }, () => "<span class=\"otp-slot\" aria-hidden=\"true\"></span>").join(""), i = this.getAttribute("aria-label"), a = i ? ` aria-label="${i.replace(/"/g, """)}"` : "";
|
|
783
|
+
this.innerHTML = `
|
|
784
|
+
<div class="otp">
|
|
785
|
+
<input
|
|
786
|
+
class="otp-field"
|
|
787
|
+
type="text"
|
|
788
|
+
autocomplete="one-time-code"
|
|
789
|
+
inputmode="${t ? "numeric" : "text"}"
|
|
790
|
+
${t ? "pattern=\"[0-9]*\"" : ""}${a}
|
|
791
|
+
autocapitalize="off"
|
|
792
|
+
autocorrect="off"
|
|
793
|
+
spellcheck="false"
|
|
794
|
+
${n ? "disabled" : ""} />
|
|
795
|
+
<div class="otp-slots" aria-hidden="true">${r}</div>
|
|
796
|
+
</div>`, this._rendered = !0, P(this, this._value), this._wire(), this._paint();
|
|
797
|
+
}
|
|
798
|
+
_refs() {
|
|
799
|
+
return {
|
|
800
|
+
input: this.querySelector(".otp-field"),
|
|
801
|
+
slots: [...this.querySelectorAll(".otp-slot")]
|
|
802
|
+
};
|
|
803
|
+
}
|
|
804
|
+
_paint() {
|
|
805
|
+
let { input: e, slots: t } = this._refs();
|
|
806
|
+
if (!e || !t.length) return;
|
|
807
|
+
e.value !== this._value && (e.value = this._value);
|
|
808
|
+
let n = e.selectionStart ?? this._value.length, r = Math.min(n, t.length - 1), i = document.activeElement === e;
|
|
809
|
+
t.forEach((e, t) => {
|
|
810
|
+
e.textContent = this._value[t] ?? "", e.classList.toggle("filled", !!this._value[t]), e.classList.toggle("active", i && t === r);
|
|
811
|
+
});
|
|
812
|
+
}
|
|
813
|
+
_wire() {
|
|
814
|
+
let { input: e } = this._refs();
|
|
815
|
+
if (!e) return;
|
|
816
|
+
let t = (e) => {
|
|
817
|
+
let t = this._clean(e), n = t !== this._value;
|
|
818
|
+
this._value = t, P(this, this._value), this._paint(), n && this.dispatchEvent(new Event("change", { bubbles: !0 })), n && t.length === this.length && this.dispatchEvent(new CustomEvent("complete", {
|
|
819
|
+
bubbles: !0,
|
|
820
|
+
detail: t
|
|
821
|
+
}));
|
|
822
|
+
};
|
|
823
|
+
e.addEventListener("input", () => t(e.value)), e.addEventListener("paste", (e) => {
|
|
824
|
+
let n = e.clipboardData?.getData("text");
|
|
825
|
+
n != null && (e.preventDefault(), t(n));
|
|
826
|
+
});
|
|
827
|
+
for (let t of [
|
|
828
|
+
"keyup",
|
|
829
|
+
"click",
|
|
830
|
+
"focus",
|
|
831
|
+
"blur",
|
|
832
|
+
"select"
|
|
833
|
+
]) e.addEventListener(t, () => this._paint());
|
|
834
|
+
document.addEventListener("selectionchange", () => {
|
|
835
|
+
document.activeElement === e && this._paint();
|
|
836
|
+
});
|
|
837
|
+
}
|
|
838
|
+
}, le = [
|
|
742
839
|
[
|
|
743
840
|
"AF",
|
|
744
841
|
"Afghanistan",
|
|
@@ -1964,11 +2061,11 @@ var F = Symbol("wui.trustedHtml"), I = (e) => String(e ?? "").replace(/&/g, "&am
|
|
|
1964
2061
|
"Zimbabwe",
|
|
1965
2062
|
"263"
|
|
1966
2063
|
]
|
|
1967
|
-
],
|
|
2064
|
+
], K = (e) => (le.find((t) => t[0] === e) || [
|
|
1968
2065
|
"",
|
|
1969
2066
|
"",
|
|
1970
2067
|
""
|
|
1971
|
-
])[2],
|
|
2068
|
+
])[2], q = (e) => `wui-flag wui-flag-${String(e).toLowerCase()}`, ue = class extends HTMLElement {
|
|
1972
2069
|
static get observedAttributes() {
|
|
1973
2070
|
return [
|
|
1974
2071
|
"value",
|
|
@@ -1987,7 +2084,7 @@ var F = Symbol("wui.trustedHtml"), I = (e) => String(e ?? "").replace(/&/g, "&am
|
|
|
1987
2084
|
this._rendered && (e === "country" && (this._country = n || "IN"), this.render());
|
|
1988
2085
|
}
|
|
1989
2086
|
get value() {
|
|
1990
|
-
return `+${
|
|
2087
|
+
return `+${K(this._country)}${this._national}`;
|
|
1991
2088
|
}
|
|
1992
2089
|
set value(e) {
|
|
1993
2090
|
this._national = String(e ?? "").replace(/[^0-9]/g, ""), this._commit();
|
|
@@ -1998,21 +2095,21 @@ var F = Symbol("wui.trustedHtml"), I = (e) => String(e ?? "").replace(/&/g, "&am
|
|
|
1998
2095
|
render() {
|
|
1999
2096
|
let e = this.getAttribute("placeholder") || "Enter phone number";
|
|
2000
2097
|
this._country = this.getAttribute("country") || this._country;
|
|
2001
|
-
let t =
|
|
2098
|
+
let t = le.map(([e, t, n]) => `<button type="button" role="option" class="country-dropdown-item${e === this._country ? " selected" : ""}" data-iso="${e}"><span class="${q(e)}" aria-hidden="true"></span><span class="country-name-text">${t}<span class="country-code-text">+${n}</span></span></button>`).join("");
|
|
2002
2099
|
this.innerHTML = `
|
|
2003
2100
|
<div class="phone-input-wrap">
|
|
2004
2101
|
<div class="phone-country-adornment">
|
|
2005
2102
|
<button type="button" class="country-toggle" aria-haspopup="listbox" aria-expanded="false"${this.hasAttribute("disabled") ? " disabled" : ""}>
|
|
2006
|
-
<span class="${
|
|
2103
|
+
<span class="${q(this._country)}" data-flag aria-hidden="true"></span>
|
|
2007
2104
|
<i class="bi bi-chevron-down phone-chevron" aria-hidden="true"></i>
|
|
2008
|
-
<span class="phone-dial" data-dial>+${
|
|
2105
|
+
<span class="phone-dial" data-dial>+${K(this._country)}</span>
|
|
2009
2106
|
</button>
|
|
2010
2107
|
<div class="country-dropdown-menu" role="listbox" hidden>
|
|
2011
2108
|
<div class="dropdown-search-wrapper"><span class="dropdown-search-icon"><i class="bi bi-search" aria-hidden="true"></i></span><input type="text" class="dropdown-search-input" placeholder="Search country or code" aria-label="Search countries" /></div>
|
|
2012
2109
|
<div class="country-list-scroll">${t}<div class="country-empty" hidden>No countries found</div></div>
|
|
2013
2110
|
</div>
|
|
2014
2111
|
</div>
|
|
2015
|
-
<input type="tel" class="input" placeholder="${
|
|
2112
|
+
<input type="tel" class="input" placeholder="${de(e)}" value="${de(this._national)}"${this.hasAttribute("disabled") ? " disabled" : ""} />
|
|
2016
2113
|
</div>`, this._rendered = !0, P(this, this.value), this._wire();
|
|
2017
2114
|
}
|
|
2018
2115
|
_wire() {
|
|
@@ -2037,7 +2134,7 @@ var F = Symbol("wui.trustedHtml"), I = (e) => String(e ?? "").replace(/&/g, "&am
|
|
|
2037
2134
|
}
|
|
2038
2135
|
i && (i.hidden = n > 0);
|
|
2039
2136
|
}, p = (e) => {
|
|
2040
|
-
this._country = e, this.setAttribute("country", e), o && (o.className =
|
|
2137
|
+
this._country = e, this.setAttribute("country", e), o && (o.className = q(e)), s && (s.textContent = `+${K(e)}`);
|
|
2041
2138
|
for (let t of r.querySelectorAll(".country-dropdown-item")) t.classList.toggle("selected", t.dataset.iso === e);
|
|
2042
2139
|
d(), this._commit();
|
|
2043
2140
|
};
|
|
@@ -2053,7 +2150,7 @@ var F = Symbol("wui.trustedHtml"), I = (e) => String(e ?? "").replace(/&/g, "&am
|
|
|
2053
2150
|
disconnectedCallback() {
|
|
2054
2151
|
this._reposition && (window.removeEventListener("scroll", this._reposition, !0), window.removeEventListener("resize", this._reposition)), this._onDocClick && document.removeEventListener("click", this._onDocClick);
|
|
2055
2152
|
}
|
|
2056
|
-
},
|
|
2153
|
+
}, de = (e) => String(e ?? "").replace(/"/g, """).replace(/</g, "<"), fe = class extends HTMLElement {
|
|
2057
2154
|
static get observedAttributes() {
|
|
2058
2155
|
return [
|
|
2059
2156
|
"value",
|
|
@@ -2062,6 +2159,8 @@ var F = Symbol("wui.trustedHtml"), I = (e) => String(e ?? "").replace(/&/g, "&am
|
|
|
2062
2159
|
"searchable",
|
|
2063
2160
|
"disabled",
|
|
2064
2161
|
"compact",
|
|
2162
|
+
"size",
|
|
2163
|
+
"clearable",
|
|
2065
2164
|
"aria-label"
|
|
2066
2165
|
];
|
|
2067
2166
|
}
|
|
@@ -2081,7 +2180,7 @@ var F = Symbol("wui.trustedHtml"), I = (e) => String(e ?? "").replace(/&/g, "&am
|
|
|
2081
2180
|
return this._value;
|
|
2082
2181
|
}
|
|
2083
2182
|
set value(e) {
|
|
2084
|
-
this._value = e == null ? "" : String(e), P(this, this._value), this._syncSelected();
|
|
2183
|
+
this._value = e == null ? "" : String(e), P(this, this._value), this._syncSelected(), this._syncReset();
|
|
2085
2184
|
}
|
|
2086
2185
|
set options(e) {
|
|
2087
2186
|
this._optionsProp = Array.isArray(e) ? e : null, this.isConnected && this.render();
|
|
@@ -2104,29 +2203,31 @@ var F = Symbol("wui.trustedHtml"), I = (e) => String(e ?? "").replace(/&/g, "&am
|
|
|
2104
2203
|
}
|
|
2105
2204
|
render() {
|
|
2106
2205
|
this._snapshotDeclared();
|
|
2107
|
-
let e = this._readOptions(), t = this.hasAttribute("searchable"), n = this.getAttribute("placeholder") || "Select...",
|
|
2108
|
-
|
|
2109
|
-
let
|
|
2206
|
+
let e = this._readOptions(), t = this.hasAttribute("searchable"), n = this.hasAttribute("clearable"), r = this.getAttribute("size"), i = r === "sm" ? " search-select-sm" : r === "lg" ? " search-select-lg" : "", a = this.getAttribute("placeholder") || "Select...", o = this.getAttribute("search-placeholder") || "Search...", s = e.find((e) => String(e.value) === String(this._value)) || e.find((e) => e.selected);
|
|
2207
|
+
s && (this._value = String(s.value)), P(this, this._value);
|
|
2208
|
+
let c = e.map((e) => {
|
|
2110
2209
|
let t = String(e.value) === String(this._value);
|
|
2111
|
-
return `<button type="button" role="option" class="search-select-option${t ? " selected" : ""}" data-value="${
|
|
2210
|
+
return `<button type="button" role="option" class="search-select-option${t ? " selected" : ""}" data-value="${J(e.value)}" aria-selected="${t}">${L(e)}</button>`;
|
|
2112
2211
|
}).join("");
|
|
2113
2212
|
this.innerHTML = `
|
|
2114
|
-
<div class="search-select${this.hasAttribute("compact") ? " search-select-compact" : ""}">
|
|
2115
|
-
<button type="button" role="combobox" class="input search-select-control" aria-haspopup="listbox" aria-expanded="false" aria-label="${
|
|
2116
|
-
<span class="${
|
|
2213
|
+
<div class="search-select${this.hasAttribute("compact") ? " search-select-compact" : ""}${i}">
|
|
2214
|
+
<button type="button" role="combobox" class="input search-select-control" aria-haspopup="listbox" aria-expanded="false" aria-label="${J(this._accessibleName())}"${this.hasAttribute("disabled") ? " disabled" : ""}>
|
|
2215
|
+
<span class="${s ? "" : "search-select-placeholder"}" data-label>${s ? L(s) : I(a)}</span>
|
|
2216
|
+
${n ? "<span class=\"search-select-reset\" role=\"button\" aria-label=\"Clear selection\" hidden><i class=\"bi bi-x-lg\" aria-hidden=\"true\"></i></span>" : ""}
|
|
2117
2217
|
<i class="bi bi-chevron-down search-select-caret" aria-hidden="true"></i>
|
|
2118
2218
|
</button>
|
|
2119
2219
|
<div class="search-select-menu search-select-menu-fixed" role="listbox" tabindex="-1" hidden>
|
|
2120
|
-
${t ? `<div class="search-select-search"><i class="bi bi-search" aria-hidden="true"></i><input class="search-select-input" placeholder="${
|
|
2121
|
-
<div class="search-select-options">${
|
|
2220
|
+
${t ? `<div class="search-select-search"><i class="bi bi-search" aria-hidden="true"></i><input class="search-select-input" placeholder="${J(o)}" aria-autocomplete="list" /><button type="button" class="search-select-clear" aria-label="Clear search" hidden><i class="bi bi-x" aria-hidden="true"></i></button></div>` : ""}
|
|
2221
|
+
<div class="search-select-options">${c}<div class="search-select-empty" hidden>No matches</div></div>
|
|
2122
2222
|
</div>
|
|
2123
|
-
</div>`, this._rendered = !0, P(this, this._value), this._wire();
|
|
2223
|
+
</div>`, this._rendered = !0, P(this, this._value), this._wire(), this._syncReset();
|
|
2124
2224
|
}
|
|
2125
2225
|
_refs() {
|
|
2126
2226
|
return {
|
|
2127
2227
|
control: this.querySelector(".search-select-control"),
|
|
2128
2228
|
menu: this.querySelector(".search-select-menu"),
|
|
2129
2229
|
label: this.querySelector("[data-label]"),
|
|
2230
|
+
reset: this.querySelector(".search-select-reset"),
|
|
2130
2231
|
search: this.querySelector(".search-select-input"),
|
|
2131
2232
|
clear: this.querySelector(".search-select-clear"),
|
|
2132
2233
|
empty: this.querySelector(".search-select-empty"),
|
|
@@ -2147,6 +2248,10 @@ var F = Symbol("wui.trustedHtml"), I = (e) => String(e ?? "").replace(/&/g, "&am
|
|
|
2147
2248
|
}
|
|
2148
2249
|
e && (e.innerHTML = t ? L(t) : e.innerHTML, e.classList.toggle("search-select-placeholder", !t));
|
|
2149
2250
|
}
|
|
2251
|
+
_syncReset() {
|
|
2252
|
+
let { reset: e } = this._refs();
|
|
2253
|
+
e && (e.hidden = !(this.hasAttribute("clearable") && this._value !== "" && !this.hasAttribute("disabled")));
|
|
2254
|
+
}
|
|
2150
2255
|
_wire() {
|
|
2151
2256
|
let e = this._refs();
|
|
2152
2257
|
if (!e.control || !e.menu) return;
|
|
@@ -2175,7 +2280,9 @@ var F = Symbol("wui.trustedHtml"), I = (e) => String(e ?? "").replace(/&/g, "&am
|
|
|
2175
2280
|
let r = this._visible();
|
|
2176
2281
|
t.key === "ArrowDown" ? (t.preventDefault(), n(Math.min(this._active + 1, r.length - 1))) : t.key === "ArrowUp" ? (t.preventDefault(), n(Math.max(this._active - 1, 0))) : t.key === "Enter" ? (t.preventDefault(), r[this._active] && s(r[this._active])) : t.key === "Escape" && (o(), e.control.focus());
|
|
2177
2282
|
};
|
|
2178
|
-
e.
|
|
2283
|
+
e.reset?.addEventListener("click", (t) => {
|
|
2284
|
+
t.stopPropagation(), this.value = "", this.dispatchEvent(new Event("change", { bubbles: !0 })), e.control.focus();
|
|
2285
|
+
}), e.control.addEventListener("click", () => i() ? o() : a()), e.control.addEventListener("keydown", (e) => {
|
|
2179
2286
|
if (i()) {
|
|
2180
2287
|
c(e);
|
|
2181
2288
|
return;
|
|
@@ -2187,7 +2294,7 @@ var F = Symbol("wui.trustedHtml"), I = (e) => String(e ?? "").replace(/&/g, "&am
|
|
|
2187
2294
|
}), e.optionsWrap.addEventListener("mousemove", (e) => {
|
|
2188
2295
|
let t = e.target.closest(".search-select-option");
|
|
2189
2296
|
t && n(this._visible().indexOf(t));
|
|
2190
|
-
}), e.search?.addEventListener("input", () => {
|
|
2297
|
+
}), e.optionsWrap.addEventListener("mouseleave", () => n(-1)), e.search?.addEventListener("input", () => {
|
|
2191
2298
|
r(e.search.value), n(-1);
|
|
2192
2299
|
}), e.search?.addEventListener("keydown", c), e.clear?.addEventListener("click", () => {
|
|
2193
2300
|
e.search.value = "", r(""), e.search.focus();
|
|
@@ -2200,14 +2307,14 @@ var F = Symbol("wui.trustedHtml"), I = (e) => String(e ?? "").replace(/&/g, "&am
|
|
|
2200
2307
|
disconnectedCallback() {
|
|
2201
2308
|
this._onDocClick && document.removeEventListener("click", this._onDocClick);
|
|
2202
2309
|
}
|
|
2203
|
-
},
|
|
2310
|
+
}, J = (e) => String(e ?? "").replace(/"/g, """).replace(/</g, "<"), pe = "image/png,image/jpeg,image/webp", me = {
|
|
2204
2311
|
"image/png": [".png"],
|
|
2205
2312
|
"image/jpeg": [".jpg", ".jpeg"],
|
|
2206
2313
|
"image/webp": [".webp"],
|
|
2207
2314
|
"image/gif": [".gif"],
|
|
2208
2315
|
"image/svg+xml": [".svg"],
|
|
2209
2316
|
"application/pdf": [".pdf"]
|
|
2210
|
-
},
|
|
2317
|
+
}, he = {
|
|
2211
2318
|
"image/png": "PNG",
|
|
2212
2319
|
"image/jpeg": "JPG",
|
|
2213
2320
|
"image/webp": "WEBP",
|
|
@@ -2221,33 +2328,33 @@ var F = Symbol("wui.trustedHtml"), I = (e) => String(e ?? "").replace(/&/g, "&am
|
|
|
2221
2328
|
".gif": "GIF",
|
|
2222
2329
|
".svg": "SVG",
|
|
2223
2330
|
".pdf": "PDF"
|
|
2224
|
-
},
|
|
2225
|
-
function
|
|
2331
|
+
}, ge = (e) => String(e || "").split(",").map((e) => e.trim().toLowerCase()).filter(Boolean);
|
|
2332
|
+
function _e(e) {
|
|
2226
2333
|
let t = [];
|
|
2227
|
-
for (let n of
|
|
2228
|
-
let e =
|
|
2334
|
+
for (let n of ge(e)) {
|
|
2335
|
+
let e = he[n] || (n.startsWith(".") ? n.slice(1).toUpperCase() : n.toUpperCase());
|
|
2229
2336
|
t.includes(e) || t.push(e);
|
|
2230
2337
|
}
|
|
2231
2338
|
return t.length <= 1 ? t[0] || "supported" : `${t.slice(0, -1).join(", ")} or ${t[t.length - 1]}`;
|
|
2232
2339
|
}
|
|
2233
|
-
function
|
|
2234
|
-
let n =
|
|
2340
|
+
function ve(e, t) {
|
|
2341
|
+
let n = ge(t);
|
|
2235
2342
|
if (!n.length) return !0;
|
|
2236
2343
|
let r = (e.type || "").toLowerCase(), i = (e.name || "").toLowerCase();
|
|
2237
|
-
return n.some((e) => e.startsWith(".") ? i.endsWith(e) : e.endsWith("/*") ? r.startsWith(e.slice(0, -1)) : r && r === e ? !0 : !r && (
|
|
2344
|
+
return n.some((e) => e.startsWith(".") ? i.endsWith(e) : e.endsWith("/*") ? r.startsWith(e.slice(0, -1)) : r && r === e ? !0 : !r && (me[e] || []).some((e) => i.endsWith(e)));
|
|
2238
2345
|
}
|
|
2239
|
-
function
|
|
2346
|
+
function ye(e, t = {}) {
|
|
2240
2347
|
if (!e) return null;
|
|
2241
|
-
let n = t.accept === void 0 ?
|
|
2242
|
-
return
|
|
2348
|
+
let n = t.accept === void 0 ? pe : t.accept, r = t.maxSizeMb || 5;
|
|
2349
|
+
return ve(e, n) ? e.size > r * 1024 * 1024 ? `Keep the file under ${r} MB.` : null : `Choose a ${_e(n)} file.`;
|
|
2243
2350
|
}
|
|
2244
2351
|
var Y = (e, t) => {
|
|
2245
2352
|
typeof customElements < "u" && !customElements.get(e) && customElements.define(e, t);
|
|
2246
2353
|
};
|
|
2247
|
-
function
|
|
2248
|
-
Y("wui-select",
|
|
2354
|
+
function be() {
|
|
2355
|
+
Y("wui-select", fe), Y("wui-phone", ue), Y("wui-datepicker", ie), Y("wui-autocomplete", te), Y("wui-multiselect", ae), Y("wui-otp", ce), Y("wui-status-icon", N);
|
|
2249
2356
|
}
|
|
2250
|
-
|
|
2357
|
+
be();
|
|
2251
2358
|
//#endregion
|
|
2252
2359
|
//#region src/components/RequiredMark.jsx
|
|
2253
2360
|
function X() {
|
|
@@ -2259,7 +2366,7 @@ function X() {
|
|
|
2259
2366
|
}
|
|
2260
2367
|
//#endregion
|
|
2261
2368
|
//#region src/components/AppAutocomplete.jsx
|
|
2262
|
-
function
|
|
2369
|
+
function xe({ value: e, onChange: r, options: i, loadOptions: o, placeholder: s = "Search…", minChars: l, debounce: u, disabled: d = !1, name: f, label: p, error: m, hint: h, required: g = !1, fieldClassName: _ = "", ...v }) {
|
|
2263
2370
|
T("AppAutocomplete", v);
|
|
2264
2371
|
let y = c(null), b = typeof o == "function";
|
|
2265
2372
|
return a(() => {
|
|
@@ -2320,13 +2427,13 @@ function ve({ value: e, onChange: r, options: i, loadOptions: o, placeholder: s
|
|
|
2320
2427
|
}
|
|
2321
2428
|
//#endregion
|
|
2322
2429
|
//#region src/components/AppAvatar.jsx
|
|
2323
|
-
function
|
|
2430
|
+
function Se(e) {
|
|
2324
2431
|
let t = (e || "").trim();
|
|
2325
2432
|
if (!t) return "?";
|
|
2326
2433
|
let n = t.split(/\s+/).filter(Boolean);
|
|
2327
2434
|
return n.length === 1 ? n[0].slice(0, 2).toUpperCase() : (n[0][0] + n[n.length - 1][0]).toUpperCase();
|
|
2328
2435
|
}
|
|
2329
|
-
function
|
|
2436
|
+
function Ce({ name: e, src: n, className: r = "", ...i }) {
|
|
2330
2437
|
T("AppAvatar", i);
|
|
2331
2438
|
let a = ["avatar", r].filter(Boolean).join(" ");
|
|
2332
2439
|
return n ? /* @__PURE__ */ t("span", {
|
|
@@ -2340,12 +2447,12 @@ function be({ name: e, src: n, className: r = "", ...i }) {
|
|
|
2340
2447
|
className: a,
|
|
2341
2448
|
role: "img",
|
|
2342
2449
|
"aria-label": e,
|
|
2343
|
-
children:
|
|
2450
|
+
children: Se(e)
|
|
2344
2451
|
});
|
|
2345
2452
|
}
|
|
2346
2453
|
//#endregion
|
|
2347
2454
|
//#region src/components/AppBadge.jsx
|
|
2348
|
-
function
|
|
2455
|
+
function we({ children: e, tone: n, dot: r = !1, className: i = "", ...a }) {
|
|
2349
2456
|
return T("AppBadge", a), /* @__PURE__ */ t(d, {
|
|
2350
2457
|
bg: !1,
|
|
2351
2458
|
className: [
|
|
@@ -2359,14 +2466,14 @@ function xe({ children: e, tone: n, dot: r = !1, className: i = "", ...a }) {
|
|
|
2359
2466
|
}
|
|
2360
2467
|
//#endregion
|
|
2361
2468
|
//#region src/components/AppButton.jsx
|
|
2362
|
-
var
|
|
2469
|
+
var Te = {
|
|
2363
2470
|
primary: "primary",
|
|
2364
2471
|
secondary: "secondary",
|
|
2365
2472
|
outline: "outline-primary",
|
|
2366
2473
|
ghost: "link",
|
|
2367
2474
|
danger: "danger"
|
|
2368
2475
|
};
|
|
2369
|
-
function
|
|
2476
|
+
function Ee(e, n) {
|
|
2370
2477
|
if (!e) return null;
|
|
2371
2478
|
let r = n === "left" ? "me-2" : "ms-2";
|
|
2372
2479
|
return typeof e == "string" ? /* @__PURE__ */ t(O, {
|
|
@@ -2383,7 +2490,7 @@ function Z({ children: e, variant: r = "primary", size: i = "md", type: a = "but
|
|
|
2383
2490
|
let m = [c ? "w-100" : "", d].filter(Boolean).join(" ");
|
|
2384
2491
|
return /* @__PURE__ */ n(f, {
|
|
2385
2492
|
type: (p.as === void 0 || p.as === "button") && p.href === void 0 ? a : void 0,
|
|
2386
|
-
variant:
|
|
2493
|
+
variant: Te[r] ?? "primary",
|
|
2387
2494
|
size: i === "md" ? void 0 : i,
|
|
2388
2495
|
disabled: s || o,
|
|
2389
2496
|
className: m || void 0,
|
|
@@ -2393,15 +2500,15 @@ function Z({ children: e, variant: r = "primary", size: i = "md", type: a = "but
|
|
|
2393
2500
|
className: "spinner-border spinner-border-sm me-2",
|
|
2394
2501
|
"aria-hidden": "true"
|
|
2395
2502
|
}),
|
|
2396
|
-
!o &&
|
|
2503
|
+
!o && Ee(l, "left"),
|
|
2397
2504
|
e,
|
|
2398
|
-
!o &&
|
|
2505
|
+
!o && Ee(u, "right")
|
|
2399
2506
|
]
|
|
2400
2507
|
});
|
|
2401
2508
|
}
|
|
2402
2509
|
//#endregion
|
|
2403
2510
|
//#region src/components/AppCallout.jsx
|
|
2404
|
-
function
|
|
2511
|
+
function De({ children: e, icon: r = "info", className: i = "", ...a }) {
|
|
2405
2512
|
return T("AppCallout", a), /* @__PURE__ */ n("div", {
|
|
2406
2513
|
className: `info-callout${i ? ` ${i}` : ""}`,
|
|
2407
2514
|
children: [r && /* @__PURE__ */ t("span", {
|
|
@@ -2415,7 +2522,7 @@ function we({ children: e, icon: r = "info", className: i = "", ...a }) {
|
|
|
2415
2522
|
}
|
|
2416
2523
|
//#endregion
|
|
2417
2524
|
//#region src/components/AppCard.jsx
|
|
2418
|
-
function
|
|
2525
|
+
function Oe({ title: r, titleClassName: i = "", header: a, headerExtra: o, headerActions: s, children: c, className: l = "", bodyClassName: u = "", headerClassName: d = "", body: f = !0, lifted: m = !1, ...h }) {
|
|
2419
2526
|
T("AppCard", h);
|
|
2420
2527
|
let g = a != null || r != null || o != null || s != null;
|
|
2421
2528
|
return /* @__PURE__ */ n(p, {
|
|
@@ -2440,7 +2547,7 @@ function Te({ title: r, titleClassName: i = "", header: a, headerExtra: o, heade
|
|
|
2440
2547
|
}
|
|
2441
2548
|
//#endregion
|
|
2442
2549
|
//#region src/components/AppCheckbox.jsx
|
|
2443
|
-
var
|
|
2550
|
+
var ke = r(function({ label: e, id: r, name: i, className: a = "", ...s }, c) {
|
|
2444
2551
|
T("AppCheckbox", s);
|
|
2445
2552
|
let l = o(), u = r || i || l;
|
|
2446
2553
|
return /* @__PURE__ */ n("div", {
|
|
@@ -2461,7 +2568,7 @@ var Ee = r(function({ label: e, id: r, name: i, className: a = "", ...s }, c) {
|
|
|
2461
2568
|
});
|
|
2462
2569
|
//#endregion
|
|
2463
2570
|
//#region src/components/AppChip.jsx
|
|
2464
|
-
function
|
|
2571
|
+
function Ae({ label: r, children: i, tone: a = "neutral", size: o = "md", leadingIcon: s, avatar: c, onRemove: l, onClick: u, disabled: d = !1, removeLabel: f, className: p = "", ...m }) {
|
|
2465
2572
|
T("AppChip", m);
|
|
2466
2573
|
let h = r ?? i, g = [
|
|
2467
2574
|
"chip",
|
|
@@ -2513,7 +2620,7 @@ function De({ label: r, children: i, tone: a = "neutral", size: o = "md", leadin
|
|
|
2513
2620
|
}
|
|
2514
2621
|
//#endregion
|
|
2515
2622
|
//#region src/components/AppChoiceCard.jsx
|
|
2516
|
-
function
|
|
2623
|
+
function je({ name: r, multiple: i = !1, value: a, checked: o, onChange: s, icon: c, iconNode: l, iconSize: u = 18, image: d, imageAlt: f = "", children: p, title: m, description: h, checkIcon: g = "check", checkSize: _ = 12, className: v = "", ...y }) {
|
|
2517
2624
|
return T("AppChoiceCard", y), /* @__PURE__ */ n("label", {
|
|
2518
2625
|
className: `struct-card${d ? " struct-card-img-card" : ""}${o ? " checked" : ""}${v ? ` ${v}` : ""}`,
|
|
2519
2626
|
children: [
|
|
@@ -2561,7 +2668,7 @@ function Oe({ name: r, multiple: i = !1, value: a, checked: o, onChange: s, icon
|
|
|
2561
2668
|
}
|
|
2562
2669
|
//#endregion
|
|
2563
2670
|
//#region src/components/AppChoiceChip.jsx
|
|
2564
|
-
function
|
|
2671
|
+
function Me({ multiple: e = !0, label: r, name: i, value: a, checked: o, onChange: s, children: c, count: l, className: u = "", ...d }) {
|
|
2565
2672
|
return T("AppChoiceChip", d), /* @__PURE__ */ n("label", {
|
|
2566
2673
|
className: `choice-chip${o ? " checked" : ""}${u ? ` ${u}` : ""}`,
|
|
2567
2674
|
children: [
|
|
@@ -2582,7 +2689,7 @@ function ke({ multiple: e = !0, label: r, name: i, value: a, checked: o, onChang
|
|
|
2582
2689
|
}
|
|
2583
2690
|
//#endregion
|
|
2584
2691
|
//#region src/components/AppColorField.jsx
|
|
2585
|
-
function
|
|
2692
|
+
function Ne({ value: e = "#000000", onChange: r, label: i, required: a = !1, error: o, hint: s, name: c, id: l, disabled: u = !1, className: d = "", ...f }) {
|
|
2586
2693
|
T("AppColorField", f);
|
|
2587
2694
|
let p = l || c;
|
|
2588
2695
|
return /* @__PURE__ */ n("div", {
|
|
@@ -2630,7 +2737,7 @@ function Ae({ value: e = "#000000", onChange: r, label: i, required: a = !1, err
|
|
|
2630
2737
|
}
|
|
2631
2738
|
//#endregion
|
|
2632
2739
|
//#region src/components/AppCompareTable.jsx
|
|
2633
|
-
function
|
|
2740
|
+
function Pe({ columns: e = [], rows: r = [], caption: i, className: a = "", ...o }) {
|
|
2634
2741
|
T("AppCompareTable", o);
|
|
2635
2742
|
let s = (e) => e === !0 ? /* @__PURE__ */ t("span", {
|
|
2636
2743
|
className: "compare-yes",
|
|
@@ -2713,83 +2820,105 @@ function Q({ label: e, children: r, ...i }) {
|
|
|
2713
2820
|
}
|
|
2714
2821
|
//#endregion
|
|
2715
2822
|
//#region src/components/AppInput.jsx
|
|
2716
|
-
var
|
|
2717
|
-
T("AppInput",
|
|
2718
|
-
let [
|
|
2719
|
-
|
|
2720
|
-
},
|
|
2721
|
-
|
|
2722
|
-
},
|
|
2823
|
+
var Fe = r(function({ label: e, required: r = !1, error: i, hint: a, help: o, helpLabel: s = "More information", type: u = "text", size: d = "md", leftIcon: f, rightIcon: p, onRightIconClick: h, rightIconLabel: g, unit: _, id: v, name: y, className: b = "", fieldClassName: x = "", disabled: S = !1, clearable: C = !1, showCount: w = !1, maxLength: E, prefix: D, suffix: k, floatingLabel: A = !1, ...j }, M) {
|
|
2824
|
+
T("AppInput", j);
|
|
2825
|
+
let [N, ee] = l(!1), P = v || y, F = u === "password", I = F && N ? "text" : u, L = c(null), te = (e) => {
|
|
2826
|
+
L.current = e, typeof M == "function" ? M(e) : M && (M.current = e);
|
|
2827
|
+
}, R = String(j.value ?? j.defaultValue ?? ""), [z, B] = l(() => !!R), [ne, V] = l(() => R.length), re = C && !S, H = C || w, U = (e) => {
|
|
2828
|
+
B(!!e.target.value), V(e.target.value.length), j.onInput?.(e);
|
|
2829
|
+
}, ie = re ? /* @__PURE__ */ t("button", {
|
|
2723
2830
|
type: "button",
|
|
2724
2831
|
className: "input-clear",
|
|
2725
2832
|
onClick: () => {
|
|
2726
|
-
let e =
|
|
2833
|
+
let e = L.current;
|
|
2727
2834
|
if (!e) return;
|
|
2728
2835
|
let t = Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, "value")?.set;
|
|
2729
|
-
t ? t.call(e, "") : e.value = "", e.dispatchEvent(new Event("input", { bubbles: !0 })),
|
|
2836
|
+
t ? t.call(e, "") : e.value = "", e.dispatchEvent(new Event("input", { bubbles: !0 })), B(!1), e.focus();
|
|
2730
2837
|
},
|
|
2731
2838
|
"aria-label": "Clear",
|
|
2732
2839
|
tabIndex: -1,
|
|
2733
|
-
hidden: !
|
|
2840
|
+
hidden: !z,
|
|
2734
2841
|
children: /* @__PURE__ */ t(O, {
|
|
2735
2842
|
name: "x",
|
|
2736
2843
|
size: 16
|
|
2737
2844
|
})
|
|
2738
|
-
}) : null,
|
|
2845
|
+
}) : null, ae = [
|
|
2739
2846
|
"input",
|
|
2740
2847
|
d === "sm" ? "input-sm" : "",
|
|
2741
2848
|
d === "lg" ? "input-lg" : "",
|
|
2742
2849
|
i ? "error" : "",
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
].filter(Boolean).join(" "),
|
|
2748
|
-
id:
|
|
2749
|
-
name:
|
|
2750
|
-
type:
|
|
2751
|
-
className:
|
|
2752
|
-
disabled:
|
|
2850
|
+
F ? "pw" : "",
|
|
2851
|
+
_ ? "num-input" : "",
|
|
2852
|
+
C ? "has-clear" : "",
|
|
2853
|
+
b
|
|
2854
|
+
].filter(Boolean).join(" "), W = /* @__PURE__ */ t(m.Control, {
|
|
2855
|
+
id: P,
|
|
2856
|
+
name: y,
|
|
2857
|
+
type: I,
|
|
2858
|
+
className: ae,
|
|
2859
|
+
disabled: S,
|
|
2753
2860
|
required: r,
|
|
2754
2861
|
"aria-invalid": i ? "true" : "false",
|
|
2755
|
-
maxLength:
|
|
2756
|
-
...
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2862
|
+
maxLength: E,
|
|
2863
|
+
...j,
|
|
2864
|
+
placeholder: A ? " " : j.placeholder,
|
|
2865
|
+
ref: te,
|
|
2866
|
+
onInput: H ? U : j.onInput
|
|
2867
|
+
}), G;
|
|
2868
|
+
return G = A && e ? /* @__PURE__ */ n("div", {
|
|
2869
|
+
className: "field-float",
|
|
2870
|
+
children: [W, /* @__PURE__ */ n("label", {
|
|
2871
|
+
className: "float-label",
|
|
2872
|
+
htmlFor: P,
|
|
2873
|
+
children: [e, r && /* @__PURE__ */ t(X, {})]
|
|
2874
|
+
})]
|
|
2875
|
+
}) : D || k ? /* @__PURE__ */ n("div", {
|
|
2876
|
+
className: "input-affixed",
|
|
2877
|
+
children: [
|
|
2878
|
+
D != null && /* @__PURE__ */ t("span", {
|
|
2879
|
+
className: "affix affix-pre",
|
|
2880
|
+
children: D
|
|
2881
|
+
}),
|
|
2882
|
+
W,
|
|
2883
|
+
k != null && /* @__PURE__ */ t("span", {
|
|
2884
|
+
className: "affix affix-suf",
|
|
2885
|
+
children: k
|
|
2886
|
+
})
|
|
2887
|
+
]
|
|
2888
|
+
}) : _ ? /* @__PURE__ */ n("div", {
|
|
2761
2889
|
className: "input-with-unit",
|
|
2762
|
-
children: [
|
|
2890
|
+
children: [W, /* @__PURE__ */ t("span", {
|
|
2763
2891
|
className: "unit",
|
|
2764
|
-
children:
|
|
2892
|
+
children: _
|
|
2765
2893
|
})]
|
|
2766
|
-
}) :
|
|
2894
|
+
}) : F ? /* @__PURE__ */ n("div", {
|
|
2767
2895
|
className: "input-wrap",
|
|
2768
|
-
children: [
|
|
2896
|
+
children: [W, /* @__PURE__ */ t("button", {
|
|
2769
2897
|
type: "button",
|
|
2770
2898
|
className: "pw-toggle",
|
|
2771
|
-
onClick: () =>
|
|
2772
|
-
"aria-label":
|
|
2899
|
+
onClick: () => ee((e) => !e),
|
|
2900
|
+
"aria-label": N ? "Hide password" : "Show password",
|
|
2773
2901
|
tabIndex: -1,
|
|
2774
2902
|
children: /* @__PURE__ */ t(O, {
|
|
2775
|
-
name:
|
|
2903
|
+
name: N ? "eye-off" : "eye",
|
|
2776
2904
|
size: 18
|
|
2777
2905
|
})
|
|
2778
2906
|
})]
|
|
2779
2907
|
}) : p ? /* @__PURE__ */ n("div", {
|
|
2780
2908
|
className: "input-wrap",
|
|
2781
|
-
children: [
|
|
2909
|
+
children: [W, /* @__PURE__ */ t("button", {
|
|
2782
2910
|
type: "button",
|
|
2783
2911
|
className: "pw-toggle",
|
|
2784
2912
|
onClick: h,
|
|
2785
2913
|
disabled: !h,
|
|
2786
2914
|
tabIndex: -1,
|
|
2915
|
+
"aria-label": g || p,
|
|
2787
2916
|
children: /* @__PURE__ */ t(O, {
|
|
2788
2917
|
name: p,
|
|
2789
2918
|
size: 18
|
|
2790
2919
|
})
|
|
2791
2920
|
})]
|
|
2792
|
-
}) :
|
|
2921
|
+
}) : C ? /* @__PURE__ */ n("div", {
|
|
2793
2922
|
className: f ? "input-icon" : "input-wrap",
|
|
2794
2923
|
children: [
|
|
2795
2924
|
f && /* @__PURE__ */ t("span", {
|
|
@@ -2799,8 +2928,8 @@ var Me = r(function({ label: e, required: r = !1, error: i, hint: a, help: o, he
|
|
|
2799
2928
|
size: 16
|
|
2800
2929
|
})
|
|
2801
2930
|
}),
|
|
2802
|
-
|
|
2803
|
-
|
|
2931
|
+
W,
|
|
2932
|
+
ie
|
|
2804
2933
|
]
|
|
2805
2934
|
}) : f ? /* @__PURE__ */ n("div", {
|
|
2806
2935
|
className: "input-icon",
|
|
@@ -2810,13 +2939,13 @@ var Me = r(function({ label: e, required: r = !1, error: i, hint: a, help: o, he
|
|
|
2810
2939
|
name: f,
|
|
2811
2940
|
size: 16
|
|
2812
2941
|
})
|
|
2813
|
-
}),
|
|
2814
|
-
}) :
|
|
2815
|
-
className: `field${
|
|
2942
|
+
}), W]
|
|
2943
|
+
}) : W, /* @__PURE__ */ n(m.Group, {
|
|
2944
|
+
className: `field${x ? ` ${x}` : ""}`,
|
|
2816
2945
|
children: [
|
|
2817
|
-
e && /* @__PURE__ */ n(m.Label, {
|
|
2946
|
+
e && !A && /* @__PURE__ */ n(m.Label, {
|
|
2818
2947
|
className: "label",
|
|
2819
|
-
htmlFor:
|
|
2948
|
+
htmlFor: P,
|
|
2820
2949
|
children: [
|
|
2821
2950
|
e,
|
|
2822
2951
|
r && /* @__PURE__ */ t(X, {}),
|
|
@@ -2826,7 +2955,7 @@ var Me = r(function({ label: e, required: r = !1, error: i, hint: a, help: o, he
|
|
|
2826
2955
|
})
|
|
2827
2956
|
]
|
|
2828
2957
|
}),
|
|
2829
|
-
|
|
2958
|
+
G,
|
|
2830
2959
|
i ? /* @__PURE__ */ t("div", {
|
|
2831
2960
|
className: "field-error",
|
|
2832
2961
|
children: i
|
|
@@ -2834,21 +2963,21 @@ var Me = r(function({ label: e, required: r = !1, error: i, hint: a, help: o, he
|
|
|
2834
2963
|
className: "field-hint",
|
|
2835
2964
|
children: a
|
|
2836
2965
|
}) : null,
|
|
2837
|
-
|
|
2838
|
-
className: `field-count${
|
|
2839
|
-
children: [
|
|
2966
|
+
w && /* @__PURE__ */ n("div", {
|
|
2967
|
+
className: `field-count${E && ne >= E ? " at-limit" : ""}`,
|
|
2968
|
+
children: [ne, E ? ` / ${E}` : ""]
|
|
2840
2969
|
})
|
|
2841
2970
|
]
|
|
2842
2971
|
});
|
|
2843
|
-
}),
|
|
2844
|
-
function
|
|
2972
|
+
}), Ie = "a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex=\"-1\"])";
|
|
2973
|
+
function Le({ open: e, title: r, subtitle: i, headerIcon: o, onClose: s, footer: l, size: u, wide: d = !1, side: f = !1, maxWidth: p, hideHeader: m = !1, className: h = "", children: _, ...v }) {
|
|
2845
2974
|
T("AppModal", v);
|
|
2846
2975
|
let y = c(null);
|
|
2847
2976
|
a(() => {
|
|
2848
2977
|
if (!e) return;
|
|
2849
2978
|
let t = y.current?.closest(".modal-content");
|
|
2850
2979
|
if (!t) return;
|
|
2851
|
-
let n = () => Array.from(t.querySelectorAll(
|
|
2980
|
+
let n = () => Array.from(t.querySelectorAll(Ie));
|
|
2852
2981
|
(t.querySelector("[data-autofocus]") || n().find((e) => !e.classList.contains("lx-modal-close")) || n()[0] || t).focus?.();
|
|
2853
2982
|
}, [e]);
|
|
2854
2983
|
let b = ["lx-modal-shell", f ? "is-side" : ""].filter(Boolean).join(" "), x = [
|
|
@@ -2933,7 +3062,7 @@ var $ = (e) => function({ size: n = 72 }) {
|
|
|
2933
3062
|
tone: e,
|
|
2934
3063
|
size: n
|
|
2935
3064
|
});
|
|
2936
|
-
},
|
|
3065
|
+
}, Re = {
|
|
2937
3066
|
success: $("success"),
|
|
2938
3067
|
error: $("error"),
|
|
2939
3068
|
warning: $("warning"),
|
|
@@ -2942,14 +3071,14 @@ var $ = (e) => function({ size: n = 72 }) {
|
|
|
2942
3071
|
};
|
|
2943
3072
|
//#endregion
|
|
2944
3073
|
//#region src/components/AppConfirmDialog.jsx
|
|
2945
|
-
function
|
|
3074
|
+
function ze({ open: r, title: i, message: o, confirmLabel: s = "Confirm", cancelLabel: c = "Cancel", danger: u = !1, tone: d, confirmPhrase: f, onConfirm: p, onClose: m, ...h }) {
|
|
2946
3075
|
T("AppConfirmDialog", h);
|
|
2947
3076
|
let [g, _] = l("");
|
|
2948
3077
|
if (a(() => {
|
|
2949
3078
|
r || _("");
|
|
2950
3079
|
}, [r]), !r) return null;
|
|
2951
|
-
let v = !!f && g.trim() !== f, y =
|
|
2952
|
-
return /* @__PURE__ */ t(
|
|
3080
|
+
let v = !!f && g.trim() !== f, y = Re[d || (u ? "delete" : "info")];
|
|
3081
|
+
return /* @__PURE__ */ t(Le, {
|
|
2953
3082
|
open: r,
|
|
2954
3083
|
hideHeader: !0,
|
|
2955
3084
|
title: i,
|
|
@@ -2985,7 +3114,7 @@ function Ie({ open: r, title: i, message: o, confirmLabel: s = "Confirm", cancel
|
|
|
2985
3114
|
className: "lx-confirm-msg",
|
|
2986
3115
|
children: o
|
|
2987
3116
|
}),
|
|
2988
|
-
f && /* @__PURE__ */ t(
|
|
3117
|
+
f && /* @__PURE__ */ t(Fe, {
|
|
2989
3118
|
fieldClassName: "mt-3 mb-0 w-100 text-start",
|
|
2990
3119
|
label: /* @__PURE__ */ n(e, { children: [
|
|
2991
3120
|
"Type ",
|
|
@@ -3002,7 +3131,7 @@ function Ie({ open: r, title: i, message: o, confirmLabel: s = "Confirm", cancel
|
|
|
3002
3131
|
}
|
|
3003
3132
|
//#endregion
|
|
3004
3133
|
//#region src/components/AppSkeleton.jsx
|
|
3005
|
-
function
|
|
3134
|
+
function Be({ width: e = "100%", height: n = 14, radius: r = 6, className: i = "", style: a, ...o }) {
|
|
3006
3135
|
return T("AppSkeleton", o), /* @__PURE__ */ t("span", {
|
|
3007
3136
|
className: `skeleton${i ? ` ${i}` : ""}`,
|
|
3008
3137
|
"aria-hidden": "true",
|
|
@@ -3014,7 +3143,7 @@ function Le({ width: e = "100%", height: n = 14, radius: r = 6, className: i = "
|
|
|
3014
3143
|
}
|
|
3015
3144
|
});
|
|
3016
3145
|
}
|
|
3017
|
-
var
|
|
3146
|
+
var Ve = [
|
|
3018
3147
|
"r0",
|
|
3019
3148
|
"r1",
|
|
3020
3149
|
"r2",
|
|
@@ -3023,7 +3152,7 @@ var Re = [
|
|
|
3023
3152
|
"r5",
|
|
3024
3153
|
"r6",
|
|
3025
3154
|
"r7"
|
|
3026
|
-
],
|
|
3155
|
+
], He = [
|
|
3027
3156
|
"c0",
|
|
3028
3157
|
"c1",
|
|
3029
3158
|
"c2",
|
|
@@ -3033,15 +3162,15 @@ var Re = [
|
|
|
3033
3162
|
"c6",
|
|
3034
3163
|
"c7"
|
|
3035
3164
|
];
|
|
3036
|
-
function
|
|
3037
|
-
return
|
|
3165
|
+
function Ue({ rows: e = 4, cols: n = 5 }) {
|
|
3166
|
+
return Ve.slice(0, e).map((e) => /* @__PURE__ */ t("tr", { children: He.slice(0, n).map((e, n) => /* @__PURE__ */ t("td", { children: /* @__PURE__ */ t(Be, {
|
|
3038
3167
|
width: n === 0 ? "70%" : "50%",
|
|
3039
3168
|
height: 12
|
|
3040
3169
|
}) }, e)) }, e));
|
|
3041
3170
|
}
|
|
3042
3171
|
//#endregion
|
|
3043
3172
|
//#region src/components/AppSelectMini.jsx
|
|
3044
|
-
function
|
|
3173
|
+
function We({ value: e, onChange: n, options: r = [], placeholder: i = "Select...", name: o, ariaLabel: s, id: l, disabled: u, className: d, ...f }) {
|
|
3045
3174
|
T("AppSelectMini", f);
|
|
3046
3175
|
let p = c(null);
|
|
3047
3176
|
return a(() => {
|
|
@@ -3070,19 +3199,19 @@ function Ve({ value: e, onChange: n, options: r = [], placeholder: i = "Select..
|
|
|
3070
3199
|
}
|
|
3071
3200
|
//#endregion
|
|
3072
3201
|
//#region src/components/AppTablePagination.jsx
|
|
3073
|
-
var
|
|
3202
|
+
var Ge = [
|
|
3074
3203
|
5,
|
|
3075
3204
|
10,
|
|
3076
3205
|
25,
|
|
3077
3206
|
50
|
|
3078
3207
|
];
|
|
3079
|
-
function
|
|
3208
|
+
function Ke({ page: e, totalPages: r, pageSize: i, total: a, firstRow: o, lastRow: s, onPageChange: c, onPageSizeChange: l, pageSizes: u = Ge, ...d }) {
|
|
3080
3209
|
return T("AppTablePagination", d), /* @__PURE__ */ n("div", {
|
|
3081
3210
|
className: "table-pagination",
|
|
3082
3211
|
children: [
|
|
3083
3212
|
/* @__PURE__ */ n("span", {
|
|
3084
3213
|
className: "tpg-rows",
|
|
3085
|
-
children: ["Rows per page:", /* @__PURE__ */ t(
|
|
3214
|
+
children: ["Rows per page:", /* @__PURE__ */ t(We, {
|
|
3086
3215
|
value: i,
|
|
3087
3216
|
onChange: (e) => l(Number(e)),
|
|
3088
3217
|
ariaLabel: "Rows per page",
|
|
@@ -3131,13 +3260,13 @@ function Ue({ page: e, totalPages: r, pageSize: i, total: a, firstRow: o, lastRo
|
|
|
3131
3260
|
}
|
|
3132
3261
|
//#endregion
|
|
3133
3262
|
//#region src/components/AppDataTable.jsx
|
|
3134
|
-
function
|
|
3263
|
+
function qe(e) {
|
|
3135
3264
|
return e === "end" ? "lx-cell-end" : e === "num" ? "num" : e === "center" ? "text-center" : "";
|
|
3136
3265
|
}
|
|
3137
|
-
function
|
|
3266
|
+
function Je(e) {
|
|
3138
3267
|
return e == null || e === "" ? "—" : e;
|
|
3139
3268
|
}
|
|
3140
|
-
function
|
|
3269
|
+
function Ye({ columns: r, rows: i, rowKey: a = (e) => e.id, sort: o, onSort: s, loading: c = !1, skeletonRows: l = 5, empty: u = "No records found.", emptyFiltered: d, sourceCount: f, rowActions: p, rowActionsLabel: m, pagination: h, ariaLabel: g, className: _ = "", selectable: v = !1, selectedIds: y, onToggleRow: b, onToggleAll: x, ...S }) {
|
|
3141
3270
|
T("AppDataTable", S);
|
|
3142
3271
|
let C = Math.max(1, r.length + +!!p + +!!v), w = v && i ? i.reduce((e, t) => e + +!!y?.has(a(t)), 0) : 0, E = v && i && i.length > 0 && w === i.length, D = w > 0 && !E, k = (e) => {
|
|
3143
3272
|
e && (e.indeterminate = D);
|
|
@@ -3159,18 +3288,18 @@ function Ke({ columns: r, rows: i, rowKey: a = (e) => e.id, sort: o, onSort: s,
|
|
|
3159
3288
|
"aria-label": "Select all rows"
|
|
3160
3289
|
})
|
|
3161
3290
|
}),
|
|
3162
|
-
r.map((e) => {
|
|
3163
|
-
let
|
|
3291
|
+
r.map((e, r) => {
|
|
3292
|
+
let i = !!(e.sortable && s), a = o && o.key === e.key;
|
|
3164
3293
|
return /* @__PURE__ */ n("th", {
|
|
3165
|
-
className: (
|
|
3294
|
+
className: (i ? "sortable " : "") + (r === 0 ? "lx-name-cell " : "") + qe(e.align),
|
|
3166
3295
|
style: e.width ? { width: e.width } : void 0,
|
|
3167
|
-
tabIndex:
|
|
3168
|
-
"aria-sort":
|
|
3169
|
-
onClick:
|
|
3170
|
-
onKeyDown:
|
|
3296
|
+
tabIndex: i ? 0 : void 0,
|
|
3297
|
+
"aria-sort": a ? o.dir === "asc" ? "ascending" : "descending" : i ? "none" : void 0,
|
|
3298
|
+
onClick: i ? () => s(e.key) : void 0,
|
|
3299
|
+
onKeyDown: i ? (t) => {
|
|
3171
3300
|
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), s(e.key));
|
|
3172
3301
|
} : void 0,
|
|
3173
|
-
children: [e.label,
|
|
3302
|
+
children: [e.label, i && /* @__PURE__ */ t("span", {
|
|
3174
3303
|
className: "sort-icon",
|
|
3175
3304
|
children: /* @__PURE__ */ t(O, {
|
|
3176
3305
|
name: "chevrons-up-down",
|
|
@@ -3189,7 +3318,7 @@ function Ke({ columns: r, rows: i, rowKey: a = (e) => e.id, sort: o, onSort: s,
|
|
|
3189
3318
|
children: "Actions"
|
|
3190
3319
|
})
|
|
3191
3320
|
}))
|
|
3192
|
-
] }) }), /* @__PURE__ */ t("tbody", { children: c ? /* @__PURE__ */ t(
|
|
3321
|
+
] }) }), /* @__PURE__ */ t("tbody", { children: c ? /* @__PURE__ */ t(Ue, {
|
|
3193
3322
|
rows: l,
|
|
3194
3323
|
cols: C
|
|
3195
3324
|
}) : i?.length ? i.map((e) => {
|
|
@@ -3207,9 +3336,9 @@ function Ke({ columns: r, rows: i, rowKey: a = (e) => e.id, sort: o, onSort: s,
|
|
|
3207
3336
|
"aria-label": "Select row"
|
|
3208
3337
|
})
|
|
3209
3338
|
}),
|
|
3210
|
-
r.map((n) => /* @__PURE__ */ t("td", {
|
|
3211
|
-
className:
|
|
3212
|
-
children: n.render ? n.render(e) :
|
|
3339
|
+
r.map((n, r) => /* @__PURE__ */ t("td", {
|
|
3340
|
+
className: (r === 0 ? "lx-name-cell " : "") + qe(n.align) + (n.cellClassName ? ` ${n.cellClassName}` : ""),
|
|
3341
|
+
children: n.render ? n.render(e) : Je(e[n.key])
|
|
3213
3342
|
}, n.key)),
|
|
3214
3343
|
p && /* @__PURE__ */ t("td", { children: /* @__PURE__ */ t("div", {
|
|
3215
3344
|
className: "u-row-actions",
|
|
@@ -3223,7 +3352,7 @@ function Ke({ columns: r, rows: i, rowKey: a = (e) => e.id, sort: o, onSort: s,
|
|
|
3223
3352
|
children: A
|
|
3224
3353
|
}) }) })]
|
|
3225
3354
|
})
|
|
3226
|
-
}), h && !c && h.total > 0 && /* @__PURE__ */ t(
|
|
3355
|
+
}), h && !c && h.total > 0 && /* @__PURE__ */ t(Ke, {
|
|
3227
3356
|
page: h.page,
|
|
3228
3357
|
totalPages: h.totalPages,
|
|
3229
3358
|
pageSize: h.pageSize,
|
|
@@ -3236,7 +3365,7 @@ function Ke({ columns: r, rows: i, rowKey: a = (e) => e.id, sort: o, onSort: s,
|
|
|
3236
3365
|
}
|
|
3237
3366
|
//#endregion
|
|
3238
3367
|
//#region src/components/AppDatePicker.jsx
|
|
3239
|
-
function
|
|
3368
|
+
function Xe({ value: e, onChange: r, label: i, required: s = !1, hint: l, error: u, name: d, min: f, max: p, placeholder: m = "Enter Date", disabled: h, id: g, ariaLabel: _, className: v = "", ...y }) {
|
|
3240
3369
|
T("AppDatePicker", y);
|
|
3241
3370
|
let b = c(null), x = o(), S = g || d || x;
|
|
3242
3371
|
a(() => {
|
|
@@ -3286,7 +3415,7 @@ function qe({ value: e, onChange: r, label: i, required: s = !1, hint: l, error:
|
|
|
3286
3415
|
}
|
|
3287
3416
|
//#endregion
|
|
3288
3417
|
//#region src/components/AppDropdown.jsx
|
|
3289
|
-
var
|
|
3418
|
+
var Ze = r(function({ icon: e, iconSize: n = 20, btnClassName: r = "topbar-icon-btn", label: i, align: a = "end", "aria-label": o, className: s, ...c }, l) {
|
|
3290
3419
|
return /* @__PURE__ */ t("button", {
|
|
3291
3420
|
ref: l,
|
|
3292
3421
|
type: "button",
|
|
@@ -3300,11 +3429,11 @@ var Je = r(function({ icon: e, iconSize: n = 20, btnClassName: r = "topbar-icon-
|
|
|
3300
3429
|
})
|
|
3301
3430
|
});
|
|
3302
3431
|
});
|
|
3303
|
-
function
|
|
3432
|
+
function Qe({ icon: e, iconSize: r, toggleClassName: i = "topbar-icon-btn", label: a, ariaLabel: o, align: s = "end", items: c = [], menuClassName: l = "", linkComponent: u, ...d }) {
|
|
3304
3433
|
return T("AppDropdown", d), /* @__PURE__ */ n(_, {
|
|
3305
3434
|
align: s,
|
|
3306
3435
|
children: [/* @__PURE__ */ t(_.Toggle, {
|
|
3307
|
-
as:
|
|
3436
|
+
as: Ze,
|
|
3308
3437
|
icon: e,
|
|
3309
3438
|
iconSize: r,
|
|
3310
3439
|
btnClassName: i,
|
|
@@ -3342,7 +3471,7 @@ function Ye({ icon: e, iconSize: r, toggleClassName: i = "topbar-icon-btn", labe
|
|
|
3342
3471
|
}
|
|
3343
3472
|
//#endregion
|
|
3344
3473
|
//#region src/components/AppEmptyState.jsx
|
|
3345
|
-
function
|
|
3474
|
+
function $e({ icon: e, iconSize: r = 24, size: i = "md", title: a, text: o, action: s, className: c = "", style: l, ...u }) {
|
|
3346
3475
|
return T("AppEmptyState", u), /* @__PURE__ */ n("div", {
|
|
3347
3476
|
className: [
|
|
3348
3477
|
"empty-state",
|
|
@@ -3375,7 +3504,7 @@ function Xe({ icon: e, iconSize: r = 24, size: i = "md", title: a, text: o, acti
|
|
|
3375
3504
|
}
|
|
3376
3505
|
//#endregion
|
|
3377
3506
|
//#region src/components/AppFileAttachment.jsx
|
|
3378
|
-
function
|
|
3507
|
+
function et({ label: r = "Attachment", value: i, name: s, onChange: c, accept: u = pe, maxSizeMb: d = 5, optional: f = !1, error: p, id: m, ...h }) {
|
|
3379
3508
|
T("AppFileAttachment", h);
|
|
3380
3509
|
let g = o(), _ = m || s || g, [v, y] = l(null), [b, x] = l("");
|
|
3381
3510
|
a(() => {
|
|
@@ -3388,7 +3517,7 @@ function Ze({ label: r = "Attachment", value: i, name: s, onChange: c, accept: u
|
|
|
3388
3517
|
function S(e) {
|
|
3389
3518
|
let t = e.target.files?.[0];
|
|
3390
3519
|
if (e.target.value = "", !t) return;
|
|
3391
|
-
let n =
|
|
3520
|
+
let n = ye(t, {
|
|
3392
3521
|
accept: u,
|
|
3393
3522
|
maxSizeMb: d
|
|
3394
3523
|
});
|
|
@@ -3487,22 +3616,22 @@ function Ze({ label: r = "Attachment", value: i, name: s, onChange: c, accept: u
|
|
|
3487
3616
|
}
|
|
3488
3617
|
//#endregion
|
|
3489
3618
|
//#region src/components/toast.js
|
|
3490
|
-
var
|
|
3619
|
+
var tt = /* @__PURE__ */ new Set([
|
|
3491
3620
|
"success",
|
|
3492
3621
|
"info",
|
|
3493
3622
|
"warning",
|
|
3494
3623
|
"error"
|
|
3495
3624
|
]);
|
|
3496
|
-
function
|
|
3497
|
-
let n =
|
|
3625
|
+
function nt(e, t = "success") {
|
|
3626
|
+
let n = tt.has(t) ? t : "success";
|
|
3498
3627
|
v[n](e, { toastId: `${n}:${e}` });
|
|
3499
3628
|
}
|
|
3500
|
-
function
|
|
3629
|
+
function rt(e) {
|
|
3501
3630
|
v.error(e, { toastId: `error:${e}` });
|
|
3502
3631
|
}
|
|
3503
3632
|
//#endregion
|
|
3504
3633
|
//#region src/components/AppFilePicker.jsx
|
|
3505
|
-
function
|
|
3634
|
+
function it({ label: e, value: r, name: i, onPick: s, accept: u = ".jpg,.jpeg,.png", maxSizeMb: d = 5, required: f, error: p, ...m }) {
|
|
3506
3635
|
T("AppFilePicker", m);
|
|
3507
3636
|
let [h, g] = l(null), [_, v] = l(!1), y = c(null), b = o(), x = i || b;
|
|
3508
3637
|
a(() => {
|
|
@@ -3513,11 +3642,11 @@ function tt({ label: e, value: r, name: i, onPick: s, accept: u = ".jpg,.jpeg,.p
|
|
|
3513
3642
|
g(null);
|
|
3514
3643
|
}, [r]);
|
|
3515
3644
|
let S = r?.url || h, C = (e) => {
|
|
3516
|
-
let t =
|
|
3645
|
+
let t = ye(e, {
|
|
3517
3646
|
accept: u,
|
|
3518
3647
|
maxSizeMb: d
|
|
3519
3648
|
});
|
|
3520
|
-
return t ? (
|
|
3649
|
+
return t ? (nt(t, "error"), !1) : (s(e), !0);
|
|
3521
3650
|
}, w = (e) => {
|
|
3522
3651
|
let t = e.target.files?.[0] || null;
|
|
3523
3652
|
t && (C(t) || (e.target.value = ""));
|
|
@@ -3628,7 +3757,7 @@ function tt({ label: e, value: r, name: i, onPick: s, accept: u = ".jpg,.jpeg,.p
|
|
|
3628
3757
|
}
|
|
3629
3758
|
//#endregion
|
|
3630
3759
|
//#region src/components/AppInfoList.jsx
|
|
3631
|
-
function
|
|
3760
|
+
function at({ items: r = [], className: i = "", ...a }) {
|
|
3632
3761
|
return T("AppInfoList", a), /* @__PURE__ */ t("div", {
|
|
3633
3762
|
className: `info-list${i ? ` ${i}` : ""}`,
|
|
3634
3763
|
children: r.map((r, i) => {
|
|
@@ -3661,7 +3790,7 @@ function nt({ items: r = [], className: i = "", ...a }) {
|
|
|
3661
3790
|
}
|
|
3662
3791
|
//#endregion
|
|
3663
3792
|
//#region src/components/AppKpiTile.jsx
|
|
3664
|
-
function
|
|
3793
|
+
function ot({ label: e, value: r, icon: i, delta: a, deltaDirection: o = "flat", inline: s = !1, className: c = "", ...l }) {
|
|
3665
3794
|
T("AppKpiTile", l);
|
|
3666
3795
|
let u = `kpi${s ? " kpi-inline" : ""}${c ? ` ${c}` : ""}`, d = o === "up" ? "arrow-up" : o === "down" ? "arrow-down" : null;
|
|
3667
3796
|
return /* @__PURE__ */ n("div", {
|
|
@@ -3694,7 +3823,7 @@ function rt({ label: e, value: r, icon: i, delta: a, deltaDirection: o = "flat",
|
|
|
3694
3823
|
}
|
|
3695
3824
|
//#endregion
|
|
3696
3825
|
//#region src/components/AppLogoPicker.jsx
|
|
3697
|
-
function
|
|
3826
|
+
function st({ value: r, fallback: i, name: a, onPick: o, loading: s = !1, accept: l = "image/png,image/jpeg", maxSizeMb: u = 5, overlayIcon: d = "image", overlayLabel: f = "Update photo", ariaLabel: p = "Upload photo", ...m }) {
|
|
3698
3827
|
T("AppLogoPicker", m);
|
|
3699
3828
|
let h = c(null);
|
|
3700
3829
|
return /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("button", {
|
|
@@ -3740,12 +3869,12 @@ function it({ value: r, fallback: i, name: a, onPick: o, loading: s = !1, accept
|
|
|
3740
3869
|
onChange: (e) => {
|
|
3741
3870
|
let t = e.target.files?.[0];
|
|
3742
3871
|
if (e.target.value = "", !t) return;
|
|
3743
|
-
let n =
|
|
3872
|
+
let n = ye(t, {
|
|
3744
3873
|
accept: l,
|
|
3745
3874
|
maxSizeMb: u
|
|
3746
3875
|
});
|
|
3747
3876
|
if (n) {
|
|
3748
|
-
|
|
3877
|
+
nt(n, "error");
|
|
3749
3878
|
return;
|
|
3750
3879
|
}
|
|
3751
3880
|
o(t);
|
|
@@ -3755,7 +3884,7 @@ function it({ value: r, fallback: i, name: a, onPick: o, loading: s = !1, accept
|
|
|
3755
3884
|
}
|
|
3756
3885
|
//#endregion
|
|
3757
3886
|
//#region src/components/AppMultiSelect.jsx
|
|
3758
|
-
function
|
|
3887
|
+
function ct({ values: e, onChange: r, options: i, placeholder: o = "Select…", searchPlaceholder: s = "Search…", searchable: l = !0, disabled: u = !1, name: d, label: f, error: p, hint: m, required: h = !1, fieldClassName: g = "", ..._ }) {
|
|
3759
3888
|
T("AppMultiSelect", _);
|
|
3760
3889
|
let v = c(null);
|
|
3761
3890
|
return a(() => {
|
|
@@ -3801,8 +3930,61 @@ function at({ values: e, onChange: r, options: i, placeholder: o = "Select…",
|
|
|
3801
3930
|
});
|
|
3802
3931
|
}
|
|
3803
3932
|
//#endregion
|
|
3933
|
+
//#region src/components/AppOtpInput.jsx
|
|
3934
|
+
var lt = r(function({ value: e, onChange: r, onComplete: i, length: s = 6, mode: l = "numeric", label: u, required: d = !1, hint: f, error: p, disabled: m = !1, name: h, id: g, className: _ = "", ...v }, y) {
|
|
3935
|
+
T("AppOtpInput", v);
|
|
3936
|
+
let b = c(null), x = o(), S = g || h || x, C = (e) => {
|
|
3937
|
+
b.current = e, typeof y == "function" ? y(e) : y && (y.current = e);
|
|
3938
|
+
};
|
|
3939
|
+
a(() => {
|
|
3940
|
+
let t = b.current;
|
|
3941
|
+
t && String(t.value ?? "") !== String(e ?? "") && (t.value = e ?? "");
|
|
3942
|
+
}, [e]), a(() => {
|
|
3943
|
+
let e = b.current;
|
|
3944
|
+
if (!e) return;
|
|
3945
|
+
let t = () => r?.(e.value), n = (e) => i?.(e.detail);
|
|
3946
|
+
return e.addEventListener("change", t), e.addEventListener("complete", n), () => {
|
|
3947
|
+
e.removeEventListener("change", t), e.removeEventListener("complete", n);
|
|
3948
|
+
};
|
|
3949
|
+
}, [r, i]);
|
|
3950
|
+
let w = /* @__PURE__ */ t("wui-otp", {
|
|
3951
|
+
"aria-label": typeof u == "string" ? u : void 0,
|
|
3952
|
+
ref: C,
|
|
3953
|
+
id: S,
|
|
3954
|
+
name: h,
|
|
3955
|
+
length: String(s),
|
|
3956
|
+
mode: l,
|
|
3957
|
+
"aria-invalid": p ? "true" : void 0,
|
|
3958
|
+
disabled: m ? "" : void 0,
|
|
3959
|
+
required: d ? "" : void 0
|
|
3960
|
+
});
|
|
3961
|
+
return !u && !p && !f ? w : /* @__PURE__ */ n("div", {
|
|
3962
|
+
className: `field${_ ? ` ${_}` : ""}`,
|
|
3963
|
+
children: [
|
|
3964
|
+
u && /* @__PURE__ */ n("label", {
|
|
3965
|
+
className: "label",
|
|
3966
|
+
htmlFor: S,
|
|
3967
|
+
children: [u, d && /* @__PURE__ */ t("span", {
|
|
3968
|
+
className: "required",
|
|
3969
|
+
"aria-hidden": "true",
|
|
3970
|
+
children: "*"
|
|
3971
|
+
})]
|
|
3972
|
+
}),
|
|
3973
|
+
w,
|
|
3974
|
+
p && /* @__PURE__ */ t("div", {
|
|
3975
|
+
className: "field-error",
|
|
3976
|
+
children: p
|
|
3977
|
+
}),
|
|
3978
|
+
!p && f && /* @__PURE__ */ t("div", {
|
|
3979
|
+
className: "field-hint",
|
|
3980
|
+
children: f
|
|
3981
|
+
})
|
|
3982
|
+
]
|
|
3983
|
+
});
|
|
3984
|
+
});
|
|
3985
|
+
//#endregion
|
|
3804
3986
|
//#region src/components/AppPageHeader.jsx
|
|
3805
|
-
function
|
|
3987
|
+
function ut({ title: e, subtitle: r, actions: i, className: a = "", ...o }) {
|
|
3806
3988
|
return T("AppPageHeader", o), /* @__PURE__ */ n("div", {
|
|
3807
3989
|
className: `page-header${i ? " d-flex align-items-end justify-content-between" : ""}${a ? ` ${a}` : ""}`,
|
|
3808
3990
|
children: [/* @__PURE__ */ n("div", { children: [/* @__PURE__ */ t("div", {
|
|
@@ -3819,7 +4001,7 @@ function ot({ title: e, subtitle: r, actions: i, className: a = "", ...o }) {
|
|
|
3819
4001
|
}
|
|
3820
4002
|
//#endregion
|
|
3821
4003
|
//#region src/components/AppPhoneNumberInput.jsx
|
|
3822
|
-
function
|
|
4004
|
+
function dt({ value: e, onChange: r, country: i, disabled: o = !1, name: s, label: l = "Phone number", placeholder: u = "Enter phone number", required: d = !1, error: f, fieldClassName: p = "", ...m }) {
|
|
3823
4005
|
T("AppPhoneNumberInput", m);
|
|
3824
4006
|
let h = c(null);
|
|
3825
4007
|
return a(() => {
|
|
@@ -3854,7 +4036,7 @@ function st({ value: e, onChange: r, country: i, disabled: o = !1, name: s, labe
|
|
|
3854
4036
|
}
|
|
3855
4037
|
//#endregion
|
|
3856
4038
|
//#region src/components/AppPricingCard.jsx
|
|
3857
|
-
function
|
|
4039
|
+
function ft({ name: e, price: r, unit: i, tagline: a, features: o = [], cta: s, featured: c = !1, current: l = !1, badge: u = "Most popular", className: d = "", ...f }) {
|
|
3858
4040
|
return T("AppPricingCard", f), /* @__PURE__ */ n("div", {
|
|
3859
4041
|
className: [
|
|
3860
4042
|
"plan-card",
|
|
@@ -3907,7 +4089,7 @@ function ct({ name: e, price: r, unit: i, tagline: a, features: o = [], cta: s,
|
|
|
3907
4089
|
}
|
|
3908
4090
|
//#endregion
|
|
3909
4091
|
//#region src/components/AppRadio.jsx
|
|
3910
|
-
var
|
|
4092
|
+
var pt = r(function({ label: e, id: r, name: i, className: a = "", ...s }, c) {
|
|
3911
4093
|
T("AppRadio", s);
|
|
3912
4094
|
let l = o(), u = r || i || l;
|
|
3913
4095
|
return /* @__PURE__ */ n("div", {
|
|
@@ -3928,7 +4110,7 @@ var lt = r(function({ label: e, id: r, name: i, className: a = "", ...s }, c) {
|
|
|
3928
4110
|
});
|
|
3929
4111
|
//#endregion
|
|
3930
4112
|
//#region src/components/AppRepeater.jsx
|
|
3931
|
-
function
|
|
4113
|
+
function mt({ rows: e = [], renderRow: r, onAdd: i, onRemove: a, addLabel: o = "Add another", removeLabel: s = "Remove row", emptyText: c, min: l = 0, max: u, numbered: d = !0, className: f = "", ...p }) {
|
|
3932
4114
|
T("AppRepeater", p);
|
|
3933
4115
|
let m = typeof u == "number" && e.length >= u, h = !!a && e.length > l;
|
|
3934
4116
|
return /* @__PURE__ */ n("div", {
|
|
@@ -3972,7 +4154,7 @@ function ut({ rows: e = [], renderRow: r, onAdd: i, onRemove: a, addLabel: o = "
|
|
|
3972
4154
|
}
|
|
3973
4155
|
//#endregion
|
|
3974
4156
|
//#region src/components/AppResourceCard.jsx
|
|
3975
|
-
function
|
|
4157
|
+
function ht({ icon: r, title: i, text: a, href: o, external: s = !1, linkComponent: c, className: l = "", ...u }) {
|
|
3976
4158
|
T("AppResourceCard", u);
|
|
3977
4159
|
let d = /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("span", {
|
|
3978
4160
|
className: "res-card-icon",
|
|
@@ -4004,7 +4186,7 @@ function dt({ icon: r, title: i, text: a, href: o, external: s = !1, linkCompone
|
|
|
4004
4186
|
}
|
|
4005
4187
|
//#endregion
|
|
4006
4188
|
//#region src/components/AppSearch.jsx
|
|
4007
|
-
function
|
|
4189
|
+
function gt({ value: e, onValueChange: r, placeholder: i, ariaLabel: a, iconSize: o = 18, className: s = "", ...c }) {
|
|
4008
4190
|
return T("AppSearch", c), /* @__PURE__ */ n("div", {
|
|
4009
4191
|
className: [
|
|
4010
4192
|
"search-wrap",
|
|
@@ -4041,7 +4223,7 @@ function ft({ value: e, onValueChange: r, placeholder: i, ariaLabel: a, iconSize
|
|
|
4041
4223
|
}
|
|
4042
4224
|
//#endregion
|
|
4043
4225
|
//#region src/components/AppSegmented.jsx
|
|
4044
|
-
function
|
|
4226
|
+
function _t({ options: e = [], value: r, onChange: i, label: a, name: s, size: c = "md", className: l = "", ...u }) {
|
|
4045
4227
|
T("AppSegmented", u);
|
|
4046
4228
|
let d = o(), f = s || d;
|
|
4047
4229
|
return /* @__PURE__ */ t("div", {
|
|
@@ -4070,66 +4252,79 @@ function pt({ options: e = [], value: r, onChange: i, label: a, name: s, size: c
|
|
|
4070
4252
|
}
|
|
4071
4253
|
//#endregion
|
|
4072
4254
|
//#region src/components/AppSelect.jsx
|
|
4073
|
-
var
|
|
4074
|
-
function
|
|
4075
|
-
T("AppSelect",
|
|
4076
|
-
let
|
|
4255
|
+
var vt = (e) => e == null ? "" : e.label ?? e.text ?? "";
|
|
4256
|
+
function yt({ value: e, onChange: r, options: i = [], placeholder: o = "Select...", searchPlaceholder: s = "Search...", searchable: l = !1, clearable: u = !1, size: d, floatingLabel: f = !1, disabled: p, label: m, required: h = !1, error: g, hint: _, help: v, helpLabel: y = "More information", id: b, name: x, className: S = "", fieldClassName: C = "", ...w }) {
|
|
4257
|
+
T("AppSelect", w);
|
|
4258
|
+
let E = c(null);
|
|
4077
4259
|
a(() => {
|
|
4078
|
-
|
|
4260
|
+
E.current && (E.current.options = i.map((e) => ({
|
|
4079
4261
|
value: e.value,
|
|
4080
|
-
label:
|
|
4262
|
+
label: vt(e)
|
|
4081
4263
|
})));
|
|
4082
4264
|
}, [i]), a(() => {
|
|
4083
|
-
let t =
|
|
4265
|
+
let t = E.current;
|
|
4084
4266
|
t && String(t.value ?? "") !== String(e ?? "") && (t.value = e ?? "");
|
|
4085
4267
|
}, [e]), a(() => {
|
|
4086
|
-
let e =
|
|
4268
|
+
let e = E.current;
|
|
4087
4269
|
if (!e) return;
|
|
4088
4270
|
let t = () => r?.(e.value);
|
|
4089
4271
|
return e.addEventListener("change", t), () => e.removeEventListener("change", t);
|
|
4090
4272
|
}, [r]);
|
|
4091
|
-
let
|
|
4092
|
-
"aria-label": typeof
|
|
4093
|
-
ref:
|
|
4094
|
-
id:
|
|
4095
|
-
name:
|
|
4096
|
-
placeholder: o,
|
|
4273
|
+
let D = /* @__PURE__ */ t("wui-select", {
|
|
4274
|
+
"aria-label": typeof m == "string" ? m : void 0,
|
|
4275
|
+
ref: E,
|
|
4276
|
+
id: b || x,
|
|
4277
|
+
name: x,
|
|
4278
|
+
placeholder: f ? " " : o,
|
|
4097
4279
|
"search-placeholder": s,
|
|
4098
4280
|
searchable: l ? "" : void 0,
|
|
4099
|
-
|
|
4100
|
-
|
|
4281
|
+
clearable: u ? "" : void 0,
|
|
4282
|
+
size: d || void 0,
|
|
4283
|
+
disabled: p ? "" : void 0,
|
|
4284
|
+
required: h ? "" : void 0
|
|
4101
4285
|
});
|
|
4102
|
-
if (!
|
|
4103
|
-
let
|
|
4286
|
+
if (!m && !g && !_) return D;
|
|
4287
|
+
let O = b || x, k = f && m;
|
|
4104
4288
|
return /* @__PURE__ */ n("div", {
|
|
4105
|
-
className:
|
|
4289
|
+
className: [
|
|
4290
|
+
"field",
|
|
4291
|
+
S,
|
|
4292
|
+
C
|
|
4293
|
+
].filter(Boolean).join(" "),
|
|
4106
4294
|
children: [
|
|
4107
|
-
|
|
4295
|
+
m && !k && /* @__PURE__ */ n("label", {
|
|
4108
4296
|
className: "label",
|
|
4109
|
-
htmlFor:
|
|
4297
|
+
htmlFor: O,
|
|
4110
4298
|
children: [
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
label:
|
|
4115
|
-
children:
|
|
4299
|
+
m,
|
|
4300
|
+
h && /* @__PURE__ */ t(X, {}),
|
|
4301
|
+
v && /* @__PURE__ */ t(Q, {
|
|
4302
|
+
label: y,
|
|
4303
|
+
children: v
|
|
4116
4304
|
})
|
|
4117
4305
|
]
|
|
4118
4306
|
}),
|
|
4119
|
-
|
|
4120
|
-
|
|
4307
|
+
k ? /* @__PURE__ */ n("div", {
|
|
4308
|
+
className: "field-float",
|
|
4309
|
+
children: [D, /* @__PURE__ */ n("label", {
|
|
4310
|
+
className: "float-label",
|
|
4311
|
+
htmlFor: O,
|
|
4312
|
+
children: [m, h && /* @__PURE__ */ t(X, {})]
|
|
4313
|
+
})]
|
|
4314
|
+
}) : D,
|
|
4315
|
+
g ? /* @__PURE__ */ t("div", {
|
|
4121
4316
|
className: "field-error",
|
|
4122
|
-
children:
|
|
4123
|
-
}) :
|
|
4317
|
+
children: g
|
|
4318
|
+
}) : _ ? /* @__PURE__ */ t("div", {
|
|
4124
4319
|
className: "field-hint",
|
|
4125
|
-
children:
|
|
4320
|
+
children: _
|
|
4126
4321
|
}) : null
|
|
4127
4322
|
]
|
|
4128
4323
|
});
|
|
4129
4324
|
}
|
|
4130
4325
|
//#endregion
|
|
4131
4326
|
//#region src/components/AppShell.jsx
|
|
4132
|
-
function
|
|
4327
|
+
function bt({ groups: e = [], brand: r, sidebarFooter: i, topbarStart: o, topbarEnd: s, footer: c, children: u, collapsed: d, onCollapsedChange: f, noSidebar: p = !1, navLabel: m = "Main navigation", linkComponent: h, className: g = "", ..._ }) {
|
|
4133
4328
|
T("AppShell", _);
|
|
4134
4329
|
let [v, y] = l(!1), [b, x] = l(!1), [S, C] = l(!1), w = d ?? v;
|
|
4135
4330
|
return a(() => {
|
|
@@ -4165,7 +4360,7 @@ function gt({ groups: e = [], brand: r, sidebarFooter: i, topbarStart: o, topbar
|
|
|
4165
4360
|
children: [e.label && /* @__PURE__ */ t("div", {
|
|
4166
4361
|
className: "app-nav-group-label",
|
|
4167
4362
|
children: e.label
|
|
4168
|
-
}), e.items.map((e) => /* @__PURE__ */ t(
|
|
4363
|
+
}), e.items.map((e) => /* @__PURE__ */ t(xt, {
|
|
4169
4364
|
item: e,
|
|
4170
4365
|
linkComponent: h,
|
|
4171
4366
|
onNavigate: () => x(!1)
|
|
@@ -4235,7 +4430,7 @@ function gt({ groups: e = [], brand: r, sidebarFooter: i, topbarStart: o, topbar
|
|
|
4235
4430
|
]
|
|
4236
4431
|
});
|
|
4237
4432
|
}
|
|
4238
|
-
function
|
|
4433
|
+
function xt({ item: r, linkComponent: i, onNavigate: a }) {
|
|
4239
4434
|
let o = `app-nav-item${r.active ? " active" : ""}`, s = /* @__PURE__ */ n(e, { children: [
|
|
4240
4435
|
r.icon && /* @__PURE__ */ t("span", {
|
|
4241
4436
|
className: "app-nav-icon",
|
|
@@ -4269,7 +4464,7 @@ function _t({ item: r, linkComponent: i, onNavigate: a }) {
|
|
|
4269
4464
|
}
|
|
4270
4465
|
//#endregion
|
|
4271
4466
|
//#region src/components/AppSidebarMenu.jsx
|
|
4272
|
-
var
|
|
4467
|
+
var St = {
|
|
4273
4468
|
left: "start",
|
|
4274
4469
|
right: "end",
|
|
4275
4470
|
start: "start",
|
|
@@ -4277,11 +4472,11 @@ var vt = {
|
|
|
4277
4472
|
top: "top",
|
|
4278
4473
|
bottom: "bottom"
|
|
4279
4474
|
};
|
|
4280
|
-
function
|
|
4475
|
+
function Ct({ show: e, onHide: r, side: i = "right", title: a, titleIcon: o, header: s, children: c, footer: l, width: u, backdrop: d = !0, scroll: f = !1, keyboard: p = !0, closeButton: m = !0, responsive: h, className: g = "", bodyClassName: _ = "", ariaLabel: v, ...b }) {
|
|
4281
4476
|
return T("AppSidebarMenu", b), /* @__PURE__ */ n(y, {
|
|
4282
4477
|
show: e,
|
|
4283
4478
|
onHide: r,
|
|
4284
|
-
placement:
|
|
4479
|
+
placement: St[i] || "end",
|
|
4285
4480
|
backdrop: d,
|
|
4286
4481
|
scroll: f,
|
|
4287
4482
|
keyboard: p,
|
|
@@ -4325,7 +4520,7 @@ function yt({ show: e, onHide: r, side: i = "right", title: a, titleIcon: o, hea
|
|
|
4325
4520
|
}
|
|
4326
4521
|
//#endregion
|
|
4327
4522
|
//#region src/components/AppSpinner.jsx
|
|
4328
|
-
function
|
|
4523
|
+
function wt({ size: e = "md", label: n = "Loading", className: r = "", ...i }) {
|
|
4329
4524
|
return T("AppSpinner", i), /* @__PURE__ */ t("span", {
|
|
4330
4525
|
className: `spinner-border${e === "sm" ? " spinner-border-sm" : ""}${r ? ` ${r}` : ""}`,
|
|
4331
4526
|
role: "status",
|
|
@@ -4334,7 +4529,7 @@ function bt({ size: e = "md", label: n = "Loading", className: r = "", ...i }) {
|
|
|
4334
4529
|
}
|
|
4335
4530
|
//#endregion
|
|
4336
4531
|
//#region src/components/AppSplash.jsx
|
|
4337
|
-
function
|
|
4532
|
+
function Tt({ logo: e, initials: r, text: i, label: a = "Loading", className: o = "", ...s }) {
|
|
4338
4533
|
return T("AppSplash", s), /* @__PURE__ */ t("div", {
|
|
4339
4534
|
className: `splash${o ? ` ${o}` : ""}`,
|
|
4340
4535
|
role: "status",
|
|
@@ -4361,7 +4556,7 @@ function xt({ logo: e, initials: r, text: i, label: a = "Loading", className: o
|
|
|
4361
4556
|
}
|
|
4362
4557
|
//#endregion
|
|
4363
4558
|
//#region src/components/AppStatusBadge.jsx
|
|
4364
|
-
function
|
|
4559
|
+
function Et({ label: e, tone: n = "neutral", className: r = "", ...i }) {
|
|
4365
4560
|
return T("AppStatusBadge", i), e == null || e === "" ? "—" : /* @__PURE__ */ t("span", {
|
|
4366
4561
|
className: `status-label ${n}${r ? ` ${r}` : ""}`,
|
|
4367
4562
|
children: e
|
|
@@ -4369,7 +4564,7 @@ function St({ label: e, tone: n = "neutral", className: r = "", ...i }) {
|
|
|
4369
4564
|
}
|
|
4370
4565
|
//#endregion
|
|
4371
4566
|
//#region src/components/AppStepper.jsx
|
|
4372
|
-
function
|
|
4567
|
+
function Dt({ steps: r = [], variant: i = "steps", label: a = "Progress", linkComponent: o, className: s = "", ...c }) {
|
|
4373
4568
|
return T("AppStepper", c), /* @__PURE__ */ t("nav", {
|
|
4374
4569
|
className: [i === "journey" ? "stepper stepper-journey" : "stepper", s].filter(Boolean).join(" "),
|
|
4375
4570
|
"aria-label": a,
|
|
@@ -4416,7 +4611,7 @@ function Ct({ steps: r = [], variant: i = "steps", label: a = "Progress", linkCo
|
|
|
4416
4611
|
}
|
|
4417
4612
|
//#endregion
|
|
4418
4613
|
//#region src/components/AppSwitch.jsx
|
|
4419
|
-
var
|
|
4614
|
+
var Ot = r(function({ label: e, id: r, name: i, className: a = "", ...s }, c) {
|
|
4420
4615
|
T("AppSwitch", s);
|
|
4421
4616
|
let l = o(), u = r || i || l;
|
|
4422
4617
|
return /* @__PURE__ */ n("div", {
|
|
@@ -4437,7 +4632,7 @@ var wt = r(function({ label: e, id: r, name: i, className: a = "", ...s }, c) {
|
|
|
4437
4632
|
});
|
|
4438
4633
|
//#endregion
|
|
4439
4634
|
//#region src/components/AppTableEmptyState.jsx
|
|
4440
|
-
function
|
|
4635
|
+
function kt({ icon: e, title: r, text: i, action: a, ...o }) {
|
|
4441
4636
|
return T("AppTableEmptyState", o), /* @__PURE__ */ n("div", {
|
|
4442
4637
|
className: "tbl-empty",
|
|
4443
4638
|
children: [
|
|
@@ -4465,7 +4660,7 @@ function Tt({ icon: e, title: r, text: i, action: a, ...o }) {
|
|
|
4465
4660
|
}
|
|
4466
4661
|
//#endregion
|
|
4467
4662
|
//#region src/components/AppTabs.jsx
|
|
4468
|
-
function
|
|
4663
|
+
function At({ tabs: e, value: r, onChange: i, variant: a = "underline", ariaLabel: o, className: s = "", ...l }) {
|
|
4469
4664
|
T("AppTabs", l);
|
|
4470
4665
|
let u = c(null);
|
|
4471
4666
|
function d(t) {
|
|
@@ -4509,7 +4704,7 @@ function Et({ tabs: e, value: r, onChange: i, variant: a = "underline", ariaLabe
|
|
|
4509
4704
|
}
|
|
4510
4705
|
//#endregion
|
|
4511
4706
|
//#region src/components/AppTextarea.jsx
|
|
4512
|
-
var
|
|
4707
|
+
var jt = r(function({ label: e, required: r = !1, error: a, hint: o, help: l, helpLabel: u = "More information", id: d, name: f, rows: p = 4, autoGrow: h = !1, className: g = "", fieldClassName: _ = "", ...v }, y) {
|
|
4513
4708
|
T("AppTextarea", v);
|
|
4514
4709
|
let b = d || f, x = [
|
|
4515
4710
|
"textarea",
|
|
@@ -4571,7 +4766,7 @@ var Dt = r(function({ label: e, required: r = !1, error: a, hint: o, help: l, he
|
|
|
4571
4766
|
});
|
|
4572
4767
|
//#endregion
|
|
4573
4768
|
//#region src/components/AppTimeline.jsx
|
|
4574
|
-
function
|
|
4769
|
+
function Mt({ items: e = [], className: r = "", ...i }) {
|
|
4575
4770
|
return T("AppTimeline", i), /* @__PURE__ */ t("ol", {
|
|
4576
4771
|
className: `timeline${r ? ` ${r}` : ""}`,
|
|
4577
4772
|
children: e.map((e, r) => /* @__PURE__ */ n("li", {
|
|
@@ -4609,4 +4804,4 @@ function Ot({ items: e = [], className: r = "", ...i }) {
|
|
|
4609
4804
|
});
|
|
4610
4805
|
}
|
|
4611
4806
|
//#endregion
|
|
4612
|
-
export { k as ActionIcon, A as AppAccordion, j as AppAlert,
|
|
4807
|
+
export { k as ActionIcon, A as AppAccordion, j as AppAlert, xe as AppAutocomplete, Ce as AppAvatar, we as AppBadge, Z as AppButton, De as AppCallout, Oe as AppCard, ke as AppCheckbox, Ae as AppChip, je as AppChoiceCard, Me as AppChoiceChip, Ne as AppColorField, Pe as AppCompareTable, ze as AppConfirmDialog, Ye as AppDataTable, Xe as AppDatePicker, Qe as AppDropdown, $e as AppEmptyState, et as AppFileAttachment, it as AppFilePicker, at as AppInfoList, Q as AppInfoTip, Fe as AppInput, ot as AppKpiTile, st as AppLogoPicker, Le as AppModal, ct as AppMultiSelect, lt as AppOtpInput, ut as AppPageHeader, dt as AppPhoneNumberInput, ft as AppPricingCard, pt as AppRadio, mt as AppRepeater, ht as AppResourceCard, gt as AppSearch, _t as AppSegmented, yt as AppSelect, We as AppSelectMini, bt as AppShell, Ct as AppSidebarMenu, Be as AppSkeleton, Ue as AppSkeletonRows, wt as AppSpinner, Tt as AppSplash, Et as AppStatusBadge, Dt as AppStepper, Ot as AppSwitch, kt as AppTableEmptyState, Ke as AppTablePagination, At as AppTabs, jt as AppTextarea, Mt as AppTimeline, O as Icon, Re as MODAL_ICONS, X as RequiredMark, rt as errorToast, D as iconNames, nt as toast };
|