@cal.macconnachie/web-components 2.6.11 → 2.6.13
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 +1 -0
- package/dist/index.js +102 -85
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -530,7 +530,7 @@ function y(r) {
|
|
|
530
530
|
return u({ ...r, state: !0, attribute: !1 });
|
|
531
531
|
}
|
|
532
532
|
const Rs = (r, e, t) => (t.configurable = !0, t.enumerable = !0, Reflect.decorate && typeof e != "object" && Object.defineProperty(r, e, t), t);
|
|
533
|
-
function
|
|
533
|
+
function Y(r, e) {
|
|
534
534
|
return (t, i, s) => {
|
|
535
535
|
const o = (a) => a.renderRoot?.querySelector(r) ?? null;
|
|
536
536
|
return Rs(t, i, { get() {
|
|
@@ -2153,7 +2153,7 @@ E([
|
|
|
2153
2153
|
y()
|
|
2154
2154
|
], A.prototype, "signupOtpDigits");
|
|
2155
2155
|
E([
|
|
2156
|
-
|
|
2156
|
+
Y("#email-input")
|
|
2157
2157
|
], A.prototype, "emailInput");
|
|
2158
2158
|
const S = qt(class extends Ht {
|
|
2159
2159
|
constructor(r) {
|
|
@@ -3789,10 +3789,10 @@ I([
|
|
|
3789
3789
|
y()
|
|
3790
3790
|
], P.prototype, "alignRight");
|
|
3791
3791
|
I([
|
|
3792
|
-
|
|
3792
|
+
Y(".date-display")
|
|
3793
3793
|
], P.prototype, "dateDisplay");
|
|
3794
3794
|
I([
|
|
3795
|
-
|
|
3795
|
+
Y(".calendar-container")
|
|
3796
3796
|
], P.prototype, "calendarContainer");
|
|
3797
3797
|
var Qs = Object.defineProperty, U = (r, e, t, i) => {
|
|
3798
3798
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
@@ -4303,12 +4303,12 @@ U([
|
|
|
4303
4303
|
y()
|
|
4304
4304
|
], L.prototype, "alignRight");
|
|
4305
4305
|
U([
|
|
4306
|
-
|
|
4306
|
+
Y(".time-display")
|
|
4307
4307
|
], L.prototype, "timeDisplay");
|
|
4308
4308
|
U([
|
|
4309
|
-
|
|
4309
|
+
Y(".time-container")
|
|
4310
4310
|
], L.prototype, "timeContainer");
|
|
4311
|
-
var ei = Object.defineProperty,
|
|
4311
|
+
var ei = Object.defineProperty, j = (r, e, t, i) => {
|
|
4312
4312
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
4313
4313
|
(a = r[o]) && (s = a(e, t, s) || s);
|
|
4314
4314
|
return s && ei(e, t, s), s;
|
|
@@ -4556,66 +4556,66 @@ class q extends M {
|
|
|
4556
4556
|
`;
|
|
4557
4557
|
}
|
|
4558
4558
|
}
|
|
4559
|
-
|
|
4559
|
+
j([
|
|
4560
4560
|
u({ type: String })
|
|
4561
4561
|
], q.prototype, "value");
|
|
4562
|
-
|
|
4562
|
+
j([
|
|
4563
4563
|
u({ type: String })
|
|
4564
4564
|
], q.prototype, "label");
|
|
4565
|
-
|
|
4565
|
+
j([
|
|
4566
4566
|
u({ type: String })
|
|
4567
4567
|
], q.prototype, "placeholder");
|
|
4568
|
-
|
|
4568
|
+
j([
|
|
4569
4569
|
u({ type: Boolean, reflect: !0 })
|
|
4570
4570
|
], q.prototype, "required");
|
|
4571
|
-
|
|
4571
|
+
j([
|
|
4572
4572
|
u({ type: Boolean, reflect: !0 })
|
|
4573
4573
|
], q.prototype, "disabled");
|
|
4574
|
-
|
|
4574
|
+
j([
|
|
4575
4575
|
u({ type: String })
|
|
4576
4576
|
], q.prototype, "error");
|
|
4577
|
-
|
|
4577
|
+
j([
|
|
4578
4578
|
u({ type: String })
|
|
4579
4579
|
], q.prototype, "hint");
|
|
4580
|
-
|
|
4580
|
+
j([
|
|
4581
4581
|
u({ type: String })
|
|
4582
4582
|
], q.prototype, "size");
|
|
4583
|
-
|
|
4583
|
+
j([
|
|
4584
4584
|
u({ type: String })
|
|
4585
4585
|
], q.prototype, "minDate");
|
|
4586
|
-
|
|
4586
|
+
j([
|
|
4587
4587
|
u({ type: String })
|
|
4588
4588
|
], q.prototype, "maxDate");
|
|
4589
|
-
|
|
4589
|
+
j([
|
|
4590
4590
|
u({ type: String })
|
|
4591
4591
|
], q.prototype, "format");
|
|
4592
|
-
|
|
4592
|
+
j([
|
|
4593
4593
|
y()
|
|
4594
4594
|
], q.prototype, "dateValue");
|
|
4595
|
-
|
|
4595
|
+
j([
|
|
4596
4596
|
y()
|
|
4597
4597
|
], q.prototype, "timeValue");
|
|
4598
|
-
|
|
4598
|
+
j([
|
|
4599
4599
|
y()
|
|
4600
4600
|
], q.prototype, "isFocused");
|
|
4601
|
-
|
|
4602
|
-
|
|
4601
|
+
j([
|
|
4602
|
+
Y("base-date-picker")
|
|
4603
4603
|
], q.prototype, "datePicker");
|
|
4604
|
-
|
|
4605
|
-
|
|
4604
|
+
j([
|
|
4605
|
+
Y("base-time-picker")
|
|
4606
4606
|
], q.prototype, "timePicker");
|
|
4607
|
-
var ri = Object.defineProperty,
|
|
4607
|
+
var ri = Object.defineProperty, V = (r, e, t, i) => {
|
|
4608
4608
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
4609
4609
|
(a = r[o]) && (s = a(e, t, s) || s);
|
|
4610
4610
|
return s && ri(e, t, s), s;
|
|
4611
4611
|
};
|
|
4612
4612
|
const si = () => R({
|
|
4613
4613
|
name: "base-drawer",
|
|
4614
|
-
element:
|
|
4614
|
+
element: H
|
|
4615
4615
|
});
|
|
4616
|
-
class
|
|
4616
|
+
class H extends M {
|
|
4617
4617
|
constructor() {
|
|
4618
|
-
super(...arguments), this.open = !1, this.size = "sm", this.detents = [0, 85], this.persistOnOverlayClick = !1, this.isClosing = !1, this.isVisible = !1, this.isDragging = !1, this.dragStartY = 0, this.dragCurrentY = 0, this.dragStartTime = 0, this.lastDragEndTime = 0, this.currentDetentIndex = 0, this.dragCommitted = !1, this.transitionDuration = 300, this.boundKeyHandler = (e) => {
|
|
4618
|
+
super(...arguments), this.open = !1, this.size = "sm", this.detents = [0, 85], this.persistOnOverlayClick = !1, this.defaultDetent = "", this.isClosing = !1, this.isVisible = !1, this.isDragging = !1, this.dragStartY = 0, this.dragCurrentY = 0, this.dragStartTime = 0, this.lastDragEndTime = 0, this.currentDetentIndex = 0, this.dragCommitted = !1, this.transitionDuration = 300, this.boundKeyHandler = (e) => {
|
|
4619
4619
|
e.key === "Escape" && this.isVisible && this.isClosable() && this.handleClose();
|
|
4620
4620
|
}, this.handleClose = () => {
|
|
4621
4621
|
this.isClosing || !this.isVisible || (this.cleanupInlineStyles(), this.isDragging = !1, this.dragCommitted = !1, this.dragStartY = 0, this.dragCurrentY = 0, this.dragStartTime = 0, this.isClosing = !0, setTimeout(() => {
|
|
@@ -4721,7 +4721,11 @@ class j extends M {
|
|
|
4721
4721
|
if (this.open) {
|
|
4722
4722
|
this.isVisible = !0;
|
|
4723
4723
|
const e = this.getActiveDetents();
|
|
4724
|
-
|
|
4724
|
+
if (this.defaultDetent != "") {
|
|
4725
|
+
const t = Number(this.defaultDetent), i = e.findIndex((s) => s === t);
|
|
4726
|
+
this.currentDetentIndex = i !== -1 ? i : 0;
|
|
4727
|
+
} else
|
|
4728
|
+
this.currentDetentIndex = this.isClosable() ? Math.max(0, e.length - 1) : 0;
|
|
4725
4729
|
}
|
|
4726
4730
|
}
|
|
4727
4731
|
updated(e) {
|
|
@@ -4729,7 +4733,12 @@ class j extends M {
|
|
|
4729
4733
|
if (this.open) {
|
|
4730
4734
|
this.isVisible = !0;
|
|
4731
4735
|
const t = this.getActiveDetents();
|
|
4732
|
-
|
|
4736
|
+
if (this.defaultDetent != "") {
|
|
4737
|
+
const i = Number(this.defaultDetent), s = t.findIndex((o) => o === i);
|
|
4738
|
+
this.currentDetentIndex = s !== -1 ? s : 0;
|
|
4739
|
+
} else
|
|
4740
|
+
this.currentDetentIndex = this.isClosable() ? Math.max(0, t.length - 1) : 0;
|
|
4741
|
+
this.lockBodyScroll();
|
|
4733
4742
|
} else this.isVisible && this.handleClose();
|
|
4734
4743
|
e.has("isVisible") && (this.isVisible ? (this.lockBodyScroll(), this.cleanupInlineStyles()) : (this.unlockBodyScroll(), this.resetState()));
|
|
4735
4744
|
}
|
|
@@ -4764,7 +4773,12 @@ class j extends M {
|
|
|
4764
4773
|
openDrawer() {
|
|
4765
4774
|
this.open = !0, this.isVisible = !0;
|
|
4766
4775
|
const e = this.getActiveDetents();
|
|
4767
|
-
|
|
4776
|
+
if (this.defaultDetent != "") {
|
|
4777
|
+
const t = Number(this.defaultDetent), i = e.findIndex((s) => s === t);
|
|
4778
|
+
this.currentDetentIndex = i !== -1 ? i : 0;
|
|
4779
|
+
} else
|
|
4780
|
+
this.currentDetentIndex = this.isClosable() ? Math.max(0, e.length - 1) : 0;
|
|
4781
|
+
this.dispatchEvent(
|
|
4768
4782
|
new CustomEvent("drawer-open", {
|
|
4769
4783
|
bubbles: !0,
|
|
4770
4784
|
composed: !0
|
|
@@ -5020,13 +5034,13 @@ class j extends M {
|
|
|
5020
5034
|
}`;
|
|
5021
5035
|
}
|
|
5022
5036
|
}
|
|
5023
|
-
|
|
5037
|
+
V([
|
|
5024
5038
|
u({ type: Boolean, reflect: !0 })
|
|
5025
|
-
],
|
|
5026
|
-
|
|
5039
|
+
], H.prototype, "open");
|
|
5040
|
+
V([
|
|
5027
5041
|
u({ type: String, attribute: "size" })
|
|
5028
|
-
],
|
|
5029
|
-
|
|
5042
|
+
], H.prototype, "size");
|
|
5043
|
+
V([
|
|
5030
5044
|
u({
|
|
5031
5045
|
type: Array,
|
|
5032
5046
|
converter: {
|
|
@@ -5040,43 +5054,46 @@ Y([
|
|
|
5040
5054
|
}
|
|
5041
5055
|
}
|
|
5042
5056
|
})
|
|
5043
|
-
],
|
|
5044
|
-
|
|
5057
|
+
], H.prototype, "detents");
|
|
5058
|
+
V([
|
|
5045
5059
|
u({ type: Boolean, attribute: "persist-on-overlay-click" })
|
|
5046
|
-
],
|
|
5047
|
-
|
|
5060
|
+
], H.prototype, "persistOnOverlayClick");
|
|
5061
|
+
V([
|
|
5062
|
+
u({ type: String, attribute: "default-detent" })
|
|
5063
|
+
], H.prototype, "defaultDetent");
|
|
5064
|
+
V([
|
|
5048
5065
|
y()
|
|
5049
|
-
],
|
|
5050
|
-
|
|
5066
|
+
], H.prototype, "isClosing");
|
|
5067
|
+
V([
|
|
5051
5068
|
y()
|
|
5052
|
-
],
|
|
5053
|
-
|
|
5069
|
+
], H.prototype, "isVisible");
|
|
5070
|
+
V([
|
|
5054
5071
|
y()
|
|
5055
|
-
],
|
|
5056
|
-
|
|
5072
|
+
], H.prototype, "isDragging");
|
|
5073
|
+
V([
|
|
5057
5074
|
y()
|
|
5058
|
-
],
|
|
5059
|
-
|
|
5075
|
+
], H.prototype, "dragStartY");
|
|
5076
|
+
V([
|
|
5060
5077
|
y()
|
|
5061
|
-
],
|
|
5062
|
-
|
|
5078
|
+
], H.prototype, "dragCurrentY");
|
|
5079
|
+
V([
|
|
5063
5080
|
y()
|
|
5064
|
-
],
|
|
5065
|
-
|
|
5081
|
+
], H.prototype, "dragStartTime");
|
|
5082
|
+
V([
|
|
5066
5083
|
y()
|
|
5067
|
-
],
|
|
5068
|
-
|
|
5084
|
+
], H.prototype, "lastDragEndTime");
|
|
5085
|
+
V([
|
|
5069
5086
|
y()
|
|
5070
|
-
],
|
|
5071
|
-
|
|
5087
|
+
], H.prototype, "currentDetentIndex");
|
|
5088
|
+
V([
|
|
5072
5089
|
y()
|
|
5073
|
-
],
|
|
5074
|
-
|
|
5075
|
-
|
|
5076
|
-
],
|
|
5077
|
-
|
|
5078
|
-
|
|
5079
|
-
],
|
|
5090
|
+
], H.prototype, "dragCommitted");
|
|
5091
|
+
V([
|
|
5092
|
+
Y(".modal-container")
|
|
5093
|
+
], H.prototype, "modalContainer");
|
|
5094
|
+
V([
|
|
5095
|
+
Y(".drawer-content")
|
|
5096
|
+
], H.prototype, "drawerContent");
|
|
5080
5097
|
const ii = `<?xml version="1.0" encoding="UTF-8"?>
|
|
5081
5098
|
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 90 90">
|
|
5082
5099
|
<defs>
|
|
@@ -5728,7 +5745,7 @@ re([
|
|
|
5728
5745
|
u({ type: String })
|
|
5729
5746
|
], G.prototype, "size");
|
|
5730
5747
|
re([
|
|
5731
|
-
|
|
5748
|
+
Y("input")
|
|
5732
5749
|
], G.prototype, "inputElement");
|
|
5733
5750
|
var Oi = Object.defineProperty, Se = (r, e, t, i) => {
|
|
5734
5751
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
@@ -7291,13 +7308,13 @@ O([
|
|
|
7291
7308
|
y()
|
|
7292
7309
|
], D.prototype, "selectedValuesSet");
|
|
7293
7310
|
O([
|
|
7294
|
-
|
|
7311
|
+
Y(".select-input")
|
|
7295
7312
|
], D.prototype, "selectInput");
|
|
7296
7313
|
O([
|
|
7297
|
-
|
|
7314
|
+
Y(".select-display")
|
|
7298
7315
|
], D.prototype, "selectDisplay");
|
|
7299
7316
|
O([
|
|
7300
|
-
|
|
7317
|
+
Y(".dropdown-options")
|
|
7301
7318
|
], D.prototype, "dropdownElement");
|
|
7302
7319
|
var Li = Object.defineProperty, We = (r, e, t, i) => {
|
|
7303
7320
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
@@ -8079,7 +8096,7 @@ le([
|
|
|
8079
8096
|
y()
|
|
8080
8097
|
], ae.prototype, "isMobile");
|
|
8081
8098
|
le([
|
|
8082
|
-
|
|
8099
|
+
Y(".tabs-nav")
|
|
8083
8100
|
], ae.prototype, "tabsNav");
|
|
8084
8101
|
var qi = Object.defineProperty, te = (r, e, t, i) => {
|
|
8085
8102
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
@@ -8381,7 +8398,7 @@ te([
|
|
|
8381
8398
|
u({ type: String })
|
|
8382
8399
|
], X.prototype, "resize");
|
|
8383
8400
|
te([
|
|
8384
|
-
|
|
8401
|
+
Y("textarea")
|
|
8385
8402
|
], X.prototype, "textareaElement");
|
|
8386
8403
|
var Fi = Object.defineProperty, Ke = (r, e, t, i) => {
|
|
8387
8404
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
@@ -9824,14 +9841,14 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", jo
|
|
|
9824
9841
|
hasStandardBrowserWebWorkerEnv: Fo,
|
|
9825
9842
|
navigator: Pt,
|
|
9826
9843
|
origin: jo
|
|
9827
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
9844
|
+
}, Symbol.toStringTag, { value: "Module" })), F = {
|
|
9828
9845
|
...Vo,
|
|
9829
9846
|
...qo
|
|
9830
9847
|
};
|
|
9831
9848
|
function Yo(r, e) {
|
|
9832
|
-
return wt(r, new
|
|
9849
|
+
return wt(r, new F.classes.URLSearchParams(), {
|
|
9833
9850
|
visitor: function(t, i, s, o) {
|
|
9834
|
-
return
|
|
9851
|
+
return F.isNode && d.isBuffer(t) ? (this.append(i, t.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
9835
9852
|
},
|
|
9836
9853
|
...e
|
|
9837
9854
|
});
|
|
@@ -9926,8 +9943,8 @@ const tt = {
|
|
|
9926
9943
|
maxContentLength: -1,
|
|
9927
9944
|
maxBodyLength: -1,
|
|
9928
9945
|
env: {
|
|
9929
|
-
FormData:
|
|
9930
|
-
Blob:
|
|
9946
|
+
FormData: F.classes.FormData,
|
|
9947
|
+
Blob: F.classes.Blob
|
|
9931
9948
|
},
|
|
9932
9949
|
validateStatus: function(e) {
|
|
9933
9950
|
return e >= 200 && e < 300;
|
|
@@ -10227,10 +10244,10 @@ const ut = (r, e, t = 3) => {
|
|
|
10227
10244
|
total: r,
|
|
10228
10245
|
loaded: i
|
|
10229
10246
|
}), e[1]];
|
|
10230
|
-
}, yr = (r) => (...e) => d.asap(() => r(...e)), oa =
|
|
10231
|
-
new URL(
|
|
10232
|
-
|
|
10233
|
-
) : () => !0, aa =
|
|
10247
|
+
}, yr = (r) => (...e) => d.asap(() => r(...e)), oa = F.hasStandardBrowserEnv ? /* @__PURE__ */ ((r, e) => (t) => (t = new URL(t, F.origin), r.protocol === t.protocol && r.host === t.host && (e || r.port === t.port)))(
|
|
10248
|
+
new URL(F.origin),
|
|
10249
|
+
F.navigator && /(msie|trident)/i.test(F.navigator.userAgent)
|
|
10250
|
+
) : () => !0, aa = F.hasStandardBrowserEnv ? (
|
|
10234
10251
|
// Standard browser envs support document.cookie
|
|
10235
10252
|
{
|
|
10236
10253
|
write(r, e, t, i, s, o, a) {
|
|
@@ -10341,7 +10358,7 @@ const rs = (r) => {
|
|
|
10341
10358
|
"Authorization",
|
|
10342
10359
|
"Basic " + btoa((n.username || "") + ":" + (n.password ? unescape(encodeURIComponent(n.password)) : ""))
|
|
10343
10360
|
), d.isFormData(t)) {
|
|
10344
|
-
if (
|
|
10361
|
+
if (F.hasStandardBrowserEnv || F.hasStandardBrowserWebWorkerEnv)
|
|
10345
10362
|
a.setContentType(void 0);
|
|
10346
10363
|
else if (d.isFunction(t.getHeaders)) {
|
|
10347
10364
|
const l = t.getHeaders(), h = ["content-type", "content-length"];
|
|
@@ -10350,7 +10367,7 @@ const rs = (r) => {
|
|
|
10350
10367
|
});
|
|
10351
10368
|
}
|
|
10352
10369
|
}
|
|
10353
|
-
if (
|
|
10370
|
+
if (F.hasStandardBrowserEnv && (i && d.isFunction(i) && (i = i(e)), i || i !== !1 && oa(e.url))) {
|
|
10354
10371
|
const l = s && o && aa.read(o);
|
|
10355
10372
|
l && a.set(s, l);
|
|
10356
10373
|
}
|
|
@@ -10407,7 +10424,7 @@ const rs = (r) => {
|
|
|
10407
10424
|
m && (i(!C || C.type ? new Le(null, r, m) : C), m.abort(), m = null);
|
|
10408
10425
|
}, s.cancelToken && s.cancelToken.subscribe(c), s.signal && (s.signal.aborted ? c() : s.signal.addEventListener("abort", c)));
|
|
10409
10426
|
const _ = ra(s.url);
|
|
10410
|
-
if (_ &&
|
|
10427
|
+
if (_ && F.protocols.indexOf(_) === -1) {
|
|
10411
10428
|
i(new $("Unsupported protocol " + _ + ":", $.ERR_BAD_REQUEST, r));
|
|
10412
10429
|
return;
|
|
10413
10430
|
}
|
|
@@ -10514,7 +10531,7 @@ const rs = (r) => {
|
|
|
10514
10531
|
return !1;
|
|
10515
10532
|
const n = s && at(kr), l = s && (typeof Sr == "function" ? /* @__PURE__ */ ((g) => (v) => g.encode(v))(new Sr()) : async (g) => new Uint8Array(await new t(g).arrayBuffer())), h = o && n && _r(() => {
|
|
10516
10533
|
let g = !1;
|
|
10517
|
-
const v = new t(
|
|
10534
|
+
const v = new t(F.origin, {
|
|
10518
10535
|
body: new kr(),
|
|
10519
10536
|
method: "POST",
|
|
10520
10537
|
get duplex() {
|
|
@@ -10539,7 +10556,7 @@ const rs = (r) => {
|
|
|
10539
10556
|
if (d.isBlob(g))
|
|
10540
10557
|
return g.size;
|
|
10541
10558
|
if (d.isSpecCompliantForm(g))
|
|
10542
|
-
return (await new t(
|
|
10559
|
+
return (await new t(F.origin, {
|
|
10543
10560
|
method: "POST",
|
|
10544
10561
|
body: g
|
|
10545
10562
|
}).arrayBuffer()).byteLength;
|
|
@@ -11196,7 +11213,7 @@ export {
|
|
|
11196
11213
|
De as BaseCard,
|
|
11197
11214
|
P as BaseDatePicker,
|
|
11198
11215
|
q as BaseDateTimePicker,
|
|
11199
|
-
|
|
11216
|
+
H as BaseDrawer,
|
|
11200
11217
|
Oe as BaseIcon,
|
|
11201
11218
|
G as BaseInput,
|
|
11202
11219
|
ue as BaseList,
|