@cal.macconnachie/web-components 2.1.6 → 2.2.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/index.d.ts +3 -0
- package/dist/index.js +130 -103
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -291,6 +291,7 @@ export declare class BaseSelect extends BaseElement {
|
|
|
291
291
|
size: SelectSize;
|
|
292
292
|
options: SelectOption[];
|
|
293
293
|
private isOpen;
|
|
294
|
+
private parsedFromSlot;
|
|
294
295
|
private searchQuery;
|
|
295
296
|
private highlightedIndex;
|
|
296
297
|
private isFlipped;
|
|
@@ -299,6 +300,8 @@ export declare class BaseSelect extends BaseElement {
|
|
|
299
300
|
private selectDisplay;
|
|
300
301
|
private dropdownElement;
|
|
301
302
|
private selectId;
|
|
303
|
+
connectedCallback(): void;
|
|
304
|
+
private parseSlottedOptions;
|
|
302
305
|
static styles: CSSResult;
|
|
303
306
|
private get selectedOption();
|
|
304
307
|
private get displayValue();
|
package/dist/index.js
CHANGED
|
@@ -633,7 +633,7 @@ var Ds = Object.defineProperty, Pr = (r, e, t, o) => {
|
|
|
633
633
|
(a = r[i]) && (s = a(e, t, s) || s);
|
|
634
634
|
return s && Ds(e, t, s), s;
|
|
635
635
|
};
|
|
636
|
-
class
|
|
636
|
+
class L extends Ue {
|
|
637
637
|
constructor() {
|
|
638
638
|
super(...arguments), this.theme = "light", this.storageKey = "theme-preference", this.boundThemeChangeHandler = this.handleGlobalThemeChange.bind(this);
|
|
639
639
|
}
|
|
@@ -661,11 +661,11 @@ class I extends Ue {
|
|
|
661
661
|
}
|
|
662
662
|
Pr([
|
|
663
663
|
u({ type: String, attribute: "data-theme", reflect: !0 })
|
|
664
|
-
],
|
|
664
|
+
], L.prototype, "theme");
|
|
665
665
|
Pr([
|
|
666
666
|
u({ type: String, attribute: "storage-key" })
|
|
667
|
-
],
|
|
668
|
-
const
|
|
667
|
+
], L.prototype, "storageKey");
|
|
668
|
+
const z = ({
|
|
669
669
|
name: r,
|
|
670
670
|
element: e
|
|
671
671
|
}) => {
|
|
@@ -1449,11 +1449,11 @@ const Us = [
|
|
|
1449
1449
|
"refresh_token",
|
|
1450
1450
|
"token_type",
|
|
1451
1451
|
"expires_in"
|
|
1452
|
-
], Ns = () =>
|
|
1452
|
+
], Ns = () => z({
|
|
1453
1453
|
name: "auth-form",
|
|
1454
1454
|
element: E
|
|
1455
1455
|
});
|
|
1456
|
-
class E extends
|
|
1456
|
+
class E extends L {
|
|
1457
1457
|
constructor() {
|
|
1458
1458
|
super(...arguments), this.initialMode = "signin", this.logoUrl = "", this.oauthDomain = "", this.oauthRegion = "", this.oauthUserPoolId = "", this.oauthClientId = "", this.oauthRedirectUri = "", this.oauthSpaDomain = "", this.disableSignup = !1, this.mockMode = !1, this.mode = "signin", this.resetStep = "none", this.signupStep = "form", this.isLoading = !1, this.isLoggedIn = !1, this.email = "", this.password = "", this.givenName = "", this.familyName = "", this.newPassword = "", this.confirmPassword = "", this.notice = "", this.error = "", this.errors = {}, this.userEmail = null, this.otpDigits = ["", "", "", "", "", ""], this.signupOtpDigits = ["", "", "", "", "", ""], this.hasHandledOAuthCallback = !1, this.handleAuthRefreshFailed = () => {
|
|
1459
1459
|
this.isLoggedIn = !1, this.userEmail = null;
|
|
@@ -2412,11 +2412,11 @@ var qs = Object.defineProperty, we = (r, e, t, o) => {
|
|
|
2412
2412
|
(a = r[i]) && (s = a(e, t, s) || s);
|
|
2413
2413
|
return s && qs(e, t, s), s;
|
|
2414
2414
|
};
|
|
2415
|
-
const Fs = () =>
|
|
2415
|
+
const Fs = () => z({
|
|
2416
2416
|
name: "base-button",
|
|
2417
2417
|
element: de
|
|
2418
2418
|
});
|
|
2419
|
-
class de extends
|
|
2419
|
+
class de extends L {
|
|
2420
2420
|
constructor() {
|
|
2421
2421
|
super(...arguments), this.size = "md", this.variant = "primary", this.hover = void 0, this.disabled = !1, this.fullWidth = !1, this.loading = !1, this.type = "button";
|
|
2422
2422
|
}
|
|
@@ -2914,11 +2914,11 @@ var Hs = Object.defineProperty, He = (r, e, t, o) => {
|
|
|
2914
2914
|
(a = r[i]) && (s = a(e, t, s) || s);
|
|
2915
2915
|
return s && Hs(e, t, s), s;
|
|
2916
2916
|
};
|
|
2917
|
-
const js = () =>
|
|
2917
|
+
const js = () => z({
|
|
2918
2918
|
name: "base-card",
|
|
2919
2919
|
element: Ee
|
|
2920
2920
|
});
|
|
2921
|
-
class Ee extends
|
|
2921
|
+
class Ee extends L {
|
|
2922
2922
|
constructor() {
|
|
2923
2923
|
super(...arguments), this.variant = "default", this.padding = "none", this.hoverable = !1, this.expandable = !1, this.isExpanded = !1;
|
|
2924
2924
|
}
|
|
@@ -3186,11 +3186,11 @@ var Vs = Object.defineProperty, R = (r, e, t, o) => {
|
|
|
3186
3186
|
(a = r[i]) && (s = a(e, t, s) || s);
|
|
3187
3187
|
return s && Vs(e, t, s), s;
|
|
3188
3188
|
};
|
|
3189
|
-
const Zs = () =>
|
|
3189
|
+
const Zs = () => z({
|
|
3190
3190
|
name: "base-date-picker",
|
|
3191
3191
|
element: P
|
|
3192
3192
|
});
|
|
3193
|
-
class P extends
|
|
3193
|
+
class P extends L {
|
|
3194
3194
|
constructor() {
|
|
3195
3195
|
super(...arguments), this.value = "", this.placeholder = "Select a date", this.required = !1, this.disabled = !1, this.size = "md", this.isOpen = !1, this.currentMonth = (/* @__PURE__ */ new Date()).getMonth(), this.currentYear = (/* @__PURE__ */ new Date()).getFullYear(), this.showMonthPicker = !1, this.showYearPicker = !1, this.yearRangeStart = (/* @__PURE__ */ new Date()).getFullYear() - 5, this.isFlipped = !1, this.alignRight = !1, this.inputId = `date-picker-${Math.random().toString(36).substr(2, 9)}`, this.weekDays = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], this.monthNames = [
|
|
3196
3196
|
"Jan",
|
|
@@ -4029,11 +4029,11 @@ var Ys = Object.defineProperty, B = (r, e, t, o) => {
|
|
|
4029
4029
|
(a = r[i]) && (s = a(e, t, s) || s);
|
|
4030
4030
|
return s && Ys(e, t, s), s;
|
|
4031
4031
|
};
|
|
4032
|
-
const Ws = () =>
|
|
4032
|
+
const Ws = () => z({
|
|
4033
4033
|
name: "base-time-picker",
|
|
4034
|
-
element:
|
|
4034
|
+
element: M
|
|
4035
4035
|
});
|
|
4036
|
-
class
|
|
4036
|
+
class M extends L {
|
|
4037
4037
|
constructor() {
|
|
4038
4038
|
super(...arguments), this.value = "", this.placeholder = "Select a time", this.required = !1, this.disabled = !1, this.size = "md", this.format = "12", this.isOpen = !1, this.selectedHour = 12, this.selectedMinute = 0, this.selectedPeriod = "AM", this.isFlipped = !1, this.alignRight = !1, this.inputId = `time-picker-${Math.random().toString(36).substr(2, 9)}`;
|
|
4039
4039
|
}
|
|
@@ -4489,73 +4489,73 @@ class z extends I {
|
|
|
4489
4489
|
}
|
|
4490
4490
|
B([
|
|
4491
4491
|
u({ type: String })
|
|
4492
|
-
],
|
|
4492
|
+
], M.prototype, "value");
|
|
4493
4493
|
B([
|
|
4494
4494
|
u({ type: String })
|
|
4495
|
-
],
|
|
4495
|
+
], M.prototype, "label");
|
|
4496
4496
|
B([
|
|
4497
4497
|
u({ type: String })
|
|
4498
|
-
],
|
|
4498
|
+
], M.prototype, "placeholder");
|
|
4499
4499
|
B([
|
|
4500
4500
|
u({ type: Boolean, reflect: !0 })
|
|
4501
|
-
],
|
|
4501
|
+
], M.prototype, "required");
|
|
4502
4502
|
B([
|
|
4503
4503
|
u({ type: Boolean, reflect: !0 })
|
|
4504
|
-
],
|
|
4504
|
+
], M.prototype, "disabled");
|
|
4505
4505
|
B([
|
|
4506
4506
|
u({ type: String })
|
|
4507
|
-
],
|
|
4507
|
+
], M.prototype, "error");
|
|
4508
4508
|
B([
|
|
4509
4509
|
u({ type: String })
|
|
4510
|
-
],
|
|
4510
|
+
], M.prototype, "hint");
|
|
4511
4511
|
B([
|
|
4512
4512
|
u({ type: String })
|
|
4513
|
-
],
|
|
4513
|
+
], M.prototype, "size");
|
|
4514
4514
|
B([
|
|
4515
4515
|
u({ type: String })
|
|
4516
|
-
],
|
|
4516
|
+
], M.prototype, "format");
|
|
4517
4517
|
B([
|
|
4518
4518
|
w()
|
|
4519
|
-
],
|
|
4519
|
+
], M.prototype, "isOpen");
|
|
4520
4520
|
B([
|
|
4521
4521
|
w()
|
|
4522
|
-
],
|
|
4522
|
+
], M.prototype, "selectedHour");
|
|
4523
4523
|
B([
|
|
4524
4524
|
w()
|
|
4525
|
-
],
|
|
4525
|
+
], M.prototype, "selectedMinute");
|
|
4526
4526
|
B([
|
|
4527
4527
|
w()
|
|
4528
|
-
],
|
|
4528
|
+
], M.prototype, "selectedPeriod");
|
|
4529
4529
|
B([
|
|
4530
4530
|
w()
|
|
4531
|
-
],
|
|
4531
|
+
], M.prototype, "isFlipped");
|
|
4532
4532
|
B([
|
|
4533
4533
|
w()
|
|
4534
|
-
],
|
|
4534
|
+
], M.prototype, "alignRight");
|
|
4535
4535
|
B([
|
|
4536
4536
|
H(".time-display")
|
|
4537
|
-
],
|
|
4537
|
+
], M.prototype, "timeDisplay");
|
|
4538
4538
|
B([
|
|
4539
4539
|
H(".time-container")
|
|
4540
|
-
],
|
|
4540
|
+
], M.prototype, "timeContainer");
|
|
4541
4541
|
var Ks = Object.defineProperty, q = (r, e, t, o) => {
|
|
4542
4542
|
for (var s = void 0, i = r.length - 1, a; i >= 0; i--)
|
|
4543
4543
|
(a = r[i]) && (s = a(e, t, s) || s);
|
|
4544
4544
|
return s && Ks(e, t, s), s;
|
|
4545
4545
|
};
|
|
4546
4546
|
const Js = () => {
|
|
4547
|
-
|
|
4547
|
+
z({
|
|
4548
4548
|
name: "base-date-picker",
|
|
4549
4549
|
element: P
|
|
4550
|
-
}),
|
|
4550
|
+
}), z({
|
|
4551
4551
|
name: "base-time-picker",
|
|
4552
|
-
element:
|
|
4553
|
-
}),
|
|
4552
|
+
element: M
|
|
4553
|
+
}), z({
|
|
4554
4554
|
name: "base-datetime-picker",
|
|
4555
4555
|
element: U
|
|
4556
4556
|
});
|
|
4557
4557
|
};
|
|
4558
|
-
class U extends
|
|
4558
|
+
class U extends L {
|
|
4559
4559
|
constructor() {
|
|
4560
4560
|
super(...arguments), this.value = "", this.placeholder = "Select date and time", this.required = !1, this.disabled = !1, this.size = "md", this.format = "12", this.dateValue = "", this.timeValue = "", this.isFocused = !1, this.inputId = `datetime-picker-${Math.random().toString(36).substring(2, 9)}`;
|
|
4561
4561
|
}
|
|
@@ -4839,11 +4839,11 @@ var Xs = Object.defineProperty, Q = (r, e, t, o) => {
|
|
|
4839
4839
|
(a = r[i]) && (s = a(e, t, s) || s);
|
|
4840
4840
|
return s && Xs(e, t, s), s;
|
|
4841
4841
|
};
|
|
4842
|
-
const Gs = () =>
|
|
4842
|
+
const Gs = () => z({
|
|
4843
4843
|
name: "base-drawer",
|
|
4844
4844
|
element: J
|
|
4845
4845
|
});
|
|
4846
|
-
class J extends
|
|
4846
|
+
class J extends L {
|
|
4847
4847
|
constructor() {
|
|
4848
4848
|
super(...arguments), this.open = !1, this.size = "sm", this.isClosing = !1, this.isVisible = !1, this.isDragging = !1, this.dragStartY = 0, this.dragCurrentY = 0, this.dragStartTime = 0, this.lastDragEndTime = 0, this.transitionDuration = 300, this.boundKeyHandler = (e) => {
|
|
4849
4849
|
e.key === "Escape" && this.isVisible && this.handleClose();
|
|
@@ -5329,11 +5329,11 @@ const ko = /* @__PURE__ */ Object.assign({
|
|
|
5329
5329
|
"../../public/icons/sun.svg": yo,
|
|
5330
5330
|
"../../public/icons/trash-can.svg": wo,
|
|
5331
5331
|
"../../public/icons/user.svg": xo
|
|
5332
|
-
}), So = () =>
|
|
5332
|
+
}), So = () => z({
|
|
5333
5333
|
name: "base-icon",
|
|
5334
5334
|
element: Ce
|
|
5335
5335
|
});
|
|
5336
|
-
class Ce extends
|
|
5336
|
+
class Ce extends L {
|
|
5337
5337
|
constructor() {
|
|
5338
5338
|
super(...arguments), this.name = "", this.size = "24px", this.color = "currentColor", this.svgContent = "";
|
|
5339
5339
|
}
|
|
@@ -5411,11 +5411,11 @@ var _o = Object.defineProperty, ee = (r, e, t, o) => {
|
|
|
5411
5411
|
(a = r[i]) && (s = a(e, t, s) || s);
|
|
5412
5412
|
return s && _o(e, t, s), s;
|
|
5413
5413
|
};
|
|
5414
|
-
const Eo = () =>
|
|
5414
|
+
const Eo = () => z({
|
|
5415
5415
|
name: "base-input",
|
|
5416
5416
|
element: X
|
|
5417
5417
|
});
|
|
5418
|
-
class X extends
|
|
5418
|
+
class X extends L {
|
|
5419
5419
|
constructor() {
|
|
5420
5420
|
super(...arguments), this.value = "", this.type = "text", this.required = !1, this.disabled = !1, this.size = "md", this.inputId = `input-${Math.random().toString(36).substr(2, 9)}`;
|
|
5421
5421
|
}
|
|
@@ -5671,18 +5671,34 @@ ee([
|
|
|
5671
5671
|
ee([
|
|
5672
5672
|
H("input")
|
|
5673
5673
|
], X.prototype, "inputElement");
|
|
5674
|
-
var Co = Object.defineProperty,
|
|
5674
|
+
var Co = Object.defineProperty, I = (r, e, t, o) => {
|
|
5675
5675
|
for (var s = void 0, i = r.length - 1, a; i >= 0; i--)
|
|
5676
5676
|
(a = r[i]) && (s = a(e, t, s) || s);
|
|
5677
5677
|
return s && Co(e, t, s), s;
|
|
5678
5678
|
};
|
|
5679
|
-
const Ao = () =>
|
|
5679
|
+
const Ao = () => z({
|
|
5680
5680
|
name: "base-select",
|
|
5681
|
-
element:
|
|
5681
|
+
element: D
|
|
5682
5682
|
});
|
|
5683
|
-
class
|
|
5683
|
+
class D extends L {
|
|
5684
5684
|
constructor() {
|
|
5685
|
-
super(...arguments), this.value = "", this.placeholder = "Select an option", this.required = !1, this.disabled = !1, this.searchable = !1, this.size = "md", this.options = [], this.isOpen = !1, this.searchQuery = "", this.highlightedIndex = -1, this.isFlipped = !1, this.alignRight = !1, this.selectId = `select-${Math.random().toString(36).substr(2, 9)}`;
|
|
5685
|
+
super(...arguments), this.value = "", this.placeholder = "Select an option", this.required = !1, this.disabled = !1, this.searchable = !1, this.size = "md", this.options = [], this.isOpen = !1, this.parsedFromSlot = !1, this.searchQuery = "", this.highlightedIndex = -1, this.isFlipped = !1, this.alignRight = !1, this.selectId = `select-${Math.random().toString(36).substr(2, 9)}`;
|
|
5686
|
+
}
|
|
5687
|
+
connectedCallback() {
|
|
5688
|
+
super.connectedCallback(), this.parseSlottedOptions();
|
|
5689
|
+
}
|
|
5690
|
+
parseSlottedOptions() {
|
|
5691
|
+
if (this.options.length === 0 && !this.parsedFromSlot) {
|
|
5692
|
+
const e = this.querySelectorAll("option");
|
|
5693
|
+
if (e.length > 0) {
|
|
5694
|
+
this.options = Array.from(e).map((o) => ({
|
|
5695
|
+
label: o.textContent?.trim() || o.value,
|
|
5696
|
+
value: o.value
|
|
5697
|
+
}));
|
|
5698
|
+
const t = Array.from(e).find((o) => o.hasAttribute("selected"));
|
|
5699
|
+
t && !this.value && (this.value = t.value), this.parsedFromSlot = !0;
|
|
5700
|
+
}
|
|
5701
|
+
}
|
|
5686
5702
|
}
|
|
5687
5703
|
static {
|
|
5688
5704
|
this.styles = F`
|
|
@@ -5921,6 +5937,11 @@ class M extends I {
|
|
|
5921
5937
|
color: var(--color-text-muted);
|
|
5922
5938
|
line-height: var(--line-height-tight);
|
|
5923
5939
|
}
|
|
5940
|
+
|
|
5941
|
+
/* Hidden slot for option elements */
|
|
5942
|
+
::slotted(option) {
|
|
5943
|
+
display: none;
|
|
5944
|
+
}
|
|
5924
5945
|
`;
|
|
5925
5946
|
}
|
|
5926
5947
|
get selectedOption() {
|
|
@@ -6098,74 +6119,80 @@ class M extends I {
|
|
|
6098
6119
|
${this.error}
|
|
6099
6120
|
</div>
|
|
6100
6121
|
` : this.hint ? m` <div class="select-hint">${this.hint}</div> ` : ""}
|
|
6122
|
+
|
|
6123
|
+
<!-- Hidden slot for option elements -->
|
|
6124
|
+
<slot @slotchange=${this.parseSlottedOptions}></slot>
|
|
6101
6125
|
</div>
|
|
6102
6126
|
`;
|
|
6103
6127
|
}
|
|
6104
6128
|
}
|
|
6105
|
-
|
|
6129
|
+
I([
|
|
6106
6130
|
u({ type: String })
|
|
6107
|
-
],
|
|
6108
|
-
|
|
6131
|
+
], D.prototype, "value");
|
|
6132
|
+
I([
|
|
6109
6133
|
u({ type: String })
|
|
6110
|
-
],
|
|
6111
|
-
|
|
6134
|
+
], D.prototype, "label");
|
|
6135
|
+
I([
|
|
6112
6136
|
u({ type: String })
|
|
6113
|
-
],
|
|
6114
|
-
|
|
6137
|
+
], D.prototype, "placeholder");
|
|
6138
|
+
I([
|
|
6115
6139
|
u({ type: Boolean, reflect: !0 })
|
|
6116
|
-
],
|
|
6117
|
-
|
|
6140
|
+
], D.prototype, "required");
|
|
6141
|
+
I([
|
|
6118
6142
|
u({ type: Boolean, reflect: !0 })
|
|
6119
|
-
],
|
|
6120
|
-
|
|
6143
|
+
], D.prototype, "disabled");
|
|
6144
|
+
I([
|
|
6121
6145
|
u({ type: Boolean, reflect: !0 })
|
|
6122
|
-
],
|
|
6123
|
-
|
|
6146
|
+
], D.prototype, "searchable");
|
|
6147
|
+
I([
|
|
6124
6148
|
u({ type: String })
|
|
6125
|
-
],
|
|
6126
|
-
|
|
6149
|
+
], D.prototype, "error");
|
|
6150
|
+
I([
|
|
6127
6151
|
u({ type: String })
|
|
6128
|
-
],
|
|
6129
|
-
|
|
6152
|
+
], D.prototype, "hint");
|
|
6153
|
+
I([
|
|
6130
6154
|
u({ type: String })
|
|
6131
|
-
],
|
|
6132
|
-
|
|
6155
|
+
], D.prototype, "size");
|
|
6156
|
+
I([
|
|
6133
6157
|
u({ type: Array })
|
|
6134
|
-
],
|
|
6135
|
-
|
|
6158
|
+
], D.prototype, "options");
|
|
6159
|
+
I([
|
|
6136
6160
|
w()
|
|
6137
|
-
],
|
|
6138
|
-
|
|
6161
|
+
], D.prototype, "isOpen");
|
|
6162
|
+
I([
|
|
6139
6163
|
w()
|
|
6140
|
-
],
|
|
6141
|
-
|
|
6164
|
+
], D.prototype, "parsedFromSlot");
|
|
6165
|
+
I([
|
|
6142
6166
|
w()
|
|
6143
|
-
],
|
|
6144
|
-
|
|
6167
|
+
], D.prototype, "searchQuery");
|
|
6168
|
+
I([
|
|
6145
6169
|
w()
|
|
6146
|
-
],
|
|
6147
|
-
|
|
6170
|
+
], D.prototype, "highlightedIndex");
|
|
6171
|
+
I([
|
|
6148
6172
|
w()
|
|
6149
|
-
],
|
|
6150
|
-
|
|
6173
|
+
], D.prototype, "isFlipped");
|
|
6174
|
+
I([
|
|
6175
|
+
w()
|
|
6176
|
+
], D.prototype, "alignRight");
|
|
6177
|
+
I([
|
|
6151
6178
|
H(".select-input")
|
|
6152
|
-
],
|
|
6153
|
-
|
|
6179
|
+
], D.prototype, "selectInput");
|
|
6180
|
+
I([
|
|
6154
6181
|
H(".select-display")
|
|
6155
|
-
],
|
|
6156
|
-
|
|
6182
|
+
], D.prototype, "selectDisplay");
|
|
6183
|
+
I([
|
|
6157
6184
|
H(".dropdown-options")
|
|
6158
|
-
],
|
|
6185
|
+
], D.prototype, "dropdownElement");
|
|
6159
6186
|
var To = Object.defineProperty, je = (r, e, t, o) => {
|
|
6160
6187
|
for (var s = void 0, i = r.length - 1, a; i >= 0; i--)
|
|
6161
6188
|
(a = r[i]) && (s = a(e, t, s) || s);
|
|
6162
6189
|
return s && To(e, t, s), s;
|
|
6163
6190
|
};
|
|
6164
|
-
const Po = () =>
|
|
6191
|
+
const Po = () => z({
|
|
6165
6192
|
name: "base-tab",
|
|
6166
6193
|
element: Ae
|
|
6167
6194
|
});
|
|
6168
|
-
class Ae extends
|
|
6195
|
+
class Ae extends L {
|
|
6169
6196
|
constructor() {
|
|
6170
6197
|
super(...arguments), this.id = "", this.label = "", this.active = !1;
|
|
6171
6198
|
}
|
|
@@ -6244,11 +6271,11 @@ var Oo = Object.defineProperty, ae = (r, e, t, o) => {
|
|
|
6244
6271
|
(a = r[i]) && (s = a(e, t, s) || s);
|
|
6245
6272
|
return s && Oo(e, t, s), s;
|
|
6246
6273
|
};
|
|
6247
|
-
const Ro = () =>
|
|
6274
|
+
const Ro = () => z({
|
|
6248
6275
|
name: "base-tabs",
|
|
6249
6276
|
element: oe
|
|
6250
6277
|
});
|
|
6251
|
-
class oe extends
|
|
6278
|
+
class oe extends L {
|
|
6252
6279
|
constructor() {
|
|
6253
6280
|
super(...arguments), this.activeTab = "", this.ariaLabel = "Dashboard navigation", this.syncWithHash = !0, this.variant = "sidebar", this.forceExpanded = !1, this.tabs = [], this.isExpanded = !1, this.isMobile = !1, this.boundHashChangeHandler = this.handleHashChange.bind(this), this.boundResizeHandler = this.handleResize.bind(this), this.hasInitialized = !1;
|
|
6254
6281
|
}
|
|
@@ -6933,11 +6960,11 @@ var Do = Object.defineProperty, G = (r, e, t, o) => {
|
|
|
6933
6960
|
(a = r[i]) && (s = a(e, t, s) || s);
|
|
6934
6961
|
return s && Do(e, t, s), s;
|
|
6935
6962
|
};
|
|
6936
|
-
const zo = () =>
|
|
6963
|
+
const zo = () => z({
|
|
6937
6964
|
name: "base-textarea",
|
|
6938
6965
|
element: Y
|
|
6939
6966
|
});
|
|
6940
|
-
class Y extends
|
|
6967
|
+
class Y extends L {
|
|
6941
6968
|
constructor() {
|
|
6942
6969
|
super(...arguments), this.value = "", this.required = !1, this.disabled = !1, this.size = "md", this.rows = 4, this.resize = "vertical", this.textareaId = `textarea-${Math.random().toString(36).substr(2, 9)}`;
|
|
6943
6970
|
}
|
|
@@ -7235,11 +7262,11 @@ var Mo = Object.defineProperty, Ve = (r, e, t, o) => {
|
|
|
7235
7262
|
(a = r[i]) && (s = a(e, t, s) || s);
|
|
7236
7263
|
return s && Mo(e, t, s), s;
|
|
7237
7264
|
};
|
|
7238
|
-
const Io = () =>
|
|
7265
|
+
const Io = () => z({
|
|
7239
7266
|
name: "base-toast",
|
|
7240
7267
|
element: Te
|
|
7241
7268
|
});
|
|
7242
|
-
class Te extends
|
|
7269
|
+
class Te extends L {
|
|
7243
7270
|
constructor() {
|
|
7244
7271
|
super(...arguments), this.variant = "default", this.padding = "sm", this.size = "sm", this.dismiss = "2s", this.position = "bottom-center", this.timerStarted = 0, this.timerPausedAt = 0, this.toastTimout = null;
|
|
7245
7272
|
}
|
|
@@ -7685,10 +7712,10 @@ function wa({
|
|
|
7685
7712
|
dismiss: o = "2s"
|
|
7686
7713
|
}) {
|
|
7687
7714
|
const s = document.createElement("base-toast");
|
|
7688
|
-
s.id = `toast-${Date.now()}`, s.setAttribute("variant", e), s.setAttribute("position", t), s.setAttribute("dismiss", o), s.textContent = r, document.body.appendChild(s), s.show(), s.addEventListener("toast-hidden", () => {
|
|
7689
|
-
|
|
7690
|
-
|
|
7691
|
-
},
|
|
7715
|
+
s.id = `toast-${Date.now()}`, s.setAttribute("id", s.id), s.setAttribute("variant", e), s.setAttribute("position", t), s.setAttribute("dismiss", o), s.textContent = r, document.body.appendChild(s), s.show(), s.addEventListener("toast-hidden", () => {
|
|
7716
|
+
setTimeout(() => {
|
|
7717
|
+
document.getElementById(s.id)?.remove();
|
|
7718
|
+
}, 300);
|
|
7692
7719
|
});
|
|
7693
7720
|
}
|
|
7694
7721
|
var Lo = Object.defineProperty, Ze = (r, e, t, o) => {
|
|
@@ -7696,11 +7723,11 @@ var Lo = Object.defineProperty, Ze = (r, e, t, o) => {
|
|
|
7696
7723
|
(a = r[i]) && (s = a(e, t, s) || s);
|
|
7697
7724
|
return s && Lo(e, t, s), s;
|
|
7698
7725
|
};
|
|
7699
|
-
const Bo = () =>
|
|
7726
|
+
const Bo = () => z({
|
|
7700
7727
|
name: "quantity-select",
|
|
7701
7728
|
element: Pe
|
|
7702
7729
|
});
|
|
7703
|
-
class Pe extends
|
|
7730
|
+
class Pe extends L {
|
|
7704
7731
|
constructor() {
|
|
7705
7732
|
super(...arguments), this.value = 0, this.min = 0, this.max = 99, this.size = "md", this.allowInput = !0;
|
|
7706
7733
|
}
|
|
@@ -7947,15 +7974,15 @@ var Uo = Object.defineProperty, Ye = (r, e, t, o) => {
|
|
|
7947
7974
|
return s && Uo(e, t, s), s;
|
|
7948
7975
|
};
|
|
7949
7976
|
const No = () => {
|
|
7950
|
-
|
|
7977
|
+
z({
|
|
7951
7978
|
name: "base-icon",
|
|
7952
7979
|
element: Ce
|
|
7953
|
-
}),
|
|
7980
|
+
}), z({
|
|
7954
7981
|
name: "theme-toggle",
|
|
7955
7982
|
element: Oe
|
|
7956
7983
|
});
|
|
7957
7984
|
};
|
|
7958
|
-
class Oe extends
|
|
7985
|
+
class Oe extends L {
|
|
7959
7986
|
constructor() {
|
|
7960
7987
|
super(...arguments), this.size = "sm", this.variant = "ghost", this.themes = [
|
|
7961
7988
|
{ theme: "light", icon: "sun" },
|
|
@@ -10006,11 +10033,11 @@ export {
|
|
|
10006
10033
|
J as BaseDrawer,
|
|
10007
10034
|
Ce as BaseIcon,
|
|
10008
10035
|
X as BaseInput,
|
|
10009
|
-
|
|
10036
|
+
D as BaseSelect,
|
|
10010
10037
|
Ae as BaseTab,
|
|
10011
10038
|
oe as BaseTabs,
|
|
10012
10039
|
Y as BaseTextarea,
|
|
10013
|
-
|
|
10040
|
+
M as BaseTimePicker,
|
|
10014
10041
|
Te as BaseToast,
|
|
10015
10042
|
Pe as QuantitySelect,
|
|
10016
10043
|
Oe as ThemeToggle,
|