@blackcube/aurelia-kit 1.0.0-rc6 → 1.0.0-rc8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -135,46 +135,48 @@ function T(e, t, n) {
135
135
  //#endregion
136
136
  //#region src/enums/event-aggregator.ts
137
137
  var E = /* @__PURE__ */ function(e) {
138
- return e.Overlay = "bleet:overlay", e.OverlayStatus = "bleet:overlay:status", e.Modal = "bleet:modal", e.ModalStatus = "bleet:modal:status", e.Toaster = "bleet:toaster", e.ToasterStatus = "bleet:toaster:status", e.Menu = "bleet:menu", e.MenuStatus = "bleet:menu:status", e.Badge = "bleet:badge", e.Profile = "bleet:profile", e.ProfileStatus = "bleet:profile:status", e.Ajaxify = "bleet:ajaxify", e.Popover = "bleet:popover", e.PopoverStatus = "bleet:popover:status", e.Upload = "bleet:upload", e;
138
+ return e.Overlay = "bleet:overlay", e.OverlayStatus = "bleet:overlay:status", e.Modal = "bleet:modal", e.ModalStatus = "bleet:modal:status", e.Toaster = "bleet:toaster", e.ToasterStatus = "bleet:toaster:status", e.Menu = "bleet:menu", e.MenuStatus = "bleet:menu:status", e.Badge = "bleet:badge", e.Profile = "bleet:profile", e.ProfileStatus = "bleet:profile:status", e.Ajaxify = "bleet:ajaxify", e.Popover = "bleet:popover", e.PopoverStatus = "bleet:popover:status", e.Upload = "bleet:upload", e.Form = "bleet:form", e;
139
139
  }({}), D = /* @__PURE__ */ function(e) {
140
140
  return e.Reset = "reset", e;
141
141
  }({}), O = /* @__PURE__ */ function(e) {
142
- return e.Open = "open", e.Close = "close", e.Toggle = "toggle", e;
142
+ return e.FirstError = "firstError", e;
143
143
  }({}), k = /* @__PURE__ */ function(e) {
144
- return e.Opening = "opening", e.Closing = "closing", e.Opened = "opened", e.Closed = "closed", e;
145
- }({}), A = /* @__PURE__ */ function(e) {
146
144
  return e.Open = "open", e.Close = "close", e.Toggle = "toggle", e;
147
- }({}), j = /* @__PURE__ */ function(e) {
145
+ }({}), A = /* @__PURE__ */ function(e) {
148
146
  return e.Opening = "opening", e.Closing = "closing", e.Opened = "opened", e.Closed = "closed", e;
149
- }({}), M = /* @__PURE__ */ function(e) {
147
+ }({}), j = /* @__PURE__ */ function(e) {
150
148
  return e.Open = "open", e.Close = "close", e.Toggle = "toggle", e;
151
- }({}), N = /* @__PURE__ */ function(e) {
149
+ }({}), M = /* @__PURE__ */ function(e) {
152
150
  return e.Opening = "opening", e.Closing = "closing", e.Opened = "opened", e.Closed = "closed", e;
151
+ }({}), N = /* @__PURE__ */ function(e) {
152
+ return e.Open = "open", e.Close = "close", e.Toggle = "toggle", e;
153
153
  }({}), P = /* @__PURE__ */ function(e) {
154
+ return e.Opening = "opening", e.Closing = "closing", e.Opened = "opened", e.Closed = "closed", e;
155
+ }({}), F = /* @__PURE__ */ function(e) {
154
156
  return e.Refresh = "refresh", e.Run = "run", e;
155
157
  }({}), ee = /* @__PURE__ */ function(e) {
156
158
  return e.Classic = "classic", e.PublishOnly = "publishOnly", e;
157
- }({}), F = /* @__PURE__ */ function(e) {
159
+ }({}), I = /* @__PURE__ */ function(e) {
158
160
  return e.Add = "add", e.Remove = "remove", e;
159
161
  }({}), te = /* @__PURE__ */ function(e) {
160
162
  return e.Added = "added", e.Removed = "removed", e;
161
- }({}), I = /* @__PURE__ */ function(e) {
163
+ }({}), L = /* @__PURE__ */ function(e) {
162
164
  return e.Open = "open", e.Close = "close", e.Toggle = "toggle", e;
163
165
  }({}), ne = /* @__PURE__ */ function(e) {
164
166
  return e.Remove = "remove", e;
165
- }({}), L = /* @__PURE__ */ function(e) {
166
- return e.Opening = "opening", e.Closing = "closing", e.Opened = "opened", e.Closed = "closed", e;
167
167
  }({}), R = /* @__PURE__ */ function(e) {
168
- return e.Open = "open", e.Close = "close", e.Toggle = "toggle", e;
169
- }({}), z = /* @__PURE__ */ function(e) {
170
168
  return e.Opening = "opening", e.Closing = "closing", e.Opened = "opened", e.Closed = "closed", e;
169
+ }({}), z = /* @__PURE__ */ function(e) {
170
+ return e.Open = "open", e.Close = "close", e.Toggle = "toggle", e;
171
171
  }({}), B = /* @__PURE__ */ function(e) {
172
- return e.Info = "info", e.Success = "success", e.Warning = "warning", e.Danger = "danger", e;
172
+ return e.Opening = "opening", e.Closing = "closing", e.Opened = "opened", e.Closed = "closed", e;
173
173
  }({}), V = /* @__PURE__ */ function(e) {
174
+ return e.Info = "info", e.Success = "success", e.Warning = "warning", e.Danger = "danger", e;
175
+ }({}), H = /* @__PURE__ */ function(e) {
174
176
  return e.Info = "information-circle", e.Success = "check-circle", e.Warning = "exclamation-triangle", e.Danger = "x-circle", e;
175
177
  }({}), re = /* @__PURE__ */ function(e) {
176
178
  return e.Info = "information-circle", e.Success = "check-circle", e.Warning = "exclamation-triangle", e.Danger = "x-circle", e.InformationCircle = "information-circle", e.CheckCircle = "check-circle", e.ExclamationTriangle = "exclamation-triangle", e.XCircle = "x-circle", e;
177
- }({}), H = /* @__PURE__ */ function(e) {
179
+ }({}), U = /* @__PURE__ */ function(e) {
178
180
  return e.Keep = "keep", e.Close = "close", e.RefreshAndClose = "refreshAndClose", e;
179
181
  }({});
180
182
  //#endregion
@@ -309,13 +311,13 @@ function ce(e, t, n, r, i, a) {
309
311
  }
310
312
  };
311
313
  }
312
- var le = u("bleet-burger"), ue, U;
314
+ var le = u("bleet-burger"), ue, W;
313
315
  (class {
314
316
  logger;
315
317
  ea;
316
318
  element;
317
319
  static {
318
- ({c: [U, ue]} = ce(this, [le], []));
320
+ ({c: [W, ue]} = ce(this, [le], []));
319
321
  }
320
322
  constructor(e = m(o).scopeTo("bleet-burger"), t = m(a), n = m(s)) {
321
323
  this.logger = e, this.ea = t, this.element = n, this.logger.trace("constructor");
@@ -327,7 +329,7 @@ var le = u("bleet-burger"), ue, U;
327
329
  this.logger.trace("detaching"), this.element.removeEventListener("click", this.onClickButton);
328
330
  }
329
331
  onClickButton = (e) => {
330
- this.logger.trace("onClickButton", e), e.preventDefault(), this.ea.publish(E.Menu, { action: I.Open });
332
+ this.logger.trace("onClickButton", e), e.preventDefault(), this.ea.publish(E.Menu, { action: L.Open });
331
333
  };
332
334
  static {
333
335
  ue();
@@ -465,7 +467,7 @@ function he(e, t, n, r, i, a) {
465
467
  }
466
468
  };
467
469
  }
468
- var ge = u("bleet-menu"), _e, W;
470
+ var ge = u("bleet-menu"), _e, G;
469
471
  (class {
470
472
  logger;
471
473
  ea;
@@ -473,11 +475,12 @@ var ge = u("bleet-menu"), _e, W;
473
475
  p;
474
476
  transitionService;
475
477
  storageService;
478
+ trapFocusService;
476
479
  static {
477
- ({c: [W, _e]} = he(this, [ge], []));
480
+ ({c: [G, _e]} = he(this, [ge], []));
478
481
  }
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");
482
+ 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)) {
483
+ 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
484
  }
482
485
  disposable;
483
486
  disposableOverlay;
@@ -485,35 +488,54 @@ var ge = u("bleet-menu"), _e, W;
485
488
  toggleButtons;
486
489
  sublists = /* @__PURE__ */ new Map();
487
490
  isOpen = !1;
491
+ closingFromOverlay = !1;
488
492
  attaching() {
489
493
  this.logger.trace("attaching"), this.closeButton = this.element.querySelector("[data-menu=close]"), this.toggleButtons = this.element.querySelectorAll("[data-menu^=\"toggle-button\"]"), this.initMenuButtons();
490
494
  }
491
495
  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);
496
+ 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
497
  }
494
498
  detaching() {
495
- this.logger.trace("detaching"), this.closeButton?.removeEventListener("click", this.onClickClose), this.element.removeEventListener("click", this.onClickToggleButtons), this.disposableOverlay?.dispose(), this.disposable?.dispose();
499
+ 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) => {
500
+ this.logger.trace("detaching: no trap to stop", e);
501
+ }), this.disposableOverlay?.dispose(), this.disposable?.dispose();
496
502
  }
497
503
  dispose() {
498
504
  this.logger.trace("dispose"), this.disposableOverlay?.dispose(), this.disposable?.dispose();
499
505
  }
500
506
  open(e = !1) {
501
- this.isOpen || (this.logger.trace("open"), this.isOpen = !0, this.transitionService.run(this.element, (t) => {
502
- e || this.ea.publish(E.Overlay, { action: O.Open }), this.ea.publish(E.MenuStatus, { status: L.Opening }), w(t, "menu", "show"), t.ariaHidden = "false";
503
- }, (e) => {
504
- this.ea.publish(E.MenuStatus, { status: L.Opened });
505
- }));
507
+ if (!this.isOpen) {
508
+ this.logger.trace("open"), this.isOpen = !0;
509
+ let t = this.p.document.activeElement;
510
+ this.transitionService.run(this.element, (n) => {
511
+ e || this.ea.publish(E.Overlay, { action: k.Open }), this.ea.publish(E.MenuStatus, { status: R.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);
512
+ }, (e) => {
513
+ this.ea.publish(E.MenuStatus, { status: R.Opened });
514
+ });
515
+ }
506
516
  }
507
517
  close(e = !1) {
508
- this.isOpen && (this.logger.trace("close"), this.isOpen = !1, this.transitionService.run(this.element, (t) => {
509
- this.ea.publish(E.MenuStatus, { status: L.Closing }), e || this.ea.publish(E.Overlay, { action: O.Close }), w(t, "menu", "hide"), t.ariaHidden = "true";
510
- }, (e) => {
511
- this.ea.publish(E.MenuStatus, { status: L.Closed });
518
+ this.isOpen && (this.logger.trace("close"), this.closingFromOverlay = e, this.trapFocusService.stop().catch((e) => {
519
+ this.logger.trace("close: no trap started", e), this.hide();
512
520
  }));
513
521
  }
522
+ hide() {
523
+ this.logger.trace("hide");
524
+ let e = this.closingFromOverlay;
525
+ this.isOpen = !1, this.closingFromOverlay = !1, this.transitionService.run(this.element, (t) => {
526
+ this.ea.publish(E.MenuStatus, { status: R.Closing }), e || this.ea.publish(E.Overlay, { action: k.Close }), w(t, "menu", "hide"), w(this.p.document.body, "menu-page", "hide", t), t.ariaHidden = "true";
527
+ }, (e) => {
528
+ this.ea.publish(E.MenuStatus, { status: R.Closed });
529
+ });
530
+ }
531
+ onStopTrapFocus = () => (this.logger.trace("onStopTrapFocus"), this.hide(), Promise.resolve());
514
532
  onClickClose = (e) => {
515
533
  this.logger.trace("onClickClose", e), e.preventDefault(), this.close();
516
534
  };
535
+ onClickLink = (e) => {
536
+ let t = e.target.closest("a");
537
+ t !== null && this.isOpen === !0 && (this.logger.trace("onClickLink", t), this.close());
538
+ };
517
539
  onClickToggleButtons = (e) => {
518
540
  let t = e.target.closest("[data-menu^=\"toggle-button\"]");
519
541
  t && t.matches("[data-menu^=\"toggle-button\"]") && (e.preventDefault(), this.toggleButton(t));
@@ -553,10 +575,10 @@ var ge = u("bleet-menu"), _e, W;
553
575
  }
554
576
  }
555
577
  onMenuEvent = (e) => {
556
- 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());
578
+ this.logger.trace("onMenuEvent", e), e.action === L.Close ? (this.logger.trace("Menu Close action received"), this.close()) : e.action === L.Open ? (this.logger.trace("Menu Open action received"), this.open()) : e.action === L.Toggle && (this.logger.trace("Menu Toggle action received"), this.isOpen === !0 ? this.close() : this.open());
557
579
  };
558
580
  onOverlayStatus = (e) => {
559
- e.status === k.Closing ? (this.logger.trace("Overlay Close action received"), this.close(!0)) : this.logger.trace("onOverlayStatus unhandled", e);
581
+ e.status === A.Closing ? (this.logger.trace("Overlay Close action received"), this.close(!0)) : this.logger.trace("onOverlayStatus unhandled", e);
560
582
  };
561
583
  static {
562
584
  _e();
@@ -697,13 +719,13 @@ function Se(e, t, n, r, i, a) {
697
719
  var Ce = u({
698
720
  name: "bleet-badge",
699
721
  defaultProperty: "id"
700
- }), we, Te, Ee, G;
722
+ }), we, Te, Ee, K;
701
723
  (class {
702
724
  logger;
703
725
  ea;
704
726
  element;
705
727
  static {
706
- ({e: [Te, Ee], c: [G, we]} = Se(this, [Ce], [[
728
+ ({e: [Te, Ee], c: [K, we]} = Se(this, [Ce], [[
707
729
  l,
708
730
  0,
709
731
  "id"
@@ -862,13 +884,13 @@ function je(e, t, n, r, i, a) {
862
884
  }
863
885
  };
864
886
  }
865
- var Me = u("bleet-dropdown"), Ne, K;
887
+ var Me = u("bleet-dropdown"), Ne, q;
866
888
  (class {
867
889
  logger;
868
890
  element;
869
891
  trapFocusService;
870
892
  static {
871
- ({c: [K, Ne]} = je(this, [Me], []));
893
+ ({c: [q, Ne]} = je(this, [Me], []));
872
894
  }
873
895
  constructor(e = m(o).scopeTo("bleet-dropdown"), t = m(s), n = m(S)) {
874
896
  this.logger = e, this.element = t, this.trapFocusService = n, this.logger.trace("constructor");
@@ -1172,12 +1194,12 @@ function Re(e, t, n, r, i, a) {
1172
1194
  }
1173
1195
  };
1174
1196
  }
1175
- var ze = u("bleet-password"), Be, q;
1197
+ var ze = u("bleet-password"), Be, J;
1176
1198
  (class {
1177
1199
  logger;
1178
1200
  element;
1179
1201
  static {
1180
- ({c: [q, Be]} = Re(this, [ze], []));
1202
+ ({c: [J, Be]} = Re(this, [ze], []));
1181
1203
  }
1182
1204
  constructor(e = m(o).scopeTo("bleet-password"), t = m(s)) {
1183
1205
  this.logger = e, this.element = t;
@@ -1336,13 +1358,13 @@ function Ge(e, t, n, r, i, a) {
1336
1358
  }
1337
1359
  };
1338
1360
  }
1339
- var Ke = u("bleet-tabs"), qe, J;
1361
+ var Ke = u("bleet-tabs"), qe, Y;
1340
1362
  (class {
1341
1363
  logger;
1342
1364
  element;
1343
1365
  p;
1344
1366
  static {
1345
- ({c: [J, qe]} = Ge(this, [Ke], []));
1367
+ ({c: [Y, qe]} = Ge(this, [Ke], []));
1346
1368
  }
1347
1369
  constructor(e = m(o).scopeTo("bleet-tabs"), t = m(s), n = m(c)) {
1348
1370
  this.logger = e, this.element = t, this.p = n, this.logger.trace("constructor");
@@ -1518,7 +1540,7 @@ function Qe(e, t, n, r, i, a) {
1518
1540
  var $e = u({
1519
1541
  name: "bleet-profile",
1520
1542
  defaultProperty: "id"
1521
- }), et, tt, nt, Y;
1543
+ }), et, tt, nt, X;
1522
1544
  (class {
1523
1545
  logger;
1524
1546
  ea;
@@ -1527,7 +1549,7 @@ var $e = u({
1527
1549
  p;
1528
1550
  trapFocusService;
1529
1551
  static {
1530
- ({e: [tt, nt], c: [Y, et]} = Qe(this, [$e], [[
1552
+ ({e: [tt, nt], c: [X, et]} = Qe(this, [$e], [[
1531
1553
  l,
1532
1554
  0,
1533
1555
  "id"
@@ -1558,17 +1580,17 @@ var $e = u({
1558
1580
  };
1559
1581
  onStopTrapFocus = () => (this.logger.trace("onStopTrapFocus"), this.isOpen = !1, this.toggleButton?.setAttribute("aria-expanded", "false"), this.transitionService.run(this.panel, (e) => {
1560
1582
  this.ea.publish(E.Profile, {
1561
- action: A.Close,
1583
+ action: j.Close,
1562
1584
  id: this.id
1563
1585
  }), this.ea.publish(E.ProfileStatus, {
1564
- status: j.Closing,
1586
+ status: M.Closing,
1565
1587
  id: this.id
1566
1588
  }), this.p.requestAnimationFrame(() => {
1567
1589
  w(e, "profile", "hide");
1568
1590
  });
1569
1591
  }, (e) => {
1570
1592
  e.hidden = !0, this.ea.publish(E.ProfileStatus, {
1571
- status: j.Closed,
1593
+ status: M.Closed,
1572
1594
  id: this.id
1573
1595
  });
1574
1596
  }), Promise.resolve());
@@ -1578,17 +1600,17 @@ var $e = u({
1578
1600
  return this.trapFocusService.start(this.toggleButton, this.panel, this.element, void 0, this.onStopTrapFocus, e).then(() => {
1579
1601
  this.panel.hidden = !1, this.transitionService.run(this.panel, (e) => {
1580
1602
  this.ea.publish(E.Profile, {
1581
- action: A.Open,
1603
+ action: j.Open,
1582
1604
  id: this.id
1583
1605
  }), this.ea.publish(E.ProfileStatus, {
1584
- status: j.Opening,
1606
+ status: M.Opening,
1585
1607
  id: this.id
1586
1608
  }), this.p.requestAnimationFrame(() => {
1587
1609
  w(e, "profile", "show");
1588
1610
  });
1589
1611
  }, () => {
1590
1612
  this.ea.publish(E.ProfileStatus, {
1591
- status: j.Opened,
1613
+ status: M.Opened,
1592
1614
  id: this.id
1593
1615
  });
1594
1616
  });
@@ -1600,7 +1622,7 @@ var $e = u({
1600
1622
  onProfileEvent = (e) => {
1601
1623
  this.logger.trace("onProfileEvent", e);
1602
1624
  let t = e.id === void 0 || e.id === this.id;
1603
- e.action === A.Close && t && this.isOpen && (this.logger.trace("Profile Close action received"), this.close());
1625
+ e.action === j.Close && t && this.isOpen && (this.logger.trace("Profile Close action received"), this.close());
1604
1626
  };
1605
1627
  static {
1606
1628
  et();
@@ -1741,13 +1763,13 @@ function st(e, t, n, r, i, a) {
1741
1763
  var ct = u({
1742
1764
  name: "bleet-toaster-trigger",
1743
1765
  defaultProperty: "id"
1744
- }), lt, ut = l(), dt = l(), ft = l(), pt = l(), mt = l(), ht, gt, _t, vt, yt, bt, xt, St, Ct, wt, Tt, Et, X;
1766
+ }), lt, ut = l(), dt = l(), ft = l(), pt = l(), mt = l(), ht, gt, _t, vt, yt, bt, xt, St, Ct, wt, Tt, Et, Z;
1745
1767
  (class {
1746
1768
  logger;
1747
1769
  element;
1748
1770
  ea;
1749
1771
  static {
1750
- ({e: [ht, gt, _t, vt, yt, bt, xt, St, Ct, wt, Tt, Et], c: [X, lt]} = st(this, [ct], [
1772
+ ({e: [ht, gt, _t, vt, yt, bt, xt, St, Ct, wt, Tt, Et], c: [Z, lt]} = st(this, [ct], [
1751
1773
  [
1752
1774
  l,
1753
1775
  0,
@@ -1784,8 +1806,8 @@ var ct = u({
1784
1806
  this.logger = e, this.element = t, this.ea = n, this.logger.trace("constructor");
1785
1807
  }
1786
1808
  id = ht(this, "");
1787
- level = (gt(this), _t(this, B.Info));
1788
- icon = (vt(this), yt(this, V.Info));
1809
+ level = (gt(this), _t(this, V.Info));
1810
+ icon = (vt(this), yt(this, H.Info));
1789
1811
  title = (bt(this), xt(this, ""));
1790
1812
  content = (St(this), Ct(this, ""));
1791
1813
  duration = (wt(this), Tt(this, 0));
@@ -1800,7 +1822,7 @@ var ct = u({
1800
1822
  }
1801
1823
  onClick = (Et(this), (e) => {
1802
1824
  this.logger.trace("onClick", e), e.preventDefault(), this.ea.publish(E.Toaster, {
1803
- action: F.Add,
1825
+ action: I.Add,
1804
1826
  toast: {
1805
1827
  id: this.id,
1806
1828
  duration: this.duration,
@@ -1947,14 +1969,14 @@ function jt(e, t, n, r, i, a) {
1947
1969
  }
1948
1970
  };
1949
1971
  }
1950
- var Mt = u("bleet-alert"), Nt, Z;
1972
+ var Mt = u("bleet-alert"), Nt, Q;
1951
1973
  (class {
1952
1974
  logger;
1953
1975
  element;
1954
1976
  p;
1955
1977
  transitionService;
1956
1978
  static {
1957
- ({c: [Z, Nt]} = jt(this, [Mt], []));
1979
+ ({c: [Q, Nt]} = jt(this, [Mt], []));
1958
1980
  }
1959
1981
  constructor(e = m(o).scopeTo("bleet-alert"), t = m(s), n = m(c), r = m(b)) {
1960
1982
  this.logger = e, this.element = t, this.p = n, this.transitionService = r, this.logger.trace("constructor");
@@ -2118,13 +2140,13 @@ function Rt(e, t, n, r, i, a) {
2118
2140
  var zt = u({
2119
2141
  name: "bleet-modal-trigger",
2120
2142
  defaultProperty: "id"
2121
- }), Bt, Vt = l(), Ht, Ut, Wt, Gt, Q;
2143
+ }), Bt, Vt = l(), Ht, Ut, Wt, Gt, $;
2122
2144
  (class {
2123
2145
  logger;
2124
2146
  element;
2125
2147
  ea;
2126
2148
  static {
2127
- ({e: [Ht, Ut, Wt, Gt], c: [Q, Bt]} = Rt(this, [zt], [[
2149
+ ({e: [Ht, Ut, Wt, Gt], c: [$, Bt]} = Rt(this, [zt], [[
2128
2150
  l,
2129
2151
  0,
2130
2152
  "id"
@@ -2153,7 +2175,7 @@ var zt = u({
2153
2175
  }
2154
2176
  onClick = (Gt(this), (e) => {
2155
2177
  this.logger.trace("onClick", e), e.preventDefault(), this.ea.publish(E.Modal, {
2156
- action: M.Toggle,
2178
+ action: N.Toggle,
2157
2179
  id: this.id,
2158
2180
  url: this.url
2159
2181
  });
@@ -2294,13 +2316,13 @@ function Xt(e, t, n, r, i, a) {
2294
2316
  }
2295
2317
  };
2296
2318
  }
2297
- var Zt = u("bleet-pager"), Qt, $;
2319
+ var Zt = u("bleet-pager"), Qt, $t;
2298
2320
  (class {
2299
2321
  logger;
2300
2322
  element;
2301
2323
  p;
2302
2324
  static {
2303
- ({c: [$, Qt]} = Xt(this, [Zt], []));
2325
+ ({c: [$t, Qt]} = Xt(this, [Zt], []));
2304
2326
  }
2305
2327
  constructor(e = m(o).scopeTo("bleet-pager"), t = m(s), n = m(c)) {
2306
2328
  this.logger = e, this.element = t, this.p = n, this.logger.trace("constructor");
@@ -2326,7 +2348,7 @@ var Zt = u("bleet-pager"), Qt, $;
2326
2348
  });
2327
2349
  //#endregion
2328
2350
  //#region src/attributes/ajaxify-trigger.ts
2329
- function $t(e, t) {
2351
+ function en(e, t) {
2330
2352
  if (typeof e != "object" || !e) return e;
2331
2353
  var n = e[Symbol.toPrimitive];
2332
2354
  if (n !== void 0) {
@@ -2336,15 +2358,15 @@ function $t(e, t) {
2336
2358
  }
2337
2359
  return (t === "string" ? String : Number)(e);
2338
2360
  }
2339
- function en(e) {
2340
- var t = $t(e, "string");
2361
+ function tn(e) {
2362
+ var t = en(e, "string");
2341
2363
  return typeof t == "symbol" ? t : String(t);
2342
2364
  }
2343
- function tn(e) {
2365
+ function nn(e) {
2344
2366
  if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
2345
2367
  return e;
2346
2368
  }
2347
- function nn(e, t, n) {
2369
+ function rn(e, t, n) {
2348
2370
  typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
2349
2371
  try {
2350
2372
  Object.defineProperty(e, "name", {
@@ -2354,7 +2376,7 @@ function nn(e, t, n) {
2354
2376
  } catch {}
2355
2377
  return e;
2356
2378
  }
2357
- function rn(e, t, n, r, i, a) {
2379
+ function an(e, t, n, r, i, a) {
2358
2380
  var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
2359
2381
  function p(t, n, r) {
2360
2382
  return function(i, a) {
@@ -2379,13 +2401,13 @@ function rn(e, t, n, r, i, a) {
2379
2401
  }
2380
2402
  var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
2381
2403
  if (!b && (d ? (h || x ? E = {
2382
- get: nn(function() {
2404
+ get: rn(function() {
2383
2405
  return y(this);
2384
2406
  }, r, "get"),
2385
2407
  set: function(e) {
2386
2408
  t[4](this, e);
2387
2409
  }
2388
- } : E[O] = y, h || nn(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
2410
+ } : E[O] = y, h || rn(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
2389
2411
  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");
2390
2412
  u[+c][r] = i < 3 ? 1 : i;
2391
2413
  }
@@ -2433,8 +2455,8 @@ function rn(e, t, n, r, i, a) {
2433
2455
  var l = n[c], u = l[1], d = u & 7;
2434
2456
  if ((u & 8) == o && !d == s) {
2435
2457
  var f = l[2], p = !!l[3], m = u & 16;
2436
- 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) {
2437
- return tn(t) === e;
2458
+ h(o ? e : e.prototype, l, m, p ? "#" + f : tn(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
2459
+ return nn(t) === e;
2438
2460
  } : i);
2439
2461
  }
2440
2462
  }
@@ -2456,10 +2478,10 @@ function rn(e, t, n, r, i, a) {
2456
2478
  }
2457
2479
  };
2458
2480
  }
2459
- var an = u({
2481
+ var on = u({
2460
2482
  name: "bleet-ajaxify-trigger",
2461
2483
  defaultProperty: "url"
2462
- }), 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;
2484
+ }), sn, cn = l(), ln = l(), un = l(), dn = l(), fn = l(), pn = l(), mn = l(), hn = l(), gn, _n, vn, yn, bn, xn, Sn, Cn, wn, Tn, En, Dn, On, kn, An, jn, Mn, Nn, Pn;
2463
2485
  (class {
2464
2486
  logger;
2465
2487
  element;
@@ -2467,49 +2489,49 @@ var an = u({
2467
2489
  apiService;
2468
2490
  p;
2469
2491
  static {
2470
- ({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], [
2492
+ ({e: [gn, _n, vn, yn, bn, xn, Sn, Cn, wn, Tn, En, Dn, On, kn, An, jn, Mn, Nn], c: [Pn, sn]} = an(this, [on], [
2471
2493
  [
2472
2494
  l,
2473
2495
  0,
2474
2496
  "url"
2475
2497
  ],
2476
2498
  [
2477
- sn,
2499
+ cn,
2478
2500
  0,
2479
2501
  "verb"
2480
2502
  ],
2481
2503
  [
2482
- cn,
2504
+ ln,
2483
2505
  0,
2484
2506
  "event"
2485
2507
  ],
2486
2508
  [
2487
- ln,
2509
+ un,
2488
2510
  0,
2489
2511
  "id"
2490
2512
  ],
2491
2513
  [
2492
- un,
2514
+ dn,
2493
2515
  0,
2494
2516
  "mode"
2495
2517
  ],
2496
2518
  [
2497
- dn,
2519
+ fn,
2498
2520
  0,
2499
2521
  "target"
2500
2522
  ],
2501
2523
  [
2502
- fn,
2524
+ pn,
2503
2525
  0,
2504
2526
  "method"
2505
2527
  ],
2506
2528
  [
2507
- pn,
2529
+ mn,
2508
2530
  0,
2509
2531
  "errorTitle"
2510
2532
  ],
2511
2533
  [
2512
- mn,
2534
+ hn,
2513
2535
  0,
2514
2536
  "errorContent"
2515
2537
  ]
@@ -2518,15 +2540,15 @@ var an = u({
2518
2540
  constructor(e = m(o).scopeTo("bleet-ajaxify-trigger"), t = m(s), r = m(a), i = m(n), l = m(c)) {
2519
2541
  this.logger = e, this.element = t, this.ea = r, this.apiService = i, this.p = l, this.logger.trace("constructor");
2520
2542
  }
2521
- url = hn(this, "");
2522
- verb = (gn(this), _n(this, ""));
2523
- event = (vn(this), yn(this, "click"));
2524
- id = (bn(this), xn(this, ""));
2525
- mode = (Sn(this), Cn(this, ee.Classic));
2526
- target = (wn(this), Tn(this, ""));
2527
- method = (En(this), Dn(this, "POST"));
2528
- errorTitle = (On(this), kn(this, ""));
2529
- errorContent = (An(this), jn(this, ""));
2543
+ url = gn(this, "");
2544
+ verb = (_n(this), vn(this, ""));
2545
+ event = (yn(this), bn(this, "click"));
2546
+ id = (xn(this), Sn(this, ""));
2547
+ mode = (Cn(this), wn(this, ee.Classic));
2548
+ target = (Tn(this), En(this, ""));
2549
+ method = (Dn(this), On(this, "POST"));
2550
+ errorTitle = (kn(this), An(this, ""));
2551
+ errorContent = (jn(this), Mn(this, ""));
2530
2552
  attached() {
2531
2553
  this.logger.trace("attached", {
2532
2554
  url: this.url,
@@ -2538,7 +2560,7 @@ var an = u({
2538
2560
  detaching() {
2539
2561
  this.logger.trace("detaching"), this.element.removeEventListener(this.event, this.onTrigger);
2540
2562
  }
2541
- onTrigger = (Mn(this), (e) => {
2563
+ onTrigger = (Nn(this), (e) => {
2542
2564
  e.preventDefault(), e.stopPropagation(), this.logger.trace("onTrigger", e), this.mode === ee.PublishOnly ? this.onTriggerPublishOnly() : this.onTriggerClassic(e);
2543
2565
  });
2544
2566
  onTriggerPublishOnly() {
@@ -2561,7 +2583,7 @@ var an = u({
2561
2583
  let e = this.element.querySelectorAll("input:disabled, select:disabled, textarea:disabled");
2562
2584
  for (let t of Array.from(e)) t.disabled = !1;
2563
2585
  this.ea.publish(E.Ajaxify, {
2564
- action: P.Run,
2586
+ action: F.Run,
2565
2587
  id: this.target,
2566
2588
  url: this.url || void 0,
2567
2589
  method: this.method
@@ -2580,14 +2602,14 @@ var an = u({
2580
2602
  let i = this.buildFormData(e);
2581
2603
  this.apiService.url(n).fromMultipart(i).request(r).then((e) => {
2582
2604
  this.logger.debug("response", e.body), e.body.element && this.updateElement(e.body.element), e.body.toast && this.ea.publish(E.Toaster, {
2583
- action: F.Add,
2605
+ action: I.Add,
2584
2606
  toast: e.body.toast
2585
2607
  }), e.body.ajaxify && this.ea.publish(E.Ajaxify, e.body.ajaxify);
2586
2608
  }).catch((e) => {
2587
2609
  this.logger.error("AJAX request failed", e), this.errorContent !== "" && this.ea.publish(E.Toaster, {
2588
- action: F.Add,
2610
+ action: I.Add,
2589
2611
  toast: {
2590
- level: B.Danger,
2612
+ level: V.Danger,
2591
2613
  title: this.errorTitle,
2592
2614
  content: this.errorContent,
2593
2615
  duration: 5e3
@@ -2634,12 +2656,12 @@ var an = u({
2634
2656
  for (let e = 0; e < r.length; e++) e < n.length && this.syncElement(n[e], r[e]);
2635
2657
  }
2636
2658
  static {
2637
- on();
2659
+ sn();
2638
2660
  }
2639
2661
  });
2640
2662
  //#endregion
2641
2663
  //#region src/attributes/popover.ts
2642
- function Pn(e, t) {
2664
+ function Fn(e, t) {
2643
2665
  if (typeof e != "object" || !e) return e;
2644
2666
  var n = e[Symbol.toPrimitive];
2645
2667
  if (n !== void 0) {
@@ -2649,15 +2671,15 @@ function Pn(e, t) {
2649
2671
  }
2650
2672
  return (t === "string" ? String : Number)(e);
2651
2673
  }
2652
- function Fn(e) {
2653
- var t = Pn(e, "string");
2674
+ function In(e) {
2675
+ var t = Fn(e, "string");
2654
2676
  return typeof t == "symbol" ? t : String(t);
2655
2677
  }
2656
- function In(e) {
2678
+ function Ln(e) {
2657
2679
  if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
2658
2680
  return e;
2659
2681
  }
2660
- function Ln(e, t, n) {
2682
+ function Rn(e, t, n) {
2661
2683
  typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
2662
2684
  try {
2663
2685
  Object.defineProperty(e, "name", {
@@ -2667,7 +2689,7 @@ function Ln(e, t, n) {
2667
2689
  } catch {}
2668
2690
  return e;
2669
2691
  }
2670
- function Rn(e, t, n, r, i, a) {
2692
+ function zn(e, t, n, r, i, a) {
2671
2693
  var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
2672
2694
  function p(t, n, r) {
2673
2695
  return function(i, a) {
@@ -2692,13 +2714,13 @@ function Rn(e, t, n, r, i, a) {
2692
2714
  }
2693
2715
  var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
2694
2716
  if (!b && (d ? (h || x ? E = {
2695
- get: Ln(function() {
2717
+ get: Rn(function() {
2696
2718
  return y(this);
2697
2719
  }, r, "get"),
2698
2720
  set: function(e) {
2699
2721
  t[4](this, e);
2700
2722
  }
2701
- } : E[O] = y, h || Ln(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
2723
+ } : E[O] = y, h || Rn(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
2702
2724
  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");
2703
2725
  u[+c][r] = i < 3 ? 1 : i;
2704
2726
  }
@@ -2746,8 +2768,8 @@ function Rn(e, t, n, r, i, a) {
2746
2768
  var l = n[c], u = l[1], d = u & 7;
2747
2769
  if ((u & 8) == o && !d == s) {
2748
2770
  var f = l[2], p = !!l[3], m = u & 16;
2749
- 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) {
2750
- return In(t) === e;
2771
+ h(o ? e : e.prototype, l, m, p ? "#" + f : In(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
2772
+ return Ln(t) === e;
2751
2773
  } : i);
2752
2774
  }
2753
2775
  }
@@ -2769,17 +2791,17 @@ function Rn(e, t, n, r, i, a) {
2769
2791
  }
2770
2792
  };
2771
2793
  }
2772
- var zn = u({
2794
+ var Bn = u({
2773
2795
  name: "bleet-popover",
2774
2796
  defaultProperty: "id"
2775
- }), Bn, Vn, Hn, Un;
2797
+ }), Vn, Hn, Un, Wn;
2776
2798
  (class {
2777
2799
  logger;
2778
2800
  element;
2779
2801
  ea;
2780
2802
  p;
2781
2803
  static {
2782
- ({e: [Vn, Hn], c: [Un, Bn]} = Rn(this, [zn], [[
2804
+ ({e: [Hn, Un], c: [Wn, Vn]} = zn(this, [Bn], [[
2783
2805
  l,
2784
2806
  0,
2785
2807
  "id"
@@ -2788,8 +2810,8 @@ var zn = u({
2788
2810
  constructor(e = m(o).scopeTo("bleet-popover"), t = m(s), n = m(a), r = m(c)) {
2789
2811
  this.logger = e, this.element = t, this.ea = n, this.p = r, this.logger.trace("constructor");
2790
2812
  }
2791
- id = Vn(this, "");
2792
- isOpen = (Hn(this), !1);
2813
+ id = Hn(this, "");
2814
+ isOpen = (Un(this), !1);
2793
2815
  subscription = null;
2794
2816
  attaching() {
2795
2817
  this.logger.trace("attaching"), this.subscription = this.ea.subscribe(E.Popover, this.onPopover);
@@ -2805,24 +2827,24 @@ var zn = u({
2805
2827
  }
2806
2828
  onPopover = (e) => {
2807
2829
  if (e.id === this.id) switch (e.action) {
2808
- case R.Open:
2830
+ case z.Open:
2809
2831
  this.open(e.rect);
2810
2832
  break;
2811
- case R.Close:
2833
+ case z.Close:
2812
2834
  this.close();
2813
2835
  break;
2814
- case R.Toggle: this.isOpen ? this.close() : this.open(e.rect);
2836
+ case z.Toggle: this.isOpen ? this.close() : this.open(e.rect);
2815
2837
  }
2816
2838
  };
2817
2839
  open(e) {
2818
2840
  this.isOpen = !0, w(this.element, "popover", "show"), e && this.positionAt(e), this.ea.publish(E.PopoverStatus, {
2819
- status: z.Opened,
2841
+ status: B.Opened,
2820
2842
  id: this.id
2821
2843
  });
2822
2844
  }
2823
2845
  close() {
2824
2846
  this.isOpen = !1, w(this.element, "popover", "hide"), this.ea.publish(E.PopoverStatus, {
2825
- status: z.Closed,
2847
+ status: B.Closed,
2826
2848
  id: this.id
2827
2849
  });
2828
2850
  }
@@ -2832,12 +2854,12 @@ var zn = u({
2832
2854
  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 = "";
2833
2855
  }
2834
2856
  static {
2835
- Bn();
2857
+ Vn();
2836
2858
  }
2837
2859
  });
2838
2860
  //#endregion
2839
2861
  //#region src/attributes/popover-trigger.ts
2840
- function Wn(e, t) {
2862
+ function Gn(e, t) {
2841
2863
  if (typeof e != "object" || !e) return e;
2842
2864
  var n = e[Symbol.toPrimitive];
2843
2865
  if (n !== void 0) {
@@ -2847,15 +2869,15 @@ function Wn(e, t) {
2847
2869
  }
2848
2870
  return (t === "string" ? String : Number)(e);
2849
2871
  }
2850
- function Gn(e) {
2851
- var t = Wn(e, "string");
2872
+ function Kn(e) {
2873
+ var t = Gn(e, "string");
2852
2874
  return typeof t == "symbol" ? t : String(t);
2853
2875
  }
2854
- function Kn(e) {
2876
+ function qn(e) {
2855
2877
  if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
2856
2878
  return e;
2857
2879
  }
2858
- function qn(e, t, n) {
2880
+ function Jn(e, t, n) {
2859
2881
  typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
2860
2882
  try {
2861
2883
  Object.defineProperty(e, "name", {
@@ -2865,7 +2887,7 @@ function qn(e, t, n) {
2865
2887
  } catch {}
2866
2888
  return e;
2867
2889
  }
2868
- function Jn(e, t, n, r, i, a) {
2890
+ function Yn(e, t, n, r, i, a) {
2869
2891
  var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
2870
2892
  function p(t, n, r) {
2871
2893
  return function(i, a) {
@@ -2890,13 +2912,13 @@ function Jn(e, t, n, r, i, a) {
2890
2912
  }
2891
2913
  var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
2892
2914
  if (!b && (d ? (h || x ? E = {
2893
- get: qn(function() {
2915
+ get: Jn(function() {
2894
2916
  return y(this);
2895
2917
  }, r, "get"),
2896
2918
  set: function(e) {
2897
2919
  t[4](this, e);
2898
2920
  }
2899
- } : E[O] = y, h || qn(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
2921
+ } : E[O] = y, h || Jn(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
2900
2922
  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");
2901
2923
  u[+c][r] = i < 3 ? 1 : i;
2902
2924
  }
@@ -2944,8 +2966,8 @@ function Jn(e, t, n, r, i, a) {
2944
2966
  var l = n[c], u = l[1], d = u & 7;
2945
2967
  if ((u & 8) == o && !d == s) {
2946
2968
  var f = l[2], p = !!l[3], m = u & 16;
2947
- 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) {
2948
- return Kn(t) === e;
2969
+ h(o ? e : e.prototype, l, m, p ? "#" + f : Kn(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
2970
+ return qn(t) === e;
2949
2971
  } : i);
2950
2972
  }
2951
2973
  }
@@ -2967,21 +2989,21 @@ function Jn(e, t, n, r, i, a) {
2967
2989
  }
2968
2990
  };
2969
2991
  }
2970
- var Yn = u({
2992
+ var Xn = u({
2971
2993
  name: "bleet-popover-trigger",
2972
2994
  defaultProperty: "id"
2973
- }), Xn, Zn = l(), Qn, $n, er, tr, nr;
2995
+ }), Zn, Qn = l(), $n, er, tr, nr, rr;
2974
2996
  (class {
2975
2997
  logger;
2976
2998
  element;
2977
2999
  ea;
2978
3000
  static {
2979
- ({e: [Qn, $n, er, tr], c: [nr, Xn]} = Jn(this, [Yn], [[
3001
+ ({e: [$n, er, tr, nr], c: [rr, Zn]} = Yn(this, [Xn], [[
2980
3002
  l,
2981
3003
  0,
2982
3004
  "id"
2983
3005
  ], [
2984
- Zn,
3006
+ Qn,
2985
3007
  0,
2986
3008
  "absolute"
2987
3009
  ]]));
@@ -2989,8 +3011,8 @@ var Yn = u({
2989
3011
  constructor(e = m(o).scopeTo("bleet-popover-trigger"), t = m(s), n = m(a)) {
2990
3012
  this.logger = e, this.element = t, this.ea = n, this.logger.trace("constructor");
2991
3013
  }
2992
- id = Qn(this, "");
2993
- absolute = ($n(this), er(this, !0));
3014
+ id = $n(this, "");
3015
+ absolute = (er(this), tr(this, !0));
2994
3016
  attached() {
2995
3017
  this.logger.trace("attached"), this.element.addEventListener("mouseenter", this.onMouseEnter), this.element.addEventListener("mouseleave", this.onMouseLeave);
2996
3018
  }
@@ -3000,43 +3022,43 @@ var Yn = u({
3000
3022
  dispose() {
3001
3023
  this.logger.trace("dispose");
3002
3024
  }
3003
- onMouseEnter = (tr(this), () => {
3025
+ onMouseEnter = (nr(this), () => {
3004
3026
  this.ea.publish(E.Popover, {
3005
3027
  id: this.id,
3006
- action: R.Open,
3028
+ action: z.Open,
3007
3029
  rect: this.absolute ? this.element.getBoundingClientRect() : void 0
3008
3030
  });
3009
3031
  });
3010
3032
  onMouseLeave = () => {
3011
3033
  this.ea.publish(E.Popover, {
3012
3034
  id: this.id,
3013
- action: R.Close
3035
+ action: z.Close
3014
3036
  });
3015
3037
  };
3016
3038
  static {
3017
- Xn();
3039
+ Zn();
3018
3040
  }
3019
3041
  });
3020
3042
  //#endregion
3021
3043
  //#region src/utils/toaster.ts
3022
- function rr(e) {
3044
+ function ir(e) {
3023
3045
  return {
3024
3046
  ...e,
3025
3047
  id: e.id || `toast-${Math.random().toString(36).substring(2, 15)}`,
3026
- level: e.level || B.Info,
3027
- icon: e.icon || V.Info,
3048
+ level: e.level || V.Info,
3049
+ icon: e.icon || H.Info,
3028
3050
  duration: e.duration || 0
3029
3051
  };
3030
3052
  }
3031
- function ir(e) {
3053
+ function ar(e) {
3032
3054
  e.hasAttribute("popover") === !0 && (e.matches(":popover-open") === !0 && e.hidePopover(), e.showPopover());
3033
3055
  }
3034
- function ar(e) {
3056
+ function or(e) {
3035
3057
  e.hasAttribute("popover") === !0 && e.matches(":popover-open") === !0 && e.hidePopover();
3036
3058
  }
3037
3059
  //#endregion
3038
3060
  //#region src/attributes/toaster.ts
3039
- function or(e, t) {
3061
+ function sr(e, t) {
3040
3062
  if (typeof e != "object" || !e) return e;
3041
3063
  var n = e[Symbol.toPrimitive];
3042
3064
  if (n !== void 0) {
@@ -3046,15 +3068,15 @@ function or(e, t) {
3046
3068
  }
3047
3069
  return (t === "string" ? String : Number)(e);
3048
3070
  }
3049
- function sr(e) {
3050
- var t = or(e, "string");
3071
+ function cr(e) {
3072
+ var t = sr(e, "string");
3051
3073
  return typeof t == "symbol" ? t : String(t);
3052
3074
  }
3053
- function cr(e) {
3075
+ function lr(e) {
3054
3076
  if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
3055
3077
  return e;
3056
3078
  }
3057
- function lr(e, t, n) {
3079
+ function ur(e, t, n) {
3058
3080
  typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
3059
3081
  try {
3060
3082
  Object.defineProperty(e, "name", {
@@ -3064,7 +3086,7 @@ function lr(e, t, n) {
3064
3086
  } catch {}
3065
3087
  return e;
3066
3088
  }
3067
- function ur(e, t, n, r, i, a) {
3089
+ function dr(e, t, n, r, i, a) {
3068
3090
  var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
3069
3091
  function p(t, n, r) {
3070
3092
  return function(i, a) {
@@ -3089,13 +3111,13 @@ function ur(e, t, n, r, i, a) {
3089
3111
  }
3090
3112
  var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
3091
3113
  if (!b && (d ? (h || x ? E = {
3092
- get: lr(function() {
3114
+ get: ur(function() {
3093
3115
  return y(this);
3094
3116
  }, r, "get"),
3095
3117
  set: function(e) {
3096
3118
  t[4](this, e);
3097
3119
  }
3098
- } : E[O] = y, h || lr(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
3120
+ } : E[O] = y, h || ur(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
3099
3121
  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");
3100
3122
  u[+c][r] = i < 3 ? 1 : i;
3101
3123
  }
@@ -3143,8 +3165,8 @@ function ur(e, t, n, r, i, a) {
3143
3165
  var l = n[c], u = l[1], d = u & 7;
3144
3166
  if ((u & 8) == o && !d == s) {
3145
3167
  var f = l[2], p = !!l[3], m = u & 16;
3146
- 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) {
3147
- return cr(t) === e;
3168
+ h(o ? e : e.prototype, l, m, p ? "#" + f : cr(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
3169
+ return lr(t) === e;
3148
3170
  } : i);
3149
3171
  }
3150
3172
  }
@@ -3166,7 +3188,7 @@ function ur(e, t, n, r, i, a) {
3166
3188
  }
3167
3189
  };
3168
3190
  }
3169
- var dr = u("bleet-toaster"), fr, pr;
3191
+ var fr = u("bleet-toaster"), pr, mr;
3170
3192
  (class {
3171
3193
  logger;
3172
3194
  element;
@@ -3174,7 +3196,7 @@ var dr = u("bleet-toaster"), fr, pr;
3174
3196
  p;
3175
3197
  transitionService;
3176
3198
  static {
3177
- ({c: [pr, fr]} = ur(this, [dr], []));
3199
+ ({c: [mr, pr]} = dr(this, [fr], []));
3178
3200
  }
3179
3201
  constructor(e = m(o).scopeTo("bleet-toaster"), t = m(s), n = m(a), r = m(c), i = m(b)) {
3180
3202
  this.logger = e, this.element = t, this.ea = n, this.p = r, this.transitionService = i, this.logger.trace("constructor");
@@ -3190,10 +3212,10 @@ var dr = u("bleet-toaster"), fr, pr;
3190
3212
  });
3191
3213
  }
3192
3214
  onToasterEvent = (e) => {
3193
- if (this.logger.trace("onToasterEvent", e), e.action === F.Add && e.toast) {
3194
- let t = rr(e.toast);
3215
+ if (this.logger.trace("onToasterEvent", e), e.action === I.Add && e.toast) {
3216
+ let t = ir(e.toast);
3195
3217
  this.toasts.has(t.id) || this.add(t);
3196
- } else e.action === F.Remove && e.toast?.id && this.close(e.toast.id);
3218
+ } else e.action === I.Remove && e.toast?.id && this.close(e.toast.id);
3197
3219
  };
3198
3220
  add(e) {
3199
3221
  let t = this.element.querySelector(`template[data-toaster="${e.level}"]`);
@@ -3211,7 +3233,7 @@ var dr = u("bleet-toaster"), fr, pr;
3211
3233
  element: n,
3212
3234
  closing: !1
3213
3235
  };
3214
- 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) => {
3236
+ this.toasts.set(e.id, s), this.element.appendChild(n), ar(this.element), this.logger.debug(`Toast added with ID: ${e.id}`), this.transitionService.run(n, (t) => {
3215
3237
  e.duration > 0 && (s.closeTimeout = this.p.setTimeout(() => {
3216
3238
  this.close(e.id);
3217
3239
  }, e.duration)), w(t, "toaster", "show");
@@ -3223,16 +3245,16 @@ var dr = u("bleet-toaster"), fr, pr;
3223
3245
  t !== void 0 && t.closing === !1 && (t.closing = !0, t.closeTimeout !== void 0 && this.p.clearTimeout(t.closeTimeout), this.transitionService.run(t.element, (e) => {
3224
3246
  w(e, "toaster", "hide");
3225
3247
  }, (t) => {
3226
- t.remove(), this.toasts.delete(e), this.toasts.size === 0 && ar(this.element), this.logger.debug(`Toast removed with ID: ${e}`);
3248
+ t.remove(), this.toasts.delete(e), this.toasts.size === 0 && or(this.element), this.logger.debug(`Toast removed with ID: ${e}`);
3227
3249
  }));
3228
3250
  }
3229
3251
  static {
3230
- fr();
3252
+ pr();
3231
3253
  }
3232
3254
  });
3233
3255
  //#endregion
3234
3256
  //#region src/attributes/toast.ts
3235
- function mr(e, t) {
3257
+ function hr(e, t) {
3236
3258
  if (typeof e != "object" || !e) return e;
3237
3259
  var n = e[Symbol.toPrimitive];
3238
3260
  if (n !== void 0) {
@@ -3242,15 +3264,15 @@ function mr(e, t) {
3242
3264
  }
3243
3265
  return (t === "string" ? String : Number)(e);
3244
3266
  }
3245
- function hr(e) {
3246
- var t = mr(e, "string");
3267
+ function gr(e) {
3268
+ var t = hr(e, "string");
3247
3269
  return typeof t == "symbol" ? t : String(t);
3248
3270
  }
3249
- function gr(e) {
3271
+ function _r(e) {
3250
3272
  if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
3251
3273
  return e;
3252
3274
  }
3253
- function _r(e, t, n) {
3275
+ function vr(e, t, n) {
3254
3276
  typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
3255
3277
  try {
3256
3278
  Object.defineProperty(e, "name", {
@@ -3260,7 +3282,7 @@ function _r(e, t, n) {
3260
3282
  } catch {}
3261
3283
  return e;
3262
3284
  }
3263
- function vr(e, t, n, r, i, a) {
3285
+ function yr(e, t, n, r, i, a) {
3264
3286
  var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
3265
3287
  function p(t, n, r) {
3266
3288
  return function(i, a) {
@@ -3285,13 +3307,13 @@ function vr(e, t, n, r, i, a) {
3285
3307
  }
3286
3308
  var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
3287
3309
  if (!b && (d ? (h || x ? E = {
3288
- get: _r(function() {
3310
+ get: vr(function() {
3289
3311
  return y(this);
3290
3312
  }, r, "get"),
3291
3313
  set: function(e) {
3292
3314
  t[4](this, e);
3293
3315
  }
3294
- } : E[O] = y, h || _r(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
3316
+ } : E[O] = y, h || vr(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
3295
3317
  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");
3296
3318
  u[+c][r] = i < 3 ? 1 : i;
3297
3319
  }
@@ -3339,8 +3361,8 @@ function vr(e, t, n, r, i, a) {
3339
3361
  var l = n[c], u = l[1], d = u & 7;
3340
3362
  if ((u & 8) == o && !d == s) {
3341
3363
  var f = l[2], p = !!l[3], m = u & 16;
3342
- 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) {
3343
- return gr(t) === e;
3364
+ h(o ? e : e.prototype, l, m, p ? "#" + f : gr(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
3365
+ return _r(t) === e;
3344
3366
  } : i);
3345
3367
  }
3346
3368
  }
@@ -3362,43 +3384,43 @@ function vr(e, t, n, r, i, a) {
3362
3384
  }
3363
3385
  };
3364
3386
  }
3365
- var yr = u({
3387
+ var br = u({
3366
3388
  name: "bleet-toast",
3367
3389
  defaultProperty: "id"
3368
- }), br, xr = l(), Sr = l(), Cr = l(), wr = l(), Tr = l(), Er, Dr, Or, kr, Ar, jr, Mr, Nr, Pr, Fr, Ir, Lr, Rr;
3390
+ }), xr, Sr = l(), Cr = l(), wr = l(), Tr = l(), Er = l(), Dr, Or, kr, Ar, jr, Mr, Nr, Pr, Fr, Ir, Lr, Rr, zr;
3369
3391
  (class {
3370
3392
  logger;
3371
3393
  ea;
3372
3394
  p;
3373
3395
  static {
3374
- ({e: [Er, Dr, Or, kr, Ar, jr, Mr, Nr, Pr, Fr, Ir, Lr], c: [Rr, br]} = vr(this, [yr], [
3396
+ ({e: [Dr, Or, kr, Ar, jr, Mr, Nr, Pr, Fr, Ir, Lr, Rr], c: [zr, xr]} = yr(this, [br], [
3375
3397
  [
3376
3398
  l,
3377
3399
  0,
3378
3400
  "id"
3379
3401
  ],
3380
3402
  [
3381
- xr,
3403
+ Sr,
3382
3404
  0,
3383
3405
  "level"
3384
3406
  ],
3385
3407
  [
3386
- Sr,
3408
+ Cr,
3387
3409
  0,
3388
3410
  "icon"
3389
3411
  ],
3390
3412
  [
3391
- Cr,
3413
+ wr,
3392
3414
  0,
3393
3415
  "title"
3394
3416
  ],
3395
3417
  [
3396
- wr,
3418
+ Tr,
3397
3419
  0,
3398
3420
  "content"
3399
3421
  ],
3400
3422
  [
3401
- Tr,
3423
+ Er,
3402
3424
  0,
3403
3425
  "duration"
3404
3426
  ]
@@ -3407,21 +3429,21 @@ var yr = u({
3407
3429
  constructor(e = m(o).scopeTo("bleet-toast"), t = m(a), n = m(c)) {
3408
3430
  this.logger = e, this.ea = t, this.p = n, this.logger.trace("constructor");
3409
3431
  }
3410
- id = Er(this, "");
3411
- level = (Dr(this), Or(this, B.Info));
3412
- icon = (kr(this), Ar(this, V.Info));
3413
- title = (jr(this), Mr(this, ""));
3414
- content = (Nr(this), Pr(this, ""));
3415
- duration = (Fr(this), Ir(this, 0));
3432
+ id = Dr(this, "");
3433
+ level = (Or(this), kr(this, V.Info));
3434
+ icon = (Ar(this), jr(this, H.Info));
3435
+ title = (Mr(this), Nr(this, ""));
3436
+ content = (Pr(this), Fr(this, ""));
3437
+ duration = (Ir(this), Lr(this, 0));
3416
3438
  attached() {
3417
3439
  this.logger.trace("attached"), this.p.document.readyState === "loading" ? this.p.document.addEventListener("DOMContentLoaded", () => {
3418
3440
  this.publish();
3419
3441
  }, { once: !0 }) : this.publish();
3420
3442
  }
3421
- publish = (Lr(this), () => {
3443
+ publish = (Rr(this), () => {
3422
3444
  this.logger.trace("publish"), p(() => {
3423
3445
  this.ea.publish(E.Toaster, {
3424
- action: F.Add,
3446
+ action: I.Add,
3425
3447
  toast: {
3426
3448
  id: this.id,
3427
3449
  duration: this.duration,
@@ -3434,12 +3456,12 @@ var yr = u({
3434
3456
  });
3435
3457
  });
3436
3458
  static {
3437
- br();
3459
+ xr();
3438
3460
  }
3439
3461
  });
3440
3462
  //#endregion
3441
3463
  //#region src/attributes/overlay.ts
3442
- function zr(e, t) {
3464
+ function Br(e, t) {
3443
3465
  if (typeof e != "object" || !e) return e;
3444
3466
  var n = e[Symbol.toPrimitive];
3445
3467
  if (n !== void 0) {
@@ -3449,15 +3471,15 @@ function zr(e, t) {
3449
3471
  }
3450
3472
  return (t === "string" ? String : Number)(e);
3451
3473
  }
3452
- function Br(e) {
3453
- var t = zr(e, "string");
3474
+ function Vr(e) {
3475
+ var t = Br(e, "string");
3454
3476
  return typeof t == "symbol" ? t : String(t);
3455
3477
  }
3456
- function Vr(e) {
3478
+ function Hr(e) {
3457
3479
  if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
3458
3480
  return e;
3459
3481
  }
3460
- function Hr(e, t, n) {
3482
+ function Ur(e, t, n) {
3461
3483
  typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
3462
3484
  try {
3463
3485
  Object.defineProperty(e, "name", {
@@ -3467,7 +3489,7 @@ function Hr(e, t, n) {
3467
3489
  } catch {}
3468
3490
  return e;
3469
3491
  }
3470
- function Ur(e, t, n, r, i, a) {
3492
+ function Wr(e, t, n, r, i, a) {
3471
3493
  var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
3472
3494
  function p(t, n, r) {
3473
3495
  return function(i, a) {
@@ -3492,13 +3514,13 @@ function Ur(e, t, n, r, i, a) {
3492
3514
  }
3493
3515
  var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
3494
3516
  if (!b && (d ? (h || x ? E = {
3495
- get: Hr(function() {
3517
+ get: Ur(function() {
3496
3518
  return y(this);
3497
3519
  }, r, "get"),
3498
3520
  set: function(e) {
3499
3521
  t[4](this, e);
3500
3522
  }
3501
- } : E[O] = y, h || Hr(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
3523
+ } : E[O] = y, h || Ur(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
3502
3524
  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");
3503
3525
  u[+c][r] = i < 3 ? 1 : i;
3504
3526
  }
@@ -3546,8 +3568,8 @@ function Ur(e, t, n, r, i, a) {
3546
3568
  var l = n[c], u = l[1], d = u & 7;
3547
3569
  if ((u & 8) == o && !d == s) {
3548
3570
  var f = l[2], p = !!l[3], m = u & 16;
3549
- 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) {
3550
- return Vr(t) === e;
3571
+ h(o ? e : e.prototype, l, m, p ? "#" + f : Vr(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
3572
+ return Hr(t) === e;
3551
3573
  } : i);
3552
3574
  }
3553
3575
  }
@@ -3569,7 +3591,7 @@ function Ur(e, t, n, r, i, a) {
3569
3591
  }
3570
3592
  };
3571
3593
  }
3572
- var Wr = u("bleet-overlay"), Gr, Kr;
3594
+ var Gr = u("bleet-overlay"), Kr, qr;
3573
3595
  (class {
3574
3596
  logger;
3575
3597
  element;
@@ -3577,7 +3599,7 @@ var Wr = u("bleet-overlay"), Gr, Kr;
3577
3599
  p;
3578
3600
  transitionService;
3579
3601
  static {
3580
- ({c: [Kr, Gr]} = Ur(this, [Wr], []));
3602
+ ({c: [qr, Kr]} = Wr(this, [Gr], []));
3581
3603
  }
3582
3604
  constructor(e = m(o).scopeTo("bleet-overlay"), t = m(s), n = m(a), r = m(c), i = m(b)) {
3583
3605
  this.logger = e, this.element = t, this.ea = n, this.p = r, this.transitionService = i, this.logger.trace("constructor");
@@ -3594,33 +3616,33 @@ var Wr = u("bleet-overlay"), Gr, Kr;
3594
3616
  }
3595
3617
  open(e = !1) {
3596
3618
  this.element.hidden && (this.logger.trace("open"), this.transitionService.run(this.element, (t) => {
3597
- e && this.ea.publish(E.Overlay, { action: O.Open }), this.ea.publish(E.OverlayStatus, { status: k.Opening }), t.hidden = !1, this.p.requestAnimationFrame(() => {
3619
+ e && this.ea.publish(E.Overlay, { action: k.Open }), this.ea.publish(E.OverlayStatus, { status: A.Opening }), t.hidden = !1, this.p.requestAnimationFrame(() => {
3598
3620
  w(t, "overlay", "show");
3599
3621
  }), this.logger.trace("open before()");
3600
3622
  }, (e) => {
3601
- this.ea.publish(E.OverlayStatus, { status: k.Opened }), this.logger.trace("open after()");
3623
+ this.ea.publish(E.OverlayStatus, { status: A.Opened }), this.logger.trace("open after()");
3602
3624
  }));
3603
3625
  }
3604
3626
  close(e = !1) {
3605
3627
  this.element.hidden || this.transitionService.run(this.element, (t) => {
3606
- e && this.ea.publish(E.Overlay, { action: O.Close }), this.ea.publish(E.OverlayStatus, { status: k.Closing }), w(t, "overlay", "hide"), this.logger.trace("close before()");
3628
+ e && this.ea.publish(E.Overlay, { action: k.Close }), this.ea.publish(E.OverlayStatus, { status: A.Closing }), w(t, "overlay", "hide"), this.logger.trace("close before()");
3607
3629
  }, (e) => {
3608
- e.hidden = !0, this.logger.trace("close after()"), this.ea.publish(E.OverlayStatus, { status: k.Closed });
3630
+ e.hidden = !0, this.logger.trace("close after()"), this.ea.publish(E.OverlayStatus, { status: A.Closed });
3609
3631
  });
3610
3632
  }
3611
3633
  onOverlayEvent = (e) => {
3612
- e.action === O.Open ? (this.logger.trace("onOverlayEvent", e), this.open()) : e.action === O.Close ? (this.logger.trace("onOverlayEvent", e), this.close()) : e.action === O.Toggle ? (this.logger.trace("onOverlayEvent", e), this.toggle()) : this.logger.trace("onOverlayEvent unhandled", e);
3634
+ e.action === k.Open ? (this.logger.trace("onOverlayEvent", e), this.open()) : e.action === k.Close ? (this.logger.trace("onOverlayEvent", e), this.close()) : e.action === k.Toggle ? (this.logger.trace("onOverlayEvent", e), this.toggle()) : this.logger.trace("onOverlayEvent unhandled", e);
3613
3635
  };
3614
3636
  onClickOverlay = (e) => {
3615
3637
  this.logger.trace("onClickOverlay", e), e.preventDefault(), this.close(!0);
3616
3638
  };
3617
3639
  static {
3618
- Gr();
3640
+ Kr();
3619
3641
  }
3620
3642
  });
3621
3643
  //#endregion
3622
3644
  //#region src/attributes/focus.ts
3623
- function qr(e, t) {
3645
+ function Jr(e, t) {
3624
3646
  if (typeof e != "object" || !e) return e;
3625
3647
  var n = e[Symbol.toPrimitive];
3626
3648
  if (n !== void 0) {
@@ -3630,15 +3652,15 @@ function qr(e, t) {
3630
3652
  }
3631
3653
  return (t === "string" ? String : Number)(e);
3632
3654
  }
3633
- function Jr(e) {
3634
- var t = qr(e, "string");
3655
+ function Yr(e) {
3656
+ var t = Jr(e, "string");
3635
3657
  return typeof t == "symbol" ? t : String(t);
3636
3658
  }
3637
- function Yr(e) {
3659
+ function Xr(e) {
3638
3660
  if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
3639
3661
  return e;
3640
3662
  }
3641
- function Xr(e, t, n) {
3663
+ function Zr(e, t, n) {
3642
3664
  typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
3643
3665
  try {
3644
3666
  Object.defineProperty(e, "name", {
@@ -3648,7 +3670,7 @@ function Xr(e, t, n) {
3648
3670
  } catch {}
3649
3671
  return e;
3650
3672
  }
3651
- function Zr(e, t, n, r, i, a) {
3673
+ function Qr(e, t, n, r, i, a) {
3652
3674
  var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
3653
3675
  function p(t, n, r) {
3654
3676
  return function(i, a) {
@@ -3673,13 +3695,13 @@ function Zr(e, t, n, r, i, a) {
3673
3695
  }
3674
3696
  var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
3675
3697
  if (!b && (d ? (h || x ? E = {
3676
- get: Xr(function() {
3698
+ get: Zr(function() {
3677
3699
  return y(this);
3678
3700
  }, r, "get"),
3679
3701
  set: function(e) {
3680
3702
  t[4](this, e);
3681
3703
  }
3682
- } : E[O] = y, h || Xr(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
3704
+ } : E[O] = y, h || Zr(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
3683
3705
  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");
3684
3706
  u[+c][r] = i < 3 ? 1 : i;
3685
3707
  }
@@ -3727,8 +3749,8 @@ function Zr(e, t, n, r, i, a) {
3727
3749
  var l = n[c], u = l[1], d = u & 7;
3728
3750
  if ((u & 8) == o && !d == s) {
3729
3751
  var f = l[2], p = !!l[3], m = u & 16;
3730
- 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) {
3731
- return Yr(t) === e;
3752
+ h(o ? e : e.prototype, l, m, p ? "#" + f : Yr(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
3753
+ return Xr(t) === e;
3732
3754
  } : i);
3733
3755
  }
3734
3756
  }
@@ -3750,13 +3772,13 @@ function Zr(e, t, n, r, i, a) {
3750
3772
  }
3751
3773
  };
3752
3774
  }
3753
- var Qr = u("bleet-focus"), $r, ei;
3775
+ var $r = u("bleet-focus"), ei, ti;
3754
3776
  (class {
3755
3777
  logger;
3756
3778
  element;
3757
3779
  p;
3758
3780
  static {
3759
- ({c: [ei, $r]} = Zr(this, [Qr], []));
3781
+ ({c: [ti, ei]} = Qr(this, [$r], []));
3760
3782
  }
3761
3783
  constructor(e = m(o).scopeTo("bleet-focus"), t = m(s), n = m(c)) {
3762
3784
  this.logger = e, this.element = t, this.p = n, this.logger.trace("constructor");
@@ -3767,30 +3789,198 @@ var Qr = u("bleet-focus"), $r, ei;
3767
3789
  });
3768
3790
  }
3769
3791
  static {
3770
- $r();
3792
+ ei();
3793
+ }
3794
+ });
3795
+ //#endregion
3796
+ //#region src/attributes/first-error.ts
3797
+ function ni(e, t) {
3798
+ if (typeof e != "object" || !e) return e;
3799
+ var n = e[Symbol.toPrimitive];
3800
+ if (n !== void 0) {
3801
+ var r = n.call(e, t || "default");
3802
+ if (typeof r != "object") return r;
3803
+ throw TypeError("@@toPrimitive must return a primitive value.");
3804
+ }
3805
+ return (t === "string" ? String : Number)(e);
3806
+ }
3807
+ function ri(e) {
3808
+ var t = ni(e, "string");
3809
+ return typeof t == "symbol" ? t : String(t);
3810
+ }
3811
+ function ii(e) {
3812
+ if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
3813
+ return e;
3814
+ }
3815
+ function ai(e, t, n) {
3816
+ typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
3817
+ try {
3818
+ Object.defineProperty(e, "name", {
3819
+ configurable: !0,
3820
+ value: n ? n + " " + t : t
3821
+ });
3822
+ } catch {}
3823
+ return e;
3824
+ }
3825
+ function oi(e, t, n, r, i, a) {
3826
+ var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
3827
+ function p(t, n, r) {
3828
+ return function(i, a) {
3829
+ n && (a = i, i = e);
3830
+ for (var o = 0; o < t.length; o++) a = t[o].apply(i, r ? [a] : []);
3831
+ return r ? a : i;
3832
+ };
3833
+ }
3834
+ function m(e, t, n, r) {
3835
+ if (typeof e != "function" && (r || e !== void 0)) throw TypeError(t + " must " + (n || "be") + " a function" + (r ? "" : " or undefined"));
3836
+ return e;
3837
+ }
3838
+ function h(e, t, n, r, i, a, o, c, d, h, g) {
3839
+ function _(e) {
3840
+ if (!g(e)) throw TypeError("Attempted to access private element on non-instance");
3841
+ }
3842
+ var v = [].concat(t[0]), y = t[3], b = !o, x = i === 1, S = i === 3, C = i === 4, w = i === 2;
3843
+ function T(t, n, r) {
3844
+ return function(i, a) {
3845
+ return n && (a = i, i = e), r && r(i), desc[t].call(i, a);
3846
+ };
3847
+ }
3848
+ var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
3849
+ if (!b && (d ? (h || x ? E = {
3850
+ get: ai(function() {
3851
+ return y(this);
3852
+ }, r, "get"),
3853
+ set: function(e) {
3854
+ t[4](this, e);
3855
+ }
3856
+ } : E[O] = y, h || ai(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
3857
+ 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");
3858
+ u[+c][r] = i < 3 ? 1 : i;
3859
+ }
3860
+ for (var k = e, A = v.length - 1; A >= 0; A -= n ? 2 : 1) {
3861
+ var j = m(v[A], "A decorator", "be", !0), M = n ? v[A - 1] : void 0, N = {}, P = {
3862
+ kind: [
3863
+ "field",
3864
+ "accessor",
3865
+ "method",
3866
+ "getter",
3867
+ "setter",
3868
+ "class"
3869
+ ][i],
3870
+ name: r,
3871
+ metadata: l,
3872
+ addInitializer: (function(e, t) {
3873
+ if (e.v) throw TypeError("attempted to call addInitializer after decoration was finished");
3874
+ m(t, "An initializer", "be", !0), a.push(t);
3875
+ }).bind(null, N)
3876
+ };
3877
+ if (b) f = j.call(M, k, P), N.v = 1, m(f, "class decorators", "return") && (k = f);
3878
+ else if (P.static = c, P.private = d, f = P.access = { has: d ? g.bind() : function(e) {
3879
+ return r in e;
3880
+ } }, C || (f.get = d ? w ? function(e) {
3881
+ return _(e), E.value;
3882
+ } : T("get", 0, _) : function(e) {
3883
+ return e[r];
3884
+ }), !w && !S && (f.set = d ? T("set", 0, _) : function(e, t) {
3885
+ e[r] = t;
3886
+ }), k = j.call(M, x ? {
3887
+ get: E.get,
3888
+ set: E.set
3889
+ } : E[O], P), N.v = 1, x) {
3890
+ if (typeof k == "object" && k) (f = m(k.get, "accessor.get")) && (E.get = f), (f = m(k.set, "accessor.set")) && (E.set = f), (f = m(k.init, "accessor.init")) && D.unshift(f);
3891
+ else if (k !== void 0) throw TypeError("accessor decorators must return an object with get, set, or init properties or undefined");
3892
+ } else m(k, (h ? "field" : "method") + " decorators", "return") && (h ? D.unshift(k) : E[O] = k);
3893
+ }
3894
+ return i < 2 && o.push(p(D, c, 1), p(a, c, 0)), !h && !b && (d ? x ? o.splice(-1, 0, T("get", c), T("set", c)) : o.push(w ? E[O] : m.call.bind(E[O])) : s(e, r, E)), k;
3895
+ }
3896
+ function g() {
3897
+ var t = [], r, a, o = function(e) {
3898
+ e && t.push(p(e));
3899
+ }, s = function(o, s) {
3900
+ for (var c = 0; c < n.length; c++) {
3901
+ var l = n[c], u = l[1], d = u & 7;
3902
+ if ((u & 8) == o && !d == s) {
3903
+ var f = l[2], p = !!l[3], m = u & 16;
3904
+ 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) {
3905
+ return ii(t) === e;
3906
+ } : i);
3907
+ }
3908
+ }
3909
+ };
3910
+ return s(8, 0), s(0, 0), s(8, 1), s(0, 1), o(r), o(a), t;
3911
+ }
3912
+ function _(e) {
3913
+ return s(e, o, {
3914
+ configurable: !0,
3915
+ enumerable: !0,
3916
+ value: l
3917
+ });
3918
+ }
3919
+ return a !== void 0 && (l = a[o]), l = c(l ?? null), f = g(), d || _(e), {
3920
+ e: f,
3921
+ get c() {
3922
+ var n = [];
3923
+ return d && [_(e = h(e, [t], r, e.name, 5, n)), p(n, 1)];
3924
+ }
3925
+ };
3926
+ }
3927
+ var si = u({
3928
+ name: "bleet-first-error",
3929
+ defaultProperty: "id"
3930
+ }), ci, li, ui, di;
3931
+ (class {
3932
+ logger;
3933
+ ea;
3934
+ element;
3935
+ p;
3936
+ static {
3937
+ ({e: [li, ui], c: [di, ci]} = oi(this, [si], [[
3938
+ l,
3939
+ 0,
3940
+ "id"
3941
+ ]]));
3942
+ }
3943
+ constructor(e = m(o).scopeTo("bleet-first-error"), t = m(a), n = m(s), r = m(c)) {
3944
+ this.logger = e, this.ea = t, this.element = n, this.p = r, this.logger.trace("constructor");
3945
+ }
3946
+ disposable;
3947
+ id = li(this, "");
3948
+ attached() {
3949
+ this.logger.trace("attached"), this.disposable = this.ea.subscribe(E.Form, this.onFormEvent);
3950
+ }
3951
+ detaching() {
3952
+ this.logger.trace("detaching"), this.disposable?.dispose();
3953
+ }
3954
+ onFormEvent = (ui(this), (e) => {
3955
+ e.action === O.FirstError && (e.id === void 0 || e.id === this.id) ? (this.logger.trace("onFormEvent", e), this.p.requestAnimationFrame(() => {
3956
+ this.element.querySelector("[aria-invalid=true]")?.focus();
3957
+ })) : this.logger.trace("onFormEvent unhandled", e);
3958
+ });
3959
+ static {
3960
+ ci();
3771
3961
  }
3772
3962
  });
3773
3963
  //#endregion
3774
3964
  //#region src/components/bleet-ajaxify.$au.ts
3775
- var ti = /* @__PURE__ */ _({
3776
- bindables: () => ai,
3777
- default: () => ri,
3778
- dependencies: () => ii,
3779
- name: () => ni,
3780
- register: () => si,
3781
- template: () => ri
3782
- }), 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;
3783
- function si(e) {
3784
- oi ||= h.define({
3785
- name: ni,
3786
- template: ri,
3787
- dependencies: ii,
3788
- bindables: ai
3789
- }), e.register(oi);
3965
+ var fi = /* @__PURE__ */ _({
3966
+ bindables: () => gi,
3967
+ default: () => mi,
3968
+ dependencies: () => hi,
3969
+ name: () => pi,
3970
+ register: () => vi,
3971
+ template: () => mi
3972
+ }), pi = "bleet-ajaxify", mi = "<template>\n <au-slot if.bind=\"!ajaxedView\"></au-slot>\n <au-compose if.bind=\"ajaxedView\" template.bind=\"ajaxedView\"></au-compose>\n</template>\n", hi = [], gi = {}, _i;
3973
+ function vi(e) {
3974
+ _i ||= h.define({
3975
+ name: pi,
3976
+ template: mi,
3977
+ dependencies: hi,
3978
+ bindables: gi
3979
+ }), e.register(_i);
3790
3980
  }
3791
3981
  //#endregion
3792
3982
  //#region src/components/bleet-ajaxify.ts
3793
- function ci(e, t) {
3983
+ function yi(e, t) {
3794
3984
  if (typeof e != "object" || !e) return e;
3795
3985
  var n = e[Symbol.toPrimitive];
3796
3986
  if (n !== void 0) {
@@ -3800,15 +3990,15 @@ function ci(e, t) {
3800
3990
  }
3801
3991
  return (t === "string" ? String : Number)(e);
3802
3992
  }
3803
- function li(e) {
3804
- var t = ci(e, "string");
3993
+ function bi(e) {
3994
+ var t = yi(e, "string");
3805
3995
  return typeof t == "symbol" ? t : String(t);
3806
3996
  }
3807
- function ui(e) {
3997
+ function xi(e) {
3808
3998
  if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
3809
3999
  return e;
3810
4000
  }
3811
- function di(e, t, n) {
4001
+ function Si(e, t, n) {
3812
4002
  typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
3813
4003
  try {
3814
4004
  Object.defineProperty(e, "name", {
@@ -3818,7 +4008,7 @@ function di(e, t, n) {
3818
4008
  } catch {}
3819
4009
  return e;
3820
4010
  }
3821
- function fi(e, t, n, r, i, a) {
4011
+ function Ci(e, t, n, r, i, a) {
3822
4012
  var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
3823
4013
  function p(t, n, r) {
3824
4014
  return function(i, a) {
@@ -3843,13 +4033,13 @@ function fi(e, t, n, r, i, a) {
3843
4033
  }
3844
4034
  var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
3845
4035
  if (!b && (d ? (h || x ? E = {
3846
- get: di(function() {
4036
+ get: Si(function() {
3847
4037
  return y(this);
3848
4038
  }, r, "get"),
3849
4039
  set: function(e) {
3850
4040
  t[4](this, e);
3851
4041
  }
3852
- } : E[O] = y, h || di(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
4042
+ } : E[O] = y, h || Si(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
3853
4043
  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");
3854
4044
  u[+c][r] = i < 3 ? 1 : i;
3855
4045
  }
@@ -3897,8 +4087,8 @@ function fi(e, t, n, r, i, a) {
3897
4087
  var l = n[c], u = l[1], d = u & 7;
3898
4088
  if ((u & 8) == o && !d == s) {
3899
4089
  var f = l[2], p = !!l[3], m = u & 16;
3900
- 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) {
3901
- return ui(t) === e;
4090
+ h(o ? e : e.prototype, l, m, p ? "#" + f : bi(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
4091
+ return xi(t) === e;
3902
4092
  } : i);
3903
4093
  }
3904
4094
  }
@@ -3920,22 +4110,22 @@ function fi(e, t, n, r, i, a) {
3920
4110
  }
3921
4111
  };
3922
4112
  }
3923
- var pi = d({
3924
- ...ti,
4113
+ var wi = d({
4114
+ ...fi,
3925
4115
  name: "bleet-ajaxify"
3926
- }), mi, hi = l(), gi = l(), _i, vi, yi, bi, xi;
4116
+ }), Ti, Ei = l(), Di = l(), Oi, ki, Ai, ji, Mi;
3927
4117
  (class {
3928
4118
  ea;
3929
4119
  logger;
3930
4120
  apiService;
3931
4121
  element;
3932
4122
  static {
3933
- ({e: [_i, vi, yi, bi], c: [xi, mi]} = fi(this, [pi], [[
3934
- hi,
4123
+ ({e: [Oi, ki, Ai, ji], c: [Mi, Ti]} = Ci(this, [wi], [[
4124
+ Ei,
3935
4125
  0,
3936
4126
  "id"
3937
4127
  ], [
3938
- gi,
4128
+ Di,
3939
4129
  0,
3940
4130
  "url"
3941
4131
  ]]));
@@ -3943,9 +4133,9 @@ var pi = d({
3943
4133
  constructor(e = m(a), t = m(o).scopeTo("<bleet-ajaxify>"), r = m(n), i = m(s)) {
3944
4134
  this.ea = e, this.logger = t, this.apiService = r, this.element = i, this.logger.trace("constructor");
3945
4135
  }
3946
- id = _i(this, "");
3947
- url = (vi(this), yi(this));
3948
- ajaxedView = (bi(this), null);
4136
+ id = Oi(this, "");
4137
+ url = (ki(this), Ai(this));
4138
+ ajaxedView = (ji(this), null);
3949
4139
  disposable;
3950
4140
  attaching() {
3951
4141
  this.logger.trace("attaching"), this.disposable = this.ea.subscribe(E.Ajaxify, this.onEvent);
@@ -3960,7 +4150,7 @@ var pi = d({
3960
4150
  return this.element.querySelector("form") ?? this.element.closest("form");
3961
4151
  }
3962
4152
  onEvent = (e) => {
3963
- this.logger.trace("onEvent", e), e.id && e.id == this.id && (e.action === P.Refresh ? this.handleRefresh(e) : e.action === P.Run && this.handleRun(e));
4153
+ this.logger.trace("onEvent", e), e.id && e.id == this.id && (e.action === F.Refresh ? this.handleRefresh(e) : e.action === F.Run && this.handleRun(e));
3964
4154
  };
3965
4155
  handleRefresh(t) {
3966
4156
  let n = t.url ? t.url : this.url;
@@ -3995,30 +4185,30 @@ var pi = d({
3995
4185
  });
3996
4186
  }
3997
4187
  static {
3998
- mi();
4188
+ Ti();
3999
4189
  }
4000
4190
  });
4001
4191
  //#endregion
4002
4192
  //#region src/components/bleet-dialog.$au.ts
4003
- var Si = /* @__PURE__ */ _({
4004
- bindables: () => Ei,
4005
- default: () => wi,
4006
- dependencies: () => Ti,
4007
- name: () => Ci,
4008
- register: () => Oi,
4009
- template: () => wi
4010
- }), 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;
4011
- function Oi(e) {
4012
- Di ||= h.define({
4013
- name: Ci,
4014
- template: wi,
4015
- dependencies: Ti,
4016
- bindables: Ei
4017
- }), e.register(Di);
4193
+ var Ni = /* @__PURE__ */ _({
4194
+ bindables: () => Li,
4195
+ default: () => Fi,
4196
+ dependencies: () => Ii,
4197
+ name: () => Pi,
4198
+ register: () => zi,
4199
+ template: () => Fi
4200
+ }), Pi = "bleet-dialog", Fi = "<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", Ii = [], Li = {}, Ri;
4201
+ function zi(e) {
4202
+ Ri ||= h.define({
4203
+ name: Pi,
4204
+ template: Fi,
4205
+ dependencies: Ii,
4206
+ bindables: Li
4207
+ }), e.register(Ri);
4018
4208
  }
4019
4209
  //#endregion
4020
4210
  //#region src/abstracts/components/abstract-dialog.ts
4021
- function ki(e, t) {
4211
+ function Bi(e, t) {
4022
4212
  if (typeof e != "object" || !e) return e;
4023
4213
  var n = e[Symbol.toPrimitive];
4024
4214
  if (n !== void 0) {
@@ -4028,15 +4218,15 @@ function ki(e, t) {
4028
4218
  }
4029
4219
  return (t === "string" ? String : Number)(e);
4030
4220
  }
4031
- function Ai(e) {
4032
- var t = ki(e, "string");
4221
+ function Vi(e) {
4222
+ var t = Bi(e, "string");
4033
4223
  return typeof t == "symbol" ? t : String(t);
4034
4224
  }
4035
- function ji(e) {
4225
+ function Hi(e) {
4036
4226
  if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
4037
4227
  return e;
4038
4228
  }
4039
- function Mi(e, t, n) {
4229
+ function Ui(e, t, n) {
4040
4230
  typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
4041
4231
  try {
4042
4232
  Object.defineProperty(e, "name", {
@@ -4046,7 +4236,7 @@ function Mi(e, t, n) {
4046
4236
  } catch {}
4047
4237
  return e;
4048
4238
  }
4049
- function Ni(e, t, n, r, i, a) {
4239
+ function Wi(e, t, n, r, i, a) {
4050
4240
  var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
4051
4241
  function p(t, n, r) {
4052
4242
  return function(i, a) {
@@ -4071,13 +4261,13 @@ function Ni(e, t, n, r, i, a) {
4071
4261
  }
4072
4262
  var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
4073
4263
  if (!b && (d ? (h || x ? E = {
4074
- get: Mi(function() {
4264
+ get: Ui(function() {
4075
4265
  return y(this);
4076
4266
  }, r, "get"),
4077
4267
  set: function(e) {
4078
4268
  t[4](this, e);
4079
4269
  }
4080
- } : E[O] = y, h || Mi(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
4270
+ } : E[O] = y, h || Ui(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
4081
4271
  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");
4082
4272
  u[+c][r] = i < 3 ? 1 : i;
4083
4273
  }
@@ -4125,8 +4315,8 @@ function Ni(e, t, n, r, i, a) {
4125
4315
  var l = n[c], u = l[1], d = u & 7;
4126
4316
  if ((u & 8) == o && !d == s) {
4127
4317
  var f = l[2], p = !!l[3], m = u & 16;
4128
- 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) {
4129
- return ji(t) === e;
4318
+ h(o ? e : e.prototype, l, m, p ? "#" + f : Vi(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
4319
+ return Hi(t) === e;
4130
4320
  } : i);
4131
4321
  }
4132
4322
  }
@@ -4148,20 +4338,20 @@ function Ni(e, t, n, r, i, a) {
4148
4338
  }
4149
4339
  };
4150
4340
  }
4151
- var Pi, Fi, Ii = class {
4341
+ var Gi, Ki, qi = class {
4152
4342
  element;
4153
4343
  ea;
4154
4344
  p;
4155
4345
  transitionService;
4156
4346
  static {
4157
- ({e: [Pi, Fi]} = Ni(this, [], [[
4347
+ ({e: [Gi, Ki]} = Wi(this, [], [[
4158
4348
  l,
4159
4349
  0,
4160
4350
  "id"
4161
4351
  ]]));
4162
4352
  }
4163
- id = Pi(this, "");
4164
- title = (Fi(this), "");
4353
+ id = Gi(this, "");
4354
+ title = (Ki(this), "");
4165
4355
  dialogElement;
4166
4356
  disposable;
4167
4357
  closing = !1;
@@ -4181,27 +4371,27 @@ var Pi, Fi, Ii = class {
4181
4371
  close() {
4182
4372
  this.closing = !0, this.transitionService.run(this.dialogElement, (e) => {
4183
4373
  this.closing === !0 && (this.ea.publish(E.ModalStatus, {
4184
- status: N.Closing,
4374
+ status: P.Closing,
4185
4375
  id: this.id
4186
- }), this.ea.publish(E.Overlay, { action: O.Close }), w(e, "dialog", "hide", this.element));
4376
+ }), this.ea.publish(E.Overlay, { action: k.Close }), w(e, "dialog", "hide", this.element));
4187
4377
  }, (e) => {
4188
4378
  this.closing === !0 && (this.closing = !1, e.close(), this.title = "", this.clear(), this.ea.publish(E.ModalStatus, {
4189
- status: N.Closed,
4379
+ status: P.Closed,
4190
4380
  id: this.id
4191
4381
  }));
4192
4382
  });
4193
4383
  }
4194
4384
  open() {
4195
4385
  this.closing = !1, this.transitionService.run(this.dialogElement, (e) => {
4196
- this.ea.publish(E.Overlay, { action: O.Open }), this.ea.publish(E.ModalStatus, {
4197
- status: N.Opening,
4386
+ this.ea.publish(E.Overlay, { action: k.Open }), this.ea.publish(E.ModalStatus, {
4387
+ status: P.Opening,
4198
4388
  id: this.id
4199
4389
  }), e.showModal(), this.p.requestAnimationFrame(() => {
4200
4390
  w(e, "dialog", "show", this.element);
4201
4391
  });
4202
4392
  }, () => {
4203
4393
  this.ea.publish(E.ModalStatus, {
4204
- status: N.Opened,
4394
+ status: P.Opened,
4205
4395
  id: this.id
4206
4396
  });
4207
4397
  });
@@ -4209,7 +4399,7 @@ var Pi, Fi, Ii = class {
4209
4399
  onModalEvent = (e) => {
4210
4400
  if (this.id !== "" && e.id === this.id) {
4211
4401
  let t = this.dialogElement.open === !0 && this.closing === !1;
4212
- e.action === M.Open && t === !1 ? this.show(e) : e.action === M.Close && t === !0 ? this.close() : e.action === M.Toggle && (t === !0 ? this.close() : this.show(e));
4402
+ e.action === N.Open && t === !1 ? this.show(e) : e.action === N.Close && t === !0 ? this.close() : e.action === N.Toggle && (t === !0 ? this.close() : this.show(e));
4213
4403
  }
4214
4404
  };
4215
4405
  onCancelEvent = (e) => {
@@ -4224,7 +4414,7 @@ var Pi, Fi, Ii = class {
4224
4414
  };
4225
4415
  //#endregion
4226
4416
  //#region src/abstracts/components/abstract-dropdown.ts
4227
- function Li(e, t) {
4417
+ function Ji(e, t) {
4228
4418
  if (typeof e != "object" || !e) return e;
4229
4419
  var n = e[Symbol.toPrimitive];
4230
4420
  if (n !== void 0) {
@@ -4234,15 +4424,15 @@ function Li(e, t) {
4234
4424
  }
4235
4425
  return (t === "string" ? String : Number)(e);
4236
4426
  }
4237
- function Ri(e) {
4238
- var t = Li(e, "string");
4427
+ function Yi(e) {
4428
+ var t = Ji(e, "string");
4239
4429
  return typeof t == "symbol" ? t : String(t);
4240
4430
  }
4241
- function zi(e) {
4431
+ function Xi(e) {
4242
4432
  if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
4243
4433
  return e;
4244
4434
  }
4245
- function Bi(e, t, n) {
4435
+ function Zi(e, t, n) {
4246
4436
  typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
4247
4437
  try {
4248
4438
  Object.defineProperty(e, "name", {
@@ -4252,7 +4442,7 @@ function Bi(e, t, n) {
4252
4442
  } catch {}
4253
4443
  return e;
4254
4444
  }
4255
- function Vi(e, t, n, r, i, a) {
4445
+ function Qi(e, t, n, r, i, a) {
4256
4446
  var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
4257
4447
  function p(t, n, r) {
4258
4448
  return function(i, a) {
@@ -4277,13 +4467,13 @@ function Vi(e, t, n, r, i, a) {
4277
4467
  }
4278
4468
  var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
4279
4469
  if (!b && (d ? (h || x ? E = {
4280
- get: Bi(function() {
4470
+ get: Zi(function() {
4281
4471
  return y(this);
4282
4472
  }, r, "get"),
4283
4473
  set: function(e) {
4284
4474
  t[4](this, e);
4285
4475
  }
4286
- } : E[O] = y, h || Bi(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
4476
+ } : E[O] = y, h || Zi(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
4287
4477
  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");
4288
4478
  u[+c][r] = i < 3 ? 1 : i;
4289
4479
  }
@@ -4331,8 +4521,8 @@ function Vi(e, t, n, r, i, a) {
4331
4521
  var l = n[c], u = l[1], d = u & 7;
4332
4522
  if ((u & 8) == o && !d == s) {
4333
4523
  var f = l[2], p = !!l[3], m = u & 16;
4334
- 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) {
4335
- return zi(t) === e;
4524
+ h(o ? e : e.prototype, l, m, p ? "#" + f : Yi(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
4525
+ return Xi(t) === e;
4336
4526
  } : i);
4337
4527
  }
4338
4528
  }
@@ -4354,24 +4544,24 @@ function Vi(e, t, n, r, i, a) {
4354
4544
  }
4355
4545
  };
4356
4546
  }
4357
- 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 {
4547
+ var $i = l({ mode: r.twoWay }), ea = l({ mode: r.twoWay }), ta, na, ra, ia, aa, oa, sa, ca, la, ua, da, fa, pa, ma, ha = class {
4358
4548
  element;
4359
4549
  p;
4360
4550
  trapFocusService;
4361
4551
  static {
4362
- ({e: [Wi, Gi, Ki, qi, Ji, Yi, Xi, Zi, Qi, $i, ea, ta, na, ra]} = Vi(this, [], [
4552
+ ({e: [ta, na, ra, ia, aa, oa, sa, ca, la, ua, da, fa, pa, ma]} = Qi(this, [], [
4363
4553
  [
4364
4554
  l,
4365
4555
  0,
4366
4556
  "options"
4367
4557
  ],
4368
4558
  [
4369
- Hi,
4559
+ $i,
4370
4560
  0,
4371
4561
  "value"
4372
4562
  ],
4373
4563
  [
4374
- Ui,
4564
+ ea,
4375
4565
  0,
4376
4566
  "values"
4377
4567
  ],
@@ -4397,13 +4587,13 @@ var Hi = l({ mode: r.twoWay }), Ui = l({ mode: r.twoWay }), Wi, Gi, Ki, qi, Ji,
4397
4587
  ]
4398
4588
  ]));
4399
4589
  }
4400
- options = Wi(this, []);
4401
- value = (Gi(this), Ki(this, null));
4402
- values = (qi(this), Ji(this, []));
4403
- multiple = (Yi(this), Xi(this, !1));
4404
- disabled = (Zi(this), Qi(this, !1));
4405
- placeholder = ($i(this), ea(this, ""));
4406
- open = (ta(this), !1);
4590
+ options = ta(this, []);
4591
+ value = (na(this), ra(this, null));
4592
+ values = (ia(this), aa(this, []));
4593
+ multiple = (oa(this), sa(this, !1));
4594
+ disabled = (ca(this), la(this, !1));
4595
+ placeholder = (ua(this), da(this, ""));
4596
+ open = (fa(this), !1);
4407
4597
  groups = [];
4408
4598
  selection = [];
4409
4599
  empty = !1;
@@ -4412,7 +4602,7 @@ var Hi = l({ mode: r.twoWay }), Ui = l({ mode: r.twoWay }), Wi, Gi, Ki, qi, Ji,
4412
4602
  search = null;
4413
4603
  entries = [];
4414
4604
  placeholderRow = null;
4415
- query = na(this, "");
4605
+ query = pa(this, "");
4416
4606
  constructor(e = m(s), t = m(c), n = m(S)) {
4417
4607
  this.element = e, this.p = t, this.trapFocusService = n;
4418
4608
  }
@@ -4457,7 +4647,7 @@ var Hi = l({ mode: r.twoWay }), Ui = l({ mode: r.twoWay }), Wi, Gi, Ki, qi, Ji,
4457
4647
  });
4458
4648
  });
4459
4649
  }
4460
- onStopTrapFocus = (ra(this), () => {
4650
+ onStopTrapFocus = (ma(this), () => {
4461
4651
  this.open = !1, this.query = "";
4462
4652
  });
4463
4653
  build() {
@@ -4499,7 +4689,7 @@ var Hi = l({ mode: r.twoWay }), Ui = l({ mode: r.twoWay }), Wi, Gi, Ki, qi, Ji,
4499
4689
  };
4500
4690
  //#endregion
4501
4691
  //#region src/abstracts/components/abstract-pager.ts
4502
- function aa(e, t) {
4692
+ function ga(e, t) {
4503
4693
  if (typeof e != "object" || !e) return e;
4504
4694
  var n = e[Symbol.toPrimitive];
4505
4695
  if (n !== void 0) {
@@ -4509,15 +4699,15 @@ function aa(e, t) {
4509
4699
  }
4510
4700
  return (t === "string" ? String : Number)(e);
4511
4701
  }
4512
- function oa(e) {
4513
- var t = aa(e, "string");
4702
+ function _a(e) {
4703
+ var t = ga(e, "string");
4514
4704
  return typeof t == "symbol" ? t : String(t);
4515
4705
  }
4516
- function sa(e) {
4706
+ function va(e) {
4517
4707
  if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
4518
4708
  return e;
4519
4709
  }
4520
- function ca(e, t, n) {
4710
+ function ya(e, t, n) {
4521
4711
  typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
4522
4712
  try {
4523
4713
  Object.defineProperty(e, "name", {
@@ -4527,7 +4717,7 @@ function ca(e, t, n) {
4527
4717
  } catch {}
4528
4718
  return e;
4529
4719
  }
4530
- function la(e, t, n, r, i, a) {
4720
+ function ba(e, t, n, r, i, a) {
4531
4721
  var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
4532
4722
  function p(t, n, r) {
4533
4723
  return function(i, a) {
@@ -4552,13 +4742,13 @@ function la(e, t, n, r, i, a) {
4552
4742
  }
4553
4743
  var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
4554
4744
  if (!b && (d ? (h || x ? E = {
4555
- get: ca(function() {
4745
+ get: ya(function() {
4556
4746
  return y(this);
4557
4747
  }, r, "get"),
4558
4748
  set: function(e) {
4559
4749
  t[4](this, e);
4560
4750
  }
4561
- } : E[O] = y, h || ca(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
4751
+ } : E[O] = y, h || ya(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
4562
4752
  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");
4563
4753
  u[+c][r] = i < 3 ? 1 : i;
4564
4754
  }
@@ -4606,8 +4796,8 @@ function la(e, t, n, r, i, a) {
4606
4796
  var l = n[c], u = l[1], d = u & 7;
4607
4797
  if ((u & 8) == o && !d == s) {
4608
4798
  var f = l[2], p = !!l[3], m = u & 16;
4609
- 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) {
4610
- return sa(t) === e;
4799
+ h(o ? e : e.prototype, l, m, p ? "#" + f : _a(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
4800
+ return va(t) === e;
4611
4801
  } : i);
4612
4802
  }
4613
4803
  }
@@ -4629,14 +4819,14 @@ function la(e, t, n, r, i, a) {
4629
4819
  }
4630
4820
  };
4631
4821
  }
4632
- var ua, da, fa, pa, ma, ha, ga = /*#__PURE__*/ function(e) {
4822
+ var xa, Sa, Ca, wa, Ta, Ea, Da = /*#__PURE__*/ function(e) {
4633
4823
  return e.Change = "bleet-page", e;
4634
- }({}), _a = /*#__PURE__*/ function(e) {
4824
+ }({}), Oa = /*#__PURE__*/ function(e) {
4635
4825
  return e[e.MaxButtonCount = 10] = "MaxButtonCount", e;
4636
- }(_a || {}), va = class {
4826
+ }(Oa || {}), ka = class {
4637
4827
  element;
4638
4828
  static {
4639
- ({e: [ua, da, fa, pa, ma, ha]} = la(this, [], [
4829
+ ({e: [xa, Sa, Ca, wa, Ta, Ea]} = ba(this, [], [
4640
4830
  [
4641
4831
  l,
4642
4832
  0,
@@ -4654,20 +4844,20 @@ var ua, da, fa, pa, ma, ha, ga = /*#__PURE__*/ function(e) {
4654
4844
  ]
4655
4845
  ]));
4656
4846
  }
4657
- pagination = ua(this, {
4847
+ pagination = xa(this, {
4658
4848
  limit: 0,
4659
4849
  currentPage: 1,
4660
4850
  totalPages: 1,
4661
4851
  totalCount: 0
4662
4852
  });
4663
- maxButtonCount = (da(this), fa(this, _a.MaxButtonCount));
4664
- page = (pa(this), 1);
4853
+ maxButtonCount = (Sa(this), Ca(this, Oa.MaxButtonCount));
4854
+ page = (wa(this), 1);
4665
4855
  numbers = [];
4666
4856
  begin = 0;
4667
4857
  end = 0;
4668
- selectedPage = ma(this, null);
4858
+ selectedPage = Ta(this, null);
4669
4859
  constructor(e = m(s)) {
4670
- this.element = e, ha(this);
4860
+ this.element = e, Ea(this);
4671
4861
  }
4672
4862
  bound() {
4673
4863
  this.page = this.pagination.currentPage, this.refresh();
@@ -4683,7 +4873,7 @@ var ua, da, fa, pa, ma, ha, ga = /*#__PURE__*/ function(e) {
4683
4873
  }
4684
4874
  refreshed() {}
4685
4875
  go(e) {
4686
- e !== this.page && e >= 1 && e <= this.pagination.totalPages && (this.page = e, this.refresh(), this.element.dispatchEvent(new CustomEvent(ga.Change, {
4876
+ e !== this.page && e >= 1 && e <= this.pagination.totalPages && (this.page = e, this.refresh(), this.element.dispatchEvent(new CustomEvent(Da.Change, {
4687
4877
  bubbles: !0,
4688
4878
  detail: { page: e }
4689
4879
  })));
@@ -4692,7 +4882,7 @@ var ua, da, fa, pa, ma, ha, ga = /*#__PURE__*/ function(e) {
4692
4882
  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;
4693
4883
  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();
4694
4884
  }
4695
- }, ya = class {
4885
+ }, Aa = class {
4696
4886
  logger;
4697
4887
  element;
4698
4888
  ea;
@@ -4727,14 +4917,14 @@ var ua, da, fa, pa, ma, ha, ga = /*#__PURE__*/ function(e) {
4727
4917
  }
4728
4918
  }
4729
4919
  onToasterEvent = (e) => {
4730
- if (e.action === F.Add && e.toast) {
4731
- let t = rr(e.toast);
4920
+ if (e.action === I.Add && e.toast) {
4921
+ let t = ir(e.toast);
4732
4922
  this.entries.has(t.id) === !1 && this.add(t);
4733
- } else e.action === F.Remove && e.toast?.id && this.close(e.toast.id);
4923
+ } else e.action === I.Remove && e.toast?.id && this.close(e.toast.id);
4734
4924
  };
4735
4925
  add(e) {
4736
4926
  let t = { closing: !1 };
4737
- this.entries.set(e.id, t), this.toasts = [...this.toasts, e], ir(this.element), this.p.requestAnimationFrame(() => {
4927
+ this.entries.set(e.id, t), this.toasts = [...this.toasts, e], ar(this.element), this.p.requestAnimationFrame(() => {
4738
4928
  let n = this.findToastElement(e.id);
4739
4929
  n === null ? this.logger.warn(`No rendered toast carries data-toaster-id="${e.id}"`) : this.transitionService.run(n, (n) => {
4740
4930
  e.duration > 0 && (t.closeTimeout = this.p.setTimeout(() => {
@@ -4744,7 +4934,7 @@ var ua, da, fa, pa, ma, ha, ga = /*#__PURE__*/ function(e) {
4744
4934
  });
4745
4935
  }
4746
4936
  remove(e) {
4747
- this.entries.delete(e), this.toasts = this.toasts.filter((t) => t.id !== e), this.entries.size === 0 && ar(this.element);
4937
+ this.entries.delete(e), this.toasts = this.toasts.filter((t) => t.id !== e), this.entries.size === 0 && or(this.element);
4748
4938
  }
4749
4939
  findToastElement(e) {
4750
4940
  return this.element.querySelector(`[data-toaster-id="${e}"]`);
@@ -4752,7 +4942,7 @@ var ua, da, fa, pa, ma, ha, ga = /*#__PURE__*/ function(e) {
4752
4942
  };
4753
4943
  //#endregion
4754
4944
  //#region src/components/bleet-dialog.ts
4755
- function ba(e, t) {
4945
+ function ja(e, t) {
4756
4946
  if (typeof e != "object" || !e) return e;
4757
4947
  var n = e[Symbol.toPrimitive];
4758
4948
  if (n !== void 0) {
@@ -4762,15 +4952,15 @@ function ba(e, t) {
4762
4952
  }
4763
4953
  return (t === "string" ? String : Number)(e);
4764
4954
  }
4765
- function xa(e) {
4766
- var t = ba(e, "string");
4955
+ function Ma(e) {
4956
+ var t = ja(e, "string");
4767
4957
  return typeof t == "symbol" ? t : String(t);
4768
4958
  }
4769
- function Sa(e) {
4959
+ function Na(e) {
4770
4960
  if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
4771
4961
  return e;
4772
4962
  }
4773
- function Ca(e, t, n) {
4963
+ function Pa(e, t, n) {
4774
4964
  typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
4775
4965
  try {
4776
4966
  Object.defineProperty(e, "name", {
@@ -4780,7 +4970,7 @@ function Ca(e, t, n) {
4780
4970
  } catch {}
4781
4971
  return e;
4782
4972
  }
4783
- function wa(e, t, n, r, i, a) {
4973
+ function Fa(e, t, n, r, i, a) {
4784
4974
  var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
4785
4975
  function p(t, n, r) {
4786
4976
  return function(i, a) {
@@ -4805,13 +4995,13 @@ function wa(e, t, n, r, i, a) {
4805
4995
  }
4806
4996
  var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
4807
4997
  if (!b && (d ? (h || x ? E = {
4808
- get: Ca(function() {
4998
+ get: Pa(function() {
4809
4999
  return y(this);
4810
5000
  }, r, "get"),
4811
5001
  set: function(e) {
4812
5002
  t[4](this, e);
4813
5003
  }
4814
- } : E[O] = y, h || Ca(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
5004
+ } : E[O] = y, h || Pa(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
4815
5005
  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");
4816
5006
  u[+c][r] = i < 3 ? 1 : i;
4817
5007
  }
@@ -4859,8 +5049,8 @@ function wa(e, t, n, r, i, a) {
4859
5049
  var l = n[c], u = l[1], d = u & 7;
4860
5050
  if ((u & 8) == o && !d == s) {
4861
5051
  var f = l[2], p = !!l[3], m = u & 16;
4862
- 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) {
4863
- return Sa(t) === e;
5052
+ h(o ? e : e.prototype, l, m, p ? "#" + f : Ma(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
5053
+ return Na(t) === e;
4864
5054
  } : i);
4865
5055
  }
4866
5056
  }
@@ -4882,17 +5072,17 @@ function wa(e, t, n, r, i, a) {
4882
5072
  }
4883
5073
  };
4884
5074
  }
4885
- var Ta = d({
4886
- ...Si,
5075
+ var Ia = d({
5076
+ ...Ni,
4887
5077
  name: "bleet-dialog"
4888
- }), Ea, Da = Ii, Oa = l({ attribute: "data-dialog-class" }), ka, Aa, ja, Ma, Na, Pa, Fa;
4889
- (class extends Da {
5078
+ }), La, Ra = qi, za = l({ attribute: "data-dialog-class" }), Ba, Va, Ha, Ua, Wa, Ga, Ka;
5079
+ (class extends Ra {
4890
5080
  logger;
4891
5081
  apiService;
4892
5082
  static {
4893
- ({e: [ka, Aa, ja, Ma, Na, Pa], c: [Fa, Ea]} = wa(this, [Ta], [
5083
+ ({e: [Ba, Va, Ha, Ua, Wa, Ga], c: [Ka, La]} = Fa(this, [Ia], [
4894
5084
  [
4895
- Oa,
5085
+ za,
4896
5086
  0,
4897
5087
  "dialogClass"
4898
5088
  ],
@@ -4906,15 +5096,15 @@ var Ta = d({
4906
5096
  0,
4907
5097
  "submitError"
4908
5098
  ]
4909
- ], 0, void 0, Da));
5099
+ ], 0, void 0, Ra));
4910
5100
  }
4911
5101
  constructor(e = m(o).scopeTo("<bleet-dialog>"), t = m(n)) {
4912
5102
  super(), this.logger = e, this.apiService = t;
4913
5103
  }
4914
- dialogClass = ka(this, "");
4915
- loadError = (Aa(this), ja(this, ""));
4916
- submitError = (Ma(this), Na(this, ""));
4917
- loading = (Pa(this), !1);
5104
+ dialogClass = Ba(this, "");
5105
+ loadError = (Va(this), Ha(this, ""));
5106
+ submitError = (Ua(this), Wa(this, ""));
5107
+ loading = (Ga(this), !1);
4918
5108
  contentView = null;
4919
5109
  attached() {
4920
5110
  super.attached(), this.dialogElement.addEventListener("submit", this.onFormSubmit);
@@ -4955,61 +5145,62 @@ var Ta = d({
4955
5145
  e.content && (this.contentView = e.content), this.executeActions(e);
4956
5146
  }
4957
5147
  executeActions(e) {
4958
- let t = e.refresh === !0 || e.action === H.RefreshAndClose;
4959
- (e.action === H.Close || e.action === H.RefreshAndClose) && this.close(), e.toast && this.ea.publish(E.Toaster, {
4960
- action: F.Add,
5148
+ let t = e.refresh === !0 || e.action === U.RefreshAndClose;
5149
+ (e.action === U.Close || e.action === U.RefreshAndClose) && this.close(), e.toast && this.ea.publish(E.Toaster, {
5150
+ action: I.Add,
4961
5151
  toast: e.toast
4962
5152
  }), 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();
4963
5153
  }
4964
5154
  publishError(e) {
4965
5155
  e !== "" && this.ea.publish(E.Toaster, {
4966
- action: F.Add,
5156
+ action: I.Add,
4967
5157
  toast: {
4968
- level: B.Danger,
5158
+ level: V.Danger,
4969
5159
  content: e
4970
5160
  }
4971
5161
  });
4972
5162
  }
4973
5163
  static {
4974
- Ea();
5164
+ La();
4975
5165
  }
4976
5166
  });
4977
5167
  //#endregion
4978
5168
  //#region src/index.ts
4979
- var Ia = [
4980
- Z,
4981
- U,
4982
- K,
4983
- W,
5169
+ var qa = [
4984
5170
  Q,
4985
- $,
4986
- Y,
5171
+ W,
4987
5172
  q,
4988
5173
  G,
4989
- J,
5174
+ $,
5175
+ $t,
4990
5176
  X,
4991
- Nn,
4992
- Un,
4993
- nr,
4994
- pr,
4995
- Rr,
4996
- Kr,
4997
- ei,
4998
- xi,
4999
- Fa
5177
+ J,
5178
+ K,
5179
+ Y,
5180
+ Z,
5181
+ Pn,
5182
+ Wn,
5183
+ rr,
5184
+ mr,
5185
+ zr,
5186
+ qr,
5187
+ ti,
5188
+ di,
5189
+ Mi,
5190
+ Ka
5000
5191
  ];
5001
- function La(e) {
5192
+ function Ja(e) {
5002
5193
  return {
5003
5194
  register(n) {
5004
- return (e ? t.customize(e) : t).register(n), n.register(...Ia);
5195
+ return (e ? t.customize(e) : t).register(n), n.register(...qa);
5005
5196
  },
5006
5197
  customize(e) {
5007
- return La(e);
5198
+ return Ja(e);
5008
5199
  }
5009
5200
  };
5010
5201
  }
5011
- var Ra = La();
5202
+ var Ya = Ja();
5012
5203
  //#endregion
5013
- 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 };
5204
+ export { qi as AbstractDialog, ha as AbstractDropdown, ka as AbstractPager, Aa as AbstractToaster, F as AjaxifyAction, ee as AjaxifyTriggerMode, ne as BadgeAction, Mi as BleetAjaxify, Pn as BleetAjaxifyTriggerCustomAttribute, Q as BleetAlertCustomAttribute, K as BleetBadgeCustomAttribute, W as BleetBurgerCustomAttribute, Ya as BleetConfiguration, Ka as BleetDialog, q as BleetDropdownCustomAttribute, di as BleetFirstErrorCustomAttribute, ti as BleetFocusCustomAttribute, G as BleetMenuCustomAttribute, $ as BleetModalTriggerCustomAttribute, qr as BleetOverlayCustomAttribute, $t as BleetPagerCustomAttribute, J as BleetPasswordCustomAttribute, Wn as BleetPopoverCustomAttribute, rr as BleetPopoverTriggerCustomAttribute, X as BleetProfileCustomAttribute, Y as BleetTabsCustomAttribute, zr as BleetToastCustomAttribute, mr as BleetToasterCustomAttribute, Z as BleetToasterTriggerCustomAttribute, E as Channels, U as DialogAction, O as FormAction, v as IStorageService, b as ITransitionService, S as ITrapFocusService, L as MenuAction, R as MenuStatus, N as ModalAction, P as ModalStatus, k as OverlayAction, A as OverlayStatus, Da as PagerEvent, z as PopoverAction, B as PopoverStatus, j as ProfileAction, M as ProfileStatus, I as ToasterAction, te as ToasterStatus, re as UiIcon, V as UiLevel, H as UiToastIcon, D as UploadAction, w as setState };
5014
5205
 
5015
5206
  //# sourceMappingURL=index.es.js.map