@webority/ui-elements 0.7.9 → 0.8.1
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-elements.global.js +31 -31
- package/dist/ui-elements.js +137 -84
- package/package.json +1 -1
package/dist/ui-elements.js
CHANGED
|
@@ -915,6 +915,58 @@ var u = Symbol("wui.trustedHtml"), d = (e) => String(e ?? "").replace(/&/g, "&am
|
|
|
915
915
|
this._teardown();
|
|
916
916
|
}
|
|
917
917
|
}, E = class extends HTMLElement {
|
|
918
|
+
static get observedAttributes() {
|
|
919
|
+
return [
|
|
920
|
+
"static",
|
|
921
|
+
"max-scale",
|
|
922
|
+
"radius"
|
|
923
|
+
];
|
|
924
|
+
}
|
|
925
|
+
constructor() {
|
|
926
|
+
super(), this._pointerMoveListener = null, this._pointerLeaveListener = null, this._frame = 0, this._pointerX = 0;
|
|
927
|
+
}
|
|
928
|
+
connectedCallback() {
|
|
929
|
+
this._wire();
|
|
930
|
+
}
|
|
931
|
+
disconnectedCallback() {
|
|
932
|
+
this._teardown();
|
|
933
|
+
}
|
|
934
|
+
attributeChangedCallback(e, t, n) {
|
|
935
|
+
e === "static" && this.isConnected && this._wire();
|
|
936
|
+
}
|
|
937
|
+
_maxScale() {
|
|
938
|
+
return D(this.getAttribute("max-scale"), 1.6);
|
|
939
|
+
}
|
|
940
|
+
_radius() {
|
|
941
|
+
return D(this.getAttribute("radius"), 100);
|
|
942
|
+
}
|
|
943
|
+
_magnifyEnabled() {
|
|
944
|
+
return !(this.hasAttribute("static") || typeof matchMedia == "function" && (matchMedia("(pointer: coarse)").matches || matchMedia("(prefers-reduced-motion: reduce)").matches));
|
|
945
|
+
}
|
|
946
|
+
_applyMagnification() {
|
|
947
|
+
this._frame = 0;
|
|
948
|
+
let e = this._maxScale(), t = this._radius();
|
|
949
|
+
for (let n of this.querySelectorAll(".dock-item")) {
|
|
950
|
+
let r = n.getBoundingClientRect(), i = Math.abs(this._pointerX - (r.left + r.width / 2)), a = Math.max(0, 1 - i / t), o = 1 + (e - 1) * a;
|
|
951
|
+
n.style.setProperty("--wui-dock-mag", o.toFixed(3));
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
_resetMagnification() {
|
|
955
|
+
this._frame &&= (cancelAnimationFrame(this._frame), 0);
|
|
956
|
+
for (let e of this.querySelectorAll(".dock-item")) e.style.removeProperty("--wui-dock-mag");
|
|
957
|
+
}
|
|
958
|
+
_wire() {
|
|
959
|
+
this._teardown(), this._magnifyEnabled() && (this._pointerMoveListener = (e) => {
|
|
960
|
+
this._pointerX = e.clientX, this._frame ||= requestAnimationFrame(() => this._applyMagnification());
|
|
961
|
+
}, this._pointerLeaveListener = () => this._resetMagnification(), this.addEventListener("pointermove", this._pointerMoveListener), this.addEventListener("pointerleave", this._pointerLeaveListener));
|
|
962
|
+
}
|
|
963
|
+
_teardown() {
|
|
964
|
+
this._pointerMoveListener &&= (this.removeEventListener("pointermove", this._pointerMoveListener), null), this._pointerLeaveListener &&= (this.removeEventListener("pointerleave", this._pointerLeaveListener), null), this._resetMagnification();
|
|
965
|
+
}
|
|
966
|
+
}, D = (e, t) => {
|
|
967
|
+
let n = Number.parseFloat(e);
|
|
968
|
+
return Number.isFinite(n) ? n : t;
|
|
969
|
+
}, te = class extends HTMLElement {
|
|
918
970
|
static formAssociated = !0;
|
|
919
971
|
_accessibleName() {
|
|
920
972
|
return this.getAttribute("aria-label") || this.getAttribute("placeholder") || "Select";
|
|
@@ -1005,13 +1057,13 @@ var u = Symbol("wui.trustedHtml"), d = (e) => String(e ?? "").replace(/&/g, "&am
|
|
|
1005
1057
|
let a = `${this.id}-listbox`;
|
|
1006
1058
|
this._listboxId = a, this.innerHTML = `
|
|
1007
1059
|
<div class="search-select${i}">
|
|
1008
|
-
<div class="input search-select-control search-select-multi" role="combobox" aria-haspopup="listbox" aria-expanded="false" aria-controls="${
|
|
1009
|
-
${n ? `<i class="bi bi-${
|
|
1060
|
+
<div class="input search-select-control search-select-multi" role="combobox" aria-haspopup="listbox" aria-expanded="false" aria-controls="${O(a)}" aria-label="${O(this._accessibleName())}"${this.hasAttribute("disabled") ? " aria-disabled=\"true\"" : " tabindex=\"0\""}>
|
|
1061
|
+
${n ? `<i class="bi bi-${O(n)} search-select-icon" aria-hidden="true"></i>` : ""}
|
|
1010
1062
|
<div class="ms-chips" data-chips></div>
|
|
1011
1063
|
<i class="bi bi-chevron-down search-select-caret" aria-hidden="true"></i>
|
|
1012
1064
|
</div>
|
|
1013
|
-
<div class="search-select-menu search-select-menu-fixed" role="listbox" id="${
|
|
1014
|
-
${e ? `<div class="search-select-search"><i class="bi bi-search" aria-hidden="true"></i><input class="search-select-input" placeholder="${
|
|
1065
|
+
<div class="search-select-menu search-select-menu-fixed" role="listbox" id="${O(a)}" aria-multiselectable="true" tabindex="-1" hidden>
|
|
1066
|
+
${e ? `<div class="search-select-search"><i class="bi bi-search" aria-hidden="true"></i><input class="search-select-input" placeholder="${O(t)}" 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>` : ""}
|
|
1015
1067
|
<div class="search-select-options"></div>
|
|
1016
1068
|
<div class="search-select-empty" hidden>No matches</div>
|
|
1017
1069
|
</div>
|
|
@@ -1025,7 +1077,7 @@ var u = Symbol("wui.trustedHtml"), d = (e) => String(e ?? "").replace(/&/g, "&am
|
|
|
1025
1077
|
e.innerHTML = `<span class="search-select-placeholder">${d(t)}</span>`;
|
|
1026
1078
|
return;
|
|
1027
1079
|
}
|
|
1028
|
-
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="${
|
|
1080
|
+
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="${O(e)}" aria-label="Remove ${O(k(this._labelFor(e)))}"><i class="bi bi-x" aria-hidden="true"></i></button></span>`).join(""), this._collapseChips();
|
|
1029
1081
|
}
|
|
1030
1082
|
_collapseChips() {
|
|
1031
1083
|
let e = this.querySelector("[data-chips]");
|
|
@@ -1049,11 +1101,11 @@ var u = Symbol("wui.trustedHtml"), d = (e) => String(e ?? "").replace(/&/g, "&am
|
|
|
1049
1101
|
let t = this.querySelector(".search-select-options"), n = this.querySelector(".search-select-empty");
|
|
1050
1102
|
if (!t) return;
|
|
1051
1103
|
let r = (e || "").trim().toLowerCase(), i = this._readOptions();
|
|
1052
|
-
r && (i = i.filter((e) =>
|
|
1104
|
+
r && (i = i.filter((e) => k(e.label).toLowerCase().includes(r)));
|
|
1053
1105
|
let a = this._listboxId || `${this.id || "wui-multiselect"}-listbox`;
|
|
1054
1106
|
t.innerHTML = i.map((e, t) => {
|
|
1055
1107
|
let n = this._values.includes(String(e.value));
|
|
1056
|
-
return `<button type="button" role="option" id="${
|
|
1108
|
+
return `<button type="button" role="option" id="${O(`${a}-opt-${t}`)}" class="search-select-option${n ? " selected" : ""}" data-value="${O(e.value)}" aria-selected="${n}"><span class="ms-opt-label">${p(e)}</span><span class="ms-check"><i class="bi bi-check" aria-hidden="true"></i></span></button>`;
|
|
1057
1109
|
}).join(""), n && (n.hidden = i.length > 0), this._active = -1, this.querySelector(".search-select-control")?.removeAttribute("aria-activedescendant");
|
|
1058
1110
|
}
|
|
1059
1111
|
_wire() {
|
|
@@ -1133,7 +1185,7 @@ var u = Symbol("wui.trustedHtml"), d = (e) => String(e ?? "").replace(/&/g, "&am
|
|
|
1133
1185
|
disconnectedCallback() {
|
|
1134
1186
|
this._teardown(), this._ro?.disconnect(), this._ro = null;
|
|
1135
1187
|
}
|
|
1136
|
-
},
|
|
1188
|
+
}, O = (e) => String(e ?? "").replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<"), k = (e) => String(e ?? "").replace(/<[^>]*>/g, ""), ne = /[^0-9]/g, re = /[^0-9a-zA-Z]/g, ie = class extends HTMLElement {
|
|
1137
1189
|
static formAssociated = !0;
|
|
1138
1190
|
static get observedAttributes() {
|
|
1139
1191
|
return [
|
|
@@ -1164,7 +1216,7 @@ var u = Symbol("wui.trustedHtml"), d = (e) => String(e ?? "").replace(/&/g, "&am
|
|
|
1164
1216
|
this._value = this._clean(e), c(this, this._value), this._paint();
|
|
1165
1217
|
}
|
|
1166
1218
|
_clean(e) {
|
|
1167
|
-
return (e == null ? "" : String(e)).replace(this.mode === "alphanumeric" ?
|
|
1219
|
+
return (e == null ? "" : String(e)).replace(this.mode === "alphanumeric" ? re : ne, "").slice(0, this.length);
|
|
1168
1220
|
}
|
|
1169
1221
|
constructor() {
|
|
1170
1222
|
super();
|
|
@@ -1244,7 +1296,7 @@ var u = Symbol("wui.trustedHtml"), d = (e) => String(e ?? "").replace(/&/g, "&am
|
|
|
1244
1296
|
disconnectedCallback() {
|
|
1245
1297
|
this._onSelectionChange && document.removeEventListener("selectionchange", this._onSelectionChange);
|
|
1246
1298
|
}
|
|
1247
|
-
},
|
|
1299
|
+
}, ae = [
|
|
1248
1300
|
[
|
|
1249
1301
|
"AF",
|
|
1250
1302
|
"Afghanistan",
|
|
@@ -2470,12 +2522,12 @@ var u = Symbol("wui.trustedHtml"), d = (e) => String(e ?? "").replace(/&/g, "&am
|
|
|
2470
2522
|
"Zimbabwe",
|
|
2471
2523
|
"263"
|
|
2472
2524
|
]
|
|
2473
|
-
], A = (e) => (
|
|
2525
|
+
], A = (e) => (ae.find((t) => t[0] === e) || [
|
|
2474
2526
|
"",
|
|
2475
2527
|
"",
|
|
2476
2528
|
""
|
|
2477
2529
|
])[2], j = (e) => `wui-flag wui-flag-${String(e).toLowerCase()}`, M = null, N = null;
|
|
2478
|
-
function
|
|
2530
|
+
function oe() {
|
|
2479
2531
|
return M ? Promise.resolve(M) : (N ||= Promise.all([import("./libphonenumber-js-BcNT8oq0.js"), import("./examples.mobile.json-BMXTGiGC.js")]).then(([e, t]) => (M = {
|
|
2480
2532
|
AsYouType: e.AsYouType,
|
|
2481
2533
|
getExampleNumber: e.getExampleNumber,
|
|
@@ -2499,7 +2551,7 @@ function F(e) {
|
|
|
2499
2551
|
return null;
|
|
2500
2552
|
}
|
|
2501
2553
|
}
|
|
2502
|
-
function
|
|
2554
|
+
function I(e) {
|
|
2503
2555
|
if (!M || !e) return null;
|
|
2504
2556
|
try {
|
|
2505
2557
|
return M.isValidPhoneNumber(e);
|
|
@@ -2507,7 +2559,7 @@ function ae(e) {
|
|
|
2507
2559
|
return null;
|
|
2508
2560
|
}
|
|
2509
2561
|
}
|
|
2510
|
-
function
|
|
2562
|
+
function se(e) {
|
|
2511
2563
|
if (!M) return null;
|
|
2512
2564
|
try {
|
|
2513
2565
|
let t = M.getExampleNumber(e, M.examples);
|
|
@@ -2516,7 +2568,7 @@ function oe(e) {
|
|
|
2516
2568
|
return null;
|
|
2517
2569
|
}
|
|
2518
2570
|
}
|
|
2519
|
-
function
|
|
2571
|
+
function L(e) {
|
|
2520
2572
|
if (!M || !e?.trim().startsWith("+")) return null;
|
|
2521
2573
|
try {
|
|
2522
2574
|
let t = new M.AsYouType();
|
|
@@ -2530,7 +2582,7 @@ function I(e) {
|
|
|
2530
2582
|
return null;
|
|
2531
2583
|
}
|
|
2532
2584
|
}
|
|
2533
|
-
var
|
|
2585
|
+
var R = class extends HTMLElement {
|
|
2534
2586
|
static formAssociated = !0;
|
|
2535
2587
|
static get observedAttributes() {
|
|
2536
2588
|
return [
|
|
@@ -2573,7 +2625,7 @@ var L = class extends HTMLElement {
|
|
|
2573
2625
|
return this._national ? `+${A(this._country)}${this._national}` : "";
|
|
2574
2626
|
}
|
|
2575
2627
|
set value(e) {
|
|
2576
|
-
let t = String(e ?? "").trim(), n =
|
|
2628
|
+
let t = String(e ?? "").trim(), n = L(t);
|
|
2577
2629
|
if (n) this._country = n.country, this._national = n.national.replace(/[^0-9]/g, "");
|
|
2578
2630
|
else if (t.startsWith("+")) {
|
|
2579
2631
|
let e = t.replace(/[^0-9]/g, ""), n = String(A(this._country));
|
|
@@ -2596,21 +2648,21 @@ var L = class extends HTMLElement {
|
|
|
2596
2648
|
this.id ||= `wui-phone-${Math.random().toString(36).slice(2, 9)}`;
|
|
2597
2649
|
let t = `${this.id}-listbox`;
|
|
2598
2650
|
this._listboxId = t;
|
|
2599
|
-
let n =
|
|
2651
|
+
let n = ae.map(([e, n, r], i) => `<button type="button" role="option" id="${z(`${t}-opt-${i}`)}" class="country-dropdown-item${e === this._country ? " selected" : ""}" data-iso="${e}" aria-selected="${e === this._country}"><span class="${j(e)}" aria-hidden="true"></span><span class="country-name-text">${n}<span class="country-code-text">+${r}</span></span></button>`).join("");
|
|
2600
2652
|
this.innerHTML = `
|
|
2601
2653
|
<div class="phone-input-wrap">
|
|
2602
2654
|
<div class="phone-country-adornment">
|
|
2603
|
-
<button type="button" class="country-toggle" aria-haspopup="listbox" aria-expanded="false" aria-controls="${
|
|
2655
|
+
<button type="button" class="country-toggle" aria-haspopup="listbox" aria-expanded="false" aria-controls="${z(t)}"${this.hasAttribute("disabled") ? " disabled" : ""}>
|
|
2604
2656
|
<span class="${j(this._country)}" data-flag aria-hidden="true"></span>
|
|
2605
2657
|
<i class="bi bi-chevron-down phone-chevron" aria-hidden="true"></i>
|
|
2606
2658
|
<span class="phone-dial" data-dial>+${A(this._country)}</span>
|
|
2607
2659
|
</button>
|
|
2608
|
-
<div class="country-dropdown-menu" role="listbox" id="${
|
|
2609
|
-
<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" aria-controls="${
|
|
2660
|
+
<div class="country-dropdown-menu" role="listbox" id="${z(t)}" tabindex="-1" hidden>
|
|
2661
|
+
<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" aria-controls="${z(t)}" aria-autocomplete="list" /></div>
|
|
2610
2662
|
<div class="country-list-scroll">${n}<div class="country-empty" hidden>No countries found</div></div>
|
|
2611
2663
|
</div>
|
|
2612
2664
|
</div>
|
|
2613
|
-
<input type="tel" class="input" placeholder="${
|
|
2665
|
+
<input type="tel" class="input" placeholder="${z(e)}" value="${z(P(this._country, this._national))}"${this.getAttribute("aria-label") ? ` aria-label="${z(this.getAttribute("aria-label"))}"` : ""}${this.getAttribute("aria-describedby") ? ` aria-describedby="${z(this.getAttribute("aria-describedby"))}"` : ""}${this.hasAttribute("required") ? " required aria-required=\"true\"" : ""}${this.hasAttribute("disabled") ? " disabled" : ""} />
|
|
2614
2666
|
</div>
|
|
2615
2667
|
<div class="field-error" data-phone-error hidden></div>`, this._rendered = !0, c(this, this.value), this._wire();
|
|
2616
2668
|
}
|
|
@@ -2688,14 +2740,14 @@ var L = class extends HTMLElement {
|
|
|
2688
2740
|
};
|
|
2689
2741
|
l.addEventListener("input", (e) => {
|
|
2690
2742
|
e.stopPropagation();
|
|
2691
|
-
let t = l.value.replace(/[^0-9]/g, ""), n =
|
|
2743
|
+
let t = l.value.replace(/[^0-9]/g, ""), n = se(this._country);
|
|
2692
2744
|
n && t.length > n && (t = t.slice(0, n)), this._national = t;
|
|
2693
2745
|
let r = P(this._country, this._national);
|
|
2694
|
-
l.value !== r && (l.value = r), this._syncMirror(), this._emitInput(), l.classList.contains("is-invalid") && (!this._national ||
|
|
2746
|
+
l.value !== r && (l.value = r), this._syncMirror(), this._emitInput(), l.classList.contains("is-invalid") && (!this._national || I(this.value) === !0) && x(!1);
|
|
2695
2747
|
}), l.addEventListener("change", (e) => e.stopPropagation()), l.addEventListener("blur", () => {
|
|
2696
|
-
x(this._national.length > 0 &&
|
|
2748
|
+
x(this._national.length > 0 && I(this.value) === !1), this.value !== this._committedValue && this._emitChange();
|
|
2697
2749
|
}), l.addEventListener("paste", (e) => {
|
|
2698
|
-
let t =
|
|
2750
|
+
let t = L(e.clipboardData?.getData("text"));
|
|
2699
2751
|
t && (e.preventDefault(), this._national = t.national.replace(/[^0-9]/g, ""), t.country === this._country ? l.value = P(this._country, this._national) : this.setAttribute("country", t.country), this._syncMirror(), this._emitInput(), this._emitChange(), this.querySelector("input[type=tel]")?.focus());
|
|
2700
2752
|
}), this._bindGlobal = () => {
|
|
2701
2753
|
this._teardownGlobals?.(), this._onDocClick = (e) => {
|
|
@@ -2705,7 +2757,7 @@ var L = class extends HTMLElement {
|
|
|
2705
2757
|
});
|
|
2706
2758
|
}, this._teardownGlobals = () => {
|
|
2707
2759
|
this._onDocClick &&= (document.removeEventListener("click", this._onDocClick), null), o(this);
|
|
2708
|
-
}, this._bindGlobal(),
|
|
2760
|
+
}, this._bindGlobal(), oe().then((e) => {
|
|
2709
2761
|
if (!(!e || !l.isConnected) && (this._national && (l.value = P(this._country, this._national)), !this.getAttribute("placeholder"))) {
|
|
2710
2762
|
let e = F(this._country);
|
|
2711
2763
|
e && (l.placeholder = e);
|
|
@@ -2718,7 +2770,7 @@ var L = class extends HTMLElement {
|
|
|
2718
2770
|
disconnectedCallback() {
|
|
2719
2771
|
this._teardown();
|
|
2720
2772
|
}
|
|
2721
|
-
},
|
|
2773
|
+
}, z = (e) => String(e ?? "").replace(/"/g, """).replace(/</g, "<"), B = class extends HTMLElement {
|
|
2722
2774
|
static formAssociated = !0;
|
|
2723
2775
|
static get observedAttributes() {
|
|
2724
2776
|
return [
|
|
@@ -2798,19 +2850,19 @@ var L = class extends HTMLElement {
|
|
|
2798
2850
|
this._listboxId = f;
|
|
2799
2851
|
let m = e.map((e, t) => {
|
|
2800
2852
|
let n = String(e.value) === String(this._value);
|
|
2801
|
-
return `<button type="button" role="option" id="${
|
|
2853
|
+
return `<button type="button" role="option" id="${V(`${f}-opt-${t}`)}" class="search-select-option${n ? " selected" : ""}" data-value="${V(e.value)}" aria-selected="${n}">${p(e)}</button>`;
|
|
2802
2854
|
}).join("");
|
|
2803
2855
|
this.innerHTML = `
|
|
2804
2856
|
<div class="search-select${this.hasAttribute("compact") ? " search-select-compact" : ""}${i}">
|
|
2805
|
-
<button type="button" role="combobox" class="input search-select-control" aria-haspopup="listbox" aria-expanded="false" aria-controls="${
|
|
2806
|
-
${a ? `<i class="bi bi-${
|
|
2857
|
+
<button type="button" role="combobox" class="input search-select-control" aria-haspopup="listbox" aria-expanded="false" aria-controls="${V(f)}" aria-label="${V(this._accessibleName())}"${this.hasAttribute("disabled") ? " disabled" : ""}>
|
|
2858
|
+
${a ? `<i class="bi bi-${V(a)} search-select-icon" aria-hidden="true"></i>` : ""}
|
|
2807
2859
|
${o ? `<span class="search-select-prefix">${d(o)}</span>` : ""}
|
|
2808
2860
|
<span class="${u ? "" : "search-select-placeholder"}" data-label>${u ? p(u) : d(s)}</span>
|
|
2809
2861
|
${n ? "<span class=\"search-select-reset\" role=\"button\" aria-label=\"Clear selection\" hidden><i class=\"bi bi-x-lg\" aria-hidden=\"true\"></i></span>" : ""}
|
|
2810
2862
|
<i class="bi bi-chevron-down search-select-caret" aria-hidden="true"></i>
|
|
2811
2863
|
</button>
|
|
2812
|
-
<div class="search-select-menu search-select-menu-fixed" role="listbox" id="${
|
|
2813
|
-
${t ? `<div class="search-select-search"><i class="bi bi-search" aria-hidden="true"></i><input class="search-select-input" placeholder="${
|
|
2864
|
+
<div class="search-select-menu search-select-menu-fixed" role="listbox" id="${V(f)}" tabindex="-1" hidden>
|
|
2865
|
+
${t ? `<div class="search-select-search"><i class="bi bi-search" aria-hidden="true"></i><input class="search-select-input" placeholder="${V(l)}" 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>` : ""}
|
|
2814
2866
|
<div class="search-select-options">${m}<div class="search-select-empty" hidden>No matches</div></div>
|
|
2815
2867
|
</div>
|
|
2816
2868
|
</div>`, this._rendered = !0, c(this, this._value), this._wire(), this._syncReset();
|
|
@@ -2915,7 +2967,7 @@ var L = class extends HTMLElement {
|
|
|
2915
2967
|
disconnectedCallback() {
|
|
2916
2968
|
this._teardown();
|
|
2917
2969
|
}
|
|
2918
|
-
},
|
|
2970
|
+
}, V = (e) => String(e ?? "").replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<"), H = class extends HTMLElement {
|
|
2919
2971
|
static formAssociated = !0;
|
|
2920
2972
|
static get observedAttributes() {
|
|
2921
2973
|
return [
|
|
@@ -2955,19 +3007,19 @@ var L = class extends HTMLElement {
|
|
|
2955
3007
|
return this._value;
|
|
2956
3008
|
}
|
|
2957
3009
|
set value(e) {
|
|
2958
|
-
this._value = this._snapToStep(this._clamp(
|
|
3010
|
+
this._value = this._snapToStep(this._clamp(U(e, this._value))), this._syncValue(), this._syncMirrors();
|
|
2959
3011
|
}
|
|
2960
3012
|
get start() {
|
|
2961
3013
|
return this._start;
|
|
2962
3014
|
}
|
|
2963
3015
|
set start(e) {
|
|
2964
|
-
this._start = Math.min(this._snapToStep(this._clamp(
|
|
3016
|
+
this._start = Math.min(this._snapToStep(this._clamp(U(e, this._start))), this._end), this._syncValue(), this._syncMirrors();
|
|
2965
3017
|
}
|
|
2966
3018
|
get end() {
|
|
2967
3019
|
return this._end;
|
|
2968
3020
|
}
|
|
2969
3021
|
set end(e) {
|
|
2970
|
-
this._end = Math.max(this._snapToStep(this._clamp(
|
|
3022
|
+
this._end = Math.max(this._snapToStep(this._clamp(U(e, this._end))), this._start), this._syncValue(), this._syncMirrors();
|
|
2971
3023
|
}
|
|
2972
3024
|
attributeChangedCallback(e, t, n) {
|
|
2973
3025
|
if (e === "value" || e === "start" || e === "end" || e === "min" || e === "max" || e === "step") {
|
|
@@ -2980,19 +3032,19 @@ var L = class extends HTMLElement {
|
|
|
2980
3032
|
this._isRange() ? this._resetRange() : this._resetSingle();
|
|
2981
3033
|
}
|
|
2982
3034
|
_updateFromAttribute(e) {
|
|
2983
|
-
e === "value" ? this._value = this._snapToStep(this._clamp(
|
|
3035
|
+
e === "value" ? this._value = this._snapToStep(this._clamp(U(this.getAttribute("value"), this._value))) : e === "start" ? this._start = this._snapToStep(this._clamp(U(this.getAttribute("start"), this._start))) : e === "end" && (this._end = this._snapToStep(this._clamp(U(this.getAttribute("end"), this._end))));
|
|
2984
3036
|
}
|
|
2985
3037
|
_isRange() {
|
|
2986
3038
|
return this.hasAttribute("range");
|
|
2987
3039
|
}
|
|
2988
3040
|
_min() {
|
|
2989
|
-
return
|
|
3041
|
+
return U(this.getAttribute("min"), 0);
|
|
2990
3042
|
}
|
|
2991
3043
|
_max() {
|
|
2992
|
-
return
|
|
3044
|
+
return U(this.getAttribute("max"), 100);
|
|
2993
3045
|
}
|
|
2994
3046
|
_step() {
|
|
2995
|
-
return
|
|
3047
|
+
return U(this.getAttribute("step"), 1);
|
|
2996
3048
|
}
|
|
2997
3049
|
_clamp(e) {
|
|
2998
3050
|
return Math.max(this._min(), Math.min(e, this._max()));
|
|
@@ -3057,7 +3109,7 @@ var L = class extends HTMLElement {
|
|
|
3057
3109
|
aria-valuenow="${this._value}"
|
|
3058
3110
|
aria-valuetext="${this._formatValue(this._value)}"
|
|
3059
3111
|
${a ? "disabled" : ""}
|
|
3060
|
-
aria-label="${
|
|
3112
|
+
aria-label="${ce(this.getAttribute("aria-label") || "Value")}"
|
|
3061
3113
|
></button>
|
|
3062
3114
|
`}
|
|
3063
3115
|
${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>` : ""}
|
|
@@ -3157,10 +3209,10 @@ var L = class extends HTMLElement {
|
|
|
3157
3209
|
disconnectedCallback() {
|
|
3158
3210
|
this._teardown();
|
|
3159
3211
|
}
|
|
3160
|
-
},
|
|
3212
|
+
}, U = (e, t) => {
|
|
3161
3213
|
let n = Number.parseFloat(e);
|
|
3162
3214
|
return Number.isFinite(n) ? n : t;
|
|
3163
|
-
},
|
|
3215
|
+
}, ce = (e) => String(e ?? "").replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<"), W = class extends HTMLElement {
|
|
3164
3216
|
static formAssociated = !0;
|
|
3165
3217
|
_accessibleName() {
|
|
3166
3218
|
return this.getAttribute("aria-label") || this.getAttribute("placeholder") || "Add tags";
|
|
@@ -3224,7 +3276,7 @@ var L = class extends HTMLElement {
|
|
|
3224
3276
|
c(this, this._values.join(",")), this.innerHTML = `
|
|
3225
3277
|
<div class="search-select${t}">
|
|
3226
3278
|
<div class="input search-select-control search-select-multi"${this.hasAttribute("disabled") ? " aria-disabled=\"true\"" : ""}>
|
|
3227
|
-
<input type="text" class="ms-input" data-input aria-label="${
|
|
3279
|
+
<input type="text" class="ms-input" data-input aria-label="${G(this._accessibleName())}" placeholder="${G(this.getAttribute("placeholder") || "Add…")}" autocomplete="off"${this.hasAttribute("disabled") ? " disabled" : ""}/>
|
|
3228
3280
|
<div class="ms-chips" data-chips></div>
|
|
3229
3281
|
</div>
|
|
3230
3282
|
</div>`, this._rendered = !0, c(this, this._values.join(",")), this._renderControl(), this._wire();
|
|
@@ -3236,7 +3288,7 @@ var L = class extends HTMLElement {
|
|
|
3236
3288
|
e.innerHTML = "";
|
|
3237
3289
|
return;
|
|
3238
3290
|
}
|
|
3239
|
-
e.innerHTML = this._values.map((e) => `<span class="chip chip-sm"><span class="chip-label">${
|
|
3291
|
+
e.innerHTML = this._values.map((e) => `<span class="chip chip-sm"><span class="chip-label">${le(e)}</span><button type="button" class="chip-remove" data-remove="${G(e)}" aria-label="Remove ${G(e)}"><i class="bi bi-x" aria-hidden="true"></i></button></span>`).join("");
|
|
3240
3292
|
}
|
|
3241
3293
|
}
|
|
3242
3294
|
_wire() {
|
|
@@ -3307,18 +3359,18 @@ var L = class extends HTMLElement {
|
|
|
3307
3359
|
disconnectedCallback() {
|
|
3308
3360
|
this._teardown();
|
|
3309
3361
|
}
|
|
3310
|
-
},
|
|
3362
|
+
}, le = (e) => String(e ?? "").replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"), G = (e) => String(e ?? "").replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<"), K = (e) => String(e).padStart(2, "0"), q = (e, t) => `${K(e)}:${K(t)}`, J = (e) => {
|
|
3311
3363
|
let t = /^(\d{2}):(\d{2})$/.exec(e || "");
|
|
3312
3364
|
return t ? {
|
|
3313
3365
|
h: +t[1],
|
|
3314
3366
|
m: +t[2]
|
|
3315
3367
|
} : null;
|
|
3316
|
-
},
|
|
3368
|
+
}, Y = (e, t = "24") => {
|
|
3317
3369
|
if (!e) return "";
|
|
3318
|
-
if (t === "24") return
|
|
3370
|
+
if (t === "24") return q(e.h, e.m);
|
|
3319
3371
|
let n = e.h % 12 || 12, r = e.h >= 12 ? "PM" : "AM";
|
|
3320
|
-
return `${n}:${
|
|
3321
|
-
},
|
|
3372
|
+
return `${n}:${K(e.m)} ${r}`;
|
|
3373
|
+
}, X = class extends HTMLElement {
|
|
3322
3374
|
static formAssociated = !0;
|
|
3323
3375
|
static get observedAttributes() {
|
|
3324
3376
|
return [
|
|
@@ -3365,11 +3417,11 @@ var L = class extends HTMLElement {
|
|
|
3365
3417
|
}
|
|
3366
3418
|
render() {
|
|
3367
3419
|
this._defaultValue === void 0 && (this._defaultValue = this.getAttribute("value") || "", this._value = this._defaultValue || this._value);
|
|
3368
|
-
let e = this.getAttribute("placeholder") || "Select time", t =
|
|
3420
|
+
let e = this.getAttribute("placeholder") || "Select time", t = J(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");
|
|
3369
3421
|
this.innerHTML = `
|
|
3370
3422
|
<div class="timepicker">
|
|
3371
3423
|
<button type="button" class="input timepicker-trigger${i}${t ? " has-value" : ""}" aria-haspopup="listbox" aria-expanded="false"${this.hasAttribute("disabled") ? " disabled" : ""}${a ? ` aria-label="${d(a)}"` : ""}${o ? ` aria-describedby="${d(o)}"` : ""}>
|
|
3372
|
-
<span data-trigger-label class="${t ? "" : "timepicker-placeholder"}">${t ?
|
|
3424
|
+
<span data-trigger-label class="${t ? "" : "timepicker-placeholder"}">${t ? Y(t, n) : d(e)}</span>
|
|
3373
3425
|
<i class="bi bi-clock" aria-hidden="true"></i>
|
|
3374
3426
|
</button>
|
|
3375
3427
|
<div class="timepicker-pop" role="listbox" tabindex="-1" hidden></div>
|
|
@@ -3381,14 +3433,14 @@ var L = class extends HTMLElement {
|
|
|
3381
3433
|
_syncTrigger() {
|
|
3382
3434
|
let e = this.querySelector(".timepicker-trigger"), t = this.querySelector("[data-trigger-label]");
|
|
3383
3435
|
if (!t) return;
|
|
3384
|
-
let n =
|
|
3385
|
-
t.textContent = n ?
|
|
3436
|
+
let n = J(this._value), r = this.getAttribute("format") || "24";
|
|
3437
|
+
t.textContent = n ? Y(n, r) : this.getAttribute("placeholder") || "Select time", t.classList.toggle("timepicker-placeholder", !n), e?.classList.toggle("has-value", !!n);
|
|
3386
3438
|
}
|
|
3387
3439
|
_buildTimes() {
|
|
3388
|
-
let e = Math.max(1, parseInt(this.getAttribute("step") || "30", 10)), t = this.getAttribute("min") || "00:00", n = this.getAttribute("max") || "23:59", r =
|
|
3440
|
+
let e = Math.max(1, parseInt(this.getAttribute("step") || "30", 10)), t = this.getAttribute("min") || "00:00", n = this.getAttribute("max") || "23:59", r = J(t) || {
|
|
3389
3441
|
h: 0,
|
|
3390
3442
|
m: 0
|
|
3391
|
-
}, i =
|
|
3443
|
+
}, i = J(n) || {
|
|
3392
3444
|
h: 23,
|
|
3393
3445
|
m: 59
|
|
3394
3446
|
}, a = [], o = r.h, s = r.m;
|
|
@@ -3401,10 +3453,10 @@ var L = class extends HTMLElement {
|
|
|
3401
3453
|
_renderOptions() {
|
|
3402
3454
|
let e = this.querySelector(".timepicker-pop");
|
|
3403
3455
|
if (!e) return;
|
|
3404
|
-
let t = this.getAttribute("format") || "24", n = this._buildTimes(), r =
|
|
3456
|
+
let t = this.getAttribute("format") || "24", n = this._buildTimes(), r = J(this._value), i = this._focus, a = "";
|
|
3405
3457
|
for (let e = 0; e < n.length; e++) {
|
|
3406
|
-
let o = n[e], s =
|
|
3407
|
-
a += `<button type="button" class="timepicker-option${c ? " is-selected" : ""}" data-hm="${s}" role="option" tabindex="${i === e ? "0" : "-1"}"${c ? " aria-selected=\"true\"" : ""}>${
|
|
3458
|
+
let o = n[e], s = q(o.h, o.m), c = r && r.h === o.h && r.m === o.m;
|
|
3459
|
+
a += `<button type="button" class="timepicker-option${c ? " is-selected" : ""}" data-hm="${s}" role="option" tabindex="${i === e ? "0" : "-1"}"${c ? " aria-selected=\"true\"" : ""}>${Y(o, t)}</button>`;
|
|
3408
3460
|
}
|
|
3409
3461
|
e.innerHTML = a, this._focusActive();
|
|
3410
3462
|
}
|
|
@@ -3502,7 +3554,7 @@ var L = class extends HTMLElement {
|
|
|
3502
3554
|
disconnectedCallback() {
|
|
3503
3555
|
this._teardown();
|
|
3504
3556
|
}
|
|
3505
|
-
},
|
|
3557
|
+
}, ue = "wui-wizard-step", de = class extends HTMLElement {
|
|
3506
3558
|
static get observedAttributes() {
|
|
3507
3559
|
return [
|
|
3508
3560
|
"active",
|
|
@@ -3511,6 +3563,7 @@ var L = class extends HTMLElement {
|
|
|
3511
3563
|
"non-linear",
|
|
3512
3564
|
"hide-stepper",
|
|
3513
3565
|
"disabled",
|
|
3566
|
+
"skippable",
|
|
3514
3567
|
"label",
|
|
3515
3568
|
"back-label",
|
|
3516
3569
|
"next-label",
|
|
@@ -3535,7 +3588,7 @@ var L = class extends HTMLElement {
|
|
|
3535
3588
|
this._beforeNext = typeof e == "function" ? e : null;
|
|
3536
3589
|
}
|
|
3537
3590
|
get _steps() {
|
|
3538
|
-
return [...this.querySelectorAll(`:scope > ${
|
|
3591
|
+
return [...this.querySelectorAll(`:scope > ${ue}`)];
|
|
3539
3592
|
}
|
|
3540
3593
|
refresh() {
|
|
3541
3594
|
this._rendered && this._renderChrome();
|
|
@@ -3593,13 +3646,13 @@ var L = class extends HTMLElement {
|
|
|
3593
3646
|
let i = this.hasAttribute("non-linear");
|
|
3594
3647
|
return e.map((e, r) => {
|
|
3595
3648
|
let a = this._stepStatus(e, r), o = e.getAttribute("label") || "", s = e.getAttribute("description") || "", c = e.getAttribute("icon") || "", l = r + 1, u;
|
|
3596
|
-
u = a === "done" ? "<i class=\"bi bi-check-lg\" aria-hidden=\"true\"></i>" : a === "error" ? "<i class=\"bi bi-exclamation-triangle\" aria-hidden=\"true\"></i>" : a === "skipped" ? "<i class=\"bi bi-dash-lg\" aria-hidden=\"true\"></i>" : c ? `<i class="bi bi-${
|
|
3649
|
+
u = a === "done" ? "<i class=\"bi bi-check-lg\" aria-hidden=\"true\"></i>" : a === "error" ? "<i class=\"bi bi-exclamation-triangle\" aria-hidden=\"true\"></i>" : a === "skipped" ? "<i class=\"bi bi-dash-lg\" aria-hidden=\"true\"></i>" : c ? `<i class="bi bi-${fe(c)}" aria-hidden="true"></i>` : String(l);
|
|
3597
3650
|
let d = a === "pending" ? "step" : `step ${a}`, f = a === "active" ? " aria-current=\"step\"" : "", p = i || r < this._active, m = s ? `<span class="step-desc">${Z(s)}</span>` : "", h;
|
|
3598
3651
|
return h = t ? `<span class="step-circle">${u}</span><span class="step-text"><span class="step-index">Step ${l}</span><span class="step-label">${Z(o)}</span>${m}</span>` : n ? `<span class="step-circle">${u}</span><span class="step-index">Step ${l}</span><span class="step-label">${Z(o)}</span>${m}` : `<span class="step-circle">${u}</span><span class="step-label">${Z(o)}</span>${m}`, p ? `<button type="button" class="${d}" data-step="${r}"${f}>${h}</button>` : `<div class="${d}"${f}>${h}</div>`;
|
|
3599
3652
|
}).join("");
|
|
3600
3653
|
}
|
|
3601
3654
|
_footerHtml(e) {
|
|
3602
|
-
let t = this._active, n = e.length - 1, r = this.hasAttribute("disabled") ? " disabled" : "", i = e[t]?.hasAttribute("optional"), a = this.getAttribute("back-label") || "Back", o = this.getAttribute("next-label") || "Next", s = this.getAttribute("skip-label") || "Skip", c = this.getAttribute("finish-label") || "Finish";
|
|
3655
|
+
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";
|
|
3603
3656
|
return `${t > 0 ? `<button type="button" class="btn btn-ghost" data-nav="back"${r}>${Z(a)}</button>` : "<span></span>"}<span class="wizard-footer-actions">${i && t < n ? `<button type="button" class="btn btn-subtle" data-nav="skip"${r}>${Z(s)}</button>` : ""}${t < n ? `<button type="button" class="btn btn-primary" data-nav="next"${r}>${Z(o)}</button>` : `<button type="button" class="btn btn-primary" data-nav="finish"${r}>${Z(c)}</button>`}</span>`;
|
|
3604
3657
|
}
|
|
3605
3658
|
_wire() {
|
|
@@ -3646,7 +3699,7 @@ var L = class extends HTMLElement {
|
|
|
3646
3699
|
}
|
|
3647
3700
|
_skip() {
|
|
3648
3701
|
let e = this._active, t = this._steps;
|
|
3649
|
-
if (t[e]?.hasAttribute("optional")) {
|
|
3702
|
+
if (!(!t[e]?.hasAttribute("optional") && !this.hasAttribute("skippable"))) {
|
|
3650
3703
|
if (this._invalid.delete(e), this._skipped.add(e), this.dispatchEvent(new CustomEvent("wui-wizard:skip", { detail: { index: e } })), e >= t.length - 1) return this._finish();
|
|
3651
3704
|
this._go(e + 1, "skip");
|
|
3652
3705
|
}
|
|
@@ -3668,7 +3721,7 @@ var L = class extends HTMLElement {
|
|
|
3668
3721
|
_reflectActive(e) {
|
|
3669
3722
|
this._reflecting = !0, this.setAttribute("active", String(e)), this._reflecting = !1;
|
|
3670
3723
|
}
|
|
3671
|
-
}, Z = (e) => String(e ?? "").replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"),
|
|
3724
|
+
}, Z = (e) => String(e ?? "").replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"), fe = (e) => String(e ?? "").replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """), pe = class extends HTMLElement {
|
|
3672
3725
|
static get observedAttributes() {
|
|
3673
3726
|
return [
|
|
3674
3727
|
"label",
|
|
@@ -3682,14 +3735,14 @@ var L = class extends HTMLElement {
|
|
|
3682
3735
|
let e = this.closest("wui-wizard");
|
|
3683
3736
|
e && typeof e.refresh == "function" && e.refresh();
|
|
3684
3737
|
}
|
|
3685
|
-
},
|
|
3738
|
+
}, me = "image/png,image/jpeg,image/webp", he = 5, ge = {
|
|
3686
3739
|
"image/png": [".png"],
|
|
3687
3740
|
"image/jpeg": [".jpg", ".jpeg"],
|
|
3688
3741
|
"image/webp": [".webp"],
|
|
3689
3742
|
"image/gif": [".gif"],
|
|
3690
3743
|
"image/svg+xml": [".svg"],
|
|
3691
3744
|
"application/pdf": [".pdf"]
|
|
3692
|
-
},
|
|
3745
|
+
}, _e = {
|
|
3693
3746
|
"image/png": "PNG",
|
|
3694
3747
|
"image/jpeg": "JPG",
|
|
3695
3748
|
"image/webp": "WEBP",
|
|
@@ -3703,7 +3756,7 @@ var L = class extends HTMLElement {
|
|
|
3703
3756
|
".gif": "GIF",
|
|
3704
3757
|
".svg": "SVG",
|
|
3705
3758
|
".pdf": "PDF"
|
|
3706
|
-
}, Q = (e) => String(e || "").split(",").map((e) => e.trim().toLowerCase()).filter(Boolean),
|
|
3759
|
+
}, Q = (e) => String(e || "").split(",").map((e) => e.trim().toLowerCase()).filter(Boolean), ve = [
|
|
3707
3760
|
".png",
|
|
3708
3761
|
".jpg",
|
|
3709
3762
|
".jpeg",
|
|
@@ -3714,44 +3767,44 @@ var L = class extends HTMLElement {
|
|
|
3714
3767
|
".avif",
|
|
3715
3768
|
".heic"
|
|
3716
3769
|
];
|
|
3717
|
-
function
|
|
3770
|
+
function ye(e) {
|
|
3718
3771
|
if (!e) return !1;
|
|
3719
3772
|
let t = typeof e == "object" && e.type ? String(e.type).toLowerCase() : "";
|
|
3720
3773
|
if (t) return t.startsWith("image/");
|
|
3721
3774
|
let n = typeof e == "string" ? e : e.name || e.url || "", r = String(n).toLowerCase();
|
|
3722
|
-
return
|
|
3775
|
+
return ve.some((e) => r.endsWith(e));
|
|
3723
3776
|
}
|
|
3724
|
-
function
|
|
3777
|
+
function be(e) {
|
|
3725
3778
|
let t = Q(e);
|
|
3726
|
-
return t.length ? t.every((e) => e.startsWith(".") ?
|
|
3779
|
+
return t.length ? t.every((e) => e.startsWith(".") ? ve.includes(e) : e === "image/*" || e.startsWith("image/")) : !1;
|
|
3727
3780
|
}
|
|
3728
|
-
function
|
|
3781
|
+
function xe(e) {
|
|
3729
3782
|
let t = [];
|
|
3730
3783
|
for (let n of Q(e)) {
|
|
3731
|
-
let e =
|
|
3784
|
+
let e = _e[n] || (n.startsWith(".") ? n.slice(1).toUpperCase() : n.toUpperCase());
|
|
3732
3785
|
t.includes(e) || t.push(e);
|
|
3733
3786
|
}
|
|
3734
3787
|
return t.length <= 1 ? t[0] || "supported" : `${t.slice(0, -1).join(", ")} or ${t[t.length - 1]}`;
|
|
3735
3788
|
}
|
|
3736
|
-
function
|
|
3789
|
+
function Se(e, t) {
|
|
3737
3790
|
let n = Q(t);
|
|
3738
3791
|
if (!n.length) return !0;
|
|
3739
3792
|
let r = (e.type || "").toLowerCase(), i = (e.name || "").toLowerCase();
|
|
3740
|
-
return n.some((e) => e.startsWith(".") ? i.endsWith(e) : e.endsWith("/*") ? r.startsWith(e.slice(0, -1)) : r && r === e ? !0 : !r && (
|
|
3793
|
+
return n.some((e) => e.startsWith(".") ? i.endsWith(e) : e.endsWith("/*") ? r.startsWith(e.slice(0, -1)) : r && r === e ? !0 : !r && (ge[e] || []).some((e) => i.endsWith(e)));
|
|
3741
3794
|
}
|
|
3742
|
-
function
|
|
3795
|
+
function Ce(e, t = {}) {
|
|
3743
3796
|
if (!e) return null;
|
|
3744
|
-
let n = t.accept === void 0 ?
|
|
3745
|
-
return
|
|
3797
|
+
let n = t.accept === void 0 ? me : t.accept, r = t.maxSizeMb || 5;
|
|
3798
|
+
return Se(e, n) ? e.size > r * 1024 * 1024 ? `Keep the file under ${r} MB.` : null : `Choose a ${xe(n)} file.`;
|
|
3746
3799
|
}
|
|
3747
3800
|
//#endregion
|
|
3748
3801
|
//#region src/index.js
|
|
3749
3802
|
var $ = (e, t) => {
|
|
3750
3803
|
typeof customElements < "u" && !customElements.get(e) && customElements.define(e, t);
|
|
3751
3804
|
};
|
|
3752
|
-
function
|
|
3753
|
-
$("wui-select",
|
|
3805
|
+
function we() {
|
|
3806
|
+
$("wui-select", B), $("wui-phone", R), $("wui-datepicker", T), $("wui-date-range", ee), $("wui-dock", E), $("wui-slider", H), $("wui-timepicker", X), $("wui-autocomplete", m), $("wui-multiselect", te), $("wui-taginput", W), $("wui-otp", ie), $("wui-status-icon", n), $("wui-wizard-step", pe), $("wui-wizard", de);
|
|
3754
3807
|
}
|
|
3755
|
-
|
|
3808
|
+
we();
|
|
3756
3809
|
//#endregion
|
|
3757
|
-
export {
|
|
3810
|
+
export { me as DEFAULT_IMAGE_ACCEPT, he as DEFAULT_MAX_SIZE_MB, t as STATUS_TONES, m as WuiAutocomplete, T as WuiDatePicker, ee as WuiDateRange, E as WuiDock, te as WuiMultiSelect, ie as WuiOtp, R as WuiPhone, B as WuiSelect, H as WuiSlider, n as WuiStatusIcon, W as WuiTagInput, X as WuiTimePicker, de as WuiWizard, pe as WuiWizardStep, xe as acceptLabel, we as defineWeborityElements, ye as isImageFile, be as isImageOnlyAccept, Se as matchesAccept, Ce as validateFile };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webority/ui-elements",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"description": "Webority framework-agnostic UI custom elements (<wui-*>) — the single implementation of the interactive components, styled by @webority/theme. Used natively in Razor and wrapped by @webority/ui-react.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"type": "module",
|