@blackcube/aurelia-kit 1.0.0-rc1 → 1.0.0-rc3
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/README.md +73 -1
- package/dist/index.es.js +776 -390
- package/dist/index.es.js.map +1 -1
- package/dist/types/attributes/focus.d.ts +13 -0
- package/dist/types/attributes/focus.d.ts.map +1 -0
- package/dist/types/attributes/index.d.ts +1 -0
- package/dist/types/attributes/index.d.ts.map +1 -1
- package/dist/types/attributes/toaster.d.ts +0 -5
- package/dist/types/attributes/toaster.d.ts.map +1 -1
- package/dist/types/components/bleet-dialog.d.ts +16 -5
- package/dist/types/components/bleet-dialog.d.ts.map +1 -1
- package/dist/types/components/bleet-toaster.d.ts +43 -0
- package/dist/types/components/bleet-toaster.d.ts.map +1 -0
- package/dist/types/components/index.d.ts +2 -0
- package/dist/types/components/index.d.ts.map +1 -1
- package/dist/types/index.d.ts +5 -4
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/interfaces/event-aggregator.d.ts +1 -0
- package/dist/types/interfaces/event-aggregator.d.ts.map +1 -1
- package/dist/types/utils/toaster.d.ts +25 -0
- package/dist/types/utils/toaster.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -168,20 +168,20 @@ var w = /* @__PURE__ */ function(e) {
|
|
|
168
168
|
return e.Opening = "opening", e.Closing = "closing", e.Opened = "opened", e.Closed = "closed", e;
|
|
169
169
|
}({}), L = /* @__PURE__ */ function(e) {
|
|
170
170
|
return e.Open = "open", e.Close = "close", e.Toggle = "toggle", e;
|
|
171
|
-
}({}), ne = /* @__PURE__ */ function(e) {
|
|
172
|
-
return e.Opening = "opening", e.Closing = "closing", e.Opened = "opened", e.Closed = "closed", e;
|
|
173
171
|
}({}), R = /* @__PURE__ */ function(e) {
|
|
174
|
-
return e.
|
|
172
|
+
return e.Opening = "opening", e.Closing = "closing", e.Opened = "opened", e.Closed = "closed", e;
|
|
175
173
|
}({}), z = /* @__PURE__ */ function(e) {
|
|
174
|
+
return e.Primary = "primary", e.Secondary = "secondary", e.Success = "success", e.Danger = "danger", e.Warning = "warning", e.Info = "info", e.Accent = "accent", e;
|
|
175
|
+
}({}), B = /* @__PURE__ */ function(e) {
|
|
176
176
|
return e.Info = "information-circle", e.Success = "check-circle", e.Warning = "exclamation-triangle", e.Danger = "x-circle", e;
|
|
177
|
-
}({}),
|
|
177
|
+
}({}), ne = /* @__PURE__ */ function(e) {
|
|
178
178
|
return e.Info = "information-circle", e.Success = "check-circle", e.Warning = "exclamation-triangle", e.Danger = "x-circle", e.InformationCircle = "information-circle", e.CheckCircle = "check-circle", e.ExclamationTriangle = "exclamation-triangle", e.XCircle = "x-circle", e;
|
|
179
|
-
}({}),
|
|
179
|
+
}({}), V = /* @__PURE__ */ function(e) {
|
|
180
180
|
return e.Keep = "keep", e.Close = "close", e.RefreshAndClose = "refreshAndClose", e;
|
|
181
181
|
}({});
|
|
182
182
|
//#endregion
|
|
183
183
|
//#region src/attributes/burger.ts
|
|
184
|
-
function
|
|
184
|
+
function re(e, t) {
|
|
185
185
|
if (typeof e != "object" || !e) return e;
|
|
186
186
|
var n = e[Symbol.toPrimitive];
|
|
187
187
|
if (n !== void 0) {
|
|
@@ -191,15 +191,15 @@ function ie(e, t) {
|
|
|
191
191
|
}
|
|
192
192
|
return (t === "string" ? String : Number)(e);
|
|
193
193
|
}
|
|
194
|
-
function
|
|
195
|
-
var t =
|
|
194
|
+
function ie(e) {
|
|
195
|
+
var t = re(e, "string");
|
|
196
196
|
return typeof t == "symbol" ? t : String(t);
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function ae(e) {
|
|
199
199
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
200
200
|
return e;
|
|
201
201
|
}
|
|
202
|
-
function
|
|
202
|
+
function oe(e, t, n) {
|
|
203
203
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
204
204
|
try {
|
|
205
205
|
Object.defineProperty(e, "name", {
|
|
@@ -209,7 +209,7 @@ function se(e, t, n) {
|
|
|
209
209
|
} catch {}
|
|
210
210
|
return e;
|
|
211
211
|
}
|
|
212
|
-
function
|
|
212
|
+
function se(e, t, n, r, i, a) {
|
|
213
213
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
214
214
|
function p(t, n, r) {
|
|
215
215
|
return function(i, a) {
|
|
@@ -234,13 +234,13 @@ function ce(e, t, n, r, i, a) {
|
|
|
234
234
|
}
|
|
235
235
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
236
236
|
if (!b && (d ? (h || x ? E = {
|
|
237
|
-
get:
|
|
237
|
+
get: oe(function() {
|
|
238
238
|
return y(this);
|
|
239
239
|
}, r, "get"),
|
|
240
240
|
set: function(e) {
|
|
241
241
|
t[4](this, e);
|
|
242
242
|
}
|
|
243
|
-
} : E[O] = y, h ||
|
|
243
|
+
} : E[O] = y, h || oe(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
244
244
|
if (f = u[+c][r], f && (f ^ i) !== 7) throw Error("Decorating two elements with the same name (" + E[O].name + ") is not supported yet");
|
|
245
245
|
u[+c][r] = i < 3 ? 1 : i;
|
|
246
246
|
}
|
|
@@ -288,8 +288,8 @@ function ce(e, t, n, r, i, a) {
|
|
|
288
288
|
var l = n[c], u = l[1], d = u & 7;
|
|
289
289
|
if ((u & 8) == o && !d == s) {
|
|
290
290
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
291
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
292
|
-
return
|
|
291
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : ie(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
292
|
+
return ae(t) === e;
|
|
293
293
|
} : i);
|
|
294
294
|
}
|
|
295
295
|
}
|
|
@@ -311,13 +311,13 @@ function ce(e, t, n, r, i, a) {
|
|
|
311
311
|
}
|
|
312
312
|
};
|
|
313
313
|
}
|
|
314
|
-
var
|
|
314
|
+
var ce = l("bleet-burger"), le, H;
|
|
315
315
|
(class {
|
|
316
316
|
logger;
|
|
317
317
|
ea;
|
|
318
318
|
element;
|
|
319
319
|
static {
|
|
320
|
-
({c: [
|
|
320
|
+
({c: [H, le]} = se(this, [ce], []));
|
|
321
321
|
}
|
|
322
322
|
constructor(e = f(a).scopeTo("bleet-burger"), t = f(i), n = f(o)) {
|
|
323
323
|
this.logger = e, this.ea = t, this.element = n, this.logger.trace("constructor");
|
|
@@ -332,12 +332,12 @@ var le = l("bleet-burger"), ue, V;
|
|
|
332
332
|
this.logger.trace("onClickButton", e), e.preventDefault(), this.ea.publish(w.Menu, { action: F.Open });
|
|
333
333
|
};
|
|
334
334
|
static {
|
|
335
|
-
|
|
335
|
+
le();
|
|
336
336
|
}
|
|
337
337
|
});
|
|
338
338
|
//#endregion
|
|
339
339
|
//#region src/attributes/menu.ts
|
|
340
|
-
function
|
|
340
|
+
function ue(e, t) {
|
|
341
341
|
if (typeof e != "object" || !e) return e;
|
|
342
342
|
var n = e[Symbol.toPrimitive];
|
|
343
343
|
if (n !== void 0) {
|
|
@@ -347,15 +347,15 @@ function de(e, t) {
|
|
|
347
347
|
}
|
|
348
348
|
return (t === "string" ? String : Number)(e);
|
|
349
349
|
}
|
|
350
|
-
function
|
|
351
|
-
var t =
|
|
350
|
+
function de(e) {
|
|
351
|
+
var t = ue(e, "string");
|
|
352
352
|
return typeof t == "symbol" ? t : String(t);
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function fe(e) {
|
|
355
355
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
356
356
|
return e;
|
|
357
357
|
}
|
|
358
|
-
function
|
|
358
|
+
function pe(e, t, n) {
|
|
359
359
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
360
360
|
try {
|
|
361
361
|
Object.defineProperty(e, "name", {
|
|
@@ -365,7 +365,7 @@ function me(e, t, n) {
|
|
|
365
365
|
} catch {}
|
|
366
366
|
return e;
|
|
367
367
|
}
|
|
368
|
-
function
|
|
368
|
+
function me(e, t, n, r, i, a) {
|
|
369
369
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
370
370
|
function p(t, n, r) {
|
|
371
371
|
return function(i, a) {
|
|
@@ -390,13 +390,13 @@ function he(e, t, n, r, i, a) {
|
|
|
390
390
|
}
|
|
391
391
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
392
392
|
if (!b && (d ? (h || x ? E = {
|
|
393
|
-
get:
|
|
393
|
+
get: pe(function() {
|
|
394
394
|
return y(this);
|
|
395
395
|
}, r, "get"),
|
|
396
396
|
set: function(e) {
|
|
397
397
|
t[4](this, e);
|
|
398
398
|
}
|
|
399
|
-
} : E[O] = y, h ||
|
|
399
|
+
} : E[O] = y, h || pe(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
400
400
|
if (f = u[+c][r], f && (f ^ i) !== 7) throw Error("Decorating two elements with the same name (" + E[O].name + ") is not supported yet");
|
|
401
401
|
u[+c][r] = i < 3 ? 1 : i;
|
|
402
402
|
}
|
|
@@ -444,8 +444,8 @@ function he(e, t, n, r, i, a) {
|
|
|
444
444
|
var l = n[c], u = l[1], d = u & 7;
|
|
445
445
|
if ((u & 8) == o && !d == s) {
|
|
446
446
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
447
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
448
|
-
return
|
|
447
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : de(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
448
|
+
return fe(t) === e;
|
|
449
449
|
} : i);
|
|
450
450
|
}
|
|
451
451
|
}
|
|
@@ -467,7 +467,7 @@ function he(e, t, n, r, i, a) {
|
|
|
467
467
|
}
|
|
468
468
|
};
|
|
469
469
|
}
|
|
470
|
-
var
|
|
470
|
+
var he = l("bleet-menu"), ge, U;
|
|
471
471
|
(class {
|
|
472
472
|
logger;
|
|
473
473
|
ea;
|
|
@@ -476,7 +476,7 @@ var ge = l("bleet-menu"), _e, H;
|
|
|
476
476
|
transitionService;
|
|
477
477
|
storageService;
|
|
478
478
|
static {
|
|
479
|
-
({c: [
|
|
479
|
+
({c: [U, ge]} = me(this, [he], []));
|
|
480
480
|
}
|
|
481
481
|
constructor(e = f(a).scopeTo("bleet-menu"), t = f(i), n = f(o), r = f(s), c = f(v), l = f(g)) {
|
|
482
482
|
this.logger = e, this.ea = t, this.element = n, this.p = r, this.transitionService = c, this.storageService = l, this.logger.trace("constructor");
|
|
@@ -561,12 +561,12 @@ var ge = l("bleet-menu"), _e, H;
|
|
|
561
561
|
e.status === D.Closing ? (this.logger.trace("Overlay Close action received"), this.close(!0)) : this.logger.trace("onOverlayStatus unhandled", e);
|
|
562
562
|
};
|
|
563
563
|
static {
|
|
564
|
-
|
|
564
|
+
ge();
|
|
565
565
|
}
|
|
566
566
|
});
|
|
567
567
|
//#endregion
|
|
568
568
|
//#region src/attributes/badge.ts
|
|
569
|
-
function
|
|
569
|
+
function _e(e, t) {
|
|
570
570
|
if (typeof e != "object" || !e) return e;
|
|
571
571
|
var n = e[Symbol.toPrimitive];
|
|
572
572
|
if (n !== void 0) {
|
|
@@ -576,15 +576,15 @@ function ve(e, t) {
|
|
|
576
576
|
}
|
|
577
577
|
return (t === "string" ? String : Number)(e);
|
|
578
578
|
}
|
|
579
|
-
function
|
|
580
|
-
var t =
|
|
579
|
+
function ve(e) {
|
|
580
|
+
var t = _e(e, "string");
|
|
581
581
|
return typeof t == "symbol" ? t : String(t);
|
|
582
582
|
}
|
|
583
|
-
function
|
|
583
|
+
function ye(e) {
|
|
584
584
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
585
585
|
return e;
|
|
586
586
|
}
|
|
587
|
-
function
|
|
587
|
+
function be(e, t, n) {
|
|
588
588
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
589
589
|
try {
|
|
590
590
|
Object.defineProperty(e, "name", {
|
|
@@ -594,7 +594,7 @@ function xe(e, t, n) {
|
|
|
594
594
|
} catch {}
|
|
595
595
|
return e;
|
|
596
596
|
}
|
|
597
|
-
function
|
|
597
|
+
function xe(e, t, n, r, i, a) {
|
|
598
598
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
599
599
|
function p(t, n, r) {
|
|
600
600
|
return function(i, a) {
|
|
@@ -619,13 +619,13 @@ function Se(e, t, n, r, i, a) {
|
|
|
619
619
|
}
|
|
620
620
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
621
621
|
if (!b && (d ? (h || x ? E = {
|
|
622
|
-
get:
|
|
622
|
+
get: be(function() {
|
|
623
623
|
return y(this);
|
|
624
624
|
}, r, "get"),
|
|
625
625
|
set: function(e) {
|
|
626
626
|
t[4](this, e);
|
|
627
627
|
}
|
|
628
|
-
} : E[O] = y, h ||
|
|
628
|
+
} : E[O] = y, h || be(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
629
629
|
if (f = u[+c][r], f && (f ^ i) !== 7) throw Error("Decorating two elements with the same name (" + E[O].name + ") is not supported yet");
|
|
630
630
|
u[+c][r] = i < 3 ? 1 : i;
|
|
631
631
|
}
|
|
@@ -673,8 +673,8 @@ function Se(e, t, n, r, i, a) {
|
|
|
673
673
|
var l = n[c], u = l[1], d = u & 7;
|
|
674
674
|
if ((u & 8) == o && !d == s) {
|
|
675
675
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
676
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
677
|
-
return
|
|
676
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : ve(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
677
|
+
return ye(t) === e;
|
|
678
678
|
} : i);
|
|
679
679
|
}
|
|
680
680
|
}
|
|
@@ -696,16 +696,16 @@ function Se(e, t, n, r, i, a) {
|
|
|
696
696
|
}
|
|
697
697
|
};
|
|
698
698
|
}
|
|
699
|
-
var
|
|
699
|
+
var Se = l({
|
|
700
700
|
name: "bleet-badge",
|
|
701
701
|
defaultProperty: "id"
|
|
702
|
-
}), we, Te,
|
|
702
|
+
}), Ce, we, Te, W;
|
|
703
703
|
(class {
|
|
704
704
|
logger;
|
|
705
705
|
ea;
|
|
706
706
|
element;
|
|
707
707
|
static {
|
|
708
|
-
({e: [
|
|
708
|
+
({e: [we, Te], c: [W, Ce]} = xe(this, [Se], [[
|
|
709
709
|
c,
|
|
710
710
|
0,
|
|
711
711
|
"id"
|
|
@@ -715,26 +715,26 @@ var Ce = l({
|
|
|
715
715
|
this.logger = e, this.ea = t, this.element = n, this.logger.trace("constructor");
|
|
716
716
|
}
|
|
717
717
|
closeButton;
|
|
718
|
-
id =
|
|
718
|
+
id = we(this, "");
|
|
719
719
|
attached() {
|
|
720
720
|
this.logger.trace("attached"), this.closeButton = this.element.querySelector("[data-badge=remove]") ?? void 0, this.closeButton?.addEventListener("click", this.onClickRemove);
|
|
721
721
|
}
|
|
722
722
|
detaching() {
|
|
723
723
|
this.logger.trace("detaching"), this.closeButton?.removeEventListener("click", this.onClickRemove);
|
|
724
724
|
}
|
|
725
|
-
onClickRemove = (
|
|
725
|
+
onClickRemove = (Te(this), (e) => {
|
|
726
726
|
this.logger.trace("onClickRemove", e), e.preventDefault(), this.ea.publish(w.Badge, {
|
|
727
727
|
action: te.Remove,
|
|
728
728
|
id: this.id
|
|
729
729
|
}), this.element.remove();
|
|
730
730
|
});
|
|
731
731
|
static {
|
|
732
|
-
|
|
732
|
+
Ce();
|
|
733
733
|
}
|
|
734
734
|
});
|
|
735
735
|
//#endregion
|
|
736
736
|
//#region src/attributes/dropdown.ts
|
|
737
|
-
function
|
|
737
|
+
function Ee(e, t) {
|
|
738
738
|
if (typeof e != "object" || !e) return e;
|
|
739
739
|
var n = e[Symbol.toPrimitive];
|
|
740
740
|
if (n !== void 0) {
|
|
@@ -744,15 +744,15 @@ function De(e, t) {
|
|
|
744
744
|
}
|
|
745
745
|
return (t === "string" ? String : Number)(e);
|
|
746
746
|
}
|
|
747
|
-
function
|
|
748
|
-
var t =
|
|
747
|
+
function De(e) {
|
|
748
|
+
var t = Ee(e, "string");
|
|
749
749
|
return typeof t == "symbol" ? t : String(t);
|
|
750
750
|
}
|
|
751
|
-
function
|
|
751
|
+
function Oe(e) {
|
|
752
752
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
753
753
|
return e;
|
|
754
754
|
}
|
|
755
|
-
function
|
|
755
|
+
function ke(e, t, n) {
|
|
756
756
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
757
757
|
try {
|
|
758
758
|
Object.defineProperty(e, "name", {
|
|
@@ -762,7 +762,7 @@ function Ae(e, t, n) {
|
|
|
762
762
|
} catch {}
|
|
763
763
|
return e;
|
|
764
764
|
}
|
|
765
|
-
function
|
|
765
|
+
function Ae(e, t, n, r, i, a) {
|
|
766
766
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
767
767
|
function p(t, n, r) {
|
|
768
768
|
return function(i, a) {
|
|
@@ -787,13 +787,13 @@ function je(e, t, n, r, i, a) {
|
|
|
787
787
|
}
|
|
788
788
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
789
789
|
if (!b && (d ? (h || x ? E = {
|
|
790
|
-
get:
|
|
790
|
+
get: ke(function() {
|
|
791
791
|
return y(this);
|
|
792
792
|
}, r, "get"),
|
|
793
793
|
set: function(e) {
|
|
794
794
|
t[4](this, e);
|
|
795
795
|
}
|
|
796
|
-
} : E[O] = y, h ||
|
|
796
|
+
} : E[O] = y, h || ke(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
797
797
|
if (f = u[+c][r], f && (f ^ i) !== 7) throw Error("Decorating two elements with the same name (" + E[O].name + ") is not supported yet");
|
|
798
798
|
u[+c][r] = i < 3 ? 1 : i;
|
|
799
799
|
}
|
|
@@ -841,8 +841,8 @@ function je(e, t, n, r, i, a) {
|
|
|
841
841
|
var l = n[c], u = l[1], d = u & 7;
|
|
842
842
|
if ((u & 8) == o && !d == s) {
|
|
843
843
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
844
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
845
|
-
return
|
|
844
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : De(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
845
|
+
return Oe(t) === e;
|
|
846
846
|
} : i);
|
|
847
847
|
}
|
|
848
848
|
}
|
|
@@ -864,13 +864,13 @@ function je(e, t, n, r, i, a) {
|
|
|
864
864
|
}
|
|
865
865
|
};
|
|
866
866
|
}
|
|
867
|
-
var
|
|
867
|
+
var je = l("bleet-dropdown"), Me, G;
|
|
868
868
|
(class {
|
|
869
869
|
logger;
|
|
870
870
|
element;
|
|
871
871
|
trapFocusService;
|
|
872
872
|
static {
|
|
873
|
-
({c: [
|
|
873
|
+
({c: [G, Me]} = Ae(this, [je], []));
|
|
874
874
|
}
|
|
875
875
|
constructor(e = f(a).scopeTo("bleet-dropdown"), t = f(o), n = f(b)) {
|
|
876
876
|
this.logger = e, this.element = t, this.trapFocusService = n, this.logger.trace("constructor");
|
|
@@ -1039,12 +1039,12 @@ var Me = l("bleet-dropdown"), Ne, W;
|
|
|
1039
1039
|
n && (n.textContent = e), this.itemsContainer?.append(t);
|
|
1040
1040
|
}
|
|
1041
1041
|
static {
|
|
1042
|
-
|
|
1042
|
+
Me();
|
|
1043
1043
|
}
|
|
1044
1044
|
});
|
|
1045
1045
|
//#endregion
|
|
1046
1046
|
//#region src/attributes/password.ts
|
|
1047
|
-
function
|
|
1047
|
+
function Ne(e, t) {
|
|
1048
1048
|
if (typeof e != "object" || !e) return e;
|
|
1049
1049
|
var n = e[Symbol.toPrimitive];
|
|
1050
1050
|
if (n !== void 0) {
|
|
@@ -1054,15 +1054,15 @@ function Pe(e, t) {
|
|
|
1054
1054
|
}
|
|
1055
1055
|
return (t === "string" ? String : Number)(e);
|
|
1056
1056
|
}
|
|
1057
|
-
function
|
|
1058
|
-
var t =
|
|
1057
|
+
function Pe(e) {
|
|
1058
|
+
var t = Ne(e, "string");
|
|
1059
1059
|
return typeof t == "symbol" ? t : String(t);
|
|
1060
1060
|
}
|
|
1061
|
-
function
|
|
1061
|
+
function Fe(e) {
|
|
1062
1062
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
1063
1063
|
return e;
|
|
1064
1064
|
}
|
|
1065
|
-
function
|
|
1065
|
+
function Ie(e, t, n) {
|
|
1066
1066
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
1067
1067
|
try {
|
|
1068
1068
|
Object.defineProperty(e, "name", {
|
|
@@ -1072,7 +1072,7 @@ function Le(e, t, n) {
|
|
|
1072
1072
|
} catch {}
|
|
1073
1073
|
return e;
|
|
1074
1074
|
}
|
|
1075
|
-
function
|
|
1075
|
+
function Le(e, t, n, r, i, a) {
|
|
1076
1076
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
1077
1077
|
function p(t, n, r) {
|
|
1078
1078
|
return function(i, a) {
|
|
@@ -1097,13 +1097,13 @@ function Re(e, t, n, r, i, a) {
|
|
|
1097
1097
|
}
|
|
1098
1098
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
1099
1099
|
if (!b && (d ? (h || x ? E = {
|
|
1100
|
-
get:
|
|
1100
|
+
get: Ie(function() {
|
|
1101
1101
|
return y(this);
|
|
1102
1102
|
}, r, "get"),
|
|
1103
1103
|
set: function(e) {
|
|
1104
1104
|
t[4](this, e);
|
|
1105
1105
|
}
|
|
1106
|
-
} : E[O] = y, h ||
|
|
1106
|
+
} : E[O] = y, h || Ie(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
1107
1107
|
if (f = u[+c][r], f && (f ^ i) !== 7) throw Error("Decorating two elements with the same name (" + E[O].name + ") is not supported yet");
|
|
1108
1108
|
u[+c][r] = i < 3 ? 1 : i;
|
|
1109
1109
|
}
|
|
@@ -1151,8 +1151,8 @@ function Re(e, t, n, r, i, a) {
|
|
|
1151
1151
|
var l = n[c], u = l[1], d = u & 7;
|
|
1152
1152
|
if ((u & 8) == o && !d == s) {
|
|
1153
1153
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
1154
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
1155
|
-
return
|
|
1154
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : Pe(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
1155
|
+
return Fe(t) === e;
|
|
1156
1156
|
} : i);
|
|
1157
1157
|
}
|
|
1158
1158
|
}
|
|
@@ -1174,12 +1174,12 @@ function Re(e, t, n, r, i, a) {
|
|
|
1174
1174
|
}
|
|
1175
1175
|
};
|
|
1176
1176
|
}
|
|
1177
|
-
var
|
|
1177
|
+
var Re = l("bleet-password"), ze, K;
|
|
1178
1178
|
(class {
|
|
1179
1179
|
logger;
|
|
1180
1180
|
element;
|
|
1181
1181
|
static {
|
|
1182
|
-
({c: [
|
|
1182
|
+
({c: [K, ze]} = Le(this, [Re], []));
|
|
1183
1183
|
}
|
|
1184
1184
|
constructor(e = f(a).scopeTo("bleet-password"), t = f(o)) {
|
|
1185
1185
|
this.logger = e, this.element = t;
|
|
@@ -1203,12 +1203,12 @@ var ze = l("bleet-password"), Be, G;
|
|
|
1203
1203
|
this.input && (this.input.type = t ? "text" : "password"), this.iconHidden && S(this.iconHidden, "password", t ? "hide" : "show"), this.iconVisible && S(this.iconVisible, "password", t ? "show" : "hide");
|
|
1204
1204
|
};
|
|
1205
1205
|
static {
|
|
1206
|
-
|
|
1206
|
+
ze();
|
|
1207
1207
|
}
|
|
1208
1208
|
});
|
|
1209
1209
|
//#endregion
|
|
1210
1210
|
//#region src/attributes/tabs.ts
|
|
1211
|
-
function
|
|
1211
|
+
function Be(e, t) {
|
|
1212
1212
|
if (typeof e != "object" || !e) return e;
|
|
1213
1213
|
var n = e[Symbol.toPrimitive];
|
|
1214
1214
|
if (n !== void 0) {
|
|
@@ -1218,15 +1218,15 @@ function Ve(e, t) {
|
|
|
1218
1218
|
}
|
|
1219
1219
|
return (t === "string" ? String : Number)(e);
|
|
1220
1220
|
}
|
|
1221
|
-
function
|
|
1222
|
-
var t =
|
|
1221
|
+
function Ve(e) {
|
|
1222
|
+
var t = Be(e, "string");
|
|
1223
1223
|
return typeof t == "symbol" ? t : String(t);
|
|
1224
1224
|
}
|
|
1225
|
-
function
|
|
1225
|
+
function He(e) {
|
|
1226
1226
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
1227
1227
|
return e;
|
|
1228
1228
|
}
|
|
1229
|
-
function
|
|
1229
|
+
function Ue(e, t, n) {
|
|
1230
1230
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
1231
1231
|
try {
|
|
1232
1232
|
Object.defineProperty(e, "name", {
|
|
@@ -1236,7 +1236,7 @@ function We(e, t, n) {
|
|
|
1236
1236
|
} catch {}
|
|
1237
1237
|
return e;
|
|
1238
1238
|
}
|
|
1239
|
-
function
|
|
1239
|
+
function We(e, t, n, r, i, a) {
|
|
1240
1240
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
1241
1241
|
function p(t, n, r) {
|
|
1242
1242
|
return function(i, a) {
|
|
@@ -1261,13 +1261,13 @@ function Ge(e, t, n, r, i, a) {
|
|
|
1261
1261
|
}
|
|
1262
1262
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
1263
1263
|
if (!b && (d ? (h || x ? E = {
|
|
1264
|
-
get:
|
|
1264
|
+
get: Ue(function() {
|
|
1265
1265
|
return y(this);
|
|
1266
1266
|
}, r, "get"),
|
|
1267
1267
|
set: function(e) {
|
|
1268
1268
|
t[4](this, e);
|
|
1269
1269
|
}
|
|
1270
|
-
} : E[O] = y, h ||
|
|
1270
|
+
} : E[O] = y, h || Ue(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
1271
1271
|
if (f = u[+c][r], f && (f ^ i) !== 7) throw Error("Decorating two elements with the same name (" + E[O].name + ") is not supported yet");
|
|
1272
1272
|
u[+c][r] = i < 3 ? 1 : i;
|
|
1273
1273
|
}
|
|
@@ -1315,8 +1315,8 @@ function Ge(e, t, n, r, i, a) {
|
|
|
1315
1315
|
var l = n[c], u = l[1], d = u & 7;
|
|
1316
1316
|
if ((u & 8) == o && !d == s) {
|
|
1317
1317
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
1318
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
1319
|
-
return
|
|
1318
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : Ve(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
1319
|
+
return He(t) === e;
|
|
1320
1320
|
} : i);
|
|
1321
1321
|
}
|
|
1322
1322
|
}
|
|
@@ -1338,13 +1338,13 @@ function Ge(e, t, n, r, i, a) {
|
|
|
1338
1338
|
}
|
|
1339
1339
|
};
|
|
1340
1340
|
}
|
|
1341
|
-
var
|
|
1341
|
+
var Ge = l("bleet-tabs"), Ke, q;
|
|
1342
1342
|
(class {
|
|
1343
1343
|
logger;
|
|
1344
1344
|
element;
|
|
1345
1345
|
p;
|
|
1346
1346
|
static {
|
|
1347
|
-
({c: [
|
|
1347
|
+
({c: [q, Ke]} = We(this, [Ge], []));
|
|
1348
1348
|
}
|
|
1349
1349
|
constructor(e = f(a).scopeTo("bleet-tabs"), t = f(o), n = f(s)) {
|
|
1350
1350
|
this.logger = e, this.element = t, this.p = n, this.logger.trace("constructor");
|
|
@@ -1382,12 +1382,12 @@ var Ke = l("bleet-tabs"), qe, K;
|
|
|
1382
1382
|
n && n.click();
|
|
1383
1383
|
};
|
|
1384
1384
|
static {
|
|
1385
|
-
|
|
1385
|
+
Ke();
|
|
1386
1386
|
}
|
|
1387
1387
|
});
|
|
1388
1388
|
//#endregion
|
|
1389
1389
|
//#region src/attributes/profile.ts
|
|
1390
|
-
function
|
|
1390
|
+
function qe(e, t) {
|
|
1391
1391
|
if (typeof e != "object" || !e) return e;
|
|
1392
1392
|
var n = e[Symbol.toPrimitive];
|
|
1393
1393
|
if (n !== void 0) {
|
|
@@ -1397,15 +1397,15 @@ function Je(e, t) {
|
|
|
1397
1397
|
}
|
|
1398
1398
|
return (t === "string" ? String : Number)(e);
|
|
1399
1399
|
}
|
|
1400
|
-
function
|
|
1401
|
-
var t =
|
|
1400
|
+
function Je(e) {
|
|
1401
|
+
var t = qe(e, "string");
|
|
1402
1402
|
return typeof t == "symbol" ? t : String(t);
|
|
1403
1403
|
}
|
|
1404
|
-
function
|
|
1404
|
+
function Ye(e) {
|
|
1405
1405
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
1406
1406
|
return e;
|
|
1407
1407
|
}
|
|
1408
|
-
function
|
|
1408
|
+
function Xe(e, t, n) {
|
|
1409
1409
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
1410
1410
|
try {
|
|
1411
1411
|
Object.defineProperty(e, "name", {
|
|
@@ -1415,7 +1415,7 @@ function Ze(e, t, n) {
|
|
|
1415
1415
|
} catch {}
|
|
1416
1416
|
return e;
|
|
1417
1417
|
}
|
|
1418
|
-
function
|
|
1418
|
+
function Ze(e, t, n, r, i, a) {
|
|
1419
1419
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
1420
1420
|
function p(t, n, r) {
|
|
1421
1421
|
return function(i, a) {
|
|
@@ -1440,13 +1440,13 @@ function Qe(e, t, n, r, i, a) {
|
|
|
1440
1440
|
}
|
|
1441
1441
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
1442
1442
|
if (!b && (d ? (h || x ? E = {
|
|
1443
|
-
get:
|
|
1443
|
+
get: Xe(function() {
|
|
1444
1444
|
return y(this);
|
|
1445
1445
|
}, r, "get"),
|
|
1446
1446
|
set: function(e) {
|
|
1447
1447
|
t[4](this, e);
|
|
1448
1448
|
}
|
|
1449
|
-
} : E[O] = y, h ||
|
|
1449
|
+
} : E[O] = y, h || Xe(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
1450
1450
|
if (f = u[+c][r], f && (f ^ i) !== 7) throw Error("Decorating two elements with the same name (" + E[O].name + ") is not supported yet");
|
|
1451
1451
|
u[+c][r] = i < 3 ? 1 : i;
|
|
1452
1452
|
}
|
|
@@ -1494,8 +1494,8 @@ function Qe(e, t, n, r, i, a) {
|
|
|
1494
1494
|
var l = n[c], u = l[1], d = u & 7;
|
|
1495
1495
|
if ((u & 8) == o && !d == s) {
|
|
1496
1496
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
1497
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
1498
|
-
return
|
|
1497
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : Je(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
1498
|
+
return Ye(t) === e;
|
|
1499
1499
|
} : i);
|
|
1500
1500
|
}
|
|
1501
1501
|
}
|
|
@@ -1517,10 +1517,10 @@ function Qe(e, t, n, r, i, a) {
|
|
|
1517
1517
|
}
|
|
1518
1518
|
};
|
|
1519
1519
|
}
|
|
1520
|
-
var
|
|
1520
|
+
var Qe = l({
|
|
1521
1521
|
name: "bleet-profile",
|
|
1522
1522
|
defaultProperty: "id"
|
|
1523
|
-
}), et, tt,
|
|
1523
|
+
}), $e, et, tt, J;
|
|
1524
1524
|
(class {
|
|
1525
1525
|
logger;
|
|
1526
1526
|
ea;
|
|
@@ -1529,7 +1529,7 @@ var $e = l({
|
|
|
1529
1529
|
p;
|
|
1530
1530
|
trapFocusService;
|
|
1531
1531
|
static {
|
|
1532
|
-
({e: [
|
|
1532
|
+
({e: [et, tt], c: [J, $e]} = Ze(this, [Qe], [[
|
|
1533
1533
|
c,
|
|
1534
1534
|
0,
|
|
1535
1535
|
"id"
|
|
@@ -1538,8 +1538,8 @@ var $e = l({
|
|
|
1538
1538
|
constructor(e = f(a).scopeTo("bleet-profile"), t = f(i), n = f(o), r = f(v), c = f(s), l = f(b)) {
|
|
1539
1539
|
this.logger = e, this.ea = t, this.element = n, this.transitionService = r, this.p = c, this.trapFocusService = l, this.logger.trace("constructor");
|
|
1540
1540
|
}
|
|
1541
|
-
id =
|
|
1542
|
-
disposable = (
|
|
1541
|
+
id = et(this, "");
|
|
1542
|
+
disposable = (tt(this), void 0);
|
|
1543
1543
|
toggleButton;
|
|
1544
1544
|
panel;
|
|
1545
1545
|
isOpen = !1;
|
|
@@ -1605,12 +1605,12 @@ var $e = l({
|
|
|
1605
1605
|
e.action === O.Close && t && this.isOpen && (this.logger.trace("Profile Close action received"), this.close());
|
|
1606
1606
|
};
|
|
1607
1607
|
static {
|
|
1608
|
-
|
|
1608
|
+
$e();
|
|
1609
1609
|
}
|
|
1610
1610
|
});
|
|
1611
1611
|
//#endregion
|
|
1612
1612
|
//#region src/attributes/toaster-trigger.ts
|
|
1613
|
-
function
|
|
1613
|
+
function nt(e, t) {
|
|
1614
1614
|
if (typeof e != "object" || !e) return e;
|
|
1615
1615
|
var n = e[Symbol.toPrimitive];
|
|
1616
1616
|
if (n !== void 0) {
|
|
@@ -1620,15 +1620,15 @@ function rt(e, t) {
|
|
|
1620
1620
|
}
|
|
1621
1621
|
return (t === "string" ? String : Number)(e);
|
|
1622
1622
|
}
|
|
1623
|
-
function
|
|
1624
|
-
var t =
|
|
1623
|
+
function rt(e) {
|
|
1624
|
+
var t = nt(e, "string");
|
|
1625
1625
|
return typeof t == "symbol" ? t : String(t);
|
|
1626
1626
|
}
|
|
1627
|
-
function
|
|
1627
|
+
function it(e) {
|
|
1628
1628
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
1629
1629
|
return e;
|
|
1630
1630
|
}
|
|
1631
|
-
function
|
|
1631
|
+
function at(e, t, n) {
|
|
1632
1632
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
1633
1633
|
try {
|
|
1634
1634
|
Object.defineProperty(e, "name", {
|
|
@@ -1638,7 +1638,7 @@ function ot(e, t, n) {
|
|
|
1638
1638
|
} catch {}
|
|
1639
1639
|
return e;
|
|
1640
1640
|
}
|
|
1641
|
-
function
|
|
1641
|
+
function ot(e, t, n, r, i, a) {
|
|
1642
1642
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
1643
1643
|
function p(t, n, r) {
|
|
1644
1644
|
return function(i, a) {
|
|
@@ -1663,13 +1663,13 @@ function st(e, t, n, r, i, a) {
|
|
|
1663
1663
|
}
|
|
1664
1664
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
1665
1665
|
if (!b && (d ? (h || x ? E = {
|
|
1666
|
-
get:
|
|
1666
|
+
get: at(function() {
|
|
1667
1667
|
return y(this);
|
|
1668
1668
|
}, r, "get"),
|
|
1669
1669
|
set: function(e) {
|
|
1670
1670
|
t[4](this, e);
|
|
1671
1671
|
}
|
|
1672
|
-
} : E[O] = y, h ||
|
|
1672
|
+
} : E[O] = y, h || at(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
1673
1673
|
if (f = u[+c][r], f && (f ^ i) !== 7) throw Error("Decorating two elements with the same name (" + E[O].name + ") is not supported yet");
|
|
1674
1674
|
u[+c][r] = i < 3 ? 1 : i;
|
|
1675
1675
|
}
|
|
@@ -1717,8 +1717,8 @@ function st(e, t, n, r, i, a) {
|
|
|
1717
1717
|
var l = n[c], u = l[1], d = u & 7;
|
|
1718
1718
|
if ((u & 8) == o && !d == s) {
|
|
1719
1719
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
1720
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
1721
|
-
return
|
|
1720
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : rt(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
1721
|
+
return it(t) === e;
|
|
1722
1722
|
} : i);
|
|
1723
1723
|
}
|
|
1724
1724
|
}
|
|
@@ -1740,43 +1740,43 @@ function st(e, t, n, r, i, a) {
|
|
|
1740
1740
|
}
|
|
1741
1741
|
};
|
|
1742
1742
|
}
|
|
1743
|
-
var
|
|
1743
|
+
var st = l({
|
|
1744
1744
|
name: "bleet-toaster-trigger",
|
|
1745
1745
|
defaultProperty: "id"
|
|
1746
|
-
}),
|
|
1746
|
+
}), ct, lt = c(), ut = c(), dt = c(), ft = c(), pt = c(), mt, ht, gt, _t, vt, yt, bt, xt, St, Ct, wt, Tt, Y;
|
|
1747
1747
|
(class {
|
|
1748
1748
|
logger;
|
|
1749
1749
|
element;
|
|
1750
1750
|
ea;
|
|
1751
1751
|
static {
|
|
1752
|
-
({e: [ht, gt, _t, vt, yt, bt, xt, St, Ct, wt, Tt
|
|
1752
|
+
({e: [mt, ht, gt, _t, vt, yt, bt, xt, St, Ct, wt, Tt], c: [Y, ct]} = ot(this, [st], [
|
|
1753
1753
|
[
|
|
1754
1754
|
c,
|
|
1755
1755
|
0,
|
|
1756
1756
|
"id"
|
|
1757
1757
|
],
|
|
1758
1758
|
[
|
|
1759
|
-
|
|
1759
|
+
lt,
|
|
1760
1760
|
0,
|
|
1761
1761
|
"color"
|
|
1762
1762
|
],
|
|
1763
1763
|
[
|
|
1764
|
-
|
|
1764
|
+
ut,
|
|
1765
1765
|
0,
|
|
1766
1766
|
"icon"
|
|
1767
1767
|
],
|
|
1768
1768
|
[
|
|
1769
|
-
|
|
1769
|
+
dt,
|
|
1770
1770
|
0,
|
|
1771
1771
|
"title"
|
|
1772
1772
|
],
|
|
1773
1773
|
[
|
|
1774
|
-
|
|
1774
|
+
ft,
|
|
1775
1775
|
0,
|
|
1776
1776
|
"content"
|
|
1777
1777
|
],
|
|
1778
1778
|
[
|
|
1779
|
-
|
|
1779
|
+
pt,
|
|
1780
1780
|
0,
|
|
1781
1781
|
"duration"
|
|
1782
1782
|
]
|
|
@@ -1785,12 +1785,12 @@ var ct = l({
|
|
|
1785
1785
|
constructor(e = f(a).scopeTo("bleet-toaster-trigger"), t = f(o), n = f(i)) {
|
|
1786
1786
|
this.logger = e, this.element = t, this.ea = n, this.logger.trace("constructor");
|
|
1787
1787
|
}
|
|
1788
|
-
id =
|
|
1789
|
-
color = (
|
|
1790
|
-
icon = (
|
|
1791
|
-
title = (
|
|
1792
|
-
content = (
|
|
1793
|
-
duration = (
|
|
1788
|
+
id = mt(this, "");
|
|
1789
|
+
color = (ht(this), gt(this, z.Info));
|
|
1790
|
+
icon = (_t(this), vt(this, B.Info));
|
|
1791
|
+
title = (yt(this), bt(this, ""));
|
|
1792
|
+
content = (xt(this), St(this, ""));
|
|
1793
|
+
duration = (Ct(this), wt(this, 0));
|
|
1794
1794
|
attaching() {
|
|
1795
1795
|
this.logger.trace("attaching");
|
|
1796
1796
|
}
|
|
@@ -1800,7 +1800,7 @@ var ct = l({
|
|
|
1800
1800
|
detaching() {
|
|
1801
1801
|
this.logger.trace("detaching"), this.element.removeEventListener("click", this.onClick);
|
|
1802
1802
|
}
|
|
1803
|
-
onClick = (
|
|
1803
|
+
onClick = (Tt(this), (e) => {
|
|
1804
1804
|
this.logger.trace("onClick", e), e.preventDefault(), this.ea.publish(w.Toaster, {
|
|
1805
1805
|
action: P.Add,
|
|
1806
1806
|
toast: {
|
|
@@ -1814,12 +1814,12 @@ var ct = l({
|
|
|
1814
1814
|
});
|
|
1815
1815
|
});
|
|
1816
1816
|
static {
|
|
1817
|
-
|
|
1817
|
+
ct();
|
|
1818
1818
|
}
|
|
1819
1819
|
});
|
|
1820
1820
|
//#endregion
|
|
1821
1821
|
//#region src/attributes/alert.ts
|
|
1822
|
-
function
|
|
1822
|
+
function Et(e, t) {
|
|
1823
1823
|
if (typeof e != "object" || !e) return e;
|
|
1824
1824
|
var n = e[Symbol.toPrimitive];
|
|
1825
1825
|
if (n !== void 0) {
|
|
@@ -1829,15 +1829,15 @@ function Dt(e, t) {
|
|
|
1829
1829
|
}
|
|
1830
1830
|
return (t === "string" ? String : Number)(e);
|
|
1831
1831
|
}
|
|
1832
|
-
function
|
|
1833
|
-
var t =
|
|
1832
|
+
function Dt(e) {
|
|
1833
|
+
var t = Et(e, "string");
|
|
1834
1834
|
return typeof t == "symbol" ? t : String(t);
|
|
1835
1835
|
}
|
|
1836
|
-
function
|
|
1836
|
+
function Ot(e) {
|
|
1837
1837
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
1838
1838
|
return e;
|
|
1839
1839
|
}
|
|
1840
|
-
function
|
|
1840
|
+
function kt(e, t, n) {
|
|
1841
1841
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
1842
1842
|
try {
|
|
1843
1843
|
Object.defineProperty(e, "name", {
|
|
@@ -1847,7 +1847,7 @@ function At(e, t, n) {
|
|
|
1847
1847
|
} catch {}
|
|
1848
1848
|
return e;
|
|
1849
1849
|
}
|
|
1850
|
-
function
|
|
1850
|
+
function At(e, t, n, r, i, a) {
|
|
1851
1851
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
1852
1852
|
function p(t, n, r) {
|
|
1853
1853
|
return function(i, a) {
|
|
@@ -1872,13 +1872,13 @@ function jt(e, t, n, r, i, a) {
|
|
|
1872
1872
|
}
|
|
1873
1873
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
1874
1874
|
if (!b && (d ? (h || x ? E = {
|
|
1875
|
-
get:
|
|
1875
|
+
get: kt(function() {
|
|
1876
1876
|
return y(this);
|
|
1877
1877
|
}, r, "get"),
|
|
1878
1878
|
set: function(e) {
|
|
1879
1879
|
t[4](this, e);
|
|
1880
1880
|
}
|
|
1881
|
-
} : E[O] = y, h ||
|
|
1881
|
+
} : E[O] = y, h || kt(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
1882
1882
|
if (f = u[+c][r], f && (f ^ i) !== 7) throw Error("Decorating two elements with the same name (" + E[O].name + ") is not supported yet");
|
|
1883
1883
|
u[+c][r] = i < 3 ? 1 : i;
|
|
1884
1884
|
}
|
|
@@ -1926,8 +1926,8 @@ function jt(e, t, n, r, i, a) {
|
|
|
1926
1926
|
var l = n[c], u = l[1], d = u & 7;
|
|
1927
1927
|
if ((u & 8) == o && !d == s) {
|
|
1928
1928
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
1929
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
1930
|
-
return
|
|
1929
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : Dt(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
1930
|
+
return Ot(t) === e;
|
|
1931
1931
|
} : i);
|
|
1932
1932
|
}
|
|
1933
1933
|
}
|
|
@@ -1949,14 +1949,14 @@ function jt(e, t, n, r, i, a) {
|
|
|
1949
1949
|
}
|
|
1950
1950
|
};
|
|
1951
1951
|
}
|
|
1952
|
-
var
|
|
1952
|
+
var jt = l("bleet-alert"), Mt, X;
|
|
1953
1953
|
(class {
|
|
1954
1954
|
logger;
|
|
1955
1955
|
element;
|
|
1956
1956
|
p;
|
|
1957
1957
|
transitionService;
|
|
1958
1958
|
static {
|
|
1959
|
-
({c: [
|
|
1959
|
+
({c: [X, Mt]} = At(this, [jt], []));
|
|
1960
1960
|
}
|
|
1961
1961
|
constructor(e = f(a).scopeTo("bleet-alert"), t = f(o), n = f(s), r = f(v)) {
|
|
1962
1962
|
this.logger = e, this.element = t, this.p = n, this.transitionService = r, this.logger.trace("constructor");
|
|
@@ -1982,12 +1982,12 @@ var Mt = l("bleet-alert"), Nt, Y;
|
|
|
1982
1982
|
});
|
|
1983
1983
|
};
|
|
1984
1984
|
static {
|
|
1985
|
-
|
|
1985
|
+
Mt();
|
|
1986
1986
|
}
|
|
1987
1987
|
});
|
|
1988
1988
|
//#endregion
|
|
1989
1989
|
//#region src/attributes/modal-trigger.ts
|
|
1990
|
-
function
|
|
1990
|
+
function Nt(e, t) {
|
|
1991
1991
|
if (typeof e != "object" || !e) return e;
|
|
1992
1992
|
var n = e[Symbol.toPrimitive];
|
|
1993
1993
|
if (n !== void 0) {
|
|
@@ -1997,15 +1997,15 @@ function Pt(e, t) {
|
|
|
1997
1997
|
}
|
|
1998
1998
|
return (t === "string" ? String : Number)(e);
|
|
1999
1999
|
}
|
|
2000
|
-
function
|
|
2001
|
-
var t =
|
|
2000
|
+
function Pt(e) {
|
|
2001
|
+
var t = Nt(e, "string");
|
|
2002
2002
|
return typeof t == "symbol" ? t : String(t);
|
|
2003
2003
|
}
|
|
2004
|
-
function
|
|
2004
|
+
function Ft(e) {
|
|
2005
2005
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
2006
2006
|
return e;
|
|
2007
2007
|
}
|
|
2008
|
-
function
|
|
2008
|
+
function It(e, t, n) {
|
|
2009
2009
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
2010
2010
|
try {
|
|
2011
2011
|
Object.defineProperty(e, "name", {
|
|
@@ -2015,7 +2015,7 @@ function Lt(e, t, n) {
|
|
|
2015
2015
|
} catch {}
|
|
2016
2016
|
return e;
|
|
2017
2017
|
}
|
|
2018
|
-
function
|
|
2018
|
+
function Lt(e, t, n, r, i, a) {
|
|
2019
2019
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
2020
2020
|
function p(t, n, r) {
|
|
2021
2021
|
return function(i, a) {
|
|
@@ -2040,13 +2040,13 @@ function Rt(e, t, n, r, i, a) {
|
|
|
2040
2040
|
}
|
|
2041
2041
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
2042
2042
|
if (!b && (d ? (h || x ? E = {
|
|
2043
|
-
get:
|
|
2043
|
+
get: It(function() {
|
|
2044
2044
|
return y(this);
|
|
2045
2045
|
}, r, "get"),
|
|
2046
2046
|
set: function(e) {
|
|
2047
2047
|
t[4](this, e);
|
|
2048
2048
|
}
|
|
2049
|
-
} : E[O] = y, h ||
|
|
2049
|
+
} : E[O] = y, h || It(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
2050
2050
|
if (f = u[+c][r], f && (f ^ i) !== 7) throw Error("Decorating two elements with the same name (" + E[O].name + ") is not supported yet");
|
|
2051
2051
|
u[+c][r] = i < 3 ? 1 : i;
|
|
2052
2052
|
}
|
|
@@ -2094,8 +2094,8 @@ function Rt(e, t, n, r, i, a) {
|
|
|
2094
2094
|
var l = n[c], u = l[1], d = u & 7;
|
|
2095
2095
|
if ((u & 8) == o && !d == s) {
|
|
2096
2096
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
2097
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
2098
|
-
return
|
|
2097
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : Pt(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
2098
|
+
return Ft(t) === e;
|
|
2099
2099
|
} : i);
|
|
2100
2100
|
}
|
|
2101
2101
|
}
|
|
@@ -2117,28 +2117,28 @@ function Rt(e, t, n, r, i, a) {
|
|
|
2117
2117
|
}
|
|
2118
2118
|
};
|
|
2119
2119
|
}
|
|
2120
|
-
var
|
|
2120
|
+
var Rt = l({
|
|
2121
2121
|
name: "bleet-modal-trigger",
|
|
2122
2122
|
defaultProperty: "id"
|
|
2123
|
-
}),
|
|
2123
|
+
}), zt, Bt = c(), Vt = c(), Ht, Ut, Wt, Gt, Kt, qt, Z;
|
|
2124
2124
|
(class {
|
|
2125
2125
|
logger;
|
|
2126
2126
|
element;
|
|
2127
2127
|
ea;
|
|
2128
2128
|
static {
|
|
2129
|
-
({e: [Ut, Wt, Gt, Kt, qt
|
|
2129
|
+
({e: [Ht, Ut, Wt, Gt, Kt, qt], c: [Z, zt]} = Lt(this, [Rt], [
|
|
2130
2130
|
[
|
|
2131
2131
|
c,
|
|
2132
2132
|
0,
|
|
2133
2133
|
"id"
|
|
2134
2134
|
],
|
|
2135
2135
|
[
|
|
2136
|
-
|
|
2136
|
+
Bt,
|
|
2137
2137
|
0,
|
|
2138
2138
|
"url"
|
|
2139
2139
|
],
|
|
2140
2140
|
[
|
|
2141
|
-
|
|
2141
|
+
Vt,
|
|
2142
2142
|
0,
|
|
2143
2143
|
"color"
|
|
2144
2144
|
]
|
|
@@ -2147,9 +2147,9 @@ var zt = l({
|
|
|
2147
2147
|
constructor(e = f(a).scopeTo("bleet-modal-trigger"), t = f(o), n = f(i)) {
|
|
2148
2148
|
this.logger = e, this.element = t, this.ea = n, this.logger.trace("constructor");
|
|
2149
2149
|
}
|
|
2150
|
-
id =
|
|
2151
|
-
url = (
|
|
2152
|
-
color = (
|
|
2150
|
+
id = Ht(this, "");
|
|
2151
|
+
url = (Ut(this), Wt(this, ""));
|
|
2152
|
+
color = (Gt(this), Kt(this, "primary"));
|
|
2153
2153
|
attaching() {
|
|
2154
2154
|
this.logger.trace("attaching");
|
|
2155
2155
|
}
|
|
@@ -2162,7 +2162,7 @@ var zt = l({
|
|
|
2162
2162
|
dispose() {
|
|
2163
2163
|
this.logger.trace("dispose");
|
|
2164
2164
|
}
|
|
2165
|
-
onClick = (
|
|
2165
|
+
onClick = (qt(this), (e) => {
|
|
2166
2166
|
this.logger.trace("onClick", e), e.preventDefault(), this.ea.publish(w.Modal, {
|
|
2167
2167
|
action: A.Toggle,
|
|
2168
2168
|
id: this.id,
|
|
@@ -2171,12 +2171,12 @@ var zt = l({
|
|
|
2171
2171
|
});
|
|
2172
2172
|
});
|
|
2173
2173
|
static {
|
|
2174
|
-
|
|
2174
|
+
zt();
|
|
2175
2175
|
}
|
|
2176
2176
|
});
|
|
2177
2177
|
//#endregion
|
|
2178
2178
|
//#region src/attributes/pager.ts
|
|
2179
|
-
function
|
|
2179
|
+
function Jt(e, t) {
|
|
2180
2180
|
if (typeof e != "object" || !e) return e;
|
|
2181
2181
|
var n = e[Symbol.toPrimitive];
|
|
2182
2182
|
if (n !== void 0) {
|
|
@@ -2186,15 +2186,15 @@ function Yt(e, t) {
|
|
|
2186
2186
|
}
|
|
2187
2187
|
return (t === "string" ? String : Number)(e);
|
|
2188
2188
|
}
|
|
2189
|
-
function
|
|
2190
|
-
var t =
|
|
2189
|
+
function Yt(e) {
|
|
2190
|
+
var t = Jt(e, "string");
|
|
2191
2191
|
return typeof t == "symbol" ? t : String(t);
|
|
2192
2192
|
}
|
|
2193
|
-
function
|
|
2193
|
+
function Xt(e) {
|
|
2194
2194
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
2195
2195
|
return e;
|
|
2196
2196
|
}
|
|
2197
|
-
function
|
|
2197
|
+
function Zt(e, t, n) {
|
|
2198
2198
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
2199
2199
|
try {
|
|
2200
2200
|
Object.defineProperty(e, "name", {
|
|
@@ -2204,7 +2204,7 @@ function Qt(e, t, n) {
|
|
|
2204
2204
|
} catch {}
|
|
2205
2205
|
return e;
|
|
2206
2206
|
}
|
|
2207
|
-
function
|
|
2207
|
+
function Qt(e, t, n, r, i, a) {
|
|
2208
2208
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
2209
2209
|
function p(t, n, r) {
|
|
2210
2210
|
return function(i, a) {
|
|
@@ -2229,13 +2229,13 @@ function $t(e, t, n, r, i, a) {
|
|
|
2229
2229
|
}
|
|
2230
2230
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
2231
2231
|
if (!b && (d ? (h || x ? E = {
|
|
2232
|
-
get:
|
|
2232
|
+
get: Zt(function() {
|
|
2233
2233
|
return y(this);
|
|
2234
2234
|
}, r, "get"),
|
|
2235
2235
|
set: function(e) {
|
|
2236
2236
|
t[4](this, e);
|
|
2237
2237
|
}
|
|
2238
|
-
} : E[O] = y, h ||
|
|
2238
|
+
} : E[O] = y, h || Zt(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
2239
2239
|
if (f = u[+c][r], f && (f ^ i) !== 7) throw Error("Decorating two elements with the same name (" + E[O].name + ") is not supported yet");
|
|
2240
2240
|
u[+c][r] = i < 3 ? 1 : i;
|
|
2241
2241
|
}
|
|
@@ -2283,8 +2283,8 @@ function $t(e, t, n, r, i, a) {
|
|
|
2283
2283
|
var l = n[c], u = l[1], d = u & 7;
|
|
2284
2284
|
if ((u & 8) == o && !d == s) {
|
|
2285
2285
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
2286
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
2287
|
-
return
|
|
2286
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : Yt(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
2287
|
+
return Xt(t) === e;
|
|
2288
2288
|
} : i);
|
|
2289
2289
|
}
|
|
2290
2290
|
}
|
|
@@ -2306,13 +2306,13 @@ function $t(e, t, n, r, i, a) {
|
|
|
2306
2306
|
}
|
|
2307
2307
|
};
|
|
2308
2308
|
}
|
|
2309
|
-
var
|
|
2309
|
+
var $t = l("bleet-pager"), en, Q;
|
|
2310
2310
|
(class {
|
|
2311
2311
|
logger;
|
|
2312
2312
|
element;
|
|
2313
2313
|
p;
|
|
2314
2314
|
static {
|
|
2315
|
-
({c: [
|
|
2315
|
+
({c: [Q, en]} = Qt(this, [$t], []));
|
|
2316
2316
|
}
|
|
2317
2317
|
constructor(e = f(a).scopeTo("bleet-pager"), t = f(o), n = f(s)) {
|
|
2318
2318
|
this.logger = e, this.element = t, this.p = n, this.logger.trace("constructor");
|
|
@@ -2333,12 +2333,12 @@ var en = l("bleet-pager"), tn, Z;
|
|
|
2333
2333
|
n && n.click();
|
|
2334
2334
|
};
|
|
2335
2335
|
static {
|
|
2336
|
-
|
|
2336
|
+
en();
|
|
2337
2337
|
}
|
|
2338
2338
|
});
|
|
2339
2339
|
//#endregion
|
|
2340
2340
|
//#region src/attributes/ajaxify-trigger.ts
|
|
2341
|
-
function
|
|
2341
|
+
function tn(e, t) {
|
|
2342
2342
|
if (typeof e != "object" || !e) return e;
|
|
2343
2343
|
var n = e[Symbol.toPrimitive];
|
|
2344
2344
|
if (n !== void 0) {
|
|
@@ -2348,15 +2348,15 @@ function nn(e, t) {
|
|
|
2348
2348
|
}
|
|
2349
2349
|
return (t === "string" ? String : Number)(e);
|
|
2350
2350
|
}
|
|
2351
|
-
function
|
|
2352
|
-
var t =
|
|
2351
|
+
function nn(e) {
|
|
2352
|
+
var t = tn(e, "string");
|
|
2353
2353
|
return typeof t == "symbol" ? t : String(t);
|
|
2354
2354
|
}
|
|
2355
|
-
function
|
|
2355
|
+
function rn(e) {
|
|
2356
2356
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
2357
2357
|
return e;
|
|
2358
2358
|
}
|
|
2359
|
-
function
|
|
2359
|
+
function an(e, t, n) {
|
|
2360
2360
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
2361
2361
|
try {
|
|
2362
2362
|
Object.defineProperty(e, "name", {
|
|
@@ -2366,7 +2366,7 @@ function on(e, t, n) {
|
|
|
2366
2366
|
} catch {}
|
|
2367
2367
|
return e;
|
|
2368
2368
|
}
|
|
2369
|
-
function
|
|
2369
|
+
function on(e, t, n, r, i, a) {
|
|
2370
2370
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
2371
2371
|
function p(t, n, r) {
|
|
2372
2372
|
return function(i, a) {
|
|
@@ -2391,13 +2391,13 @@ function sn(e, t, n, r, i, a) {
|
|
|
2391
2391
|
}
|
|
2392
2392
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
2393
2393
|
if (!b && (d ? (h || x ? E = {
|
|
2394
|
-
get:
|
|
2394
|
+
get: an(function() {
|
|
2395
2395
|
return y(this);
|
|
2396
2396
|
}, r, "get"),
|
|
2397
2397
|
set: function(e) {
|
|
2398
2398
|
t[4](this, e);
|
|
2399
2399
|
}
|
|
2400
|
-
} : E[O] = y, h ||
|
|
2400
|
+
} : E[O] = y, h || an(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
2401
2401
|
if (f = u[+c][r], f && (f ^ i) !== 7) throw Error("Decorating two elements with the same name (" + E[O].name + ") is not supported yet");
|
|
2402
2402
|
u[+c][r] = i < 3 ? 1 : i;
|
|
2403
2403
|
}
|
|
@@ -2445,8 +2445,8 @@ function sn(e, t, n, r, i, a) {
|
|
|
2445
2445
|
var l = n[c], u = l[1], d = u & 7;
|
|
2446
2446
|
if ((u & 8) == o && !d == s) {
|
|
2447
2447
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
2448
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
2449
|
-
return
|
|
2448
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : nn(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
2449
|
+
return rn(t) === e;
|
|
2450
2450
|
} : i);
|
|
2451
2451
|
}
|
|
2452
2452
|
}
|
|
@@ -2468,10 +2468,10 @@ function sn(e, t, n, r, i, a) {
|
|
|
2468
2468
|
}
|
|
2469
2469
|
};
|
|
2470
2470
|
}
|
|
2471
|
-
var
|
|
2471
|
+
var sn = l({
|
|
2472
2472
|
name: "bleet-ajaxify-trigger",
|
|
2473
2473
|
defaultProperty: "url"
|
|
2474
|
-
}), ln, un = c(), dn = c(), fn = c(), pn = c(), mn = c(), hn = c(), gn = c(), _n
|
|
2474
|
+
}), cn, ln = c(), un = c(), dn = c(), fn = c(), pn = c(), mn = c(), hn = c(), gn = c(), _n, vn, yn, bn, xn, Sn, Cn, wn, Tn, En, Dn, On, kn, An, jn, Mn, Nn, Pn, $;
|
|
2475
2475
|
(class {
|
|
2476
2476
|
logger;
|
|
2477
2477
|
element;
|
|
@@ -2479,49 +2479,49 @@ var cn = l({
|
|
|
2479
2479
|
apiService;
|
|
2480
2480
|
p;
|
|
2481
2481
|
static {
|
|
2482
|
-
({e: [vn, yn, bn, xn, Sn, Cn, wn, Tn, En, Dn, On, kn, An, jn, Mn, Nn, Pn
|
|
2482
|
+
({e: [_n, vn, yn, bn, xn, Sn, Cn, wn, Tn, En, Dn, On, kn, An, jn, Mn, Nn, Pn], c: [$, cn]} = on(this, [sn], [
|
|
2483
2483
|
[
|
|
2484
2484
|
c,
|
|
2485
2485
|
0,
|
|
2486
2486
|
"url"
|
|
2487
2487
|
],
|
|
2488
2488
|
[
|
|
2489
|
-
|
|
2489
|
+
ln,
|
|
2490
2490
|
0,
|
|
2491
2491
|
"verb"
|
|
2492
2492
|
],
|
|
2493
2493
|
[
|
|
2494
|
-
|
|
2494
|
+
un,
|
|
2495
2495
|
0,
|
|
2496
2496
|
"event"
|
|
2497
2497
|
],
|
|
2498
2498
|
[
|
|
2499
|
-
|
|
2499
|
+
dn,
|
|
2500
2500
|
0,
|
|
2501
2501
|
"id"
|
|
2502
2502
|
],
|
|
2503
2503
|
[
|
|
2504
|
-
|
|
2504
|
+
fn,
|
|
2505
2505
|
0,
|
|
2506
2506
|
"mode"
|
|
2507
2507
|
],
|
|
2508
2508
|
[
|
|
2509
|
-
|
|
2509
|
+
pn,
|
|
2510
2510
|
0,
|
|
2511
2511
|
"target"
|
|
2512
2512
|
],
|
|
2513
2513
|
[
|
|
2514
|
-
|
|
2514
|
+
mn,
|
|
2515
2515
|
0,
|
|
2516
2516
|
"method"
|
|
2517
2517
|
],
|
|
2518
2518
|
[
|
|
2519
|
-
|
|
2519
|
+
hn,
|
|
2520
2520
|
0,
|
|
2521
2521
|
"errorTitle"
|
|
2522
2522
|
],
|
|
2523
2523
|
[
|
|
2524
|
-
|
|
2524
|
+
gn,
|
|
2525
2525
|
0,
|
|
2526
2526
|
"errorContent"
|
|
2527
2527
|
]
|
|
@@ -2530,15 +2530,15 @@ var cn = l({
|
|
|
2530
2530
|
constructor(e = f(a).scopeTo("bleet-ajaxify-trigger"), t = f(o), r = f(i), c = f(n), l = f(s)) {
|
|
2531
2531
|
this.logger = e, this.element = t, this.ea = r, this.apiService = c, this.p = l, this.logger.trace("constructor");
|
|
2532
2532
|
}
|
|
2533
|
-
url =
|
|
2534
|
-
verb = (
|
|
2535
|
-
event = (
|
|
2536
|
-
id = (
|
|
2537
|
-
mode = (
|
|
2538
|
-
target = (
|
|
2539
|
-
method = (
|
|
2540
|
-
errorTitle = (
|
|
2541
|
-
errorContent = (
|
|
2533
|
+
url = _n(this, "");
|
|
2534
|
+
verb = (vn(this), yn(this, ""));
|
|
2535
|
+
event = (bn(this), xn(this, "click"));
|
|
2536
|
+
id = (Sn(this), Cn(this, ""));
|
|
2537
|
+
mode = (wn(this), Tn(this, N.Classic));
|
|
2538
|
+
target = (En(this), Dn(this, ""));
|
|
2539
|
+
method = (On(this), kn(this, "POST"));
|
|
2540
|
+
errorTitle = (An(this), jn(this, ""));
|
|
2541
|
+
errorContent = (Mn(this), Nn(this, ""));
|
|
2542
2542
|
attached() {
|
|
2543
2543
|
this.logger.trace("attached", {
|
|
2544
2544
|
url: this.url,
|
|
@@ -2550,7 +2550,7 @@ var cn = l({
|
|
|
2550
2550
|
detaching() {
|
|
2551
2551
|
this.logger.trace("detaching"), this.element.removeEventListener(this.event, this.onTrigger);
|
|
2552
2552
|
}
|
|
2553
|
-
onTrigger = (
|
|
2553
|
+
onTrigger = (Pn(this), (e) => {
|
|
2554
2554
|
e.preventDefault(), e.stopPropagation(), this.logger.trace("onTrigger", e), this.mode === N.PublishOnly ? this.onTriggerPublishOnly() : this.onTriggerClassic(e);
|
|
2555
2555
|
});
|
|
2556
2556
|
onTriggerPublishOnly() {
|
|
@@ -2599,7 +2599,7 @@ var cn = l({
|
|
|
2599
2599
|
this.logger.error("AJAX request failed", e), this.errorContent !== "" && this.ea.publish(w.Toaster, {
|
|
2600
2600
|
action: P.Add,
|
|
2601
2601
|
toast: {
|
|
2602
|
-
color:
|
|
2602
|
+
color: z.Danger,
|
|
2603
2603
|
title: this.errorTitle,
|
|
2604
2604
|
content: this.errorContent,
|
|
2605
2605
|
duration: 5e3
|
|
@@ -2646,12 +2646,12 @@ var cn = l({
|
|
|
2646
2646
|
for (let e = 0; e < r.length; e++) e < n.length && this.syncElement(n[e], r[e]);
|
|
2647
2647
|
}
|
|
2648
2648
|
static {
|
|
2649
|
-
|
|
2649
|
+
cn();
|
|
2650
2650
|
}
|
|
2651
2651
|
});
|
|
2652
2652
|
//#endregion
|
|
2653
2653
|
//#region src/attributes/popover.ts
|
|
2654
|
-
function
|
|
2654
|
+
function Fn(e, t) {
|
|
2655
2655
|
if (typeof e != "object" || !e) return e;
|
|
2656
2656
|
var n = e[Symbol.toPrimitive];
|
|
2657
2657
|
if (n !== void 0) {
|
|
@@ -2661,15 +2661,15 @@ function In(e, t) {
|
|
|
2661
2661
|
}
|
|
2662
2662
|
return (t === "string" ? String : Number)(e);
|
|
2663
2663
|
}
|
|
2664
|
-
function
|
|
2665
|
-
var t =
|
|
2664
|
+
function In(e) {
|
|
2665
|
+
var t = Fn(e, "string");
|
|
2666
2666
|
return typeof t == "symbol" ? t : String(t);
|
|
2667
2667
|
}
|
|
2668
|
-
function
|
|
2668
|
+
function Ln(e) {
|
|
2669
2669
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
2670
2670
|
return e;
|
|
2671
2671
|
}
|
|
2672
|
-
function
|
|
2672
|
+
function Rn(e, t, n) {
|
|
2673
2673
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
2674
2674
|
try {
|
|
2675
2675
|
Object.defineProperty(e, "name", {
|
|
@@ -2679,7 +2679,7 @@ function zn(e, t, n) {
|
|
|
2679
2679
|
} catch {}
|
|
2680
2680
|
return e;
|
|
2681
2681
|
}
|
|
2682
|
-
function
|
|
2682
|
+
function zn(e, t, n, r, i, a) {
|
|
2683
2683
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
2684
2684
|
function p(t, n, r) {
|
|
2685
2685
|
return function(i, a) {
|
|
@@ -2704,13 +2704,13 @@ function Bn(e, t, n, r, i, a) {
|
|
|
2704
2704
|
}
|
|
2705
2705
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
2706
2706
|
if (!b && (d ? (h || x ? E = {
|
|
2707
|
-
get:
|
|
2707
|
+
get: Rn(function() {
|
|
2708
2708
|
return y(this);
|
|
2709
2709
|
}, r, "get"),
|
|
2710
2710
|
set: function(e) {
|
|
2711
2711
|
t[4](this, e);
|
|
2712
2712
|
}
|
|
2713
|
-
} : E[O] = y, h ||
|
|
2713
|
+
} : E[O] = y, h || Rn(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
2714
2714
|
if (f = u[+c][r], f && (f ^ i) !== 7) throw Error("Decorating two elements with the same name (" + E[O].name + ") is not supported yet");
|
|
2715
2715
|
u[+c][r] = i < 3 ? 1 : i;
|
|
2716
2716
|
}
|
|
@@ -2758,8 +2758,8 @@ function Bn(e, t, n, r, i, a) {
|
|
|
2758
2758
|
var l = n[c], u = l[1], d = u & 7;
|
|
2759
2759
|
if ((u & 8) == o && !d == s) {
|
|
2760
2760
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
2761
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
2762
|
-
return
|
|
2761
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : In(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
2762
|
+
return Ln(t) === e;
|
|
2763
2763
|
} : i);
|
|
2764
2764
|
}
|
|
2765
2765
|
}
|
|
@@ -2781,17 +2781,17 @@ function Bn(e, t, n, r, i, a) {
|
|
|
2781
2781
|
}
|
|
2782
2782
|
};
|
|
2783
2783
|
}
|
|
2784
|
-
var
|
|
2784
|
+
var Bn = l({
|
|
2785
2785
|
name: "bleet-popover",
|
|
2786
2786
|
defaultProperty: "id"
|
|
2787
|
-
}), Hn, Un, Wn
|
|
2787
|
+
}), Vn, Hn, Un, Wn;
|
|
2788
2788
|
(class {
|
|
2789
2789
|
logger;
|
|
2790
2790
|
element;
|
|
2791
2791
|
ea;
|
|
2792
2792
|
p;
|
|
2793
2793
|
static {
|
|
2794
|
-
({e: [
|
|
2794
|
+
({e: [Hn, Un], c: [Wn, Vn]} = zn(this, [Bn], [[
|
|
2795
2795
|
c,
|
|
2796
2796
|
0,
|
|
2797
2797
|
"id"
|
|
@@ -2800,8 +2800,8 @@ var Vn = l({
|
|
|
2800
2800
|
constructor(e = f(a).scopeTo("bleet-popover"), t = f(o), n = f(i), r = f(s)) {
|
|
2801
2801
|
this.logger = e, this.element = t, this.ea = n, this.p = r, this.logger.trace("constructor");
|
|
2802
2802
|
}
|
|
2803
|
-
id =
|
|
2804
|
-
isOpen = (
|
|
2803
|
+
id = Hn(this, "");
|
|
2804
|
+
isOpen = (Un(this), !1);
|
|
2805
2805
|
subscription = null;
|
|
2806
2806
|
attaching() {
|
|
2807
2807
|
this.logger.trace("attaching"), this.subscription = this.ea.subscribe(w.Popover, this.onPopover);
|
|
@@ -2828,13 +2828,13 @@ var Vn = l({
|
|
|
2828
2828
|
};
|
|
2829
2829
|
open(e) {
|
|
2830
2830
|
this.isOpen = !0, S(this.element, "popover", "show"), e && this.positionAt(e), this.ea.publish(w.PopoverStatus, {
|
|
2831
|
-
status:
|
|
2831
|
+
status: R.Opened,
|
|
2832
2832
|
id: this.id
|
|
2833
2833
|
});
|
|
2834
2834
|
}
|
|
2835
2835
|
close() {
|
|
2836
2836
|
this.isOpen = !1, S(this.element, "popover", "hide"), this.ea.publish(w.PopoverStatus, {
|
|
2837
|
-
status:
|
|
2837
|
+
status: R.Closed,
|
|
2838
2838
|
id: this.id
|
|
2839
2839
|
});
|
|
2840
2840
|
}
|
|
@@ -2844,7 +2844,7 @@ var Vn = l({
|
|
|
2844
2844
|
n < 4 && (n = e.bottom + 10), r < 4 && (r = 4), r + t.width > this.p.window.innerWidth - 4 && (r = this.p.window.innerWidth - t.width - 4), this.element.style.top = `${n}px`, this.element.style.left = `${r}px`, this.element.style.visibility = "", this.element.style.display = "";
|
|
2845
2845
|
}
|
|
2846
2846
|
static {
|
|
2847
|
-
|
|
2847
|
+
Vn();
|
|
2848
2848
|
}
|
|
2849
2849
|
});
|
|
2850
2850
|
//#endregion
|
|
@@ -3030,8 +3030,25 @@ var Xn = l({
|
|
|
3030
3030
|
}
|
|
3031
3031
|
});
|
|
3032
3032
|
//#endregion
|
|
3033
|
+
//#region src/utils/toaster.ts
|
|
3034
|
+
function ir(e) {
|
|
3035
|
+
return {
|
|
3036
|
+
...e,
|
|
3037
|
+
id: e.id || `toast-${Math.random().toString(36).substring(2, 15)}`,
|
|
3038
|
+
color: e.color || z.Info,
|
|
3039
|
+
icon: e.icon || B.Info,
|
|
3040
|
+
duration: e.duration || 0
|
|
3041
|
+
};
|
|
3042
|
+
}
|
|
3043
|
+
function ar(e) {
|
|
3044
|
+
e.hasAttribute("popover") === !0 && (e.matches(":popover-open") === !0 && e.hidePopover(), e.showPopover());
|
|
3045
|
+
}
|
|
3046
|
+
function or(e) {
|
|
3047
|
+
e.hasAttribute("popover") === !0 && e.matches(":popover-open") === !0 && e.hidePopover();
|
|
3048
|
+
}
|
|
3049
|
+
//#endregion
|
|
3033
3050
|
//#region src/attributes/toaster.ts
|
|
3034
|
-
function
|
|
3051
|
+
function sr(e, t) {
|
|
3035
3052
|
if (typeof e != "object" || !e) return e;
|
|
3036
3053
|
var n = e[Symbol.toPrimitive];
|
|
3037
3054
|
if (n !== void 0) {
|
|
@@ -3041,15 +3058,15 @@ function ir(e, t) {
|
|
|
3041
3058
|
}
|
|
3042
3059
|
return (t === "string" ? String : Number)(e);
|
|
3043
3060
|
}
|
|
3044
|
-
function
|
|
3045
|
-
var t =
|
|
3061
|
+
function cr(e) {
|
|
3062
|
+
var t = sr(e, "string");
|
|
3046
3063
|
return typeof t == "symbol" ? t : String(t);
|
|
3047
3064
|
}
|
|
3048
|
-
function
|
|
3065
|
+
function lr(e) {
|
|
3049
3066
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
3050
3067
|
return e;
|
|
3051
3068
|
}
|
|
3052
|
-
function
|
|
3069
|
+
function ur(e, t, n) {
|
|
3053
3070
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
3054
3071
|
try {
|
|
3055
3072
|
Object.defineProperty(e, "name", {
|
|
@@ -3059,7 +3076,7 @@ function sr(e, t, n) {
|
|
|
3059
3076
|
} catch {}
|
|
3060
3077
|
return e;
|
|
3061
3078
|
}
|
|
3062
|
-
function
|
|
3079
|
+
function dr(e, t, n, r, i, a) {
|
|
3063
3080
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
3064
3081
|
function p(t, n, r) {
|
|
3065
3082
|
return function(i, a) {
|
|
@@ -3084,13 +3101,13 @@ function cr(e, t, n, r, i, a) {
|
|
|
3084
3101
|
}
|
|
3085
3102
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
3086
3103
|
if (!b && (d ? (h || x ? E = {
|
|
3087
|
-
get:
|
|
3104
|
+
get: ur(function() {
|
|
3088
3105
|
return y(this);
|
|
3089
3106
|
}, r, "get"),
|
|
3090
3107
|
set: function(e) {
|
|
3091
3108
|
t[4](this, e);
|
|
3092
3109
|
}
|
|
3093
|
-
} : E[O] = y, h ||
|
|
3110
|
+
} : E[O] = y, h || ur(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
3094
3111
|
if (f = u[+c][r], f && (f ^ i) !== 7) throw Error("Decorating two elements with the same name (" + E[O].name + ") is not supported yet");
|
|
3095
3112
|
u[+c][r] = i < 3 ? 1 : i;
|
|
3096
3113
|
}
|
|
@@ -3138,8 +3155,8 @@ function cr(e, t, n, r, i, a) {
|
|
|
3138
3155
|
var l = n[c], u = l[1], d = u & 7;
|
|
3139
3156
|
if ((u & 8) == o && !d == s) {
|
|
3140
3157
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
3141
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
3142
|
-
return
|
|
3158
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : cr(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
3159
|
+
return lr(t) === e;
|
|
3143
3160
|
} : i);
|
|
3144
3161
|
}
|
|
3145
3162
|
}
|
|
@@ -3161,7 +3178,7 @@ function cr(e, t, n, r, i, a) {
|
|
|
3161
3178
|
}
|
|
3162
3179
|
};
|
|
3163
3180
|
}
|
|
3164
|
-
var
|
|
3181
|
+
var fr = l("bleet-toaster"), pr, mr;
|
|
3165
3182
|
(class {
|
|
3166
3183
|
logger;
|
|
3167
3184
|
element;
|
|
@@ -3169,7 +3186,7 @@ var lr = l("bleet-toaster"), ur, dr;
|
|
|
3169
3186
|
p;
|
|
3170
3187
|
transitionService;
|
|
3171
3188
|
static {
|
|
3172
|
-
({c: [
|
|
3189
|
+
({c: [mr, pr]} = dr(this, [fr], []));
|
|
3173
3190
|
}
|
|
3174
3191
|
constructor(e = f(a).scopeTo("bleet-toaster"), t = f(o), n = f(i), r = f(s), c = f(v)) {
|
|
3175
3192
|
this.logger = e, this.element = t, this.ea = n, this.p = r, this.transitionService = c, this.logger.trace("constructor");
|
|
@@ -3186,14 +3203,7 @@ var lr = l("bleet-toaster"), ur, dr;
|
|
|
3186
3203
|
}
|
|
3187
3204
|
onToasterEvent = (e) => {
|
|
3188
3205
|
if (this.logger.trace("onToasterEvent", e), e.action === P.Add && e.toast) {
|
|
3189
|
-
let t =
|
|
3190
|
-
id: e.toast.id || `toast-${Math.random().toString(36).substring(2, 15)}`,
|
|
3191
|
-
color: e.toast.color || R.Info,
|
|
3192
|
-
icon: e.toast.icon || z.Info,
|
|
3193
|
-
duration: e.toast.duration || 0,
|
|
3194
|
-
title: e.toast.title,
|
|
3195
|
-
content: e.toast.content
|
|
3196
|
-
};
|
|
3206
|
+
let t = ir(e.toast);
|
|
3197
3207
|
this.toasts.has(t.id) || this.add(t);
|
|
3198
3208
|
} else e.action === P.Remove && e.toast?.id && this.close(e.toast.id);
|
|
3199
3209
|
};
|
|
@@ -3213,7 +3223,7 @@ var lr = l("bleet-toaster"), ur, dr;
|
|
|
3213
3223
|
element: n,
|
|
3214
3224
|
closing: !1
|
|
3215
3225
|
};
|
|
3216
|
-
this.toasts.set(e.id, s), this.element.appendChild(n), this.
|
|
3226
|
+
this.toasts.set(e.id, s), this.element.appendChild(n), ar(this.element), this.logger.debug(`Toast added with ID: ${e.id}`), this.transitionService.run(n, (t) => {
|
|
3217
3227
|
e.duration > 0 && (s.closeTimeout = this.p.setTimeout(() => {
|
|
3218
3228
|
this.close(e.id);
|
|
3219
3229
|
}, e.duration)), S(t, "toaster", "show");
|
|
@@ -3225,22 +3235,16 @@ var lr = l("bleet-toaster"), ur, dr;
|
|
|
3225
3235
|
t !== void 0 && t.closing === !1 && (t.closing = !0, t.closeTimeout !== void 0 && this.p.clearTimeout(t.closeTimeout), this.transitionService.run(t.element, (e) => {
|
|
3226
3236
|
S(e, "toaster", "hide");
|
|
3227
3237
|
}, (t) => {
|
|
3228
|
-
t.remove(), this.toasts.delete(e), this.toasts.size === 0 && this.
|
|
3238
|
+
t.remove(), this.toasts.delete(e), this.toasts.size === 0 && or(this.element), this.logger.debug(`Toast removed with ID: ${e}`);
|
|
3229
3239
|
}));
|
|
3230
3240
|
}
|
|
3231
|
-
raise() {
|
|
3232
|
-
this.element.hasAttribute("popover") === !0 && (this.element.matches(":popover-open") === !0 && this.element.hidePopover(), this.element.showPopover());
|
|
3233
|
-
}
|
|
3234
|
-
lower() {
|
|
3235
|
-
this.element.hasAttribute("popover") === !0 && this.element.matches(":popover-open") === !0 && this.element.hidePopover();
|
|
3236
|
-
}
|
|
3237
3241
|
static {
|
|
3238
|
-
|
|
3242
|
+
pr();
|
|
3239
3243
|
}
|
|
3240
3244
|
});
|
|
3241
3245
|
//#endregion
|
|
3242
3246
|
//#region src/attributes/toast.ts
|
|
3243
|
-
function
|
|
3247
|
+
function hr(e, t) {
|
|
3244
3248
|
if (typeof e != "object" || !e) return e;
|
|
3245
3249
|
var n = e[Symbol.toPrimitive];
|
|
3246
3250
|
if (n !== void 0) {
|
|
@@ -3250,15 +3254,15 @@ function fr(e, t) {
|
|
|
3250
3254
|
}
|
|
3251
3255
|
return (t === "string" ? String : Number)(e);
|
|
3252
3256
|
}
|
|
3253
|
-
function
|
|
3254
|
-
var t =
|
|
3257
|
+
function gr(e) {
|
|
3258
|
+
var t = hr(e, "string");
|
|
3255
3259
|
return typeof t == "symbol" ? t : String(t);
|
|
3256
3260
|
}
|
|
3257
|
-
function
|
|
3261
|
+
function _r(e) {
|
|
3258
3262
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
3259
3263
|
return e;
|
|
3260
3264
|
}
|
|
3261
|
-
function
|
|
3265
|
+
function vr(e, t, n) {
|
|
3262
3266
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
3263
3267
|
try {
|
|
3264
3268
|
Object.defineProperty(e, "name", {
|
|
@@ -3268,7 +3272,7 @@ function hr(e, t, n) {
|
|
|
3268
3272
|
} catch {}
|
|
3269
3273
|
return e;
|
|
3270
3274
|
}
|
|
3271
|
-
function
|
|
3275
|
+
function yr(e, t, n, r, i, a) {
|
|
3272
3276
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
3273
3277
|
function p(t, n, r) {
|
|
3274
3278
|
return function(i, a) {
|
|
@@ -3293,13 +3297,13 @@ function gr(e, t, n, r, i, a) {
|
|
|
3293
3297
|
}
|
|
3294
3298
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
3295
3299
|
if (!b && (d ? (h || x ? E = {
|
|
3296
|
-
get:
|
|
3300
|
+
get: vr(function() {
|
|
3297
3301
|
return y(this);
|
|
3298
3302
|
}, r, "get"),
|
|
3299
3303
|
set: function(e) {
|
|
3300
3304
|
t[4](this, e);
|
|
3301
3305
|
}
|
|
3302
|
-
} : E[O] = y, h ||
|
|
3306
|
+
} : E[O] = y, h || vr(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
3303
3307
|
if (f = u[+c][r], f && (f ^ i) !== 7) throw Error("Decorating two elements with the same name (" + E[O].name + ") is not supported yet");
|
|
3304
3308
|
u[+c][r] = i < 3 ? 1 : i;
|
|
3305
3309
|
}
|
|
@@ -3347,8 +3351,8 @@ function gr(e, t, n, r, i, a) {
|
|
|
3347
3351
|
var l = n[c], u = l[1], d = u & 7;
|
|
3348
3352
|
if ((u & 8) == o && !d == s) {
|
|
3349
3353
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
3350
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
3351
|
-
return
|
|
3354
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : gr(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
3355
|
+
return _r(t) === e;
|
|
3352
3356
|
} : i);
|
|
3353
3357
|
}
|
|
3354
3358
|
}
|
|
@@ -3370,43 +3374,43 @@ function gr(e, t, n, r, i, a) {
|
|
|
3370
3374
|
}
|
|
3371
3375
|
};
|
|
3372
3376
|
}
|
|
3373
|
-
var
|
|
3377
|
+
var br = l({
|
|
3374
3378
|
name: "bleet-toast",
|
|
3375
3379
|
defaultProperty: "id"
|
|
3376
|
-
}),
|
|
3380
|
+
}), xr, Sr = c(), Cr = c(), wr = c(), Tr = c(), Er = c(), Dr, Or, kr, Ar, jr, Mr, Nr, Pr, Fr, Ir, Lr, Rr, zr;
|
|
3377
3381
|
(class {
|
|
3378
3382
|
logger;
|
|
3379
3383
|
ea;
|
|
3380
3384
|
p;
|
|
3381
3385
|
static {
|
|
3382
|
-
({e: [
|
|
3386
|
+
({e: [Dr, Or, kr, Ar, jr, Mr, Nr, Pr, Fr, Ir, Lr, Rr], c: [zr, xr]} = yr(this, [br], [
|
|
3383
3387
|
[
|
|
3384
3388
|
c,
|
|
3385
3389
|
0,
|
|
3386
3390
|
"id"
|
|
3387
3391
|
],
|
|
3388
3392
|
[
|
|
3389
|
-
|
|
3393
|
+
Sr,
|
|
3390
3394
|
0,
|
|
3391
3395
|
"color"
|
|
3392
3396
|
],
|
|
3393
3397
|
[
|
|
3394
|
-
|
|
3398
|
+
Cr,
|
|
3395
3399
|
0,
|
|
3396
3400
|
"icon"
|
|
3397
3401
|
],
|
|
3398
3402
|
[
|
|
3399
|
-
|
|
3403
|
+
wr,
|
|
3400
3404
|
0,
|
|
3401
3405
|
"title"
|
|
3402
3406
|
],
|
|
3403
3407
|
[
|
|
3404
|
-
|
|
3408
|
+
Tr,
|
|
3405
3409
|
0,
|
|
3406
3410
|
"content"
|
|
3407
3411
|
],
|
|
3408
3412
|
[
|
|
3409
|
-
|
|
3413
|
+
Er,
|
|
3410
3414
|
0,
|
|
3411
3415
|
"duration"
|
|
3412
3416
|
]
|
|
@@ -3415,18 +3419,18 @@ var _r = l({
|
|
|
3415
3419
|
constructor(e = f(a).scopeTo("bleet-toast"), t = f(i), n = f(s)) {
|
|
3416
3420
|
this.logger = e, this.ea = t, this.p = n, this.logger.trace("constructor");
|
|
3417
3421
|
}
|
|
3418
|
-
id =
|
|
3419
|
-
color = (
|
|
3420
|
-
icon = (
|
|
3421
|
-
title = (
|
|
3422
|
-
content = (
|
|
3423
|
-
duration = (
|
|
3422
|
+
id = Dr(this, "");
|
|
3423
|
+
color = (Or(this), kr(this, z.Info));
|
|
3424
|
+
icon = (Ar(this), jr(this, B.Info));
|
|
3425
|
+
title = (Mr(this), Nr(this, ""));
|
|
3426
|
+
content = (Pr(this), Fr(this, ""));
|
|
3427
|
+
duration = (Ir(this), Lr(this, 0));
|
|
3424
3428
|
attached() {
|
|
3425
3429
|
this.logger.trace("attached"), this.p.document.readyState === "loading" ? this.p.document.addEventListener("DOMContentLoaded", () => {
|
|
3426
3430
|
this.publish();
|
|
3427
3431
|
}, { once: !0 }) : this.publish();
|
|
3428
3432
|
}
|
|
3429
|
-
publish = (
|
|
3433
|
+
publish = (Rr(this), () => {
|
|
3430
3434
|
this.logger.trace("publish"), d(() => {
|
|
3431
3435
|
this.ea.publish(w.Toaster, {
|
|
3432
3436
|
action: P.Add,
|
|
@@ -3442,12 +3446,12 @@ var _r = l({
|
|
|
3442
3446
|
});
|
|
3443
3447
|
});
|
|
3444
3448
|
static {
|
|
3445
|
-
|
|
3449
|
+
xr();
|
|
3446
3450
|
}
|
|
3447
3451
|
});
|
|
3448
3452
|
//#endregion
|
|
3449
3453
|
//#region src/attributes/overlay.ts
|
|
3450
|
-
function
|
|
3454
|
+
function Br(e, t) {
|
|
3451
3455
|
if (typeof e != "object" || !e) return e;
|
|
3452
3456
|
var n = e[Symbol.toPrimitive];
|
|
3453
3457
|
if (n !== void 0) {
|
|
@@ -3457,15 +3461,15 @@ function Lr(e, t) {
|
|
|
3457
3461
|
}
|
|
3458
3462
|
return (t === "string" ? String : Number)(e);
|
|
3459
3463
|
}
|
|
3460
|
-
function
|
|
3461
|
-
var t =
|
|
3464
|
+
function Vr(e) {
|
|
3465
|
+
var t = Br(e, "string");
|
|
3462
3466
|
return typeof t == "symbol" ? t : String(t);
|
|
3463
3467
|
}
|
|
3464
|
-
function
|
|
3468
|
+
function Hr(e) {
|
|
3465
3469
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
3466
3470
|
return e;
|
|
3467
3471
|
}
|
|
3468
|
-
function
|
|
3472
|
+
function Ur(e, t, n) {
|
|
3469
3473
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
3470
3474
|
try {
|
|
3471
3475
|
Object.defineProperty(e, "name", {
|
|
@@ -3475,7 +3479,7 @@ function Br(e, t, n) {
|
|
|
3475
3479
|
} catch {}
|
|
3476
3480
|
return e;
|
|
3477
3481
|
}
|
|
3478
|
-
function
|
|
3482
|
+
function Wr(e, t, n, r, i, a) {
|
|
3479
3483
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
3480
3484
|
function p(t, n, r) {
|
|
3481
3485
|
return function(i, a) {
|
|
@@ -3500,13 +3504,13 @@ function Vr(e, t, n, r, i, a) {
|
|
|
3500
3504
|
}
|
|
3501
3505
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
3502
3506
|
if (!b && (d ? (h || x ? E = {
|
|
3503
|
-
get:
|
|
3507
|
+
get: Ur(function() {
|
|
3504
3508
|
return y(this);
|
|
3505
3509
|
}, r, "get"),
|
|
3506
3510
|
set: function(e) {
|
|
3507
3511
|
t[4](this, e);
|
|
3508
3512
|
}
|
|
3509
|
-
} : E[O] = y, h ||
|
|
3513
|
+
} : E[O] = y, h || Ur(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
3510
3514
|
if (f = u[+c][r], f && (f ^ i) !== 7) throw Error("Decorating two elements with the same name (" + E[O].name + ") is not supported yet");
|
|
3511
3515
|
u[+c][r] = i < 3 ? 1 : i;
|
|
3512
3516
|
}
|
|
@@ -3554,8 +3558,8 @@ function Vr(e, t, n, r, i, a) {
|
|
|
3554
3558
|
var l = n[c], u = l[1], d = u & 7;
|
|
3555
3559
|
if ((u & 8) == o && !d == s) {
|
|
3556
3560
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
3557
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
3558
|
-
return
|
|
3561
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : Vr(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
3562
|
+
return Hr(t) === e;
|
|
3559
3563
|
} : i);
|
|
3560
3564
|
}
|
|
3561
3565
|
}
|
|
@@ -3577,7 +3581,7 @@ function Vr(e, t, n, r, i, a) {
|
|
|
3577
3581
|
}
|
|
3578
3582
|
};
|
|
3579
3583
|
}
|
|
3580
|
-
var
|
|
3584
|
+
var Gr = l("bleet-overlay"), Kr, qr;
|
|
3581
3585
|
(class {
|
|
3582
3586
|
logger;
|
|
3583
3587
|
element;
|
|
@@ -3585,7 +3589,7 @@ var Hr = l("bleet-overlay"), Ur, Wr;
|
|
|
3585
3589
|
p;
|
|
3586
3590
|
transitionService;
|
|
3587
3591
|
static {
|
|
3588
|
-
({c: [
|
|
3592
|
+
({c: [qr, Kr]} = Wr(this, [Gr], []));
|
|
3589
3593
|
}
|
|
3590
3594
|
constructor(e = f(a).scopeTo("bleet-overlay"), t = f(o), n = f(i), r = f(s), c = f(v)) {
|
|
3591
3595
|
this.logger = e, this.element = t, this.ea = n, this.p = r, this.transitionService = c, this.logger.trace("constructor");
|
|
@@ -3623,30 +3627,182 @@ var Hr = l("bleet-overlay"), Ur, Wr;
|
|
|
3623
3627
|
this.logger.trace("onClickOverlay", e), e.preventDefault(), this.close(!0);
|
|
3624
3628
|
};
|
|
3625
3629
|
static {
|
|
3626
|
-
|
|
3630
|
+
Kr();
|
|
3631
|
+
}
|
|
3632
|
+
});
|
|
3633
|
+
//#endregion
|
|
3634
|
+
//#region src/attributes/focus.ts
|
|
3635
|
+
function Jr(e, t) {
|
|
3636
|
+
if (typeof e != "object" || !e) return e;
|
|
3637
|
+
var n = e[Symbol.toPrimitive];
|
|
3638
|
+
if (n !== void 0) {
|
|
3639
|
+
var r = n.call(e, t || "default");
|
|
3640
|
+
if (typeof r != "object") return r;
|
|
3641
|
+
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
3642
|
+
}
|
|
3643
|
+
return (t === "string" ? String : Number)(e);
|
|
3644
|
+
}
|
|
3645
|
+
function Yr(e) {
|
|
3646
|
+
var t = Jr(e, "string");
|
|
3647
|
+
return typeof t == "symbol" ? t : String(t);
|
|
3648
|
+
}
|
|
3649
|
+
function Xr(e) {
|
|
3650
|
+
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
3651
|
+
return e;
|
|
3652
|
+
}
|
|
3653
|
+
function Zr(e, t, n) {
|
|
3654
|
+
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
3655
|
+
try {
|
|
3656
|
+
Object.defineProperty(e, "name", {
|
|
3657
|
+
configurable: !0,
|
|
3658
|
+
value: n ? n + " " + t : t
|
|
3659
|
+
});
|
|
3660
|
+
} catch {}
|
|
3661
|
+
return e;
|
|
3662
|
+
}
|
|
3663
|
+
function Qr(e, t, n, r, i, a) {
|
|
3664
|
+
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
3665
|
+
function p(t, n, r) {
|
|
3666
|
+
return function(i, a) {
|
|
3667
|
+
n && (a = i, i = e);
|
|
3668
|
+
for (var o = 0; o < t.length; o++) a = t[o].apply(i, r ? [a] : []);
|
|
3669
|
+
return r ? a : i;
|
|
3670
|
+
};
|
|
3671
|
+
}
|
|
3672
|
+
function m(e, t, n, r) {
|
|
3673
|
+
if (typeof e != "function" && (r || e !== void 0)) throw TypeError(t + " must " + (n || "be") + " a function" + (r ? "" : " or undefined"));
|
|
3674
|
+
return e;
|
|
3675
|
+
}
|
|
3676
|
+
function h(e, t, n, r, i, a, o, c, d, h, g) {
|
|
3677
|
+
function _(e) {
|
|
3678
|
+
if (!g(e)) throw TypeError("Attempted to access private element on non-instance");
|
|
3679
|
+
}
|
|
3680
|
+
var v = [].concat(t[0]), y = t[3], b = !o, x = i === 1, S = i === 3, C = i === 4, w = i === 2;
|
|
3681
|
+
function T(t, n, r) {
|
|
3682
|
+
return function(i, a) {
|
|
3683
|
+
return n && (a = i, i = e), r && r(i), desc[t].call(i, a);
|
|
3684
|
+
};
|
|
3685
|
+
}
|
|
3686
|
+
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
3687
|
+
if (!b && (d ? (h || x ? E = {
|
|
3688
|
+
get: Zr(function() {
|
|
3689
|
+
return y(this);
|
|
3690
|
+
}, r, "get"),
|
|
3691
|
+
set: function(e) {
|
|
3692
|
+
t[4](this, e);
|
|
3693
|
+
}
|
|
3694
|
+
} : E[O] = y, h || Zr(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
3695
|
+
if (f = u[+c][r], f && (f ^ i) !== 7) throw Error("Decorating two elements with the same name (" + E[O].name + ") is not supported yet");
|
|
3696
|
+
u[+c][r] = i < 3 ? 1 : i;
|
|
3697
|
+
}
|
|
3698
|
+
for (var k = e, A = v.length - 1; A >= 0; A -= n ? 2 : 1) {
|
|
3699
|
+
var j = m(v[A], "A decorator", "be", !0), M = n ? v[A - 1] : void 0, N = {}, P = {
|
|
3700
|
+
kind: [
|
|
3701
|
+
"field",
|
|
3702
|
+
"accessor",
|
|
3703
|
+
"method",
|
|
3704
|
+
"getter",
|
|
3705
|
+
"setter",
|
|
3706
|
+
"class"
|
|
3707
|
+
][i],
|
|
3708
|
+
name: r,
|
|
3709
|
+
metadata: l,
|
|
3710
|
+
addInitializer: (function(e, t) {
|
|
3711
|
+
if (e.v) throw TypeError("attempted to call addInitializer after decoration was finished");
|
|
3712
|
+
m(t, "An initializer", "be", !0), a.push(t);
|
|
3713
|
+
}).bind(null, N)
|
|
3714
|
+
};
|
|
3715
|
+
if (b) f = j.call(M, k, P), N.v = 1, m(f, "class decorators", "return") && (k = f);
|
|
3716
|
+
else if (P.static = c, P.private = d, f = P.access = { has: d ? g.bind() : function(e) {
|
|
3717
|
+
return r in e;
|
|
3718
|
+
} }, C || (f.get = d ? w ? function(e) {
|
|
3719
|
+
return _(e), E.value;
|
|
3720
|
+
} : T("get", 0, _) : function(e) {
|
|
3721
|
+
return e[r];
|
|
3722
|
+
}), !w && !S && (f.set = d ? T("set", 0, _) : function(e, t) {
|
|
3723
|
+
e[r] = t;
|
|
3724
|
+
}), k = j.call(M, x ? {
|
|
3725
|
+
get: E.get,
|
|
3726
|
+
set: E.set
|
|
3727
|
+
} : E[O], P), N.v = 1, x) {
|
|
3728
|
+
if (typeof k == "object" && k) (f = m(k.get, "accessor.get")) && (E.get = f), (f = m(k.set, "accessor.set")) && (E.set = f), (f = m(k.init, "accessor.init")) && D.unshift(f);
|
|
3729
|
+
else if (k !== void 0) throw TypeError("accessor decorators must return an object with get, set, or init properties or undefined");
|
|
3730
|
+
} else m(k, (h ? "field" : "method") + " decorators", "return") && (h ? D.unshift(k) : E[O] = k);
|
|
3731
|
+
}
|
|
3732
|
+
return i < 2 && o.push(p(D, c, 1), p(a, c, 0)), !h && !b && (d ? x ? o.splice(-1, 0, T("get", c), T("set", c)) : o.push(w ? E[O] : m.call.bind(E[O])) : s(e, r, E)), k;
|
|
3733
|
+
}
|
|
3734
|
+
function g() {
|
|
3735
|
+
var t = [], r, a, o = function(e) {
|
|
3736
|
+
e && t.push(p(e));
|
|
3737
|
+
}, s = function(o, s) {
|
|
3738
|
+
for (var c = 0; c < n.length; c++) {
|
|
3739
|
+
var l = n[c], u = l[1], d = u & 7;
|
|
3740
|
+
if ((u & 8) == o && !d == s) {
|
|
3741
|
+
var f = l[2], p = !!l[3], m = u & 16;
|
|
3742
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : Yr(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
3743
|
+
return Xr(t) === e;
|
|
3744
|
+
} : i);
|
|
3745
|
+
}
|
|
3746
|
+
}
|
|
3747
|
+
};
|
|
3748
|
+
return s(8, 0), s(0, 0), s(8, 1), s(0, 1), o(r), o(a), t;
|
|
3749
|
+
}
|
|
3750
|
+
function _(e) {
|
|
3751
|
+
return s(e, o, {
|
|
3752
|
+
configurable: !0,
|
|
3753
|
+
enumerable: !0,
|
|
3754
|
+
value: l
|
|
3755
|
+
});
|
|
3756
|
+
}
|
|
3757
|
+
return a !== void 0 && (l = a[o]), l = c(l ?? null), f = g(), d || _(e), {
|
|
3758
|
+
e: f,
|
|
3759
|
+
get c() {
|
|
3760
|
+
var n = [];
|
|
3761
|
+
return d && [_(e = h(e, [t], r, e.name, 5, n)), p(n, 1)];
|
|
3762
|
+
}
|
|
3763
|
+
};
|
|
3764
|
+
}
|
|
3765
|
+
var $r = l("bleet-focus"), ei, ti;
|
|
3766
|
+
(class {
|
|
3767
|
+
logger;
|
|
3768
|
+
element;
|
|
3769
|
+
p;
|
|
3770
|
+
static {
|
|
3771
|
+
({c: [ti, ei]} = Qr(this, [$r], []));
|
|
3772
|
+
}
|
|
3773
|
+
constructor(e = f(a).scopeTo("bleet-focus"), t = f(o), n = f(s)) {
|
|
3774
|
+
this.logger = e, this.element = t, this.p = n, this.logger.trace("constructor");
|
|
3775
|
+
}
|
|
3776
|
+
attached() {
|
|
3777
|
+
this.logger.trace("attached"), this.p.requestAnimationFrame(() => {
|
|
3778
|
+
this.element.focus();
|
|
3779
|
+
});
|
|
3780
|
+
}
|
|
3781
|
+
static {
|
|
3782
|
+
ei();
|
|
3627
3783
|
}
|
|
3628
3784
|
});
|
|
3629
3785
|
//#endregion
|
|
3630
3786
|
//#region src/components/bleet-ajaxify.$au.ts
|
|
3631
|
-
var
|
|
3632
|
-
bindables: () =>
|
|
3633
|
-
default: () =>
|
|
3634
|
-
dependencies: () =>
|
|
3635
|
-
name: () =>
|
|
3636
|
-
register: () =>
|
|
3637
|
-
template: () =>
|
|
3638
|
-
}),
|
|
3639
|
-
function
|
|
3640
|
-
|
|
3641
|
-
name:
|
|
3642
|
-
template:
|
|
3643
|
-
dependencies:
|
|
3644
|
-
bindables:
|
|
3645
|
-
}), e.register(
|
|
3787
|
+
var ni = /* @__PURE__ */ h({
|
|
3788
|
+
bindables: () => oi,
|
|
3789
|
+
default: () => ii,
|
|
3790
|
+
dependencies: () => ai,
|
|
3791
|
+
name: () => ri,
|
|
3792
|
+
register: () => ci,
|
|
3793
|
+
template: () => ii
|
|
3794
|
+
}), ri = "bleet-ajaxify", ii = "<template>\n <au-slot if.bind=\"!ajaxedView\"></au-slot>\n <au-compose if.bind=\"ajaxedView\" template.bind=\"ajaxedView\"></au-compose>\n</template>\n", ai = [], oi = {}, si;
|
|
3795
|
+
function ci(e) {
|
|
3796
|
+
si ||= p.define({
|
|
3797
|
+
name: ri,
|
|
3798
|
+
template: ii,
|
|
3799
|
+
dependencies: ai,
|
|
3800
|
+
bindables: oi
|
|
3801
|
+
}), e.register(si);
|
|
3646
3802
|
}
|
|
3647
3803
|
//#endregion
|
|
3648
3804
|
//#region src/components/bleet-ajaxify.ts
|
|
3649
|
-
function
|
|
3805
|
+
function li(e, t) {
|
|
3650
3806
|
if (typeof e != "object" || !e) return e;
|
|
3651
3807
|
var n = e[Symbol.toPrimitive];
|
|
3652
3808
|
if (n !== void 0) {
|
|
@@ -3656,15 +3812,15 @@ function Qr(e, t) {
|
|
|
3656
3812
|
}
|
|
3657
3813
|
return (t === "string" ? String : Number)(e);
|
|
3658
3814
|
}
|
|
3659
|
-
function
|
|
3660
|
-
var t =
|
|
3815
|
+
function ui(e) {
|
|
3816
|
+
var t = li(e, "string");
|
|
3661
3817
|
return typeof t == "symbol" ? t : String(t);
|
|
3662
3818
|
}
|
|
3663
|
-
function
|
|
3819
|
+
function di(e) {
|
|
3664
3820
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
3665
3821
|
return e;
|
|
3666
3822
|
}
|
|
3667
|
-
function
|
|
3823
|
+
function fi(e, t, n) {
|
|
3668
3824
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
3669
3825
|
try {
|
|
3670
3826
|
Object.defineProperty(e, "name", {
|
|
@@ -3674,7 +3830,7 @@ function ti(e, t, n) {
|
|
|
3674
3830
|
} catch {}
|
|
3675
3831
|
return e;
|
|
3676
3832
|
}
|
|
3677
|
-
function
|
|
3833
|
+
function pi(e, t, n, r, i, a) {
|
|
3678
3834
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
3679
3835
|
function p(t, n, r) {
|
|
3680
3836
|
return function(i, a) {
|
|
@@ -3699,13 +3855,13 @@ function ni(e, t, n, r, i, a) {
|
|
|
3699
3855
|
}
|
|
3700
3856
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
3701
3857
|
if (!b && (d ? (h || x ? E = {
|
|
3702
|
-
get:
|
|
3858
|
+
get: fi(function() {
|
|
3703
3859
|
return y(this);
|
|
3704
3860
|
}, r, "get"),
|
|
3705
3861
|
set: function(e) {
|
|
3706
3862
|
t[4](this, e);
|
|
3707
3863
|
}
|
|
3708
|
-
} : E[O] = y, h ||
|
|
3864
|
+
} : E[O] = y, h || fi(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
3709
3865
|
if (f = u[+c][r], f && (f ^ i) !== 7) throw Error("Decorating two elements with the same name (" + E[O].name + ") is not supported yet");
|
|
3710
3866
|
u[+c][r] = i < 3 ? 1 : i;
|
|
3711
3867
|
}
|
|
@@ -3753,8 +3909,8 @@ function ni(e, t, n, r, i, a) {
|
|
|
3753
3909
|
var l = n[c], u = l[1], d = u & 7;
|
|
3754
3910
|
if ((u & 8) == o && !d == s) {
|
|
3755
3911
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
3756
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
3757
|
-
return
|
|
3912
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : ui(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
3913
|
+
return di(t) === e;
|
|
3758
3914
|
} : i);
|
|
3759
3915
|
}
|
|
3760
3916
|
}
|
|
@@ -3776,22 +3932,22 @@ function ni(e, t, n, r, i, a) {
|
|
|
3776
3932
|
}
|
|
3777
3933
|
};
|
|
3778
3934
|
}
|
|
3779
|
-
var
|
|
3780
|
-
...
|
|
3935
|
+
var mi = u({
|
|
3936
|
+
...ni,
|
|
3781
3937
|
name: "bleet-ajaxify"
|
|
3782
|
-
}),
|
|
3938
|
+
}), hi, gi = c(), _i = c(), vi, yi, bi, xi, Si;
|
|
3783
3939
|
(class {
|
|
3784
3940
|
ea;
|
|
3785
3941
|
logger;
|
|
3786
3942
|
apiService;
|
|
3787
3943
|
element;
|
|
3788
3944
|
static {
|
|
3789
|
-
({e: [
|
|
3790
|
-
|
|
3945
|
+
({e: [vi, yi, bi, xi], c: [Si, hi]} = pi(this, [mi], [[
|
|
3946
|
+
gi,
|
|
3791
3947
|
0,
|
|
3792
3948
|
"id"
|
|
3793
3949
|
], [
|
|
3794
|
-
|
|
3950
|
+
_i,
|
|
3795
3951
|
0,
|
|
3796
3952
|
"url"
|
|
3797
3953
|
]]));
|
|
@@ -3799,9 +3955,9 @@ var ri = u({
|
|
|
3799
3955
|
constructor(e = f(i), t = f(a).scopeTo("<bleet-ajaxify>"), r = f(n), s = f(o)) {
|
|
3800
3956
|
this.ea = e, this.logger = t, this.apiService = r, this.element = s, this.logger.trace("constructor");
|
|
3801
3957
|
}
|
|
3802
|
-
id =
|
|
3803
|
-
url = (
|
|
3804
|
-
ajaxedView = (
|
|
3958
|
+
id = vi(this, "");
|
|
3959
|
+
url = (yi(this), bi(this));
|
|
3960
|
+
ajaxedView = (xi(this), null);
|
|
3805
3961
|
disposable;
|
|
3806
3962
|
attaching() {
|
|
3807
3963
|
this.logger.trace("attaching"), this.disposable = this.ea.subscribe(w.Ajaxify, this.onEvent);
|
|
@@ -3851,30 +4007,30 @@ var ri = u({
|
|
|
3851
4007
|
});
|
|
3852
4008
|
}
|
|
3853
4009
|
static {
|
|
3854
|
-
|
|
4010
|
+
hi();
|
|
3855
4011
|
}
|
|
3856
4012
|
});
|
|
3857
4013
|
//#endregion
|
|
3858
4014
|
//#region src/components/bleet-dialog.$au.ts
|
|
3859
|
-
var
|
|
3860
|
-
bindables: () =>
|
|
3861
|
-
default: () =>
|
|
3862
|
-
dependencies: () =>
|
|
3863
|
-
name: () =>
|
|
3864
|
-
register: () =>
|
|
3865
|
-
template: () =>
|
|
3866
|
-
}),
|
|
3867
|
-
function
|
|
3868
|
-
|
|
3869
|
-
name:
|
|
3870
|
-
template:
|
|
3871
|
-
dependencies:
|
|
3872
|
-
bindables:
|
|
3873
|
-
}), e.register(
|
|
4015
|
+
var Ci = /* @__PURE__ */ h({
|
|
4016
|
+
bindables: () => Di,
|
|
4017
|
+
default: () => Ti,
|
|
4018
|
+
dependencies: () => Ei,
|
|
4019
|
+
name: () => wi,
|
|
4020
|
+
register: () => ki,
|
|
4021
|
+
template: () => Ti
|
|
4022
|
+
}), wi = "bleet-dialog", Ti = "<template>\n <dialog ref=\"dialogElement\" class.bind=\"dialogClass\">\n <au-slot name=\"loader\" if.bind=\"loading\"><progress></progress></au-slot>\n <template else>\n <au-compose if.bind=\"contentView\" template.bind=\"contentView\"></au-compose>\n <au-slot else></au-slot>\n </template>\n </dialog>\n</template>\n", Ei = [], Di = {}, Oi;
|
|
4023
|
+
function ki(e) {
|
|
4024
|
+
Oi ||= p.define({
|
|
4025
|
+
name: wi,
|
|
4026
|
+
template: Ti,
|
|
4027
|
+
dependencies: Ei,
|
|
4028
|
+
bindables: Di
|
|
4029
|
+
}), e.register(Oi);
|
|
3874
4030
|
}
|
|
3875
4031
|
//#endregion
|
|
3876
4032
|
//#region src/components/bleet-dialog.ts
|
|
3877
|
-
function
|
|
4033
|
+
function Ai(e, t) {
|
|
3878
4034
|
if (typeof e != "object" || !e) return e;
|
|
3879
4035
|
var n = e[Symbol.toPrimitive];
|
|
3880
4036
|
if (n !== void 0) {
|
|
@@ -3884,15 +4040,15 @@ function yi(e, t) {
|
|
|
3884
4040
|
}
|
|
3885
4041
|
return (t === "string" ? String : Number)(e);
|
|
3886
4042
|
}
|
|
3887
|
-
function
|
|
3888
|
-
var t =
|
|
4043
|
+
function ji(e) {
|
|
4044
|
+
var t = Ai(e, "string");
|
|
3889
4045
|
return typeof t == "symbol" ? t : String(t);
|
|
3890
4046
|
}
|
|
3891
|
-
function
|
|
4047
|
+
function Mi(e) {
|
|
3892
4048
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
3893
4049
|
return e;
|
|
3894
4050
|
}
|
|
3895
|
-
function
|
|
4051
|
+
function Ni(e, t, n) {
|
|
3896
4052
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
3897
4053
|
try {
|
|
3898
4054
|
Object.defineProperty(e, "name", {
|
|
@@ -3902,7 +4058,7 @@ function Si(e, t, n) {
|
|
|
3902
4058
|
} catch {}
|
|
3903
4059
|
return e;
|
|
3904
4060
|
}
|
|
3905
|
-
function
|
|
4061
|
+
function Pi(e, t, n, r, i, a) {
|
|
3906
4062
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
3907
4063
|
function p(t, n, r) {
|
|
3908
4064
|
return function(i, a) {
|
|
@@ -3927,13 +4083,13 @@ function Ci(e, t, n, r, i, a) {
|
|
|
3927
4083
|
}
|
|
3928
4084
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
3929
4085
|
if (!b && (d ? (h || x ? E = {
|
|
3930
|
-
get:
|
|
4086
|
+
get: Ni(function() {
|
|
3931
4087
|
return y(this);
|
|
3932
4088
|
}, r, "get"),
|
|
3933
4089
|
set: function(e) {
|
|
3934
4090
|
t[4](this, e);
|
|
3935
4091
|
}
|
|
3936
|
-
} : E[O] = y, h ||
|
|
4092
|
+
} : E[O] = y, h || Ni(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
3937
4093
|
if (f = u[+c][r], f && (f ^ i) !== 7) throw Error("Decorating two elements with the same name (" + E[O].name + ") is not supported yet");
|
|
3938
4094
|
u[+c][r] = i < 3 ? 1 : i;
|
|
3939
4095
|
}
|
|
@@ -3981,8 +4137,8 @@ function Ci(e, t, n, r, i, a) {
|
|
|
3981
4137
|
var l = n[c], u = l[1], d = u & 7;
|
|
3982
4138
|
if ((u & 8) == o && !d == s) {
|
|
3983
4139
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
3984
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
3985
|
-
return
|
|
4140
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : ji(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
4141
|
+
return Mi(t) === e;
|
|
3986
4142
|
} : i);
|
|
3987
4143
|
}
|
|
3988
4144
|
}
|
|
@@ -4004,10 +4160,10 @@ function Ci(e, t, n, r, i, a) {
|
|
|
4004
4160
|
}
|
|
4005
4161
|
};
|
|
4006
4162
|
}
|
|
4007
|
-
var
|
|
4008
|
-
...
|
|
4163
|
+
var Fi = u({
|
|
4164
|
+
...Ci,
|
|
4009
4165
|
name: "bleet-dialog"
|
|
4010
|
-
}),
|
|
4166
|
+
}), Ii, Li = c({ attribute: "data-dialog-class" }), Ri, zi, Bi, Vi, Hi, Ui, Wi, Gi, Ki;
|
|
4011
4167
|
(class {
|
|
4012
4168
|
logger;
|
|
4013
4169
|
element;
|
|
@@ -4016,14 +4172,14 @@ var wi = u({
|
|
|
4016
4172
|
transitionService;
|
|
4017
4173
|
apiService;
|
|
4018
4174
|
static {
|
|
4019
|
-
({e: [
|
|
4175
|
+
({e: [Ri, zi, Bi, Vi, Hi, Ui, Wi, Gi], c: [Ki, Ii]} = Pi(this, [Fi], [
|
|
4020
4176
|
[
|
|
4021
4177
|
c,
|
|
4022
4178
|
0,
|
|
4023
4179
|
"id"
|
|
4024
4180
|
],
|
|
4025
4181
|
[
|
|
4026
|
-
|
|
4182
|
+
Li,
|
|
4027
4183
|
0,
|
|
4028
4184
|
"dialogClass"
|
|
4029
4185
|
],
|
|
@@ -4042,11 +4198,13 @@ var wi = u({
|
|
|
4042
4198
|
constructor(e = f(a).scopeTo("<bleet-dialog>"), t = f(o), r = f(i), c = f(s), l = f(v), u = f(n)) {
|
|
4043
4199
|
this.logger = e, this.element = t, this.ea = r, this.p = c, this.transitionService = l, this.apiService = u;
|
|
4044
4200
|
}
|
|
4045
|
-
id =
|
|
4046
|
-
dialogClass = (
|
|
4047
|
-
loadError = (
|
|
4048
|
-
submitError = (
|
|
4049
|
-
|
|
4201
|
+
id = Ri(this, "");
|
|
4202
|
+
dialogClass = (zi(this), Bi(this, ""));
|
|
4203
|
+
loadError = (Vi(this), Hi(this, ""));
|
|
4204
|
+
submitError = (Ui(this), Wi(this, ""));
|
|
4205
|
+
title = (Gi(this), "");
|
|
4206
|
+
color = "";
|
|
4207
|
+
dialogElement;
|
|
4050
4208
|
disposable;
|
|
4051
4209
|
loading = !1;
|
|
4052
4210
|
closing = !1;
|
|
@@ -4066,18 +4224,21 @@ var wi = u({
|
|
|
4066
4224
|
onModalEvent = (e) => {
|
|
4067
4225
|
if (this.id && this.id !== "" && e.id === this.id) {
|
|
4068
4226
|
let t = this.dialogElement.open === !0 && this.closing === !1;
|
|
4069
|
-
e.action === A.Open && t === !1 ?
|
|
4227
|
+
e.action === A.Open && t === !1 ? this.show(e) : e.action === A.Close && t === !0 ? this.close() : e.action === A.Toggle && (t === !0 ? this.close() : this.show(e));
|
|
4070
4228
|
}
|
|
4071
4229
|
};
|
|
4072
4230
|
onCancelEvent = (e) => {
|
|
4073
|
-
e.target === this.dialogElement
|
|
4231
|
+
if (e.target === this.dialogElement) {
|
|
4232
|
+
let t = this.dialogElement.querySelector("[aria-expanded=\"true\"]");
|
|
4233
|
+
e.preventDefault(), t === null ? this.close() : t.click();
|
|
4234
|
+
}
|
|
4074
4235
|
};
|
|
4075
4236
|
onDialogClick = (e) => {
|
|
4076
4237
|
e.target.closest("[data-dialog=\"close\"]") && (e.preventDefault(), this.close());
|
|
4077
4238
|
};
|
|
4078
4239
|
onFormSubmit = (e) => {
|
|
4079
4240
|
let t = e.target.closest("form");
|
|
4080
|
-
if (t && t.getAttribute("data-dialog") !== "native") {
|
|
4241
|
+
if (t && this.contentView !== null && t.getAttribute("data-dialog") !== "native") {
|
|
4081
4242
|
e.preventDefault();
|
|
4082
4243
|
let n = new FormData(t);
|
|
4083
4244
|
e.submitter instanceof HTMLButtonElement && e.submitter.name && n.append(e.submitter.name, e.submitter.value || "");
|
|
@@ -4089,6 +4250,9 @@ var wi = u({
|
|
|
4089
4250
|
});
|
|
4090
4251
|
}
|
|
4091
4252
|
};
|
|
4253
|
+
show(e) {
|
|
4254
|
+
this.title = e.title ?? "", this.color = e.color ?? "", e.url ? this.loadFromUrl(e.url) : (this.contentView = e.content ?? null, this.open());
|
|
4255
|
+
}
|
|
4092
4256
|
loadFromUrl(e) {
|
|
4093
4257
|
this.loading = !0, this.open(), this.apiService.url(e).get().then((e) => {
|
|
4094
4258
|
this.applyResponse(e.body);
|
|
@@ -4102,8 +4266,8 @@ var wi = u({
|
|
|
4102
4266
|
e.content && (this.contentView = e.content), this.executeActions(e);
|
|
4103
4267
|
}
|
|
4104
4268
|
executeActions(e) {
|
|
4105
|
-
let t = e.refresh === !0 || e.action ===
|
|
4106
|
-
(e.action ===
|
|
4269
|
+
let t = e.refresh === !0 || e.action === V.RefreshAndClose;
|
|
4270
|
+
(e.action === V.Close || e.action === V.RefreshAndClose) && this.close(), e.toast && this.ea.publish(w.Toaster, {
|
|
4107
4271
|
action: P.Add,
|
|
4108
4272
|
toast: e.toast
|
|
4109
4273
|
}), e.ajaxify ? this.ea.publish(w.Ajaxify, e.ajaxify) : e.redirect ? this.p.window.location.href = e.redirect : t === !0 && this.p.window.location.reload();
|
|
@@ -4112,7 +4276,7 @@ var wi = u({
|
|
|
4112
4276
|
e !== "" && this.ea.publish(w.Toaster, {
|
|
4113
4277
|
action: P.Add,
|
|
4114
4278
|
toast: {
|
|
4115
|
-
color:
|
|
4279
|
+
color: z.Danger,
|
|
4116
4280
|
content: e
|
|
4117
4281
|
}
|
|
4118
4282
|
});
|
|
@@ -4139,51 +4303,273 @@ var wi = u({
|
|
|
4139
4303
|
id: this.id
|
|
4140
4304
|
}), this.ea.publish(w.Overlay, { action: E.Close }), S(e, "dialog", "hide", this.element));
|
|
4141
4305
|
}, (e) => {
|
|
4142
|
-
this.closing === !0 && (this.closing = !1, e.close(), this.unbindDialogEvents(), this.contentView = null, this.loading = !1, this.ea.publish(w.ModalStatus, {
|
|
4306
|
+
this.closing === !0 && (this.closing = !1, e.close(), this.unbindDialogEvents(), this.contentView = null, this.loading = !1, this.title = "", this.color = "", this.ea.publish(w.ModalStatus, {
|
|
4143
4307
|
status: j.Closed,
|
|
4144
4308
|
id: this.id
|
|
4145
4309
|
}));
|
|
4146
4310
|
});
|
|
4147
4311
|
}
|
|
4148
4312
|
static {
|
|
4149
|
-
|
|
4313
|
+
Ii();
|
|
4314
|
+
}
|
|
4315
|
+
});
|
|
4316
|
+
//#endregion
|
|
4317
|
+
//#region src/components/bleet-toaster.$au.ts
|
|
4318
|
+
var qi = /* @__PURE__ */ h({
|
|
4319
|
+
bindables: () => Zi,
|
|
4320
|
+
default: () => Yi,
|
|
4321
|
+
dependencies: () => Xi,
|
|
4322
|
+
name: () => Ji,
|
|
4323
|
+
register: () => $i,
|
|
4324
|
+
template: () => Yi
|
|
4325
|
+
}), Ji = "bleet-toaster", Yi = "<template>\n <template repeat.for=\"toast of toasts\">\n <au-slot expose.bind=\"toast\"></au-slot>\n </template>\n</template>\n", Xi = [], Zi = {}, Qi;
|
|
4326
|
+
function $i(e) {
|
|
4327
|
+
Qi ||= p.define({
|
|
4328
|
+
name: Ji,
|
|
4329
|
+
template: Yi,
|
|
4330
|
+
dependencies: Xi,
|
|
4331
|
+
bindables: Zi
|
|
4332
|
+
}), e.register(Qi);
|
|
4333
|
+
}
|
|
4334
|
+
//#endregion
|
|
4335
|
+
//#region src/components/bleet-toaster.ts
|
|
4336
|
+
function ea(e, t) {
|
|
4337
|
+
if (typeof e != "object" || !e) return e;
|
|
4338
|
+
var n = e[Symbol.toPrimitive];
|
|
4339
|
+
if (n !== void 0) {
|
|
4340
|
+
var r = n.call(e, t || "default");
|
|
4341
|
+
if (typeof r != "object") return r;
|
|
4342
|
+
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
4343
|
+
}
|
|
4344
|
+
return (t === "string" ? String : Number)(e);
|
|
4345
|
+
}
|
|
4346
|
+
function ta(e) {
|
|
4347
|
+
var t = ea(e, "string");
|
|
4348
|
+
return typeof t == "symbol" ? t : String(t);
|
|
4349
|
+
}
|
|
4350
|
+
function na(e) {
|
|
4351
|
+
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
4352
|
+
return e;
|
|
4353
|
+
}
|
|
4354
|
+
function ra(e, t, n) {
|
|
4355
|
+
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
4356
|
+
try {
|
|
4357
|
+
Object.defineProperty(e, "name", {
|
|
4358
|
+
configurable: !0,
|
|
4359
|
+
value: n ? n + " " + t : t
|
|
4360
|
+
});
|
|
4361
|
+
} catch {}
|
|
4362
|
+
return e;
|
|
4363
|
+
}
|
|
4364
|
+
function ia(e, t, n, r, i, a) {
|
|
4365
|
+
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
4366
|
+
function p(t, n, r) {
|
|
4367
|
+
return function(i, a) {
|
|
4368
|
+
n && (a = i, i = e);
|
|
4369
|
+
for (var o = 0; o < t.length; o++) a = t[o].apply(i, r ? [a] : []);
|
|
4370
|
+
return r ? a : i;
|
|
4371
|
+
};
|
|
4372
|
+
}
|
|
4373
|
+
function m(e, t, n, r) {
|
|
4374
|
+
if (typeof e != "function" && (r || e !== void 0)) throw TypeError(t + " must " + (n || "be") + " a function" + (r ? "" : " or undefined"));
|
|
4375
|
+
return e;
|
|
4376
|
+
}
|
|
4377
|
+
function h(e, t, n, r, i, a, o, c, d, h, g) {
|
|
4378
|
+
function _(e) {
|
|
4379
|
+
if (!g(e)) throw TypeError("Attempted to access private element on non-instance");
|
|
4380
|
+
}
|
|
4381
|
+
var v = [].concat(t[0]), y = t[3], b = !o, x = i === 1, S = i === 3, C = i === 4, w = i === 2;
|
|
4382
|
+
function T(t, n, r) {
|
|
4383
|
+
return function(i, a) {
|
|
4384
|
+
return n && (a = i, i = e), r && r(i), desc[t].call(i, a);
|
|
4385
|
+
};
|
|
4386
|
+
}
|
|
4387
|
+
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
4388
|
+
if (!b && (d ? (h || x ? E = {
|
|
4389
|
+
get: ra(function() {
|
|
4390
|
+
return y(this);
|
|
4391
|
+
}, r, "get"),
|
|
4392
|
+
set: function(e) {
|
|
4393
|
+
t[4](this, e);
|
|
4394
|
+
}
|
|
4395
|
+
} : E[O] = y, h || ra(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
4396
|
+
if (f = u[+c][r], f && (f ^ i) !== 7) throw Error("Decorating two elements with the same name (" + E[O].name + ") is not supported yet");
|
|
4397
|
+
u[+c][r] = i < 3 ? 1 : i;
|
|
4398
|
+
}
|
|
4399
|
+
for (var k = e, A = v.length - 1; A >= 0; A -= n ? 2 : 1) {
|
|
4400
|
+
var j = m(v[A], "A decorator", "be", !0), M = n ? v[A - 1] : void 0, N = {}, P = {
|
|
4401
|
+
kind: [
|
|
4402
|
+
"field",
|
|
4403
|
+
"accessor",
|
|
4404
|
+
"method",
|
|
4405
|
+
"getter",
|
|
4406
|
+
"setter",
|
|
4407
|
+
"class"
|
|
4408
|
+
][i],
|
|
4409
|
+
name: r,
|
|
4410
|
+
metadata: l,
|
|
4411
|
+
addInitializer: (function(e, t) {
|
|
4412
|
+
if (e.v) throw TypeError("attempted to call addInitializer after decoration was finished");
|
|
4413
|
+
m(t, "An initializer", "be", !0), a.push(t);
|
|
4414
|
+
}).bind(null, N)
|
|
4415
|
+
};
|
|
4416
|
+
if (b) f = j.call(M, k, P), N.v = 1, m(f, "class decorators", "return") && (k = f);
|
|
4417
|
+
else if (P.static = c, P.private = d, f = P.access = { has: d ? g.bind() : function(e) {
|
|
4418
|
+
return r in e;
|
|
4419
|
+
} }, C || (f.get = d ? w ? function(e) {
|
|
4420
|
+
return _(e), E.value;
|
|
4421
|
+
} : T("get", 0, _) : function(e) {
|
|
4422
|
+
return e[r];
|
|
4423
|
+
}), !w && !S && (f.set = d ? T("set", 0, _) : function(e, t) {
|
|
4424
|
+
e[r] = t;
|
|
4425
|
+
}), k = j.call(M, x ? {
|
|
4426
|
+
get: E.get,
|
|
4427
|
+
set: E.set
|
|
4428
|
+
} : E[O], P), N.v = 1, x) {
|
|
4429
|
+
if (typeof k == "object" && k) (f = m(k.get, "accessor.get")) && (E.get = f), (f = m(k.set, "accessor.set")) && (E.set = f), (f = m(k.init, "accessor.init")) && D.unshift(f);
|
|
4430
|
+
else if (k !== void 0) throw TypeError("accessor decorators must return an object with get, set, or init properties or undefined");
|
|
4431
|
+
} else m(k, (h ? "field" : "method") + " decorators", "return") && (h ? D.unshift(k) : E[O] = k);
|
|
4432
|
+
}
|
|
4433
|
+
return i < 2 && o.push(p(D, c, 1), p(a, c, 0)), !h && !b && (d ? x ? o.splice(-1, 0, T("get", c), T("set", c)) : o.push(w ? E[O] : m.call.bind(E[O])) : s(e, r, E)), k;
|
|
4434
|
+
}
|
|
4435
|
+
function g() {
|
|
4436
|
+
var t = [], r, a, o = function(e) {
|
|
4437
|
+
e && t.push(p(e));
|
|
4438
|
+
}, s = function(o, s) {
|
|
4439
|
+
for (var c = 0; c < n.length; c++) {
|
|
4440
|
+
var l = n[c], u = l[1], d = u & 7;
|
|
4441
|
+
if ((u & 8) == o && !d == s) {
|
|
4442
|
+
var f = l[2], p = !!l[3], m = u & 16;
|
|
4443
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : ta(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
4444
|
+
return na(t) === e;
|
|
4445
|
+
} : i);
|
|
4446
|
+
}
|
|
4447
|
+
}
|
|
4448
|
+
};
|
|
4449
|
+
return s(8, 0), s(0, 0), s(8, 1), s(0, 1), o(r), o(a), t;
|
|
4450
|
+
}
|
|
4451
|
+
function _(e) {
|
|
4452
|
+
return s(e, o, {
|
|
4453
|
+
configurable: !0,
|
|
4454
|
+
enumerable: !0,
|
|
4455
|
+
value: l
|
|
4456
|
+
});
|
|
4457
|
+
}
|
|
4458
|
+
return a !== void 0 && (l = a[o]), l = c(l ?? null), f = g(), d || _(e), {
|
|
4459
|
+
e: f,
|
|
4460
|
+
get c() {
|
|
4461
|
+
var n = [];
|
|
4462
|
+
return d && [_(e = h(e, [t], r, e.name, 5, n)), p(n, 1)];
|
|
4463
|
+
}
|
|
4464
|
+
};
|
|
4465
|
+
}
|
|
4466
|
+
var aa = u({
|
|
4467
|
+
...qi,
|
|
4468
|
+
name: "bleet-toaster"
|
|
4469
|
+
}), oa, sa;
|
|
4470
|
+
(class {
|
|
4471
|
+
logger;
|
|
4472
|
+
element;
|
|
4473
|
+
ea;
|
|
4474
|
+
p;
|
|
4475
|
+
transitionService;
|
|
4476
|
+
static {
|
|
4477
|
+
({c: [sa, oa]} = ia(this, [aa], []));
|
|
4478
|
+
}
|
|
4479
|
+
constructor(e = f(a).scopeTo("<bleet-toaster>"), t = f(o), n = f(i), r = f(s), c = f(v)) {
|
|
4480
|
+
this.logger = e, this.element = t, this.ea = n, this.p = r, this.transitionService = c;
|
|
4481
|
+
}
|
|
4482
|
+
toasts = [];
|
|
4483
|
+
entries = /* @__PURE__ */ new Map();
|
|
4484
|
+
disposable;
|
|
4485
|
+
attached() {
|
|
4486
|
+
this.disposable = this.ea.subscribe(w.Toaster, this.onToasterEvent);
|
|
4487
|
+
}
|
|
4488
|
+
detaching() {
|
|
4489
|
+
this.disposable?.dispose(), this.entries.forEach((e) => {
|
|
4490
|
+
e.closeTimeout !== void 0 && this.p.clearTimeout(e.closeTimeout);
|
|
4491
|
+
});
|
|
4492
|
+
}
|
|
4493
|
+
onToasterEvent = (e) => {
|
|
4494
|
+
if (e.action === P.Add && e.toast) {
|
|
4495
|
+
let t = ir(e.toast);
|
|
4496
|
+
this.entries.has(t.id) === !1 && this.add(t);
|
|
4497
|
+
} else e.action === P.Remove && e.toast?.id && this.close(e.toast.id);
|
|
4498
|
+
};
|
|
4499
|
+
add(e) {
|
|
4500
|
+
let t = { closing: !1 }, n = {
|
|
4501
|
+
...e,
|
|
4502
|
+
close: (t) => {
|
|
4503
|
+
t.preventDefault(), this.close(e.id);
|
|
4504
|
+
}
|
|
4505
|
+
};
|
|
4506
|
+
this.entries.set(e.id, t), this.toasts = [...this.toasts, n], ar(this.element), this.p.requestAnimationFrame(() => {
|
|
4507
|
+
let n = this.findToastElement(e.id);
|
|
4508
|
+
n === null ? this.logger.warn(`No projected toast carries data-toaster-id="${e.id}"`) : this.transitionService.run(n, (n) => {
|
|
4509
|
+
e.duration > 0 && (t.closeTimeout = this.p.setTimeout(() => {
|
|
4510
|
+
this.close(e.id);
|
|
4511
|
+
}, e.duration)), S(n, "toaster", "show");
|
|
4512
|
+
});
|
|
4513
|
+
});
|
|
4514
|
+
}
|
|
4515
|
+
close(e) {
|
|
4516
|
+
let t = this.entries.get(e);
|
|
4517
|
+
if (t !== void 0 && t.closing === !1) {
|
|
4518
|
+
let n = this.findToastElement(e);
|
|
4519
|
+
t.closing = !0, t.closeTimeout !== void 0 && this.p.clearTimeout(t.closeTimeout), n === null ? this.remove(e) : this.transitionService.run(n, (e) => {
|
|
4520
|
+
S(e, "toaster", "hide");
|
|
4521
|
+
}, () => {
|
|
4522
|
+
this.remove(e);
|
|
4523
|
+
});
|
|
4524
|
+
}
|
|
4525
|
+
}
|
|
4526
|
+
remove(e) {
|
|
4527
|
+
this.entries.delete(e), this.toasts = this.toasts.filter((t) => t.id !== e), this.entries.size === 0 && or(this.element);
|
|
4528
|
+
}
|
|
4529
|
+
findToastElement(e) {
|
|
4530
|
+
return this.element.querySelector(`[data-toaster-id="${e}"]`);
|
|
4531
|
+
}
|
|
4532
|
+
static {
|
|
4533
|
+
oa();
|
|
4150
4534
|
}
|
|
4151
4535
|
});
|
|
4152
4536
|
//#endregion
|
|
4153
4537
|
//#region src/index.ts
|
|
4154
|
-
var
|
|
4155
|
-
Y,
|
|
4156
|
-
V,
|
|
4157
|
-
W,
|
|
4158
|
-
H,
|
|
4538
|
+
var ca = [
|
|
4159
4539
|
X,
|
|
4160
|
-
|
|
4161
|
-
q,
|
|
4540
|
+
H,
|
|
4162
4541
|
G,
|
|
4163
4542
|
U,
|
|
4164
|
-
|
|
4165
|
-
J,
|
|
4543
|
+
Z,
|
|
4166
4544
|
Q,
|
|
4545
|
+
J,
|
|
4546
|
+
K,
|
|
4547
|
+
W,
|
|
4548
|
+
q,
|
|
4549
|
+
Y,
|
|
4167
4550
|
$,
|
|
4551
|
+
Wn,
|
|
4168
4552
|
rr,
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4553
|
+
mr,
|
|
4554
|
+
zr,
|
|
4555
|
+
qr,
|
|
4556
|
+
ti,
|
|
4557
|
+
Si,
|
|
4558
|
+
Ki,
|
|
4559
|
+
sa
|
|
4174
4560
|
];
|
|
4175
|
-
function
|
|
4561
|
+
function la(e) {
|
|
4176
4562
|
return {
|
|
4177
4563
|
register(n) {
|
|
4178
|
-
return (e ? t.customize(e) : t).register(n), n.register(...
|
|
4564
|
+
return (e ? t.customize(e) : t).register(n), n.register(...ca);
|
|
4179
4565
|
},
|
|
4180
4566
|
customize(e) {
|
|
4181
|
-
return
|
|
4567
|
+
return la(e);
|
|
4182
4568
|
}
|
|
4183
4569
|
};
|
|
4184
4570
|
}
|
|
4185
|
-
var
|
|
4571
|
+
var ua = la();
|
|
4186
4572
|
//#endregion
|
|
4187
|
-
export { M as AjaxifyAction, N as AjaxifyTriggerMode, te as BadgeAction,
|
|
4573
|
+
export { M as AjaxifyAction, N as AjaxifyTriggerMode, te as BadgeAction, Si as BleetAjaxify, $ as BleetAjaxifyTriggerCustomAttribute, X as BleetAlertCustomAttribute, W as BleetBadgeCustomAttribute, H as BleetBurgerCustomAttribute, ua as BleetConfiguration, Ki as BleetDialog, G as BleetDropdownCustomAttribute, ti as BleetFocusCustomAttribute, U as BleetMenuCustomAttribute, Z as BleetModalTriggerCustomAttribute, qr as BleetOverlayCustomAttribute, Q as BleetPagerCustomAttribute, K as BleetPasswordCustomAttribute, Wn as BleetPopoverCustomAttribute, rr as BleetPopoverTriggerCustomAttribute, J as BleetProfileCustomAttribute, q as BleetTabsCustomAttribute, zr as BleetToastCustomAttribute, sa as BleetToaster, mr as BleetToasterCustomAttribute, Y as BleetToasterTriggerCustomAttribute, w as Channels, V as DialogAction, g as IStorageService, v as ITransitionService, b as ITrapFocusService, F as MenuAction, I as MenuStatus, A as ModalAction, j as ModalStatus, E as OverlayAction, D as OverlayStatus, L as PopoverAction, R as PopoverStatus, O as ProfileAction, k as ProfileStatus, P as ToasterAction, ee as ToasterStatus, z as UiColor, ne as UiIcon, B as UiToastIcon, T as UploadAction, S as setState };
|
|
4188
4574
|
|
|
4189
4575
|
//# sourceMappingURL=index.es.js.map
|