@webority/ui-react 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/components/AppSelectMini.d.ts +2 -1
- package/dist/ui-react.js +213 -206
- package/package.json +3 -3
package/dist/ui-react.js
CHANGED
|
@@ -247,8 +247,16 @@ var E = class extends HTMLElement {
|
|
|
247
247
|
let e = this.getAttribute("tone"), t = this.getAttribute("size") || "72", n = T[e] || T.info;
|
|
248
248
|
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>`;
|
|
249
249
|
}
|
|
250
|
-
}, D =
|
|
251
|
-
|
|
250
|
+
}, D = "data-wui-mirror";
|
|
251
|
+
function O(e, t) {
|
|
252
|
+
let n = e.getAttribute("name"), r = e.querySelector(`:scope > input[${D}]`);
|
|
253
|
+
if (!n) {
|
|
254
|
+
r?.remove();
|
|
255
|
+
return;
|
|
256
|
+
}
|
|
257
|
+
r || (r = document.createElement("input"), r.type = "hidden", r.setAttribute(D, ""), e.appendChild(r)), r.name = n, r.value = t == null ? "" : String(t), r.disabled = e.hasAttribute("disabled");
|
|
258
|
+
}
|
|
259
|
+
var k = Symbol("wui.trustedHtml"), A = (e) => String(e ?? "").replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'"), j = (e) => e?.[k] ? String(e.label ?? "") : A(e == null ? "" : e.label), ee = class extends HTMLElement {
|
|
252
260
|
_accessibleName() {
|
|
253
261
|
return this.getAttribute("aria-label") || this.getAttribute("placeholder") || "Select";
|
|
254
262
|
}
|
|
@@ -259,11 +267,12 @@ var E = class extends HTMLElement {
|
|
|
259
267
|
"disabled",
|
|
260
268
|
"min-chars",
|
|
261
269
|
"debounce",
|
|
262
|
-
"remote"
|
|
270
|
+
"remote",
|
|
271
|
+
"aria-label"
|
|
263
272
|
];
|
|
264
273
|
}
|
|
265
274
|
constructor() {
|
|
266
|
-
super(), this.
|
|
275
|
+
super(), this._value = "", this._label = "", this._optionsProp = null, this._loading = !1, this._active = -1, this._timer = null;
|
|
267
276
|
}
|
|
268
277
|
connectedCallback() {
|
|
269
278
|
this._rendered || this.render();
|
|
@@ -275,9 +284,9 @@ var E = class extends HTMLElement {
|
|
|
275
284
|
return this._value;
|
|
276
285
|
}
|
|
277
286
|
set value(e) {
|
|
278
|
-
this._value = e == null ? "" : String(e),
|
|
287
|
+
this._value = e == null ? "" : String(e), O(this, this._value);
|
|
279
288
|
let t = this._readOptions().find((e) => String(e.value) === this._value);
|
|
280
|
-
t && (this._label =
|
|
289
|
+
t && (this._label = N(t.label)), this._syncInput();
|
|
281
290
|
}
|
|
282
291
|
set options(e) {
|
|
283
292
|
this._optionsProp = Array.isArray(e) ? e : [], this._renderOptions();
|
|
@@ -307,7 +316,7 @@ var E = class extends HTMLElement {
|
|
|
307
316
|
e.length && (this._declared = e.map((e) => ({
|
|
308
317
|
value: e.getAttribute("value") ?? e.textContent.trim(),
|
|
309
318
|
label: e.innerHTML,
|
|
310
|
-
[
|
|
319
|
+
[k]: !0,
|
|
311
320
|
selected: e.hasAttribute("selected")
|
|
312
321
|
})));
|
|
313
322
|
}
|
|
@@ -319,8 +328,8 @@ var E = class extends HTMLElement {
|
|
|
319
328
|
let e = this.getAttribute("placeholder") || "Search…";
|
|
320
329
|
this.innerHTML = `
|
|
321
330
|
<div class="search-select">
|
|
322
|
-
<div class="input search-select-control search-select-ac" role="combobox" aria-haspopup="listbox" aria-expanded="false" aria-label="${
|
|
323
|
-
<input class="search-select-input search-select-ac-input" placeholder="${
|
|
331
|
+
<div class="input search-select-control search-select-ac" role="combobox" aria-haspopup="listbox" aria-expanded="false" aria-label="${M(this._accessibleName())}">
|
|
332
|
+
<input class="search-select-input search-select-ac-input" placeholder="${M(e)}" aria-autocomplete="list" autocomplete="off"${this.hasAttribute("disabled") ? " disabled" : ""} />
|
|
324
333
|
<span class="search-select-spinner spinner-border spinner-border-sm" role="status" aria-hidden="true" hidden></span>
|
|
325
334
|
<button type="button" class="search-select-clear" aria-label="Clear" hidden><i class="bi bi-x" aria-hidden="true"></i></button>
|
|
326
335
|
</div>
|
|
@@ -329,7 +338,7 @@ var E = class extends HTMLElement {
|
|
|
329
338
|
<div class="search-select-empty" hidden>No matches</div>
|
|
330
339
|
<div class="search-select-hint" hidden>Type to search…</div>
|
|
331
340
|
</div>
|
|
332
|
-
</div>`, this._rendered = !0, this._wire(), this._syncInput(), this._renderOptions();
|
|
341
|
+
</div>`, this._rendered = !0, O(this, this._value), this._wire(), this._syncInput(), this._renderOptions();
|
|
333
342
|
}
|
|
334
343
|
_refs() {
|
|
335
344
|
return {
|
|
@@ -358,9 +367,9 @@ var E = class extends HTMLElement {
|
|
|
358
367
|
let t = this._refs();
|
|
359
368
|
if (!t.optionsWrap) return;
|
|
360
369
|
let n = (e ?? (t.input ? t.input.value : "")).trim().toLowerCase(), r = this._readOptions();
|
|
361
|
-
!this._remote && n && (r = r.filter((e) =>
|
|
370
|
+
!this._remote && n && (r = r.filter((e) => N(e.label).toLowerCase().includes(n))), t.optionsWrap.innerHTML = r.map((e) => {
|
|
362
371
|
let t = String(e.value) === String(this._value);
|
|
363
|
-
return `<button type="button" role="option" class="search-select-option${t ? " selected" : ""}" data-value="${
|
|
372
|
+
return `<button type="button" role="option" class="search-select-option${t ? " selected" : ""}" data-value="${M(e.value)}" aria-selected="${t}">${j(e)}</button>`;
|
|
364
373
|
}).join(""), this._active = -1;
|
|
365
374
|
let i = n.length < this._minChars;
|
|
366
375
|
t.hint && (t.hint.hidden = !(this._remote && i && !r.length)), t.empty && (t.empty.hidden = this._loading || r.length > 0 || this._remote && i);
|
|
@@ -381,7 +390,7 @@ var E = class extends HTMLElement {
|
|
|
381
390
|
}, o = () => {
|
|
382
391
|
e.menu.hidden = !0, e.control.setAttribute("aria-expanded", "false"), e.control.classList.remove("open"), r(-1), this._syncInput();
|
|
383
392
|
}, s = (t) => {
|
|
384
|
-
this._value = t.dataset.value, this._label =
|
|
393
|
+
this._value = t.dataset.value, this._label = N(t.innerHTML), O(this, this._value), e.input.value = this._label, this.dispatchEvent(new Event("change", { bubbles: !0 })), o(), e.input.focus();
|
|
385
394
|
};
|
|
386
395
|
e.input.addEventListener("focus", () => a()), e.input.addEventListener("input", () => {
|
|
387
396
|
let t = e.input.value;
|
|
@@ -404,7 +413,7 @@ var E = class extends HTMLElement {
|
|
|
404
413
|
let t = e.target.closest(".search-select-option");
|
|
405
414
|
t && r(this._optionEls().indexOf(t));
|
|
406
415
|
}), e.clear?.addEventListener("click", () => {
|
|
407
|
-
this._value = "", this._label = "", this
|
|
416
|
+
this._value = "", this._label = "", O(this, ""), e.input.value = "", e.clear.hidden = !0, this._renderOptions(""), this.dispatchEvent(new Event("change", { bubbles: !0 })), e.input.focus();
|
|
408
417
|
}), this._onDocClick = (e) => {
|
|
409
418
|
i() && !this.contains(e.target) && o();
|
|
410
419
|
}, document.addEventListener("click", this._onDocClick), window.addEventListener("resize", () => {
|
|
@@ -414,7 +423,7 @@ var E = class extends HTMLElement {
|
|
|
414
423
|
disconnectedCallback() {
|
|
415
424
|
this._onDocClick && document.removeEventListener("click", this._onDocClick), clearTimeout(this._timer);
|
|
416
425
|
}
|
|
417
|
-
},
|
|
426
|
+
}, M = (e) => String(e ?? "").replace(/"/g, """).replace(/</g, "<"), N = (e) => String(e ?? "").replace(/<[^>]*>/g, ""), te = [
|
|
418
427
|
"January",
|
|
419
428
|
"February",
|
|
420
429
|
"March",
|
|
@@ -427,7 +436,7 @@ var E = class extends HTMLElement {
|
|
|
427
436
|
"October",
|
|
428
437
|
"November",
|
|
429
438
|
"December"
|
|
430
|
-
],
|
|
439
|
+
], ne = [
|
|
431
440
|
"Su",
|
|
432
441
|
"Mo",
|
|
433
442
|
"Tu",
|
|
@@ -435,18 +444,17 @@ var E = class extends HTMLElement {
|
|
|
435
444
|
"Th",
|
|
436
445
|
"Fr",
|
|
437
446
|
"Sa"
|
|
438
|
-
], P = (e) => String(e).padStart(2, "0"),
|
|
447
|
+
], P = (e) => String(e).padStart(2, "0"), re = (e, t, n) => `${e}-${P(t + 1)}-${P(n)}`, F = (e) => {
|
|
439
448
|
let t = /^(\d{4})-(\d{2})-(\d{2})$/.exec(e || "");
|
|
440
449
|
return t ? {
|
|
441
450
|
y: +t[1],
|
|
442
451
|
m: t[2] - 1,
|
|
443
452
|
d: +t[3]
|
|
444
453
|
} : null;
|
|
445
|
-
},
|
|
454
|
+
}, ie = (e) => {
|
|
446
455
|
let t = F(e);
|
|
447
|
-
return t ? `${P(t.d)} ${
|
|
448
|
-
},
|
|
449
|
-
static formAssociated = !0;
|
|
456
|
+
return t ? `${P(t.d)} ${te[t.m].slice(0, 3)} ${t.y}` : "";
|
|
457
|
+
}, ae = class extends HTMLElement {
|
|
450
458
|
static get observedAttributes() {
|
|
451
459
|
return [
|
|
452
460
|
"value",
|
|
@@ -457,7 +465,7 @@ var E = class extends HTMLElement {
|
|
|
457
465
|
];
|
|
458
466
|
}
|
|
459
467
|
constructor() {
|
|
460
|
-
super(), this.
|
|
468
|
+
super(), this._value = "";
|
|
461
469
|
let e = new Date(2e3, 0, 1);
|
|
462
470
|
this._viewY = e.getFullYear(), this._viewM = e.getMonth();
|
|
463
471
|
}
|
|
@@ -471,7 +479,7 @@ var E = class extends HTMLElement {
|
|
|
471
479
|
return this._value;
|
|
472
480
|
}
|
|
473
481
|
set value(e) {
|
|
474
|
-
this._value = e || "",
|
|
482
|
+
this._value = e || "", O(this, this._value), this._syncTrigger(), this.dispatchEvent(new Event("change", { bubbles: !0 }));
|
|
475
483
|
}
|
|
476
484
|
render() {
|
|
477
485
|
this._value = this.getAttribute("value") || this._value;
|
|
@@ -479,20 +487,20 @@ var E = class extends HTMLElement {
|
|
|
479
487
|
t && (this._viewY = t.y, this._viewM = t.m), this.innerHTML = `
|
|
480
488
|
<div class="datepicker">
|
|
481
489
|
<button type="button" class="input datepicker-trigger" aria-haspopup="dialog" aria-expanded="false"${this.hasAttribute("disabled") ? " disabled" : ""}>
|
|
482
|
-
<span data-trigger-label class="${t ? "" : "search-select-placeholder"}">${t ?
|
|
490
|
+
<span data-trigger-label class="${t ? "" : "search-select-placeholder"}">${t ? ie(this._value) : e}</span>
|
|
483
491
|
<i class="bi bi-calendar3" aria-hidden="true"></i>
|
|
484
492
|
</button>
|
|
485
493
|
<div class="datepicker-pop" role="dialog" hidden></div>
|
|
486
|
-
</div>`, this._rendered = !0, this._wire();
|
|
494
|
+
</div>`, this._rendered = !0, O(this, this._value), this._wire();
|
|
487
495
|
}
|
|
488
|
-
|
|
489
|
-
|
|
496
|
+
_syncFormValue() {
|
|
497
|
+
O(this, this._value);
|
|
490
498
|
}
|
|
491
499
|
_syncTrigger() {
|
|
492
500
|
let e = this.querySelector("[data-trigger-label]");
|
|
493
501
|
if (!e) return;
|
|
494
502
|
let t = F(this._value);
|
|
495
|
-
e.textContent = t ?
|
|
503
|
+
e.textContent = t ? ie(this._value) : this.getAttribute("placeholder") || "Enter Date", e.classList.toggle("search-select-placeholder", !t);
|
|
496
504
|
}
|
|
497
505
|
_renderMonth() {
|
|
498
506
|
let e = this.querySelector(".datepicker-pop"), t = new Date(this._viewY, this._viewM, 1).getDay(), n = new Date(this._viewY, this._viewM + 1, 0).getDate(), r = F(this._value), i = F(this.getAttribute("min")), a = F(this.getAttribute("max")), o = (e, t, n) => {
|
|
@@ -501,16 +509,16 @@ var E = class extends HTMLElement {
|
|
|
501
509
|
}, s = "";
|
|
502
510
|
for (let e = 0; e < t; e++) s += "<span class=\"datepicker-day is-outside\"></span>";
|
|
503
511
|
for (let e = 1; e <= n; e++) {
|
|
504
|
-
let t =
|
|
512
|
+
let t = re(this._viewY, this._viewM, e), n = r && r.y === this._viewY && r.m === this._viewM && r.d === e, i = o(this._viewY, this._viewM, e);
|
|
505
513
|
s += `<button type="button" class="datepicker-day${n ? " selected" : ""}" data-iso="${t}"${i ? " disabled" : ""}>${e}</button>`;
|
|
506
514
|
}
|
|
507
515
|
e.innerHTML = `
|
|
508
516
|
<div class="datepicker-head">
|
|
509
517
|
<button type="button" class="datepicker-nav-btn" data-nav="-1" aria-label="Previous month"><i class="bi bi-chevron-left" aria-hidden="true"></i></button>
|
|
510
|
-
<span class="datepicker-month">${
|
|
518
|
+
<span class="datepicker-month">${te[this._viewM]} ${this._viewY}</span>
|
|
511
519
|
<button type="button" class="datepicker-nav-btn" data-nav="1" aria-label="Next month"><i class="bi bi-chevron-right" aria-hidden="true"></i></button>
|
|
512
520
|
</div>
|
|
513
|
-
<div class="datepicker-weekdays">${
|
|
521
|
+
<div class="datepicker-weekdays">${ne.map((e) => `<span>${e}</span>`).join("")}</div>
|
|
514
522
|
<div class="datepicker-grid">${s}</div>
|
|
515
523
|
<div class="datepicker-foot"><button type="button" class="datepicker-link" data-clear>Clear</button></div>`;
|
|
516
524
|
}
|
|
@@ -538,13 +546,12 @@ var E = class extends HTMLElement {
|
|
|
538
546
|
n() && !this.contains(e.target) && i();
|
|
539
547
|
}, document.addEventListener("click", this._onDocClick), this._onDocKey = (e) => {
|
|
540
548
|
n() && e.key === "Escape" && i();
|
|
541
|
-
}, document.addEventListener("keydown", this._onDocKey), this.
|
|
549
|
+
}, document.addEventListener("keydown", this._onDocKey), this._syncFormValue();
|
|
542
550
|
}
|
|
543
551
|
disconnectedCallback() {
|
|
544
552
|
this._onDocClick && document.removeEventListener("click", this._onDocClick), this._onDocKey && document.removeEventListener("keydown", this._onDocKey);
|
|
545
553
|
}
|
|
546
|
-
},
|
|
547
|
-
static formAssociated = !0;
|
|
554
|
+
}, oe = class extends HTMLElement {
|
|
548
555
|
_accessibleName() {
|
|
549
556
|
return this.getAttribute("aria-label") || this.getAttribute("placeholder") || "Select";
|
|
550
557
|
}
|
|
@@ -553,11 +560,12 @@ var E = class extends HTMLElement {
|
|
|
553
560
|
"placeholder",
|
|
554
561
|
"search-placeholder",
|
|
555
562
|
"searchable",
|
|
556
|
-
"disabled"
|
|
563
|
+
"disabled",
|
|
564
|
+
"aria-label"
|
|
557
565
|
];
|
|
558
566
|
}
|
|
559
567
|
constructor() {
|
|
560
|
-
super(), this.
|
|
568
|
+
super(), this._values = [], this._optionsProp = null, this._active = -1;
|
|
561
569
|
}
|
|
562
570
|
connectedCallback() {
|
|
563
571
|
if (!this._rendered) {
|
|
@@ -575,7 +583,7 @@ var E = class extends HTMLElement {
|
|
|
575
583
|
return this._values.slice();
|
|
576
584
|
}
|
|
577
585
|
set values(e) {
|
|
578
|
-
this._values = Array.isArray(e) ? e.map(String) : [],
|
|
586
|
+
this._values = Array.isArray(e) ? e.map(String) : [], O(this, this._values.join(",")), this._rendered && this._renderControl();
|
|
579
587
|
}
|
|
580
588
|
set options(e) {
|
|
581
589
|
this._optionsProp = Array.isArray(e) ? e : null, this.isConnected && this.render();
|
|
@@ -589,7 +597,7 @@ var E = class extends HTMLElement {
|
|
|
589
597
|
e.length && (this._declared = e.map((e) => ({
|
|
590
598
|
value: e.getAttribute("value") ?? e.textContent.trim(),
|
|
591
599
|
label: e.innerHTML,
|
|
592
|
-
[
|
|
600
|
+
[k]: !0,
|
|
593
601
|
selected: e.hasAttribute("selected")
|
|
594
602
|
})));
|
|
595
603
|
}
|
|
@@ -602,41 +610,41 @@ var E = class extends HTMLElement {
|
|
|
602
610
|
}
|
|
603
611
|
_labelHtmlFor(e) {
|
|
604
612
|
let t = this._readOptions().find((t) => String(t.value) === String(e));
|
|
605
|
-
return t ?
|
|
613
|
+
return t ? j(t) : A(e);
|
|
606
614
|
}
|
|
607
615
|
render() {
|
|
608
616
|
this._snapshotDeclared();
|
|
609
617
|
let e = this.hasAttribute("searchable"), t = this.getAttribute("search-placeholder") || "Search…";
|
|
610
|
-
|
|
618
|
+
O(this, this._values.join(",")), this.innerHTML = `
|
|
611
619
|
<div class="search-select">
|
|
612
|
-
<div class="input search-select-control search-select-multi" role="combobox" aria-haspopup="listbox" aria-expanded="false" aria-label="${
|
|
620
|
+
<div class="input search-select-control search-select-multi" role="combobox" aria-haspopup="listbox" aria-expanded="false" aria-label="${I(this._accessibleName())}"${this.hasAttribute("disabled") ? " aria-disabled=\"true\"" : ""}>
|
|
613
621
|
<div class="ms-chips" data-chips></div>
|
|
614
622
|
<i class="bi bi-chevron-down search-select-caret" aria-hidden="true"></i>
|
|
615
623
|
</div>
|
|
616
624
|
<div class="search-select-menu search-select-menu-fixed" role="listbox" aria-multiselectable="true" tabindex="-1" hidden>
|
|
617
|
-
${e ? `<div class="search-select-search"><i class="bi bi-search" aria-hidden="true"></i><input class="search-select-input" placeholder="${
|
|
625
|
+
${e ? `<div class="search-select-search"><i class="bi bi-search" aria-hidden="true"></i><input class="search-select-input" placeholder="${I(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>` : ""}
|
|
618
626
|
<div class="search-select-options"></div>
|
|
619
627
|
<div class="search-select-empty" hidden>No matches</div>
|
|
620
628
|
</div>
|
|
621
|
-
</div>`, this._rendered = !0, this._renderControl(), this._renderOptions(), this._wire();
|
|
629
|
+
</div>`, this._rendered = !0, O(this, this._values.join(",")), this._renderControl(), this._renderOptions(), this._wire();
|
|
622
630
|
}
|
|
623
631
|
_renderControl() {
|
|
624
632
|
let e = this.querySelector("[data-chips]");
|
|
625
633
|
if (!e) return;
|
|
626
634
|
let t = this.getAttribute("placeholder") || "Select…";
|
|
627
635
|
if (!this._values.length) {
|
|
628
|
-
e.innerHTML = `<span class="search-select-placeholder">${
|
|
636
|
+
e.innerHTML = `<span class="search-select-placeholder">${A(t)}</span>`;
|
|
629
637
|
return;
|
|
630
638
|
}
|
|
631
|
-
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="${
|
|
639
|
+
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="${I(e)}" aria-label="Remove"><i class="bi bi-x" aria-hidden="true"></i></button></span>`).join("");
|
|
632
640
|
}
|
|
633
641
|
_renderOptions(e) {
|
|
634
642
|
let t = this.querySelector(".search-select-options"), n = this.querySelector(".search-select-empty");
|
|
635
643
|
if (!t) return;
|
|
636
644
|
let r = (e || "").trim().toLowerCase(), i = this._readOptions();
|
|
637
|
-
r && (i = i.filter((e) =>
|
|
645
|
+
r && (i = i.filter((e) => se(e.label).toLowerCase().includes(r))), t.innerHTML = i.map((e) => {
|
|
638
646
|
let t = this._values.includes(String(e.value));
|
|
639
|
-
return `<button type="button" role="option" class="search-select-option${t ? " selected" : ""}" data-value="${
|
|
647
|
+
return `<button type="button" role="option" class="search-select-option${t ? " selected" : ""}" data-value="${I(e.value)}" aria-selected="${t}"><span class="ms-check"><i class="bi bi-check" aria-hidden="true"></i></span><span class="ms-opt-label">${j(e)}</span></button>`;
|
|
640
648
|
}).join(""), n && (n.hidden = i.length > 0), this._active = -1;
|
|
641
649
|
}
|
|
642
650
|
_wire() {
|
|
@@ -655,7 +663,7 @@ var E = class extends HTMLElement {
|
|
|
655
663
|
}, f = () => {
|
|
656
664
|
t.hidden = !0, e.setAttribute("aria-expanded", "false"), e.classList.remove("open"), l(-1);
|
|
657
665
|
}, p = () => {
|
|
658
|
-
|
|
666
|
+
O(this, this._values.join(",")), this.dispatchEvent(new Event("change", { bubbles: !0 }));
|
|
659
667
|
}, m = (e) => {
|
|
660
668
|
let t = String(e);
|
|
661
669
|
this._values.includes(t) ? this._values = this._values.filter((e) => e !== t) : this._values = [...this._values, t], this._renderControl(), this._renderOptions(n ? n.value : ""), p();
|
|
@@ -699,7 +707,7 @@ var E = class extends HTMLElement {
|
|
|
699
707
|
disconnectedCallback() {
|
|
700
708
|
this._onDocClick && document.removeEventListener("click", this._onDocClick);
|
|
701
709
|
}
|
|
702
|
-
},
|
|
710
|
+
}, I = (e) => String(e ?? "").replace(/"/g, """).replace(/</g, "<"), se = (e) => String(e ?? "").replace(/<[^>]*>/g, ""), L = [
|
|
703
711
|
[
|
|
704
712
|
"AF",
|
|
705
713
|
"Afghanistan",
|
|
@@ -1925,12 +1933,11 @@ var E = class extends HTMLElement {
|
|
|
1925
1933
|
"Zimbabwe",
|
|
1926
1934
|
"263"
|
|
1927
1935
|
]
|
|
1928
|
-
], R = (e) => (
|
|
1936
|
+
], R = (e) => (L.find((t) => t[0] === e) || [
|
|
1929
1937
|
"",
|
|
1930
1938
|
"",
|
|
1931
1939
|
""
|
|
1932
|
-
])[2], z = (e) => `wui-flag wui-flag-${String(e).toLowerCase()}`,
|
|
1933
|
-
static formAssociated = !0;
|
|
1940
|
+
])[2], z = (e) => `wui-flag wui-flag-${String(e).toLowerCase()}`, ce = class extends HTMLElement {
|
|
1934
1941
|
static get observedAttributes() {
|
|
1935
1942
|
return [
|
|
1936
1943
|
"value",
|
|
@@ -1940,7 +1947,7 @@ var E = class extends HTMLElement {
|
|
|
1940
1947
|
];
|
|
1941
1948
|
}
|
|
1942
1949
|
constructor() {
|
|
1943
|
-
super(), this.
|
|
1950
|
+
super(), this._country = "IN", this._national = "";
|
|
1944
1951
|
}
|
|
1945
1952
|
connectedCallback() {
|
|
1946
1953
|
this._rendered || this.render();
|
|
@@ -1955,12 +1962,12 @@ var E = class extends HTMLElement {
|
|
|
1955
1962
|
this._national = String(e ?? "").replace(/[^0-9]/g, ""), this._commit();
|
|
1956
1963
|
}
|
|
1957
1964
|
_commit() {
|
|
1958
|
-
|
|
1965
|
+
O(this, this.value), this.dispatchEvent(new Event("change", { bubbles: !0 }));
|
|
1959
1966
|
}
|
|
1960
1967
|
render() {
|
|
1961
1968
|
let e = this.getAttribute("placeholder") || "Enter phone number";
|
|
1962
1969
|
this._country = this.getAttribute("country") || this._country;
|
|
1963
|
-
let t =
|
|
1970
|
+
let t = L.map(([e, t, n]) => `<button type="button" role="option" class="country-dropdown-item${e === this._country ? " selected" : ""}" data-iso="${e}"><span class="${z(e)}" aria-hidden="true"></span><span class="country-name-text">${t}<span class="country-code-text">+${n}</span></span></button>`).join("");
|
|
1964
1971
|
this.innerHTML = `
|
|
1965
1972
|
<div class="phone-input-wrap">
|
|
1966
1973
|
<div class="phone-country-adornment">
|
|
@@ -1974,8 +1981,8 @@ var E = class extends HTMLElement {
|
|
|
1974
1981
|
<div class="country-list-scroll">${t}<div class="country-empty" hidden>No countries found</div></div>
|
|
1975
1982
|
</div>
|
|
1976
1983
|
</div>
|
|
1977
|
-
<input type="tel" class="input" placeholder="${
|
|
1978
|
-
</div>`, this._rendered = !0, this._wire();
|
|
1984
|
+
<input type="tel" class="input" placeholder="${le(e)}" value="${le(this._national)}"${this.hasAttribute("disabled") ? " disabled" : ""} />
|
|
1985
|
+
</div>`, this._rendered = !0, O(this, this.value), this._wire();
|
|
1979
1986
|
}
|
|
1980
1987
|
_wire() {
|
|
1981
1988
|
let e = this.querySelector(".country-toggle"), t = this.querySelector(".country-dropdown-menu"), n = this.querySelector(".dropdown-search-input"), r = this.querySelector(".country-list-scroll"), i = this.querySelector(".country-empty"), a = this.querySelector("input[type=tel]"), o = this.querySelector("[data-flag]"), s = this.querySelector("[data-dial]");
|
|
@@ -2010,13 +2017,12 @@ var E = class extends HTMLElement {
|
|
|
2010
2017
|
this._national = a.value.replace(/[^0-9]/g, ""), this._commit();
|
|
2011
2018
|
}), this._onDocClick = (e) => {
|
|
2012
2019
|
c() && !this.contains(e.target) && d();
|
|
2013
|
-
}, document.addEventListener("click", this._onDocClick),
|
|
2020
|
+
}, document.addEventListener("click", this._onDocClick), O(this, this.value);
|
|
2014
2021
|
}
|
|
2015
2022
|
disconnectedCallback() {
|
|
2016
2023
|
this._reposition && (window.removeEventListener("scroll", this._reposition, !0), window.removeEventListener("resize", this._reposition)), this._onDocClick && document.removeEventListener("click", this._onDocClick);
|
|
2017
2024
|
}
|
|
2018
|
-
},
|
|
2019
|
-
static formAssociated = !0;
|
|
2025
|
+
}, le = (e) => String(e ?? "").replace(/"/g, """).replace(/</g, "<"), ue = class extends HTMLElement {
|
|
2020
2026
|
static get observedAttributes() {
|
|
2021
2027
|
return [
|
|
2022
2028
|
"value",
|
|
@@ -2032,7 +2038,7 @@ var E = class extends HTMLElement {
|
|
|
2032
2038
|
return this.getAttribute("aria-label") || this.getAttribute("placeholder") || "Select";
|
|
2033
2039
|
}
|
|
2034
2040
|
constructor() {
|
|
2035
|
-
super(), this.
|
|
2041
|
+
super(), this._value = "", this._optionsProp = null, this._active = -1;
|
|
2036
2042
|
}
|
|
2037
2043
|
connectedCallback() {
|
|
2038
2044
|
this._rendered || this.render();
|
|
@@ -2044,7 +2050,7 @@ var E = class extends HTMLElement {
|
|
|
2044
2050
|
return this._value;
|
|
2045
2051
|
}
|
|
2046
2052
|
set value(e) {
|
|
2047
|
-
this._value = e == null ? "" : String(e),
|
|
2053
|
+
this._value = e == null ? "" : String(e), O(this, this._value), this._syncSelected();
|
|
2048
2054
|
}
|
|
2049
2055
|
set options(e) {
|
|
2050
2056
|
this._optionsProp = Array.isArray(e) ? e : null, this.isConnected && this.render();
|
|
@@ -2058,7 +2064,7 @@ var E = class extends HTMLElement {
|
|
|
2058
2064
|
e.length && (this._declared = e.map((e) => ({
|
|
2059
2065
|
value: e.getAttribute("value") ?? e.textContent.trim(),
|
|
2060
2066
|
label: e.innerHTML,
|
|
2061
|
-
[
|
|
2067
|
+
[k]: !0,
|
|
2062
2068
|
selected: e.hasAttribute("selected")
|
|
2063
2069
|
})));
|
|
2064
2070
|
}
|
|
@@ -2068,22 +2074,22 @@ var E = class extends HTMLElement {
|
|
|
2068
2074
|
render() {
|
|
2069
2075
|
this._snapshotDeclared();
|
|
2070
2076
|
let e = this._readOptions(), t = this.hasAttribute("searchable"), n = this.getAttribute("placeholder") || "Select...", r = this.getAttribute("search-placeholder") || "Search...", i = e.find((e) => String(e.value) === String(this._value)) || e.find((e) => e.selected);
|
|
2071
|
-
i && (this._value = String(i.value)),
|
|
2077
|
+
i && (this._value = String(i.value)), O(this, this._value);
|
|
2072
2078
|
let a = e.map((e) => {
|
|
2073
2079
|
let t = String(e.value) === String(this._value);
|
|
2074
|
-
return `<button type="button" role="option" class="search-select-option${t ? " selected" : ""}" data-value="${
|
|
2080
|
+
return `<button type="button" role="option" class="search-select-option${t ? " selected" : ""}" data-value="${B(e.value)}" aria-selected="${t}">${j(e)}</button>`;
|
|
2075
2081
|
}).join("");
|
|
2076
2082
|
this.innerHTML = `
|
|
2077
2083
|
<div class="search-select${this.hasAttribute("compact") ? " search-select-compact" : ""}">
|
|
2078
|
-
<button type="button" role="combobox" class="input search-select-control" aria-haspopup="listbox" aria-expanded="false" aria-label="${
|
|
2079
|
-
<span class="${i ? "" : "search-select-placeholder"}" data-label>${i ?
|
|
2084
|
+
<button type="button" role="combobox" class="input search-select-control" aria-haspopup="listbox" aria-expanded="false" aria-label="${B(this._accessibleName())}"${this.hasAttribute("disabled") ? " disabled" : ""}>
|
|
2085
|
+
<span class="${i ? "" : "search-select-placeholder"}" data-label>${i ? j(i) : A(n)}</span>
|
|
2080
2086
|
<i class="bi bi-chevron-down search-select-caret" aria-hidden="true"></i>
|
|
2081
2087
|
</button>
|
|
2082
2088
|
<div class="search-select-menu search-select-menu-fixed" role="listbox" tabindex="-1" hidden>
|
|
2083
|
-
${t ? `<div class="search-select-search"><i class="bi bi-search" aria-hidden="true"></i><input class="search-select-input" placeholder="${
|
|
2089
|
+
${t ? `<div class="search-select-search"><i class="bi bi-search" aria-hidden="true"></i><input class="search-select-input" placeholder="${B(r)}" 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>` : ""}
|
|
2084
2090
|
<div class="search-select-options">${a}<div class="search-select-empty" hidden>No matches</div></div>
|
|
2085
2091
|
</div>
|
|
2086
|
-
</div>`, this._rendered = !0, this._wire();
|
|
2092
|
+
</div>`, this._rendered = !0, O(this, this._value), this._wire();
|
|
2087
2093
|
}
|
|
2088
2094
|
_refs() {
|
|
2089
2095
|
return {
|
|
@@ -2108,7 +2114,7 @@ var E = class extends HTMLElement {
|
|
|
2108
2114
|
let t = e.dataset.value === String(this._value);
|
|
2109
2115
|
e.classList.toggle("selected", t), e.setAttribute("aria-selected", String(t));
|
|
2110
2116
|
}
|
|
2111
|
-
e && (e.innerHTML = t ?
|
|
2117
|
+
e && (e.innerHTML = t ? j(t) : e.innerHTML, e.classList.toggle("search-select-placeholder", !t));
|
|
2112
2118
|
}
|
|
2113
2119
|
_wire() {
|
|
2114
2120
|
let e = this._refs();
|
|
@@ -2163,14 +2169,14 @@ var E = class extends HTMLElement {
|
|
|
2163
2169
|
disconnectedCallback() {
|
|
2164
2170
|
this._onDocClick && document.removeEventListener("click", this._onDocClick);
|
|
2165
2171
|
}
|
|
2166
|
-
},
|
|
2172
|
+
}, B = (e) => String(e ?? "").replace(/"/g, """).replace(/</g, "<"), V = "image/png,image/jpeg,image/webp", de = {
|
|
2167
2173
|
"image/png": [".png"],
|
|
2168
2174
|
"image/jpeg": [".jpg", ".jpeg"],
|
|
2169
2175
|
"image/webp": [".webp"],
|
|
2170
2176
|
"image/gif": [".gif"],
|
|
2171
2177
|
"image/svg+xml": [".svg"],
|
|
2172
2178
|
"application/pdf": [".pdf"]
|
|
2173
|
-
},
|
|
2179
|
+
}, fe = {
|
|
2174
2180
|
"image/png": "PNG",
|
|
2175
2181
|
"image/jpeg": "JPG",
|
|
2176
2182
|
"image/webp": "WEBP",
|
|
@@ -2184,36 +2190,36 @@ var E = class extends HTMLElement {
|
|
|
2184
2190
|
".gif": "GIF",
|
|
2185
2191
|
".svg": "SVG",
|
|
2186
2192
|
".pdf": "PDF"
|
|
2187
|
-
},
|
|
2188
|
-
function
|
|
2193
|
+
}, H = (e) => String(e || "").split(",").map((e) => e.trim().toLowerCase()).filter(Boolean);
|
|
2194
|
+
function pe(e) {
|
|
2189
2195
|
let t = [];
|
|
2190
|
-
for (let n of
|
|
2191
|
-
let e =
|
|
2196
|
+
for (let n of H(e)) {
|
|
2197
|
+
let e = fe[n] || (n.startsWith(".") ? n.slice(1).toUpperCase() : n.toUpperCase());
|
|
2192
2198
|
t.includes(e) || t.push(e);
|
|
2193
2199
|
}
|
|
2194
2200
|
return t.length <= 1 ? t[0] || "supported" : `${t.slice(0, -1).join(", ")} or ${t[t.length - 1]}`;
|
|
2195
2201
|
}
|
|
2196
|
-
function
|
|
2197
|
-
let n =
|
|
2202
|
+
function me(e, t) {
|
|
2203
|
+
let n = H(t);
|
|
2198
2204
|
if (!n.length) return !0;
|
|
2199
2205
|
let r = (e.type || "").toLowerCase(), i = (e.name || "").toLowerCase();
|
|
2200
|
-
return n.some((e) => e.startsWith(".") ? i.endsWith(e) : e.endsWith("/*") ? r.startsWith(e.slice(0, -1)) : r && r === e ? !0 : !r && (
|
|
2206
|
+
return n.some((e) => e.startsWith(".") ? i.endsWith(e) : e.endsWith("/*") ? r.startsWith(e.slice(0, -1)) : r && r === e ? !0 : !r && (de[e] || []).some((e) => i.endsWith(e)));
|
|
2201
2207
|
}
|
|
2202
|
-
function
|
|
2208
|
+
function U(e, t = {}) {
|
|
2203
2209
|
if (!e) return null;
|
|
2204
|
-
let n = t.accept === void 0 ?
|
|
2205
|
-
return
|
|
2210
|
+
let n = t.accept === void 0 ? V : t.accept, r = t.maxSizeMb || 5;
|
|
2211
|
+
return me(e, n) ? e.size > r * 1024 * 1024 ? `Keep the file under ${r} MB.` : null : `Choose a ${pe(n)} file.`;
|
|
2206
2212
|
}
|
|
2207
|
-
var
|
|
2213
|
+
var W = (e, t) => {
|
|
2208
2214
|
typeof customElements < "u" && !customElements.get(e) && customElements.define(e, t);
|
|
2209
2215
|
};
|
|
2210
|
-
function
|
|
2211
|
-
|
|
2216
|
+
function he() {
|
|
2217
|
+
W("wui-select", ue), W("wui-phone", ce), W("wui-datepicker", ae), W("wui-autocomplete", ee), W("wui-multiselect", oe), W("wui-status-icon", E);
|
|
2212
2218
|
}
|
|
2213
|
-
|
|
2219
|
+
he();
|
|
2214
2220
|
//#endregion
|
|
2215
2221
|
//#region src/components/RequiredMark.jsx
|
|
2216
|
-
function
|
|
2222
|
+
function G() {
|
|
2217
2223
|
return /* @__PURE__ */ t("span", {
|
|
2218
2224
|
className: "required",
|
|
2219
2225
|
"aria-hidden": "true",
|
|
@@ -2222,7 +2228,7 @@ function K() {
|
|
|
2222
2228
|
}
|
|
2223
2229
|
//#endregion
|
|
2224
2230
|
//#region src/components/AppAutocomplete.jsx
|
|
2225
|
-
function
|
|
2231
|
+
function ge({ value: e, onChange: r, options: a, loadOptions: o, placeholder: c = "Search…", minChars: l, debounce: u, disabled: d = !1, name: f, label: p, error: m, hint: h, required: g = !1, fieldClassName: _ = "" }) {
|
|
2226
2232
|
let v = s(null), y = typeof o == "function";
|
|
2227
2233
|
return i(() => {
|
|
2228
2234
|
let e = v.current;
|
|
@@ -2256,7 +2262,7 @@ function pe({ value: e, onChange: r, options: a, loadOptions: o, placeholder: c
|
|
|
2256
2262
|
p && /* @__PURE__ */ n("label", {
|
|
2257
2263
|
className: "label",
|
|
2258
2264
|
htmlFor: f,
|
|
2259
|
-
children: [p, g && /* @__PURE__ */ t(
|
|
2265
|
+
children: [p, g && /* @__PURE__ */ t(G, {})]
|
|
2260
2266
|
}),
|
|
2261
2267
|
/* @__PURE__ */ t("wui-autocomplete", {
|
|
2262
2268
|
"aria-label": typeof p == "string" ? p : void 0,
|
|
@@ -2281,13 +2287,13 @@ function pe({ value: e, onChange: r, options: a, loadOptions: o, placeholder: c
|
|
|
2281
2287
|
}
|
|
2282
2288
|
//#endregion
|
|
2283
2289
|
//#region src/components/AppAvatar.jsx
|
|
2284
|
-
function
|
|
2290
|
+
function _e(e) {
|
|
2285
2291
|
let t = (e || "").trim();
|
|
2286
2292
|
if (!t) return "?";
|
|
2287
2293
|
let n = t.split(/\s+/).filter(Boolean);
|
|
2288
2294
|
return n.length === 1 ? n[0].slice(0, 2).toUpperCase() : (n[0][0] + n[n.length - 1][0]).toUpperCase();
|
|
2289
2295
|
}
|
|
2290
|
-
function
|
|
2296
|
+
function ve({ name: e, src: n, className: r = "" }) {
|
|
2291
2297
|
let i = ["avatar", r].filter(Boolean).join(" ");
|
|
2292
2298
|
return n ? /* @__PURE__ */ t("span", {
|
|
2293
2299
|
className: i,
|
|
@@ -2300,12 +2306,12 @@ function he({ name: e, src: n, className: r = "" }) {
|
|
|
2300
2306
|
className: i,
|
|
2301
2307
|
role: "img",
|
|
2302
2308
|
"aria-label": e,
|
|
2303
|
-
children:
|
|
2309
|
+
children: _e(e)
|
|
2304
2310
|
});
|
|
2305
2311
|
}
|
|
2306
2312
|
//#endregion
|
|
2307
2313
|
//#region src/components/AppBadge.jsx
|
|
2308
|
-
function
|
|
2314
|
+
function ye({ children: e, tone: n, dot: r = !1, className: i = "", ...a }) {
|
|
2309
2315
|
return /* @__PURE__ */ t(u, {
|
|
2310
2316
|
bg: !1,
|
|
2311
2317
|
className: [
|
|
@@ -2319,25 +2325,25 @@ function ge({ children: e, tone: n, dot: r = !1, className: i = "", ...a }) {
|
|
|
2319
2325
|
}
|
|
2320
2326
|
//#endregion
|
|
2321
2327
|
//#region src/components/AppButton.jsx
|
|
2322
|
-
var
|
|
2328
|
+
var be = {
|
|
2323
2329
|
primary: "primary",
|
|
2324
2330
|
secondary: "secondary",
|
|
2325
2331
|
outline: "outline-primary",
|
|
2326
2332
|
ghost: "link",
|
|
2327
2333
|
danger: "danger"
|
|
2328
2334
|
};
|
|
2329
|
-
function
|
|
2335
|
+
function K(e, n) {
|
|
2330
2336
|
return e ? typeof e == "string" ? /* @__PURE__ */ t(x, {
|
|
2331
2337
|
name: e,
|
|
2332
2338
|
size: 16,
|
|
2333
2339
|
className: n === "left" ? "me-2" : "ms-2"
|
|
2334
2340
|
}) : e : null;
|
|
2335
2341
|
}
|
|
2336
|
-
function
|
|
2342
|
+
function q({ children: e, variant: r = "primary", size: i = "md", type: a = "button", loading: o = !1, disabled: s = !1, block: c = !1, leftIcon: l = null, rightIcon: u = null, className: f = "", ...p }) {
|
|
2337
2343
|
let m = [c ? "w-100" : "", f].filter(Boolean).join(" ");
|
|
2338
2344
|
return /* @__PURE__ */ n(d, {
|
|
2339
2345
|
type: a,
|
|
2340
|
-
variant:
|
|
2346
|
+
variant: be[r] ?? "primary",
|
|
2341
2347
|
size: i === "md" ? void 0 : i,
|
|
2342
2348
|
disabled: s || o,
|
|
2343
2349
|
className: m || void 0,
|
|
@@ -2347,15 +2353,15 @@ function J({ children: e, variant: r = "primary", size: i = "md", type: a = "but
|
|
|
2347
2353
|
className: "spinner-border spinner-border-sm me-2",
|
|
2348
2354
|
"aria-hidden": "true"
|
|
2349
2355
|
}),
|
|
2350
|
-
!o &&
|
|
2356
|
+
!o && K(l, "left"),
|
|
2351
2357
|
e,
|
|
2352
|
-
!o &&
|
|
2358
|
+
!o && K(u, "right")
|
|
2353
2359
|
]
|
|
2354
2360
|
});
|
|
2355
2361
|
}
|
|
2356
2362
|
//#endregion
|
|
2357
2363
|
//#region src/components/AppCallout.jsx
|
|
2358
|
-
function
|
|
2364
|
+
function xe({ children: e, icon: r = "info", className: i = "" }) {
|
|
2359
2365
|
return /* @__PURE__ */ n("div", {
|
|
2360
2366
|
className: `info-callout${i ? ` ${i}` : ""}`,
|
|
2361
2367
|
children: [r && /* @__PURE__ */ t("span", {
|
|
@@ -2369,7 +2375,7 @@ function ve({ children: e, icon: r = "info", className: i = "" }) {
|
|
|
2369
2375
|
}
|
|
2370
2376
|
//#endregion
|
|
2371
2377
|
//#region src/components/AppCard.jsx
|
|
2372
|
-
function
|
|
2378
|
+
function Se({ title: r, titleClassName: i = "", header: a, headerExtra: o, headerActions: s, children: c, className: l = "", bodyClassName: u = "", headerClassName: d = "", body: p = !0, lifted: m = !1, ...h }) {
|
|
2373
2379
|
let g = a != null || r != null || o != null || s != null;
|
|
2374
2380
|
return /* @__PURE__ */ n(f, {
|
|
2375
2381
|
className: [m ? "card-lifted" : "", l].filter(Boolean).join(" ") || void 0,
|
|
@@ -2393,7 +2399,7 @@ function ye({ title: r, titleClassName: i = "", header: a, headerExtra: o, heade
|
|
|
2393
2399
|
}
|
|
2394
2400
|
//#endregion
|
|
2395
2401
|
//#region src/components/AppCheckbox.jsx
|
|
2396
|
-
var
|
|
2402
|
+
var Ce = r(function({ label: e, id: r, name: i, className: o = "", ...s }, c) {
|
|
2397
2403
|
let l = a(), u = r || i || l;
|
|
2398
2404
|
return /* @__PURE__ */ n("div", {
|
|
2399
2405
|
className: `form-check${o ? ` ${o}` : ""}`,
|
|
@@ -2413,7 +2419,7 @@ var be = r(function({ label: e, id: r, name: i, className: o = "", ...s }, c) {
|
|
|
2413
2419
|
});
|
|
2414
2420
|
//#endregion
|
|
2415
2421
|
//#region src/components/AppChip.jsx
|
|
2416
|
-
function
|
|
2422
|
+
function we({ 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 = "" }) {
|
|
2417
2423
|
let m = r ?? i, h = [
|
|
2418
2424
|
"chip",
|
|
2419
2425
|
a && a !== "neutral" ? a : "",
|
|
@@ -2464,7 +2470,7 @@ function xe({ label: r, children: i, tone: a = "neutral", size: o = "md", leadin
|
|
|
2464
2470
|
}
|
|
2465
2471
|
//#endregion
|
|
2466
2472
|
//#region src/components/AppChoiceCard.jsx
|
|
2467
|
-
function
|
|
2473
|
+
function Te({ 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 = "" }) {
|
|
2468
2474
|
return /* @__PURE__ */ n("label", {
|
|
2469
2475
|
className: `struct-card${d ? " struct-card-img-card" : ""}${o ? " checked" : ""}${v ? ` ${v}` : ""}`,
|
|
2470
2476
|
children: [
|
|
@@ -2512,7 +2518,7 @@ function Se({ name: r, multiple: i = !1, value: a, checked: o, onChange: s, icon
|
|
|
2512
2518
|
}
|
|
2513
2519
|
//#endregion
|
|
2514
2520
|
//#region src/components/AppChoiceChip.jsx
|
|
2515
|
-
function
|
|
2521
|
+
function Ee({ multiple: e = !0, label: r, name: i, value: a, checked: o, onChange: s, children: c, count: l, className: u = "" }) {
|
|
2516
2522
|
return /* @__PURE__ */ n("label", {
|
|
2517
2523
|
className: `choice-chip${o ? " checked" : ""}${u ? ` ${u}` : ""}`,
|
|
2518
2524
|
children: [
|
|
@@ -2533,7 +2539,7 @@ function Ce({ multiple: e = !0, label: r, name: i, value: a, checked: o, onChang
|
|
|
2533
2539
|
}
|
|
2534
2540
|
//#endregion
|
|
2535
2541
|
//#region src/components/AppColorField.jsx
|
|
2536
|
-
function
|
|
2542
|
+
function De({ value: e = "#000000", onChange: r, label: i, required: a = !1, error: o, hint: s, name: c, id: l, disabled: u = !1, className: d = "" }) {
|
|
2537
2543
|
let f = l || c;
|
|
2538
2544
|
return /* @__PURE__ */ n("div", {
|
|
2539
2545
|
className: `field${d ? ` ${d}` : ""}`,
|
|
@@ -2541,7 +2547,7 @@ function we({ value: e = "#000000", onChange: r, label: i, required: a = !1, err
|
|
|
2541
2547
|
i && /* @__PURE__ */ n("label", {
|
|
2542
2548
|
className: "label",
|
|
2543
2549
|
htmlFor: f,
|
|
2544
|
-
children: [i, a && /* @__PURE__ */ t(
|
|
2550
|
+
children: [i, a && /* @__PURE__ */ t(G, {})]
|
|
2545
2551
|
}),
|
|
2546
2552
|
/* @__PURE__ */ n("div", {
|
|
2547
2553
|
className: "color-field",
|
|
@@ -2580,7 +2586,7 @@ function we({ value: e = "#000000", onChange: r, label: i, required: a = !1, err
|
|
|
2580
2586
|
}
|
|
2581
2587
|
//#endregion
|
|
2582
2588
|
//#region src/components/AppCompareTable.jsx
|
|
2583
|
-
function
|
|
2589
|
+
function Oe({ columns: e = [], rows: r = [], caption: i, className: a = "" }) {
|
|
2584
2590
|
let o = (e) => e === !0 ? /* @__PURE__ */ t("span", {
|
|
2585
2591
|
className: "compare-yes",
|
|
2586
2592
|
children: /* @__PURE__ */ t(x, {
|
|
@@ -2615,7 +2621,7 @@ function Te({ columns: e = [], rows: r = [], caption: i, className: a = "" }) {
|
|
|
2615
2621
|
}
|
|
2616
2622
|
//#endregion
|
|
2617
2623
|
//#region src/components/AppInfoTip.jsx
|
|
2618
|
-
function
|
|
2624
|
+
function J({ label: e, children: r }) {
|
|
2619
2625
|
let [i, l] = c(!1), [u, d] = c(null), f = s(null), p = s(null), h = a();
|
|
2620
2626
|
return o(() => {
|
|
2621
2627
|
if (!i || !f.current || !p.current) return;
|
|
@@ -2661,7 +2667,7 @@ function Y({ label: e, children: r }) {
|
|
|
2661
2667
|
}
|
|
2662
2668
|
//#endregion
|
|
2663
2669
|
//#region src/components/AppInput.jsx
|
|
2664
|
-
var
|
|
2670
|
+
var Y = r(function({ label: e, required: r = !1, error: i, hint: a, help: o, helpLabel: s = "More information", type: l = "text", leftIcon: u, rightIcon: d, onRightIconClick: f, unit: m, id: h, name: g, className: _ = "", fieldClassName: v = "", disabled: y = !1, ...b }, S) {
|
|
2665
2671
|
let [C, w] = c(!1), T = h || g, E = l === "password", D = E && C ? "text" : l, O = [
|
|
2666
2672
|
"input",
|
|
2667
2673
|
i ? "error" : "",
|
|
@@ -2728,11 +2734,11 @@ var X = r(function({ label: e, required: r = !1, error: i, hint: a, help: o, hel
|
|
|
2728
2734
|
htmlFor: T,
|
|
2729
2735
|
children: [
|
|
2730
2736
|
e,
|
|
2731
|
-
o && /* @__PURE__ */ t(
|
|
2737
|
+
o && /* @__PURE__ */ t(J, {
|
|
2732
2738
|
label: s,
|
|
2733
2739
|
children: o
|
|
2734
2740
|
}),
|
|
2735
|
-
r && /* @__PURE__ */ t(
|
|
2741
|
+
r && /* @__PURE__ */ t(G, {})
|
|
2736
2742
|
]
|
|
2737
2743
|
}),
|
|
2738
2744
|
A,
|
|
@@ -2745,14 +2751,14 @@ var X = r(function({ label: e, required: r = !1, error: i, hint: a, help: o, hel
|
|
|
2745
2751
|
}) : null
|
|
2746
2752
|
]
|
|
2747
2753
|
});
|
|
2748
|
-
}),
|
|
2749
|
-
function
|
|
2754
|
+
}), ke = "a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex=\"-1\"])";
|
|
2755
|
+
function X({ open: e, title: r, subtitle: a, headerIcon: o, onClose: c, footer: l, size: u, wide: d = !1, side: f = !1, maxWidth: p, hideHeader: m = !1, className: g = "", children: _ }) {
|
|
2750
2756
|
let v = s(null);
|
|
2751
2757
|
i(() => {
|
|
2752
2758
|
if (!e) return;
|
|
2753
2759
|
let t = v.current?.closest(".modal-content");
|
|
2754
2760
|
if (!t) return;
|
|
2755
|
-
let n = () => Array.from(t.querySelectorAll(
|
|
2761
|
+
let n = () => Array.from(t.querySelectorAll(ke));
|
|
2756
2762
|
(t.querySelector("[data-autofocus]") || n().find((e) => !e.classList.contains("lx-modal-close")) || n()[0] || t).focus?.();
|
|
2757
2763
|
}, [e]);
|
|
2758
2764
|
let y = ["lx-modal-shell", f ? "is-side" : ""].filter(Boolean).join(" "), b = [
|
|
@@ -2832,27 +2838,27 @@ function Z({ open: e, title: r, subtitle: a, headerIcon: o, onClose: c, footer:
|
|
|
2832
2838
|
}
|
|
2833
2839
|
//#endregion
|
|
2834
2840
|
//#region src/components/ModalIcons.jsx
|
|
2835
|
-
var
|
|
2841
|
+
var Z = (e) => function({ size: n = 72 }) {
|
|
2836
2842
|
return /* @__PURE__ */ t("wui-status-icon", {
|
|
2837
2843
|
tone: e,
|
|
2838
2844
|
size: n
|
|
2839
2845
|
});
|
|
2840
|
-
},
|
|
2841
|
-
success:
|
|
2842
|
-
error:
|
|
2843
|
-
warning:
|
|
2844
|
-
info:
|
|
2845
|
-
delete:
|
|
2846
|
+
}, Ae = {
|
|
2847
|
+
success: Z("success"),
|
|
2848
|
+
error: Z("error"),
|
|
2849
|
+
warning: Z("warning"),
|
|
2850
|
+
info: Z("info"),
|
|
2851
|
+
delete: Z("delete")
|
|
2846
2852
|
};
|
|
2847
2853
|
//#endregion
|
|
2848
2854
|
//#region src/components/AppConfirmDialog.jsx
|
|
2849
|
-
function
|
|
2855
|
+
function je({ open: r, title: a, message: o, confirmLabel: s = "Confirm", cancelLabel: l = "Cancel", danger: u = !1, tone: d, confirmPhrase: f, onConfirm: p, onClose: m }) {
|
|
2850
2856
|
let [h, g] = c("");
|
|
2851
2857
|
if (i(() => {
|
|
2852
2858
|
r || g("");
|
|
2853
2859
|
}, [r]), !r) return null;
|
|
2854
|
-
let _ = !!f && h.trim() !== f, v =
|
|
2855
|
-
return /* @__PURE__ */ t(
|
|
2860
|
+
let _ = !!f && h.trim() !== f, v = Ae[d || (u ? "delete" : "info")];
|
|
2861
|
+
return /* @__PURE__ */ t(X, {
|
|
2856
2862
|
open: r,
|
|
2857
2863
|
hideHeader: !0,
|
|
2858
2864
|
title: a,
|
|
@@ -2860,11 +2866,11 @@ function Oe({ open: r, title: a, message: o, confirmLabel: s = "Confirm", cancel
|
|
|
2860
2866
|
className: "lx-confirm",
|
|
2861
2867
|
footer: /* @__PURE__ */ n("div", {
|
|
2862
2868
|
className: "lx-confirm-actions",
|
|
2863
|
-
children: [/* @__PURE__ */ t(
|
|
2869
|
+
children: [/* @__PURE__ */ t(q, {
|
|
2864
2870
|
variant: "secondary",
|
|
2865
2871
|
onClick: m,
|
|
2866
2872
|
children: l
|
|
2867
|
-
}), /* @__PURE__ */ t(
|
|
2873
|
+
}), /* @__PURE__ */ t(q, {
|
|
2868
2874
|
variant: u ? "danger" : "primary",
|
|
2869
2875
|
disabled: _,
|
|
2870
2876
|
onClick: p,
|
|
@@ -2886,7 +2892,7 @@ function Oe({ open: r, title: a, message: o, confirmLabel: s = "Confirm", cancel
|
|
|
2886
2892
|
className: "lx-confirm-msg",
|
|
2887
2893
|
children: o
|
|
2888
2894
|
}),
|
|
2889
|
-
f && /* @__PURE__ */ t(
|
|
2895
|
+
f && /* @__PURE__ */ t(Y, {
|
|
2890
2896
|
fieldClassName: "mt-3 mb-0 w-100 text-start",
|
|
2891
2897
|
label: /* @__PURE__ */ n(e, { children: [
|
|
2892
2898
|
"Type ",
|
|
@@ -2903,7 +2909,7 @@ function Oe({ open: r, title: a, message: o, confirmLabel: s = "Confirm", cancel
|
|
|
2903
2909
|
}
|
|
2904
2910
|
//#endregion
|
|
2905
2911
|
//#region src/components/AppSkeleton.jsx
|
|
2906
|
-
function
|
|
2912
|
+
function Me({ width: e = "100%", height: n = 14, radius: r = 6, className: i = "", style: a }) {
|
|
2907
2913
|
return /* @__PURE__ */ t("span", {
|
|
2908
2914
|
className: `skeleton${i ? ` ${i}` : ""}`,
|
|
2909
2915
|
"aria-hidden": "true",
|
|
@@ -2915,7 +2921,7 @@ function ke({ width: e = "100%", height: n = 14, radius: r = 6, className: i = "
|
|
|
2915
2921
|
}
|
|
2916
2922
|
});
|
|
2917
2923
|
}
|
|
2918
|
-
var
|
|
2924
|
+
var Ne = [
|
|
2919
2925
|
"r0",
|
|
2920
2926
|
"r1",
|
|
2921
2927
|
"r2",
|
|
@@ -2924,7 +2930,7 @@ var Ae = [
|
|
|
2924
2930
|
"r5",
|
|
2925
2931
|
"r6",
|
|
2926
2932
|
"r7"
|
|
2927
|
-
],
|
|
2933
|
+
], Pe = [
|
|
2928
2934
|
"c0",
|
|
2929
2935
|
"c1",
|
|
2930
2936
|
"c2",
|
|
@@ -2934,54 +2940,55 @@ var Ae = [
|
|
|
2934
2940
|
"c6",
|
|
2935
2941
|
"c7"
|
|
2936
2942
|
];
|
|
2937
|
-
function
|
|
2938
|
-
return
|
|
2943
|
+
function Q({ rows: e = 4, cols: n = 5 }) {
|
|
2944
|
+
return Ne.slice(0, e).map((e) => /* @__PURE__ */ t("tr", { children: Pe.slice(0, n).map((e, n) => /* @__PURE__ */ t("td", { children: /* @__PURE__ */ t(Me, {
|
|
2939
2945
|
width: n === 0 ? "70%" : "50%",
|
|
2940
2946
|
height: 12
|
|
2941
2947
|
}) }, e)) }, e));
|
|
2942
2948
|
}
|
|
2943
2949
|
//#endregion
|
|
2944
2950
|
//#region src/components/AppSelectMini.jsx
|
|
2945
|
-
function
|
|
2946
|
-
let
|
|
2951
|
+
function Fe({ value: e, onChange: n, options: r = [], placeholder: a = "Select...", name: o, ariaLabel: c, id: l, disabled: u, className: d }) {
|
|
2952
|
+
let f = s(null);
|
|
2947
2953
|
return i(() => {
|
|
2948
|
-
|
|
2954
|
+
f.current && (f.current.options = r.map((e) => ({
|
|
2949
2955
|
value: e.value,
|
|
2950
2956
|
label: e.label ?? e.text ?? ""
|
|
2951
2957
|
})));
|
|
2952
2958
|
}, [r]), i(() => {
|
|
2953
|
-
let t =
|
|
2959
|
+
let t = f.current;
|
|
2954
2960
|
t && String(t.value ?? "") !== String(e ?? "") && (t.value = e ?? "");
|
|
2955
2961
|
}, [e]), i(() => {
|
|
2956
|
-
let e =
|
|
2962
|
+
let e = f.current;
|
|
2957
2963
|
if (!e) return;
|
|
2958
2964
|
let t = () => n?.(e.value);
|
|
2959
2965
|
return e.addEventListener("change", t), () => e.removeEventListener("change", t);
|
|
2960
2966
|
}, [n]), /* @__PURE__ */ t("wui-select", {
|
|
2961
|
-
ref:
|
|
2967
|
+
ref: f,
|
|
2962
2968
|
name: o,
|
|
2963
2969
|
compact: "",
|
|
2964
2970
|
id: l,
|
|
2965
2971
|
placeholder: a,
|
|
2966
2972
|
"aria-label": c,
|
|
2967
|
-
disabled: u ? "" : void 0
|
|
2973
|
+
disabled: u ? "" : void 0,
|
|
2974
|
+
className: d
|
|
2968
2975
|
});
|
|
2969
2976
|
}
|
|
2970
2977
|
//#endregion
|
|
2971
2978
|
//#region src/components/AppTablePagination.jsx
|
|
2972
|
-
var
|
|
2979
|
+
var Ie = [
|
|
2973
2980
|
5,
|
|
2974
2981
|
10,
|
|
2975
2982
|
25,
|
|
2976
2983
|
50
|
|
2977
2984
|
];
|
|
2978
|
-
function
|
|
2985
|
+
function Le({ page: e, totalPages: r, pageSize: i, total: a, firstRow: o, lastRow: s, onPageChange: c, onPageSizeChange: l, pageSizes: u = Ie }) {
|
|
2979
2986
|
return /* @__PURE__ */ n("div", {
|
|
2980
2987
|
className: "table-pagination",
|
|
2981
2988
|
children: [
|
|
2982
2989
|
/* @__PURE__ */ n("span", {
|
|
2983
2990
|
className: "tpg-rows",
|
|
2984
|
-
children: ["Rows per page:", /* @__PURE__ */ t(
|
|
2991
|
+
children: ["Rows per page:", /* @__PURE__ */ t(Fe, {
|
|
2985
2992
|
compact: !0,
|
|
2986
2993
|
value: i,
|
|
2987
2994
|
onChange: (e) => l(Number(e)),
|
|
@@ -3031,13 +3038,13 @@ function Fe({ page: e, totalPages: r, pageSize: i, total: a, firstRow: o, lastRo
|
|
|
3031
3038
|
}
|
|
3032
3039
|
//#endregion
|
|
3033
3040
|
//#region src/components/AppDataTable.jsx
|
|
3034
|
-
function
|
|
3041
|
+
function Re(e) {
|
|
3035
3042
|
return e === "end" ? "lx-cell-end" : e === "num" ? "num" : e === "center" ? "text-center" : "";
|
|
3036
3043
|
}
|
|
3037
|
-
function
|
|
3044
|
+
function ze(e) {
|
|
3038
3045
|
return e == null || e === "" ? "—" : e;
|
|
3039
3046
|
}
|
|
3040
|
-
function
|
|
3047
|
+
function Be({ 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: S }) {
|
|
3041
3048
|
let C = Math.max(1, r.length + +!!p + +!!v), w = v && i ? i.reduce((e, t) => e + +!!y?.has(a(t)), 0) : 0, T = v && i && i.length > 0 && w === i.length, E = w > 0 && !T, D = (e) => {
|
|
3042
3049
|
e && (e.indeterminate = E);
|
|
3043
3050
|
}, O = d !== void 0 && f > 0 ? d : u;
|
|
@@ -3061,7 +3068,7 @@ function Re({ columns: r, rows: i, rowKey: a = (e) => e.id, sort: o, onSort: s,
|
|
|
3061
3068
|
r.map((e) => {
|
|
3062
3069
|
let r = !!(e.sortable && s), i = o && o.key === e.key;
|
|
3063
3070
|
return /* @__PURE__ */ n("th", {
|
|
3064
|
-
className: (r ? "sortable " : "") +
|
|
3071
|
+
className: (r ? "sortable " : "") + Re(e.align),
|
|
3065
3072
|
style: e.width ? { width: e.width } : void 0,
|
|
3066
3073
|
tabIndex: r ? 0 : void 0,
|
|
3067
3074
|
"aria-sort": i ? o.dir === "asc" ? "ascending" : "descending" : r ? "none" : void 0,
|
|
@@ -3088,7 +3095,7 @@ function Re({ columns: r, rows: i, rowKey: a = (e) => e.id, sort: o, onSort: s,
|
|
|
3088
3095
|
children: "Actions"
|
|
3089
3096
|
})
|
|
3090
3097
|
}))
|
|
3091
|
-
] }) }), /* @__PURE__ */ t("tbody", { children: c ? /* @__PURE__ */ t(
|
|
3098
|
+
] }) }), /* @__PURE__ */ t("tbody", { children: c ? /* @__PURE__ */ t(Q, {
|
|
3092
3099
|
rows: l,
|
|
3093
3100
|
cols: C
|
|
3094
3101
|
}) : i?.length ? i.map((e) => {
|
|
@@ -3107,8 +3114,8 @@ function Re({ columns: r, rows: i, rowKey: a = (e) => e.id, sort: o, onSort: s,
|
|
|
3107
3114
|
})
|
|
3108
3115
|
}),
|
|
3109
3116
|
r.map((n) => /* @__PURE__ */ t("td", {
|
|
3110
|
-
className:
|
|
3111
|
-
children: n.render ? n.render(e) :
|
|
3117
|
+
className: Re(n.align) + (n.cellClassName ? ` ${n.cellClassName}` : ""),
|
|
3118
|
+
children: n.render ? n.render(e) : ze(e[n.key])
|
|
3112
3119
|
}, n.key)),
|
|
3113
3120
|
p && /* @__PURE__ */ t("td", { children: /* @__PURE__ */ t("div", {
|
|
3114
3121
|
className: "u-row-actions",
|
|
@@ -3122,7 +3129,7 @@ function Re({ columns: r, rows: i, rowKey: a = (e) => e.id, sort: o, onSort: s,
|
|
|
3122
3129
|
children: O
|
|
3123
3130
|
}) }) })]
|
|
3124
3131
|
})
|
|
3125
|
-
}), h && !c && h.total > 0 && /* @__PURE__ */ t(
|
|
3132
|
+
}), h && !c && h.total > 0 && /* @__PURE__ */ t(Le, {
|
|
3126
3133
|
page: h.page,
|
|
3127
3134
|
totalPages: h.totalPages,
|
|
3128
3135
|
pageSize: h.pageSize,
|
|
@@ -3135,7 +3142,7 @@ function Re({ columns: r, rows: i, rowKey: a = (e) => e.id, sort: o, onSort: s,
|
|
|
3135
3142
|
}
|
|
3136
3143
|
//#endregion
|
|
3137
3144
|
//#region src/components/AppDatePicker.jsx
|
|
3138
|
-
function
|
|
3145
|
+
function Ve({ value: e, onChange: r, label: o, required: c = !1, hint: l, error: u, name: d, min: f, max: p, placeholder: m = "Enter Date", disabled: h, id: g, ariaLabel: _, className: v = "" }) {
|
|
3139
3146
|
let y = s(null), b = a(), x = g || d || b;
|
|
3140
3147
|
i(() => {
|
|
3141
3148
|
let t = y.current;
|
|
@@ -3183,7 +3190,7 @@ function ze({ value: e, onChange: r, label: o, required: c = !1, hint: l, error:
|
|
|
3183
3190
|
}
|
|
3184
3191
|
//#endregion
|
|
3185
3192
|
//#region src/components/AppDropdown.jsx
|
|
3186
|
-
var
|
|
3193
|
+
var He = r(function({ icon: e, iconSize: n = 20, btnClassName: r = "topbar-icon-btn", label: i, align: a = "end", "aria-label": o, className: s, ...c }, l) {
|
|
3187
3194
|
return /* @__PURE__ */ t("button", {
|
|
3188
3195
|
ref: l,
|
|
3189
3196
|
type: "button",
|
|
@@ -3197,11 +3204,11 @@ var Be = r(function({ icon: e, iconSize: n = 20, btnClassName: r = "topbar-icon-
|
|
|
3197
3204
|
})
|
|
3198
3205
|
});
|
|
3199
3206
|
});
|
|
3200
|
-
function
|
|
3207
|
+
function Ue({ icon: e, iconSize: r, toggleClassName: i = "topbar-icon-btn", label: a, ariaLabel: o, align: s = "end", items: c = [], menuClassName: l = "", linkComponent: u }) {
|
|
3201
3208
|
return /* @__PURE__ */ n(g, {
|
|
3202
3209
|
align: s,
|
|
3203
3210
|
children: [/* @__PURE__ */ t(g.Toggle, {
|
|
3204
|
-
as:
|
|
3211
|
+
as: He,
|
|
3205
3212
|
icon: e,
|
|
3206
3213
|
iconSize: r,
|
|
3207
3214
|
btnClassName: i,
|
|
@@ -3237,7 +3244,7 @@ function Ve({ icon: e, iconSize: r, toggleClassName: i = "topbar-icon-btn", labe
|
|
|
3237
3244
|
}
|
|
3238
3245
|
//#endregion
|
|
3239
3246
|
//#region src/components/AppEmptyState.jsx
|
|
3240
|
-
function
|
|
3247
|
+
function We({ icon: e, iconSize: r = 24, size: i = "md", title: a, text: o, action: s, className: c = "", style: l }) {
|
|
3241
3248
|
return /* @__PURE__ */ n("div", {
|
|
3242
3249
|
className: [
|
|
3243
3250
|
"empty-state",
|
|
@@ -3246,13 +3253,13 @@ function He({ icon: e, iconSize: r = 24, size: i = "md", title: a, text: o, acti
|
|
|
3246
3253
|
].filter(Boolean).join(" "),
|
|
3247
3254
|
style: l,
|
|
3248
3255
|
children: [
|
|
3249
|
-
/* @__PURE__ */ t("div", {
|
|
3256
|
+
e ? /* @__PURE__ */ t("div", {
|
|
3250
3257
|
className: "empty-state-icon",
|
|
3251
3258
|
children: /* @__PURE__ */ t(x, {
|
|
3252
3259
|
name: e,
|
|
3253
3260
|
size: r
|
|
3254
3261
|
})
|
|
3255
|
-
}),
|
|
3262
|
+
}) : null,
|
|
3256
3263
|
a != null && /* @__PURE__ */ t("div", {
|
|
3257
3264
|
className: "empty-state-title",
|
|
3258
3265
|
children: a
|
|
@@ -3270,7 +3277,7 @@ function He({ icon: e, iconSize: r = 24, size: i = "md", title: a, text: o, acti
|
|
|
3270
3277
|
}
|
|
3271
3278
|
//#endregion
|
|
3272
3279
|
//#region src/components/AppFileAttachment.jsx
|
|
3273
|
-
function
|
|
3280
|
+
function Ge({ label: r = "Attachment", value: o, name: s, onChange: l, accept: u = V, maxSizeMb: d = 5, optional: f = !1, error: p, id: m }) {
|
|
3274
3281
|
let h = a(), g = m || s || h, [_, v] = c(null), [y, b] = c("");
|
|
3275
3282
|
i(() => {
|
|
3276
3283
|
if (o instanceof File) {
|
|
@@ -3282,7 +3289,7 @@ function Ue({ label: r = "Attachment", value: o, name: s, onChange: l, accept: u
|
|
|
3282
3289
|
function S(e) {
|
|
3283
3290
|
let t = e.target.files?.[0];
|
|
3284
3291
|
if (e.target.value = "", !t) return;
|
|
3285
|
-
let n =
|
|
3292
|
+
let n = U(t, {
|
|
3286
3293
|
accept: u,
|
|
3287
3294
|
maxSizeMb: d
|
|
3288
3295
|
});
|
|
@@ -3381,22 +3388,22 @@ function Ue({ label: r = "Attachment", value: o, name: s, onChange: l, accept: u
|
|
|
3381
3388
|
}
|
|
3382
3389
|
//#endregion
|
|
3383
3390
|
//#region src/components/toast.js
|
|
3384
|
-
var
|
|
3391
|
+
var Ke = /* @__PURE__ */ new Set([
|
|
3385
3392
|
"success",
|
|
3386
3393
|
"info",
|
|
3387
3394
|
"warning",
|
|
3388
3395
|
"error"
|
|
3389
3396
|
]);
|
|
3390
3397
|
function $(e, t = "success") {
|
|
3391
|
-
let n =
|
|
3398
|
+
let n = Ke.has(t) ? t : "success";
|
|
3392
3399
|
_[n](e, { toastId: `${n}:${e}` });
|
|
3393
3400
|
}
|
|
3394
|
-
function
|
|
3401
|
+
function qe(e) {
|
|
3395
3402
|
_.error(e, { toastId: `error:${e}` });
|
|
3396
3403
|
}
|
|
3397
3404
|
//#endregion
|
|
3398
3405
|
//#region src/components/AppFilePicker.jsx
|
|
3399
|
-
function
|
|
3406
|
+
function Je({ label: e, value: r, name: o, onPick: l, accept: u = ".jpg,.jpeg,.png", maxSizeMb: d = 5, required: f, error: p }) {
|
|
3400
3407
|
let [m, h] = c(null), [g, _] = c(!1), v = s(null), y = a(), b = o || y;
|
|
3401
3408
|
i(() => {
|
|
3402
3409
|
if (r instanceof File) {
|
|
@@ -3406,7 +3413,7 @@ function Ke({ label: e, value: r, name: o, onPick: l, accept: u = ".jpg,.jpeg,.p
|
|
|
3406
3413
|
h(null);
|
|
3407
3414
|
}, [r]);
|
|
3408
3415
|
let S = r?.url || m, C = (e) => {
|
|
3409
|
-
let t =
|
|
3416
|
+
let t = U(e, {
|
|
3410
3417
|
accept: u,
|
|
3411
3418
|
maxSizeMb: d
|
|
3412
3419
|
});
|
|
@@ -3436,7 +3443,7 @@ function Ke({ label: e, value: r, name: o, onPick: l, accept: u = ".jpg,.jpeg,.p
|
|
|
3436
3443
|
/* @__PURE__ */ n("label", {
|
|
3437
3444
|
className: "label",
|
|
3438
3445
|
htmlFor: b,
|
|
3439
|
-
children: [e, f && /* @__PURE__ */ t(
|
|
3446
|
+
children: [e, f && /* @__PURE__ */ t(G, {})]
|
|
3440
3447
|
}),
|
|
3441
3448
|
S ? /* @__PURE__ */ n("div", {
|
|
3442
3449
|
className: `file-preview${p ? " error" : ""}`,
|
|
@@ -3521,7 +3528,7 @@ function Ke({ label: e, value: r, name: o, onPick: l, accept: u = ".jpg,.jpeg,.p
|
|
|
3521
3528
|
}
|
|
3522
3529
|
//#endregion
|
|
3523
3530
|
//#region src/components/AppInfoList.jsx
|
|
3524
|
-
function
|
|
3531
|
+
function Ye({ items: r = [], className: i = "" }) {
|
|
3525
3532
|
return /* @__PURE__ */ t("div", {
|
|
3526
3533
|
className: `info-list${i ? ` ${i}` : ""}`,
|
|
3527
3534
|
children: r.map((r, i) => {
|
|
@@ -3554,7 +3561,7 @@ function qe({ items: r = [], className: i = "" }) {
|
|
|
3554
3561
|
}
|
|
3555
3562
|
//#endregion
|
|
3556
3563
|
//#region src/components/AppKpiTile.jsx
|
|
3557
|
-
function
|
|
3564
|
+
function Xe({ label: e, value: r, icon: i, delta: a, deltaDirection: o = "flat", inline: s = !1, className: c = "" }) {
|
|
3558
3565
|
let l = `kpi${s ? " kpi-inline" : ""}${c ? ` ${c}` : ""}`, u = o === "up" ? "arrow-up" : o === "down" ? "arrow-down" : null;
|
|
3559
3566
|
return /* @__PURE__ */ n("div", {
|
|
3560
3567
|
className: l,
|
|
@@ -3586,7 +3593,7 @@ function Je({ label: e, value: r, icon: i, delta: a, deltaDirection: o = "flat",
|
|
|
3586
3593
|
}
|
|
3587
3594
|
//#endregion
|
|
3588
3595
|
//#region src/components/AppLogoPicker.jsx
|
|
3589
|
-
function
|
|
3596
|
+
function Ze({ value: r, fallback: i, name: a, onPick: o, loading: c = !1, accept: l = "image/png,image/jpeg", maxSizeMb: u = 5, overlayIcon: d = "image", overlayLabel: f = "Update photo", ariaLabel: p = "Upload photo" }) {
|
|
3590
3597
|
let m = s(null);
|
|
3591
3598
|
return /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("button", {
|
|
3592
3599
|
type: "button",
|
|
@@ -3631,7 +3638,7 @@ function Ye({ value: r, fallback: i, name: a, onPick: o, loading: c = !1, accept
|
|
|
3631
3638
|
onChange: (e) => {
|
|
3632
3639
|
let t = e.target.files?.[0];
|
|
3633
3640
|
if (e.target.value = "", !t) return;
|
|
3634
|
-
let n =
|
|
3641
|
+
let n = U(t, {
|
|
3635
3642
|
accept: l,
|
|
3636
3643
|
maxSizeMb: u
|
|
3637
3644
|
});
|
|
@@ -3646,7 +3653,7 @@ function Ye({ value: r, fallback: i, name: a, onPick: o, loading: c = !1, accept
|
|
|
3646
3653
|
}
|
|
3647
3654
|
//#endregion
|
|
3648
3655
|
//#region src/components/AppMultiSelect.jsx
|
|
3649
|
-
function
|
|
3656
|
+
function Qe({ values: e, onChange: r, options: a, placeholder: o = "Select…", searchPlaceholder: c = "Search…", searchable: l = !0, disabled: u = !1, name: d, label: f, error: p, hint: m, required: h = !1, fieldClassName: g = "" }) {
|
|
3650
3657
|
let _ = s(null);
|
|
3651
3658
|
return i(() => {
|
|
3652
3659
|
let e = _.current;
|
|
@@ -3667,7 +3674,7 @@ function Xe({ values: e, onChange: r, options: a, placeholder: o = "Select…",
|
|
|
3667
3674
|
f && /* @__PURE__ */ n("label", {
|
|
3668
3675
|
className: "label",
|
|
3669
3676
|
htmlFor: d,
|
|
3670
|
-
children: [f, h && /* @__PURE__ */ t(
|
|
3677
|
+
children: [f, h && /* @__PURE__ */ t(G, {})]
|
|
3671
3678
|
}),
|
|
3672
3679
|
/* @__PURE__ */ t("wui-multiselect", {
|
|
3673
3680
|
"aria-label": typeof f == "string" ? f : void 0,
|
|
@@ -3691,7 +3698,7 @@ function Xe({ values: e, onChange: r, options: a, placeholder: o = "Select…",
|
|
|
3691
3698
|
}
|
|
3692
3699
|
//#endregion
|
|
3693
3700
|
//#region src/components/AppPageHeader.jsx
|
|
3694
|
-
function
|
|
3701
|
+
function $e({ title: e, subtitle: r, actions: i, className: a = "" }) {
|
|
3695
3702
|
return /* @__PURE__ */ n("div", {
|
|
3696
3703
|
className: `page-header${i ? " d-flex align-items-end justify-content-between" : ""}${a ? ` ${a}` : ""}`,
|
|
3697
3704
|
children: [/* @__PURE__ */ n("div", { children: [/* @__PURE__ */ t("div", {
|
|
@@ -3708,7 +3715,7 @@ function Ze({ title: e, subtitle: r, actions: i, className: a = "" }) {
|
|
|
3708
3715
|
}
|
|
3709
3716
|
//#endregion
|
|
3710
3717
|
//#region src/components/AppPhoneNumberInput.jsx
|
|
3711
|
-
function
|
|
3718
|
+
function et({ value: e, onChange: r, country: a, disabled: o = !1, name: c, label: l = "Phone number", placeholder: u = "Enter phone number", required: d = !1, error: f, fieldClassName: p = "" }) {
|
|
3712
3719
|
let m = s(null);
|
|
3713
3720
|
return i(() => {
|
|
3714
3721
|
let t = m.current;
|
|
@@ -3724,7 +3731,7 @@ function Qe({ value: e, onChange: r, country: a, disabled: o = !1, name: c, labe
|
|
|
3724
3731
|
l && /* @__PURE__ */ n("label", {
|
|
3725
3732
|
className: "label",
|
|
3726
3733
|
htmlFor: c,
|
|
3727
|
-
children: [l, d && /* @__PURE__ */ t(
|
|
3734
|
+
children: [l, d && /* @__PURE__ */ t(G, {})]
|
|
3728
3735
|
}),
|
|
3729
3736
|
/* @__PURE__ */ t("wui-phone", {
|
|
3730
3737
|
ref: m,
|
|
@@ -3742,7 +3749,7 @@ function Qe({ value: e, onChange: r, country: a, disabled: o = !1, name: c, labe
|
|
|
3742
3749
|
}
|
|
3743
3750
|
//#endregion
|
|
3744
3751
|
//#region src/components/AppPricingCard.jsx
|
|
3745
|
-
function
|
|
3752
|
+
function tt({ name: e, price: r, unit: i, tagline: a, features: o = [], cta: s, featured: c = !1, current: l = !1, badge: u = "Most popular", className: d = "" }) {
|
|
3746
3753
|
return /* @__PURE__ */ n("div", {
|
|
3747
3754
|
className: [
|
|
3748
3755
|
"plan-card",
|
|
@@ -3795,7 +3802,7 @@ function $e({ name: e, price: r, unit: i, tagline: a, features: o = [], cta: s,
|
|
|
3795
3802
|
}
|
|
3796
3803
|
//#endregion
|
|
3797
3804
|
//#region src/components/AppRadio.jsx
|
|
3798
|
-
var
|
|
3805
|
+
var nt = r(function({ label: e, id: r, name: i, className: o = "", ...s }, c) {
|
|
3799
3806
|
let l = a(), u = r || i || l;
|
|
3800
3807
|
return /* @__PURE__ */ n("div", {
|
|
3801
3808
|
className: `form-check${o ? ` ${o}` : ""}`,
|
|
@@ -3815,7 +3822,7 @@ var et = r(function({ label: e, id: r, name: i, className: o = "", ...s }, c) {
|
|
|
3815
3822
|
});
|
|
3816
3823
|
//#endregion
|
|
3817
3824
|
//#region src/components/AppRepeater.jsx
|
|
3818
|
-
function
|
|
3825
|
+
function rt({ 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 = "" }) {
|
|
3819
3826
|
let p = typeof u == "number" && e.length >= u, m = !!a && e.length > l;
|
|
3820
3827
|
return /* @__PURE__ */ n("div", {
|
|
3821
3828
|
className: `repeater${f ? ` ${f}` : ""}`,
|
|
@@ -3844,7 +3851,7 @@ function tt({ rows: e = [], renderRow: r, onAdd: i, onRemove: a, addLabel: o = "
|
|
|
3844
3851
|
})
|
|
3845
3852
|
]
|
|
3846
3853
|
}, e.id ?? i)),
|
|
3847
|
-
/* @__PURE__ */ t(
|
|
3854
|
+
/* @__PURE__ */ t(q, {
|
|
3848
3855
|
variant: "secondary",
|
|
3849
3856
|
size: "sm",
|
|
3850
3857
|
leftIcon: /* @__PURE__ */ t(x, {
|
|
@@ -3862,7 +3869,7 @@ function tt({ rows: e = [], renderRow: r, onAdd: i, onRemove: a, addLabel: o = "
|
|
|
3862
3869
|
}
|
|
3863
3870
|
//#endregion
|
|
3864
3871
|
//#region src/components/AppResourceCard.jsx
|
|
3865
|
-
function
|
|
3872
|
+
function it({ icon: r, title: i, text: a, href: o, external: s = !1, linkComponent: c, className: l = "" }) {
|
|
3866
3873
|
let u = /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("span", {
|
|
3867
3874
|
className: "res-card-icon",
|
|
3868
3875
|
children: /* @__PURE__ */ t(x, {
|
|
@@ -3893,7 +3900,7 @@ function nt({ icon: r, title: i, text: a, href: o, external: s = !1, linkCompone
|
|
|
3893
3900
|
}
|
|
3894
3901
|
//#endregion
|
|
3895
3902
|
//#region src/components/AppSearch.jsx
|
|
3896
|
-
function
|
|
3903
|
+
function at({ value: e, onValueChange: r, placeholder: i, ariaLabel: a, iconSize: o = 18, className: s = "", ...c }) {
|
|
3897
3904
|
return /* @__PURE__ */ n("div", {
|
|
3898
3905
|
className: [
|
|
3899
3906
|
"search-wrap",
|
|
@@ -3930,7 +3937,7 @@ function rt({ value: e, onValueChange: r, placeholder: i, ariaLabel: a, iconSize
|
|
|
3930
3937
|
}
|
|
3931
3938
|
//#endregion
|
|
3932
3939
|
//#region src/components/AppSegmented.jsx
|
|
3933
|
-
function
|
|
3940
|
+
function ot({ options: e = [], value: r, onChange: i, label: o, name: s, size: c = "md", className: l = "" }) {
|
|
3934
3941
|
let u = a(), d = s || u;
|
|
3935
3942
|
return /* @__PURE__ */ t("div", {
|
|
3936
3943
|
className: `segmented${c === "sm" ? " segmented-sm" : ""}${l ? ` ${l}` : ""}`,
|
|
@@ -3958,13 +3965,13 @@ function it({ options: e = [], value: r, onChange: i, label: o, name: s, size: c
|
|
|
3958
3965
|
}
|
|
3959
3966
|
//#endregion
|
|
3960
3967
|
//#region src/components/AppSelect.jsx
|
|
3961
|
-
var
|
|
3962
|
-
function
|
|
3968
|
+
var st = (e) => e == null ? "" : e.label ?? e.text ?? "";
|
|
3969
|
+
function ct({ value: e, onChange: r, options: a = [], placeholder: o = "Select...", searchPlaceholder: c = "Search...", searchable: l = !1, disabled: u, label: d, required: f = !1, error: p, hint: m, help: h, helpLabel: g = "More information", id: _, name: v, fieldClassName: y = "" }) {
|
|
3963
3970
|
let b = s(null);
|
|
3964
3971
|
i(() => {
|
|
3965
3972
|
b.current && (b.current.options = a.map((e) => ({
|
|
3966
3973
|
value: e.value,
|
|
3967
|
-
label:
|
|
3974
|
+
label: st(e)
|
|
3968
3975
|
})));
|
|
3969
3976
|
}, [a]), i(() => {
|
|
3970
3977
|
let t = b.current;
|
|
@@ -3995,11 +4002,11 @@ function ot({ value: e, onChange: r, options: a = [], placeholder: o = "Select..
|
|
|
3995
4002
|
htmlFor: S,
|
|
3996
4003
|
children: [
|
|
3997
4004
|
d,
|
|
3998
|
-
h && /* @__PURE__ */ t(
|
|
4005
|
+
h && /* @__PURE__ */ t(J, {
|
|
3999
4006
|
label: g,
|
|
4000
4007
|
children: h
|
|
4001
4008
|
}),
|
|
4002
|
-
f && /* @__PURE__ */ t(
|
|
4009
|
+
f && /* @__PURE__ */ t(G, {})
|
|
4003
4010
|
]
|
|
4004
4011
|
}),
|
|
4005
4012
|
x,
|
|
@@ -4015,7 +4022,7 @@ function ot({ value: e, onChange: r, options: a = [], placeholder: o = "Select..
|
|
|
4015
4022
|
}
|
|
4016
4023
|
//#endregion
|
|
4017
4024
|
//#region src/components/AppShell.jsx
|
|
4018
|
-
function
|
|
4025
|
+
function lt({ groups: e = [], brand: r, sidebarFooter: a, topbarStart: o, topbarEnd: s, footer: l, children: u, collapsed: d, onCollapsedChange: f, noSidebar: p = !1, navLabel: m = "Main navigation", linkComponent: h, className: g = "" }) {
|
|
4019
4026
|
let [_, v] = c(!1), [y, b] = c(!1), [S, C] = c(!1), w = d ?? _;
|
|
4020
4027
|
return i(() => {
|
|
4021
4028
|
let e = () => C(window.scrollY > 4);
|
|
@@ -4050,7 +4057,7 @@ function st({ groups: e = [], brand: r, sidebarFooter: a, topbarStart: o, topbar
|
|
|
4050
4057
|
children: [e.label && /* @__PURE__ */ t("div", {
|
|
4051
4058
|
className: "app-nav-group-label",
|
|
4052
4059
|
children: e.label
|
|
4053
|
-
}), e.items.map((e) => /* @__PURE__ */ t(
|
|
4060
|
+
}), e.items.map((e) => /* @__PURE__ */ t(ut, {
|
|
4054
4061
|
item: e,
|
|
4055
4062
|
linkComponent: h,
|
|
4056
4063
|
onNavigate: () => b(!1)
|
|
@@ -4120,7 +4127,7 @@ function st({ groups: e = [], brand: r, sidebarFooter: a, topbarStart: o, topbar
|
|
|
4120
4127
|
]
|
|
4121
4128
|
});
|
|
4122
4129
|
}
|
|
4123
|
-
function
|
|
4130
|
+
function ut({ item: r, linkComponent: i, onNavigate: a }) {
|
|
4124
4131
|
let o = `app-nav-item${r.active ? " active" : ""}`, s = /* @__PURE__ */ n(e, { children: [
|
|
4125
4132
|
r.icon && /* @__PURE__ */ t("span", {
|
|
4126
4133
|
className: "app-nav-icon",
|
|
@@ -4154,7 +4161,7 @@ function ct({ item: r, linkComponent: i, onNavigate: a }) {
|
|
|
4154
4161
|
}
|
|
4155
4162
|
//#endregion
|
|
4156
4163
|
//#region src/components/AppSidebarMenu.jsx
|
|
4157
|
-
var
|
|
4164
|
+
var dt = {
|
|
4158
4165
|
left: "start",
|
|
4159
4166
|
right: "end",
|
|
4160
4167
|
start: "start",
|
|
@@ -4162,11 +4169,11 @@ var lt = {
|
|
|
4162
4169
|
top: "top",
|
|
4163
4170
|
bottom: "bottom"
|
|
4164
4171
|
};
|
|
4165
|
-
function
|
|
4172
|
+
function ft({ 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: y }) {
|
|
4166
4173
|
return /* @__PURE__ */ n(v, {
|
|
4167
4174
|
show: e,
|
|
4168
4175
|
onHide: r,
|
|
4169
|
-
placement:
|
|
4176
|
+
placement: dt[i] || "end",
|
|
4170
4177
|
backdrop: d,
|
|
4171
4178
|
scroll: f,
|
|
4172
4179
|
keyboard: p,
|
|
@@ -4186,7 +4193,7 @@ function ut({ show: e, onHide: r, side: i = "right", title: a, titleIcon: o, hea
|
|
|
4186
4193
|
size: 18
|
|
4187
4194
|
})
|
|
4188
4195
|
}), a]
|
|
4189
|
-
}), m && /* @__PURE__ */ t(
|
|
4196
|
+
}), m && /* @__PURE__ */ t(q, {
|
|
4190
4197
|
variant: "ghost",
|
|
4191
4198
|
className: "btn-icon",
|
|
4192
4199
|
onClick: r,
|
|
@@ -4210,7 +4217,7 @@ function ut({ show: e, onHide: r, side: i = "right", title: a, titleIcon: o, hea
|
|
|
4210
4217
|
}
|
|
4211
4218
|
//#endregion
|
|
4212
4219
|
//#region src/components/AppSpinner.jsx
|
|
4213
|
-
function
|
|
4220
|
+
function pt({ size: e = "md", label: n = "Loading", className: r = "" }) {
|
|
4214
4221
|
return /* @__PURE__ */ t("span", {
|
|
4215
4222
|
className: `spinner-border${e === "sm" ? " spinner-border-sm" : ""}${r ? ` ${r}` : ""}`,
|
|
4216
4223
|
role: "status",
|
|
@@ -4219,7 +4226,7 @@ function dt({ size: e = "md", label: n = "Loading", className: r = "" }) {
|
|
|
4219
4226
|
}
|
|
4220
4227
|
//#endregion
|
|
4221
4228
|
//#region src/components/AppSplash.jsx
|
|
4222
|
-
function
|
|
4229
|
+
function mt({ logo: e, initials: r, text: i, label: a = "Loading", className: o = "" }) {
|
|
4223
4230
|
return /* @__PURE__ */ t("div", {
|
|
4224
4231
|
className: `splash${o ? ` ${o}` : ""}`,
|
|
4225
4232
|
role: "status",
|
|
@@ -4246,7 +4253,7 @@ function ft({ logo: e, initials: r, text: i, label: a = "Loading", className: o
|
|
|
4246
4253
|
}
|
|
4247
4254
|
//#endregion
|
|
4248
4255
|
//#region src/components/AppStatusBadge.jsx
|
|
4249
|
-
function
|
|
4256
|
+
function ht({ label: e, tone: n = "neutral", className: r = "" }) {
|
|
4250
4257
|
return e == null || e === "" ? "—" : /* @__PURE__ */ t("span", {
|
|
4251
4258
|
className: `status-label ${n}${r ? ` ${r}` : ""}`,
|
|
4252
4259
|
children: e
|
|
@@ -4254,7 +4261,7 @@ function pt({ label: e, tone: n = "neutral", className: r = "" }) {
|
|
|
4254
4261
|
}
|
|
4255
4262
|
//#endregion
|
|
4256
4263
|
//#region src/components/AppStepper.jsx
|
|
4257
|
-
function
|
|
4264
|
+
function gt({ steps: r = [], variant: i = "steps", label: a = "Progress", linkComponent: o, className: s = "" }) {
|
|
4258
4265
|
return /* @__PURE__ */ t("nav", {
|
|
4259
4266
|
className: [i === "journey" ? "stepper stepper-journey" : "stepper", s].filter(Boolean).join(" "),
|
|
4260
4267
|
"aria-label": a,
|
|
@@ -4301,7 +4308,7 @@ function mt({ steps: r = [], variant: i = "steps", label: a = "Progress", linkCo
|
|
|
4301
4308
|
}
|
|
4302
4309
|
//#endregion
|
|
4303
4310
|
//#region src/components/AppSwitch.jsx
|
|
4304
|
-
var
|
|
4311
|
+
var _t = r(function({ label: e, id: r, name: i, className: o = "", ...s }, c) {
|
|
4305
4312
|
let l = a(), u = r || i || l;
|
|
4306
4313
|
return /* @__PURE__ */ n("div", {
|
|
4307
4314
|
className: `form-check form-switch${o ? ` ${o}` : ""}`,
|
|
@@ -4321,7 +4328,7 @@ var ht = r(function({ label: e, id: r, name: i, className: o = "", ...s }, c) {
|
|
|
4321
4328
|
});
|
|
4322
4329
|
//#endregion
|
|
4323
4330
|
//#region src/components/AppTableEmptyState.jsx
|
|
4324
|
-
function
|
|
4331
|
+
function vt({ icon: e, title: r, text: i, action: a }) {
|
|
4325
4332
|
return /* @__PURE__ */ n("div", {
|
|
4326
4333
|
className: "tbl-empty",
|
|
4327
4334
|
children: [
|
|
@@ -4349,7 +4356,7 @@ function gt({ icon: e, title: r, text: i, action: a }) {
|
|
|
4349
4356
|
}
|
|
4350
4357
|
//#endregion
|
|
4351
4358
|
//#region src/components/AppTabs.jsx
|
|
4352
|
-
function
|
|
4359
|
+
function yt({ tabs: e, value: r, onChange: i, variant: a = "underline", ariaLabel: o, className: c = "" }) {
|
|
4353
4360
|
let l = s(null);
|
|
4354
4361
|
function u(t) {
|
|
4355
4362
|
let n = e.findIndex((e) => e.key === r);
|
|
@@ -4392,7 +4399,7 @@ function _t({ tabs: e, value: r, onChange: i, variant: a = "underline", ariaLabe
|
|
|
4392
4399
|
}
|
|
4393
4400
|
//#endregion
|
|
4394
4401
|
//#region src/components/AppTextarea.jsx
|
|
4395
|
-
var
|
|
4402
|
+
var bt = r(function({ label: e, required: r = !1, error: i, hint: a, help: o, helpLabel: s = "More information", id: c, name: l, rows: u = 4, className: d = "", fieldClassName: f = "", ...m }, h) {
|
|
4396
4403
|
let g = c || l, _ = [
|
|
4397
4404
|
"textarea",
|
|
4398
4405
|
i ? "error" : "",
|
|
@@ -4406,11 +4413,11 @@ var vt = r(function({ label: e, required: r = !1, error: i, hint: a, help: o, he
|
|
|
4406
4413
|
htmlFor: g,
|
|
4407
4414
|
children: [
|
|
4408
4415
|
e,
|
|
4409
|
-
o && /* @__PURE__ */ t(
|
|
4416
|
+
o && /* @__PURE__ */ t(J, {
|
|
4410
4417
|
label: s,
|
|
4411
4418
|
children: o
|
|
4412
4419
|
}),
|
|
4413
|
-
r && /* @__PURE__ */ t(
|
|
4420
|
+
r && /* @__PURE__ */ t(G, {})
|
|
4414
4421
|
]
|
|
4415
4422
|
}),
|
|
4416
4423
|
/* @__PURE__ */ t(p.Control, {
|
|
@@ -4435,7 +4442,7 @@ var vt = r(function({ label: e, required: r = !1, error: i, hint: a, help: o, he
|
|
|
4435
4442
|
});
|
|
4436
4443
|
//#endregion
|
|
4437
4444
|
//#region src/components/AppTimeline.jsx
|
|
4438
|
-
function
|
|
4445
|
+
function xt({ items: e = [], className: r = "" }) {
|
|
4439
4446
|
return /* @__PURE__ */ t("ol", {
|
|
4440
4447
|
className: `timeline${r ? ` ${r}` : ""}`,
|
|
4441
4448
|
children: e.map((e, r) => /* @__PURE__ */ n("li", {
|
|
@@ -4473,4 +4480,4 @@ function yt({ items: e = [], className: r = "" }) {
|
|
|
4473
4480
|
});
|
|
4474
4481
|
}
|
|
4475
4482
|
//#endregion
|
|
4476
|
-
export { S as ActionIcon, C as AppAccordion, w as AppAlert,
|
|
4483
|
+
export { S as ActionIcon, C as AppAccordion, w as AppAlert, ge as AppAutocomplete, ve as AppAvatar, ye as AppBadge, q as AppButton, xe as AppCallout, Se as AppCard, Ce as AppCheckbox, we as AppChip, Te as AppChoiceCard, Ee as AppChoiceChip, De as AppColorField, Oe as AppCompareTable, je as AppConfirmDialog, Be as AppDataTable, Ve as AppDatePicker, Ue as AppDropdown, We as AppEmptyState, Ge as AppFileAttachment, Je as AppFilePicker, Ye as AppInfoList, J as AppInfoTip, Y as AppInput, Xe as AppKpiTile, Ze as AppLogoPicker, X as AppModal, Qe as AppMultiSelect, $e as AppPageHeader, et as AppPhoneNumberInput, tt as AppPricingCard, nt as AppRadio, rt as AppRepeater, it as AppResourceCard, at as AppSearch, ot as AppSegmented, ct as AppSelect, Fe as AppSelectMini, lt as AppShell, ft as AppSidebarMenu, Me as AppSkeleton, Q as AppSkeletonRows, pt as AppSpinner, mt as AppSplash, ht as AppStatusBadge, gt as AppStepper, _t as AppSwitch, vt as AppTableEmptyState, Le as AppTablePagination, yt as AppTabs, bt as AppTextarea, xt as AppTimeline, x as Icon, Ae as MODAL_ICONS, G as RequiredMark, qe as errorToast, $ as toast };
|