@blackcube/aurelia-kit 1.0.0-rc4 → 1.0.0-rc6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +176 -44
- package/dist/index.es.js +1197 -757
- package/dist/index.es.js.map +1 -1
- package/dist/types/abstracts/components/abstract-dialog.d.ts +40 -0
- package/dist/types/abstracts/components/abstract-dialog.d.ts.map +1 -0
- package/dist/types/abstracts/components/abstract-dropdown.d.ts +105 -0
- package/dist/types/abstracts/components/abstract-dropdown.d.ts.map +1 -0
- package/dist/types/abstracts/components/abstract-pager.d.ts +51 -0
- package/dist/types/abstracts/components/abstract-pager.d.ts.map +1 -0
- package/dist/types/abstracts/components/abstract-toaster.d.ts +42 -0
- package/dist/types/abstracts/components/abstract-toaster.d.ts.map +1 -0
- package/dist/types/abstracts/components/index.d.ts +7 -0
- package/dist/types/abstracts/components/index.d.ts.map +1 -0
- package/dist/types/attributes/ajaxify-trigger.d.ts.map +1 -1
- package/dist/types/attributes/alert.d.ts.map +1 -1
- package/dist/types/attributes/badge.d.ts.map +1 -1
- package/dist/types/attributes/burger.d.ts.map +1 -1
- package/dist/types/attributes/dropdown.d.ts.map +1 -1
- package/dist/types/attributes/focus.d.ts.map +1 -1
- package/dist/types/attributes/menu.d.ts.map +1 -1
- package/dist/types/attributes/modal-trigger.d.ts +0 -1
- package/dist/types/attributes/modal-trigger.d.ts.map +1 -1
- package/dist/types/attributes/overlay.d.ts.map +1 -1
- package/dist/types/attributes/pager.d.ts.map +1 -1
- package/dist/types/attributes/password.d.ts.map +1 -1
- package/dist/types/attributes/popover-trigger.d.ts.map +1 -1
- package/dist/types/attributes/popover.d.ts.map +1 -1
- package/dist/types/attributes/profile.d.ts.map +1 -1
- package/dist/types/attributes/tabs.d.ts.map +1 -1
- package/dist/types/attributes/toast.d.ts +2 -2
- package/dist/types/attributes/toast.d.ts.map +1 -1
- package/dist/types/attributes/toaster-trigger.d.ts +3 -3
- package/dist/types/attributes/toaster-trigger.d.ts.map +1 -1
- package/dist/types/attributes/toaster.d.ts +2 -2
- package/dist/types/attributes/toaster.d.ts.map +1 -1
- package/dist/types/components/bleet-ajaxify.d.ts.map +1 -1
- package/dist/types/components/bleet-dialog.d.ts +13 -35
- package/dist/types/components/bleet-dialog.d.ts.map +1 -1
- package/dist/types/components/index.d.ts +0 -2
- package/dist/types/components/index.d.ts.map +1 -1
- package/dist/types/enums/event-aggregator.d.ts +6 -6
- package/dist/types/enums/event-aggregator.d.ts.map +1 -1
- package/dist/types/index.d.ts +6 -5
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/interfaces/dialog.d.ts +1 -2
- package/dist/types/interfaces/dialog.d.ts.map +1 -1
- package/dist/types/interfaces/event-aggregator.d.ts +4 -4
- package/dist/types/interfaces/event-aggregator.d.ts.map +1 -1
- package/dist/types/services/storage-service.d.ts.map +1 -1
- package/dist/types/services/transition-service.d.ts.map +1 -1
- package/dist/types/services/trap-focus-service.d.ts +17 -1
- package/dist/types/services/trap-focus-service.d.ts.map +1 -1
- package/dist/types/utils/toaster.d.ts +2 -2
- package/package.json +1 -1
- package/dist/types/components/bleet-toaster.d.ts +0 -43
- package/dist/types/components/bleet-toaster.d.ts.map +0 -1
package/dist/index.es.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { AjaxifyCodec as e, ApiConfiguration as t, IApiService as n } from "@blackcube/aurelia-api";
|
|
2
|
-
import {
|
|
3
|
-
import { CustomElement as
|
|
2
|
+
import { BindingMode as r, DI as i, IEventAggregator as a, ILogger as o, INode as s, IPlatform as c, bindable as l, customAttribute as u, customElement as d, observable as f, queueTask as p, resolve as m } from "aurelia";
|
|
3
|
+
import { CustomElement as h } from "@aurelia/runtime-html";
|
|
4
4
|
//#region \0rolldown/runtime.js
|
|
5
|
-
var
|
|
5
|
+
var g = Object.defineProperty, _ = (e, t) => {
|
|
6
6
|
let n = {};
|
|
7
|
-
for (var r in e)
|
|
7
|
+
for (var r in e) g(n, r, {
|
|
8
8
|
get: e[r],
|
|
9
9
|
enumerable: !0
|
|
10
10
|
});
|
|
11
|
-
return t ||
|
|
12
|
-
},
|
|
11
|
+
return t || g(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
12
|
+
}, v = /*@__PURE__*/ i.createInterface("IStorageService", (e) => e.singleton(y)), y = class {
|
|
13
13
|
logger;
|
|
14
14
|
p;
|
|
15
|
-
constructor(e =
|
|
15
|
+
constructor(e = m(o).scopeTo("StorageService"), t = m(c)) {
|
|
16
16
|
this.logger = e, this.p = t, this.logger.trace("constructor");
|
|
17
17
|
}
|
|
18
18
|
load(e, t = null) {
|
|
@@ -31,11 +31,11 @@ var m = Object.defineProperty, h = (e, t) => {
|
|
|
31
31
|
remove(e) {
|
|
32
32
|
this.logger.trace("remove", e), localStorage.removeItem(e);
|
|
33
33
|
}
|
|
34
|
-
},
|
|
34
|
+
}, b = /*@__PURE__*/ i.createInterface("ITransitionService", (e) => e.singleton(x)), x = class {
|
|
35
35
|
logger;
|
|
36
36
|
p;
|
|
37
37
|
securityTimeout = 2e3;
|
|
38
|
-
constructor(e =
|
|
38
|
+
constructor(e = m(o).scopeTo("TransitionService"), t = m(c)) {
|
|
39
39
|
this.logger = e, this.p = t, this.logger.trace("constructor");
|
|
40
40
|
}
|
|
41
41
|
run(e, t, n) {
|
|
@@ -46,7 +46,7 @@ var m = Object.defineProperty, h = (e, t) => {
|
|
|
46
46
|
this.logger.trace("before()"), t(e);
|
|
47
47
|
}));
|
|
48
48
|
}
|
|
49
|
-
},
|
|
49
|
+
}, S = /*@__PURE__*/ i.createInterface("ITrapFocusService", (e) => e.transient(C)), C = class {
|
|
50
50
|
logger;
|
|
51
51
|
p;
|
|
52
52
|
focusableElementsQuerySelector = "[href], button, input, select, textarea, [tabindex]:not([tabindex=\"-1\"]), [accesskey], summary, canvas, audio, video, details, iframe, [contenteditable]";
|
|
@@ -58,7 +58,7 @@ var m = Object.defineProperty, h = (e, t) => {
|
|
|
58
58
|
focusableElements = [];
|
|
59
59
|
lastFocusedElement = null;
|
|
60
60
|
started = !1;
|
|
61
|
-
constructor(e =
|
|
61
|
+
constructor(e = m(o).scopeTo("TrapFocusService"), t = m(c)) {
|
|
62
62
|
this.logger = e, this.p = t, this.logger.trace("constructor");
|
|
63
63
|
}
|
|
64
64
|
buildFocusableElements() {
|
|
@@ -96,27 +96,25 @@ var m = Object.defineProperty, h = (e, t) => {
|
|
|
96
96
|
this.logger.trace("cleanup"), this.started &&= (this.opener = null, this.startCallback = null, this.stopCallback = null, this.target = null, this.lastFocusedElement = null, this.focusableElements = [], !1);
|
|
97
97
|
}
|
|
98
98
|
focusedElementIndex() {
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
this.buildFocusableElements();
|
|
100
|
+
let e = this.p.document.activeElement;
|
|
101
|
+
return e !== null && this.focusableElements.includes(e) === !0 && (this.lastFocusedElement = e), this.lastFocusedElement === null ? -1 : this.focusableElements.indexOf(this.lastFocusedElement);
|
|
101
102
|
}
|
|
102
103
|
focusPreviousElement(e = !0) {
|
|
103
|
-
let t = this.focusedElementIndex();
|
|
104
|
-
|
|
105
|
-
let n = !1;
|
|
106
|
-
return t === 0 && e === !0 ? (this.lastFocusedElement = this.focusableElements[this.focusableElements.length - 1], n = !0) : t > 0 && (this.lastFocusedElement = this.focusableElements[t - 1], n = !0), n === !0 && this.p.requestAnimationFrame(() => {
|
|
107
|
-
this.logger.trace("focusPreviousElement: focusing", this.lastFocusedElement), this.lastFocusedElement?.focus();
|
|
108
|
-
}), this.lastFocusedElement;
|
|
104
|
+
let t = this.focusedElementIndex(), n = this.focusableElements.length - 1, r = -1;
|
|
105
|
+
return t === -1 || t === 0 && e === !0 ? r = n : t > 0 && (r = t - 1), this.focusAt(r);
|
|
109
106
|
}
|
|
110
107
|
focusNextElement(e = !0) {
|
|
111
|
-
let t = this.focusedElementIndex();
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
108
|
+
let t = this.focusedElementIndex(), n = this.focusableElements.length - 1, r = -1;
|
|
109
|
+
return t === -1 || t === n && e === !0 ? r = 0 : t < n && (r = t + 1), this.focusAt(r);
|
|
110
|
+
}
|
|
111
|
+
focusAt(e) {
|
|
112
|
+
return e >= 0 && e < this.focusableElements.length && (this.lastFocusedElement = this.focusableElements[e], this.p.requestAnimationFrame(() => {
|
|
113
|
+
this.logger.trace("focusAt: focusing", this.lastFocusedElement), this.lastFocusedElement?.focus();
|
|
114
|
+
})), this.lastFocusedElement;
|
|
117
115
|
}
|
|
118
116
|
onKeyDown = (e) => {
|
|
119
|
-
e.key === "Tab" ?
|
|
117
|
+
e.key === "Tab" ? (e.preventDefault(), e.shiftKey ? this.focusPreviousElement(!0) : this.focusNextElement(!0)) : e.key === "ArrowUp" ? (e.preventDefault(), this.focusPreviousElement(!1)) : e.key === "ArrowDown" ? (e.preventDefault(), this.focusNextElement(!1)) : e.key === "Escape" && (e.preventDefault(), this.stop());
|
|
120
118
|
};
|
|
121
119
|
onClickOutside = (e) => {
|
|
122
120
|
this.logger.trace("onClickOutside", e), this.started && this.globalElement && e.target && (this.logger.trace("onClickOutside: checking if click is outside globalElement", e.target, this.globalElement), this.globalElement.contains(e.target) || this.stop());
|
|
@@ -124,11 +122,11 @@ var m = Object.defineProperty, h = (e, t) => {
|
|
|
124
122
|
};
|
|
125
123
|
//#endregion
|
|
126
124
|
//#region src/utils/state-classes.ts
|
|
127
|
-
function
|
|
125
|
+
function w(e, t, n, r = e) {
|
|
128
126
|
let i = n === "show" ? "hide" : "show";
|
|
129
|
-
e.classList.remove(...
|
|
127
|
+
e.classList.remove(...T(r, t, i)), e.classList.add(...T(r, t, n));
|
|
130
128
|
}
|
|
131
|
-
function
|
|
129
|
+
function T(e, t, n) {
|
|
132
130
|
let r = [];
|
|
133
131
|
return (e.getAttribute(`data-${t}-${n}`) ?? "").split(" ").forEach((e) => {
|
|
134
132
|
e !== "" && r.push(e);
|
|
@@ -136,14 +134,10 @@ function C(e, t, n) {
|
|
|
136
134
|
}
|
|
137
135
|
//#endregion
|
|
138
136
|
//#region src/enums/event-aggregator.ts
|
|
139
|
-
var
|
|
137
|
+
var E = /* @__PURE__ */ function(e) {
|
|
140
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;
|
|
141
|
-
}({}), T = /* @__PURE__ */ function(e) {
|
|
142
|
-
return e.Reset = "reset", e;
|
|
143
|
-
}({}), E = /* @__PURE__ */ function(e) {
|
|
144
|
-
return e.Open = "open", e.Close = "close", e.Toggle = "toggle", e;
|
|
145
139
|
}({}), D = /* @__PURE__ */ function(e) {
|
|
146
|
-
return e.
|
|
140
|
+
return e.Reset = "reset", e;
|
|
147
141
|
}({}), O = /* @__PURE__ */ function(e) {
|
|
148
142
|
return e.Open = "open", e.Close = "close", e.Toggle = "toggle", e;
|
|
149
143
|
}({}), k = /* @__PURE__ */ function(e) {
|
|
@@ -153,35 +147,39 @@ var w = /* @__PURE__ */ function(e) {
|
|
|
153
147
|
}({}), j = /* @__PURE__ */ function(e) {
|
|
154
148
|
return e.Opening = "opening", e.Closing = "closing", e.Opened = "opened", e.Closed = "closed", e;
|
|
155
149
|
}({}), M = /* @__PURE__ */ function(e) {
|
|
156
|
-
return e.
|
|
150
|
+
return e.Open = "open", e.Close = "close", e.Toggle = "toggle", e;
|
|
157
151
|
}({}), N = /* @__PURE__ */ function(e) {
|
|
158
|
-
return e.
|
|
152
|
+
return e.Opening = "opening", e.Closing = "closing", e.Opened = "opened", e.Closed = "closed", e;
|
|
159
153
|
}({}), P = /* @__PURE__ */ function(e) {
|
|
160
|
-
return e.
|
|
154
|
+
return e.Refresh = "refresh", e.Run = "run", e;
|
|
161
155
|
}({}), ee = /* @__PURE__ */ function(e) {
|
|
162
|
-
return e.
|
|
156
|
+
return e.Classic = "classic", e.PublishOnly = "publishOnly", e;
|
|
163
157
|
}({}), F = /* @__PURE__ */ function(e) {
|
|
164
|
-
return e.
|
|
158
|
+
return e.Add = "add", e.Remove = "remove", e;
|
|
165
159
|
}({}), te = /* @__PURE__ */ function(e) {
|
|
166
|
-
return e.
|
|
160
|
+
return e.Added = "added", e.Removed = "removed", e;
|
|
167
161
|
}({}), I = /* @__PURE__ */ function(e) {
|
|
168
|
-
return e.Opening = "opening", e.Closing = "closing", e.Opened = "opened", e.Closed = "closed", e;
|
|
169
|
-
}({}), L = /* @__PURE__ */ function(e) {
|
|
170
162
|
return e.Open = "open", e.Close = "close", e.Toggle = "toggle", e;
|
|
171
|
-
}({}),
|
|
163
|
+
}({}), ne = /* @__PURE__ */ function(e) {
|
|
164
|
+
return e.Remove = "remove", e;
|
|
165
|
+
}({}), L = /* @__PURE__ */ function(e) {
|
|
172
166
|
return e.Opening = "opening", e.Closing = "closing", e.Opened = "opened", e.Closed = "closed", e;
|
|
167
|
+
}({}), R = /* @__PURE__ */ function(e) {
|
|
168
|
+
return e.Open = "open", e.Close = "close", e.Toggle = "toggle", e;
|
|
173
169
|
}({}), z = /* @__PURE__ */ function(e) {
|
|
174
|
-
return e.
|
|
170
|
+
return e.Opening = "opening", e.Closing = "closing", e.Opened = "opened", e.Closed = "closed", e;
|
|
175
171
|
}({}), B = /* @__PURE__ */ function(e) {
|
|
172
|
+
return e.Info = "info", e.Success = "success", e.Warning = "warning", e.Danger = "danger", e;
|
|
173
|
+
}({}), V = /* @__PURE__ */ function(e) {
|
|
176
174
|
return e.Info = "information-circle", e.Success = "check-circle", e.Warning = "exclamation-triangle", e.Danger = "x-circle", e;
|
|
177
|
-
}({}),
|
|
175
|
+
}({}), re = /* @__PURE__ */ function(e) {
|
|
178
176
|
return e.Info = "information-circle", e.Success = "check-circle", e.Warning = "exclamation-triangle", e.Danger = "x-circle", e.InformationCircle = "information-circle", e.CheckCircle = "check-circle", e.ExclamationTriangle = "exclamation-triangle", e.XCircle = "x-circle", e;
|
|
179
|
-
}({}),
|
|
177
|
+
}({}), H = /* @__PURE__ */ function(e) {
|
|
180
178
|
return e.Keep = "keep", e.Close = "close", e.RefreshAndClose = "refreshAndClose", e;
|
|
181
179
|
}({});
|
|
182
180
|
//#endregion
|
|
183
181
|
//#region src/attributes/burger.ts
|
|
184
|
-
function
|
|
182
|
+
function ie(e, t) {
|
|
185
183
|
if (typeof e != "object" || !e) return e;
|
|
186
184
|
var n = e[Symbol.toPrimitive];
|
|
187
185
|
if (n !== void 0) {
|
|
@@ -191,15 +189,15 @@ function re(e, t) {
|
|
|
191
189
|
}
|
|
192
190
|
return (t === "string" ? String : Number)(e);
|
|
193
191
|
}
|
|
194
|
-
function
|
|
195
|
-
var t =
|
|
192
|
+
function ae(e) {
|
|
193
|
+
var t = ie(e, "string");
|
|
196
194
|
return typeof t == "symbol" ? t : String(t);
|
|
197
195
|
}
|
|
198
|
-
function
|
|
196
|
+
function oe(e) {
|
|
199
197
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
200
198
|
return e;
|
|
201
199
|
}
|
|
202
|
-
function
|
|
200
|
+
function se(e, t, n) {
|
|
203
201
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
204
202
|
try {
|
|
205
203
|
Object.defineProperty(e, "name", {
|
|
@@ -209,7 +207,7 @@ function oe(e, t, n) {
|
|
|
209
207
|
} catch {}
|
|
210
208
|
return e;
|
|
211
209
|
}
|
|
212
|
-
function
|
|
210
|
+
function ce(e, t, n, r, i, a) {
|
|
213
211
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
214
212
|
function p(t, n, r) {
|
|
215
213
|
return function(i, a) {
|
|
@@ -234,13 +232,13 @@ function se(e, t, n, r, i, a) {
|
|
|
234
232
|
}
|
|
235
233
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
236
234
|
if (!b && (d ? (h || x ? E = {
|
|
237
|
-
get:
|
|
235
|
+
get: se(function() {
|
|
238
236
|
return y(this);
|
|
239
237
|
}, r, "get"),
|
|
240
238
|
set: function(e) {
|
|
241
239
|
t[4](this, e);
|
|
242
240
|
}
|
|
243
|
-
} : E[O] = y, h ||
|
|
241
|
+
} : E[O] = y, h || se(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
244
242
|
if (f = u[+c][r], f && (f ^ i) !== 7) throw Error("Decorating two elements with the same name (" + E[O].name + ") is not supported yet");
|
|
245
243
|
u[+c][r] = i < 3 ? 1 : i;
|
|
246
244
|
}
|
|
@@ -288,8 +286,8 @@ function se(e, t, n, r, i, a) {
|
|
|
288
286
|
var l = n[c], u = l[1], d = u & 7;
|
|
289
287
|
if ((u & 8) == o && !d == s) {
|
|
290
288
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
291
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
292
|
-
return
|
|
289
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : ae(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
290
|
+
return oe(t) === e;
|
|
293
291
|
} : i);
|
|
294
292
|
}
|
|
295
293
|
}
|
|
@@ -311,15 +309,15 @@ function se(e, t, n, r, i, a) {
|
|
|
311
309
|
}
|
|
312
310
|
};
|
|
313
311
|
}
|
|
314
|
-
var
|
|
312
|
+
var le = u("bleet-burger"), ue, U;
|
|
315
313
|
(class {
|
|
316
314
|
logger;
|
|
317
315
|
ea;
|
|
318
316
|
element;
|
|
319
317
|
static {
|
|
320
|
-
({c: [
|
|
318
|
+
({c: [U, ue]} = ce(this, [le], []));
|
|
321
319
|
}
|
|
322
|
-
constructor(e =
|
|
320
|
+
constructor(e = m(o).scopeTo("bleet-burger"), t = m(a), n = m(s)) {
|
|
323
321
|
this.logger = e, this.ea = t, this.element = n, this.logger.trace("constructor");
|
|
324
322
|
}
|
|
325
323
|
attached() {
|
|
@@ -329,15 +327,15 @@ var ce = l("bleet-burger"), le, H;
|
|
|
329
327
|
this.logger.trace("detaching"), this.element.removeEventListener("click", this.onClickButton);
|
|
330
328
|
}
|
|
331
329
|
onClickButton = (e) => {
|
|
332
|
-
this.logger.trace("onClickButton", e), e.preventDefault(), this.ea.publish(
|
|
330
|
+
this.logger.trace("onClickButton", e), e.preventDefault(), this.ea.publish(E.Menu, { action: I.Open });
|
|
333
331
|
};
|
|
334
332
|
static {
|
|
335
|
-
|
|
333
|
+
ue();
|
|
336
334
|
}
|
|
337
335
|
});
|
|
338
336
|
//#endregion
|
|
339
337
|
//#region src/attributes/menu.ts
|
|
340
|
-
function
|
|
338
|
+
function de(e, t) {
|
|
341
339
|
if (typeof e != "object" || !e) return e;
|
|
342
340
|
var n = e[Symbol.toPrimitive];
|
|
343
341
|
if (n !== void 0) {
|
|
@@ -347,15 +345,15 @@ function ue(e, t) {
|
|
|
347
345
|
}
|
|
348
346
|
return (t === "string" ? String : Number)(e);
|
|
349
347
|
}
|
|
350
|
-
function
|
|
351
|
-
var t =
|
|
348
|
+
function fe(e) {
|
|
349
|
+
var t = de(e, "string");
|
|
352
350
|
return typeof t == "symbol" ? t : String(t);
|
|
353
351
|
}
|
|
354
|
-
function
|
|
352
|
+
function pe(e) {
|
|
355
353
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
356
354
|
return e;
|
|
357
355
|
}
|
|
358
|
-
function
|
|
356
|
+
function me(e, t, n) {
|
|
359
357
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
360
358
|
try {
|
|
361
359
|
Object.defineProperty(e, "name", {
|
|
@@ -365,7 +363,7 @@ function pe(e, t, n) {
|
|
|
365
363
|
} catch {}
|
|
366
364
|
return e;
|
|
367
365
|
}
|
|
368
|
-
function
|
|
366
|
+
function he(e, t, n, r, i, a) {
|
|
369
367
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
370
368
|
function p(t, n, r) {
|
|
371
369
|
return function(i, a) {
|
|
@@ -390,13 +388,13 @@ function me(e, t, n, r, i, a) {
|
|
|
390
388
|
}
|
|
391
389
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
392
390
|
if (!b && (d ? (h || x ? E = {
|
|
393
|
-
get:
|
|
391
|
+
get: me(function() {
|
|
394
392
|
return y(this);
|
|
395
393
|
}, r, "get"),
|
|
396
394
|
set: function(e) {
|
|
397
395
|
t[4](this, e);
|
|
398
396
|
}
|
|
399
|
-
} : E[O] = y, h ||
|
|
397
|
+
} : E[O] = y, h || me(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
400
398
|
if (f = u[+c][r], f && (f ^ i) !== 7) throw Error("Decorating two elements with the same name (" + E[O].name + ") is not supported yet");
|
|
401
399
|
u[+c][r] = i < 3 ? 1 : i;
|
|
402
400
|
}
|
|
@@ -444,8 +442,8 @@ function me(e, t, n, r, i, a) {
|
|
|
444
442
|
var l = n[c], u = l[1], d = u & 7;
|
|
445
443
|
if ((u & 8) == o && !d == s) {
|
|
446
444
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
447
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
448
|
-
return
|
|
445
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : fe(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
446
|
+
return pe(t) === e;
|
|
449
447
|
} : i);
|
|
450
448
|
}
|
|
451
449
|
}
|
|
@@ -467,7 +465,7 @@ function me(e, t, n, r, i, a) {
|
|
|
467
465
|
}
|
|
468
466
|
};
|
|
469
467
|
}
|
|
470
|
-
var
|
|
468
|
+
var ge = u("bleet-menu"), _e, W;
|
|
471
469
|
(class {
|
|
472
470
|
logger;
|
|
473
471
|
ea;
|
|
@@ -476,10 +474,10 @@ var he = l("bleet-menu"), ge, U;
|
|
|
476
474
|
transitionService;
|
|
477
475
|
storageService;
|
|
478
476
|
static {
|
|
479
|
-
({c: [
|
|
477
|
+
({c: [W, _e]} = he(this, [ge], []));
|
|
480
478
|
}
|
|
481
|
-
constructor(e =
|
|
482
|
-
this.logger = e, this.ea = t, this.element = n, this.p = r, this.transitionService =
|
|
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");
|
|
483
481
|
}
|
|
484
482
|
disposable;
|
|
485
483
|
disposableOverlay;
|
|
@@ -491,7 +489,7 @@ var he = l("bleet-menu"), ge, U;
|
|
|
491
489
|
this.logger.trace("attaching"), this.closeButton = this.element.querySelector("[data-menu=close]"), this.toggleButtons = this.element.querySelectorAll("[data-menu^=\"toggle-button\"]"), this.initMenuButtons();
|
|
492
490
|
}
|
|
493
491
|
attached() {
|
|
494
|
-
this.logger.trace("attached"), this.disposable = this.ea.subscribe(
|
|
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);
|
|
495
493
|
}
|
|
496
494
|
detaching() {
|
|
497
495
|
this.logger.trace("detaching"), this.closeButton?.removeEventListener("click", this.onClickClose), this.element.removeEventListener("click", this.onClickToggleButtons), this.disposableOverlay?.dispose(), this.disposable?.dispose();
|
|
@@ -501,16 +499,16 @@ var he = l("bleet-menu"), ge, U;
|
|
|
501
499
|
}
|
|
502
500
|
open(e = !1) {
|
|
503
501
|
this.isOpen || (this.logger.trace("open"), this.isOpen = !0, this.transitionService.run(this.element, (t) => {
|
|
504
|
-
e || this.ea.publish(
|
|
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";
|
|
505
503
|
}, (e) => {
|
|
506
|
-
this.ea.publish(
|
|
504
|
+
this.ea.publish(E.MenuStatus, { status: L.Opened });
|
|
507
505
|
}));
|
|
508
506
|
}
|
|
509
507
|
close(e = !1) {
|
|
510
508
|
this.isOpen && (this.logger.trace("close"), this.isOpen = !1, this.transitionService.run(this.element, (t) => {
|
|
511
|
-
this.ea.publish(
|
|
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";
|
|
512
510
|
}, (e) => {
|
|
513
|
-
this.ea.publish(
|
|
511
|
+
this.ea.publish(E.MenuStatus, { status: L.Closed });
|
|
514
512
|
}));
|
|
515
513
|
}
|
|
516
514
|
onClickClose = (e) => {
|
|
@@ -551,22 +549,22 @@ var he = l("bleet-menu"), ge, U;
|
|
|
551
549
|
let n = this.sublists.get(e);
|
|
552
550
|
if (n !== void 0) {
|
|
553
551
|
let r = e.dataset.menu?.replace("toggle-button-", "");
|
|
554
|
-
n.list.hidden = t === !1,
|
|
552
|
+
n.list.hidden = t === !1, w(n.svg, "menu", t === !0 ? "show" : "hide"), e.ariaExpanded = t === !0 ? "true" : "false", this.storageService.save(`toggle-list-${r}`, t);
|
|
555
553
|
}
|
|
556
554
|
}
|
|
557
555
|
onMenuEvent = (e) => {
|
|
558
|
-
this.logger.trace("onMenuEvent", e), e.action ===
|
|
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());
|
|
559
557
|
};
|
|
560
558
|
onOverlayStatus = (e) => {
|
|
561
|
-
e.status ===
|
|
559
|
+
e.status === k.Closing ? (this.logger.trace("Overlay Close action received"), this.close(!0)) : this.logger.trace("onOverlayStatus unhandled", e);
|
|
562
560
|
};
|
|
563
561
|
static {
|
|
564
|
-
|
|
562
|
+
_e();
|
|
565
563
|
}
|
|
566
564
|
});
|
|
567
565
|
//#endregion
|
|
568
566
|
//#region src/attributes/badge.ts
|
|
569
|
-
function
|
|
567
|
+
function ve(e, t) {
|
|
570
568
|
if (typeof e != "object" || !e) return e;
|
|
571
569
|
var n = e[Symbol.toPrimitive];
|
|
572
570
|
if (n !== void 0) {
|
|
@@ -576,15 +574,15 @@ function _e(e, t) {
|
|
|
576
574
|
}
|
|
577
575
|
return (t === "string" ? String : Number)(e);
|
|
578
576
|
}
|
|
579
|
-
function
|
|
580
|
-
var t =
|
|
577
|
+
function ye(e) {
|
|
578
|
+
var t = ve(e, "string");
|
|
581
579
|
return typeof t == "symbol" ? t : String(t);
|
|
582
580
|
}
|
|
583
|
-
function
|
|
581
|
+
function be(e) {
|
|
584
582
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
585
583
|
return e;
|
|
586
584
|
}
|
|
587
|
-
function
|
|
585
|
+
function xe(e, t, n) {
|
|
588
586
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
589
587
|
try {
|
|
590
588
|
Object.defineProperty(e, "name", {
|
|
@@ -594,7 +592,7 @@ function be(e, t, n) {
|
|
|
594
592
|
} catch {}
|
|
595
593
|
return e;
|
|
596
594
|
}
|
|
597
|
-
function
|
|
595
|
+
function Se(e, t, n, r, i, a) {
|
|
598
596
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
599
597
|
function p(t, n, r) {
|
|
600
598
|
return function(i, a) {
|
|
@@ -619,13 +617,13 @@ function xe(e, t, n, r, i, a) {
|
|
|
619
617
|
}
|
|
620
618
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
621
619
|
if (!b && (d ? (h || x ? E = {
|
|
622
|
-
get:
|
|
620
|
+
get: xe(function() {
|
|
623
621
|
return y(this);
|
|
624
622
|
}, r, "get"),
|
|
625
623
|
set: function(e) {
|
|
626
624
|
t[4](this, e);
|
|
627
625
|
}
|
|
628
|
-
} : E[O] = y, h ||
|
|
626
|
+
} : E[O] = y, h || xe(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
629
627
|
if (f = u[+c][r], f && (f ^ i) !== 7) throw Error("Decorating two elements with the same name (" + E[O].name + ") is not supported yet");
|
|
630
628
|
u[+c][r] = i < 3 ? 1 : i;
|
|
631
629
|
}
|
|
@@ -673,8 +671,8 @@ function xe(e, t, n, r, i, a) {
|
|
|
673
671
|
var l = n[c], u = l[1], d = u & 7;
|
|
674
672
|
if ((u & 8) == o && !d == s) {
|
|
675
673
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
676
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
677
|
-
return
|
|
674
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : ye(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
675
|
+
return be(t) === e;
|
|
678
676
|
} : i);
|
|
679
677
|
}
|
|
680
678
|
}
|
|
@@ -696,45 +694,45 @@ function xe(e, t, n, r, i, a) {
|
|
|
696
694
|
}
|
|
697
695
|
};
|
|
698
696
|
}
|
|
699
|
-
var
|
|
697
|
+
var Ce = u({
|
|
700
698
|
name: "bleet-badge",
|
|
701
699
|
defaultProperty: "id"
|
|
702
|
-
}),
|
|
700
|
+
}), we, Te, Ee, G;
|
|
703
701
|
(class {
|
|
704
702
|
logger;
|
|
705
703
|
ea;
|
|
706
704
|
element;
|
|
707
705
|
static {
|
|
708
|
-
({e: [
|
|
709
|
-
|
|
706
|
+
({e: [Te, Ee], c: [G, we]} = Se(this, [Ce], [[
|
|
707
|
+
l,
|
|
710
708
|
0,
|
|
711
709
|
"id"
|
|
712
710
|
]]));
|
|
713
711
|
}
|
|
714
|
-
constructor(e =
|
|
712
|
+
constructor(e = m(o).scopeTo("bleet-badge"), t = m(a), n = m(s)) {
|
|
715
713
|
this.logger = e, this.ea = t, this.element = n, this.logger.trace("constructor");
|
|
716
714
|
}
|
|
717
715
|
closeButton;
|
|
718
|
-
id =
|
|
716
|
+
id = Te(this, "");
|
|
719
717
|
attached() {
|
|
720
718
|
this.logger.trace("attached"), this.closeButton = this.element.querySelector("[data-badge=remove]") ?? void 0, this.closeButton?.addEventListener("click", this.onClickRemove);
|
|
721
719
|
}
|
|
722
720
|
detaching() {
|
|
723
721
|
this.logger.trace("detaching"), this.closeButton?.removeEventListener("click", this.onClickRemove);
|
|
724
722
|
}
|
|
725
|
-
onClickRemove = (
|
|
726
|
-
this.logger.trace("onClickRemove", e), e.preventDefault(), this.ea.publish(
|
|
727
|
-
action:
|
|
723
|
+
onClickRemove = (Ee(this), (e) => {
|
|
724
|
+
this.logger.trace("onClickRemove", e), e.preventDefault(), this.ea.publish(E.Badge, {
|
|
725
|
+
action: ne.Remove,
|
|
728
726
|
id: this.id
|
|
729
727
|
}), this.element.remove();
|
|
730
728
|
});
|
|
731
729
|
static {
|
|
732
|
-
|
|
730
|
+
we();
|
|
733
731
|
}
|
|
734
732
|
});
|
|
735
733
|
//#endregion
|
|
736
734
|
//#region src/attributes/dropdown.ts
|
|
737
|
-
function
|
|
735
|
+
function De(e, t) {
|
|
738
736
|
if (typeof e != "object" || !e) return e;
|
|
739
737
|
var n = e[Symbol.toPrimitive];
|
|
740
738
|
if (n !== void 0) {
|
|
@@ -744,15 +742,15 @@ function Ee(e, t) {
|
|
|
744
742
|
}
|
|
745
743
|
return (t === "string" ? String : Number)(e);
|
|
746
744
|
}
|
|
747
|
-
function
|
|
748
|
-
var t =
|
|
745
|
+
function Oe(e) {
|
|
746
|
+
var t = De(e, "string");
|
|
749
747
|
return typeof t == "symbol" ? t : String(t);
|
|
750
748
|
}
|
|
751
|
-
function
|
|
749
|
+
function ke(e) {
|
|
752
750
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
753
751
|
return e;
|
|
754
752
|
}
|
|
755
|
-
function
|
|
753
|
+
function Ae(e, t, n) {
|
|
756
754
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
757
755
|
try {
|
|
758
756
|
Object.defineProperty(e, "name", {
|
|
@@ -762,7 +760,7 @@ function ke(e, t, n) {
|
|
|
762
760
|
} catch {}
|
|
763
761
|
return e;
|
|
764
762
|
}
|
|
765
|
-
function
|
|
763
|
+
function je(e, t, n, r, i, a) {
|
|
766
764
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
767
765
|
function p(t, n, r) {
|
|
768
766
|
return function(i, a) {
|
|
@@ -787,13 +785,13 @@ function Ae(e, t, n, r, i, a) {
|
|
|
787
785
|
}
|
|
788
786
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
789
787
|
if (!b && (d ? (h || x ? E = {
|
|
790
|
-
get:
|
|
788
|
+
get: Ae(function() {
|
|
791
789
|
return y(this);
|
|
792
790
|
}, r, "get"),
|
|
793
791
|
set: function(e) {
|
|
794
792
|
t[4](this, e);
|
|
795
793
|
}
|
|
796
|
-
} : E[O] = y, h ||
|
|
794
|
+
} : E[O] = y, h || Ae(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
797
795
|
if (f = u[+c][r], f && (f ^ i) !== 7) throw Error("Decorating two elements with the same name (" + E[O].name + ") is not supported yet");
|
|
798
796
|
u[+c][r] = i < 3 ? 1 : i;
|
|
799
797
|
}
|
|
@@ -841,8 +839,8 @@ function Ae(e, t, n, r, i, a) {
|
|
|
841
839
|
var l = n[c], u = l[1], d = u & 7;
|
|
842
840
|
if ((u & 8) == o && !d == s) {
|
|
843
841
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
844
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
845
|
-
return
|
|
842
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : Oe(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
843
|
+
return ke(t) === e;
|
|
846
844
|
} : i);
|
|
847
845
|
}
|
|
848
846
|
}
|
|
@@ -864,15 +862,15 @@ function Ae(e, t, n, r, i, a) {
|
|
|
864
862
|
}
|
|
865
863
|
};
|
|
866
864
|
}
|
|
867
|
-
var
|
|
865
|
+
var Me = u("bleet-dropdown"), Ne, K;
|
|
868
866
|
(class {
|
|
869
867
|
logger;
|
|
870
868
|
element;
|
|
871
869
|
trapFocusService;
|
|
872
870
|
static {
|
|
873
|
-
({c: [
|
|
871
|
+
({c: [K, Ne]} = je(this, [Me], []));
|
|
874
872
|
}
|
|
875
|
-
constructor(e =
|
|
873
|
+
constructor(e = m(o).scopeTo("bleet-dropdown"), t = m(s), n = m(S)) {
|
|
876
874
|
this.logger = e, this.element = t, this.trapFocusService = n, this.logger.trace("constructor");
|
|
877
875
|
}
|
|
878
876
|
select;
|
|
@@ -1010,7 +1008,7 @@ var je = l("bleet-dropdown"), Me, G;
|
|
|
1010
1008
|
let t = this.itemsContainer?.querySelector(`[data-value="${CSS.escape(e.value)}"]`);
|
|
1011
1009
|
if (!t) return;
|
|
1012
1010
|
let n = t.querySelector("[data-dropdown=item-check]");
|
|
1013
|
-
e.selected ? (
|
|
1011
|
+
e.selected ? (w(t, "dropdown", "show"), n && w(n, "dropdown", "show"), t.setAttribute("aria-selected", "true"), this.button?.setAttribute("aria-activedescendant", t.id)) : (w(t, "dropdown", "hide"), n && w(n, "dropdown", "hide"), t.setAttribute("aria-selected", "false"));
|
|
1014
1012
|
}), this.updateDisplay();
|
|
1015
1013
|
}
|
|
1016
1014
|
preparePanel() {
|
|
@@ -1039,12 +1037,12 @@ var je = l("bleet-dropdown"), Me, G;
|
|
|
1039
1037
|
n && (n.textContent = e), this.itemsContainer?.append(t);
|
|
1040
1038
|
}
|
|
1041
1039
|
static {
|
|
1042
|
-
|
|
1040
|
+
Ne();
|
|
1043
1041
|
}
|
|
1044
1042
|
});
|
|
1045
1043
|
//#endregion
|
|
1046
1044
|
//#region src/attributes/password.ts
|
|
1047
|
-
function
|
|
1045
|
+
function Pe(e, t) {
|
|
1048
1046
|
if (typeof e != "object" || !e) return e;
|
|
1049
1047
|
var n = e[Symbol.toPrimitive];
|
|
1050
1048
|
if (n !== void 0) {
|
|
@@ -1054,15 +1052,15 @@ function Ne(e, t) {
|
|
|
1054
1052
|
}
|
|
1055
1053
|
return (t === "string" ? String : Number)(e);
|
|
1056
1054
|
}
|
|
1057
|
-
function
|
|
1058
|
-
var t =
|
|
1055
|
+
function Fe(e) {
|
|
1056
|
+
var t = Pe(e, "string");
|
|
1059
1057
|
return typeof t == "symbol" ? t : String(t);
|
|
1060
1058
|
}
|
|
1061
|
-
function
|
|
1059
|
+
function Ie(e) {
|
|
1062
1060
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
1063
1061
|
return e;
|
|
1064
1062
|
}
|
|
1065
|
-
function
|
|
1063
|
+
function Le(e, t, n) {
|
|
1066
1064
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
1067
1065
|
try {
|
|
1068
1066
|
Object.defineProperty(e, "name", {
|
|
@@ -1072,7 +1070,7 @@ function Ie(e, t, n) {
|
|
|
1072
1070
|
} catch {}
|
|
1073
1071
|
return e;
|
|
1074
1072
|
}
|
|
1075
|
-
function
|
|
1073
|
+
function Re(e, t, n, r, i, a) {
|
|
1076
1074
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
1077
1075
|
function p(t, n, r) {
|
|
1078
1076
|
return function(i, a) {
|
|
@@ -1097,13 +1095,13 @@ function Le(e, t, n, r, i, a) {
|
|
|
1097
1095
|
}
|
|
1098
1096
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
1099
1097
|
if (!b && (d ? (h || x ? E = {
|
|
1100
|
-
get:
|
|
1098
|
+
get: Le(function() {
|
|
1101
1099
|
return y(this);
|
|
1102
1100
|
}, r, "get"),
|
|
1103
1101
|
set: function(e) {
|
|
1104
1102
|
t[4](this, e);
|
|
1105
1103
|
}
|
|
1106
|
-
} : E[O] = y, h ||
|
|
1104
|
+
} : E[O] = y, h || Le(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
1107
1105
|
if (f = u[+c][r], f && (f ^ i) !== 7) throw Error("Decorating two elements with the same name (" + E[O].name + ") is not supported yet");
|
|
1108
1106
|
u[+c][r] = i < 3 ? 1 : i;
|
|
1109
1107
|
}
|
|
@@ -1151,8 +1149,8 @@ function Le(e, t, n, r, i, a) {
|
|
|
1151
1149
|
var l = n[c], u = l[1], d = u & 7;
|
|
1152
1150
|
if ((u & 8) == o && !d == s) {
|
|
1153
1151
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
1154
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
1155
|
-
return
|
|
1152
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : Fe(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
1153
|
+
return Ie(t) === e;
|
|
1156
1154
|
} : i);
|
|
1157
1155
|
}
|
|
1158
1156
|
}
|
|
@@ -1174,14 +1172,14 @@ function Le(e, t, n, r, i, a) {
|
|
|
1174
1172
|
}
|
|
1175
1173
|
};
|
|
1176
1174
|
}
|
|
1177
|
-
var
|
|
1175
|
+
var ze = u("bleet-password"), Be, q;
|
|
1178
1176
|
(class {
|
|
1179
1177
|
logger;
|
|
1180
1178
|
element;
|
|
1181
1179
|
static {
|
|
1182
|
-
({c: [
|
|
1180
|
+
({c: [q, Be]} = Re(this, [ze], []));
|
|
1183
1181
|
}
|
|
1184
|
-
constructor(e =
|
|
1182
|
+
constructor(e = m(o).scopeTo("bleet-password"), t = m(s)) {
|
|
1185
1183
|
this.logger = e, this.element = t;
|
|
1186
1184
|
}
|
|
1187
1185
|
button;
|
|
@@ -1200,15 +1198,15 @@ var Re = l("bleet-password"), ze, K;
|
|
|
1200
1198
|
onToggle = (e) => {
|
|
1201
1199
|
e.preventDefault();
|
|
1202
1200
|
let t = this.input?.type === "password";
|
|
1203
|
-
this.input && (this.input.type = t ? "text" : "password"), this.iconHidden &&
|
|
1201
|
+
this.input && (this.input.type = t ? "text" : "password"), this.iconHidden && w(this.iconHidden, "password", t ? "hide" : "show"), this.iconVisible && w(this.iconVisible, "password", t ? "show" : "hide");
|
|
1204
1202
|
};
|
|
1205
1203
|
static {
|
|
1206
|
-
|
|
1204
|
+
Be();
|
|
1207
1205
|
}
|
|
1208
1206
|
});
|
|
1209
1207
|
//#endregion
|
|
1210
1208
|
//#region src/attributes/tabs.ts
|
|
1211
|
-
function
|
|
1209
|
+
function Ve(e, t) {
|
|
1212
1210
|
if (typeof e != "object" || !e) return e;
|
|
1213
1211
|
var n = e[Symbol.toPrimitive];
|
|
1214
1212
|
if (n !== void 0) {
|
|
@@ -1218,15 +1216,15 @@ function Be(e, t) {
|
|
|
1218
1216
|
}
|
|
1219
1217
|
return (t === "string" ? String : Number)(e);
|
|
1220
1218
|
}
|
|
1221
|
-
function
|
|
1222
|
-
var t =
|
|
1219
|
+
function He(e) {
|
|
1220
|
+
var t = Ve(e, "string");
|
|
1223
1221
|
return typeof t == "symbol" ? t : String(t);
|
|
1224
1222
|
}
|
|
1225
|
-
function
|
|
1223
|
+
function Ue(e) {
|
|
1226
1224
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
1227
1225
|
return e;
|
|
1228
1226
|
}
|
|
1229
|
-
function
|
|
1227
|
+
function We(e, t, n) {
|
|
1230
1228
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
1231
1229
|
try {
|
|
1232
1230
|
Object.defineProperty(e, "name", {
|
|
@@ -1236,7 +1234,7 @@ function Ue(e, t, n) {
|
|
|
1236
1234
|
} catch {}
|
|
1237
1235
|
return e;
|
|
1238
1236
|
}
|
|
1239
|
-
function
|
|
1237
|
+
function Ge(e, t, n, r, i, a) {
|
|
1240
1238
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
1241
1239
|
function p(t, n, r) {
|
|
1242
1240
|
return function(i, a) {
|
|
@@ -1261,13 +1259,13 @@ function We(e, t, n, r, i, a) {
|
|
|
1261
1259
|
}
|
|
1262
1260
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
1263
1261
|
if (!b && (d ? (h || x ? E = {
|
|
1264
|
-
get:
|
|
1262
|
+
get: We(function() {
|
|
1265
1263
|
return y(this);
|
|
1266
1264
|
}, r, "get"),
|
|
1267
1265
|
set: function(e) {
|
|
1268
1266
|
t[4](this, e);
|
|
1269
1267
|
}
|
|
1270
|
-
} : E[O] = y, h ||
|
|
1268
|
+
} : E[O] = y, h || We(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
1271
1269
|
if (f = u[+c][r], f && (f ^ i) !== 7) throw Error("Decorating two elements with the same name (" + E[O].name + ") is not supported yet");
|
|
1272
1270
|
u[+c][r] = i < 3 ? 1 : i;
|
|
1273
1271
|
}
|
|
@@ -1315,8 +1313,8 @@ function We(e, t, n, r, i, a) {
|
|
|
1315
1313
|
var l = n[c], u = l[1], d = u & 7;
|
|
1316
1314
|
if ((u & 8) == o && !d == s) {
|
|
1317
1315
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
1318
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
1319
|
-
return
|
|
1316
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : He(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
1317
|
+
return Ue(t) === e;
|
|
1320
1318
|
} : i);
|
|
1321
1319
|
}
|
|
1322
1320
|
}
|
|
@@ -1338,15 +1336,15 @@ function We(e, t, n, r, i, a) {
|
|
|
1338
1336
|
}
|
|
1339
1337
|
};
|
|
1340
1338
|
}
|
|
1341
|
-
var
|
|
1339
|
+
var Ke = u("bleet-tabs"), qe, J;
|
|
1342
1340
|
(class {
|
|
1343
1341
|
logger;
|
|
1344
1342
|
element;
|
|
1345
1343
|
p;
|
|
1346
1344
|
static {
|
|
1347
|
-
({c: [
|
|
1345
|
+
({c: [J, qe]} = Ge(this, [Ke], []));
|
|
1348
1346
|
}
|
|
1349
|
-
constructor(e =
|
|
1347
|
+
constructor(e = m(o).scopeTo("bleet-tabs"), t = m(s), n = m(c)) {
|
|
1350
1348
|
this.logger = e, this.element = t, this.p = n, this.logger.trace("constructor");
|
|
1351
1349
|
}
|
|
1352
1350
|
activeClasses = "";
|
|
@@ -1382,12 +1380,12 @@ var Ge = l("bleet-tabs"), Ke, q;
|
|
|
1382
1380
|
n && n.click();
|
|
1383
1381
|
};
|
|
1384
1382
|
static {
|
|
1385
|
-
|
|
1383
|
+
qe();
|
|
1386
1384
|
}
|
|
1387
1385
|
});
|
|
1388
1386
|
//#endregion
|
|
1389
1387
|
//#region src/attributes/profile.ts
|
|
1390
|
-
function
|
|
1388
|
+
function Je(e, t) {
|
|
1391
1389
|
if (typeof e != "object" || !e) return e;
|
|
1392
1390
|
var n = e[Symbol.toPrimitive];
|
|
1393
1391
|
if (n !== void 0) {
|
|
@@ -1397,15 +1395,15 @@ function qe(e, t) {
|
|
|
1397
1395
|
}
|
|
1398
1396
|
return (t === "string" ? String : Number)(e);
|
|
1399
1397
|
}
|
|
1400
|
-
function
|
|
1401
|
-
var t =
|
|
1398
|
+
function Ye(e) {
|
|
1399
|
+
var t = Je(e, "string");
|
|
1402
1400
|
return typeof t == "symbol" ? t : String(t);
|
|
1403
1401
|
}
|
|
1404
|
-
function
|
|
1402
|
+
function Xe(e) {
|
|
1405
1403
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
1406
1404
|
return e;
|
|
1407
1405
|
}
|
|
1408
|
-
function
|
|
1406
|
+
function Ze(e, t, n) {
|
|
1409
1407
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
1410
1408
|
try {
|
|
1411
1409
|
Object.defineProperty(e, "name", {
|
|
@@ -1415,7 +1413,7 @@ function Xe(e, t, n) {
|
|
|
1415
1413
|
} catch {}
|
|
1416
1414
|
return e;
|
|
1417
1415
|
}
|
|
1418
|
-
function
|
|
1416
|
+
function Qe(e, t, n, r, i, a) {
|
|
1419
1417
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
1420
1418
|
function p(t, n, r) {
|
|
1421
1419
|
return function(i, a) {
|
|
@@ -1440,13 +1438,13 @@ function Ze(e, t, n, r, i, a) {
|
|
|
1440
1438
|
}
|
|
1441
1439
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
1442
1440
|
if (!b && (d ? (h || x ? E = {
|
|
1443
|
-
get:
|
|
1441
|
+
get: Ze(function() {
|
|
1444
1442
|
return y(this);
|
|
1445
1443
|
}, r, "get"),
|
|
1446
1444
|
set: function(e) {
|
|
1447
1445
|
t[4](this, e);
|
|
1448
1446
|
}
|
|
1449
|
-
} : E[O] = y, h ||
|
|
1447
|
+
} : E[O] = y, h || Ze(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
1450
1448
|
if (f = u[+c][r], f && (f ^ i) !== 7) throw Error("Decorating two elements with the same name (" + E[O].name + ") is not supported yet");
|
|
1451
1449
|
u[+c][r] = i < 3 ? 1 : i;
|
|
1452
1450
|
}
|
|
@@ -1494,8 +1492,8 @@ function Ze(e, t, n, r, i, a) {
|
|
|
1494
1492
|
var l = n[c], u = l[1], d = u & 7;
|
|
1495
1493
|
if ((u & 8) == o && !d == s) {
|
|
1496
1494
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
1497
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
1498
|
-
return
|
|
1495
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : Ye(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
1496
|
+
return Xe(t) === e;
|
|
1499
1497
|
} : i);
|
|
1500
1498
|
}
|
|
1501
1499
|
}
|
|
@@ -1517,10 +1515,10 @@ function Ze(e, t, n, r, i, a) {
|
|
|
1517
1515
|
}
|
|
1518
1516
|
};
|
|
1519
1517
|
}
|
|
1520
|
-
var
|
|
1518
|
+
var $e = u({
|
|
1521
1519
|
name: "bleet-profile",
|
|
1522
1520
|
defaultProperty: "id"
|
|
1523
|
-
}),
|
|
1521
|
+
}), et, tt, nt, Y;
|
|
1524
1522
|
(class {
|
|
1525
1523
|
logger;
|
|
1526
1524
|
ea;
|
|
@@ -1529,17 +1527,17 @@ var Qe = l({
|
|
|
1529
1527
|
p;
|
|
1530
1528
|
trapFocusService;
|
|
1531
1529
|
static {
|
|
1532
|
-
({e: [
|
|
1533
|
-
|
|
1530
|
+
({e: [tt, nt], c: [Y, et]} = Qe(this, [$e], [[
|
|
1531
|
+
l,
|
|
1534
1532
|
0,
|
|
1535
1533
|
"id"
|
|
1536
1534
|
]]));
|
|
1537
1535
|
}
|
|
1538
|
-
constructor(e =
|
|
1539
|
-
this.logger = e, this.ea = t, this.element = n, this.transitionService = r, this.p =
|
|
1536
|
+
constructor(e = m(o).scopeTo("bleet-profile"), t = m(a), n = m(s), r = m(b), i = m(c), l = m(S)) {
|
|
1537
|
+
this.logger = e, this.ea = t, this.element = n, this.transitionService = r, this.p = i, this.trapFocusService = l, this.logger.trace("constructor");
|
|
1540
1538
|
}
|
|
1541
|
-
id =
|
|
1542
|
-
disposable = (
|
|
1539
|
+
id = tt(this, "");
|
|
1540
|
+
disposable = (nt(this), void 0);
|
|
1543
1541
|
toggleButton;
|
|
1544
1542
|
panel;
|
|
1545
1543
|
isOpen = !1;
|
|
@@ -1547,7 +1545,7 @@ var Qe = l({
|
|
|
1547
1545
|
this.logger.trace("attaching"), this.toggleButton = this.element.querySelector("[data-profile=toggle]"), this.panel = this.element.querySelector("[data-profile=panel]");
|
|
1548
1546
|
}
|
|
1549
1547
|
attached() {
|
|
1550
|
-
this.logger.trace("attached"), this.disposable = this.ea.subscribe(
|
|
1548
|
+
this.logger.trace("attached"), this.disposable = this.ea.subscribe(E.Profile, this.onProfileEvent), this.toggleButton?.addEventListener("click", this.onClickToggle);
|
|
1551
1549
|
}
|
|
1552
1550
|
detaching() {
|
|
1553
1551
|
this.logger.trace("detaching"), this.toggleButton?.removeEventListener("click", this.onClickToggle), this.isOpen && this.trapFocusService.stop(), this.disposable?.dispose();
|
|
@@ -1559,18 +1557,18 @@ var Qe = l({
|
|
|
1559
1557
|
this.logger.trace("onClickToggle", e), e.preventDefault(), this.isOpen ? this.close() : this.open();
|
|
1560
1558
|
};
|
|
1561
1559
|
onStopTrapFocus = () => (this.logger.trace("onStopTrapFocus"), this.isOpen = !1, this.toggleButton?.setAttribute("aria-expanded", "false"), this.transitionService.run(this.panel, (e) => {
|
|
1562
|
-
this.ea.publish(
|
|
1563
|
-
action:
|
|
1560
|
+
this.ea.publish(E.Profile, {
|
|
1561
|
+
action: A.Close,
|
|
1564
1562
|
id: this.id
|
|
1565
|
-
}), this.ea.publish(
|
|
1566
|
-
status:
|
|
1563
|
+
}), this.ea.publish(E.ProfileStatus, {
|
|
1564
|
+
status: j.Closing,
|
|
1567
1565
|
id: this.id
|
|
1568
1566
|
}), this.p.requestAnimationFrame(() => {
|
|
1569
|
-
|
|
1567
|
+
w(e, "profile", "hide");
|
|
1570
1568
|
});
|
|
1571
1569
|
}, (e) => {
|
|
1572
|
-
e.hidden = !0, this.ea.publish(
|
|
1573
|
-
status:
|
|
1570
|
+
e.hidden = !0, this.ea.publish(E.ProfileStatus, {
|
|
1571
|
+
status: j.Closed,
|
|
1574
1572
|
id: this.id
|
|
1575
1573
|
});
|
|
1576
1574
|
}), Promise.resolve());
|
|
@@ -1579,18 +1577,18 @@ var Qe = l({
|
|
|
1579
1577
|
let e = this.panel?.querySelector("a, button");
|
|
1580
1578
|
return this.trapFocusService.start(this.toggleButton, this.panel, this.element, void 0, this.onStopTrapFocus, e).then(() => {
|
|
1581
1579
|
this.panel.hidden = !1, this.transitionService.run(this.panel, (e) => {
|
|
1582
|
-
this.ea.publish(
|
|
1583
|
-
action:
|
|
1580
|
+
this.ea.publish(E.Profile, {
|
|
1581
|
+
action: A.Open,
|
|
1584
1582
|
id: this.id
|
|
1585
|
-
}), this.ea.publish(
|
|
1586
|
-
status:
|
|
1583
|
+
}), this.ea.publish(E.ProfileStatus, {
|
|
1584
|
+
status: j.Opening,
|
|
1587
1585
|
id: this.id
|
|
1588
1586
|
}), this.p.requestAnimationFrame(() => {
|
|
1589
|
-
|
|
1587
|
+
w(e, "profile", "show");
|
|
1590
1588
|
});
|
|
1591
1589
|
}, () => {
|
|
1592
|
-
this.ea.publish(
|
|
1593
|
-
status:
|
|
1590
|
+
this.ea.publish(E.ProfileStatus, {
|
|
1591
|
+
status: j.Opened,
|
|
1594
1592
|
id: this.id
|
|
1595
1593
|
});
|
|
1596
1594
|
});
|
|
@@ -1602,15 +1600,15 @@ var Qe = l({
|
|
|
1602
1600
|
onProfileEvent = (e) => {
|
|
1603
1601
|
this.logger.trace("onProfileEvent", e);
|
|
1604
1602
|
let t = e.id === void 0 || e.id === this.id;
|
|
1605
|
-
e.action ===
|
|
1603
|
+
e.action === A.Close && t && this.isOpen && (this.logger.trace("Profile Close action received"), this.close());
|
|
1606
1604
|
};
|
|
1607
1605
|
static {
|
|
1608
|
-
|
|
1606
|
+
et();
|
|
1609
1607
|
}
|
|
1610
1608
|
});
|
|
1611
1609
|
//#endregion
|
|
1612
1610
|
//#region src/attributes/toaster-trigger.ts
|
|
1613
|
-
function
|
|
1611
|
+
function rt(e, t) {
|
|
1614
1612
|
if (typeof e != "object" || !e) return e;
|
|
1615
1613
|
var n = e[Symbol.toPrimitive];
|
|
1616
1614
|
if (n !== void 0) {
|
|
@@ -1620,15 +1618,15 @@ function nt(e, t) {
|
|
|
1620
1618
|
}
|
|
1621
1619
|
return (t === "string" ? String : Number)(e);
|
|
1622
1620
|
}
|
|
1623
|
-
function
|
|
1624
|
-
var t =
|
|
1621
|
+
function it(e) {
|
|
1622
|
+
var t = rt(e, "string");
|
|
1625
1623
|
return typeof t == "symbol" ? t : String(t);
|
|
1626
1624
|
}
|
|
1627
|
-
function
|
|
1625
|
+
function at(e) {
|
|
1628
1626
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
1629
1627
|
return e;
|
|
1630
1628
|
}
|
|
1631
|
-
function
|
|
1629
|
+
function ot(e, t, n) {
|
|
1632
1630
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
1633
1631
|
try {
|
|
1634
1632
|
Object.defineProperty(e, "name", {
|
|
@@ -1638,7 +1636,7 @@ function at(e, t, n) {
|
|
|
1638
1636
|
} catch {}
|
|
1639
1637
|
return e;
|
|
1640
1638
|
}
|
|
1641
|
-
function
|
|
1639
|
+
function st(e, t, n, r, i, a) {
|
|
1642
1640
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
1643
1641
|
function p(t, n, r) {
|
|
1644
1642
|
return function(i, a) {
|
|
@@ -1663,13 +1661,13 @@ function ot(e, t, n, r, i, a) {
|
|
|
1663
1661
|
}
|
|
1664
1662
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
1665
1663
|
if (!b && (d ? (h || x ? E = {
|
|
1666
|
-
get:
|
|
1664
|
+
get: ot(function() {
|
|
1667
1665
|
return y(this);
|
|
1668
1666
|
}, r, "get"),
|
|
1669
1667
|
set: function(e) {
|
|
1670
1668
|
t[4](this, e);
|
|
1671
1669
|
}
|
|
1672
|
-
} : E[O] = y, h ||
|
|
1670
|
+
} : E[O] = y, h || ot(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
1673
1671
|
if (f = u[+c][r], f && (f ^ i) !== 7) throw Error("Decorating two elements with the same name (" + E[O].name + ") is not supported yet");
|
|
1674
1672
|
u[+c][r] = i < 3 ? 1 : i;
|
|
1675
1673
|
}
|
|
@@ -1717,8 +1715,8 @@ function ot(e, t, n, r, i, a) {
|
|
|
1717
1715
|
var l = n[c], u = l[1], d = u & 7;
|
|
1718
1716
|
if ((u & 8) == o && !d == s) {
|
|
1719
1717
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
1720
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
1721
|
-
return
|
|
1718
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : it(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
1719
|
+
return at(t) === e;
|
|
1722
1720
|
} : i);
|
|
1723
1721
|
}
|
|
1724
1722
|
}
|
|
@@ -1740,57 +1738,57 @@ function ot(e, t, n, r, i, a) {
|
|
|
1740
1738
|
}
|
|
1741
1739
|
};
|
|
1742
1740
|
}
|
|
1743
|
-
var
|
|
1741
|
+
var ct = u({
|
|
1744
1742
|
name: "bleet-toaster-trigger",
|
|
1745
1743
|
defaultProperty: "id"
|
|
1746
|
-
}),
|
|
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;
|
|
1747
1745
|
(class {
|
|
1748
1746
|
logger;
|
|
1749
1747
|
element;
|
|
1750
1748
|
ea;
|
|
1751
1749
|
static {
|
|
1752
|
-
({e: [
|
|
1750
|
+
({e: [ht, gt, _t, vt, yt, bt, xt, St, Ct, wt, Tt, Et], c: [X, lt]} = st(this, [ct], [
|
|
1753
1751
|
[
|
|
1754
|
-
|
|
1752
|
+
l,
|
|
1755
1753
|
0,
|
|
1756
1754
|
"id"
|
|
1757
1755
|
],
|
|
1758
1756
|
[
|
|
1759
|
-
|
|
1757
|
+
ut,
|
|
1760
1758
|
0,
|
|
1761
|
-
"
|
|
1759
|
+
"level"
|
|
1762
1760
|
],
|
|
1763
1761
|
[
|
|
1764
|
-
|
|
1762
|
+
dt,
|
|
1765
1763
|
0,
|
|
1766
1764
|
"icon"
|
|
1767
1765
|
],
|
|
1768
1766
|
[
|
|
1769
|
-
|
|
1767
|
+
ft,
|
|
1770
1768
|
0,
|
|
1771
1769
|
"title"
|
|
1772
1770
|
],
|
|
1773
1771
|
[
|
|
1774
|
-
|
|
1772
|
+
pt,
|
|
1775
1773
|
0,
|
|
1776
1774
|
"content"
|
|
1777
1775
|
],
|
|
1778
1776
|
[
|
|
1779
|
-
|
|
1777
|
+
mt,
|
|
1780
1778
|
0,
|
|
1781
1779
|
"duration"
|
|
1782
1780
|
]
|
|
1783
1781
|
]));
|
|
1784
1782
|
}
|
|
1785
|
-
constructor(e =
|
|
1783
|
+
constructor(e = m(o).scopeTo("bleet-toaster-trigger"), t = m(s), n = m(a)) {
|
|
1786
1784
|
this.logger = e, this.element = t, this.ea = n, this.logger.trace("constructor");
|
|
1787
1785
|
}
|
|
1788
|
-
id =
|
|
1789
|
-
|
|
1790
|
-
icon = (
|
|
1791
|
-
title = (
|
|
1792
|
-
content = (
|
|
1793
|
-
duration = (
|
|
1786
|
+
id = ht(this, "");
|
|
1787
|
+
level = (gt(this), _t(this, B.Info));
|
|
1788
|
+
icon = (vt(this), yt(this, V.Info));
|
|
1789
|
+
title = (bt(this), xt(this, ""));
|
|
1790
|
+
content = (St(this), Ct(this, ""));
|
|
1791
|
+
duration = (wt(this), Tt(this, 0));
|
|
1794
1792
|
attaching() {
|
|
1795
1793
|
this.logger.trace("attaching");
|
|
1796
1794
|
}
|
|
@@ -1800,13 +1798,13 @@ var st = l({
|
|
|
1800
1798
|
detaching() {
|
|
1801
1799
|
this.logger.trace("detaching"), this.element.removeEventListener("click", this.onClick);
|
|
1802
1800
|
}
|
|
1803
|
-
onClick = (
|
|
1804
|
-
this.logger.trace("onClick", e), e.preventDefault(), this.ea.publish(
|
|
1805
|
-
action:
|
|
1801
|
+
onClick = (Et(this), (e) => {
|
|
1802
|
+
this.logger.trace("onClick", e), e.preventDefault(), this.ea.publish(E.Toaster, {
|
|
1803
|
+
action: F.Add,
|
|
1806
1804
|
toast: {
|
|
1807
1805
|
id: this.id,
|
|
1808
1806
|
duration: this.duration,
|
|
1809
|
-
|
|
1807
|
+
level: this.level,
|
|
1810
1808
|
icon: this.icon,
|
|
1811
1809
|
title: this.title,
|
|
1812
1810
|
content: this.content
|
|
@@ -1814,12 +1812,12 @@ var st = l({
|
|
|
1814
1812
|
});
|
|
1815
1813
|
});
|
|
1816
1814
|
static {
|
|
1817
|
-
|
|
1815
|
+
lt();
|
|
1818
1816
|
}
|
|
1819
1817
|
});
|
|
1820
1818
|
//#endregion
|
|
1821
1819
|
//#region src/attributes/alert.ts
|
|
1822
|
-
function
|
|
1820
|
+
function Dt(e, t) {
|
|
1823
1821
|
if (typeof e != "object" || !e) return e;
|
|
1824
1822
|
var n = e[Symbol.toPrimitive];
|
|
1825
1823
|
if (n !== void 0) {
|
|
@@ -1829,15 +1827,15 @@ function Et(e, t) {
|
|
|
1829
1827
|
}
|
|
1830
1828
|
return (t === "string" ? String : Number)(e);
|
|
1831
1829
|
}
|
|
1832
|
-
function
|
|
1833
|
-
var t =
|
|
1830
|
+
function Ot(e) {
|
|
1831
|
+
var t = Dt(e, "string");
|
|
1834
1832
|
return typeof t == "symbol" ? t : String(t);
|
|
1835
1833
|
}
|
|
1836
|
-
function
|
|
1834
|
+
function kt(e) {
|
|
1837
1835
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
1838
1836
|
return e;
|
|
1839
1837
|
}
|
|
1840
|
-
function
|
|
1838
|
+
function At(e, t, n) {
|
|
1841
1839
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
1842
1840
|
try {
|
|
1843
1841
|
Object.defineProperty(e, "name", {
|
|
@@ -1847,7 +1845,7 @@ function kt(e, t, n) {
|
|
|
1847
1845
|
} catch {}
|
|
1848
1846
|
return e;
|
|
1849
1847
|
}
|
|
1850
|
-
function
|
|
1848
|
+
function jt(e, t, n, r, i, a) {
|
|
1851
1849
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
1852
1850
|
function p(t, n, r) {
|
|
1853
1851
|
return function(i, a) {
|
|
@@ -1872,13 +1870,13 @@ function At(e, t, n, r, i, a) {
|
|
|
1872
1870
|
}
|
|
1873
1871
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
1874
1872
|
if (!b && (d ? (h || x ? E = {
|
|
1875
|
-
get:
|
|
1873
|
+
get: At(function() {
|
|
1876
1874
|
return y(this);
|
|
1877
1875
|
}, r, "get"),
|
|
1878
1876
|
set: function(e) {
|
|
1879
1877
|
t[4](this, e);
|
|
1880
1878
|
}
|
|
1881
|
-
} : E[O] = y, h ||
|
|
1879
|
+
} : E[O] = y, h || At(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
1882
1880
|
if (f = u[+c][r], f && (f ^ i) !== 7) throw Error("Decorating two elements with the same name (" + E[O].name + ") is not supported yet");
|
|
1883
1881
|
u[+c][r] = i < 3 ? 1 : i;
|
|
1884
1882
|
}
|
|
@@ -1926,8 +1924,8 @@ function At(e, t, n, r, i, a) {
|
|
|
1926
1924
|
var l = n[c], u = l[1], d = u & 7;
|
|
1927
1925
|
if ((u & 8) == o && !d == s) {
|
|
1928
1926
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
1929
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
1930
|
-
return
|
|
1927
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : Ot(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
1928
|
+
return kt(t) === e;
|
|
1931
1929
|
} : i);
|
|
1932
1930
|
}
|
|
1933
1931
|
}
|
|
@@ -1949,16 +1947,16 @@ function At(e, t, n, r, i, a) {
|
|
|
1949
1947
|
}
|
|
1950
1948
|
};
|
|
1951
1949
|
}
|
|
1952
|
-
var
|
|
1950
|
+
var Mt = u("bleet-alert"), Nt, Z;
|
|
1953
1951
|
(class {
|
|
1954
1952
|
logger;
|
|
1955
1953
|
element;
|
|
1956
1954
|
p;
|
|
1957
1955
|
transitionService;
|
|
1958
1956
|
static {
|
|
1959
|
-
({c: [
|
|
1957
|
+
({c: [Z, Nt]} = jt(this, [Mt], []));
|
|
1960
1958
|
}
|
|
1961
|
-
constructor(e =
|
|
1959
|
+
constructor(e = m(o).scopeTo("bleet-alert"), t = m(s), n = m(c), r = m(b)) {
|
|
1962
1960
|
this.logger = e, this.element = t, this.p = n, this.transitionService = r, this.logger.trace("constructor");
|
|
1963
1961
|
}
|
|
1964
1962
|
closeButton;
|
|
@@ -1974,7 +1972,7 @@ var jt = l("bleet-alert"), Mt, X;
|
|
|
1974
1972
|
onClose = (e) => {
|
|
1975
1973
|
this.logger.trace("onClose", e), e.preventDefault(), this.transitionService.run(this.element, (e) => {
|
|
1976
1974
|
let t = e.scrollHeight;
|
|
1977
|
-
e.style.height = t + "px", e.offsetHeight, e.style.height = "0px",
|
|
1975
|
+
e.style.height = t + "px", e.offsetHeight, e.style.height = "0px", w(e, "alert", "hide");
|
|
1978
1976
|
}, (e) => {
|
|
1979
1977
|
e.hidden = !0, this.p.requestAnimationFrame(() => {
|
|
1980
1978
|
e.style.height = "", e.remove();
|
|
@@ -1982,12 +1980,12 @@ var jt = l("bleet-alert"), Mt, X;
|
|
|
1982
1980
|
});
|
|
1983
1981
|
};
|
|
1984
1982
|
static {
|
|
1985
|
-
|
|
1983
|
+
Nt();
|
|
1986
1984
|
}
|
|
1987
1985
|
});
|
|
1988
1986
|
//#endregion
|
|
1989
1987
|
//#region src/attributes/modal-trigger.ts
|
|
1990
|
-
function
|
|
1988
|
+
function Pt(e, t) {
|
|
1991
1989
|
if (typeof e != "object" || !e) return e;
|
|
1992
1990
|
var n = e[Symbol.toPrimitive];
|
|
1993
1991
|
if (n !== void 0) {
|
|
@@ -1997,15 +1995,15 @@ function Nt(e, t) {
|
|
|
1997
1995
|
}
|
|
1998
1996
|
return (t === "string" ? String : Number)(e);
|
|
1999
1997
|
}
|
|
2000
|
-
function
|
|
2001
|
-
var t =
|
|
1998
|
+
function Ft(e) {
|
|
1999
|
+
var t = Pt(e, "string");
|
|
2002
2000
|
return typeof t == "symbol" ? t : String(t);
|
|
2003
2001
|
}
|
|
2004
|
-
function
|
|
2002
|
+
function It(e) {
|
|
2005
2003
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
2006
2004
|
return e;
|
|
2007
2005
|
}
|
|
2008
|
-
function
|
|
2006
|
+
function Lt(e, t, n) {
|
|
2009
2007
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
2010
2008
|
try {
|
|
2011
2009
|
Object.defineProperty(e, "name", {
|
|
@@ -2015,7 +2013,7 @@ function It(e, t, n) {
|
|
|
2015
2013
|
} catch {}
|
|
2016
2014
|
return e;
|
|
2017
2015
|
}
|
|
2018
|
-
function
|
|
2016
|
+
function Rt(e, t, n, r, i, a) {
|
|
2019
2017
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
2020
2018
|
function p(t, n, r) {
|
|
2021
2019
|
return function(i, a) {
|
|
@@ -2040,13 +2038,13 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2040
2038
|
}
|
|
2041
2039
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
2042
2040
|
if (!b && (d ? (h || x ? E = {
|
|
2043
|
-
get:
|
|
2041
|
+
get: Lt(function() {
|
|
2044
2042
|
return y(this);
|
|
2045
2043
|
}, r, "get"),
|
|
2046
2044
|
set: function(e) {
|
|
2047
2045
|
t[4](this, e);
|
|
2048
2046
|
}
|
|
2049
|
-
} : E[O] = y, h ||
|
|
2047
|
+
} : E[O] = y, h || Lt(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
2050
2048
|
if (f = u[+c][r], f && (f ^ i) !== 7) throw Error("Decorating two elements with the same name (" + E[O].name + ") is not supported yet");
|
|
2051
2049
|
u[+c][r] = i < 3 ? 1 : i;
|
|
2052
2050
|
}
|
|
@@ -2094,8 +2092,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2094
2092
|
var l = n[c], u = l[1], d = u & 7;
|
|
2095
2093
|
if ((u & 8) == o && !d == s) {
|
|
2096
2094
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
2097
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
2098
|
-
return
|
|
2095
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : Ft(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
2096
|
+
return It(t) === e;
|
|
2099
2097
|
} : i);
|
|
2100
2098
|
}
|
|
2101
2099
|
}
|
|
@@ -2117,39 +2115,30 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2117
2115
|
}
|
|
2118
2116
|
};
|
|
2119
2117
|
}
|
|
2120
|
-
var
|
|
2118
|
+
var zt = u({
|
|
2121
2119
|
name: "bleet-modal-trigger",
|
|
2122
2120
|
defaultProperty: "id"
|
|
2123
|
-
}),
|
|
2121
|
+
}), Bt, Vt = l(), Ht, Ut, Wt, Gt, Q;
|
|
2124
2122
|
(class {
|
|
2125
2123
|
logger;
|
|
2126
2124
|
element;
|
|
2127
2125
|
ea;
|
|
2128
2126
|
static {
|
|
2129
|
-
({e: [Ht, Ut, Wt, Gt
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
"url"
|
|
2139
|
-
],
|
|
2140
|
-
[
|
|
2141
|
-
Vt,
|
|
2142
|
-
0,
|
|
2143
|
-
"color"
|
|
2144
|
-
]
|
|
2145
|
-
]));
|
|
2127
|
+
({e: [Ht, Ut, Wt, Gt], c: [Q, Bt]} = Rt(this, [zt], [[
|
|
2128
|
+
l,
|
|
2129
|
+
0,
|
|
2130
|
+
"id"
|
|
2131
|
+
], [
|
|
2132
|
+
Vt,
|
|
2133
|
+
0,
|
|
2134
|
+
"url"
|
|
2135
|
+
]]));
|
|
2146
2136
|
}
|
|
2147
|
-
constructor(e =
|
|
2137
|
+
constructor(e = m(o).scopeTo("bleet-modal-trigger"), t = m(s), n = m(a)) {
|
|
2148
2138
|
this.logger = e, this.element = t, this.ea = n, this.logger.trace("constructor");
|
|
2149
2139
|
}
|
|
2150
2140
|
id = Ht(this, "");
|
|
2151
2141
|
url = (Ut(this), Wt(this, ""));
|
|
2152
|
-
color = (Gt(this), Kt(this, "primary"));
|
|
2153
2142
|
attaching() {
|
|
2154
2143
|
this.logger.trace("attaching");
|
|
2155
2144
|
}
|
|
@@ -2162,21 +2151,20 @@ var Rt = l({
|
|
|
2162
2151
|
dispose() {
|
|
2163
2152
|
this.logger.trace("dispose");
|
|
2164
2153
|
}
|
|
2165
|
-
onClick = (
|
|
2166
|
-
this.logger.trace("onClick", e), e.preventDefault(), this.ea.publish(
|
|
2167
|
-
action:
|
|
2154
|
+
onClick = (Gt(this), (e) => {
|
|
2155
|
+
this.logger.trace("onClick", e), e.preventDefault(), this.ea.publish(E.Modal, {
|
|
2156
|
+
action: M.Toggle,
|
|
2168
2157
|
id: this.id,
|
|
2169
|
-
url: this.url
|
|
2170
|
-
color: this.color
|
|
2158
|
+
url: this.url
|
|
2171
2159
|
});
|
|
2172
2160
|
});
|
|
2173
2161
|
static {
|
|
2174
|
-
|
|
2162
|
+
Bt();
|
|
2175
2163
|
}
|
|
2176
2164
|
});
|
|
2177
2165
|
//#endregion
|
|
2178
2166
|
//#region src/attributes/pager.ts
|
|
2179
|
-
function
|
|
2167
|
+
function Kt(e, t) {
|
|
2180
2168
|
if (typeof e != "object" || !e) return e;
|
|
2181
2169
|
var n = e[Symbol.toPrimitive];
|
|
2182
2170
|
if (n !== void 0) {
|
|
@@ -2186,15 +2174,15 @@ function Jt(e, t) {
|
|
|
2186
2174
|
}
|
|
2187
2175
|
return (t === "string" ? String : Number)(e);
|
|
2188
2176
|
}
|
|
2189
|
-
function
|
|
2190
|
-
var t =
|
|
2177
|
+
function qt(e) {
|
|
2178
|
+
var t = Kt(e, "string");
|
|
2191
2179
|
return typeof t == "symbol" ? t : String(t);
|
|
2192
2180
|
}
|
|
2193
|
-
function
|
|
2181
|
+
function Jt(e) {
|
|
2194
2182
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
2195
2183
|
return e;
|
|
2196
2184
|
}
|
|
2197
|
-
function
|
|
2185
|
+
function Yt(e, t, n) {
|
|
2198
2186
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
2199
2187
|
try {
|
|
2200
2188
|
Object.defineProperty(e, "name", {
|
|
@@ -2204,7 +2192,7 @@ function Zt(e, t, n) {
|
|
|
2204
2192
|
} catch {}
|
|
2205
2193
|
return e;
|
|
2206
2194
|
}
|
|
2207
|
-
function
|
|
2195
|
+
function Xt(e, t, n, r, i, a) {
|
|
2208
2196
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
2209
2197
|
function p(t, n, r) {
|
|
2210
2198
|
return function(i, a) {
|
|
@@ -2229,13 +2217,13 @@ function Qt(e, t, n, r, i, a) {
|
|
|
2229
2217
|
}
|
|
2230
2218
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
2231
2219
|
if (!b && (d ? (h || x ? E = {
|
|
2232
|
-
get:
|
|
2220
|
+
get: Yt(function() {
|
|
2233
2221
|
return y(this);
|
|
2234
2222
|
}, r, "get"),
|
|
2235
2223
|
set: function(e) {
|
|
2236
2224
|
t[4](this, e);
|
|
2237
2225
|
}
|
|
2238
|
-
} : E[O] = y, h ||
|
|
2226
|
+
} : E[O] = y, h || Yt(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
2239
2227
|
if (f = u[+c][r], f && (f ^ i) !== 7) throw Error("Decorating two elements with the same name (" + E[O].name + ") is not supported yet");
|
|
2240
2228
|
u[+c][r] = i < 3 ? 1 : i;
|
|
2241
2229
|
}
|
|
@@ -2283,8 +2271,8 @@ function Qt(e, t, n, r, i, a) {
|
|
|
2283
2271
|
var l = n[c], u = l[1], d = u & 7;
|
|
2284
2272
|
if ((u & 8) == o && !d == s) {
|
|
2285
2273
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
2286
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
2287
|
-
return
|
|
2274
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : qt(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
2275
|
+
return Jt(t) === e;
|
|
2288
2276
|
} : i);
|
|
2289
2277
|
}
|
|
2290
2278
|
}
|
|
@@ -2306,15 +2294,15 @@ function Qt(e, t, n, r, i, a) {
|
|
|
2306
2294
|
}
|
|
2307
2295
|
};
|
|
2308
2296
|
}
|
|
2309
|
-
var
|
|
2297
|
+
var Zt = u("bleet-pager"), Qt, $;
|
|
2310
2298
|
(class {
|
|
2311
2299
|
logger;
|
|
2312
2300
|
element;
|
|
2313
2301
|
p;
|
|
2314
2302
|
static {
|
|
2315
|
-
({c: [
|
|
2303
|
+
({c: [$, Qt]} = Xt(this, [Zt], []));
|
|
2316
2304
|
}
|
|
2317
|
-
constructor(e =
|
|
2305
|
+
constructor(e = m(o).scopeTo("bleet-pager"), t = m(s), n = m(c)) {
|
|
2318
2306
|
this.logger = e, this.element = t, this.p = n, this.logger.trace("constructor");
|
|
2319
2307
|
}
|
|
2320
2308
|
select;
|
|
@@ -2333,12 +2321,12 @@ var $t = l("bleet-pager"), en, Q;
|
|
|
2333
2321
|
n && n.click();
|
|
2334
2322
|
};
|
|
2335
2323
|
static {
|
|
2336
|
-
|
|
2324
|
+
Qt();
|
|
2337
2325
|
}
|
|
2338
2326
|
});
|
|
2339
2327
|
//#endregion
|
|
2340
2328
|
//#region src/attributes/ajaxify-trigger.ts
|
|
2341
|
-
function
|
|
2329
|
+
function $t(e, t) {
|
|
2342
2330
|
if (typeof e != "object" || !e) return e;
|
|
2343
2331
|
var n = e[Symbol.toPrimitive];
|
|
2344
2332
|
if (n !== void 0) {
|
|
@@ -2348,15 +2336,15 @@ function tn(e, t) {
|
|
|
2348
2336
|
}
|
|
2349
2337
|
return (t === "string" ? String : Number)(e);
|
|
2350
2338
|
}
|
|
2351
|
-
function
|
|
2352
|
-
var t =
|
|
2339
|
+
function en(e) {
|
|
2340
|
+
var t = $t(e, "string");
|
|
2353
2341
|
return typeof t == "symbol" ? t : String(t);
|
|
2354
2342
|
}
|
|
2355
|
-
function
|
|
2343
|
+
function tn(e) {
|
|
2356
2344
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
2357
2345
|
return e;
|
|
2358
2346
|
}
|
|
2359
|
-
function
|
|
2347
|
+
function nn(e, t, n) {
|
|
2360
2348
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
2361
2349
|
try {
|
|
2362
2350
|
Object.defineProperty(e, "name", {
|
|
@@ -2366,7 +2354,7 @@ function an(e, t, n) {
|
|
|
2366
2354
|
} catch {}
|
|
2367
2355
|
return e;
|
|
2368
2356
|
}
|
|
2369
|
-
function
|
|
2357
|
+
function rn(e, t, n, r, i, a) {
|
|
2370
2358
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
2371
2359
|
function p(t, n, r) {
|
|
2372
2360
|
return function(i, a) {
|
|
@@ -2391,13 +2379,13 @@ function on(e, t, n, r, i, a) {
|
|
|
2391
2379
|
}
|
|
2392
2380
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
2393
2381
|
if (!b && (d ? (h || x ? E = {
|
|
2394
|
-
get:
|
|
2382
|
+
get: nn(function() {
|
|
2395
2383
|
return y(this);
|
|
2396
2384
|
}, r, "get"),
|
|
2397
2385
|
set: function(e) {
|
|
2398
2386
|
t[4](this, e);
|
|
2399
2387
|
}
|
|
2400
|
-
} : E[O] = y, h ||
|
|
2388
|
+
} : E[O] = y, h || nn(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
2401
2389
|
if (f = u[+c][r], f && (f ^ i) !== 7) throw Error("Decorating two elements with the same name (" + E[O].name + ") is not supported yet");
|
|
2402
2390
|
u[+c][r] = i < 3 ? 1 : i;
|
|
2403
2391
|
}
|
|
@@ -2445,8 +2433,8 @@ function on(e, t, n, r, i, a) {
|
|
|
2445
2433
|
var l = n[c], u = l[1], d = u & 7;
|
|
2446
2434
|
if ((u & 8) == o && !d == s) {
|
|
2447
2435
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
2448
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
2449
|
-
return
|
|
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;
|
|
2450
2438
|
} : i);
|
|
2451
2439
|
}
|
|
2452
2440
|
}
|
|
@@ -2468,10 +2456,10 @@ function on(e, t, n, r, i, a) {
|
|
|
2468
2456
|
}
|
|
2469
2457
|
};
|
|
2470
2458
|
}
|
|
2471
|
-
var
|
|
2459
|
+
var an = u({
|
|
2472
2460
|
name: "bleet-ajaxify-trigger",
|
|
2473
2461
|
defaultProperty: "url"
|
|
2474
|
-
}),
|
|
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;
|
|
2475
2463
|
(class {
|
|
2476
2464
|
logger;
|
|
2477
2465
|
element;
|
|
@@ -2479,66 +2467,66 @@ var sn = l({
|
|
|
2479
2467
|
apiService;
|
|
2480
2468
|
p;
|
|
2481
2469
|
static {
|
|
2482
|
-
({e: [_n, vn, yn, bn, xn, Sn, Cn, wn, Tn, En, Dn, On, kn, An, jn, Mn
|
|
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], [
|
|
2483
2471
|
[
|
|
2484
|
-
|
|
2472
|
+
l,
|
|
2485
2473
|
0,
|
|
2486
2474
|
"url"
|
|
2487
2475
|
],
|
|
2488
2476
|
[
|
|
2489
|
-
|
|
2477
|
+
sn,
|
|
2490
2478
|
0,
|
|
2491
2479
|
"verb"
|
|
2492
2480
|
],
|
|
2493
2481
|
[
|
|
2494
|
-
|
|
2482
|
+
cn,
|
|
2495
2483
|
0,
|
|
2496
2484
|
"event"
|
|
2497
2485
|
],
|
|
2498
2486
|
[
|
|
2499
|
-
|
|
2487
|
+
ln,
|
|
2500
2488
|
0,
|
|
2501
2489
|
"id"
|
|
2502
2490
|
],
|
|
2503
2491
|
[
|
|
2504
|
-
|
|
2492
|
+
un,
|
|
2505
2493
|
0,
|
|
2506
2494
|
"mode"
|
|
2507
2495
|
],
|
|
2508
2496
|
[
|
|
2509
|
-
|
|
2497
|
+
dn,
|
|
2510
2498
|
0,
|
|
2511
2499
|
"target"
|
|
2512
2500
|
],
|
|
2513
2501
|
[
|
|
2514
|
-
|
|
2502
|
+
fn,
|
|
2515
2503
|
0,
|
|
2516
2504
|
"method"
|
|
2517
2505
|
],
|
|
2518
2506
|
[
|
|
2519
|
-
|
|
2507
|
+
pn,
|
|
2520
2508
|
0,
|
|
2521
2509
|
"errorTitle"
|
|
2522
2510
|
],
|
|
2523
2511
|
[
|
|
2524
|
-
|
|
2512
|
+
mn,
|
|
2525
2513
|
0,
|
|
2526
2514
|
"errorContent"
|
|
2527
2515
|
]
|
|
2528
2516
|
]));
|
|
2529
2517
|
}
|
|
2530
|
-
constructor(e =
|
|
2531
|
-
this.logger = e, this.element = t, this.ea = r, this.apiService =
|
|
2532
|
-
}
|
|
2533
|
-
url =
|
|
2534
|
-
verb = (
|
|
2535
|
-
event = (
|
|
2536
|
-
id = (
|
|
2537
|
-
mode = (
|
|
2538
|
-
target = (
|
|
2539
|
-
method = (
|
|
2540
|
-
errorTitle = (
|
|
2541
|
-
errorContent = (
|
|
2518
|
+
constructor(e = m(o).scopeTo("bleet-ajaxify-trigger"), t = m(s), r = m(a), i = m(n), l = m(c)) {
|
|
2519
|
+
this.logger = e, this.element = t, this.ea = r, this.apiService = i, this.p = l, this.logger.trace("constructor");
|
|
2520
|
+
}
|
|
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, ""));
|
|
2542
2530
|
attached() {
|
|
2543
2531
|
this.logger.trace("attached", {
|
|
2544
2532
|
url: this.url,
|
|
@@ -2550,8 +2538,8 @@ var sn = l({
|
|
|
2550
2538
|
detaching() {
|
|
2551
2539
|
this.logger.trace("detaching"), this.element.removeEventListener(this.event, this.onTrigger);
|
|
2552
2540
|
}
|
|
2553
|
-
onTrigger = (
|
|
2554
|
-
e.preventDefault(), e.stopPropagation(), this.logger.trace("onTrigger", e), this.mode ===
|
|
2541
|
+
onTrigger = (Mn(this), (e) => {
|
|
2542
|
+
e.preventDefault(), e.stopPropagation(), this.logger.trace("onTrigger", e), this.mode === ee.PublishOnly ? this.onTriggerPublishOnly() : this.onTriggerClassic(e);
|
|
2555
2543
|
});
|
|
2556
2544
|
onTriggerPublishOnly() {
|
|
2557
2545
|
if (this.logger.debug("onTriggerPublishOnly", {
|
|
@@ -2572,8 +2560,8 @@ var sn = l({
|
|
|
2572
2560
|
}
|
|
2573
2561
|
let e = this.element.querySelectorAll("input:disabled, select:disabled, textarea:disabled");
|
|
2574
2562
|
for (let t of Array.from(e)) t.disabled = !1;
|
|
2575
|
-
this.ea.publish(
|
|
2576
|
-
action:
|
|
2563
|
+
this.ea.publish(E.Ajaxify, {
|
|
2564
|
+
action: P.Run,
|
|
2577
2565
|
id: this.target,
|
|
2578
2566
|
url: this.url || void 0,
|
|
2579
2567
|
method: this.method
|
|
@@ -2591,15 +2579,15 @@ var sn = l({
|
|
|
2591
2579
|
});
|
|
2592
2580
|
let i = this.buildFormData(e);
|
|
2593
2581
|
this.apiService.url(n).fromMultipart(i).request(r).then((e) => {
|
|
2594
|
-
this.logger.debug("response", e.body), e.body.element && this.updateElement(e.body.element), e.body.toast && this.ea.publish(
|
|
2595
|
-
action:
|
|
2582
|
+
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,
|
|
2596
2584
|
toast: e.body.toast
|
|
2597
|
-
}), e.body.ajaxify && this.ea.publish(
|
|
2585
|
+
}), e.body.ajaxify && this.ea.publish(E.Ajaxify, e.body.ajaxify);
|
|
2598
2586
|
}).catch((e) => {
|
|
2599
|
-
this.logger.error("AJAX request failed", e), this.errorContent !== "" && this.ea.publish(
|
|
2600
|
-
action:
|
|
2587
|
+
this.logger.error("AJAX request failed", e), this.errorContent !== "" && this.ea.publish(E.Toaster, {
|
|
2588
|
+
action: F.Add,
|
|
2601
2589
|
toast: {
|
|
2602
|
-
|
|
2590
|
+
level: B.Danger,
|
|
2603
2591
|
title: this.errorTitle,
|
|
2604
2592
|
content: this.errorContent,
|
|
2605
2593
|
duration: 5e3
|
|
@@ -2646,12 +2634,12 @@ var sn = l({
|
|
|
2646
2634
|
for (let e = 0; e < r.length; e++) e < n.length && this.syncElement(n[e], r[e]);
|
|
2647
2635
|
}
|
|
2648
2636
|
static {
|
|
2649
|
-
|
|
2637
|
+
on();
|
|
2650
2638
|
}
|
|
2651
2639
|
});
|
|
2652
2640
|
//#endregion
|
|
2653
2641
|
//#region src/attributes/popover.ts
|
|
2654
|
-
function
|
|
2642
|
+
function Pn(e, t) {
|
|
2655
2643
|
if (typeof e != "object" || !e) return e;
|
|
2656
2644
|
var n = e[Symbol.toPrimitive];
|
|
2657
2645
|
if (n !== void 0) {
|
|
@@ -2661,15 +2649,15 @@ function Fn(e, t) {
|
|
|
2661
2649
|
}
|
|
2662
2650
|
return (t === "string" ? String : Number)(e);
|
|
2663
2651
|
}
|
|
2664
|
-
function
|
|
2665
|
-
var t =
|
|
2652
|
+
function Fn(e) {
|
|
2653
|
+
var t = Pn(e, "string");
|
|
2666
2654
|
return typeof t == "symbol" ? t : String(t);
|
|
2667
2655
|
}
|
|
2668
|
-
function
|
|
2656
|
+
function In(e) {
|
|
2669
2657
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
2670
2658
|
return e;
|
|
2671
2659
|
}
|
|
2672
|
-
function
|
|
2660
|
+
function Ln(e, t, n) {
|
|
2673
2661
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
2674
2662
|
try {
|
|
2675
2663
|
Object.defineProperty(e, "name", {
|
|
@@ -2679,7 +2667,7 @@ function Rn(e, t, n) {
|
|
|
2679
2667
|
} catch {}
|
|
2680
2668
|
return e;
|
|
2681
2669
|
}
|
|
2682
|
-
function
|
|
2670
|
+
function Rn(e, t, n, r, i, a) {
|
|
2683
2671
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
2684
2672
|
function p(t, n, r) {
|
|
2685
2673
|
return function(i, a) {
|
|
@@ -2704,13 +2692,13 @@ function zn(e, t, n, r, i, a) {
|
|
|
2704
2692
|
}
|
|
2705
2693
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
2706
2694
|
if (!b && (d ? (h || x ? E = {
|
|
2707
|
-
get:
|
|
2695
|
+
get: Ln(function() {
|
|
2708
2696
|
return y(this);
|
|
2709
2697
|
}, r, "get"),
|
|
2710
2698
|
set: function(e) {
|
|
2711
2699
|
t[4](this, e);
|
|
2712
2700
|
}
|
|
2713
|
-
} : E[O] = y, h ||
|
|
2701
|
+
} : E[O] = y, h || Ln(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
2714
2702
|
if (f = u[+c][r], f && (f ^ i) !== 7) throw Error("Decorating two elements with the same name (" + E[O].name + ") is not supported yet");
|
|
2715
2703
|
u[+c][r] = i < 3 ? 1 : i;
|
|
2716
2704
|
}
|
|
@@ -2758,8 +2746,8 @@ function zn(e, t, n, r, i, a) {
|
|
|
2758
2746
|
var l = n[c], u = l[1], d = u & 7;
|
|
2759
2747
|
if ((u & 8) == o && !d == s) {
|
|
2760
2748
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
2761
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
2762
|
-
return
|
|
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;
|
|
2763
2751
|
} : i);
|
|
2764
2752
|
}
|
|
2765
2753
|
}
|
|
@@ -2781,30 +2769,30 @@ function zn(e, t, n, r, i, a) {
|
|
|
2781
2769
|
}
|
|
2782
2770
|
};
|
|
2783
2771
|
}
|
|
2784
|
-
var
|
|
2772
|
+
var zn = u({
|
|
2785
2773
|
name: "bleet-popover",
|
|
2786
2774
|
defaultProperty: "id"
|
|
2787
|
-
}), Vn, Hn, Un
|
|
2775
|
+
}), Bn, Vn, Hn, Un;
|
|
2788
2776
|
(class {
|
|
2789
2777
|
logger;
|
|
2790
2778
|
element;
|
|
2791
2779
|
ea;
|
|
2792
2780
|
p;
|
|
2793
2781
|
static {
|
|
2794
|
-
({e: [
|
|
2795
|
-
|
|
2782
|
+
({e: [Vn, Hn], c: [Un, Bn]} = Rn(this, [zn], [[
|
|
2783
|
+
l,
|
|
2796
2784
|
0,
|
|
2797
2785
|
"id"
|
|
2798
2786
|
]]));
|
|
2799
2787
|
}
|
|
2800
|
-
constructor(e =
|
|
2788
|
+
constructor(e = m(o).scopeTo("bleet-popover"), t = m(s), n = m(a), r = m(c)) {
|
|
2801
2789
|
this.logger = e, this.element = t, this.ea = n, this.p = r, this.logger.trace("constructor");
|
|
2802
2790
|
}
|
|
2803
|
-
id =
|
|
2804
|
-
isOpen = (
|
|
2791
|
+
id = Vn(this, "");
|
|
2792
|
+
isOpen = (Hn(this), !1);
|
|
2805
2793
|
subscription = null;
|
|
2806
2794
|
attaching() {
|
|
2807
|
-
this.logger.trace("attaching"), this.subscription = this.ea.subscribe(
|
|
2795
|
+
this.logger.trace("attaching"), this.subscription = this.ea.subscribe(E.Popover, this.onPopover);
|
|
2808
2796
|
}
|
|
2809
2797
|
attached() {
|
|
2810
2798
|
this.logger.trace("attached");
|
|
@@ -2817,24 +2805,24 @@ var Bn = l({
|
|
|
2817
2805
|
}
|
|
2818
2806
|
onPopover = (e) => {
|
|
2819
2807
|
if (e.id === this.id) switch (e.action) {
|
|
2820
|
-
case
|
|
2808
|
+
case R.Open:
|
|
2821
2809
|
this.open(e.rect);
|
|
2822
2810
|
break;
|
|
2823
|
-
case
|
|
2811
|
+
case R.Close:
|
|
2824
2812
|
this.close();
|
|
2825
2813
|
break;
|
|
2826
|
-
case
|
|
2814
|
+
case R.Toggle: this.isOpen ? this.close() : this.open(e.rect);
|
|
2827
2815
|
}
|
|
2828
2816
|
};
|
|
2829
2817
|
open(e) {
|
|
2830
|
-
this.isOpen = !0,
|
|
2831
|
-
status:
|
|
2818
|
+
this.isOpen = !0, w(this.element, "popover", "show"), e && this.positionAt(e), this.ea.publish(E.PopoverStatus, {
|
|
2819
|
+
status: z.Opened,
|
|
2832
2820
|
id: this.id
|
|
2833
2821
|
});
|
|
2834
2822
|
}
|
|
2835
2823
|
close() {
|
|
2836
|
-
this.isOpen = !1,
|
|
2837
|
-
status:
|
|
2824
|
+
this.isOpen = !1, w(this.element, "popover", "hide"), this.ea.publish(E.PopoverStatus, {
|
|
2825
|
+
status: z.Closed,
|
|
2838
2826
|
id: this.id
|
|
2839
2827
|
});
|
|
2840
2828
|
}
|
|
@@ -2844,12 +2832,12 @@ var Bn = l({
|
|
|
2844
2832
|
n < 4 && (n = e.bottom + 10), r < 4 && (r = 4), r + t.width > this.p.window.innerWidth - 4 && (r = this.p.window.innerWidth - t.width - 4), this.element.style.top = `${n}px`, this.element.style.left = `${r}px`, this.element.style.visibility = "", this.element.style.display = "";
|
|
2845
2833
|
}
|
|
2846
2834
|
static {
|
|
2847
|
-
|
|
2835
|
+
Bn();
|
|
2848
2836
|
}
|
|
2849
2837
|
});
|
|
2850
2838
|
//#endregion
|
|
2851
2839
|
//#region src/attributes/popover-trigger.ts
|
|
2852
|
-
function
|
|
2840
|
+
function Wn(e, t) {
|
|
2853
2841
|
if (typeof e != "object" || !e) return e;
|
|
2854
2842
|
var n = e[Symbol.toPrimitive];
|
|
2855
2843
|
if (n !== void 0) {
|
|
@@ -2859,15 +2847,15 @@ function Gn(e, t) {
|
|
|
2859
2847
|
}
|
|
2860
2848
|
return (t === "string" ? String : Number)(e);
|
|
2861
2849
|
}
|
|
2862
|
-
function
|
|
2863
|
-
var t =
|
|
2850
|
+
function Gn(e) {
|
|
2851
|
+
var t = Wn(e, "string");
|
|
2864
2852
|
return typeof t == "symbol" ? t : String(t);
|
|
2865
2853
|
}
|
|
2866
|
-
function
|
|
2854
|
+
function Kn(e) {
|
|
2867
2855
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
2868
2856
|
return e;
|
|
2869
2857
|
}
|
|
2870
|
-
function
|
|
2858
|
+
function qn(e, t, n) {
|
|
2871
2859
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
2872
2860
|
try {
|
|
2873
2861
|
Object.defineProperty(e, "name", {
|
|
@@ -2877,7 +2865,7 @@ function Jn(e, t, n) {
|
|
|
2877
2865
|
} catch {}
|
|
2878
2866
|
return e;
|
|
2879
2867
|
}
|
|
2880
|
-
function
|
|
2868
|
+
function Jn(e, t, n, r, i, a) {
|
|
2881
2869
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
2882
2870
|
function p(t, n, r) {
|
|
2883
2871
|
return function(i, a) {
|
|
@@ -2902,13 +2890,13 @@ function Yn(e, t, n, r, i, a) {
|
|
|
2902
2890
|
}
|
|
2903
2891
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
2904
2892
|
if (!b && (d ? (h || x ? E = {
|
|
2905
|
-
get:
|
|
2893
|
+
get: qn(function() {
|
|
2906
2894
|
return y(this);
|
|
2907
2895
|
}, r, "get"),
|
|
2908
2896
|
set: function(e) {
|
|
2909
2897
|
t[4](this, e);
|
|
2910
2898
|
}
|
|
2911
|
-
} : E[O] = y, h ||
|
|
2899
|
+
} : E[O] = y, h || qn(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
2912
2900
|
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");
|
|
2913
2901
|
u[+c][r] = i < 3 ? 1 : i;
|
|
2914
2902
|
}
|
|
@@ -2956,8 +2944,8 @@ function Yn(e, t, n, r, i, a) {
|
|
|
2956
2944
|
var l = n[c], u = l[1], d = u & 7;
|
|
2957
2945
|
if ((u & 8) == o && !d == s) {
|
|
2958
2946
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
2959
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
2960
|
-
return
|
|
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;
|
|
2961
2949
|
} : i);
|
|
2962
2950
|
}
|
|
2963
2951
|
}
|
|
@@ -2979,30 +2967,30 @@ function Yn(e, t, n, r, i, a) {
|
|
|
2979
2967
|
}
|
|
2980
2968
|
};
|
|
2981
2969
|
}
|
|
2982
|
-
var
|
|
2970
|
+
var Yn = u({
|
|
2983
2971
|
name: "bleet-popover-trigger",
|
|
2984
2972
|
defaultProperty: "id"
|
|
2985
|
-
}),
|
|
2973
|
+
}), Xn, Zn = l(), Qn, $n, er, tr, nr;
|
|
2986
2974
|
(class {
|
|
2987
2975
|
logger;
|
|
2988
2976
|
element;
|
|
2989
2977
|
ea;
|
|
2990
2978
|
static {
|
|
2991
|
-
({e: [$n, er, tr
|
|
2992
|
-
|
|
2979
|
+
({e: [Qn, $n, er, tr], c: [nr, Xn]} = Jn(this, [Yn], [[
|
|
2980
|
+
l,
|
|
2993
2981
|
0,
|
|
2994
2982
|
"id"
|
|
2995
2983
|
], [
|
|
2996
|
-
|
|
2984
|
+
Zn,
|
|
2997
2985
|
0,
|
|
2998
2986
|
"absolute"
|
|
2999
2987
|
]]));
|
|
3000
2988
|
}
|
|
3001
|
-
constructor(e =
|
|
2989
|
+
constructor(e = m(o).scopeTo("bleet-popover-trigger"), t = m(s), n = m(a)) {
|
|
3002
2990
|
this.logger = e, this.element = t, this.ea = n, this.logger.trace("constructor");
|
|
3003
2991
|
}
|
|
3004
|
-
id =
|
|
3005
|
-
absolute = (
|
|
2992
|
+
id = Qn(this, "");
|
|
2993
|
+
absolute = ($n(this), er(this, !0));
|
|
3006
2994
|
attached() {
|
|
3007
2995
|
this.logger.trace("attached"), this.element.addEventListener("mouseenter", this.onMouseEnter), this.element.addEventListener("mouseleave", this.onMouseLeave);
|
|
3008
2996
|
}
|
|
@@ -3012,43 +3000,43 @@ var Xn = l({
|
|
|
3012
3000
|
dispose() {
|
|
3013
3001
|
this.logger.trace("dispose");
|
|
3014
3002
|
}
|
|
3015
|
-
onMouseEnter = (
|
|
3016
|
-
this.ea.publish(
|
|
3003
|
+
onMouseEnter = (tr(this), () => {
|
|
3004
|
+
this.ea.publish(E.Popover, {
|
|
3017
3005
|
id: this.id,
|
|
3018
|
-
action:
|
|
3006
|
+
action: R.Open,
|
|
3019
3007
|
rect: this.absolute ? this.element.getBoundingClientRect() : void 0
|
|
3020
3008
|
});
|
|
3021
3009
|
});
|
|
3022
3010
|
onMouseLeave = () => {
|
|
3023
|
-
this.ea.publish(
|
|
3011
|
+
this.ea.publish(E.Popover, {
|
|
3024
3012
|
id: this.id,
|
|
3025
|
-
action:
|
|
3013
|
+
action: R.Close
|
|
3026
3014
|
});
|
|
3027
3015
|
};
|
|
3028
3016
|
static {
|
|
3029
|
-
|
|
3017
|
+
Xn();
|
|
3030
3018
|
}
|
|
3031
3019
|
});
|
|
3032
3020
|
//#endregion
|
|
3033
3021
|
//#region src/utils/toaster.ts
|
|
3034
|
-
function
|
|
3022
|
+
function rr(e) {
|
|
3035
3023
|
return {
|
|
3036
3024
|
...e,
|
|
3037
3025
|
id: e.id || `toast-${Math.random().toString(36).substring(2, 15)}`,
|
|
3038
|
-
|
|
3039
|
-
icon: e.icon ||
|
|
3026
|
+
level: e.level || B.Info,
|
|
3027
|
+
icon: e.icon || V.Info,
|
|
3040
3028
|
duration: e.duration || 0
|
|
3041
3029
|
};
|
|
3042
3030
|
}
|
|
3043
|
-
function
|
|
3031
|
+
function ir(e) {
|
|
3044
3032
|
e.hasAttribute("popover") === !0 && (e.matches(":popover-open") === !0 && e.hidePopover(), e.showPopover());
|
|
3045
3033
|
}
|
|
3046
|
-
function
|
|
3034
|
+
function ar(e) {
|
|
3047
3035
|
e.hasAttribute("popover") === !0 && e.matches(":popover-open") === !0 && e.hidePopover();
|
|
3048
3036
|
}
|
|
3049
3037
|
//#endregion
|
|
3050
3038
|
//#region src/attributes/toaster.ts
|
|
3051
|
-
function
|
|
3039
|
+
function or(e, t) {
|
|
3052
3040
|
if (typeof e != "object" || !e) return e;
|
|
3053
3041
|
var n = e[Symbol.toPrimitive];
|
|
3054
3042
|
if (n !== void 0) {
|
|
@@ -3058,15 +3046,15 @@ function sr(e, t) {
|
|
|
3058
3046
|
}
|
|
3059
3047
|
return (t === "string" ? String : Number)(e);
|
|
3060
3048
|
}
|
|
3061
|
-
function
|
|
3062
|
-
var t =
|
|
3049
|
+
function sr(e) {
|
|
3050
|
+
var t = or(e, "string");
|
|
3063
3051
|
return typeof t == "symbol" ? t : String(t);
|
|
3064
3052
|
}
|
|
3065
|
-
function
|
|
3053
|
+
function cr(e) {
|
|
3066
3054
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
3067
3055
|
return e;
|
|
3068
3056
|
}
|
|
3069
|
-
function
|
|
3057
|
+
function lr(e, t, n) {
|
|
3070
3058
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
3071
3059
|
try {
|
|
3072
3060
|
Object.defineProperty(e, "name", {
|
|
@@ -3076,7 +3064,7 @@ function ur(e, t, n) {
|
|
|
3076
3064
|
} catch {}
|
|
3077
3065
|
return e;
|
|
3078
3066
|
}
|
|
3079
|
-
function
|
|
3067
|
+
function ur(e, t, n, r, i, a) {
|
|
3080
3068
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
3081
3069
|
function p(t, n, r) {
|
|
3082
3070
|
return function(i, a) {
|
|
@@ -3101,13 +3089,13 @@ function dr(e, t, n, r, i, a) {
|
|
|
3101
3089
|
}
|
|
3102
3090
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
3103
3091
|
if (!b && (d ? (h || x ? E = {
|
|
3104
|
-
get:
|
|
3092
|
+
get: lr(function() {
|
|
3105
3093
|
return y(this);
|
|
3106
3094
|
}, r, "get"),
|
|
3107
3095
|
set: function(e) {
|
|
3108
3096
|
t[4](this, e);
|
|
3109
3097
|
}
|
|
3110
|
-
} : E[O] = y, h ||
|
|
3098
|
+
} : E[O] = y, h || lr(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
3111
3099
|
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");
|
|
3112
3100
|
u[+c][r] = i < 3 ? 1 : i;
|
|
3113
3101
|
}
|
|
@@ -3155,8 +3143,8 @@ function dr(e, t, n, r, i, a) {
|
|
|
3155
3143
|
var l = n[c], u = l[1], d = u & 7;
|
|
3156
3144
|
if ((u & 8) == o && !d == s) {
|
|
3157
3145
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
3158
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
3159
|
-
return
|
|
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;
|
|
3160
3148
|
} : i);
|
|
3161
3149
|
}
|
|
3162
3150
|
}
|
|
@@ -3178,7 +3166,7 @@ function dr(e, t, n, r, i, a) {
|
|
|
3178
3166
|
}
|
|
3179
3167
|
};
|
|
3180
3168
|
}
|
|
3181
|
-
var
|
|
3169
|
+
var dr = u("bleet-toaster"), fr, pr;
|
|
3182
3170
|
(class {
|
|
3183
3171
|
logger;
|
|
3184
3172
|
element;
|
|
@@ -3186,15 +3174,15 @@ var fr = l("bleet-toaster"), pr, mr;
|
|
|
3186
3174
|
p;
|
|
3187
3175
|
transitionService;
|
|
3188
3176
|
static {
|
|
3189
|
-
({c: [
|
|
3177
|
+
({c: [pr, fr]} = ur(this, [dr], []));
|
|
3190
3178
|
}
|
|
3191
|
-
constructor(e =
|
|
3192
|
-
this.logger = e, this.element = t, this.ea = n, this.p = r, this.transitionService =
|
|
3179
|
+
constructor(e = m(o).scopeTo("bleet-toaster"), t = m(s), n = m(a), r = m(c), i = m(b)) {
|
|
3180
|
+
this.logger = e, this.element = t, this.ea = n, this.p = r, this.transitionService = i, this.logger.trace("constructor");
|
|
3193
3181
|
}
|
|
3194
3182
|
disposable;
|
|
3195
3183
|
toasts = /* @__PURE__ */ new Map();
|
|
3196
3184
|
attaching() {
|
|
3197
|
-
this.logger.trace("attaching"), this.disposable = this.ea.subscribe(
|
|
3185
|
+
this.logger.trace("attaching"), this.disposable = this.ea.subscribe(E.Toaster, this.onToasterEvent);
|
|
3198
3186
|
}
|
|
3199
3187
|
detaching() {
|
|
3200
3188
|
this.logger.trace("detaching"), this.disposable?.dispose(), this.toasts.forEach((e) => {
|
|
@@ -3202,14 +3190,14 @@ var fr = l("bleet-toaster"), pr, mr;
|
|
|
3202
3190
|
});
|
|
3203
3191
|
}
|
|
3204
3192
|
onToasterEvent = (e) => {
|
|
3205
|
-
if (this.logger.trace("onToasterEvent", e), e.action ===
|
|
3206
|
-
let t =
|
|
3193
|
+
if (this.logger.trace("onToasterEvent", e), e.action === F.Add && e.toast) {
|
|
3194
|
+
let t = rr(e.toast);
|
|
3207
3195
|
this.toasts.has(t.id) || this.add(t);
|
|
3208
|
-
} else e.action ===
|
|
3196
|
+
} else e.action === F.Remove && e.toast?.id && this.close(e.toast.id);
|
|
3209
3197
|
};
|
|
3210
3198
|
add(e) {
|
|
3211
|
-
let t = this.element.querySelector(`template[data-toaster="${e.
|
|
3212
|
-
if (t === null) this.logger.warn(`No toast template for
|
|
3199
|
+
let t = this.element.querySelector(`template[data-toaster="${e.level}"]`);
|
|
3200
|
+
if (t === null) this.logger.warn(`No toast template for level ${e.level}`);
|
|
3213
3201
|
else {
|
|
3214
3202
|
let n = t.content.cloneNode(!0).firstElementChild, r = this.element.querySelector(`template[data-toaster="icon-${e.icon}"]`), i = n.querySelector("[data-toaster=\"icon\"]");
|
|
3215
3203
|
r !== null && i !== null && i.appendChild(r.content.cloneNode(!0));
|
|
@@ -3223,28 +3211,28 @@ var fr = l("bleet-toaster"), pr, mr;
|
|
|
3223
3211
|
element: n,
|
|
3224
3212
|
closing: !1
|
|
3225
3213
|
};
|
|
3226
|
-
this.toasts.set(e.id, s), this.element.appendChild(n),
|
|
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) => {
|
|
3227
3215
|
e.duration > 0 && (s.closeTimeout = this.p.setTimeout(() => {
|
|
3228
3216
|
this.close(e.id);
|
|
3229
|
-
}, e.duration)),
|
|
3217
|
+
}, e.duration)), w(t, "toaster", "show");
|
|
3230
3218
|
});
|
|
3231
3219
|
}
|
|
3232
3220
|
}
|
|
3233
3221
|
close(e) {
|
|
3234
3222
|
let t = this.toasts.get(e);
|
|
3235
3223
|
t !== void 0 && t.closing === !1 && (t.closing = !0, t.closeTimeout !== void 0 && this.p.clearTimeout(t.closeTimeout), this.transitionService.run(t.element, (e) => {
|
|
3236
|
-
|
|
3224
|
+
w(e, "toaster", "hide");
|
|
3237
3225
|
}, (t) => {
|
|
3238
|
-
t.remove(), this.toasts.delete(e), this.toasts.size === 0 &&
|
|
3226
|
+
t.remove(), this.toasts.delete(e), this.toasts.size === 0 && ar(this.element), this.logger.debug(`Toast removed with ID: ${e}`);
|
|
3239
3227
|
}));
|
|
3240
3228
|
}
|
|
3241
3229
|
static {
|
|
3242
|
-
|
|
3230
|
+
fr();
|
|
3243
3231
|
}
|
|
3244
3232
|
});
|
|
3245
3233
|
//#endregion
|
|
3246
3234
|
//#region src/attributes/toast.ts
|
|
3247
|
-
function
|
|
3235
|
+
function mr(e, t) {
|
|
3248
3236
|
if (typeof e != "object" || !e) return e;
|
|
3249
3237
|
var n = e[Symbol.toPrimitive];
|
|
3250
3238
|
if (n !== void 0) {
|
|
@@ -3254,15 +3242,15 @@ function hr(e, t) {
|
|
|
3254
3242
|
}
|
|
3255
3243
|
return (t === "string" ? String : Number)(e);
|
|
3256
3244
|
}
|
|
3257
|
-
function
|
|
3258
|
-
var t =
|
|
3245
|
+
function hr(e) {
|
|
3246
|
+
var t = mr(e, "string");
|
|
3259
3247
|
return typeof t == "symbol" ? t : String(t);
|
|
3260
3248
|
}
|
|
3261
|
-
function
|
|
3249
|
+
function gr(e) {
|
|
3262
3250
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
3263
3251
|
return e;
|
|
3264
3252
|
}
|
|
3265
|
-
function
|
|
3253
|
+
function _r(e, t, n) {
|
|
3266
3254
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
3267
3255
|
try {
|
|
3268
3256
|
Object.defineProperty(e, "name", {
|
|
@@ -3272,7 +3260,7 @@ function vr(e, t, n) {
|
|
|
3272
3260
|
} catch {}
|
|
3273
3261
|
return e;
|
|
3274
3262
|
}
|
|
3275
|
-
function
|
|
3263
|
+
function vr(e, t, n, r, i, a) {
|
|
3276
3264
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
3277
3265
|
function p(t, n, r) {
|
|
3278
3266
|
return function(i, a) {
|
|
@@ -3297,13 +3285,13 @@ function yr(e, t, n, r, i, a) {
|
|
|
3297
3285
|
}
|
|
3298
3286
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
3299
3287
|
if (!b && (d ? (h || x ? E = {
|
|
3300
|
-
get:
|
|
3288
|
+
get: _r(function() {
|
|
3301
3289
|
return y(this);
|
|
3302
3290
|
}, r, "get"),
|
|
3303
3291
|
set: function(e) {
|
|
3304
3292
|
t[4](this, e);
|
|
3305
3293
|
}
|
|
3306
|
-
} : E[O] = y, h ||
|
|
3294
|
+
} : E[O] = y, h || _r(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
3307
3295
|
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");
|
|
3308
3296
|
u[+c][r] = i < 3 ? 1 : i;
|
|
3309
3297
|
}
|
|
@@ -3351,8 +3339,8 @@ function yr(e, t, n, r, i, a) {
|
|
|
3351
3339
|
var l = n[c], u = l[1], d = u & 7;
|
|
3352
3340
|
if ((u & 8) == o && !d == s) {
|
|
3353
3341
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
3354
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
3355
|
-
return
|
|
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;
|
|
3356
3344
|
} : i);
|
|
3357
3345
|
}
|
|
3358
3346
|
}
|
|
@@ -3374,70 +3362,70 @@ function yr(e, t, n, r, i, a) {
|
|
|
3374
3362
|
}
|
|
3375
3363
|
};
|
|
3376
3364
|
}
|
|
3377
|
-
var
|
|
3365
|
+
var yr = u({
|
|
3378
3366
|
name: "bleet-toast",
|
|
3379
3367
|
defaultProperty: "id"
|
|
3380
|
-
}), xr, Sr =
|
|
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;
|
|
3381
3369
|
(class {
|
|
3382
3370
|
logger;
|
|
3383
3371
|
ea;
|
|
3384
3372
|
p;
|
|
3385
3373
|
static {
|
|
3386
|
-
({e: [Dr, Or, kr, Ar, jr, Mr, Nr, Pr, Fr, Ir, Lr
|
|
3374
|
+
({e: [Er, Dr, Or, kr, Ar, jr, Mr, Nr, Pr, Fr, Ir, Lr], c: [Rr, br]} = vr(this, [yr], [
|
|
3387
3375
|
[
|
|
3388
|
-
|
|
3376
|
+
l,
|
|
3389
3377
|
0,
|
|
3390
3378
|
"id"
|
|
3391
3379
|
],
|
|
3392
3380
|
[
|
|
3393
|
-
|
|
3381
|
+
xr,
|
|
3394
3382
|
0,
|
|
3395
|
-
"
|
|
3383
|
+
"level"
|
|
3396
3384
|
],
|
|
3397
3385
|
[
|
|
3398
|
-
|
|
3386
|
+
Sr,
|
|
3399
3387
|
0,
|
|
3400
3388
|
"icon"
|
|
3401
3389
|
],
|
|
3402
3390
|
[
|
|
3403
|
-
|
|
3391
|
+
Cr,
|
|
3404
3392
|
0,
|
|
3405
3393
|
"title"
|
|
3406
3394
|
],
|
|
3407
3395
|
[
|
|
3408
|
-
|
|
3396
|
+
wr,
|
|
3409
3397
|
0,
|
|
3410
3398
|
"content"
|
|
3411
3399
|
],
|
|
3412
3400
|
[
|
|
3413
|
-
|
|
3401
|
+
Tr,
|
|
3414
3402
|
0,
|
|
3415
3403
|
"duration"
|
|
3416
3404
|
]
|
|
3417
3405
|
]));
|
|
3418
3406
|
}
|
|
3419
|
-
constructor(e =
|
|
3407
|
+
constructor(e = m(o).scopeTo("bleet-toast"), t = m(a), n = m(c)) {
|
|
3420
3408
|
this.logger = e, this.ea = t, this.p = n, this.logger.trace("constructor");
|
|
3421
3409
|
}
|
|
3422
|
-
id =
|
|
3423
|
-
|
|
3424
|
-
icon = (
|
|
3425
|
-
title = (
|
|
3426
|
-
content = (
|
|
3427
|
-
duration = (
|
|
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));
|
|
3428
3416
|
attached() {
|
|
3429
3417
|
this.logger.trace("attached"), this.p.document.readyState === "loading" ? this.p.document.addEventListener("DOMContentLoaded", () => {
|
|
3430
3418
|
this.publish();
|
|
3431
3419
|
}, { once: !0 }) : this.publish();
|
|
3432
3420
|
}
|
|
3433
|
-
publish = (
|
|
3434
|
-
this.logger.trace("publish"),
|
|
3435
|
-
this.ea.publish(
|
|
3436
|
-
action:
|
|
3421
|
+
publish = (Lr(this), () => {
|
|
3422
|
+
this.logger.trace("publish"), p(() => {
|
|
3423
|
+
this.ea.publish(E.Toaster, {
|
|
3424
|
+
action: F.Add,
|
|
3437
3425
|
toast: {
|
|
3438
3426
|
id: this.id,
|
|
3439
3427
|
duration: this.duration,
|
|
3440
|
-
|
|
3428
|
+
level: this.level,
|
|
3441
3429
|
icon: this.icon,
|
|
3442
3430
|
title: this.title,
|
|
3443
3431
|
content: this.content
|
|
@@ -3446,12 +3434,12 @@ var br = l({
|
|
|
3446
3434
|
});
|
|
3447
3435
|
});
|
|
3448
3436
|
static {
|
|
3449
|
-
|
|
3437
|
+
br();
|
|
3450
3438
|
}
|
|
3451
3439
|
});
|
|
3452
3440
|
//#endregion
|
|
3453
3441
|
//#region src/attributes/overlay.ts
|
|
3454
|
-
function
|
|
3442
|
+
function zr(e, t) {
|
|
3455
3443
|
if (typeof e != "object" || !e) return e;
|
|
3456
3444
|
var n = e[Symbol.toPrimitive];
|
|
3457
3445
|
if (n !== void 0) {
|
|
@@ -3461,15 +3449,15 @@ function Br(e, t) {
|
|
|
3461
3449
|
}
|
|
3462
3450
|
return (t === "string" ? String : Number)(e);
|
|
3463
3451
|
}
|
|
3464
|
-
function
|
|
3465
|
-
var t =
|
|
3452
|
+
function Br(e) {
|
|
3453
|
+
var t = zr(e, "string");
|
|
3466
3454
|
return typeof t == "symbol" ? t : String(t);
|
|
3467
3455
|
}
|
|
3468
|
-
function
|
|
3456
|
+
function Vr(e) {
|
|
3469
3457
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
3470
3458
|
return e;
|
|
3471
3459
|
}
|
|
3472
|
-
function
|
|
3460
|
+
function Hr(e, t, n) {
|
|
3473
3461
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
3474
3462
|
try {
|
|
3475
3463
|
Object.defineProperty(e, "name", {
|
|
@@ -3479,7 +3467,7 @@ function Ur(e, t, n) {
|
|
|
3479
3467
|
} catch {}
|
|
3480
3468
|
return e;
|
|
3481
3469
|
}
|
|
3482
|
-
function
|
|
3470
|
+
function Ur(e, t, n, r, i, a) {
|
|
3483
3471
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
3484
3472
|
function p(t, n, r) {
|
|
3485
3473
|
return function(i, a) {
|
|
@@ -3504,13 +3492,13 @@ function Wr(e, t, n, r, i, a) {
|
|
|
3504
3492
|
}
|
|
3505
3493
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
3506
3494
|
if (!b && (d ? (h || x ? E = {
|
|
3507
|
-
get:
|
|
3495
|
+
get: Hr(function() {
|
|
3508
3496
|
return y(this);
|
|
3509
3497
|
}, r, "get"),
|
|
3510
3498
|
set: function(e) {
|
|
3511
3499
|
t[4](this, e);
|
|
3512
3500
|
}
|
|
3513
|
-
} : E[O] = y, h ||
|
|
3501
|
+
} : E[O] = y, h || Hr(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
3514
3502
|
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");
|
|
3515
3503
|
u[+c][r] = i < 3 ? 1 : i;
|
|
3516
3504
|
}
|
|
@@ -3558,8 +3546,8 @@ function Wr(e, t, n, r, i, a) {
|
|
|
3558
3546
|
var l = n[c], u = l[1], d = u & 7;
|
|
3559
3547
|
if ((u & 8) == o && !d == s) {
|
|
3560
3548
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
3561
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
3562
|
-
return
|
|
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;
|
|
3563
3551
|
} : i);
|
|
3564
3552
|
}
|
|
3565
3553
|
}
|
|
@@ -3581,7 +3569,7 @@ function Wr(e, t, n, r, i, a) {
|
|
|
3581
3569
|
}
|
|
3582
3570
|
};
|
|
3583
3571
|
}
|
|
3584
|
-
var
|
|
3572
|
+
var Wr = u("bleet-overlay"), Gr, Kr;
|
|
3585
3573
|
(class {
|
|
3586
3574
|
logger;
|
|
3587
3575
|
element;
|
|
@@ -3589,14 +3577,14 @@ var Gr = l("bleet-overlay"), Kr, qr;
|
|
|
3589
3577
|
p;
|
|
3590
3578
|
transitionService;
|
|
3591
3579
|
static {
|
|
3592
|
-
({c: [
|
|
3580
|
+
({c: [Kr, Gr]} = Ur(this, [Wr], []));
|
|
3593
3581
|
}
|
|
3594
|
-
constructor(e =
|
|
3595
|
-
this.logger = e, this.element = t, this.ea = n, this.p = r, this.transitionService =
|
|
3582
|
+
constructor(e = m(o).scopeTo("bleet-overlay"), t = m(s), n = m(a), r = m(c), i = m(b)) {
|
|
3583
|
+
this.logger = e, this.element = t, this.ea = n, this.p = r, this.transitionService = i, this.logger.trace("constructor");
|
|
3596
3584
|
}
|
|
3597
3585
|
disposable;
|
|
3598
3586
|
attached() {
|
|
3599
|
-
this.logger.trace("attached"), this.disposable = this.ea.subscribe(
|
|
3587
|
+
this.logger.trace("attached"), this.disposable = this.ea.subscribe(E.Overlay, this.onOverlayEvent), this.element.addEventListener("click", this.onClickOverlay);
|
|
3600
3588
|
}
|
|
3601
3589
|
detaching() {
|
|
3602
3590
|
this.logger.trace("detaching"), this.element.removeEventListener("click", this.onClickOverlay), this.disposable?.dispose();
|
|
@@ -3606,33 +3594,33 @@ var Gr = l("bleet-overlay"), Kr, qr;
|
|
|
3606
3594
|
}
|
|
3607
3595
|
open(e = !1) {
|
|
3608
3596
|
this.element.hidden && (this.logger.trace("open"), this.transitionService.run(this.element, (t) => {
|
|
3609
|
-
e && this.ea.publish(
|
|
3610
|
-
|
|
3597
|
+
e && this.ea.publish(E.Overlay, { action: O.Open }), this.ea.publish(E.OverlayStatus, { status: k.Opening }), t.hidden = !1, this.p.requestAnimationFrame(() => {
|
|
3598
|
+
w(t, "overlay", "show");
|
|
3611
3599
|
}), this.logger.trace("open before()");
|
|
3612
3600
|
}, (e) => {
|
|
3613
|
-
this.ea.publish(
|
|
3601
|
+
this.ea.publish(E.OverlayStatus, { status: k.Opened }), this.logger.trace("open after()");
|
|
3614
3602
|
}));
|
|
3615
3603
|
}
|
|
3616
3604
|
close(e = !1) {
|
|
3617
3605
|
this.element.hidden || this.transitionService.run(this.element, (t) => {
|
|
3618
|
-
e && this.ea.publish(
|
|
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()");
|
|
3619
3607
|
}, (e) => {
|
|
3620
|
-
e.hidden = !0, this.logger.trace("close after()"), this.ea.publish(
|
|
3608
|
+
e.hidden = !0, this.logger.trace("close after()"), this.ea.publish(E.OverlayStatus, { status: k.Closed });
|
|
3621
3609
|
});
|
|
3622
3610
|
}
|
|
3623
3611
|
onOverlayEvent = (e) => {
|
|
3624
|
-
e.action ===
|
|
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);
|
|
3625
3613
|
};
|
|
3626
3614
|
onClickOverlay = (e) => {
|
|
3627
3615
|
this.logger.trace("onClickOverlay", e), e.preventDefault(), this.close(!0);
|
|
3628
3616
|
};
|
|
3629
3617
|
static {
|
|
3630
|
-
|
|
3618
|
+
Gr();
|
|
3631
3619
|
}
|
|
3632
3620
|
});
|
|
3633
3621
|
//#endregion
|
|
3634
3622
|
//#region src/attributes/focus.ts
|
|
3635
|
-
function
|
|
3623
|
+
function qr(e, t) {
|
|
3636
3624
|
if (typeof e != "object" || !e) return e;
|
|
3637
3625
|
var n = e[Symbol.toPrimitive];
|
|
3638
3626
|
if (n !== void 0) {
|
|
@@ -3642,15 +3630,15 @@ function Jr(e, t) {
|
|
|
3642
3630
|
}
|
|
3643
3631
|
return (t === "string" ? String : Number)(e);
|
|
3644
3632
|
}
|
|
3645
|
-
function
|
|
3646
|
-
var t =
|
|
3633
|
+
function Jr(e) {
|
|
3634
|
+
var t = qr(e, "string");
|
|
3647
3635
|
return typeof t == "symbol" ? t : String(t);
|
|
3648
3636
|
}
|
|
3649
|
-
function
|
|
3637
|
+
function Yr(e) {
|
|
3650
3638
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
3651
3639
|
return e;
|
|
3652
3640
|
}
|
|
3653
|
-
function
|
|
3641
|
+
function Xr(e, t, n) {
|
|
3654
3642
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
3655
3643
|
try {
|
|
3656
3644
|
Object.defineProperty(e, "name", {
|
|
@@ -3660,7 +3648,7 @@ function Zr(e, t, n) {
|
|
|
3660
3648
|
} catch {}
|
|
3661
3649
|
return e;
|
|
3662
3650
|
}
|
|
3663
|
-
function
|
|
3651
|
+
function Zr(e, t, n, r, i, a) {
|
|
3664
3652
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
3665
3653
|
function p(t, n, r) {
|
|
3666
3654
|
return function(i, a) {
|
|
@@ -3685,13 +3673,13 @@ function Qr(e, t, n, r, i, a) {
|
|
|
3685
3673
|
}
|
|
3686
3674
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
3687
3675
|
if (!b && (d ? (h || x ? E = {
|
|
3688
|
-
get:
|
|
3676
|
+
get: Xr(function() {
|
|
3689
3677
|
return y(this);
|
|
3690
3678
|
}, r, "get"),
|
|
3691
3679
|
set: function(e) {
|
|
3692
3680
|
t[4](this, e);
|
|
3693
3681
|
}
|
|
3694
|
-
} : E[O] = y, h ||
|
|
3682
|
+
} : E[O] = y, h || Xr(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
3695
3683
|
if (f = u[+c][r], f && (f ^ i) !== 7) throw Error("Decorating two elements with the same name (" + E[O].name + ") is not supported yet");
|
|
3696
3684
|
u[+c][r] = i < 3 ? 1 : i;
|
|
3697
3685
|
}
|
|
@@ -3739,8 +3727,8 @@ function Qr(e, t, n, r, i, a) {
|
|
|
3739
3727
|
var l = n[c], u = l[1], d = u & 7;
|
|
3740
3728
|
if ((u & 8) == o && !d == s) {
|
|
3741
3729
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
3742
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
3743
|
-
return
|
|
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;
|
|
3744
3732
|
} : i);
|
|
3745
3733
|
}
|
|
3746
3734
|
}
|
|
@@ -3762,15 +3750,15 @@ function Qr(e, t, n, r, i, a) {
|
|
|
3762
3750
|
}
|
|
3763
3751
|
};
|
|
3764
3752
|
}
|
|
3765
|
-
var
|
|
3753
|
+
var Qr = u("bleet-focus"), $r, ei;
|
|
3766
3754
|
(class {
|
|
3767
3755
|
logger;
|
|
3768
3756
|
element;
|
|
3769
3757
|
p;
|
|
3770
3758
|
static {
|
|
3771
|
-
({c: [
|
|
3759
|
+
({c: [ei, $r]} = Zr(this, [Qr], []));
|
|
3772
3760
|
}
|
|
3773
|
-
constructor(e =
|
|
3761
|
+
constructor(e = m(o).scopeTo("bleet-focus"), t = m(s), n = m(c)) {
|
|
3774
3762
|
this.logger = e, this.element = t, this.p = n, this.logger.trace("constructor");
|
|
3775
3763
|
}
|
|
3776
3764
|
attached() {
|
|
@@ -3779,30 +3767,30 @@ var $r = l("bleet-focus"), ei, ti;
|
|
|
3779
3767
|
});
|
|
3780
3768
|
}
|
|
3781
3769
|
static {
|
|
3782
|
-
|
|
3770
|
+
$r();
|
|
3783
3771
|
}
|
|
3784
3772
|
});
|
|
3785
3773
|
//#endregion
|
|
3786
3774
|
//#region src/components/bleet-ajaxify.$au.ts
|
|
3787
|
-
var
|
|
3788
|
-
bindables: () =>
|
|
3789
|
-
default: () =>
|
|
3790
|
-
dependencies: () =>
|
|
3791
|
-
name: () =>
|
|
3792
|
-
register: () =>
|
|
3793
|
-
template: () =>
|
|
3794
|
-
}),
|
|
3795
|
-
function
|
|
3796
|
-
|
|
3797
|
-
name:
|
|
3798
|
-
template:
|
|
3799
|
-
dependencies:
|
|
3800
|
-
bindables:
|
|
3801
|
-
}), e.register(
|
|
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);
|
|
3802
3790
|
}
|
|
3803
3791
|
//#endregion
|
|
3804
3792
|
//#region src/components/bleet-ajaxify.ts
|
|
3805
|
-
function
|
|
3793
|
+
function ci(e, t) {
|
|
3806
3794
|
if (typeof e != "object" || !e) return e;
|
|
3807
3795
|
var n = e[Symbol.toPrimitive];
|
|
3808
3796
|
if (n !== void 0) {
|
|
@@ -3812,15 +3800,15 @@ function li(e, t) {
|
|
|
3812
3800
|
}
|
|
3813
3801
|
return (t === "string" ? String : Number)(e);
|
|
3814
3802
|
}
|
|
3815
|
-
function
|
|
3816
|
-
var t =
|
|
3803
|
+
function li(e) {
|
|
3804
|
+
var t = ci(e, "string");
|
|
3817
3805
|
return typeof t == "symbol" ? t : String(t);
|
|
3818
3806
|
}
|
|
3819
|
-
function
|
|
3807
|
+
function ui(e) {
|
|
3820
3808
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
3821
3809
|
return e;
|
|
3822
3810
|
}
|
|
3823
|
-
function
|
|
3811
|
+
function di(e, t, n) {
|
|
3824
3812
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
3825
3813
|
try {
|
|
3826
3814
|
Object.defineProperty(e, "name", {
|
|
@@ -3830,7 +3818,7 @@ function fi(e, t, n) {
|
|
|
3830
3818
|
} catch {}
|
|
3831
3819
|
return e;
|
|
3832
3820
|
}
|
|
3833
|
-
function
|
|
3821
|
+
function fi(e, t, n, r, i, a) {
|
|
3834
3822
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
3835
3823
|
function p(t, n, r) {
|
|
3836
3824
|
return function(i, a) {
|
|
@@ -3855,13 +3843,13 @@ function pi(e, t, n, r, i, a) {
|
|
|
3855
3843
|
}
|
|
3856
3844
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
3857
3845
|
if (!b && (d ? (h || x ? E = {
|
|
3858
|
-
get:
|
|
3846
|
+
get: di(function() {
|
|
3859
3847
|
return y(this);
|
|
3860
3848
|
}, r, "get"),
|
|
3861
3849
|
set: function(e) {
|
|
3862
3850
|
t[4](this, e);
|
|
3863
3851
|
}
|
|
3864
|
-
} : E[O] = y, h ||
|
|
3852
|
+
} : E[O] = y, h || di(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
3865
3853
|
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");
|
|
3866
3854
|
u[+c][r] = i < 3 ? 1 : i;
|
|
3867
3855
|
}
|
|
@@ -3909,8 +3897,8 @@ function pi(e, t, n, r, i, a) {
|
|
|
3909
3897
|
var l = n[c], u = l[1], d = u & 7;
|
|
3910
3898
|
if ((u & 8) == o && !d == s) {
|
|
3911
3899
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
3912
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
3913
|
-
return
|
|
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;
|
|
3914
3902
|
} : i);
|
|
3915
3903
|
}
|
|
3916
3904
|
}
|
|
@@ -3932,35 +3920,35 @@ function pi(e, t, n, r, i, a) {
|
|
|
3932
3920
|
}
|
|
3933
3921
|
};
|
|
3934
3922
|
}
|
|
3935
|
-
var
|
|
3936
|
-
...
|
|
3923
|
+
var pi = d({
|
|
3924
|
+
...ti,
|
|
3937
3925
|
name: "bleet-ajaxify"
|
|
3938
|
-
}),
|
|
3926
|
+
}), mi, hi = l(), gi = l(), _i, vi, yi, bi, xi;
|
|
3939
3927
|
(class {
|
|
3940
3928
|
ea;
|
|
3941
3929
|
logger;
|
|
3942
3930
|
apiService;
|
|
3943
3931
|
element;
|
|
3944
3932
|
static {
|
|
3945
|
-
({e: [vi, yi, bi
|
|
3946
|
-
|
|
3933
|
+
({e: [_i, vi, yi, bi], c: [xi, mi]} = fi(this, [pi], [[
|
|
3934
|
+
hi,
|
|
3947
3935
|
0,
|
|
3948
3936
|
"id"
|
|
3949
3937
|
], [
|
|
3950
|
-
|
|
3938
|
+
gi,
|
|
3951
3939
|
0,
|
|
3952
3940
|
"url"
|
|
3953
3941
|
]]));
|
|
3954
3942
|
}
|
|
3955
|
-
constructor(e =
|
|
3956
|
-
this.ea = e, this.logger = t, this.apiService = r, this.element =
|
|
3943
|
+
constructor(e = m(a), t = m(o).scopeTo("<bleet-ajaxify>"), r = m(n), i = m(s)) {
|
|
3944
|
+
this.ea = e, this.logger = t, this.apiService = r, this.element = i, this.logger.trace("constructor");
|
|
3957
3945
|
}
|
|
3958
|
-
id =
|
|
3959
|
-
url = (
|
|
3960
|
-
ajaxedView = (
|
|
3946
|
+
id = _i(this, "");
|
|
3947
|
+
url = (vi(this), yi(this));
|
|
3948
|
+
ajaxedView = (bi(this), null);
|
|
3961
3949
|
disposable;
|
|
3962
3950
|
attaching() {
|
|
3963
|
-
this.logger.trace("attaching"), this.disposable = this.ea.subscribe(
|
|
3951
|
+
this.logger.trace("attaching"), this.disposable = this.ea.subscribe(E.Ajaxify, this.onEvent);
|
|
3964
3952
|
}
|
|
3965
3953
|
detaching() {
|
|
3966
3954
|
this.logger.trace("detaching"), this.disposable?.dispose();
|
|
@@ -3972,7 +3960,7 @@ var mi = u({
|
|
|
3972
3960
|
return this.element.querySelector("form") ?? this.element.closest("form");
|
|
3973
3961
|
}
|
|
3974
3962
|
onEvent = (e) => {
|
|
3975
|
-
this.logger.trace("onEvent", e), e.id && e.id == this.id && (e.action ===
|
|
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));
|
|
3976
3964
|
};
|
|
3977
3965
|
handleRefresh(t) {
|
|
3978
3966
|
let n = t.url ? t.url : this.url;
|
|
@@ -4007,30 +3995,30 @@ var mi = u({
|
|
|
4007
3995
|
});
|
|
4008
3996
|
}
|
|
4009
3997
|
static {
|
|
4010
|
-
|
|
3998
|
+
mi();
|
|
4011
3999
|
}
|
|
4012
4000
|
});
|
|
4013
4001
|
//#endregion
|
|
4014
4002
|
//#region src/components/bleet-dialog.$au.ts
|
|
4015
|
-
var
|
|
4016
|
-
bindables: () =>
|
|
4017
|
-
default: () =>
|
|
4018
|
-
dependencies: () =>
|
|
4019
|
-
name: () =>
|
|
4020
|
-
register: () =>
|
|
4021
|
-
template: () =>
|
|
4022
|
-
}),
|
|
4023
|
-
function
|
|
4024
|
-
|
|
4025
|
-
name:
|
|
4026
|
-
template:
|
|
4027
|
-
dependencies:
|
|
4028
|
-
bindables:
|
|
4029
|
-
}), e.register(
|
|
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);
|
|
4030
4018
|
}
|
|
4031
4019
|
//#endregion
|
|
4032
|
-
//#region src/components/
|
|
4033
|
-
function
|
|
4020
|
+
//#region src/abstracts/components/abstract-dialog.ts
|
|
4021
|
+
function ki(e, t) {
|
|
4034
4022
|
if (typeof e != "object" || !e) return e;
|
|
4035
4023
|
var n = e[Symbol.toPrimitive];
|
|
4036
4024
|
if (n !== void 0) {
|
|
@@ -4040,15 +4028,15 @@ function Ai(e, t) {
|
|
|
4040
4028
|
}
|
|
4041
4029
|
return (t === "string" ? String : Number)(e);
|
|
4042
4030
|
}
|
|
4043
|
-
function
|
|
4044
|
-
var t =
|
|
4031
|
+
function Ai(e) {
|
|
4032
|
+
var t = ki(e, "string");
|
|
4045
4033
|
return typeof t == "symbol" ? t : String(t);
|
|
4046
4034
|
}
|
|
4047
|
-
function
|
|
4035
|
+
function ji(e) {
|
|
4048
4036
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
4049
4037
|
return e;
|
|
4050
4038
|
}
|
|
4051
|
-
function
|
|
4039
|
+
function Mi(e, t, n) {
|
|
4052
4040
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
4053
4041
|
try {
|
|
4054
4042
|
Object.defineProperty(e, "name", {
|
|
@@ -4058,7 +4046,7 @@ function Ni(e, t, n) {
|
|
|
4058
4046
|
} catch {}
|
|
4059
4047
|
return e;
|
|
4060
4048
|
}
|
|
4061
|
-
function
|
|
4049
|
+
function Ni(e, t, n, r, i, a) {
|
|
4062
4050
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
4063
4051
|
function p(t, n, r) {
|
|
4064
4052
|
return function(i, a) {
|
|
@@ -4083,13 +4071,13 @@ function Pi(e, t, n, r, i, a) {
|
|
|
4083
4071
|
}
|
|
4084
4072
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
4085
4073
|
if (!b && (d ? (h || x ? E = {
|
|
4086
|
-
get:
|
|
4074
|
+
get: Mi(function() {
|
|
4087
4075
|
return y(this);
|
|
4088
4076
|
}, r, "get"),
|
|
4089
4077
|
set: function(e) {
|
|
4090
4078
|
t[4](this, e);
|
|
4091
4079
|
}
|
|
4092
|
-
} : E[O] = y, h ||
|
|
4080
|
+
} : E[O] = y, h || Mi(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
4093
4081
|
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");
|
|
4094
4082
|
u[+c][r] = i < 3 ? 1 : i;
|
|
4095
4083
|
}
|
|
@@ -4137,8 +4125,8 @@ function Pi(e, t, n, r, i, a) {
|
|
|
4137
4125
|
var l = n[c], u = l[1], d = u & 7;
|
|
4138
4126
|
if ((u & 8) == o && !d == s) {
|
|
4139
4127
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
4140
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
4141
|
-
return
|
|
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;
|
|
4142
4130
|
} : i);
|
|
4143
4131
|
}
|
|
4144
4132
|
}
|
|
@@ -4160,71 +4148,68 @@ function Pi(e, t, n, r, i, a) {
|
|
|
4160
4148
|
}
|
|
4161
4149
|
};
|
|
4162
4150
|
}
|
|
4163
|
-
var Fi =
|
|
4164
|
-
...Ci,
|
|
4165
|
-
name: "bleet-dialog"
|
|
4166
|
-
}), Ii, Li = c({ attribute: "data-dialog-class" }), Ri, zi, Bi, Vi, Hi, Ui, Wi, Gi, Ki;
|
|
4167
|
-
(class {
|
|
4168
|
-
logger;
|
|
4151
|
+
var Pi, Fi, Ii = class {
|
|
4169
4152
|
element;
|
|
4170
4153
|
ea;
|
|
4171
4154
|
p;
|
|
4172
4155
|
transitionService;
|
|
4173
|
-
apiService;
|
|
4174
4156
|
static {
|
|
4175
|
-
({e: [
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
],
|
|
4181
|
-
[
|
|
4182
|
-
Li,
|
|
4183
|
-
0,
|
|
4184
|
-
"dialogClass"
|
|
4185
|
-
],
|
|
4186
|
-
[
|
|
4187
|
-
c,
|
|
4188
|
-
0,
|
|
4189
|
-
"loadError"
|
|
4190
|
-
],
|
|
4191
|
-
[
|
|
4192
|
-
c,
|
|
4193
|
-
0,
|
|
4194
|
-
"submitError"
|
|
4195
|
-
]
|
|
4196
|
-
]));
|
|
4197
|
-
}
|
|
4198
|
-
constructor(e = f(a).scopeTo("<bleet-dialog>"), t = f(o), r = f(i), c = f(s), l = f(v), u = f(n)) {
|
|
4199
|
-
this.logger = e, this.element = t, this.ea = r, this.p = c, this.transitionService = l, this.apiService = u;
|
|
4157
|
+
({e: [Pi, Fi]} = Ni(this, [], [[
|
|
4158
|
+
l,
|
|
4159
|
+
0,
|
|
4160
|
+
"id"
|
|
4161
|
+
]]));
|
|
4200
4162
|
}
|
|
4201
|
-
id =
|
|
4202
|
-
|
|
4203
|
-
loadError = (Vi(this), Hi(this, ""));
|
|
4204
|
-
submitError = (Ui(this), Wi(this, ""));
|
|
4205
|
-
title = (Gi(this), "");
|
|
4206
|
-
color = "";
|
|
4163
|
+
id = Pi(this, "");
|
|
4164
|
+
title = (Fi(this), "");
|
|
4207
4165
|
dialogElement;
|
|
4208
4166
|
disposable;
|
|
4209
|
-
loading = !1;
|
|
4210
4167
|
closing = !1;
|
|
4211
|
-
|
|
4168
|
+
constructor(e = m(s), t = m(a), n = m(c), r = m(b)) {
|
|
4169
|
+
this.element = e, this.ea = t, this.p = n, this.transitionService = r;
|
|
4170
|
+
}
|
|
4212
4171
|
attached() {
|
|
4213
|
-
this.disposable = this.ea.subscribe(
|
|
4172
|
+
this.disposable = this.ea.subscribe(E.Modal, this.onModalEvent), this.dialogElement.addEventListener("cancel", this.onCancelEvent), this.dialogElement.addEventListener("click", this.onDialogClick);
|
|
4214
4173
|
}
|
|
4215
4174
|
detaching() {
|
|
4216
|
-
this.dialogElement.removeEventListener("cancel", this.onCancelEvent), this.
|
|
4175
|
+
this.dialogElement.removeEventListener("cancel", this.onCancelEvent), this.dialogElement.removeEventListener("click", this.onDialogClick), this.disposable?.dispose();
|
|
4176
|
+
}
|
|
4177
|
+
show(e) {
|
|
4178
|
+
this.title = e.title ?? "", this.open();
|
|
4217
4179
|
}
|
|
4218
|
-
|
|
4219
|
-
|
|
4180
|
+
clear() {}
|
|
4181
|
+
close() {
|
|
4182
|
+
this.closing = !0, this.transitionService.run(this.dialogElement, (e) => {
|
|
4183
|
+
this.closing === !0 && (this.ea.publish(E.ModalStatus, {
|
|
4184
|
+
status: N.Closing,
|
|
4185
|
+
id: this.id
|
|
4186
|
+
}), this.ea.publish(E.Overlay, { action: O.Close }), w(e, "dialog", "hide", this.element));
|
|
4187
|
+
}, (e) => {
|
|
4188
|
+
this.closing === !0 && (this.closing = !1, e.close(), this.title = "", this.clear(), this.ea.publish(E.ModalStatus, {
|
|
4189
|
+
status: N.Closed,
|
|
4190
|
+
id: this.id
|
|
4191
|
+
}));
|
|
4192
|
+
});
|
|
4220
4193
|
}
|
|
4221
|
-
|
|
4222
|
-
this.
|
|
4194
|
+
open() {
|
|
4195
|
+
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,
|
|
4198
|
+
id: this.id
|
|
4199
|
+
}), e.showModal(), this.p.requestAnimationFrame(() => {
|
|
4200
|
+
w(e, "dialog", "show", this.element);
|
|
4201
|
+
});
|
|
4202
|
+
}, () => {
|
|
4203
|
+
this.ea.publish(E.ModalStatus, {
|
|
4204
|
+
status: N.Opened,
|
|
4205
|
+
id: this.id
|
|
4206
|
+
});
|
|
4207
|
+
});
|
|
4223
4208
|
}
|
|
4224
4209
|
onModalEvent = (e) => {
|
|
4225
|
-
if (this.id
|
|
4210
|
+
if (this.id !== "" && e.id === this.id) {
|
|
4226
4211
|
let t = this.dialogElement.open === !0 && this.closing === !1;
|
|
4227
|
-
e.action ===
|
|
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));
|
|
4228
4213
|
}
|
|
4229
4214
|
};
|
|
4230
4215
|
onCancelEvent = (e) => {
|
|
@@ -4236,104 +4221,10 @@ var Fi = u({
|
|
|
4236
4221
|
onDialogClick = (e) => {
|
|
4237
4222
|
e.target.closest("[data-dialog=\"close\"]") && (e.preventDefault(), this.close());
|
|
4238
4223
|
};
|
|
4239
|
-
|
|
4240
|
-
let t = e.target.closest("form");
|
|
4241
|
-
if (t && this.contentView !== null && t.getAttribute("data-dialog") !== "native") {
|
|
4242
|
-
e.preventDefault();
|
|
4243
|
-
let n = new FormData(t);
|
|
4244
|
-
e.submitter instanceof HTMLButtonElement && e.submitter.name && n.append(e.submitter.name, e.submitter.value || "");
|
|
4245
|
-
let r = n.get("_method") || t.getAttribute("method") || "POST";
|
|
4246
|
-
this.apiService.url(t.action).fromMultipart(n).request(r).then((e) => {
|
|
4247
|
-
this.applyResponse(e.body);
|
|
4248
|
-
}).catch((e) => {
|
|
4249
|
-
this.logger.error("form submit failed", e), this.publishError(this.submitError);
|
|
4250
|
-
});
|
|
4251
|
-
}
|
|
4252
|
-
};
|
|
4253
|
-
show(e) {
|
|
4254
|
-
this.title = e.title ?? "", this.color = e.color ?? "", e.url ? this.loadFromUrl(e.url) : (this.contentView = e.content ?? null, this.open());
|
|
4255
|
-
}
|
|
4256
|
-
loadFromUrl(e) {
|
|
4257
|
-
this.loading = !0, this.open(), this.apiService.url(e).get().then((e) => {
|
|
4258
|
-
this.applyResponse(e.body);
|
|
4259
|
-
}).catch((e) => {
|
|
4260
|
-
this.logger.error("loadFromUrl failed", e), this.close(), this.publishError(this.loadError);
|
|
4261
|
-
}).finally(() => {
|
|
4262
|
-
this.loading = !1;
|
|
4263
|
-
});
|
|
4264
|
-
}
|
|
4265
|
-
applyResponse(e) {
|
|
4266
|
-
e.content && (this.contentView = e.content), this.executeActions(e);
|
|
4267
|
-
}
|
|
4268
|
-
executeActions(e) {
|
|
4269
|
-
let t = e.refresh === !0 || e.action === V.RefreshAndClose;
|
|
4270
|
-
(e.action === V.Close || e.action === V.RefreshAndClose) && this.close(), e.toast && this.ea.publish(w.Toaster, {
|
|
4271
|
-
action: P.Add,
|
|
4272
|
-
toast: e.toast
|
|
4273
|
-
}), e.ajaxify ? this.ea.publish(w.Ajaxify, e.ajaxify) : e.redirect ? this.p.window.location.href = e.redirect : t === !0 && this.p.window.location.reload();
|
|
4274
|
-
}
|
|
4275
|
-
publishError(e) {
|
|
4276
|
-
e !== "" && this.ea.publish(w.Toaster, {
|
|
4277
|
-
action: P.Add,
|
|
4278
|
-
toast: {
|
|
4279
|
-
color: z.Danger,
|
|
4280
|
-
content: e
|
|
4281
|
-
}
|
|
4282
|
-
});
|
|
4283
|
-
}
|
|
4284
|
-
open() {
|
|
4285
|
-
this.closing = !1, this.bindDialogEvents(), this.transitionService.run(this.dialogElement, (e) => {
|
|
4286
|
-
this.ea.publish(w.Overlay, { action: E.Open }), this.ea.publish(w.ModalStatus, {
|
|
4287
|
-
status: j.Opening,
|
|
4288
|
-
id: this.id
|
|
4289
|
-
}), e.showModal(), this.p.requestAnimationFrame(() => {
|
|
4290
|
-
S(e, "dialog", "show", this.element);
|
|
4291
|
-
});
|
|
4292
|
-
}, () => {
|
|
4293
|
-
this.ea.publish(w.ModalStatus, {
|
|
4294
|
-
status: j.Opened,
|
|
4295
|
-
id: this.id
|
|
4296
|
-
});
|
|
4297
|
-
});
|
|
4298
|
-
}
|
|
4299
|
-
close() {
|
|
4300
|
-
this.closing = !0, this.transitionService.run(this.dialogElement, (e) => {
|
|
4301
|
-
this.closing === !0 && (this.ea.publish(w.ModalStatus, {
|
|
4302
|
-
status: j.Closing,
|
|
4303
|
-
id: this.id
|
|
4304
|
-
}), this.ea.publish(w.Overlay, { action: E.Close }), S(e, "dialog", "hide", this.element));
|
|
4305
|
-
}, (e) => {
|
|
4306
|
-
this.closing === !0 && (this.closing = !1, e.close(), this.unbindDialogEvents(), this.contentView = null, this.loading = !1, this.title = "", this.color = "", this.ea.publish(w.ModalStatus, {
|
|
4307
|
-
status: j.Closed,
|
|
4308
|
-
id: this.id
|
|
4309
|
-
}));
|
|
4310
|
-
});
|
|
4311
|
-
}
|
|
4312
|
-
static {
|
|
4313
|
-
Ii();
|
|
4314
|
-
}
|
|
4315
|
-
});
|
|
4316
|
-
//#endregion
|
|
4317
|
-
//#region src/components/bleet-toaster.$au.ts
|
|
4318
|
-
var qi = /* @__PURE__ */ h({
|
|
4319
|
-
bindables: () => Zi,
|
|
4320
|
-
default: () => Yi,
|
|
4321
|
-
dependencies: () => Xi,
|
|
4322
|
-
name: () => Ji,
|
|
4323
|
-
register: () => $i,
|
|
4324
|
-
template: () => Yi
|
|
4325
|
-
}), Ji = "bleet-toaster", Yi = "<template>\n <template repeat.for=\"toast of toasts\">\n <au-slot expose.bind=\"toast\"></au-slot>\n </template>\n</template>\n", Xi = [], Zi = {}, Qi;
|
|
4326
|
-
function $i(e) {
|
|
4327
|
-
Qi ||= p.define({
|
|
4328
|
-
name: Ji,
|
|
4329
|
-
template: Yi,
|
|
4330
|
-
dependencies: Xi,
|
|
4331
|
-
bindables: Zi
|
|
4332
|
-
}), e.register(Qi);
|
|
4333
|
-
}
|
|
4224
|
+
};
|
|
4334
4225
|
//#endregion
|
|
4335
|
-
//#region src/components/
|
|
4336
|
-
function
|
|
4226
|
+
//#region src/abstracts/components/abstract-dropdown.ts
|
|
4227
|
+
function Li(e, t) {
|
|
4337
4228
|
if (typeof e != "object" || !e) return e;
|
|
4338
4229
|
var n = e[Symbol.toPrimitive];
|
|
4339
4230
|
if (n !== void 0) {
|
|
@@ -4343,15 +4234,15 @@ function ea(e, t) {
|
|
|
4343
4234
|
}
|
|
4344
4235
|
return (t === "string" ? String : Number)(e);
|
|
4345
4236
|
}
|
|
4346
|
-
function
|
|
4347
|
-
var t =
|
|
4237
|
+
function Ri(e) {
|
|
4238
|
+
var t = Li(e, "string");
|
|
4348
4239
|
return typeof t == "symbol" ? t : String(t);
|
|
4349
4240
|
}
|
|
4350
|
-
function
|
|
4241
|
+
function zi(e) {
|
|
4351
4242
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
4352
4243
|
return e;
|
|
4353
4244
|
}
|
|
4354
|
-
function
|
|
4245
|
+
function Bi(e, t, n) {
|
|
4355
4246
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
4356
4247
|
try {
|
|
4357
4248
|
Object.defineProperty(e, "name", {
|
|
@@ -4361,7 +4252,7 @@ function ra(e, t, n) {
|
|
|
4361
4252
|
} catch {}
|
|
4362
4253
|
return e;
|
|
4363
4254
|
}
|
|
4364
|
-
function
|
|
4255
|
+
function Vi(e, t, n, r, i, a) {
|
|
4365
4256
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
4366
4257
|
function p(t, n, r) {
|
|
4367
4258
|
return function(i, a) {
|
|
@@ -4386,13 +4277,13 @@ function ia(e, t, n, r, i, a) {
|
|
|
4386
4277
|
}
|
|
4387
4278
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
4388
4279
|
if (!b && (d ? (h || x ? E = {
|
|
4389
|
-
get:
|
|
4280
|
+
get: Bi(function() {
|
|
4390
4281
|
return y(this);
|
|
4391
4282
|
}, r, "get"),
|
|
4392
4283
|
set: function(e) {
|
|
4393
4284
|
t[4](this, e);
|
|
4394
4285
|
}
|
|
4395
|
-
} : E[O] = y, h ||
|
|
4286
|
+
} : E[O] = y, h || Bi(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
4396
4287
|
if (f = u[+c][r], f && (f ^ i) !== 7) throw Error("Decorating two elements with the same name (" + E[O].name + ") is not supported yet");
|
|
4397
4288
|
u[+c][r] = i < 3 ? 1 : i;
|
|
4398
4289
|
}
|
|
@@ -4440,8 +4331,8 @@ function ia(e, t, n, r, i, a) {
|
|
|
4440
4331
|
var l = n[c], u = l[1], d = u & 7;
|
|
4441
4332
|
if ((u & 8) == o && !d == s) {
|
|
4442
4333
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
4443
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
4444
|
-
return
|
|
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;
|
|
4445
4336
|
} : i);
|
|
4446
4337
|
}
|
|
4447
4338
|
}
|
|
@@ -4463,113 +4354,662 @@ function ia(e, t, n, r, i, a) {
|
|
|
4463
4354
|
}
|
|
4464
4355
|
};
|
|
4465
4356
|
}
|
|
4466
|
-
var
|
|
4467
|
-
...qi,
|
|
4468
|
-
name: "bleet-toaster"
|
|
4469
|
-
}), oa, sa;
|
|
4470
|
-
(class {
|
|
4471
|
-
logger;
|
|
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 {
|
|
4472
4358
|
element;
|
|
4473
|
-
ea;
|
|
4474
4359
|
p;
|
|
4475
|
-
|
|
4360
|
+
trapFocusService;
|
|
4476
4361
|
static {
|
|
4477
|
-
({
|
|
4362
|
+
({e: [Wi, Gi, Ki, qi, Ji, Yi, Xi, Zi, Qi, $i, ea, ta, na, ra]} = Vi(this, [], [
|
|
4363
|
+
[
|
|
4364
|
+
l,
|
|
4365
|
+
0,
|
|
4366
|
+
"options"
|
|
4367
|
+
],
|
|
4368
|
+
[
|
|
4369
|
+
Hi,
|
|
4370
|
+
0,
|
|
4371
|
+
"value"
|
|
4372
|
+
],
|
|
4373
|
+
[
|
|
4374
|
+
Ui,
|
|
4375
|
+
0,
|
|
4376
|
+
"values"
|
|
4377
|
+
],
|
|
4378
|
+
[
|
|
4379
|
+
l,
|
|
4380
|
+
0,
|
|
4381
|
+
"multiple"
|
|
4382
|
+
],
|
|
4383
|
+
[
|
|
4384
|
+
l,
|
|
4385
|
+
0,
|
|
4386
|
+
"disabled"
|
|
4387
|
+
],
|
|
4388
|
+
[
|
|
4389
|
+
l,
|
|
4390
|
+
0,
|
|
4391
|
+
"placeholder"
|
|
4392
|
+
],
|
|
4393
|
+
[
|
|
4394
|
+
f,
|
|
4395
|
+
0,
|
|
4396
|
+
"query"
|
|
4397
|
+
]
|
|
4398
|
+
]));
|
|
4478
4399
|
}
|
|
4479
|
-
|
|
4480
|
-
|
|
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);
|
|
4407
|
+
groups = [];
|
|
4408
|
+
selection = [];
|
|
4409
|
+
empty = !1;
|
|
4410
|
+
button;
|
|
4411
|
+
panel;
|
|
4412
|
+
search = null;
|
|
4413
|
+
entries = [];
|
|
4414
|
+
placeholderRow = null;
|
|
4415
|
+
query = na(this, "");
|
|
4416
|
+
constructor(e = m(s), t = m(c), n = m(S)) {
|
|
4417
|
+
this.element = e, this.p = t, this.trapFocusService = n;
|
|
4481
4418
|
}
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
disposable;
|
|
4485
|
-
attached() {
|
|
4486
|
-
this.disposable = this.ea.subscribe(w.Toaster, this.onToasterEvent);
|
|
4419
|
+
bound() {
|
|
4420
|
+
this.build();
|
|
4487
4421
|
}
|
|
4488
4422
|
detaching() {
|
|
4489
|
-
|
|
4490
|
-
|
|
4423
|
+
let e = Promise.resolve();
|
|
4424
|
+
return this.open === !0 && (e = this.trapFocusService.stop()), e;
|
|
4425
|
+
}
|
|
4426
|
+
optionsChanged() {
|
|
4427
|
+
this.build();
|
|
4428
|
+
}
|
|
4429
|
+
placeholderChanged() {
|
|
4430
|
+
this.build();
|
|
4431
|
+
}
|
|
4432
|
+
valueChanged() {
|
|
4433
|
+
this.select();
|
|
4434
|
+
}
|
|
4435
|
+
valuesChanged() {
|
|
4436
|
+
this.select();
|
|
4437
|
+
}
|
|
4438
|
+
queryChanged() {
|
|
4439
|
+
this.filter();
|
|
4440
|
+
}
|
|
4441
|
+
onClickToggle(e) {
|
|
4442
|
+
let t = Promise.resolve();
|
|
4443
|
+
return e.preventDefault(), this.open === !0 ? t = this.trapFocusService.stop() : this.disabled === !1 && (t = this.openPanel()), t;
|
|
4444
|
+
}
|
|
4445
|
+
onClickItem(e, t) {
|
|
4446
|
+
let n = Promise.resolve();
|
|
4447
|
+
return e.preventDefault(), t.disabled === !1 && (this.multiple === !0 ? this.values = t.selected === !0 ? this.values.filter((e) => e !== t.value) : [...this.values, t.value] : (this.value = t.value, n = this.trapFocusService.stop())), n;
|
|
4448
|
+
}
|
|
4449
|
+
onClickRemove(e, t) {
|
|
4450
|
+
e.preventDefault(), e.stopPropagation(), this.values = this.values.filter((e) => e !== t.value);
|
|
4451
|
+
}
|
|
4452
|
+
openPanel() {
|
|
4453
|
+
let e = this.search ?? this.panel.querySelector("[aria-selected=\"true\"]") ?? void 0;
|
|
4454
|
+
return this.open = !0, this.trapFocusService.start(this.button, this.panel, this.element, void 0, this.onStopTrapFocus, e).then(() => {
|
|
4455
|
+
this.p.requestAnimationFrame(() => {
|
|
4456
|
+
this.panel.querySelector("[aria-selected=\"true\"]")?.scrollIntoView({ block: "nearest" });
|
|
4457
|
+
});
|
|
4491
4458
|
});
|
|
4492
4459
|
}
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
|
|
4460
|
+
onStopTrapFocus = (ra(this), () => {
|
|
4461
|
+
this.open = !1, this.query = "";
|
|
4462
|
+
});
|
|
4463
|
+
build() {
|
|
4464
|
+
this.placeholderRow = this.multiple === !1 && this.placeholder !== "" ? {
|
|
4465
|
+
value: null,
|
|
4466
|
+
label: this.placeholder,
|
|
4467
|
+
disabled: !1,
|
|
4468
|
+
selected: !1
|
|
4469
|
+
} : null, this.entries = this.options.map((e) => ({
|
|
4470
|
+
group: e.group ?? "",
|
|
4471
|
+
row: {
|
|
4472
|
+
value: e.value,
|
|
4473
|
+
label: e.label,
|
|
4474
|
+
disabled: e.disabled === !0,
|
|
4475
|
+
selected: !1
|
|
4476
|
+
}
|
|
4477
|
+
})), this.select(), this.filter();
|
|
4478
|
+
}
|
|
4479
|
+
select() {
|
|
4480
|
+
this.placeholderRow !== null && (this.placeholderRow.selected = this.value === null), this.entries.forEach((e) => {
|
|
4481
|
+
e.row.selected = this.multiple === !0 ? this.values.includes(e.row.value) : this.value === e.row.value;
|
|
4482
|
+
}), this.selection = this.entries.map((e) => e.row).filter((e) => e.selected === !0);
|
|
4483
|
+
}
|
|
4484
|
+
filter() {
|
|
4485
|
+
let e = this.query.toLowerCase().trim(), t = [];
|
|
4486
|
+
this.placeholderRow !== null && e === "" && t.push({
|
|
4487
|
+
label: "",
|
|
4488
|
+
rows: [this.placeholderRow]
|
|
4489
|
+
}), this.entries.forEach((n) => {
|
|
4490
|
+
if (e === "" || n.row.label.toLowerCase().includes(e) === !0) {
|
|
4491
|
+
let e = t.find((e) => e.label === n.group);
|
|
4492
|
+
e === void 0 ? t.push({
|
|
4493
|
+
label: n.group,
|
|
4494
|
+
rows: [n.row]
|
|
4495
|
+
}) : e.rows.push(n.row);
|
|
4504
4496
|
}
|
|
4497
|
+
}), this.groups = t, this.empty = e !== "" && t.length === 0;
|
|
4498
|
+
}
|
|
4499
|
+
};
|
|
4500
|
+
//#endregion
|
|
4501
|
+
//#region src/abstracts/components/abstract-pager.ts
|
|
4502
|
+
function aa(e, t) {
|
|
4503
|
+
if (typeof e != "object" || !e) return e;
|
|
4504
|
+
var n = e[Symbol.toPrimitive];
|
|
4505
|
+
if (n !== void 0) {
|
|
4506
|
+
var r = n.call(e, t || "default");
|
|
4507
|
+
if (typeof r != "object") return r;
|
|
4508
|
+
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
4509
|
+
}
|
|
4510
|
+
return (t === "string" ? String : Number)(e);
|
|
4511
|
+
}
|
|
4512
|
+
function oa(e) {
|
|
4513
|
+
var t = aa(e, "string");
|
|
4514
|
+
return typeof t == "symbol" ? t : String(t);
|
|
4515
|
+
}
|
|
4516
|
+
function sa(e) {
|
|
4517
|
+
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
4518
|
+
return e;
|
|
4519
|
+
}
|
|
4520
|
+
function ca(e, t, n) {
|
|
4521
|
+
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
4522
|
+
try {
|
|
4523
|
+
Object.defineProperty(e, "name", {
|
|
4524
|
+
configurable: !0,
|
|
4525
|
+
value: n ? n + " " + t : t
|
|
4526
|
+
});
|
|
4527
|
+
} catch {}
|
|
4528
|
+
return e;
|
|
4529
|
+
}
|
|
4530
|
+
function la(e, t, n, r, i, a) {
|
|
4531
|
+
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
|
+
function p(t, n, r) {
|
|
4533
|
+
return function(i, a) {
|
|
4534
|
+
n && (a = i, i = e);
|
|
4535
|
+
for (var o = 0; o < t.length; o++) a = t[o].apply(i, r ? [a] : []);
|
|
4536
|
+
return r ? a : i;
|
|
4505
4537
|
};
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4538
|
+
}
|
|
4539
|
+
function m(e, t, n, r) {
|
|
4540
|
+
if (typeof e != "function" && (r || e !== void 0)) throw TypeError(t + " must " + (n || "be") + " a function" + (r ? "" : " or undefined"));
|
|
4541
|
+
return e;
|
|
4542
|
+
}
|
|
4543
|
+
function h(e, t, n, r, i, a, o, c, d, h, g) {
|
|
4544
|
+
function _(e) {
|
|
4545
|
+
if (!g(e)) throw TypeError("Attempted to access private element on non-instance");
|
|
4546
|
+
}
|
|
4547
|
+
var v = [].concat(t[0]), y = t[3], b = !o, x = i === 1, S = i === 3, C = i === 4, w = i === 2;
|
|
4548
|
+
function T(t, n, r) {
|
|
4549
|
+
return function(i, a) {
|
|
4550
|
+
return n && (a = i, i = e), r && r(i), desc[t].call(i, a);
|
|
4551
|
+
};
|
|
4552
|
+
}
|
|
4553
|
+
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
4554
|
+
if (!b && (d ? (h || x ? E = {
|
|
4555
|
+
get: ca(function() {
|
|
4556
|
+
return y(this);
|
|
4557
|
+
}, r, "get"),
|
|
4558
|
+
set: function(e) {
|
|
4559
|
+
t[4](this, e);
|
|
4560
|
+
}
|
|
4561
|
+
} : E[O] = y, h || ca(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
4562
|
+
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
|
+
u[+c][r] = i < 3 ? 1 : i;
|
|
4564
|
+
}
|
|
4565
|
+
for (var k = e, A = v.length - 1; A >= 0; A -= n ? 2 : 1) {
|
|
4566
|
+
var j = m(v[A], "A decorator", "be", !0), M = n ? v[A - 1] : void 0, N = {}, P = {
|
|
4567
|
+
kind: [
|
|
4568
|
+
"field",
|
|
4569
|
+
"accessor",
|
|
4570
|
+
"method",
|
|
4571
|
+
"getter",
|
|
4572
|
+
"setter",
|
|
4573
|
+
"class"
|
|
4574
|
+
][i],
|
|
4575
|
+
name: r,
|
|
4576
|
+
metadata: l,
|
|
4577
|
+
addInitializer: (function(e, t) {
|
|
4578
|
+
if (e.v) throw TypeError("attempted to call addInitializer after decoration was finished");
|
|
4579
|
+
m(t, "An initializer", "be", !0), a.push(t);
|
|
4580
|
+
}).bind(null, N)
|
|
4581
|
+
};
|
|
4582
|
+
if (b) f = j.call(M, k, P), N.v = 1, m(f, "class decorators", "return") && (k = f);
|
|
4583
|
+
else if (P.static = c, P.private = d, f = P.access = { has: d ? g.bind() : function(e) {
|
|
4584
|
+
return r in e;
|
|
4585
|
+
} }, C || (f.get = d ? w ? function(e) {
|
|
4586
|
+
return _(e), E.value;
|
|
4587
|
+
} : T("get", 0, _) : function(e) {
|
|
4588
|
+
return e[r];
|
|
4589
|
+
}), !w && !S && (f.set = d ? T("set", 0, _) : function(e, t) {
|
|
4590
|
+
e[r] = t;
|
|
4591
|
+
}), k = j.call(M, x ? {
|
|
4592
|
+
get: E.get,
|
|
4593
|
+
set: E.set
|
|
4594
|
+
} : E[O], P), N.v = 1, x) {
|
|
4595
|
+
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);
|
|
4596
|
+
else if (k !== void 0) throw TypeError("accessor decorators must return an object with get, set, or init properties or undefined");
|
|
4597
|
+
} else m(k, (h ? "field" : "method") + " decorators", "return") && (h ? D.unshift(k) : E[O] = k);
|
|
4598
|
+
}
|
|
4599
|
+
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;
|
|
4600
|
+
}
|
|
4601
|
+
function g() {
|
|
4602
|
+
var t = [], r, a, o = function(e) {
|
|
4603
|
+
e && t.push(p(e));
|
|
4604
|
+
}, s = function(o, s) {
|
|
4605
|
+
for (var c = 0; c < n.length; c++) {
|
|
4606
|
+
var l = n[c], u = l[1], d = u & 7;
|
|
4607
|
+
if ((u & 8) == o && !d == s) {
|
|
4608
|
+
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;
|
|
4611
|
+
} : i);
|
|
4612
|
+
}
|
|
4613
|
+
}
|
|
4614
|
+
};
|
|
4615
|
+
return s(8, 0), s(0, 0), s(8, 1), s(0, 1), o(r), o(a), t;
|
|
4616
|
+
}
|
|
4617
|
+
function _(e) {
|
|
4618
|
+
return s(e, o, {
|
|
4619
|
+
configurable: !0,
|
|
4620
|
+
enumerable: !0,
|
|
4621
|
+
value: l
|
|
4513
4622
|
});
|
|
4514
4623
|
}
|
|
4624
|
+
return a !== void 0 && (l = a[o]), l = c(l ?? null), f = g(), d || _(e), {
|
|
4625
|
+
e: f,
|
|
4626
|
+
get c() {
|
|
4627
|
+
var n = [];
|
|
4628
|
+
return d && [_(e = h(e, [t], r, e.name, 5, n)), p(n, 1)];
|
|
4629
|
+
}
|
|
4630
|
+
};
|
|
4631
|
+
}
|
|
4632
|
+
var ua, da, fa, pa, ma, ha, ga = /*#__PURE__*/ function(e) {
|
|
4633
|
+
return e.Change = "bleet-page", e;
|
|
4634
|
+
}({}), _a = /*#__PURE__*/ function(e) {
|
|
4635
|
+
return e[e.MaxButtonCount = 10] = "MaxButtonCount", e;
|
|
4636
|
+
}(_a || {}), va = class {
|
|
4637
|
+
element;
|
|
4638
|
+
static {
|
|
4639
|
+
({e: [ua, da, fa, pa, ma, ha]} = la(this, [], [
|
|
4640
|
+
[
|
|
4641
|
+
l,
|
|
4642
|
+
0,
|
|
4643
|
+
"pagination"
|
|
4644
|
+
],
|
|
4645
|
+
[
|
|
4646
|
+
l,
|
|
4647
|
+
0,
|
|
4648
|
+
"maxButtonCount"
|
|
4649
|
+
],
|
|
4650
|
+
[
|
|
4651
|
+
f,
|
|
4652
|
+
0,
|
|
4653
|
+
"selectedPage"
|
|
4654
|
+
]
|
|
4655
|
+
]));
|
|
4656
|
+
}
|
|
4657
|
+
pagination = ua(this, {
|
|
4658
|
+
limit: 0,
|
|
4659
|
+
currentPage: 1,
|
|
4660
|
+
totalPages: 1,
|
|
4661
|
+
totalCount: 0
|
|
4662
|
+
});
|
|
4663
|
+
maxButtonCount = (da(this), fa(this, _a.MaxButtonCount));
|
|
4664
|
+
page = (pa(this), 1);
|
|
4665
|
+
numbers = [];
|
|
4666
|
+
begin = 0;
|
|
4667
|
+
end = 0;
|
|
4668
|
+
selectedPage = ma(this, null);
|
|
4669
|
+
constructor(e = m(s)) {
|
|
4670
|
+
this.element = e, ha(this);
|
|
4671
|
+
}
|
|
4672
|
+
bound() {
|
|
4673
|
+
this.page = this.pagination.currentPage, this.refresh();
|
|
4674
|
+
}
|
|
4675
|
+
paginationChanged() {
|
|
4676
|
+
this.page = this.pagination.currentPage, this.refresh();
|
|
4677
|
+
}
|
|
4678
|
+
selectedPageChanged() {
|
|
4679
|
+
this.selectedPage !== null && this.go(this.selectedPage);
|
|
4680
|
+
}
|
|
4681
|
+
onClickPage(e, t) {
|
|
4682
|
+
e.preventDefault(), this.go(t);
|
|
4683
|
+
}
|
|
4684
|
+
refreshed() {}
|
|
4685
|
+
go(e) {
|
|
4686
|
+
e !== this.page && e >= 1 && e <= this.pagination.totalPages && (this.page = e, this.refresh(), this.element.dispatchEvent(new CustomEvent(ga.Change, {
|
|
4687
|
+
bubbles: !0,
|
|
4688
|
+
detail: { page: e }
|
|
4689
|
+
})));
|
|
4690
|
+
}
|
|
4691
|
+
refresh() {
|
|
4692
|
+
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
|
+
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
|
+
}
|
|
4695
|
+
}, ya = class {
|
|
4696
|
+
logger;
|
|
4697
|
+
element;
|
|
4698
|
+
ea;
|
|
4699
|
+
p;
|
|
4700
|
+
transitionService;
|
|
4701
|
+
toasts = [];
|
|
4702
|
+
entries = /* @__PURE__ */ new Map();
|
|
4703
|
+
disposable;
|
|
4704
|
+
constructor(e = m(o).scopeTo("toaster"), t = m(s), n = m(a), r = m(c), i = m(b)) {
|
|
4705
|
+
this.logger = e, this.element = t, this.ea = n, this.p = r, this.transitionService = i;
|
|
4706
|
+
}
|
|
4707
|
+
attached() {
|
|
4708
|
+
this.disposable = this.ea.subscribe(E.Toaster, this.onToasterEvent);
|
|
4709
|
+
}
|
|
4710
|
+
detaching() {
|
|
4711
|
+
this.disposable?.dispose(), this.entries.forEach((e) => {
|
|
4712
|
+
e.closeTimeout !== void 0 && this.p.clearTimeout(e.closeTimeout);
|
|
4713
|
+
});
|
|
4714
|
+
}
|
|
4715
|
+
onClickClose(e, t) {
|
|
4716
|
+
e.preventDefault(), this.close(t);
|
|
4717
|
+
}
|
|
4515
4718
|
close(e) {
|
|
4516
4719
|
let t = this.entries.get(e);
|
|
4517
4720
|
if (t !== void 0 && t.closing === !1) {
|
|
4518
4721
|
let n = this.findToastElement(e);
|
|
4519
4722
|
t.closing = !0, t.closeTimeout !== void 0 && this.p.clearTimeout(t.closeTimeout), n === null ? this.remove(e) : this.transitionService.run(n, (e) => {
|
|
4520
|
-
|
|
4723
|
+
w(e, "toaster", "hide");
|
|
4521
4724
|
}, () => {
|
|
4522
4725
|
this.remove(e);
|
|
4523
4726
|
});
|
|
4524
4727
|
}
|
|
4525
4728
|
}
|
|
4729
|
+
onToasterEvent = (e) => {
|
|
4730
|
+
if (e.action === F.Add && e.toast) {
|
|
4731
|
+
let t = rr(e.toast);
|
|
4732
|
+
this.entries.has(t.id) === !1 && this.add(t);
|
|
4733
|
+
} else e.action === F.Remove && e.toast?.id && this.close(e.toast.id);
|
|
4734
|
+
};
|
|
4735
|
+
add(e) {
|
|
4736
|
+
let t = { closing: !1 };
|
|
4737
|
+
this.entries.set(e.id, t), this.toasts = [...this.toasts, e], ir(this.element), this.p.requestAnimationFrame(() => {
|
|
4738
|
+
let n = this.findToastElement(e.id);
|
|
4739
|
+
n === null ? this.logger.warn(`No rendered toast carries data-toaster-id="${e.id}"`) : this.transitionService.run(n, (n) => {
|
|
4740
|
+
e.duration > 0 && (t.closeTimeout = this.p.setTimeout(() => {
|
|
4741
|
+
this.close(e.id);
|
|
4742
|
+
}, e.duration)), w(n, "toaster", "show");
|
|
4743
|
+
});
|
|
4744
|
+
});
|
|
4745
|
+
}
|
|
4526
4746
|
remove(e) {
|
|
4527
|
-
this.entries.delete(e), this.toasts = this.toasts.filter((t) => t.id !== e), this.entries.size === 0 &&
|
|
4747
|
+
this.entries.delete(e), this.toasts = this.toasts.filter((t) => t.id !== e), this.entries.size === 0 && ar(this.element);
|
|
4528
4748
|
}
|
|
4529
4749
|
findToastElement(e) {
|
|
4530
4750
|
return this.element.querySelector(`[data-toaster-id="${e}"]`);
|
|
4531
4751
|
}
|
|
4752
|
+
};
|
|
4753
|
+
//#endregion
|
|
4754
|
+
//#region src/components/bleet-dialog.ts
|
|
4755
|
+
function ba(e, t) {
|
|
4756
|
+
if (typeof e != "object" || !e) return e;
|
|
4757
|
+
var n = e[Symbol.toPrimitive];
|
|
4758
|
+
if (n !== void 0) {
|
|
4759
|
+
var r = n.call(e, t || "default");
|
|
4760
|
+
if (typeof r != "object") return r;
|
|
4761
|
+
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
4762
|
+
}
|
|
4763
|
+
return (t === "string" ? String : Number)(e);
|
|
4764
|
+
}
|
|
4765
|
+
function xa(e) {
|
|
4766
|
+
var t = ba(e, "string");
|
|
4767
|
+
return typeof t == "symbol" ? t : String(t);
|
|
4768
|
+
}
|
|
4769
|
+
function Sa(e) {
|
|
4770
|
+
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
4771
|
+
return e;
|
|
4772
|
+
}
|
|
4773
|
+
function Ca(e, t, n) {
|
|
4774
|
+
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
4775
|
+
try {
|
|
4776
|
+
Object.defineProperty(e, "name", {
|
|
4777
|
+
configurable: !0,
|
|
4778
|
+
value: n ? n + " " + t : t
|
|
4779
|
+
});
|
|
4780
|
+
} catch {}
|
|
4781
|
+
return e;
|
|
4782
|
+
}
|
|
4783
|
+
function wa(e, t, n, r, i, a) {
|
|
4784
|
+
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
|
+
function p(t, n, r) {
|
|
4786
|
+
return function(i, a) {
|
|
4787
|
+
n && (a = i, i = e);
|
|
4788
|
+
for (var o = 0; o < t.length; o++) a = t[o].apply(i, r ? [a] : []);
|
|
4789
|
+
return r ? a : i;
|
|
4790
|
+
};
|
|
4791
|
+
}
|
|
4792
|
+
function m(e, t, n, r) {
|
|
4793
|
+
if (typeof e != "function" && (r || e !== void 0)) throw TypeError(t + " must " + (n || "be") + " a function" + (r ? "" : " or undefined"));
|
|
4794
|
+
return e;
|
|
4795
|
+
}
|
|
4796
|
+
function h(e, t, n, r, i, a, o, c, d, h, g) {
|
|
4797
|
+
function _(e) {
|
|
4798
|
+
if (!g(e)) throw TypeError("Attempted to access private element on non-instance");
|
|
4799
|
+
}
|
|
4800
|
+
var v = [].concat(t[0]), y = t[3], b = !o, x = i === 1, S = i === 3, C = i === 4, w = i === 2;
|
|
4801
|
+
function T(t, n, r) {
|
|
4802
|
+
return function(i, a) {
|
|
4803
|
+
return n && (a = i, i = e), r && r(i), desc[t].call(i, a);
|
|
4804
|
+
};
|
|
4805
|
+
}
|
|
4806
|
+
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
4807
|
+
if (!b && (d ? (h || x ? E = {
|
|
4808
|
+
get: Ca(function() {
|
|
4809
|
+
return y(this);
|
|
4810
|
+
}, r, "get"),
|
|
4811
|
+
set: function(e) {
|
|
4812
|
+
t[4](this, e);
|
|
4813
|
+
}
|
|
4814
|
+
} : E[O] = y, h || Ca(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
4815
|
+
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
|
+
u[+c][r] = i < 3 ? 1 : i;
|
|
4817
|
+
}
|
|
4818
|
+
for (var k = e, A = v.length - 1; A >= 0; A -= n ? 2 : 1) {
|
|
4819
|
+
var j = m(v[A], "A decorator", "be", !0), M = n ? v[A - 1] : void 0, N = {}, P = {
|
|
4820
|
+
kind: [
|
|
4821
|
+
"field",
|
|
4822
|
+
"accessor",
|
|
4823
|
+
"method",
|
|
4824
|
+
"getter",
|
|
4825
|
+
"setter",
|
|
4826
|
+
"class"
|
|
4827
|
+
][i],
|
|
4828
|
+
name: r,
|
|
4829
|
+
metadata: l,
|
|
4830
|
+
addInitializer: (function(e, t) {
|
|
4831
|
+
if (e.v) throw TypeError("attempted to call addInitializer after decoration was finished");
|
|
4832
|
+
m(t, "An initializer", "be", !0), a.push(t);
|
|
4833
|
+
}).bind(null, N)
|
|
4834
|
+
};
|
|
4835
|
+
if (b) f = j.call(M, k, P), N.v = 1, m(f, "class decorators", "return") && (k = f);
|
|
4836
|
+
else if (P.static = c, P.private = d, f = P.access = { has: d ? g.bind() : function(e) {
|
|
4837
|
+
return r in e;
|
|
4838
|
+
} }, C || (f.get = d ? w ? function(e) {
|
|
4839
|
+
return _(e), E.value;
|
|
4840
|
+
} : T("get", 0, _) : function(e) {
|
|
4841
|
+
return e[r];
|
|
4842
|
+
}), !w && !S && (f.set = d ? T("set", 0, _) : function(e, t) {
|
|
4843
|
+
e[r] = t;
|
|
4844
|
+
}), k = j.call(M, x ? {
|
|
4845
|
+
get: E.get,
|
|
4846
|
+
set: E.set
|
|
4847
|
+
} : E[O], P), N.v = 1, x) {
|
|
4848
|
+
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);
|
|
4849
|
+
else if (k !== void 0) throw TypeError("accessor decorators must return an object with get, set, or init properties or undefined");
|
|
4850
|
+
} else m(k, (h ? "field" : "method") + " decorators", "return") && (h ? D.unshift(k) : E[O] = k);
|
|
4851
|
+
}
|
|
4852
|
+
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;
|
|
4853
|
+
}
|
|
4854
|
+
function g() {
|
|
4855
|
+
var t = [], r, a, o = function(e) {
|
|
4856
|
+
e && t.push(p(e));
|
|
4857
|
+
}, s = function(o, s) {
|
|
4858
|
+
for (var c = 0; c < n.length; c++) {
|
|
4859
|
+
var l = n[c], u = l[1], d = u & 7;
|
|
4860
|
+
if ((u & 8) == o && !d == s) {
|
|
4861
|
+
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;
|
|
4864
|
+
} : i);
|
|
4865
|
+
}
|
|
4866
|
+
}
|
|
4867
|
+
};
|
|
4868
|
+
return s(8, 0), s(0, 0), s(8, 1), s(0, 1), o(r), o(a), t;
|
|
4869
|
+
}
|
|
4870
|
+
function _(e) {
|
|
4871
|
+
return s(e, o, {
|
|
4872
|
+
configurable: !0,
|
|
4873
|
+
enumerable: !0,
|
|
4874
|
+
value: l
|
|
4875
|
+
});
|
|
4876
|
+
}
|
|
4877
|
+
return a !== void 0 && (l = a[o]), l = c(l ?? null), f = g(), d || _(e), {
|
|
4878
|
+
e: f,
|
|
4879
|
+
get c() {
|
|
4880
|
+
var n = [];
|
|
4881
|
+
return d && [_(e = h(e, [t], r, e.name, 5, n)), p(n, 1)];
|
|
4882
|
+
}
|
|
4883
|
+
};
|
|
4884
|
+
}
|
|
4885
|
+
var Ta = d({
|
|
4886
|
+
...Si,
|
|
4887
|
+
name: "bleet-dialog"
|
|
4888
|
+
}), Ea, Da = Ii, Oa = l({ attribute: "data-dialog-class" }), ka, Aa, ja, Ma, Na, Pa, Fa;
|
|
4889
|
+
(class extends Da {
|
|
4890
|
+
logger;
|
|
4891
|
+
apiService;
|
|
4532
4892
|
static {
|
|
4533
|
-
|
|
4893
|
+
({e: [ka, Aa, ja, Ma, Na, Pa], c: [Fa, Ea]} = wa(this, [Ta], [
|
|
4894
|
+
[
|
|
4895
|
+
Oa,
|
|
4896
|
+
0,
|
|
4897
|
+
"dialogClass"
|
|
4898
|
+
],
|
|
4899
|
+
[
|
|
4900
|
+
l,
|
|
4901
|
+
0,
|
|
4902
|
+
"loadError"
|
|
4903
|
+
],
|
|
4904
|
+
[
|
|
4905
|
+
l,
|
|
4906
|
+
0,
|
|
4907
|
+
"submitError"
|
|
4908
|
+
]
|
|
4909
|
+
], 0, void 0, Da));
|
|
4910
|
+
}
|
|
4911
|
+
constructor(e = m(o).scopeTo("<bleet-dialog>"), t = m(n)) {
|
|
4912
|
+
super(), this.logger = e, this.apiService = t;
|
|
4913
|
+
}
|
|
4914
|
+
dialogClass = ka(this, "");
|
|
4915
|
+
loadError = (Aa(this), ja(this, ""));
|
|
4916
|
+
submitError = (Ma(this), Na(this, ""));
|
|
4917
|
+
loading = (Pa(this), !1);
|
|
4918
|
+
contentView = null;
|
|
4919
|
+
attached() {
|
|
4920
|
+
super.attached(), this.dialogElement.addEventListener("submit", this.onFormSubmit);
|
|
4921
|
+
}
|
|
4922
|
+
detaching() {
|
|
4923
|
+
this.dialogElement.removeEventListener("submit", this.onFormSubmit), super.detaching();
|
|
4924
|
+
}
|
|
4925
|
+
show(e) {
|
|
4926
|
+
e.url ? this.loadFromUrl(e.url) : this.contentView = e.content ?? null, super.show(e);
|
|
4927
|
+
}
|
|
4928
|
+
clear() {
|
|
4929
|
+
this.contentView = null, this.loading = !1;
|
|
4930
|
+
}
|
|
4931
|
+
onFormSubmit = (e) => {
|
|
4932
|
+
let t = e.target.closest("form");
|
|
4933
|
+
if (t && this.contentView !== null && t.getAttribute("data-dialog") !== "native") {
|
|
4934
|
+
e.preventDefault();
|
|
4935
|
+
let n = new FormData(t);
|
|
4936
|
+
e.submitter instanceof HTMLButtonElement && e.submitter.name && n.append(e.submitter.name, e.submitter.value || "");
|
|
4937
|
+
let r = n.get("_method") || t.getAttribute("method") || "POST";
|
|
4938
|
+
this.apiService.url(t.action).fromMultipart(n).request(r).then((e) => {
|
|
4939
|
+
this.applyResponse(e.body);
|
|
4940
|
+
}).catch((e) => {
|
|
4941
|
+
this.logger.error("form submit failed", e), this.publishError(this.submitError);
|
|
4942
|
+
});
|
|
4943
|
+
}
|
|
4944
|
+
};
|
|
4945
|
+
loadFromUrl(e) {
|
|
4946
|
+
this.loading = !0, this.apiService.url(e).get().then((e) => {
|
|
4947
|
+
this.applyResponse(e.body);
|
|
4948
|
+
}).catch((e) => {
|
|
4949
|
+
this.logger.error("loadFromUrl failed", e), this.close(), this.publishError(this.loadError);
|
|
4950
|
+
}).finally(() => {
|
|
4951
|
+
this.loading = !1;
|
|
4952
|
+
});
|
|
4953
|
+
}
|
|
4954
|
+
applyResponse(e) {
|
|
4955
|
+
e.content && (this.contentView = e.content), this.executeActions(e);
|
|
4956
|
+
}
|
|
4957
|
+
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,
|
|
4961
|
+
toast: e.toast
|
|
4962
|
+
}), 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
|
+
}
|
|
4964
|
+
publishError(e) {
|
|
4965
|
+
e !== "" && this.ea.publish(E.Toaster, {
|
|
4966
|
+
action: F.Add,
|
|
4967
|
+
toast: {
|
|
4968
|
+
level: B.Danger,
|
|
4969
|
+
content: e
|
|
4970
|
+
}
|
|
4971
|
+
});
|
|
4972
|
+
}
|
|
4973
|
+
static {
|
|
4974
|
+
Ea();
|
|
4534
4975
|
}
|
|
4535
4976
|
});
|
|
4536
4977
|
//#endregion
|
|
4537
4978
|
//#region src/index.ts
|
|
4538
|
-
var
|
|
4539
|
-
X,
|
|
4540
|
-
H,
|
|
4541
|
-
G,
|
|
4542
|
-
U,
|
|
4979
|
+
var Ia = [
|
|
4543
4980
|
Z,
|
|
4544
|
-
|
|
4545
|
-
J,
|
|
4981
|
+
U,
|
|
4546
4982
|
K,
|
|
4547
4983
|
W,
|
|
4548
|
-
|
|
4549
|
-
Y,
|
|
4984
|
+
Q,
|
|
4550
4985
|
$,
|
|
4551
|
-
|
|
4552
|
-
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4986
|
+
Y,
|
|
4987
|
+
q,
|
|
4988
|
+
G,
|
|
4989
|
+
J,
|
|
4990
|
+
X,
|
|
4991
|
+
Nn,
|
|
4992
|
+
Un,
|
|
4993
|
+
nr,
|
|
4994
|
+
pr,
|
|
4995
|
+
Rr,
|
|
4996
|
+
Kr,
|
|
4997
|
+
ei,
|
|
4998
|
+
xi,
|
|
4999
|
+
Fa
|
|
4560
5000
|
];
|
|
4561
|
-
function
|
|
5001
|
+
function La(e) {
|
|
4562
5002
|
return {
|
|
4563
5003
|
register(n) {
|
|
4564
|
-
return (e ? t.customize(e) : t).register(n), n.register(...
|
|
5004
|
+
return (e ? t.customize(e) : t).register(n), n.register(...Ia);
|
|
4565
5005
|
},
|
|
4566
5006
|
customize(e) {
|
|
4567
|
-
return
|
|
5007
|
+
return La(e);
|
|
4568
5008
|
}
|
|
4569
5009
|
};
|
|
4570
5010
|
}
|
|
4571
|
-
var
|
|
5011
|
+
var Ra = La();
|
|
4572
5012
|
//#endregion
|
|
4573
|
-
export {
|
|
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 };
|
|
4574
5014
|
|
|
4575
5015
|
//# sourceMappingURL=index.es.js.map
|