@blackcube/aurelia-kit 1.0.0-rc5 → 1.0.0-rc7
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 +24 -18
- package/dist/index.es.js +545 -536
- package/dist/index.es.js.map +1 -1
- package/dist/types/abstracts/components/abstract-dialog.d.ts +3 -4
- package/dist/types/abstracts/components/abstract-dialog.d.ts.map +1 -1
- package/dist/types/attributes/menu.d.ts +23 -1
- package/dist/types/attributes/menu.d.ts.map +1 -1
- package/dist/types/attributes/modal-trigger.d.ts +0 -1
- package/dist/types/attributes/modal-trigger.d.ts.map +1 -1
- package/dist/types/attributes/toast.d.ts +2 -2
- package/dist/types/attributes/toaster-trigger.d.ts +3 -3
- package/dist/types/attributes/toaster.d.ts +2 -2
- package/dist/types/components/bleet-dialog.d.ts +1 -1
- package/dist/types/enums/event-aggregator.d.ts +6 -6
- package/dist/types/enums/event-aggregator.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/interfaces/dialog.d.ts +1 -2
- package/dist/types/interfaces/dialog.d.ts.map +1 -1
- package/dist/types/interfaces/event-aggregator.d.ts +2 -3
- package/dist/types/interfaces/event-aggregator.d.ts.map +1 -1
- package/dist/types/utils/toaster.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -152,34 +152,34 @@ var E = /* @__PURE__ */ function(e) {
|
|
|
152
152
|
return e.Opening = "opening", e.Closing = "closing", e.Opened = "opened", e.Closed = "closed", e;
|
|
153
153
|
}({}), P = /* @__PURE__ */ function(e) {
|
|
154
154
|
return e.Refresh = "refresh", e.Run = "run", e;
|
|
155
|
-
}({}),
|
|
155
|
+
}({}), ee = /* @__PURE__ */ function(e) {
|
|
156
156
|
return e.Classic = "classic", e.PublishOnly = "publishOnly", e;
|
|
157
|
-
}({}),
|
|
157
|
+
}({}), F = /* @__PURE__ */ function(e) {
|
|
158
158
|
return e.Add = "add", e.Remove = "remove", e;
|
|
159
|
-
}({}),
|
|
159
|
+
}({}), te = /* @__PURE__ */ function(e) {
|
|
160
160
|
return e.Added = "added", e.Removed = "removed", e;
|
|
161
|
-
}({}),
|
|
161
|
+
}({}), I = /* @__PURE__ */ function(e) {
|
|
162
162
|
return e.Open = "open", e.Close = "close", e.Toggle = "toggle", e;
|
|
163
|
-
}({}),
|
|
163
|
+
}({}), ne = /* @__PURE__ */ function(e) {
|
|
164
164
|
return e.Remove = "remove", e;
|
|
165
|
-
}({}),
|
|
165
|
+
}({}), L = /* @__PURE__ */ function(e) {
|
|
166
166
|
return e.Opening = "opening", e.Closing = "closing", e.Opened = "opened", e.Closed = "closed", e;
|
|
167
|
-
}({}),
|
|
167
|
+
}({}), R = /* @__PURE__ */ function(e) {
|
|
168
168
|
return e.Open = "open", e.Close = "close", e.Toggle = "toggle", e;
|
|
169
|
-
}({}),
|
|
169
|
+
}({}), z = /* @__PURE__ */ function(e) {
|
|
170
170
|
return e.Opening = "opening", e.Closing = "closing", e.Opened = "opened", e.Closed = "closed", e;
|
|
171
|
+
}({}), B = /* @__PURE__ */ function(e) {
|
|
172
|
+
return e.Info = "info", e.Success = "success", e.Warning = "warning", e.Danger = "danger", e;
|
|
171
173
|
}({}), V = /* @__PURE__ */ function(e) {
|
|
172
|
-
return e.Primary = "primary", e.Secondary = "secondary", e.Success = "success", e.Danger = "danger", e.Warning = "warning", e.Info = "info", e.Accent = "accent", e;
|
|
173
|
-
}({}), H = /* @__PURE__ */ function(e) {
|
|
174
174
|
return e.Info = "information-circle", e.Success = "check-circle", e.Warning = "exclamation-triangle", e.Danger = "x-circle", e;
|
|
175
|
-
}({}),
|
|
175
|
+
}({}), re = /* @__PURE__ */ function(e) {
|
|
176
176
|
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;
|
|
177
|
-
}({}),
|
|
177
|
+
}({}), H = /* @__PURE__ */ function(e) {
|
|
178
178
|
return e.Keep = "keep", e.Close = "close", e.RefreshAndClose = "refreshAndClose", e;
|
|
179
179
|
}({});
|
|
180
180
|
//#endregion
|
|
181
181
|
//#region src/attributes/burger.ts
|
|
182
|
-
function
|
|
182
|
+
function ie(e, t) {
|
|
183
183
|
if (typeof e != "object" || !e) return e;
|
|
184
184
|
var n = e[Symbol.toPrimitive];
|
|
185
185
|
if (n !== void 0) {
|
|
@@ -189,15 +189,15 @@ function re(e, t) {
|
|
|
189
189
|
}
|
|
190
190
|
return (t === "string" ? String : Number)(e);
|
|
191
191
|
}
|
|
192
|
-
function
|
|
193
|
-
var t =
|
|
192
|
+
function ae(e) {
|
|
193
|
+
var t = ie(e, "string");
|
|
194
194
|
return typeof t == "symbol" ? t : String(t);
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function oe(e) {
|
|
197
197
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
198
198
|
return e;
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function se(e, t, n) {
|
|
201
201
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
202
202
|
try {
|
|
203
203
|
Object.defineProperty(e, "name", {
|
|
@@ -207,7 +207,7 @@ function oe(e, t, n) {
|
|
|
207
207
|
} catch {}
|
|
208
208
|
return e;
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function ce(e, t, n, r, i, a) {
|
|
211
211
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
212
212
|
function p(t, n, r) {
|
|
213
213
|
return function(i, a) {
|
|
@@ -232,13 +232,13 @@ function se(e, t, n, r, i, a) {
|
|
|
232
232
|
}
|
|
233
233
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
234
234
|
if (!b && (d ? (h || x ? E = {
|
|
235
|
-
get:
|
|
235
|
+
get: se(function() {
|
|
236
236
|
return y(this);
|
|
237
237
|
}, r, "get"),
|
|
238
238
|
set: function(e) {
|
|
239
239
|
t[4](this, e);
|
|
240
240
|
}
|
|
241
|
-
} : E[O] = y, h ||
|
|
241
|
+
} : E[O] = y, h || se(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
242
242
|
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");
|
|
243
243
|
u[+c][r] = i < 3 ? 1 : i;
|
|
244
244
|
}
|
|
@@ -286,8 +286,8 @@ function se(e, t, n, r, i, a) {
|
|
|
286
286
|
var l = n[c], u = l[1], d = u & 7;
|
|
287
287
|
if ((u & 8) == o && !d == s) {
|
|
288
288
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
289
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
290
|
-
return
|
|
289
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : ae(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
290
|
+
return oe(t) === e;
|
|
291
291
|
} : i);
|
|
292
292
|
}
|
|
293
293
|
}
|
|
@@ -309,13 +309,13 @@ function se(e, t, n, r, i, a) {
|
|
|
309
309
|
}
|
|
310
310
|
};
|
|
311
311
|
}
|
|
312
|
-
var
|
|
312
|
+
var le = u("bleet-burger"), ue, U;
|
|
313
313
|
(class {
|
|
314
314
|
logger;
|
|
315
315
|
ea;
|
|
316
316
|
element;
|
|
317
317
|
static {
|
|
318
|
-
({c: [
|
|
318
|
+
({c: [U, ue]} = ce(this, [le], []));
|
|
319
319
|
}
|
|
320
320
|
constructor(e = m(o).scopeTo("bleet-burger"), t = m(a), n = m(s)) {
|
|
321
321
|
this.logger = e, this.ea = t, this.element = n, this.logger.trace("constructor");
|
|
@@ -327,15 +327,15 @@ var ce = u("bleet-burger"), le, W;
|
|
|
327
327
|
this.logger.trace("detaching"), this.element.removeEventListener("click", this.onClickButton);
|
|
328
328
|
}
|
|
329
329
|
onClickButton = (e) => {
|
|
330
|
-
this.logger.trace("onClickButton", e), e.preventDefault(), this.ea.publish(E.Menu, { action:
|
|
330
|
+
this.logger.trace("onClickButton", e), e.preventDefault(), this.ea.publish(E.Menu, { action: I.Open });
|
|
331
331
|
};
|
|
332
332
|
static {
|
|
333
|
-
|
|
333
|
+
ue();
|
|
334
334
|
}
|
|
335
335
|
});
|
|
336
336
|
//#endregion
|
|
337
337
|
//#region src/attributes/menu.ts
|
|
338
|
-
function
|
|
338
|
+
function de(e, t) {
|
|
339
339
|
if (typeof e != "object" || !e) return e;
|
|
340
340
|
var n = e[Symbol.toPrimitive];
|
|
341
341
|
if (n !== void 0) {
|
|
@@ -345,15 +345,15 @@ function ue(e, t) {
|
|
|
345
345
|
}
|
|
346
346
|
return (t === "string" ? String : Number)(e);
|
|
347
347
|
}
|
|
348
|
-
function
|
|
349
|
-
var t =
|
|
348
|
+
function fe(e) {
|
|
349
|
+
var t = de(e, "string");
|
|
350
350
|
return typeof t == "symbol" ? t : String(t);
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function pe(e) {
|
|
353
353
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
354
354
|
return e;
|
|
355
355
|
}
|
|
356
|
-
function
|
|
356
|
+
function me(e, t, n) {
|
|
357
357
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
358
358
|
try {
|
|
359
359
|
Object.defineProperty(e, "name", {
|
|
@@ -363,7 +363,7 @@ function pe(e, t, n) {
|
|
|
363
363
|
} catch {}
|
|
364
364
|
return e;
|
|
365
365
|
}
|
|
366
|
-
function
|
|
366
|
+
function he(e, t, n, r, i, a) {
|
|
367
367
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
368
368
|
function p(t, n, r) {
|
|
369
369
|
return function(i, a) {
|
|
@@ -388,13 +388,13 @@ function me(e, t, n, r, i, a) {
|
|
|
388
388
|
}
|
|
389
389
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
390
390
|
if (!b && (d ? (h || x ? E = {
|
|
391
|
-
get:
|
|
391
|
+
get: me(function() {
|
|
392
392
|
return y(this);
|
|
393
393
|
}, r, "get"),
|
|
394
394
|
set: function(e) {
|
|
395
395
|
t[4](this, e);
|
|
396
396
|
}
|
|
397
|
-
} : E[O] = y, h ||
|
|
397
|
+
} : E[O] = y, h || me(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
398
398
|
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");
|
|
399
399
|
u[+c][r] = i < 3 ? 1 : i;
|
|
400
400
|
}
|
|
@@ -442,8 +442,8 @@ function me(e, t, n, r, i, a) {
|
|
|
442
442
|
var l = n[c], u = l[1], d = u & 7;
|
|
443
443
|
if ((u & 8) == o && !d == s) {
|
|
444
444
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
445
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
446
|
-
return
|
|
445
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : fe(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
446
|
+
return pe(t) === e;
|
|
447
447
|
} : i);
|
|
448
448
|
}
|
|
449
449
|
}
|
|
@@ -465,7 +465,7 @@ function me(e, t, n, r, i, a) {
|
|
|
465
465
|
}
|
|
466
466
|
};
|
|
467
467
|
}
|
|
468
|
-
var
|
|
468
|
+
var ge = u("bleet-menu"), _e, W;
|
|
469
469
|
(class {
|
|
470
470
|
logger;
|
|
471
471
|
ea;
|
|
@@ -473,11 +473,12 @@ var he = u("bleet-menu"), ge, G;
|
|
|
473
473
|
p;
|
|
474
474
|
transitionService;
|
|
475
475
|
storageService;
|
|
476
|
+
trapFocusService;
|
|
476
477
|
static {
|
|
477
|
-
({c: [
|
|
478
|
+
({c: [W, _e]} = he(this, [ge], []));
|
|
478
479
|
}
|
|
479
|
-
constructor(e = m(o).scopeTo("bleet-menu"), t = m(a), n = m(s), r = m(c), i = m(b), l = m(v)) {
|
|
480
|
-
this.logger = e, this.ea = t, this.element = n, this.p = r, this.transitionService = i, this.storageService = l, this.logger.trace("constructor");
|
|
480
|
+
constructor(e = m(o).scopeTo("bleet-menu"), t = m(a), n = m(s), r = m(c), i = m(b), l = m(v), u = m(S)) {
|
|
481
|
+
this.logger = e, this.ea = t, this.element = n, this.p = r, this.transitionService = i, this.storageService = l, this.trapFocusService = u, this.logger.trace("constructor");
|
|
481
482
|
}
|
|
482
483
|
disposable;
|
|
483
484
|
disposableOverlay;
|
|
@@ -485,35 +486,54 @@ var he = u("bleet-menu"), ge, G;
|
|
|
485
486
|
toggleButtons;
|
|
486
487
|
sublists = /* @__PURE__ */ new Map();
|
|
487
488
|
isOpen = !1;
|
|
489
|
+
closingFromOverlay = !1;
|
|
488
490
|
attaching() {
|
|
489
491
|
this.logger.trace("attaching"), this.closeButton = this.element.querySelector("[data-menu=close]"), this.toggleButtons = this.element.querySelectorAll("[data-menu^=\"toggle-button\"]"), this.initMenuButtons();
|
|
490
492
|
}
|
|
491
493
|
attached() {
|
|
492
|
-
this.logger.trace("attached"), this.disposable = this.ea.subscribe(E.Menu, this.onMenuEvent), this.disposableOverlay = this.ea.subscribe(E.OverlayStatus, this.onOverlayStatus), this.closeButton?.addEventListener("click", this.onClickClose), this.element.addEventListener("click", this.onClickToggleButtons);
|
|
494
|
+
this.logger.trace("attached"), this.disposable = this.ea.subscribe(E.Menu, this.onMenuEvent), this.disposableOverlay = this.ea.subscribe(E.OverlayStatus, this.onOverlayStatus), this.closeButton?.addEventListener("click", this.onClickClose), this.element.addEventListener("click", this.onClickToggleButtons), this.element.addEventListener("click", this.onClickLink);
|
|
493
495
|
}
|
|
494
496
|
detaching() {
|
|
495
|
-
this.logger.trace("detaching"), this.closeButton?.removeEventListener("click", this.onClickClose), this.element.removeEventListener("click", this.onClickToggleButtons), this.
|
|
497
|
+
this.logger.trace("detaching"), this.closeButton?.removeEventListener("click", this.onClickClose), this.element.removeEventListener("click", this.onClickToggleButtons), this.element.removeEventListener("click", this.onClickLink), this.isOpen === !0 && this.trapFocusService.stop().catch((e) => {
|
|
498
|
+
this.logger.trace("detaching: no trap to stop", e);
|
|
499
|
+
}), this.disposableOverlay?.dispose(), this.disposable?.dispose();
|
|
496
500
|
}
|
|
497
501
|
dispose() {
|
|
498
502
|
this.logger.trace("dispose"), this.disposableOverlay?.dispose(), this.disposable?.dispose();
|
|
499
503
|
}
|
|
500
504
|
open(e = !1) {
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
this.
|
|
505
|
-
|
|
505
|
+
if (!this.isOpen) {
|
|
506
|
+
this.logger.trace("open"), this.isOpen = !0;
|
|
507
|
+
let t = this.p.document.activeElement;
|
|
508
|
+
this.transitionService.run(this.element, (n) => {
|
|
509
|
+
e || this.ea.publish(E.Overlay, { action: O.Open }), this.ea.publish(E.MenuStatus, { status: L.Opening }), w(n, "menu", "show"), w(this.p.document.body, "menu-page", "show", n), n.ariaHidden = "false", this.isOpen === !0 && this.trapFocusService.start(t, n, this.p.document.body, void 0, this.onStopTrapFocus, this.closeButton);
|
|
510
|
+
}, (e) => {
|
|
511
|
+
this.ea.publish(E.MenuStatus, { status: L.Opened });
|
|
512
|
+
});
|
|
513
|
+
}
|
|
506
514
|
}
|
|
507
515
|
close(e = !1) {
|
|
508
|
-
this.isOpen && (this.logger.trace("close"), this.
|
|
509
|
-
this.
|
|
510
|
-
}, (e) => {
|
|
511
|
-
this.ea.publish(E.MenuStatus, { status: R.Closed });
|
|
516
|
+
this.isOpen && (this.logger.trace("close"), this.closingFromOverlay = e, this.trapFocusService.stop().catch((e) => {
|
|
517
|
+
this.logger.trace("close: no trap started", e), this.hide();
|
|
512
518
|
}));
|
|
513
519
|
}
|
|
520
|
+
hide() {
|
|
521
|
+
this.logger.trace("hide");
|
|
522
|
+
let e = this.closingFromOverlay;
|
|
523
|
+
this.isOpen = !1, this.closingFromOverlay = !1, this.transitionService.run(this.element, (t) => {
|
|
524
|
+
this.ea.publish(E.MenuStatus, { status: L.Closing }), e || this.ea.publish(E.Overlay, { action: O.Close }), w(t, "menu", "hide"), w(this.p.document.body, "menu-page", "hide", t), t.ariaHidden = "true";
|
|
525
|
+
}, (e) => {
|
|
526
|
+
this.ea.publish(E.MenuStatus, { status: L.Closed });
|
|
527
|
+
});
|
|
528
|
+
}
|
|
529
|
+
onStopTrapFocus = () => (this.logger.trace("onStopTrapFocus"), this.hide(), Promise.resolve());
|
|
514
530
|
onClickClose = (e) => {
|
|
515
531
|
this.logger.trace("onClickClose", e), e.preventDefault(), this.close();
|
|
516
532
|
};
|
|
533
|
+
onClickLink = (e) => {
|
|
534
|
+
let t = e.target.closest("a");
|
|
535
|
+
t !== null && this.isOpen === !0 && (this.logger.trace("onClickLink", t), this.close());
|
|
536
|
+
};
|
|
517
537
|
onClickToggleButtons = (e) => {
|
|
518
538
|
let t = e.target.closest("[data-menu^=\"toggle-button\"]");
|
|
519
539
|
t && t.matches("[data-menu^=\"toggle-button\"]") && (e.preventDefault(), this.toggleButton(t));
|
|
@@ -553,18 +573,18 @@ var he = u("bleet-menu"), ge, G;
|
|
|
553
573
|
}
|
|
554
574
|
}
|
|
555
575
|
onMenuEvent = (e) => {
|
|
556
|
-
this.logger.trace("onMenuEvent", e), e.action ===
|
|
576
|
+
this.logger.trace("onMenuEvent", e), e.action === I.Close ? (this.logger.trace("Menu Close action received"), this.close()) : e.action === I.Open ? (this.logger.trace("Menu Open action received"), this.open()) : e.action === I.Toggle && (this.logger.trace("Menu Toggle action received"), this.isOpen === !0 ? this.close() : this.open());
|
|
557
577
|
};
|
|
558
578
|
onOverlayStatus = (e) => {
|
|
559
579
|
e.status === k.Closing ? (this.logger.trace("Overlay Close action received"), this.close(!0)) : this.logger.trace("onOverlayStatus unhandled", e);
|
|
560
580
|
};
|
|
561
581
|
static {
|
|
562
|
-
|
|
582
|
+
_e();
|
|
563
583
|
}
|
|
564
584
|
});
|
|
565
585
|
//#endregion
|
|
566
586
|
//#region src/attributes/badge.ts
|
|
567
|
-
function
|
|
587
|
+
function ve(e, t) {
|
|
568
588
|
if (typeof e != "object" || !e) return e;
|
|
569
589
|
var n = e[Symbol.toPrimitive];
|
|
570
590
|
if (n !== void 0) {
|
|
@@ -574,15 +594,15 @@ function _e(e, t) {
|
|
|
574
594
|
}
|
|
575
595
|
return (t === "string" ? String : Number)(e);
|
|
576
596
|
}
|
|
577
|
-
function
|
|
578
|
-
var t =
|
|
597
|
+
function ye(e) {
|
|
598
|
+
var t = ve(e, "string");
|
|
579
599
|
return typeof t == "symbol" ? t : String(t);
|
|
580
600
|
}
|
|
581
|
-
function
|
|
601
|
+
function be(e) {
|
|
582
602
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
583
603
|
return e;
|
|
584
604
|
}
|
|
585
|
-
function
|
|
605
|
+
function xe(e, t, n) {
|
|
586
606
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
587
607
|
try {
|
|
588
608
|
Object.defineProperty(e, "name", {
|
|
@@ -592,7 +612,7 @@ function be(e, t, n) {
|
|
|
592
612
|
} catch {}
|
|
593
613
|
return e;
|
|
594
614
|
}
|
|
595
|
-
function
|
|
615
|
+
function Se(e, t, n, r, i, a) {
|
|
596
616
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
597
617
|
function p(t, n, r) {
|
|
598
618
|
return function(i, a) {
|
|
@@ -617,13 +637,13 @@ function xe(e, t, n, r, i, a) {
|
|
|
617
637
|
}
|
|
618
638
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
619
639
|
if (!b && (d ? (h || x ? E = {
|
|
620
|
-
get:
|
|
640
|
+
get: xe(function() {
|
|
621
641
|
return y(this);
|
|
622
642
|
}, r, "get"),
|
|
623
643
|
set: function(e) {
|
|
624
644
|
t[4](this, e);
|
|
625
645
|
}
|
|
626
|
-
} : E[O] = y, h ||
|
|
646
|
+
} : E[O] = y, h || xe(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
627
647
|
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");
|
|
628
648
|
u[+c][r] = i < 3 ? 1 : i;
|
|
629
649
|
}
|
|
@@ -671,8 +691,8 @@ function xe(e, t, n, r, i, a) {
|
|
|
671
691
|
var l = n[c], u = l[1], d = u & 7;
|
|
672
692
|
if ((u & 8) == o && !d == s) {
|
|
673
693
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
674
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
675
|
-
return
|
|
694
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : ye(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
695
|
+
return be(t) === e;
|
|
676
696
|
} : i);
|
|
677
697
|
}
|
|
678
698
|
}
|
|
@@ -694,16 +714,16 @@ function xe(e, t, n, r, i, a) {
|
|
|
694
714
|
}
|
|
695
715
|
};
|
|
696
716
|
}
|
|
697
|
-
var
|
|
717
|
+
var Ce = u({
|
|
698
718
|
name: "bleet-badge",
|
|
699
719
|
defaultProperty: "id"
|
|
700
|
-
}),
|
|
720
|
+
}), we, Te, Ee, G;
|
|
701
721
|
(class {
|
|
702
722
|
logger;
|
|
703
723
|
ea;
|
|
704
724
|
element;
|
|
705
725
|
static {
|
|
706
|
-
({e: [
|
|
726
|
+
({e: [Te, Ee], c: [G, we]} = Se(this, [Ce], [[
|
|
707
727
|
l,
|
|
708
728
|
0,
|
|
709
729
|
"id"
|
|
@@ -713,26 +733,26 @@ var Se = u({
|
|
|
713
733
|
this.logger = e, this.ea = t, this.element = n, this.logger.trace("constructor");
|
|
714
734
|
}
|
|
715
735
|
closeButton;
|
|
716
|
-
id =
|
|
736
|
+
id = Te(this, "");
|
|
717
737
|
attached() {
|
|
718
738
|
this.logger.trace("attached"), this.closeButton = this.element.querySelector("[data-badge=remove]") ?? void 0, this.closeButton?.addEventListener("click", this.onClickRemove);
|
|
719
739
|
}
|
|
720
740
|
detaching() {
|
|
721
741
|
this.logger.trace("detaching"), this.closeButton?.removeEventListener("click", this.onClickRemove);
|
|
722
742
|
}
|
|
723
|
-
onClickRemove = (
|
|
743
|
+
onClickRemove = (Ee(this), (e) => {
|
|
724
744
|
this.logger.trace("onClickRemove", e), e.preventDefault(), this.ea.publish(E.Badge, {
|
|
725
|
-
action:
|
|
745
|
+
action: ne.Remove,
|
|
726
746
|
id: this.id
|
|
727
747
|
}), this.element.remove();
|
|
728
748
|
});
|
|
729
749
|
static {
|
|
730
|
-
|
|
750
|
+
we();
|
|
731
751
|
}
|
|
732
752
|
});
|
|
733
753
|
//#endregion
|
|
734
754
|
//#region src/attributes/dropdown.ts
|
|
735
|
-
function
|
|
755
|
+
function De(e, t) {
|
|
736
756
|
if (typeof e != "object" || !e) return e;
|
|
737
757
|
var n = e[Symbol.toPrimitive];
|
|
738
758
|
if (n !== void 0) {
|
|
@@ -742,15 +762,15 @@ function Ee(e, t) {
|
|
|
742
762
|
}
|
|
743
763
|
return (t === "string" ? String : Number)(e);
|
|
744
764
|
}
|
|
745
|
-
function
|
|
746
|
-
var t =
|
|
765
|
+
function Oe(e) {
|
|
766
|
+
var t = De(e, "string");
|
|
747
767
|
return typeof t == "symbol" ? t : String(t);
|
|
748
768
|
}
|
|
749
|
-
function
|
|
769
|
+
function ke(e) {
|
|
750
770
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
751
771
|
return e;
|
|
752
772
|
}
|
|
753
|
-
function
|
|
773
|
+
function Ae(e, t, n) {
|
|
754
774
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
755
775
|
try {
|
|
756
776
|
Object.defineProperty(e, "name", {
|
|
@@ -760,7 +780,7 @@ function ke(e, t, n) {
|
|
|
760
780
|
} catch {}
|
|
761
781
|
return e;
|
|
762
782
|
}
|
|
763
|
-
function
|
|
783
|
+
function je(e, t, n, r, i, a) {
|
|
764
784
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
765
785
|
function p(t, n, r) {
|
|
766
786
|
return function(i, a) {
|
|
@@ -785,13 +805,13 @@ function Ae(e, t, n, r, i, a) {
|
|
|
785
805
|
}
|
|
786
806
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
787
807
|
if (!b && (d ? (h || x ? E = {
|
|
788
|
-
get:
|
|
808
|
+
get: Ae(function() {
|
|
789
809
|
return y(this);
|
|
790
810
|
}, r, "get"),
|
|
791
811
|
set: function(e) {
|
|
792
812
|
t[4](this, e);
|
|
793
813
|
}
|
|
794
|
-
} : E[O] = y, h ||
|
|
814
|
+
} : E[O] = y, h || Ae(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
795
815
|
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");
|
|
796
816
|
u[+c][r] = i < 3 ? 1 : i;
|
|
797
817
|
}
|
|
@@ -839,8 +859,8 @@ function Ae(e, t, n, r, i, a) {
|
|
|
839
859
|
var l = n[c], u = l[1], d = u & 7;
|
|
840
860
|
if ((u & 8) == o && !d == s) {
|
|
841
861
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
842
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
843
|
-
return
|
|
862
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : Oe(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
863
|
+
return ke(t) === e;
|
|
844
864
|
} : i);
|
|
845
865
|
}
|
|
846
866
|
}
|
|
@@ -862,13 +882,13 @@ function Ae(e, t, n, r, i, a) {
|
|
|
862
882
|
}
|
|
863
883
|
};
|
|
864
884
|
}
|
|
865
|
-
var
|
|
885
|
+
var Me = u("bleet-dropdown"), Ne, K;
|
|
866
886
|
(class {
|
|
867
887
|
logger;
|
|
868
888
|
element;
|
|
869
889
|
trapFocusService;
|
|
870
890
|
static {
|
|
871
|
-
({c: [
|
|
891
|
+
({c: [K, Ne]} = je(this, [Me], []));
|
|
872
892
|
}
|
|
873
893
|
constructor(e = m(o).scopeTo("bleet-dropdown"), t = m(s), n = m(S)) {
|
|
874
894
|
this.logger = e, this.element = t, this.trapFocusService = n, this.logger.trace("constructor");
|
|
@@ -1037,12 +1057,12 @@ var je = u("bleet-dropdown"), Me, q;
|
|
|
1037
1057
|
n && (n.textContent = e), this.itemsContainer?.append(t);
|
|
1038
1058
|
}
|
|
1039
1059
|
static {
|
|
1040
|
-
|
|
1060
|
+
Ne();
|
|
1041
1061
|
}
|
|
1042
1062
|
});
|
|
1043
1063
|
//#endregion
|
|
1044
1064
|
//#region src/attributes/password.ts
|
|
1045
|
-
function
|
|
1065
|
+
function Pe(e, t) {
|
|
1046
1066
|
if (typeof e != "object" || !e) return e;
|
|
1047
1067
|
var n = e[Symbol.toPrimitive];
|
|
1048
1068
|
if (n !== void 0) {
|
|
@@ -1052,15 +1072,15 @@ function Ne(e, t) {
|
|
|
1052
1072
|
}
|
|
1053
1073
|
return (t === "string" ? String : Number)(e);
|
|
1054
1074
|
}
|
|
1055
|
-
function
|
|
1056
|
-
var t =
|
|
1075
|
+
function Fe(e) {
|
|
1076
|
+
var t = Pe(e, "string");
|
|
1057
1077
|
return typeof t == "symbol" ? t : String(t);
|
|
1058
1078
|
}
|
|
1059
|
-
function
|
|
1079
|
+
function Ie(e) {
|
|
1060
1080
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
1061
1081
|
return e;
|
|
1062
1082
|
}
|
|
1063
|
-
function
|
|
1083
|
+
function Le(e, t, n) {
|
|
1064
1084
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
1065
1085
|
try {
|
|
1066
1086
|
Object.defineProperty(e, "name", {
|
|
@@ -1070,7 +1090,7 @@ function Ie(e, t, n) {
|
|
|
1070
1090
|
} catch {}
|
|
1071
1091
|
return e;
|
|
1072
1092
|
}
|
|
1073
|
-
function
|
|
1093
|
+
function Re(e, t, n, r, i, a) {
|
|
1074
1094
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
1075
1095
|
function p(t, n, r) {
|
|
1076
1096
|
return function(i, a) {
|
|
@@ -1095,13 +1115,13 @@ function Le(e, t, n, r, i, a) {
|
|
|
1095
1115
|
}
|
|
1096
1116
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
1097
1117
|
if (!b && (d ? (h || x ? E = {
|
|
1098
|
-
get:
|
|
1118
|
+
get: Le(function() {
|
|
1099
1119
|
return y(this);
|
|
1100
1120
|
}, r, "get"),
|
|
1101
1121
|
set: function(e) {
|
|
1102
1122
|
t[4](this, e);
|
|
1103
1123
|
}
|
|
1104
|
-
} : E[O] = y, h ||
|
|
1124
|
+
} : E[O] = y, h || Le(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
1105
1125
|
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");
|
|
1106
1126
|
u[+c][r] = i < 3 ? 1 : i;
|
|
1107
1127
|
}
|
|
@@ -1149,8 +1169,8 @@ function Le(e, t, n, r, i, a) {
|
|
|
1149
1169
|
var l = n[c], u = l[1], d = u & 7;
|
|
1150
1170
|
if ((u & 8) == o && !d == s) {
|
|
1151
1171
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
1152
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
1153
|
-
return
|
|
1172
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : Fe(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
1173
|
+
return Ie(t) === e;
|
|
1154
1174
|
} : i);
|
|
1155
1175
|
}
|
|
1156
1176
|
}
|
|
@@ -1172,12 +1192,12 @@ function Le(e, t, n, r, i, a) {
|
|
|
1172
1192
|
}
|
|
1173
1193
|
};
|
|
1174
1194
|
}
|
|
1175
|
-
var
|
|
1195
|
+
var ze = u("bleet-password"), Be, q;
|
|
1176
1196
|
(class {
|
|
1177
1197
|
logger;
|
|
1178
1198
|
element;
|
|
1179
1199
|
static {
|
|
1180
|
-
({c: [
|
|
1200
|
+
({c: [q, Be]} = Re(this, [ze], []));
|
|
1181
1201
|
}
|
|
1182
1202
|
constructor(e = m(o).scopeTo("bleet-password"), t = m(s)) {
|
|
1183
1203
|
this.logger = e, this.element = t;
|
|
@@ -1201,12 +1221,12 @@ var Re = u("bleet-password"), ze, J;
|
|
|
1201
1221
|
this.input && (this.input.type = t ? "text" : "password"), this.iconHidden && w(this.iconHidden, "password", t ? "hide" : "show"), this.iconVisible && w(this.iconVisible, "password", t ? "show" : "hide");
|
|
1202
1222
|
};
|
|
1203
1223
|
static {
|
|
1204
|
-
|
|
1224
|
+
Be();
|
|
1205
1225
|
}
|
|
1206
1226
|
});
|
|
1207
1227
|
//#endregion
|
|
1208
1228
|
//#region src/attributes/tabs.ts
|
|
1209
|
-
function
|
|
1229
|
+
function Ve(e, t) {
|
|
1210
1230
|
if (typeof e != "object" || !e) return e;
|
|
1211
1231
|
var n = e[Symbol.toPrimitive];
|
|
1212
1232
|
if (n !== void 0) {
|
|
@@ -1216,15 +1236,15 @@ function Be(e, t) {
|
|
|
1216
1236
|
}
|
|
1217
1237
|
return (t === "string" ? String : Number)(e);
|
|
1218
1238
|
}
|
|
1219
|
-
function
|
|
1220
|
-
var t =
|
|
1239
|
+
function He(e) {
|
|
1240
|
+
var t = Ve(e, "string");
|
|
1221
1241
|
return typeof t == "symbol" ? t : String(t);
|
|
1222
1242
|
}
|
|
1223
|
-
function
|
|
1243
|
+
function Ue(e) {
|
|
1224
1244
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
1225
1245
|
return e;
|
|
1226
1246
|
}
|
|
1227
|
-
function
|
|
1247
|
+
function We(e, t, n) {
|
|
1228
1248
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
1229
1249
|
try {
|
|
1230
1250
|
Object.defineProperty(e, "name", {
|
|
@@ -1234,7 +1254,7 @@ function Ue(e, t, n) {
|
|
|
1234
1254
|
} catch {}
|
|
1235
1255
|
return e;
|
|
1236
1256
|
}
|
|
1237
|
-
function
|
|
1257
|
+
function Ge(e, t, n, r, i, a) {
|
|
1238
1258
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
1239
1259
|
function p(t, n, r) {
|
|
1240
1260
|
return function(i, a) {
|
|
@@ -1259,13 +1279,13 @@ function We(e, t, n, r, i, a) {
|
|
|
1259
1279
|
}
|
|
1260
1280
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
1261
1281
|
if (!b && (d ? (h || x ? E = {
|
|
1262
|
-
get:
|
|
1282
|
+
get: We(function() {
|
|
1263
1283
|
return y(this);
|
|
1264
1284
|
}, r, "get"),
|
|
1265
1285
|
set: function(e) {
|
|
1266
1286
|
t[4](this, e);
|
|
1267
1287
|
}
|
|
1268
|
-
} : E[O] = y, h ||
|
|
1288
|
+
} : E[O] = y, h || We(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
1269
1289
|
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");
|
|
1270
1290
|
u[+c][r] = i < 3 ? 1 : i;
|
|
1271
1291
|
}
|
|
@@ -1313,8 +1333,8 @@ function We(e, t, n, r, i, a) {
|
|
|
1313
1333
|
var l = n[c], u = l[1], d = u & 7;
|
|
1314
1334
|
if ((u & 8) == o && !d == s) {
|
|
1315
1335
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
1316
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
1317
|
-
return
|
|
1336
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : He(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
1337
|
+
return Ue(t) === e;
|
|
1318
1338
|
} : i);
|
|
1319
1339
|
}
|
|
1320
1340
|
}
|
|
@@ -1336,13 +1356,13 @@ function We(e, t, n, r, i, a) {
|
|
|
1336
1356
|
}
|
|
1337
1357
|
};
|
|
1338
1358
|
}
|
|
1339
|
-
var
|
|
1359
|
+
var Ke = u("bleet-tabs"), qe, J;
|
|
1340
1360
|
(class {
|
|
1341
1361
|
logger;
|
|
1342
1362
|
element;
|
|
1343
1363
|
p;
|
|
1344
1364
|
static {
|
|
1345
|
-
({c: [
|
|
1365
|
+
({c: [J, qe]} = Ge(this, [Ke], []));
|
|
1346
1366
|
}
|
|
1347
1367
|
constructor(e = m(o).scopeTo("bleet-tabs"), t = m(s), n = m(c)) {
|
|
1348
1368
|
this.logger = e, this.element = t, this.p = n, this.logger.trace("constructor");
|
|
@@ -1380,12 +1400,12 @@ var Ge = u("bleet-tabs"), Ke, Y;
|
|
|
1380
1400
|
n && n.click();
|
|
1381
1401
|
};
|
|
1382
1402
|
static {
|
|
1383
|
-
|
|
1403
|
+
qe();
|
|
1384
1404
|
}
|
|
1385
1405
|
});
|
|
1386
1406
|
//#endregion
|
|
1387
1407
|
//#region src/attributes/profile.ts
|
|
1388
|
-
function
|
|
1408
|
+
function Je(e, t) {
|
|
1389
1409
|
if (typeof e != "object" || !e) return e;
|
|
1390
1410
|
var n = e[Symbol.toPrimitive];
|
|
1391
1411
|
if (n !== void 0) {
|
|
@@ -1395,15 +1415,15 @@ function qe(e, t) {
|
|
|
1395
1415
|
}
|
|
1396
1416
|
return (t === "string" ? String : Number)(e);
|
|
1397
1417
|
}
|
|
1398
|
-
function
|
|
1399
|
-
var t =
|
|
1418
|
+
function Ye(e) {
|
|
1419
|
+
var t = Je(e, "string");
|
|
1400
1420
|
return typeof t == "symbol" ? t : String(t);
|
|
1401
1421
|
}
|
|
1402
|
-
function
|
|
1422
|
+
function Xe(e) {
|
|
1403
1423
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
1404
1424
|
return e;
|
|
1405
1425
|
}
|
|
1406
|
-
function
|
|
1426
|
+
function Ze(e, t, n) {
|
|
1407
1427
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
1408
1428
|
try {
|
|
1409
1429
|
Object.defineProperty(e, "name", {
|
|
@@ -1413,7 +1433,7 @@ function Xe(e, t, n) {
|
|
|
1413
1433
|
} catch {}
|
|
1414
1434
|
return e;
|
|
1415
1435
|
}
|
|
1416
|
-
function
|
|
1436
|
+
function Qe(e, t, n, r, i, a) {
|
|
1417
1437
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
1418
1438
|
function p(t, n, r) {
|
|
1419
1439
|
return function(i, a) {
|
|
@@ -1438,13 +1458,13 @@ function Ze(e, t, n, r, i, a) {
|
|
|
1438
1458
|
}
|
|
1439
1459
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
1440
1460
|
if (!b && (d ? (h || x ? E = {
|
|
1441
|
-
get:
|
|
1461
|
+
get: Ze(function() {
|
|
1442
1462
|
return y(this);
|
|
1443
1463
|
}, r, "get"),
|
|
1444
1464
|
set: function(e) {
|
|
1445
1465
|
t[4](this, e);
|
|
1446
1466
|
}
|
|
1447
|
-
} : E[O] = y, h ||
|
|
1467
|
+
} : E[O] = y, h || Ze(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
1448
1468
|
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");
|
|
1449
1469
|
u[+c][r] = i < 3 ? 1 : i;
|
|
1450
1470
|
}
|
|
@@ -1492,8 +1512,8 @@ function Ze(e, t, n, r, i, a) {
|
|
|
1492
1512
|
var l = n[c], u = l[1], d = u & 7;
|
|
1493
1513
|
if ((u & 8) == o && !d == s) {
|
|
1494
1514
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
1495
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
1496
|
-
return
|
|
1515
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : Ye(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
1516
|
+
return Xe(t) === e;
|
|
1497
1517
|
} : i);
|
|
1498
1518
|
}
|
|
1499
1519
|
}
|
|
@@ -1515,10 +1535,10 @@ function Ze(e, t, n, r, i, a) {
|
|
|
1515
1535
|
}
|
|
1516
1536
|
};
|
|
1517
1537
|
}
|
|
1518
|
-
var
|
|
1538
|
+
var $e = u({
|
|
1519
1539
|
name: "bleet-profile",
|
|
1520
1540
|
defaultProperty: "id"
|
|
1521
|
-
}),
|
|
1541
|
+
}), et, tt, nt, Y;
|
|
1522
1542
|
(class {
|
|
1523
1543
|
logger;
|
|
1524
1544
|
ea;
|
|
@@ -1527,7 +1547,7 @@ var Qe = u({
|
|
|
1527
1547
|
p;
|
|
1528
1548
|
trapFocusService;
|
|
1529
1549
|
static {
|
|
1530
|
-
({e: [
|
|
1550
|
+
({e: [tt, nt], c: [Y, et]} = Qe(this, [$e], [[
|
|
1531
1551
|
l,
|
|
1532
1552
|
0,
|
|
1533
1553
|
"id"
|
|
@@ -1536,8 +1556,8 @@ var Qe = u({
|
|
|
1536
1556
|
constructor(e = m(o).scopeTo("bleet-profile"), t = m(a), n = m(s), r = m(b), i = m(c), l = m(S)) {
|
|
1537
1557
|
this.logger = e, this.ea = t, this.element = n, this.transitionService = r, this.p = i, this.trapFocusService = l, this.logger.trace("constructor");
|
|
1538
1558
|
}
|
|
1539
|
-
id =
|
|
1540
|
-
disposable = (
|
|
1559
|
+
id = tt(this, "");
|
|
1560
|
+
disposable = (nt(this), void 0);
|
|
1541
1561
|
toggleButton;
|
|
1542
1562
|
panel;
|
|
1543
1563
|
isOpen = !1;
|
|
@@ -1603,12 +1623,12 @@ var Qe = u({
|
|
|
1603
1623
|
e.action === A.Close && t && this.isOpen && (this.logger.trace("Profile Close action received"), this.close());
|
|
1604
1624
|
};
|
|
1605
1625
|
static {
|
|
1606
|
-
|
|
1626
|
+
et();
|
|
1607
1627
|
}
|
|
1608
1628
|
});
|
|
1609
1629
|
//#endregion
|
|
1610
1630
|
//#region src/attributes/toaster-trigger.ts
|
|
1611
|
-
function
|
|
1631
|
+
function rt(e, t) {
|
|
1612
1632
|
if (typeof e != "object" || !e) return e;
|
|
1613
1633
|
var n = e[Symbol.toPrimitive];
|
|
1614
1634
|
if (n !== void 0) {
|
|
@@ -1618,15 +1638,15 @@ function nt(e, t) {
|
|
|
1618
1638
|
}
|
|
1619
1639
|
return (t === "string" ? String : Number)(e);
|
|
1620
1640
|
}
|
|
1621
|
-
function
|
|
1622
|
-
var t =
|
|
1641
|
+
function it(e) {
|
|
1642
|
+
var t = rt(e, "string");
|
|
1623
1643
|
return typeof t == "symbol" ? t : String(t);
|
|
1624
1644
|
}
|
|
1625
|
-
function
|
|
1645
|
+
function at(e) {
|
|
1626
1646
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
1627
1647
|
return e;
|
|
1628
1648
|
}
|
|
1629
|
-
function
|
|
1649
|
+
function ot(e, t, n) {
|
|
1630
1650
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
1631
1651
|
try {
|
|
1632
1652
|
Object.defineProperty(e, "name", {
|
|
@@ -1636,7 +1656,7 @@ function at(e, t, n) {
|
|
|
1636
1656
|
} catch {}
|
|
1637
1657
|
return e;
|
|
1638
1658
|
}
|
|
1639
|
-
function
|
|
1659
|
+
function st(e, t, n, r, i, a) {
|
|
1640
1660
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
1641
1661
|
function p(t, n, r) {
|
|
1642
1662
|
return function(i, a) {
|
|
@@ -1661,13 +1681,13 @@ function ot(e, t, n, r, i, a) {
|
|
|
1661
1681
|
}
|
|
1662
1682
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
1663
1683
|
if (!b && (d ? (h || x ? E = {
|
|
1664
|
-
get:
|
|
1684
|
+
get: ot(function() {
|
|
1665
1685
|
return y(this);
|
|
1666
1686
|
}, r, "get"),
|
|
1667
1687
|
set: function(e) {
|
|
1668
1688
|
t[4](this, e);
|
|
1669
1689
|
}
|
|
1670
|
-
} : E[O] = y, h ||
|
|
1690
|
+
} : E[O] = y, h || ot(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
1671
1691
|
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");
|
|
1672
1692
|
u[+c][r] = i < 3 ? 1 : i;
|
|
1673
1693
|
}
|
|
@@ -1715,8 +1735,8 @@ function ot(e, t, n, r, i, a) {
|
|
|
1715
1735
|
var l = n[c], u = l[1], d = u & 7;
|
|
1716
1736
|
if ((u & 8) == o && !d == s) {
|
|
1717
1737
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
1718
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
1719
|
-
return
|
|
1738
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : it(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
1739
|
+
return at(t) === e;
|
|
1720
1740
|
} : i);
|
|
1721
1741
|
}
|
|
1722
1742
|
}
|
|
@@ -1738,43 +1758,43 @@ function ot(e, t, n, r, i, a) {
|
|
|
1738
1758
|
}
|
|
1739
1759
|
};
|
|
1740
1760
|
}
|
|
1741
|
-
var
|
|
1761
|
+
var ct = u({
|
|
1742
1762
|
name: "bleet-toaster-trigger",
|
|
1743
1763
|
defaultProperty: "id"
|
|
1744
|
-
}),
|
|
1764
|
+
}), lt, ut = l(), dt = l(), ft = l(), pt = l(), mt = l(), ht, gt, _t, vt, yt, bt, xt, St, Ct, wt, Tt, Et, X;
|
|
1745
1765
|
(class {
|
|
1746
1766
|
logger;
|
|
1747
1767
|
element;
|
|
1748
1768
|
ea;
|
|
1749
1769
|
static {
|
|
1750
|
-
({e: [
|
|
1770
|
+
({e: [ht, gt, _t, vt, yt, bt, xt, St, Ct, wt, Tt, Et], c: [X, lt]} = st(this, [ct], [
|
|
1751
1771
|
[
|
|
1752
1772
|
l,
|
|
1753
1773
|
0,
|
|
1754
1774
|
"id"
|
|
1755
1775
|
],
|
|
1756
1776
|
[
|
|
1757
|
-
|
|
1777
|
+
ut,
|
|
1758
1778
|
0,
|
|
1759
|
-
"
|
|
1779
|
+
"level"
|
|
1760
1780
|
],
|
|
1761
1781
|
[
|
|
1762
|
-
|
|
1782
|
+
dt,
|
|
1763
1783
|
0,
|
|
1764
1784
|
"icon"
|
|
1765
1785
|
],
|
|
1766
1786
|
[
|
|
1767
|
-
|
|
1787
|
+
ft,
|
|
1768
1788
|
0,
|
|
1769
1789
|
"title"
|
|
1770
1790
|
],
|
|
1771
1791
|
[
|
|
1772
|
-
|
|
1792
|
+
pt,
|
|
1773
1793
|
0,
|
|
1774
1794
|
"content"
|
|
1775
1795
|
],
|
|
1776
1796
|
[
|
|
1777
|
-
|
|
1797
|
+
mt,
|
|
1778
1798
|
0,
|
|
1779
1799
|
"duration"
|
|
1780
1800
|
]
|
|
@@ -1783,12 +1803,12 @@ var st = u({
|
|
|
1783
1803
|
constructor(e = m(o).scopeTo("bleet-toaster-trigger"), t = m(s), n = m(a)) {
|
|
1784
1804
|
this.logger = e, this.element = t, this.ea = n, this.logger.trace("constructor");
|
|
1785
1805
|
}
|
|
1786
|
-
id =
|
|
1787
|
-
|
|
1788
|
-
icon = (
|
|
1789
|
-
title = (
|
|
1790
|
-
content = (
|
|
1791
|
-
duration = (
|
|
1806
|
+
id = ht(this, "");
|
|
1807
|
+
level = (gt(this), _t(this, B.Info));
|
|
1808
|
+
icon = (vt(this), yt(this, V.Info));
|
|
1809
|
+
title = (bt(this), xt(this, ""));
|
|
1810
|
+
content = (St(this), Ct(this, ""));
|
|
1811
|
+
duration = (wt(this), Tt(this, 0));
|
|
1792
1812
|
attaching() {
|
|
1793
1813
|
this.logger.trace("attaching");
|
|
1794
1814
|
}
|
|
@@ -1798,13 +1818,13 @@ var st = u({
|
|
|
1798
1818
|
detaching() {
|
|
1799
1819
|
this.logger.trace("detaching"), this.element.removeEventListener("click", this.onClick);
|
|
1800
1820
|
}
|
|
1801
|
-
onClick = (
|
|
1821
|
+
onClick = (Et(this), (e) => {
|
|
1802
1822
|
this.logger.trace("onClick", e), e.preventDefault(), this.ea.publish(E.Toaster, {
|
|
1803
|
-
action:
|
|
1823
|
+
action: F.Add,
|
|
1804
1824
|
toast: {
|
|
1805
1825
|
id: this.id,
|
|
1806
1826
|
duration: this.duration,
|
|
1807
|
-
|
|
1827
|
+
level: this.level,
|
|
1808
1828
|
icon: this.icon,
|
|
1809
1829
|
title: this.title,
|
|
1810
1830
|
content: this.content
|
|
@@ -1812,12 +1832,12 @@ var st = u({
|
|
|
1812
1832
|
});
|
|
1813
1833
|
});
|
|
1814
1834
|
static {
|
|
1815
|
-
|
|
1835
|
+
lt();
|
|
1816
1836
|
}
|
|
1817
1837
|
});
|
|
1818
1838
|
//#endregion
|
|
1819
1839
|
//#region src/attributes/alert.ts
|
|
1820
|
-
function
|
|
1840
|
+
function Dt(e, t) {
|
|
1821
1841
|
if (typeof e != "object" || !e) return e;
|
|
1822
1842
|
var n = e[Symbol.toPrimitive];
|
|
1823
1843
|
if (n !== void 0) {
|
|
@@ -1827,15 +1847,15 @@ function Et(e, t) {
|
|
|
1827
1847
|
}
|
|
1828
1848
|
return (t === "string" ? String : Number)(e);
|
|
1829
1849
|
}
|
|
1830
|
-
function
|
|
1831
|
-
var t =
|
|
1850
|
+
function Ot(e) {
|
|
1851
|
+
var t = Dt(e, "string");
|
|
1832
1852
|
return typeof t == "symbol" ? t : String(t);
|
|
1833
1853
|
}
|
|
1834
|
-
function
|
|
1854
|
+
function kt(e) {
|
|
1835
1855
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
1836
1856
|
return e;
|
|
1837
1857
|
}
|
|
1838
|
-
function
|
|
1858
|
+
function At(e, t, n) {
|
|
1839
1859
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
1840
1860
|
try {
|
|
1841
1861
|
Object.defineProperty(e, "name", {
|
|
@@ -1845,7 +1865,7 @@ function kt(e, t, n) {
|
|
|
1845
1865
|
} catch {}
|
|
1846
1866
|
return e;
|
|
1847
1867
|
}
|
|
1848
|
-
function
|
|
1868
|
+
function jt(e, t, n, r, i, a) {
|
|
1849
1869
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
1850
1870
|
function p(t, n, r) {
|
|
1851
1871
|
return function(i, a) {
|
|
@@ -1870,13 +1890,13 @@ function At(e, t, n, r, i, a) {
|
|
|
1870
1890
|
}
|
|
1871
1891
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
1872
1892
|
if (!b && (d ? (h || x ? E = {
|
|
1873
|
-
get:
|
|
1893
|
+
get: At(function() {
|
|
1874
1894
|
return y(this);
|
|
1875
1895
|
}, r, "get"),
|
|
1876
1896
|
set: function(e) {
|
|
1877
1897
|
t[4](this, e);
|
|
1878
1898
|
}
|
|
1879
|
-
} : E[O] = y, h ||
|
|
1899
|
+
} : E[O] = y, h || At(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
1880
1900
|
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");
|
|
1881
1901
|
u[+c][r] = i < 3 ? 1 : i;
|
|
1882
1902
|
}
|
|
@@ -1924,8 +1944,8 @@ function At(e, t, n, r, i, a) {
|
|
|
1924
1944
|
var l = n[c], u = l[1], d = u & 7;
|
|
1925
1945
|
if ((u & 8) == o && !d == s) {
|
|
1926
1946
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
1927
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
1928
|
-
return
|
|
1947
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : Ot(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
1948
|
+
return kt(t) === e;
|
|
1929
1949
|
} : i);
|
|
1930
1950
|
}
|
|
1931
1951
|
}
|
|
@@ -1947,14 +1967,14 @@ function At(e, t, n, r, i, a) {
|
|
|
1947
1967
|
}
|
|
1948
1968
|
};
|
|
1949
1969
|
}
|
|
1950
|
-
var
|
|
1970
|
+
var Mt = u("bleet-alert"), Nt, Z;
|
|
1951
1971
|
(class {
|
|
1952
1972
|
logger;
|
|
1953
1973
|
element;
|
|
1954
1974
|
p;
|
|
1955
1975
|
transitionService;
|
|
1956
1976
|
static {
|
|
1957
|
-
({c: [
|
|
1977
|
+
({c: [Z, Nt]} = jt(this, [Mt], []));
|
|
1958
1978
|
}
|
|
1959
1979
|
constructor(e = m(o).scopeTo("bleet-alert"), t = m(s), n = m(c), r = m(b)) {
|
|
1960
1980
|
this.logger = e, this.element = t, this.p = n, this.transitionService = r, this.logger.trace("constructor");
|
|
@@ -1980,12 +2000,12 @@ var jt = u("bleet-alert"), Mt, Q;
|
|
|
1980
2000
|
});
|
|
1981
2001
|
};
|
|
1982
2002
|
static {
|
|
1983
|
-
|
|
2003
|
+
Nt();
|
|
1984
2004
|
}
|
|
1985
2005
|
});
|
|
1986
2006
|
//#endregion
|
|
1987
2007
|
//#region src/attributes/modal-trigger.ts
|
|
1988
|
-
function
|
|
2008
|
+
function Pt(e, t) {
|
|
1989
2009
|
if (typeof e != "object" || !e) return e;
|
|
1990
2010
|
var n = e[Symbol.toPrimitive];
|
|
1991
2011
|
if (n !== void 0) {
|
|
@@ -1995,15 +2015,15 @@ function Nt(e, t) {
|
|
|
1995
2015
|
}
|
|
1996
2016
|
return (t === "string" ? String : Number)(e);
|
|
1997
2017
|
}
|
|
1998
|
-
function
|
|
1999
|
-
var t =
|
|
2018
|
+
function Ft(e) {
|
|
2019
|
+
var t = Pt(e, "string");
|
|
2000
2020
|
return typeof t == "symbol" ? t : String(t);
|
|
2001
2021
|
}
|
|
2002
|
-
function
|
|
2022
|
+
function It(e) {
|
|
2003
2023
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
2004
2024
|
return e;
|
|
2005
2025
|
}
|
|
2006
|
-
function
|
|
2026
|
+
function Lt(e, t, n) {
|
|
2007
2027
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
2008
2028
|
try {
|
|
2009
2029
|
Object.defineProperty(e, "name", {
|
|
@@ -2013,7 +2033,7 @@ function It(e, t, n) {
|
|
|
2013
2033
|
} catch {}
|
|
2014
2034
|
return e;
|
|
2015
2035
|
}
|
|
2016
|
-
function
|
|
2036
|
+
function Rt(e, t, n, r, i, a) {
|
|
2017
2037
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
2018
2038
|
function p(t, n, r) {
|
|
2019
2039
|
return function(i, a) {
|
|
@@ -2038,13 +2058,13 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2038
2058
|
}
|
|
2039
2059
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
2040
2060
|
if (!b && (d ? (h || x ? E = {
|
|
2041
|
-
get:
|
|
2061
|
+
get: Lt(function() {
|
|
2042
2062
|
return y(this);
|
|
2043
2063
|
}, r, "get"),
|
|
2044
2064
|
set: function(e) {
|
|
2045
2065
|
t[4](this, e);
|
|
2046
2066
|
}
|
|
2047
|
-
} : E[O] = y, h ||
|
|
2067
|
+
} : E[O] = y, h || Lt(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
2048
2068
|
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");
|
|
2049
2069
|
u[+c][r] = i < 3 ? 1 : i;
|
|
2050
2070
|
}
|
|
@@ -2092,8 +2112,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2092
2112
|
var l = n[c], u = l[1], d = u & 7;
|
|
2093
2113
|
if ((u & 8) == o && !d == s) {
|
|
2094
2114
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
2095
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
2096
|
-
return
|
|
2115
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : Ft(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
2116
|
+
return It(t) === e;
|
|
2097
2117
|
} : i);
|
|
2098
2118
|
}
|
|
2099
2119
|
}
|
|
@@ -2115,39 +2135,30 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2115
2135
|
}
|
|
2116
2136
|
};
|
|
2117
2137
|
}
|
|
2118
|
-
var
|
|
2138
|
+
var zt = u({
|
|
2119
2139
|
name: "bleet-modal-trigger",
|
|
2120
2140
|
defaultProperty: "id"
|
|
2121
|
-
}),
|
|
2141
|
+
}), Bt, Vt = l(), Ht, Ut, Wt, Gt, Q;
|
|
2122
2142
|
(class {
|
|
2123
2143
|
logger;
|
|
2124
2144
|
element;
|
|
2125
2145
|
ea;
|
|
2126
2146
|
static {
|
|
2127
|
-
({e: [Ht, Ut, Wt, Gt
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
"url"
|
|
2137
|
-
],
|
|
2138
|
-
[
|
|
2139
|
-
Vt,
|
|
2140
|
-
0,
|
|
2141
|
-
"color"
|
|
2142
|
-
]
|
|
2143
|
-
]));
|
|
2147
|
+
({e: [Ht, Ut, Wt, Gt], c: [Q, Bt]} = Rt(this, [zt], [[
|
|
2148
|
+
l,
|
|
2149
|
+
0,
|
|
2150
|
+
"id"
|
|
2151
|
+
], [
|
|
2152
|
+
Vt,
|
|
2153
|
+
0,
|
|
2154
|
+
"url"
|
|
2155
|
+
]]));
|
|
2144
2156
|
}
|
|
2145
2157
|
constructor(e = m(o).scopeTo("bleet-modal-trigger"), t = m(s), n = m(a)) {
|
|
2146
2158
|
this.logger = e, this.element = t, this.ea = n, this.logger.trace("constructor");
|
|
2147
2159
|
}
|
|
2148
2160
|
id = Ht(this, "");
|
|
2149
2161
|
url = (Ut(this), Wt(this, ""));
|
|
2150
|
-
color = (Gt(this), Kt(this, "primary"));
|
|
2151
2162
|
attaching() {
|
|
2152
2163
|
this.logger.trace("attaching");
|
|
2153
2164
|
}
|
|
@@ -2160,21 +2171,20 @@ var Rt = u({
|
|
|
2160
2171
|
dispose() {
|
|
2161
2172
|
this.logger.trace("dispose");
|
|
2162
2173
|
}
|
|
2163
|
-
onClick = (
|
|
2174
|
+
onClick = (Gt(this), (e) => {
|
|
2164
2175
|
this.logger.trace("onClick", e), e.preventDefault(), this.ea.publish(E.Modal, {
|
|
2165
2176
|
action: M.Toggle,
|
|
2166
2177
|
id: this.id,
|
|
2167
|
-
url: this.url
|
|
2168
|
-
color: this.color
|
|
2178
|
+
url: this.url
|
|
2169
2179
|
});
|
|
2170
2180
|
});
|
|
2171
2181
|
static {
|
|
2172
|
-
|
|
2182
|
+
Bt();
|
|
2173
2183
|
}
|
|
2174
2184
|
});
|
|
2175
2185
|
//#endregion
|
|
2176
2186
|
//#region src/attributes/pager.ts
|
|
2177
|
-
function
|
|
2187
|
+
function Kt(e, t) {
|
|
2178
2188
|
if (typeof e != "object" || !e) return e;
|
|
2179
2189
|
var n = e[Symbol.toPrimitive];
|
|
2180
2190
|
if (n !== void 0) {
|
|
@@ -2184,15 +2194,15 @@ function Jt(e, t) {
|
|
|
2184
2194
|
}
|
|
2185
2195
|
return (t === "string" ? String : Number)(e);
|
|
2186
2196
|
}
|
|
2187
|
-
function
|
|
2188
|
-
var t =
|
|
2197
|
+
function qt(e) {
|
|
2198
|
+
var t = Kt(e, "string");
|
|
2189
2199
|
return typeof t == "symbol" ? t : String(t);
|
|
2190
2200
|
}
|
|
2191
|
-
function
|
|
2201
|
+
function Jt(e) {
|
|
2192
2202
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
2193
2203
|
return e;
|
|
2194
2204
|
}
|
|
2195
|
-
function
|
|
2205
|
+
function Yt(e, t, n) {
|
|
2196
2206
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
2197
2207
|
try {
|
|
2198
2208
|
Object.defineProperty(e, "name", {
|
|
@@ -2202,7 +2212,7 @@ function Zt(e, t, n) {
|
|
|
2202
2212
|
} catch {}
|
|
2203
2213
|
return e;
|
|
2204
2214
|
}
|
|
2205
|
-
function
|
|
2215
|
+
function Xt(e, t, n, r, i, a) {
|
|
2206
2216
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
2207
2217
|
function p(t, n, r) {
|
|
2208
2218
|
return function(i, a) {
|
|
@@ -2227,13 +2237,13 @@ function Qt(e, t, n, r, i, a) {
|
|
|
2227
2237
|
}
|
|
2228
2238
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
2229
2239
|
if (!b && (d ? (h || x ? E = {
|
|
2230
|
-
get:
|
|
2240
|
+
get: Yt(function() {
|
|
2231
2241
|
return y(this);
|
|
2232
2242
|
}, r, "get"),
|
|
2233
2243
|
set: function(e) {
|
|
2234
2244
|
t[4](this, e);
|
|
2235
2245
|
}
|
|
2236
|
-
} : E[O] = y, h ||
|
|
2246
|
+
} : E[O] = y, h || Yt(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
2237
2247
|
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");
|
|
2238
2248
|
u[+c][r] = i < 3 ? 1 : i;
|
|
2239
2249
|
}
|
|
@@ -2281,8 +2291,8 @@ function Qt(e, t, n, r, i, a) {
|
|
|
2281
2291
|
var l = n[c], u = l[1], d = u & 7;
|
|
2282
2292
|
if ((u & 8) == o && !d == s) {
|
|
2283
2293
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
2284
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
2285
|
-
return
|
|
2294
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : qt(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
2295
|
+
return Jt(t) === e;
|
|
2286
2296
|
} : i);
|
|
2287
2297
|
}
|
|
2288
2298
|
}
|
|
@@ -2304,13 +2314,13 @@ function Qt(e, t, n, r, i, a) {
|
|
|
2304
2314
|
}
|
|
2305
2315
|
};
|
|
2306
2316
|
}
|
|
2307
|
-
var
|
|
2317
|
+
var Zt = u("bleet-pager"), Qt, $;
|
|
2308
2318
|
(class {
|
|
2309
2319
|
logger;
|
|
2310
2320
|
element;
|
|
2311
2321
|
p;
|
|
2312
2322
|
static {
|
|
2313
|
-
({c: [
|
|
2323
|
+
({c: [$, Qt]} = Xt(this, [Zt], []));
|
|
2314
2324
|
}
|
|
2315
2325
|
constructor(e = m(o).scopeTo("bleet-pager"), t = m(s), n = m(c)) {
|
|
2316
2326
|
this.logger = e, this.element = t, this.p = n, this.logger.trace("constructor");
|
|
@@ -2331,12 +2341,12 @@ var $t = u("bleet-pager"), en, tn;
|
|
|
2331
2341
|
n && n.click();
|
|
2332
2342
|
};
|
|
2333
2343
|
static {
|
|
2334
|
-
|
|
2344
|
+
Qt();
|
|
2335
2345
|
}
|
|
2336
2346
|
});
|
|
2337
2347
|
//#endregion
|
|
2338
2348
|
//#region src/attributes/ajaxify-trigger.ts
|
|
2339
|
-
function
|
|
2349
|
+
function $t(e, t) {
|
|
2340
2350
|
if (typeof e != "object" || !e) return e;
|
|
2341
2351
|
var n = e[Symbol.toPrimitive];
|
|
2342
2352
|
if (n !== void 0) {
|
|
@@ -2346,15 +2356,15 @@ function nn(e, t) {
|
|
|
2346
2356
|
}
|
|
2347
2357
|
return (t === "string" ? String : Number)(e);
|
|
2348
2358
|
}
|
|
2349
|
-
function
|
|
2350
|
-
var t =
|
|
2359
|
+
function en(e) {
|
|
2360
|
+
var t = $t(e, "string");
|
|
2351
2361
|
return typeof t == "symbol" ? t : String(t);
|
|
2352
2362
|
}
|
|
2353
|
-
function
|
|
2363
|
+
function tn(e) {
|
|
2354
2364
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
2355
2365
|
return e;
|
|
2356
2366
|
}
|
|
2357
|
-
function
|
|
2367
|
+
function nn(e, t, n) {
|
|
2358
2368
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
2359
2369
|
try {
|
|
2360
2370
|
Object.defineProperty(e, "name", {
|
|
@@ -2364,7 +2374,7 @@ function on(e, t, n) {
|
|
|
2364
2374
|
} catch {}
|
|
2365
2375
|
return e;
|
|
2366
2376
|
}
|
|
2367
|
-
function
|
|
2377
|
+
function rn(e, t, n, r, i, a) {
|
|
2368
2378
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
2369
2379
|
function p(t, n, r) {
|
|
2370
2380
|
return function(i, a) {
|
|
@@ -2389,13 +2399,13 @@ function sn(e, t, n, r, i, a) {
|
|
|
2389
2399
|
}
|
|
2390
2400
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
2391
2401
|
if (!b && (d ? (h || x ? E = {
|
|
2392
|
-
get:
|
|
2402
|
+
get: nn(function() {
|
|
2393
2403
|
return y(this);
|
|
2394
2404
|
}, r, "get"),
|
|
2395
2405
|
set: function(e) {
|
|
2396
2406
|
t[4](this, e);
|
|
2397
2407
|
}
|
|
2398
|
-
} : E[O] = y, h ||
|
|
2408
|
+
} : E[O] = y, h || nn(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
2399
2409
|
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");
|
|
2400
2410
|
u[+c][r] = i < 3 ? 1 : i;
|
|
2401
2411
|
}
|
|
@@ -2443,8 +2453,8 @@ function sn(e, t, n, r, i, a) {
|
|
|
2443
2453
|
var l = n[c], u = l[1], d = u & 7;
|
|
2444
2454
|
if ((u & 8) == o && !d == s) {
|
|
2445
2455
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
2446
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
2447
|
-
return
|
|
2456
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : en(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
2457
|
+
return tn(t) === e;
|
|
2448
2458
|
} : i);
|
|
2449
2459
|
}
|
|
2450
2460
|
}
|
|
@@ -2466,10 +2476,10 @@ function sn(e, t, n, r, i, a) {
|
|
|
2466
2476
|
}
|
|
2467
2477
|
};
|
|
2468
2478
|
}
|
|
2469
|
-
var
|
|
2479
|
+
var an = u({
|
|
2470
2480
|
name: "bleet-ajaxify-trigger",
|
|
2471
2481
|
defaultProperty: "url"
|
|
2472
|
-
}),
|
|
2482
|
+
}), on, sn = l(), cn = l(), ln = l(), un = l(), dn = l(), fn = l(), pn = l(), mn = l(), hn, gn, _n, vn, yn, bn, xn, Sn, Cn, wn, Tn, En, Dn, On, kn, An, jn, Mn, Nn;
|
|
2473
2483
|
(class {
|
|
2474
2484
|
logger;
|
|
2475
2485
|
element;
|
|
@@ -2477,49 +2487,49 @@ var cn = u({
|
|
|
2477
2487
|
apiService;
|
|
2478
2488
|
p;
|
|
2479
2489
|
static {
|
|
2480
|
-
({e: [vn, yn, bn, xn, Sn, Cn, wn, Tn, En, Dn, On, kn, An, jn, Mn
|
|
2490
|
+
({e: [hn, gn, _n, vn, yn, bn, xn, Sn, Cn, wn, Tn, En, Dn, On, kn, An, jn, Mn], c: [Nn, on]} = rn(this, [an], [
|
|
2481
2491
|
[
|
|
2482
2492
|
l,
|
|
2483
2493
|
0,
|
|
2484
2494
|
"url"
|
|
2485
2495
|
],
|
|
2486
2496
|
[
|
|
2487
|
-
|
|
2497
|
+
sn,
|
|
2488
2498
|
0,
|
|
2489
2499
|
"verb"
|
|
2490
2500
|
],
|
|
2491
2501
|
[
|
|
2492
|
-
|
|
2502
|
+
cn,
|
|
2493
2503
|
0,
|
|
2494
2504
|
"event"
|
|
2495
2505
|
],
|
|
2496
2506
|
[
|
|
2497
|
-
|
|
2507
|
+
ln,
|
|
2498
2508
|
0,
|
|
2499
2509
|
"id"
|
|
2500
2510
|
],
|
|
2501
2511
|
[
|
|
2502
|
-
|
|
2512
|
+
un,
|
|
2503
2513
|
0,
|
|
2504
2514
|
"mode"
|
|
2505
2515
|
],
|
|
2506
2516
|
[
|
|
2507
|
-
|
|
2517
|
+
dn,
|
|
2508
2518
|
0,
|
|
2509
2519
|
"target"
|
|
2510
2520
|
],
|
|
2511
2521
|
[
|
|
2512
|
-
|
|
2522
|
+
fn,
|
|
2513
2523
|
0,
|
|
2514
2524
|
"method"
|
|
2515
2525
|
],
|
|
2516
2526
|
[
|
|
2517
|
-
|
|
2527
|
+
pn,
|
|
2518
2528
|
0,
|
|
2519
2529
|
"errorTitle"
|
|
2520
2530
|
],
|
|
2521
2531
|
[
|
|
2522
|
-
|
|
2532
|
+
mn,
|
|
2523
2533
|
0,
|
|
2524
2534
|
"errorContent"
|
|
2525
2535
|
]
|
|
@@ -2528,15 +2538,15 @@ var cn = u({
|
|
|
2528
2538
|
constructor(e = m(o).scopeTo("bleet-ajaxify-trigger"), t = m(s), r = m(a), i = m(n), l = m(c)) {
|
|
2529
2539
|
this.logger = e, this.element = t, this.ea = r, this.apiService = i, this.p = l, this.logger.trace("constructor");
|
|
2530
2540
|
}
|
|
2531
|
-
url =
|
|
2532
|
-
verb = (
|
|
2533
|
-
event = (
|
|
2534
|
-
id = (
|
|
2535
|
-
mode = (
|
|
2536
|
-
target = (
|
|
2537
|
-
method = (
|
|
2538
|
-
errorTitle = (
|
|
2539
|
-
errorContent = (
|
|
2541
|
+
url = hn(this, "");
|
|
2542
|
+
verb = (gn(this), _n(this, ""));
|
|
2543
|
+
event = (vn(this), yn(this, "click"));
|
|
2544
|
+
id = (bn(this), xn(this, ""));
|
|
2545
|
+
mode = (Sn(this), Cn(this, ee.Classic));
|
|
2546
|
+
target = (wn(this), Tn(this, ""));
|
|
2547
|
+
method = (En(this), Dn(this, "POST"));
|
|
2548
|
+
errorTitle = (On(this), kn(this, ""));
|
|
2549
|
+
errorContent = (An(this), jn(this, ""));
|
|
2540
2550
|
attached() {
|
|
2541
2551
|
this.logger.trace("attached", {
|
|
2542
2552
|
url: this.url,
|
|
@@ -2548,8 +2558,8 @@ var cn = u({
|
|
|
2548
2558
|
detaching() {
|
|
2549
2559
|
this.logger.trace("detaching"), this.element.removeEventListener(this.event, this.onTrigger);
|
|
2550
2560
|
}
|
|
2551
|
-
onTrigger = (
|
|
2552
|
-
e.preventDefault(), e.stopPropagation(), this.logger.trace("onTrigger", e), this.mode ===
|
|
2561
|
+
onTrigger = (Mn(this), (e) => {
|
|
2562
|
+
e.preventDefault(), e.stopPropagation(), this.logger.trace("onTrigger", e), this.mode === ee.PublishOnly ? this.onTriggerPublishOnly() : this.onTriggerClassic(e);
|
|
2553
2563
|
});
|
|
2554
2564
|
onTriggerPublishOnly() {
|
|
2555
2565
|
if (this.logger.debug("onTriggerPublishOnly", {
|
|
@@ -2590,14 +2600,14 @@ var cn = u({
|
|
|
2590
2600
|
let i = this.buildFormData(e);
|
|
2591
2601
|
this.apiService.url(n).fromMultipart(i).request(r).then((e) => {
|
|
2592
2602
|
this.logger.debug("response", e.body), e.body.element && this.updateElement(e.body.element), e.body.toast && this.ea.publish(E.Toaster, {
|
|
2593
|
-
action:
|
|
2603
|
+
action: F.Add,
|
|
2594
2604
|
toast: e.body.toast
|
|
2595
2605
|
}), e.body.ajaxify && this.ea.publish(E.Ajaxify, e.body.ajaxify);
|
|
2596
2606
|
}).catch((e) => {
|
|
2597
2607
|
this.logger.error("AJAX request failed", e), this.errorContent !== "" && this.ea.publish(E.Toaster, {
|
|
2598
|
-
action:
|
|
2608
|
+
action: F.Add,
|
|
2599
2609
|
toast: {
|
|
2600
|
-
|
|
2610
|
+
level: B.Danger,
|
|
2601
2611
|
title: this.errorTitle,
|
|
2602
2612
|
content: this.errorContent,
|
|
2603
2613
|
duration: 5e3
|
|
@@ -2644,12 +2654,12 @@ var cn = u({
|
|
|
2644
2654
|
for (let e = 0; e < r.length; e++) e < n.length && this.syncElement(n[e], r[e]);
|
|
2645
2655
|
}
|
|
2646
2656
|
static {
|
|
2647
|
-
|
|
2657
|
+
on();
|
|
2648
2658
|
}
|
|
2649
2659
|
});
|
|
2650
2660
|
//#endregion
|
|
2651
2661
|
//#region src/attributes/popover.ts
|
|
2652
|
-
function
|
|
2662
|
+
function Pn(e, t) {
|
|
2653
2663
|
if (typeof e != "object" || !e) return e;
|
|
2654
2664
|
var n = e[Symbol.toPrimitive];
|
|
2655
2665
|
if (n !== void 0) {
|
|
@@ -2659,15 +2669,15 @@ function Ln(e, t) {
|
|
|
2659
2669
|
}
|
|
2660
2670
|
return (t === "string" ? String : Number)(e);
|
|
2661
2671
|
}
|
|
2662
|
-
function
|
|
2663
|
-
var t =
|
|
2672
|
+
function Fn(e) {
|
|
2673
|
+
var t = Pn(e, "string");
|
|
2664
2674
|
return typeof t == "symbol" ? t : String(t);
|
|
2665
2675
|
}
|
|
2666
|
-
function
|
|
2676
|
+
function In(e) {
|
|
2667
2677
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
2668
2678
|
return e;
|
|
2669
2679
|
}
|
|
2670
|
-
function
|
|
2680
|
+
function Ln(e, t, n) {
|
|
2671
2681
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
2672
2682
|
try {
|
|
2673
2683
|
Object.defineProperty(e, "name", {
|
|
@@ -2677,7 +2687,7 @@ function Bn(e, t, n) {
|
|
|
2677
2687
|
} catch {}
|
|
2678
2688
|
return e;
|
|
2679
2689
|
}
|
|
2680
|
-
function
|
|
2690
|
+
function Rn(e, t, n, r, i, a) {
|
|
2681
2691
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
2682
2692
|
function p(t, n, r) {
|
|
2683
2693
|
return function(i, a) {
|
|
@@ -2702,13 +2712,13 @@ function Vn(e, t, n, r, i, a) {
|
|
|
2702
2712
|
}
|
|
2703
2713
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
2704
2714
|
if (!b && (d ? (h || x ? E = {
|
|
2705
|
-
get:
|
|
2715
|
+
get: Ln(function() {
|
|
2706
2716
|
return y(this);
|
|
2707
2717
|
}, r, "get"),
|
|
2708
2718
|
set: function(e) {
|
|
2709
2719
|
t[4](this, e);
|
|
2710
2720
|
}
|
|
2711
|
-
} : E[O] = y, h ||
|
|
2721
|
+
} : E[O] = y, h || Ln(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
2712
2722
|
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");
|
|
2713
2723
|
u[+c][r] = i < 3 ? 1 : i;
|
|
2714
2724
|
}
|
|
@@ -2756,8 +2766,8 @@ function Vn(e, t, n, r, i, a) {
|
|
|
2756
2766
|
var l = n[c], u = l[1], d = u & 7;
|
|
2757
2767
|
if ((u & 8) == o && !d == s) {
|
|
2758
2768
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
2759
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
2760
|
-
return
|
|
2769
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : Fn(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
2770
|
+
return In(t) === e;
|
|
2761
2771
|
} : i);
|
|
2762
2772
|
}
|
|
2763
2773
|
}
|
|
@@ -2779,17 +2789,17 @@ function Vn(e, t, n, r, i, a) {
|
|
|
2779
2789
|
}
|
|
2780
2790
|
};
|
|
2781
2791
|
}
|
|
2782
|
-
var
|
|
2792
|
+
var zn = u({
|
|
2783
2793
|
name: "bleet-popover",
|
|
2784
2794
|
defaultProperty: "id"
|
|
2785
|
-
}),
|
|
2795
|
+
}), Bn, Vn, Hn, Un;
|
|
2786
2796
|
(class {
|
|
2787
2797
|
logger;
|
|
2788
2798
|
element;
|
|
2789
2799
|
ea;
|
|
2790
2800
|
p;
|
|
2791
2801
|
static {
|
|
2792
|
-
({e: [
|
|
2802
|
+
({e: [Vn, Hn], c: [Un, Bn]} = Rn(this, [zn], [[
|
|
2793
2803
|
l,
|
|
2794
2804
|
0,
|
|
2795
2805
|
"id"
|
|
@@ -2798,8 +2808,8 @@ var Hn = u({
|
|
|
2798
2808
|
constructor(e = m(o).scopeTo("bleet-popover"), t = m(s), n = m(a), r = m(c)) {
|
|
2799
2809
|
this.logger = e, this.element = t, this.ea = n, this.p = r, this.logger.trace("constructor");
|
|
2800
2810
|
}
|
|
2801
|
-
id =
|
|
2802
|
-
isOpen = (
|
|
2811
|
+
id = Vn(this, "");
|
|
2812
|
+
isOpen = (Hn(this), !1);
|
|
2803
2813
|
subscription = null;
|
|
2804
2814
|
attaching() {
|
|
2805
2815
|
this.logger.trace("attaching"), this.subscription = this.ea.subscribe(E.Popover, this.onPopover);
|
|
@@ -2815,24 +2825,24 @@ var Hn = u({
|
|
|
2815
2825
|
}
|
|
2816
2826
|
onPopover = (e) => {
|
|
2817
2827
|
if (e.id === this.id) switch (e.action) {
|
|
2818
|
-
case
|
|
2828
|
+
case R.Open:
|
|
2819
2829
|
this.open(e.rect);
|
|
2820
2830
|
break;
|
|
2821
|
-
case
|
|
2831
|
+
case R.Close:
|
|
2822
2832
|
this.close();
|
|
2823
2833
|
break;
|
|
2824
|
-
case
|
|
2834
|
+
case R.Toggle: this.isOpen ? this.close() : this.open(e.rect);
|
|
2825
2835
|
}
|
|
2826
2836
|
};
|
|
2827
2837
|
open(e) {
|
|
2828
2838
|
this.isOpen = !0, w(this.element, "popover", "show"), e && this.positionAt(e), this.ea.publish(E.PopoverStatus, {
|
|
2829
|
-
status:
|
|
2839
|
+
status: z.Opened,
|
|
2830
2840
|
id: this.id
|
|
2831
2841
|
});
|
|
2832
2842
|
}
|
|
2833
2843
|
close() {
|
|
2834
2844
|
this.isOpen = !1, w(this.element, "popover", "hide"), this.ea.publish(E.PopoverStatus, {
|
|
2835
|
-
status:
|
|
2845
|
+
status: z.Closed,
|
|
2836
2846
|
id: this.id
|
|
2837
2847
|
});
|
|
2838
2848
|
}
|
|
@@ -2842,12 +2852,12 @@ var Hn = u({
|
|
|
2842
2852
|
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 = "";
|
|
2843
2853
|
}
|
|
2844
2854
|
static {
|
|
2845
|
-
|
|
2855
|
+
Bn();
|
|
2846
2856
|
}
|
|
2847
2857
|
});
|
|
2848
2858
|
//#endregion
|
|
2849
2859
|
//#region src/attributes/popover-trigger.ts
|
|
2850
|
-
function
|
|
2860
|
+
function Wn(e, t) {
|
|
2851
2861
|
if (typeof e != "object" || !e) return e;
|
|
2852
2862
|
var n = e[Symbol.toPrimitive];
|
|
2853
2863
|
if (n !== void 0) {
|
|
@@ -2857,15 +2867,15 @@ function qn(e, t) {
|
|
|
2857
2867
|
}
|
|
2858
2868
|
return (t === "string" ? String : Number)(e);
|
|
2859
2869
|
}
|
|
2860
|
-
function
|
|
2861
|
-
var t =
|
|
2870
|
+
function Gn(e) {
|
|
2871
|
+
var t = Wn(e, "string");
|
|
2862
2872
|
return typeof t == "symbol" ? t : String(t);
|
|
2863
2873
|
}
|
|
2864
|
-
function
|
|
2874
|
+
function Kn(e) {
|
|
2865
2875
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
2866
2876
|
return e;
|
|
2867
2877
|
}
|
|
2868
|
-
function
|
|
2878
|
+
function qn(e, t, n) {
|
|
2869
2879
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
2870
2880
|
try {
|
|
2871
2881
|
Object.defineProperty(e, "name", {
|
|
@@ -2875,7 +2885,7 @@ function Xn(e, t, n) {
|
|
|
2875
2885
|
} catch {}
|
|
2876
2886
|
return e;
|
|
2877
2887
|
}
|
|
2878
|
-
function
|
|
2888
|
+
function Jn(e, t, n, r, i, a) {
|
|
2879
2889
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
2880
2890
|
function p(t, n, r) {
|
|
2881
2891
|
return function(i, a) {
|
|
@@ -2900,13 +2910,13 @@ function Zn(e, t, n, r, i, a) {
|
|
|
2900
2910
|
}
|
|
2901
2911
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
2902
2912
|
if (!b && (d ? (h || x ? E = {
|
|
2903
|
-
get:
|
|
2913
|
+
get: qn(function() {
|
|
2904
2914
|
return y(this);
|
|
2905
2915
|
}, r, "get"),
|
|
2906
2916
|
set: function(e) {
|
|
2907
2917
|
t[4](this, e);
|
|
2908
2918
|
}
|
|
2909
|
-
} : E[O] = y, h ||
|
|
2919
|
+
} : E[O] = y, h || qn(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
2910
2920
|
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");
|
|
2911
2921
|
u[+c][r] = i < 3 ? 1 : i;
|
|
2912
2922
|
}
|
|
@@ -2954,8 +2964,8 @@ function Zn(e, t, n, r, i, a) {
|
|
|
2954
2964
|
var l = n[c], u = l[1], d = u & 7;
|
|
2955
2965
|
if ((u & 8) == o && !d == s) {
|
|
2956
2966
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
2957
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
2958
|
-
return
|
|
2967
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : Gn(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
2968
|
+
return Kn(t) === e;
|
|
2959
2969
|
} : i);
|
|
2960
2970
|
}
|
|
2961
2971
|
}
|
|
@@ -2977,21 +2987,21 @@ function Zn(e, t, n, r, i, a) {
|
|
|
2977
2987
|
}
|
|
2978
2988
|
};
|
|
2979
2989
|
}
|
|
2980
|
-
var
|
|
2990
|
+
var Yn = u({
|
|
2981
2991
|
name: "bleet-popover-trigger",
|
|
2982
2992
|
defaultProperty: "id"
|
|
2983
|
-
}),
|
|
2993
|
+
}), Xn, Zn = l(), Qn, $n, er, tr, nr;
|
|
2984
2994
|
(class {
|
|
2985
2995
|
logger;
|
|
2986
2996
|
element;
|
|
2987
2997
|
ea;
|
|
2988
2998
|
static {
|
|
2989
|
-
({e: [
|
|
2999
|
+
({e: [Qn, $n, er, tr], c: [nr, Xn]} = Jn(this, [Yn], [[
|
|
2990
3000
|
l,
|
|
2991
3001
|
0,
|
|
2992
3002
|
"id"
|
|
2993
3003
|
], [
|
|
2994
|
-
|
|
3004
|
+
Zn,
|
|
2995
3005
|
0,
|
|
2996
3006
|
"absolute"
|
|
2997
3007
|
]]));
|
|
@@ -2999,8 +3009,8 @@ var Qn = u({
|
|
|
2999
3009
|
constructor(e = m(o).scopeTo("bleet-popover-trigger"), t = m(s), n = m(a)) {
|
|
3000
3010
|
this.logger = e, this.element = t, this.ea = n, this.logger.trace("constructor");
|
|
3001
3011
|
}
|
|
3002
|
-
id =
|
|
3003
|
-
absolute = (
|
|
3012
|
+
id = Qn(this, "");
|
|
3013
|
+
absolute = ($n(this), er(this, !0));
|
|
3004
3014
|
attached() {
|
|
3005
3015
|
this.logger.trace("attached"), this.element.addEventListener("mouseenter", this.onMouseEnter), this.element.addEventListener("mouseleave", this.onMouseLeave);
|
|
3006
3016
|
}
|
|
@@ -3010,43 +3020,43 @@ var Qn = u({
|
|
|
3010
3020
|
dispose() {
|
|
3011
3021
|
this.logger.trace("dispose");
|
|
3012
3022
|
}
|
|
3013
|
-
onMouseEnter = (
|
|
3023
|
+
onMouseEnter = (tr(this), () => {
|
|
3014
3024
|
this.ea.publish(E.Popover, {
|
|
3015
3025
|
id: this.id,
|
|
3016
|
-
action:
|
|
3026
|
+
action: R.Open,
|
|
3017
3027
|
rect: this.absolute ? this.element.getBoundingClientRect() : void 0
|
|
3018
3028
|
});
|
|
3019
3029
|
});
|
|
3020
3030
|
onMouseLeave = () => {
|
|
3021
3031
|
this.ea.publish(E.Popover, {
|
|
3022
3032
|
id: this.id,
|
|
3023
|
-
action:
|
|
3033
|
+
action: R.Close
|
|
3024
3034
|
});
|
|
3025
3035
|
};
|
|
3026
3036
|
static {
|
|
3027
|
-
|
|
3037
|
+
Xn();
|
|
3028
3038
|
}
|
|
3029
3039
|
});
|
|
3030
3040
|
//#endregion
|
|
3031
3041
|
//#region src/utils/toaster.ts
|
|
3032
|
-
function
|
|
3042
|
+
function rr(e) {
|
|
3033
3043
|
return {
|
|
3034
3044
|
...e,
|
|
3035
3045
|
id: e.id || `toast-${Math.random().toString(36).substring(2, 15)}`,
|
|
3036
|
-
|
|
3037
|
-
icon: e.icon ||
|
|
3046
|
+
level: e.level || B.Info,
|
|
3047
|
+
icon: e.icon || V.Info,
|
|
3038
3048
|
duration: e.duration || 0
|
|
3039
3049
|
};
|
|
3040
3050
|
}
|
|
3041
|
-
function
|
|
3051
|
+
function ir(e) {
|
|
3042
3052
|
e.hasAttribute("popover") === !0 && (e.matches(":popover-open") === !0 && e.hidePopover(), e.showPopover());
|
|
3043
3053
|
}
|
|
3044
|
-
function
|
|
3054
|
+
function ar(e) {
|
|
3045
3055
|
e.hasAttribute("popover") === !0 && e.matches(":popover-open") === !0 && e.hidePopover();
|
|
3046
3056
|
}
|
|
3047
3057
|
//#endregion
|
|
3048
3058
|
//#region src/attributes/toaster.ts
|
|
3049
|
-
function
|
|
3059
|
+
function or(e, t) {
|
|
3050
3060
|
if (typeof e != "object" || !e) return e;
|
|
3051
3061
|
var n = e[Symbol.toPrimitive];
|
|
3052
3062
|
if (n !== void 0) {
|
|
@@ -3056,15 +3066,15 @@ function lr(e, t) {
|
|
|
3056
3066
|
}
|
|
3057
3067
|
return (t === "string" ? String : Number)(e);
|
|
3058
3068
|
}
|
|
3059
|
-
function
|
|
3060
|
-
var t =
|
|
3069
|
+
function sr(e) {
|
|
3070
|
+
var t = or(e, "string");
|
|
3061
3071
|
return typeof t == "symbol" ? t : String(t);
|
|
3062
3072
|
}
|
|
3063
|
-
function
|
|
3073
|
+
function cr(e) {
|
|
3064
3074
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
3065
3075
|
return e;
|
|
3066
3076
|
}
|
|
3067
|
-
function
|
|
3077
|
+
function lr(e, t, n) {
|
|
3068
3078
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
3069
3079
|
try {
|
|
3070
3080
|
Object.defineProperty(e, "name", {
|
|
@@ -3074,7 +3084,7 @@ function fr(e, t, n) {
|
|
|
3074
3084
|
} catch {}
|
|
3075
3085
|
return e;
|
|
3076
3086
|
}
|
|
3077
|
-
function
|
|
3087
|
+
function ur(e, t, n, r, i, a) {
|
|
3078
3088
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
3079
3089
|
function p(t, n, r) {
|
|
3080
3090
|
return function(i, a) {
|
|
@@ -3099,13 +3109,13 @@ function pr(e, t, n, r, i, a) {
|
|
|
3099
3109
|
}
|
|
3100
3110
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
3101
3111
|
if (!b && (d ? (h || x ? E = {
|
|
3102
|
-
get:
|
|
3112
|
+
get: lr(function() {
|
|
3103
3113
|
return y(this);
|
|
3104
3114
|
}, r, "get"),
|
|
3105
3115
|
set: function(e) {
|
|
3106
3116
|
t[4](this, e);
|
|
3107
3117
|
}
|
|
3108
|
-
} : E[O] = y, h ||
|
|
3118
|
+
} : E[O] = y, h || lr(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
3109
3119
|
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");
|
|
3110
3120
|
u[+c][r] = i < 3 ? 1 : i;
|
|
3111
3121
|
}
|
|
@@ -3153,8 +3163,8 @@ function pr(e, t, n, r, i, a) {
|
|
|
3153
3163
|
var l = n[c], u = l[1], d = u & 7;
|
|
3154
3164
|
if ((u & 8) == o && !d == s) {
|
|
3155
3165
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
3156
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
3157
|
-
return
|
|
3166
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : sr(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
3167
|
+
return cr(t) === e;
|
|
3158
3168
|
} : i);
|
|
3159
3169
|
}
|
|
3160
3170
|
}
|
|
@@ -3176,7 +3186,7 @@ function pr(e, t, n, r, i, a) {
|
|
|
3176
3186
|
}
|
|
3177
3187
|
};
|
|
3178
3188
|
}
|
|
3179
|
-
var
|
|
3189
|
+
var dr = u("bleet-toaster"), fr, pr;
|
|
3180
3190
|
(class {
|
|
3181
3191
|
logger;
|
|
3182
3192
|
element;
|
|
@@ -3184,7 +3194,7 @@ var mr = u("bleet-toaster"), hr, gr;
|
|
|
3184
3194
|
p;
|
|
3185
3195
|
transitionService;
|
|
3186
3196
|
static {
|
|
3187
|
-
({c: [
|
|
3197
|
+
({c: [pr, fr]} = ur(this, [dr], []));
|
|
3188
3198
|
}
|
|
3189
3199
|
constructor(e = m(o).scopeTo("bleet-toaster"), t = m(s), n = m(a), r = m(c), i = m(b)) {
|
|
3190
3200
|
this.logger = e, this.element = t, this.ea = n, this.p = r, this.transitionService = i, this.logger.trace("constructor");
|
|
@@ -3200,14 +3210,14 @@ var mr = u("bleet-toaster"), hr, gr;
|
|
|
3200
3210
|
});
|
|
3201
3211
|
}
|
|
3202
3212
|
onToasterEvent = (e) => {
|
|
3203
|
-
if (this.logger.trace("onToasterEvent", e), e.action ===
|
|
3204
|
-
let t =
|
|
3213
|
+
if (this.logger.trace("onToasterEvent", e), e.action === F.Add && e.toast) {
|
|
3214
|
+
let t = rr(e.toast);
|
|
3205
3215
|
this.toasts.has(t.id) || this.add(t);
|
|
3206
|
-
} else e.action ===
|
|
3216
|
+
} else e.action === F.Remove && e.toast?.id && this.close(e.toast.id);
|
|
3207
3217
|
};
|
|
3208
3218
|
add(e) {
|
|
3209
|
-
let t = this.element.querySelector(`template[data-toaster="${e.
|
|
3210
|
-
if (t === null) this.logger.warn(`No toast template for
|
|
3219
|
+
let t = this.element.querySelector(`template[data-toaster="${e.level}"]`);
|
|
3220
|
+
if (t === null) this.logger.warn(`No toast template for level ${e.level}`);
|
|
3211
3221
|
else {
|
|
3212
3222
|
let n = t.content.cloneNode(!0).firstElementChild, r = this.element.querySelector(`template[data-toaster="icon-${e.icon}"]`), i = n.querySelector("[data-toaster=\"icon\"]");
|
|
3213
3223
|
r !== null && i !== null && i.appendChild(r.content.cloneNode(!0));
|
|
@@ -3221,7 +3231,7 @@ var mr = u("bleet-toaster"), hr, gr;
|
|
|
3221
3231
|
element: n,
|
|
3222
3232
|
closing: !1
|
|
3223
3233
|
};
|
|
3224
|
-
this.toasts.set(e.id, s), this.element.appendChild(n),
|
|
3234
|
+
this.toasts.set(e.id, s), this.element.appendChild(n), ir(this.element), this.logger.debug(`Toast added with ID: ${e.id}`), this.transitionService.run(n, (t) => {
|
|
3225
3235
|
e.duration > 0 && (s.closeTimeout = this.p.setTimeout(() => {
|
|
3226
3236
|
this.close(e.id);
|
|
3227
3237
|
}, e.duration)), w(t, "toaster", "show");
|
|
@@ -3233,16 +3243,16 @@ var mr = u("bleet-toaster"), hr, gr;
|
|
|
3233
3243
|
t !== void 0 && t.closing === !1 && (t.closing = !0, t.closeTimeout !== void 0 && this.p.clearTimeout(t.closeTimeout), this.transitionService.run(t.element, (e) => {
|
|
3234
3244
|
w(e, "toaster", "hide");
|
|
3235
3245
|
}, (t) => {
|
|
3236
|
-
t.remove(), this.toasts.delete(e), this.toasts.size === 0 &&
|
|
3246
|
+
t.remove(), this.toasts.delete(e), this.toasts.size === 0 && ar(this.element), this.logger.debug(`Toast removed with ID: ${e}`);
|
|
3237
3247
|
}));
|
|
3238
3248
|
}
|
|
3239
3249
|
static {
|
|
3240
|
-
|
|
3250
|
+
fr();
|
|
3241
3251
|
}
|
|
3242
3252
|
});
|
|
3243
3253
|
//#endregion
|
|
3244
3254
|
//#region src/attributes/toast.ts
|
|
3245
|
-
function
|
|
3255
|
+
function mr(e, t) {
|
|
3246
3256
|
if (typeof e != "object" || !e) return e;
|
|
3247
3257
|
var n = e[Symbol.toPrimitive];
|
|
3248
3258
|
if (n !== void 0) {
|
|
@@ -3252,15 +3262,15 @@ function _r(e, t) {
|
|
|
3252
3262
|
}
|
|
3253
3263
|
return (t === "string" ? String : Number)(e);
|
|
3254
3264
|
}
|
|
3255
|
-
function
|
|
3256
|
-
var t =
|
|
3265
|
+
function hr(e) {
|
|
3266
|
+
var t = mr(e, "string");
|
|
3257
3267
|
return typeof t == "symbol" ? t : String(t);
|
|
3258
3268
|
}
|
|
3259
|
-
function
|
|
3269
|
+
function gr(e) {
|
|
3260
3270
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
3261
3271
|
return e;
|
|
3262
3272
|
}
|
|
3263
|
-
function
|
|
3273
|
+
function _r(e, t, n) {
|
|
3264
3274
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
3265
3275
|
try {
|
|
3266
3276
|
Object.defineProperty(e, "name", {
|
|
@@ -3270,7 +3280,7 @@ function br(e, t, n) {
|
|
|
3270
3280
|
} catch {}
|
|
3271
3281
|
return e;
|
|
3272
3282
|
}
|
|
3273
|
-
function
|
|
3283
|
+
function vr(e, t, n, r, i, a) {
|
|
3274
3284
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
3275
3285
|
function p(t, n, r) {
|
|
3276
3286
|
return function(i, a) {
|
|
@@ -3295,13 +3305,13 @@ function xr(e, t, n, r, i, a) {
|
|
|
3295
3305
|
}
|
|
3296
3306
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
3297
3307
|
if (!b && (d ? (h || x ? E = {
|
|
3298
|
-
get:
|
|
3308
|
+
get: _r(function() {
|
|
3299
3309
|
return y(this);
|
|
3300
3310
|
}, r, "get"),
|
|
3301
3311
|
set: function(e) {
|
|
3302
3312
|
t[4](this, e);
|
|
3303
3313
|
}
|
|
3304
|
-
} : E[O] = y, h ||
|
|
3314
|
+
} : E[O] = y, h || _r(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
3305
3315
|
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");
|
|
3306
3316
|
u[+c][r] = i < 3 ? 1 : i;
|
|
3307
3317
|
}
|
|
@@ -3349,8 +3359,8 @@ function xr(e, t, n, r, i, a) {
|
|
|
3349
3359
|
var l = n[c], u = l[1], d = u & 7;
|
|
3350
3360
|
if ((u & 8) == o && !d == s) {
|
|
3351
3361
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
3352
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
3353
|
-
return
|
|
3362
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : hr(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
3363
|
+
return gr(t) === e;
|
|
3354
3364
|
} : i);
|
|
3355
3365
|
}
|
|
3356
3366
|
}
|
|
@@ -3372,43 +3382,43 @@ function xr(e, t, n, r, i, a) {
|
|
|
3372
3382
|
}
|
|
3373
3383
|
};
|
|
3374
3384
|
}
|
|
3375
|
-
var
|
|
3385
|
+
var yr = u({
|
|
3376
3386
|
name: "bleet-toast",
|
|
3377
3387
|
defaultProperty: "id"
|
|
3378
|
-
}),
|
|
3388
|
+
}), br, xr = l(), Sr = l(), Cr = l(), wr = l(), Tr = l(), Er, Dr, Or, kr, Ar, jr, Mr, Nr, Pr, Fr, Ir, Lr, Rr;
|
|
3379
3389
|
(class {
|
|
3380
3390
|
logger;
|
|
3381
3391
|
ea;
|
|
3382
3392
|
p;
|
|
3383
3393
|
static {
|
|
3384
|
-
({e: [kr, Ar, jr, Mr, Nr, Pr, Fr, Ir, Lr
|
|
3394
|
+
({e: [Er, Dr, Or, kr, Ar, jr, Mr, Nr, Pr, Fr, Ir, Lr], c: [Rr, br]} = vr(this, [yr], [
|
|
3385
3395
|
[
|
|
3386
3396
|
l,
|
|
3387
3397
|
0,
|
|
3388
3398
|
"id"
|
|
3389
3399
|
],
|
|
3390
3400
|
[
|
|
3391
|
-
|
|
3401
|
+
xr,
|
|
3392
3402
|
0,
|
|
3393
|
-
"
|
|
3403
|
+
"level"
|
|
3394
3404
|
],
|
|
3395
3405
|
[
|
|
3396
|
-
|
|
3406
|
+
Sr,
|
|
3397
3407
|
0,
|
|
3398
3408
|
"icon"
|
|
3399
3409
|
],
|
|
3400
3410
|
[
|
|
3401
|
-
|
|
3411
|
+
Cr,
|
|
3402
3412
|
0,
|
|
3403
3413
|
"title"
|
|
3404
3414
|
],
|
|
3405
3415
|
[
|
|
3406
|
-
|
|
3416
|
+
wr,
|
|
3407
3417
|
0,
|
|
3408
3418
|
"content"
|
|
3409
3419
|
],
|
|
3410
3420
|
[
|
|
3411
|
-
|
|
3421
|
+
Tr,
|
|
3412
3422
|
0,
|
|
3413
3423
|
"duration"
|
|
3414
3424
|
]
|
|
@@ -3417,25 +3427,25 @@ var Sr = u({
|
|
|
3417
3427
|
constructor(e = m(o).scopeTo("bleet-toast"), t = m(a), n = m(c)) {
|
|
3418
3428
|
this.logger = e, this.ea = t, this.p = n, this.logger.trace("constructor");
|
|
3419
3429
|
}
|
|
3420
|
-
id =
|
|
3421
|
-
|
|
3422
|
-
icon = (
|
|
3423
|
-
title = (
|
|
3424
|
-
content = (
|
|
3425
|
-
duration = (
|
|
3430
|
+
id = Er(this, "");
|
|
3431
|
+
level = (Dr(this), Or(this, B.Info));
|
|
3432
|
+
icon = (kr(this), Ar(this, V.Info));
|
|
3433
|
+
title = (jr(this), Mr(this, ""));
|
|
3434
|
+
content = (Nr(this), Pr(this, ""));
|
|
3435
|
+
duration = (Fr(this), Ir(this, 0));
|
|
3426
3436
|
attached() {
|
|
3427
3437
|
this.logger.trace("attached"), this.p.document.readyState === "loading" ? this.p.document.addEventListener("DOMContentLoaded", () => {
|
|
3428
3438
|
this.publish();
|
|
3429
3439
|
}, { once: !0 }) : this.publish();
|
|
3430
3440
|
}
|
|
3431
|
-
publish = (
|
|
3441
|
+
publish = (Lr(this), () => {
|
|
3432
3442
|
this.logger.trace("publish"), p(() => {
|
|
3433
3443
|
this.ea.publish(E.Toaster, {
|
|
3434
|
-
action:
|
|
3444
|
+
action: F.Add,
|
|
3435
3445
|
toast: {
|
|
3436
3446
|
id: this.id,
|
|
3437
3447
|
duration: this.duration,
|
|
3438
|
-
|
|
3448
|
+
level: this.level,
|
|
3439
3449
|
icon: this.icon,
|
|
3440
3450
|
title: this.title,
|
|
3441
3451
|
content: this.content
|
|
@@ -3444,12 +3454,12 @@ var Sr = u({
|
|
|
3444
3454
|
});
|
|
3445
3455
|
});
|
|
3446
3456
|
static {
|
|
3447
|
-
|
|
3457
|
+
br();
|
|
3448
3458
|
}
|
|
3449
3459
|
});
|
|
3450
3460
|
//#endregion
|
|
3451
3461
|
//#region src/attributes/overlay.ts
|
|
3452
|
-
function
|
|
3462
|
+
function zr(e, t) {
|
|
3453
3463
|
if (typeof e != "object" || !e) return e;
|
|
3454
3464
|
var n = e[Symbol.toPrimitive];
|
|
3455
3465
|
if (n !== void 0) {
|
|
@@ -3459,15 +3469,15 @@ function Hr(e, t) {
|
|
|
3459
3469
|
}
|
|
3460
3470
|
return (t === "string" ? String : Number)(e);
|
|
3461
3471
|
}
|
|
3462
|
-
function
|
|
3463
|
-
var t =
|
|
3472
|
+
function Br(e) {
|
|
3473
|
+
var t = zr(e, "string");
|
|
3464
3474
|
return typeof t == "symbol" ? t : String(t);
|
|
3465
3475
|
}
|
|
3466
|
-
function
|
|
3476
|
+
function Vr(e) {
|
|
3467
3477
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
3468
3478
|
return e;
|
|
3469
3479
|
}
|
|
3470
|
-
function
|
|
3480
|
+
function Hr(e, t, n) {
|
|
3471
3481
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
3472
3482
|
try {
|
|
3473
3483
|
Object.defineProperty(e, "name", {
|
|
@@ -3477,7 +3487,7 @@ function Gr(e, t, n) {
|
|
|
3477
3487
|
} catch {}
|
|
3478
3488
|
return e;
|
|
3479
3489
|
}
|
|
3480
|
-
function
|
|
3490
|
+
function Ur(e, t, n, r, i, a) {
|
|
3481
3491
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
3482
3492
|
function p(t, n, r) {
|
|
3483
3493
|
return function(i, a) {
|
|
@@ -3502,13 +3512,13 @@ function Kr(e, t, n, r, i, a) {
|
|
|
3502
3512
|
}
|
|
3503
3513
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
3504
3514
|
if (!b && (d ? (h || x ? E = {
|
|
3505
|
-
get:
|
|
3515
|
+
get: Hr(function() {
|
|
3506
3516
|
return y(this);
|
|
3507
3517
|
}, r, "get"),
|
|
3508
3518
|
set: function(e) {
|
|
3509
3519
|
t[4](this, e);
|
|
3510
3520
|
}
|
|
3511
|
-
} : E[O] = y, h ||
|
|
3521
|
+
} : E[O] = y, h || Hr(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
3512
3522
|
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");
|
|
3513
3523
|
u[+c][r] = i < 3 ? 1 : i;
|
|
3514
3524
|
}
|
|
@@ -3556,8 +3566,8 @@ function Kr(e, t, n, r, i, a) {
|
|
|
3556
3566
|
var l = n[c], u = l[1], d = u & 7;
|
|
3557
3567
|
if ((u & 8) == o && !d == s) {
|
|
3558
3568
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
3559
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
3560
|
-
return
|
|
3569
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : Br(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
3570
|
+
return Vr(t) === e;
|
|
3561
3571
|
} : i);
|
|
3562
3572
|
}
|
|
3563
3573
|
}
|
|
@@ -3579,7 +3589,7 @@ function Kr(e, t, n, r, i, a) {
|
|
|
3579
3589
|
}
|
|
3580
3590
|
};
|
|
3581
3591
|
}
|
|
3582
|
-
var
|
|
3592
|
+
var Wr = u("bleet-overlay"), Gr, Kr;
|
|
3583
3593
|
(class {
|
|
3584
3594
|
logger;
|
|
3585
3595
|
element;
|
|
@@ -3587,7 +3597,7 @@ var qr = u("bleet-overlay"), Jr, Yr;
|
|
|
3587
3597
|
p;
|
|
3588
3598
|
transitionService;
|
|
3589
3599
|
static {
|
|
3590
|
-
({c: [
|
|
3600
|
+
({c: [Kr, Gr]} = Ur(this, [Wr], []));
|
|
3591
3601
|
}
|
|
3592
3602
|
constructor(e = m(o).scopeTo("bleet-overlay"), t = m(s), n = m(a), r = m(c), i = m(b)) {
|
|
3593
3603
|
this.logger = e, this.element = t, this.ea = n, this.p = r, this.transitionService = i, this.logger.trace("constructor");
|
|
@@ -3625,12 +3635,12 @@ var qr = u("bleet-overlay"), Jr, Yr;
|
|
|
3625
3635
|
this.logger.trace("onClickOverlay", e), e.preventDefault(), this.close(!0);
|
|
3626
3636
|
};
|
|
3627
3637
|
static {
|
|
3628
|
-
|
|
3638
|
+
Gr();
|
|
3629
3639
|
}
|
|
3630
3640
|
});
|
|
3631
3641
|
//#endregion
|
|
3632
3642
|
//#region src/attributes/focus.ts
|
|
3633
|
-
function
|
|
3643
|
+
function qr(e, t) {
|
|
3634
3644
|
if (typeof e != "object" || !e) return e;
|
|
3635
3645
|
var n = e[Symbol.toPrimitive];
|
|
3636
3646
|
if (n !== void 0) {
|
|
@@ -3640,15 +3650,15 @@ function Xr(e, t) {
|
|
|
3640
3650
|
}
|
|
3641
3651
|
return (t === "string" ? String : Number)(e);
|
|
3642
3652
|
}
|
|
3643
|
-
function
|
|
3644
|
-
var t =
|
|
3653
|
+
function Jr(e) {
|
|
3654
|
+
var t = qr(e, "string");
|
|
3645
3655
|
return typeof t == "symbol" ? t : String(t);
|
|
3646
3656
|
}
|
|
3647
|
-
function
|
|
3657
|
+
function Yr(e) {
|
|
3648
3658
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
3649
3659
|
return e;
|
|
3650
3660
|
}
|
|
3651
|
-
function
|
|
3661
|
+
function Xr(e, t, n) {
|
|
3652
3662
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
3653
3663
|
try {
|
|
3654
3664
|
Object.defineProperty(e, "name", {
|
|
@@ -3658,7 +3668,7 @@ function $r(e, t, n) {
|
|
|
3658
3668
|
} catch {}
|
|
3659
3669
|
return e;
|
|
3660
3670
|
}
|
|
3661
|
-
function
|
|
3671
|
+
function Zr(e, t, n, r, i, a) {
|
|
3662
3672
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
3663
3673
|
function p(t, n, r) {
|
|
3664
3674
|
return function(i, a) {
|
|
@@ -3683,13 +3693,13 @@ function ei(e, t, n, r, i, a) {
|
|
|
3683
3693
|
}
|
|
3684
3694
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
3685
3695
|
if (!b && (d ? (h || x ? E = {
|
|
3686
|
-
get:
|
|
3696
|
+
get: Xr(function() {
|
|
3687
3697
|
return y(this);
|
|
3688
3698
|
}, r, "get"),
|
|
3689
3699
|
set: function(e) {
|
|
3690
3700
|
t[4](this, e);
|
|
3691
3701
|
}
|
|
3692
|
-
} : E[O] = y, h ||
|
|
3702
|
+
} : E[O] = y, h || Xr(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
3693
3703
|
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");
|
|
3694
3704
|
u[+c][r] = i < 3 ? 1 : i;
|
|
3695
3705
|
}
|
|
@@ -3737,8 +3747,8 @@ function ei(e, t, n, r, i, a) {
|
|
|
3737
3747
|
var l = n[c], u = l[1], d = u & 7;
|
|
3738
3748
|
if ((u & 8) == o && !d == s) {
|
|
3739
3749
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
3740
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
3741
|
-
return
|
|
3750
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : Jr(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
3751
|
+
return Yr(t) === e;
|
|
3742
3752
|
} : i);
|
|
3743
3753
|
}
|
|
3744
3754
|
}
|
|
@@ -3760,13 +3770,13 @@ function ei(e, t, n, r, i, a) {
|
|
|
3760
3770
|
}
|
|
3761
3771
|
};
|
|
3762
3772
|
}
|
|
3763
|
-
var
|
|
3773
|
+
var Qr = u("bleet-focus"), $r, ei;
|
|
3764
3774
|
(class {
|
|
3765
3775
|
logger;
|
|
3766
3776
|
element;
|
|
3767
3777
|
p;
|
|
3768
3778
|
static {
|
|
3769
|
-
({c: [
|
|
3779
|
+
({c: [ei, $r]} = Zr(this, [Qr], []));
|
|
3770
3780
|
}
|
|
3771
3781
|
constructor(e = m(o).scopeTo("bleet-focus"), t = m(s), n = m(c)) {
|
|
3772
3782
|
this.logger = e, this.element = t, this.p = n, this.logger.trace("constructor");
|
|
@@ -3777,30 +3787,30 @@ var ti = u("bleet-focus"), ni, ri;
|
|
|
3777
3787
|
});
|
|
3778
3788
|
}
|
|
3779
3789
|
static {
|
|
3780
|
-
|
|
3790
|
+
$r();
|
|
3781
3791
|
}
|
|
3782
3792
|
});
|
|
3783
3793
|
//#endregion
|
|
3784
3794
|
//#region src/components/bleet-ajaxify.$au.ts
|
|
3785
|
-
var
|
|
3786
|
-
bindables: () =>
|
|
3787
|
-
default: () =>
|
|
3788
|
-
dependencies: () =>
|
|
3789
|
-
name: () =>
|
|
3790
|
-
register: () =>
|
|
3791
|
-
template: () =>
|
|
3792
|
-
}),
|
|
3793
|
-
function
|
|
3794
|
-
|
|
3795
|
-
name:
|
|
3796
|
-
template:
|
|
3797
|
-
dependencies:
|
|
3798
|
-
bindables:
|
|
3799
|
-
}), e.register(
|
|
3795
|
+
var ti = /* @__PURE__ */ _({
|
|
3796
|
+
bindables: () => ai,
|
|
3797
|
+
default: () => ri,
|
|
3798
|
+
dependencies: () => ii,
|
|
3799
|
+
name: () => ni,
|
|
3800
|
+
register: () => si,
|
|
3801
|
+
template: () => ri
|
|
3802
|
+
}), ni = "bleet-ajaxify", ri = "<template>\n <au-slot if.bind=\"!ajaxedView\"></au-slot>\n <au-compose if.bind=\"ajaxedView\" template.bind=\"ajaxedView\"></au-compose>\n</template>\n", ii = [], ai = {}, oi;
|
|
3803
|
+
function si(e) {
|
|
3804
|
+
oi ||= h.define({
|
|
3805
|
+
name: ni,
|
|
3806
|
+
template: ri,
|
|
3807
|
+
dependencies: ii,
|
|
3808
|
+
bindables: ai
|
|
3809
|
+
}), e.register(oi);
|
|
3800
3810
|
}
|
|
3801
3811
|
//#endregion
|
|
3802
3812
|
//#region src/components/bleet-ajaxify.ts
|
|
3803
|
-
function
|
|
3813
|
+
function ci(e, t) {
|
|
3804
3814
|
if (typeof e != "object" || !e) return e;
|
|
3805
3815
|
var n = e[Symbol.toPrimitive];
|
|
3806
3816
|
if (n !== void 0) {
|
|
@@ -3810,15 +3820,15 @@ function di(e, t) {
|
|
|
3810
3820
|
}
|
|
3811
3821
|
return (t === "string" ? String : Number)(e);
|
|
3812
3822
|
}
|
|
3813
|
-
function
|
|
3814
|
-
var t =
|
|
3823
|
+
function li(e) {
|
|
3824
|
+
var t = ci(e, "string");
|
|
3815
3825
|
return typeof t == "symbol" ? t : String(t);
|
|
3816
3826
|
}
|
|
3817
|
-
function
|
|
3827
|
+
function ui(e) {
|
|
3818
3828
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
3819
3829
|
return e;
|
|
3820
3830
|
}
|
|
3821
|
-
function
|
|
3831
|
+
function di(e, t, n) {
|
|
3822
3832
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
3823
3833
|
try {
|
|
3824
3834
|
Object.defineProperty(e, "name", {
|
|
@@ -3828,7 +3838,7 @@ function mi(e, t, n) {
|
|
|
3828
3838
|
} catch {}
|
|
3829
3839
|
return e;
|
|
3830
3840
|
}
|
|
3831
|
-
function
|
|
3841
|
+
function fi(e, t, n, r, i, a) {
|
|
3832
3842
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
3833
3843
|
function p(t, n, r) {
|
|
3834
3844
|
return function(i, a) {
|
|
@@ -3853,13 +3863,13 @@ function hi(e, t, n, r, i, a) {
|
|
|
3853
3863
|
}
|
|
3854
3864
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
3855
3865
|
if (!b && (d ? (h || x ? E = {
|
|
3856
|
-
get:
|
|
3866
|
+
get: di(function() {
|
|
3857
3867
|
return y(this);
|
|
3858
3868
|
}, r, "get"),
|
|
3859
3869
|
set: function(e) {
|
|
3860
3870
|
t[4](this, e);
|
|
3861
3871
|
}
|
|
3862
|
-
} : E[O] = y, h ||
|
|
3872
|
+
} : E[O] = y, h || di(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
3863
3873
|
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");
|
|
3864
3874
|
u[+c][r] = i < 3 ? 1 : i;
|
|
3865
3875
|
}
|
|
@@ -3907,8 +3917,8 @@ function hi(e, t, n, r, i, a) {
|
|
|
3907
3917
|
var l = n[c], u = l[1], d = u & 7;
|
|
3908
3918
|
if ((u & 8) == o && !d == s) {
|
|
3909
3919
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
3910
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
3911
|
-
return
|
|
3920
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : li(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
3921
|
+
return ui(t) === e;
|
|
3912
3922
|
} : i);
|
|
3913
3923
|
}
|
|
3914
3924
|
}
|
|
@@ -3930,22 +3940,22 @@ function hi(e, t, n, r, i, a) {
|
|
|
3930
3940
|
}
|
|
3931
3941
|
};
|
|
3932
3942
|
}
|
|
3933
|
-
var
|
|
3934
|
-
...
|
|
3943
|
+
var pi = d({
|
|
3944
|
+
...ti,
|
|
3935
3945
|
name: "bleet-ajaxify"
|
|
3936
|
-
}),
|
|
3946
|
+
}), mi, hi = l(), gi = l(), _i, vi, yi, bi, xi;
|
|
3937
3947
|
(class {
|
|
3938
3948
|
ea;
|
|
3939
3949
|
logger;
|
|
3940
3950
|
apiService;
|
|
3941
3951
|
element;
|
|
3942
3952
|
static {
|
|
3943
|
-
({e: [
|
|
3944
|
-
|
|
3953
|
+
({e: [_i, vi, yi, bi], c: [xi, mi]} = fi(this, [pi], [[
|
|
3954
|
+
hi,
|
|
3945
3955
|
0,
|
|
3946
3956
|
"id"
|
|
3947
3957
|
], [
|
|
3948
|
-
|
|
3958
|
+
gi,
|
|
3949
3959
|
0,
|
|
3950
3960
|
"url"
|
|
3951
3961
|
]]));
|
|
@@ -3953,9 +3963,9 @@ var gi = d({
|
|
|
3953
3963
|
constructor(e = m(a), t = m(o).scopeTo("<bleet-ajaxify>"), r = m(n), i = m(s)) {
|
|
3954
3964
|
this.ea = e, this.logger = t, this.apiService = r, this.element = i, this.logger.trace("constructor");
|
|
3955
3965
|
}
|
|
3956
|
-
id =
|
|
3957
|
-
url = (
|
|
3958
|
-
ajaxedView = (
|
|
3966
|
+
id = _i(this, "");
|
|
3967
|
+
url = (vi(this), yi(this));
|
|
3968
|
+
ajaxedView = (bi(this), null);
|
|
3959
3969
|
disposable;
|
|
3960
3970
|
attaching() {
|
|
3961
3971
|
this.logger.trace("attaching"), this.disposable = this.ea.subscribe(E.Ajaxify, this.onEvent);
|
|
@@ -4005,30 +4015,30 @@ var gi = d({
|
|
|
4005
4015
|
});
|
|
4006
4016
|
}
|
|
4007
4017
|
static {
|
|
4008
|
-
|
|
4018
|
+
mi();
|
|
4009
4019
|
}
|
|
4010
4020
|
});
|
|
4011
4021
|
//#endregion
|
|
4012
4022
|
//#region src/components/bleet-dialog.$au.ts
|
|
4013
|
-
var
|
|
4014
|
-
bindables: () =>
|
|
4015
|
-
default: () =>
|
|
4016
|
-
dependencies: () =>
|
|
4017
|
-
name: () =>
|
|
4018
|
-
register: () =>
|
|
4019
|
-
template: () =>
|
|
4020
|
-
}),
|
|
4021
|
-
function
|
|
4022
|
-
|
|
4023
|
-
name:
|
|
4024
|
-
template:
|
|
4025
|
-
dependencies:
|
|
4026
|
-
bindables:
|
|
4027
|
-
}), e.register(
|
|
4023
|
+
var Si = /* @__PURE__ */ _({
|
|
4024
|
+
bindables: () => Ei,
|
|
4025
|
+
default: () => wi,
|
|
4026
|
+
dependencies: () => Ti,
|
|
4027
|
+
name: () => Ci,
|
|
4028
|
+
register: () => Oi,
|
|
4029
|
+
template: () => wi
|
|
4030
|
+
}), Ci = "bleet-dialog", wi = "<template>\n <dialog ref=\"dialogElement\" class.bind=\"dialogClass\" aria-label.bind=\"title || null\">\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", Ti = [], Ei = {}, Di;
|
|
4031
|
+
function Oi(e) {
|
|
4032
|
+
Di ||= h.define({
|
|
4033
|
+
name: Ci,
|
|
4034
|
+
template: wi,
|
|
4035
|
+
dependencies: Ti,
|
|
4036
|
+
bindables: Ei
|
|
4037
|
+
}), e.register(Di);
|
|
4028
4038
|
}
|
|
4029
4039
|
//#endregion
|
|
4030
4040
|
//#region src/abstracts/components/abstract-dialog.ts
|
|
4031
|
-
function
|
|
4041
|
+
function ki(e, t) {
|
|
4032
4042
|
if (typeof e != "object" || !e) return e;
|
|
4033
4043
|
var n = e[Symbol.toPrimitive];
|
|
4034
4044
|
if (n !== void 0) {
|
|
@@ -4038,15 +4048,15 @@ function Mi(e, t) {
|
|
|
4038
4048
|
}
|
|
4039
4049
|
return (t === "string" ? String : Number)(e);
|
|
4040
4050
|
}
|
|
4041
|
-
function
|
|
4042
|
-
var t =
|
|
4051
|
+
function Ai(e) {
|
|
4052
|
+
var t = ki(e, "string");
|
|
4043
4053
|
return typeof t == "symbol" ? t : String(t);
|
|
4044
4054
|
}
|
|
4045
|
-
function
|
|
4055
|
+
function ji(e) {
|
|
4046
4056
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
4047
4057
|
return e;
|
|
4048
4058
|
}
|
|
4049
|
-
function
|
|
4059
|
+
function Mi(e, t, n) {
|
|
4050
4060
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
4051
4061
|
try {
|
|
4052
4062
|
Object.defineProperty(e, "name", {
|
|
@@ -4056,7 +4066,7 @@ function Fi(e, t, n) {
|
|
|
4056
4066
|
} catch {}
|
|
4057
4067
|
return e;
|
|
4058
4068
|
}
|
|
4059
|
-
function
|
|
4069
|
+
function Ni(e, t, n, r, i, a) {
|
|
4060
4070
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
4061
4071
|
function p(t, n, r) {
|
|
4062
4072
|
return function(i, a) {
|
|
@@ -4081,13 +4091,13 @@ function Ii(e, t, n, r, i, a) {
|
|
|
4081
4091
|
}
|
|
4082
4092
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
4083
4093
|
if (!b && (d ? (h || x ? E = {
|
|
4084
|
-
get:
|
|
4094
|
+
get: Mi(function() {
|
|
4085
4095
|
return y(this);
|
|
4086
4096
|
}, r, "get"),
|
|
4087
4097
|
set: function(e) {
|
|
4088
4098
|
t[4](this, e);
|
|
4089
4099
|
}
|
|
4090
|
-
} : E[O] = y, h ||
|
|
4100
|
+
} : E[O] = y, h || Mi(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
4091
4101
|
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");
|
|
4092
4102
|
u[+c][r] = i < 3 ? 1 : i;
|
|
4093
4103
|
}
|
|
@@ -4135,8 +4145,8 @@ function Ii(e, t, n, r, i, a) {
|
|
|
4135
4145
|
var l = n[c], u = l[1], d = u & 7;
|
|
4136
4146
|
if ((u & 8) == o && !d == s) {
|
|
4137
4147
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
4138
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
4139
|
-
return
|
|
4148
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : Ai(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
4149
|
+
return ji(t) === e;
|
|
4140
4150
|
} : i);
|
|
4141
4151
|
}
|
|
4142
4152
|
}
|
|
@@ -4158,21 +4168,20 @@ function Ii(e, t, n, r, i, a) {
|
|
|
4158
4168
|
}
|
|
4159
4169
|
};
|
|
4160
4170
|
}
|
|
4161
|
-
var
|
|
4171
|
+
var Pi, Fi, Ii = class {
|
|
4162
4172
|
element;
|
|
4163
4173
|
ea;
|
|
4164
4174
|
p;
|
|
4165
4175
|
transitionService;
|
|
4166
4176
|
static {
|
|
4167
|
-
({e: [
|
|
4177
|
+
({e: [Pi, Fi]} = Ni(this, [], [[
|
|
4168
4178
|
l,
|
|
4169
4179
|
0,
|
|
4170
4180
|
"id"
|
|
4171
4181
|
]]));
|
|
4172
4182
|
}
|
|
4173
|
-
id =
|
|
4174
|
-
title = (
|
|
4175
|
-
color = "";
|
|
4183
|
+
id = Pi(this, "");
|
|
4184
|
+
title = (Fi(this), "");
|
|
4176
4185
|
dialogElement;
|
|
4177
4186
|
disposable;
|
|
4178
4187
|
closing = !1;
|
|
@@ -4186,7 +4195,7 @@ var Li, Ri, zi = class {
|
|
|
4186
4195
|
this.dialogElement.removeEventListener("cancel", this.onCancelEvent), this.dialogElement.removeEventListener("click", this.onDialogClick), this.disposable?.dispose();
|
|
4187
4196
|
}
|
|
4188
4197
|
show(e) {
|
|
4189
|
-
this.title = e.title ?? "", this.
|
|
4198
|
+
this.title = e.title ?? "", this.open();
|
|
4190
4199
|
}
|
|
4191
4200
|
clear() {}
|
|
4192
4201
|
close() {
|
|
@@ -4196,7 +4205,7 @@ var Li, Ri, zi = class {
|
|
|
4196
4205
|
id: this.id
|
|
4197
4206
|
}), this.ea.publish(E.Overlay, { action: O.Close }), w(e, "dialog", "hide", this.element));
|
|
4198
4207
|
}, (e) => {
|
|
4199
|
-
this.closing === !0 && (this.closing = !1, e.close(), this.title = "", this.
|
|
4208
|
+
this.closing === !0 && (this.closing = !1, e.close(), this.title = "", this.clear(), this.ea.publish(E.ModalStatus, {
|
|
4200
4209
|
status: N.Closed,
|
|
4201
4210
|
id: this.id
|
|
4202
4211
|
}));
|
|
@@ -4235,7 +4244,7 @@ var Li, Ri, zi = class {
|
|
|
4235
4244
|
};
|
|
4236
4245
|
//#endregion
|
|
4237
4246
|
//#region src/abstracts/components/abstract-dropdown.ts
|
|
4238
|
-
function
|
|
4247
|
+
function Li(e, t) {
|
|
4239
4248
|
if (typeof e != "object" || !e) return e;
|
|
4240
4249
|
var n = e[Symbol.toPrimitive];
|
|
4241
4250
|
if (n !== void 0) {
|
|
@@ -4245,15 +4254,15 @@ function Bi(e, t) {
|
|
|
4245
4254
|
}
|
|
4246
4255
|
return (t === "string" ? String : Number)(e);
|
|
4247
4256
|
}
|
|
4248
|
-
function
|
|
4249
|
-
var t =
|
|
4257
|
+
function Ri(e) {
|
|
4258
|
+
var t = Li(e, "string");
|
|
4250
4259
|
return typeof t == "symbol" ? t : String(t);
|
|
4251
4260
|
}
|
|
4252
|
-
function
|
|
4261
|
+
function zi(e) {
|
|
4253
4262
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
4254
4263
|
return e;
|
|
4255
4264
|
}
|
|
4256
|
-
function
|
|
4265
|
+
function Bi(e, t, n) {
|
|
4257
4266
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
4258
4267
|
try {
|
|
4259
4268
|
Object.defineProperty(e, "name", {
|
|
@@ -4263,7 +4272,7 @@ function Ui(e, t, n) {
|
|
|
4263
4272
|
} catch {}
|
|
4264
4273
|
return e;
|
|
4265
4274
|
}
|
|
4266
|
-
function
|
|
4275
|
+
function Vi(e, t, n, r, i, a) {
|
|
4267
4276
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
4268
4277
|
function p(t, n, r) {
|
|
4269
4278
|
return function(i, a) {
|
|
@@ -4288,13 +4297,13 @@ function Wi(e, t, n, r, i, a) {
|
|
|
4288
4297
|
}
|
|
4289
4298
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
4290
4299
|
if (!b && (d ? (h || x ? E = {
|
|
4291
|
-
get:
|
|
4300
|
+
get: Bi(function() {
|
|
4292
4301
|
return y(this);
|
|
4293
4302
|
}, r, "get"),
|
|
4294
4303
|
set: function(e) {
|
|
4295
4304
|
t[4](this, e);
|
|
4296
4305
|
}
|
|
4297
|
-
} : E[O] = y, h ||
|
|
4306
|
+
} : E[O] = y, h || Bi(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
4298
4307
|
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");
|
|
4299
4308
|
u[+c][r] = i < 3 ? 1 : i;
|
|
4300
4309
|
}
|
|
@@ -4342,8 +4351,8 @@ function Wi(e, t, n, r, i, a) {
|
|
|
4342
4351
|
var l = n[c], u = l[1], d = u & 7;
|
|
4343
4352
|
if ((u & 8) == o && !d == s) {
|
|
4344
4353
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
4345
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
4346
|
-
return
|
|
4354
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : Ri(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
4355
|
+
return zi(t) === e;
|
|
4347
4356
|
} : i);
|
|
4348
4357
|
}
|
|
4349
4358
|
}
|
|
@@ -4365,24 +4374,24 @@ function Wi(e, t, n, r, i, a) {
|
|
|
4365
4374
|
}
|
|
4366
4375
|
};
|
|
4367
4376
|
}
|
|
4368
|
-
var
|
|
4377
|
+
var Hi = l({ mode: r.twoWay }), Ui = l({ mode: r.twoWay }), Wi, Gi, Ki, qi, Ji, Yi, Xi, Zi, Qi, $i, ea, ta, na, ra, ia = class {
|
|
4369
4378
|
element;
|
|
4370
4379
|
p;
|
|
4371
4380
|
trapFocusService;
|
|
4372
4381
|
static {
|
|
4373
|
-
({e: [qi, Ji, Yi, Xi, Zi, Qi, $i, ea, ta, na, ra
|
|
4382
|
+
({e: [Wi, Gi, Ki, qi, Ji, Yi, Xi, Zi, Qi, $i, ea, ta, na, ra]} = Vi(this, [], [
|
|
4374
4383
|
[
|
|
4375
4384
|
l,
|
|
4376
4385
|
0,
|
|
4377
4386
|
"options"
|
|
4378
4387
|
],
|
|
4379
4388
|
[
|
|
4380
|
-
|
|
4389
|
+
Hi,
|
|
4381
4390
|
0,
|
|
4382
4391
|
"value"
|
|
4383
4392
|
],
|
|
4384
4393
|
[
|
|
4385
|
-
|
|
4394
|
+
Ui,
|
|
4386
4395
|
0,
|
|
4387
4396
|
"values"
|
|
4388
4397
|
],
|
|
@@ -4408,13 +4417,13 @@ var Gi = l({ mode: r.twoWay }), Ki = l({ mode: r.twoWay }), qi, Ji, Yi, Xi, Zi,
|
|
|
4408
4417
|
]
|
|
4409
4418
|
]));
|
|
4410
4419
|
}
|
|
4411
|
-
options =
|
|
4412
|
-
value = (
|
|
4413
|
-
values = (
|
|
4414
|
-
multiple = (
|
|
4415
|
-
disabled = (
|
|
4416
|
-
placeholder = (
|
|
4417
|
-
open = (
|
|
4420
|
+
options = Wi(this, []);
|
|
4421
|
+
value = (Gi(this), Ki(this, null));
|
|
4422
|
+
values = (qi(this), Ji(this, []));
|
|
4423
|
+
multiple = (Yi(this), Xi(this, !1));
|
|
4424
|
+
disabled = (Zi(this), Qi(this, !1));
|
|
4425
|
+
placeholder = ($i(this), ea(this, ""));
|
|
4426
|
+
open = (ta(this), !1);
|
|
4418
4427
|
groups = [];
|
|
4419
4428
|
selection = [];
|
|
4420
4429
|
empty = !1;
|
|
@@ -4423,7 +4432,7 @@ var Gi = l({ mode: r.twoWay }), Ki = l({ mode: r.twoWay }), qi, Ji, Yi, Xi, Zi,
|
|
|
4423
4432
|
search = null;
|
|
4424
4433
|
entries = [];
|
|
4425
4434
|
placeholderRow = null;
|
|
4426
|
-
query =
|
|
4435
|
+
query = na(this, "");
|
|
4427
4436
|
constructor(e = m(s), t = m(c), n = m(S)) {
|
|
4428
4437
|
this.element = e, this.p = t, this.trapFocusService = n;
|
|
4429
4438
|
}
|
|
@@ -4468,7 +4477,7 @@ var Gi = l({ mode: r.twoWay }), Ki = l({ mode: r.twoWay }), qi, Ji, Yi, Xi, Zi,
|
|
|
4468
4477
|
});
|
|
4469
4478
|
});
|
|
4470
4479
|
}
|
|
4471
|
-
onStopTrapFocus = (
|
|
4480
|
+
onStopTrapFocus = (ra(this), () => {
|
|
4472
4481
|
this.open = !1, this.query = "";
|
|
4473
4482
|
});
|
|
4474
4483
|
build() {
|
|
@@ -4510,7 +4519,7 @@ var Gi = l({ mode: r.twoWay }), Ki = l({ mode: r.twoWay }), qi, Ji, Yi, Xi, Zi,
|
|
|
4510
4519
|
};
|
|
4511
4520
|
//#endregion
|
|
4512
4521
|
//#region src/abstracts/components/abstract-pager.ts
|
|
4513
|
-
function
|
|
4522
|
+
function aa(e, t) {
|
|
4514
4523
|
if (typeof e != "object" || !e) return e;
|
|
4515
4524
|
var n = e[Symbol.toPrimitive];
|
|
4516
4525
|
if (n !== void 0) {
|
|
@@ -4520,15 +4529,15 @@ function ca(e, t) {
|
|
|
4520
4529
|
}
|
|
4521
4530
|
return (t === "string" ? String : Number)(e);
|
|
4522
4531
|
}
|
|
4523
|
-
function
|
|
4524
|
-
var t =
|
|
4532
|
+
function oa(e) {
|
|
4533
|
+
var t = aa(e, "string");
|
|
4525
4534
|
return typeof t == "symbol" ? t : String(t);
|
|
4526
4535
|
}
|
|
4527
|
-
function
|
|
4536
|
+
function sa(e) {
|
|
4528
4537
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
4529
4538
|
return e;
|
|
4530
4539
|
}
|
|
4531
|
-
function
|
|
4540
|
+
function ca(e, t, n) {
|
|
4532
4541
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
4533
4542
|
try {
|
|
4534
4543
|
Object.defineProperty(e, "name", {
|
|
@@ -4538,7 +4547,7 @@ function da(e, t, n) {
|
|
|
4538
4547
|
} catch {}
|
|
4539
4548
|
return e;
|
|
4540
4549
|
}
|
|
4541
|
-
function
|
|
4550
|
+
function la(e, t, n, r, i, a) {
|
|
4542
4551
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
4543
4552
|
function p(t, n, r) {
|
|
4544
4553
|
return function(i, a) {
|
|
@@ -4563,13 +4572,13 @@ function fa(e, t, n, r, i, a) {
|
|
|
4563
4572
|
}
|
|
4564
4573
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
4565
4574
|
if (!b && (d ? (h || x ? E = {
|
|
4566
|
-
get:
|
|
4575
|
+
get: ca(function() {
|
|
4567
4576
|
return y(this);
|
|
4568
4577
|
}, r, "get"),
|
|
4569
4578
|
set: function(e) {
|
|
4570
4579
|
t[4](this, e);
|
|
4571
4580
|
}
|
|
4572
|
-
} : E[O] = y, h ||
|
|
4581
|
+
} : E[O] = y, h || ca(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
4573
4582
|
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");
|
|
4574
4583
|
u[+c][r] = i < 3 ? 1 : i;
|
|
4575
4584
|
}
|
|
@@ -4617,8 +4626,8 @@ function fa(e, t, n, r, i, a) {
|
|
|
4617
4626
|
var l = n[c], u = l[1], d = u & 7;
|
|
4618
4627
|
if ((u & 8) == o && !d == s) {
|
|
4619
4628
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
4620
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
4621
|
-
return
|
|
4629
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : oa(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
4630
|
+
return sa(t) === e;
|
|
4622
4631
|
} : i);
|
|
4623
4632
|
}
|
|
4624
4633
|
}
|
|
@@ -4640,14 +4649,14 @@ function fa(e, t, n, r, i, a) {
|
|
|
4640
4649
|
}
|
|
4641
4650
|
};
|
|
4642
4651
|
}
|
|
4643
|
-
var
|
|
4652
|
+
var ua, da, fa, pa, ma, ha, ga = /*#__PURE__*/ function(e) {
|
|
4644
4653
|
return e.Change = "bleet-page", e;
|
|
4645
|
-
}({}),
|
|
4654
|
+
}({}), _a = /*#__PURE__*/ function(e) {
|
|
4646
4655
|
return e[e.MaxButtonCount = 10] = "MaxButtonCount", e;
|
|
4647
|
-
}(
|
|
4656
|
+
}(_a || {}), va = class {
|
|
4648
4657
|
element;
|
|
4649
4658
|
static {
|
|
4650
|
-
({e: [
|
|
4659
|
+
({e: [ua, da, fa, pa, ma, ha]} = la(this, [], [
|
|
4651
4660
|
[
|
|
4652
4661
|
l,
|
|
4653
4662
|
0,
|
|
@@ -4665,20 +4674,20 @@ var pa, ma, ha, ga, _a, va, ya = /*#__PURE__*/ function(e) {
|
|
|
4665
4674
|
]
|
|
4666
4675
|
]));
|
|
4667
4676
|
}
|
|
4668
|
-
pagination =
|
|
4677
|
+
pagination = ua(this, {
|
|
4669
4678
|
limit: 0,
|
|
4670
4679
|
currentPage: 1,
|
|
4671
4680
|
totalPages: 1,
|
|
4672
4681
|
totalCount: 0
|
|
4673
4682
|
});
|
|
4674
|
-
maxButtonCount = (
|
|
4675
|
-
page = (
|
|
4683
|
+
maxButtonCount = (da(this), fa(this, _a.MaxButtonCount));
|
|
4684
|
+
page = (pa(this), 1);
|
|
4676
4685
|
numbers = [];
|
|
4677
4686
|
begin = 0;
|
|
4678
4687
|
end = 0;
|
|
4679
|
-
selectedPage =
|
|
4688
|
+
selectedPage = ma(this, null);
|
|
4680
4689
|
constructor(e = m(s)) {
|
|
4681
|
-
this.element = e,
|
|
4690
|
+
this.element = e, ha(this);
|
|
4682
4691
|
}
|
|
4683
4692
|
bound() {
|
|
4684
4693
|
this.page = this.pagination.currentPage, this.refresh();
|
|
@@ -4694,7 +4703,7 @@ var pa, ma, ha, ga, _a, va, ya = /*#__PURE__*/ function(e) {
|
|
|
4694
4703
|
}
|
|
4695
4704
|
refreshed() {}
|
|
4696
4705
|
go(e) {
|
|
4697
|
-
e !== this.page && e >= 1 && e <= this.pagination.totalPages && (this.page = e, this.refresh(), this.element.dispatchEvent(new CustomEvent(
|
|
4706
|
+
e !== this.page && e >= 1 && e <= this.pagination.totalPages && (this.page = e, this.refresh(), this.element.dispatchEvent(new CustomEvent(ga.Change, {
|
|
4698
4707
|
bubbles: !0,
|
|
4699
4708
|
detail: { page: e }
|
|
4700
4709
|
})));
|
|
@@ -4703,7 +4712,7 @@ var pa, ma, ha, ga, _a, va, ya = /*#__PURE__*/ function(e) {
|
|
|
4703
4712
|
let { limit: e, totalPages: t, totalCount: n } = this.pagination, r = Math.floor(this.maxButtonCount / 2), i = Math.max(1, this.page - r), a = i + this.maxButtonCount - 1;
|
|
4704
4713
|
a > t && (a = t, i = Math.max(1, a - this.maxButtonCount + 1)), this.numbers = Array.from({ length: Math.max(0, a - i + 1) }, (e, t) => i + t), this.selectedPage = this.page, this.begin = n === 0 ? 0 : (this.page - 1) * e + 1, this.end = Math.min(this.page * e, n), this.refreshed();
|
|
4705
4714
|
}
|
|
4706
|
-
},
|
|
4715
|
+
}, ya = class {
|
|
4707
4716
|
logger;
|
|
4708
4717
|
element;
|
|
4709
4718
|
ea;
|
|
@@ -4738,14 +4747,14 @@ var pa, ma, ha, ga, _a, va, ya = /*#__PURE__*/ function(e) {
|
|
|
4738
4747
|
}
|
|
4739
4748
|
}
|
|
4740
4749
|
onToasterEvent = (e) => {
|
|
4741
|
-
if (e.action ===
|
|
4742
|
-
let t =
|
|
4750
|
+
if (e.action === F.Add && e.toast) {
|
|
4751
|
+
let t = rr(e.toast);
|
|
4743
4752
|
this.entries.has(t.id) === !1 && this.add(t);
|
|
4744
|
-
} else e.action ===
|
|
4753
|
+
} else e.action === F.Remove && e.toast?.id && this.close(e.toast.id);
|
|
4745
4754
|
};
|
|
4746
4755
|
add(e) {
|
|
4747
4756
|
let t = { closing: !1 };
|
|
4748
|
-
this.entries.set(e.id, t), this.toasts = [...this.toasts, e],
|
|
4757
|
+
this.entries.set(e.id, t), this.toasts = [...this.toasts, e], ir(this.element), this.p.requestAnimationFrame(() => {
|
|
4749
4758
|
let n = this.findToastElement(e.id);
|
|
4750
4759
|
n === null ? this.logger.warn(`No rendered toast carries data-toaster-id="${e.id}"`) : this.transitionService.run(n, (n) => {
|
|
4751
4760
|
e.duration > 0 && (t.closeTimeout = this.p.setTimeout(() => {
|
|
@@ -4755,7 +4764,7 @@ var pa, ma, ha, ga, _a, va, ya = /*#__PURE__*/ function(e) {
|
|
|
4755
4764
|
});
|
|
4756
4765
|
}
|
|
4757
4766
|
remove(e) {
|
|
4758
|
-
this.entries.delete(e), this.toasts = this.toasts.filter((t) => t.id !== e), this.entries.size === 0 &&
|
|
4767
|
+
this.entries.delete(e), this.toasts = this.toasts.filter((t) => t.id !== e), this.entries.size === 0 && ar(this.element);
|
|
4759
4768
|
}
|
|
4760
4769
|
findToastElement(e) {
|
|
4761
4770
|
return this.element.querySelector(`[data-toaster-id="${e}"]`);
|
|
@@ -4763,7 +4772,7 @@ var pa, ma, ha, ga, _a, va, ya = /*#__PURE__*/ function(e) {
|
|
|
4763
4772
|
};
|
|
4764
4773
|
//#endregion
|
|
4765
4774
|
//#region src/components/bleet-dialog.ts
|
|
4766
|
-
function
|
|
4775
|
+
function ba(e, t) {
|
|
4767
4776
|
if (typeof e != "object" || !e) return e;
|
|
4768
4777
|
var n = e[Symbol.toPrimitive];
|
|
4769
4778
|
if (n !== void 0) {
|
|
@@ -4773,15 +4782,15 @@ function Ca(e, t) {
|
|
|
4773
4782
|
}
|
|
4774
4783
|
return (t === "string" ? String : Number)(e);
|
|
4775
4784
|
}
|
|
4776
|
-
function
|
|
4777
|
-
var t =
|
|
4785
|
+
function xa(e) {
|
|
4786
|
+
var t = ba(e, "string");
|
|
4778
4787
|
return typeof t == "symbol" ? t : String(t);
|
|
4779
4788
|
}
|
|
4780
|
-
function
|
|
4789
|
+
function Sa(e) {
|
|
4781
4790
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
4782
4791
|
return e;
|
|
4783
4792
|
}
|
|
4784
|
-
function
|
|
4793
|
+
function Ca(e, t, n) {
|
|
4785
4794
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
4786
4795
|
try {
|
|
4787
4796
|
Object.defineProperty(e, "name", {
|
|
@@ -4791,7 +4800,7 @@ function Ea(e, t, n) {
|
|
|
4791
4800
|
} catch {}
|
|
4792
4801
|
return e;
|
|
4793
4802
|
}
|
|
4794
|
-
function
|
|
4803
|
+
function wa(e, t, n, r, i, a) {
|
|
4795
4804
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
4796
4805
|
function p(t, n, r) {
|
|
4797
4806
|
return function(i, a) {
|
|
@@ -4816,13 +4825,13 @@ function Da(e, t, n, r, i, a) {
|
|
|
4816
4825
|
}
|
|
4817
4826
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
4818
4827
|
if (!b && (d ? (h || x ? E = {
|
|
4819
|
-
get:
|
|
4828
|
+
get: Ca(function() {
|
|
4820
4829
|
return y(this);
|
|
4821
4830
|
}, r, "get"),
|
|
4822
4831
|
set: function(e) {
|
|
4823
4832
|
t[4](this, e);
|
|
4824
4833
|
}
|
|
4825
|
-
} : E[O] = y, h ||
|
|
4834
|
+
} : E[O] = y, h || Ca(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
4826
4835
|
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");
|
|
4827
4836
|
u[+c][r] = i < 3 ? 1 : i;
|
|
4828
4837
|
}
|
|
@@ -4870,8 +4879,8 @@ function Da(e, t, n, r, i, a) {
|
|
|
4870
4879
|
var l = n[c], u = l[1], d = u & 7;
|
|
4871
4880
|
if ((u & 8) == o && !d == s) {
|
|
4872
4881
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
4873
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
4874
|
-
return
|
|
4882
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : xa(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
4883
|
+
return Sa(t) === e;
|
|
4875
4884
|
} : i);
|
|
4876
4885
|
}
|
|
4877
4886
|
}
|
|
@@ -4893,17 +4902,17 @@ function Da(e, t, n, r, i, a) {
|
|
|
4893
4902
|
}
|
|
4894
4903
|
};
|
|
4895
4904
|
}
|
|
4896
|
-
var
|
|
4897
|
-
...
|
|
4905
|
+
var Ta = d({
|
|
4906
|
+
...Si,
|
|
4898
4907
|
name: "bleet-dialog"
|
|
4899
|
-
}),
|
|
4900
|
-
(class extends
|
|
4908
|
+
}), Ea, Da = Ii, Oa = l({ attribute: "data-dialog-class" }), ka, Aa, ja, Ma, Na, Pa, Fa;
|
|
4909
|
+
(class extends Da {
|
|
4901
4910
|
logger;
|
|
4902
4911
|
apiService;
|
|
4903
4912
|
static {
|
|
4904
|
-
({e: [
|
|
4913
|
+
({e: [ka, Aa, ja, Ma, Na, Pa], c: [Fa, Ea]} = wa(this, [Ta], [
|
|
4905
4914
|
[
|
|
4906
|
-
|
|
4915
|
+
Oa,
|
|
4907
4916
|
0,
|
|
4908
4917
|
"dialogClass"
|
|
4909
4918
|
],
|
|
@@ -4917,15 +4926,15 @@ var Oa = d({
|
|
|
4917
4926
|
0,
|
|
4918
4927
|
"submitError"
|
|
4919
4928
|
]
|
|
4920
|
-
], 0, void 0,
|
|
4929
|
+
], 0, void 0, Da));
|
|
4921
4930
|
}
|
|
4922
4931
|
constructor(e = m(o).scopeTo("<bleet-dialog>"), t = m(n)) {
|
|
4923
4932
|
super(), this.logger = e, this.apiService = t;
|
|
4924
4933
|
}
|
|
4925
|
-
dialogClass =
|
|
4926
|
-
loadError = (
|
|
4927
|
-
submitError = (
|
|
4928
|
-
loading = (
|
|
4934
|
+
dialogClass = ka(this, "");
|
|
4935
|
+
loadError = (Aa(this), ja(this, ""));
|
|
4936
|
+
submitError = (Ma(this), Na(this, ""));
|
|
4937
|
+
loading = (Pa(this), !1);
|
|
4929
4938
|
contentView = null;
|
|
4930
4939
|
attached() {
|
|
4931
4940
|
super.attached(), this.dialogElement.addEventListener("submit", this.onFormSubmit);
|
|
@@ -4966,61 +4975,61 @@ var Oa = d({
|
|
|
4966
4975
|
e.content && (this.contentView = e.content), this.executeActions(e);
|
|
4967
4976
|
}
|
|
4968
4977
|
executeActions(e) {
|
|
4969
|
-
let t = e.refresh === !0 || e.action ===
|
|
4970
|
-
(e.action ===
|
|
4971
|
-
action:
|
|
4978
|
+
let t = e.refresh === !0 || e.action === H.RefreshAndClose;
|
|
4979
|
+
(e.action === H.Close || e.action === H.RefreshAndClose) && this.close(), e.toast && this.ea.publish(E.Toaster, {
|
|
4980
|
+
action: F.Add,
|
|
4972
4981
|
toast: e.toast
|
|
4973
4982
|
}), e.ajaxify ? this.ea.publish(E.Ajaxify, e.ajaxify) : e.redirect ? this.p.window.location.href = e.redirect : t === !0 && this.p.window.location.reload();
|
|
4974
4983
|
}
|
|
4975
4984
|
publishError(e) {
|
|
4976
4985
|
e !== "" && this.ea.publish(E.Toaster, {
|
|
4977
|
-
action:
|
|
4986
|
+
action: F.Add,
|
|
4978
4987
|
toast: {
|
|
4979
|
-
|
|
4988
|
+
level: B.Danger,
|
|
4980
4989
|
content: e
|
|
4981
4990
|
}
|
|
4982
4991
|
});
|
|
4983
4992
|
}
|
|
4984
4993
|
static {
|
|
4985
|
-
|
|
4994
|
+
Ea();
|
|
4986
4995
|
}
|
|
4987
4996
|
});
|
|
4988
4997
|
//#endregion
|
|
4989
4998
|
//#region src/index.ts
|
|
4990
|
-
var
|
|
4991
|
-
|
|
4999
|
+
var Ia = [
|
|
5000
|
+
Z,
|
|
5001
|
+
U,
|
|
5002
|
+
K,
|
|
4992
5003
|
W,
|
|
5004
|
+
Q,
|
|
5005
|
+
$,
|
|
5006
|
+
Y,
|
|
4993
5007
|
q,
|
|
4994
5008
|
G,
|
|
4995
|
-
$,
|
|
4996
|
-
tn,
|
|
4997
|
-
X,
|
|
4998
5009
|
J,
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
|
|
5002
|
-
|
|
5003
|
-
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
wi,
|
|
5010
|
-
Ra
|
|
5010
|
+
X,
|
|
5011
|
+
Nn,
|
|
5012
|
+
Un,
|
|
5013
|
+
nr,
|
|
5014
|
+
pr,
|
|
5015
|
+
Rr,
|
|
5016
|
+
Kr,
|
|
5017
|
+
ei,
|
|
5018
|
+
xi,
|
|
5019
|
+
Fa
|
|
5011
5020
|
];
|
|
5012
|
-
function
|
|
5021
|
+
function La(e) {
|
|
5013
5022
|
return {
|
|
5014
5023
|
register(n) {
|
|
5015
|
-
return (e ? t.customize(e) : t).register(n), n.register(...
|
|
5024
|
+
return (e ? t.customize(e) : t).register(n), n.register(...Ia);
|
|
5016
5025
|
},
|
|
5017
5026
|
customize(e) {
|
|
5018
|
-
return
|
|
5027
|
+
return La(e);
|
|
5019
5028
|
}
|
|
5020
5029
|
};
|
|
5021
5030
|
}
|
|
5022
|
-
var
|
|
5031
|
+
var Ra = La();
|
|
5023
5032
|
//#endregion
|
|
5024
|
-
export {
|
|
5033
|
+
export { Ii as AbstractDialog, ia as AbstractDropdown, va as AbstractPager, ya as AbstractToaster, P as AjaxifyAction, ee as AjaxifyTriggerMode, ne as BadgeAction, xi as BleetAjaxify, Nn as BleetAjaxifyTriggerCustomAttribute, Z as BleetAlertCustomAttribute, G as BleetBadgeCustomAttribute, U as BleetBurgerCustomAttribute, Ra as BleetConfiguration, Fa as BleetDialog, K as BleetDropdownCustomAttribute, ei as BleetFocusCustomAttribute, W as BleetMenuCustomAttribute, Q as BleetModalTriggerCustomAttribute, Kr as BleetOverlayCustomAttribute, $ as BleetPagerCustomAttribute, q as BleetPasswordCustomAttribute, Un as BleetPopoverCustomAttribute, nr as BleetPopoverTriggerCustomAttribute, Y as BleetProfileCustomAttribute, J as BleetTabsCustomAttribute, Rr as BleetToastCustomAttribute, pr as BleetToasterCustomAttribute, X as BleetToasterTriggerCustomAttribute, E as Channels, H as DialogAction, v as IStorageService, b as ITransitionService, S as ITrapFocusService, I as MenuAction, L as MenuStatus, M as ModalAction, N as ModalStatus, O as OverlayAction, k as OverlayStatus, ga as PagerEvent, R as PopoverAction, z as PopoverStatus, A as ProfileAction, j as ProfileStatus, F as ToasterAction, te as ToasterStatus, re as UiIcon, B as UiLevel, V as UiToastIcon, D as UploadAction, w as setState };
|
|
5025
5034
|
|
|
5026
5035
|
//# sourceMappingURL=index.es.js.map
|