@boobooking/dashboard-ui-components 0.24.0 → 0.25.0
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 +172 -21
- package/dist/index.js +881 -670
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -56,13 +56,16 @@ var ie = {
|
|
|
56
56
|
showText: "Показать текст",
|
|
57
57
|
fullText: "Полный текст",
|
|
58
58
|
tabs: "Закладки",
|
|
59
|
+
sections: "Разделы",
|
|
59
60
|
selected: "Выбрано",
|
|
60
61
|
search: "Поиск",
|
|
61
62
|
nothingFound: "Ничего не найдено",
|
|
62
63
|
amountFrom: "от",
|
|
63
64
|
amountTo: "до",
|
|
64
65
|
amountFraction: "Копейки",
|
|
65
|
-
currency: "Валюта"
|
|
66
|
+
currency: "Валюта",
|
|
67
|
+
characterCount: "Символов",
|
|
68
|
+
characterCountOf: "из"
|
|
66
69
|
},
|
|
67
70
|
en: {
|
|
68
71
|
cancel: "Cancel",
|
|
@@ -114,13 +117,16 @@ var ie = {
|
|
|
114
117
|
showText: "Show text",
|
|
115
118
|
fullText: "Full text",
|
|
116
119
|
tabs: "Tabs",
|
|
120
|
+
sections: "Sections",
|
|
117
121
|
selected: "Selected",
|
|
118
122
|
search: "Search",
|
|
119
123
|
nothingFound: "Nothing found",
|
|
120
124
|
amountFrom: "from",
|
|
121
125
|
amountTo: "to",
|
|
122
126
|
amountFraction: "Fractional part",
|
|
123
|
-
currency: "Currency"
|
|
127
|
+
currency: "Currency",
|
|
128
|
+
characterCount: "Characters",
|
|
129
|
+
characterCountOf: "of"
|
|
124
130
|
}
|
|
125
131
|
};
|
|
126
132
|
//#endregion
|
|
@@ -187,7 +193,7 @@ function fe(e, t, n) {
|
|
|
187
193
|
};
|
|
188
194
|
return e.nextId += 1, e.windows.push(s), s;
|
|
189
195
|
}
|
|
190
|
-
function
|
|
196
|
+
function pe(e, t, n, r) {
|
|
191
197
|
let i = fe(e, n, r);
|
|
192
198
|
return i.fallbackAddress = r, e.transition.assigned.set(n, i), e.cards.delete(t), e.cards.set(t, {
|
|
193
199
|
key: n,
|
|
@@ -195,10 +201,10 @@ function k(e, t, n, r) {
|
|
|
195
201
|
processed: e.transition.number
|
|
196
202
|
}), i;
|
|
197
203
|
}
|
|
198
|
-
function
|
|
204
|
+
function me(e, t, n, r) {
|
|
199
205
|
let i = e.cards.get(t);
|
|
200
206
|
return i === void 0 ? {
|
|
201
|
-
window:
|
|
207
|
+
window: pe(e, t, n, r),
|
|
202
208
|
rejected: !1,
|
|
203
209
|
key: n
|
|
204
210
|
} : i.key === n ? (i.processed = e.transition.number, {
|
|
@@ -210,29 +216,29 @@ function pe(e, t, n, r) {
|
|
|
210
216
|
rejected: !0,
|
|
211
217
|
key: i.key
|
|
212
218
|
} : (e.cards.delete(t), {
|
|
213
|
-
window:
|
|
219
|
+
window: pe(e, t, n, r),
|
|
214
220
|
rejected: !1,
|
|
215
221
|
key: n
|
|
216
222
|
});
|
|
217
223
|
}
|
|
218
|
-
function
|
|
224
|
+
function he(e, t) {
|
|
219
225
|
e.cards.delete(t);
|
|
220
226
|
}
|
|
221
|
-
function
|
|
227
|
+
function ge(e, t, n) {
|
|
222
228
|
let r = e.cards.get(t);
|
|
223
229
|
r !== void 0 && (r.window.fallbackAddress = n);
|
|
224
230
|
}
|
|
225
231
|
//#endregion
|
|
226
232
|
//#region src/plugin.js
|
|
227
|
-
var
|
|
233
|
+
var _e = Symbol("dashboardUi"), ve = Object.freeze({
|
|
228
234
|
lang: "ru",
|
|
229
235
|
navigate: null,
|
|
230
236
|
windows: null
|
|
231
|
-
}),
|
|
232
|
-
from:
|
|
233
|
-
default: () =>
|
|
237
|
+
}), ye = { uiSettings: {
|
|
238
|
+
from: _e,
|
|
239
|
+
default: () => ve
|
|
234
240
|
} };
|
|
235
|
-
function
|
|
241
|
+
function be(e, t) {
|
|
236
242
|
let n = se(), r = v({
|
|
237
243
|
number: 0,
|
|
238
244
|
address: null
|
|
@@ -250,21 +256,21 @@ function ye(e, t) {
|
|
|
250
256
|
page: r
|
|
251
257
|
};
|
|
252
258
|
}
|
|
253
|
-
var
|
|
259
|
+
var xe = { install(e, t) {
|
|
254
260
|
let n = t ?? {}, r = Object.hasOwn(n, "lang") ? n.lang : "ru";
|
|
255
261
|
if (!D(r)) throw Error(`dashboardUi: неизвестный lang «${r}», допустимы: ${re.join(", ")}`);
|
|
256
262
|
let i = Object.hasOwn(n, "navigate"), a = i ? n.navigate : null;
|
|
257
263
|
if (i && typeof a != "function") throw Error("dashboardUi: navigate должен быть функцией (href) => …");
|
|
258
264
|
let o = Object.hasOwn(n, "currentUrl"), s = o ? n.currentUrl : null;
|
|
259
265
|
if (o && typeof s != "function") throw Error("dashboardUi: currentUrl должен быть функцией () => адрес страницы");
|
|
260
|
-
let c = s !== null && typeof window < "u" ?
|
|
261
|
-
e.provide(
|
|
266
|
+
let c = s !== null && typeof window < "u" ? be(e, s) : null;
|
|
267
|
+
e.provide(_e, Object.freeze({
|
|
262
268
|
lang: r,
|
|
263
269
|
navigate: a,
|
|
264
270
|
windows: c
|
|
265
271
|
}));
|
|
266
|
-
} },
|
|
267
|
-
function
|
|
272
|
+
} }, Se = 4e4;
|
|
273
|
+
function Ce(e) {
|
|
268
274
|
if (typeof e != "string") return null;
|
|
269
275
|
let t = /filename\*\s*=\s*UTF-8''([^;]+)/i.exec(e);
|
|
270
276
|
if (t !== null) try {
|
|
@@ -275,7 +281,7 @@ function Se(e) {
|
|
|
275
281
|
let r = /filename\s*=\s*([^;"\s]+)/i.exec(e);
|
|
276
282
|
return r === null ? null : r[1];
|
|
277
283
|
}
|
|
278
|
-
function
|
|
284
|
+
function we(e) {
|
|
279
285
|
try {
|
|
280
286
|
let t = new URL(e, window.location.href).pathname.split("/").filter((e) => e !== "");
|
|
281
287
|
return t.length === 0 ? null : decodeURIComponent(t[t.length - 1]);
|
|
@@ -283,7 +289,7 @@ function Ce(e) {
|
|
|
283
289
|
return null;
|
|
284
290
|
}
|
|
285
291
|
}
|
|
286
|
-
async function
|
|
292
|
+
async function Te(e) {
|
|
287
293
|
let t = await fetch(e, { credentials: "same-origin" });
|
|
288
294
|
if (t.redirected) throw Object.assign(/* @__PURE__ */ Error(`downloadFile: сервер перенаправил запрос ${e}`), {
|
|
289
295
|
redirectUrl: t.url,
|
|
@@ -293,12 +299,12 @@ async function we(e) {
|
|
|
293
299
|
redirectUrl: null,
|
|
294
300
|
status: t.status
|
|
295
301
|
});
|
|
296
|
-
let n =
|
|
297
|
-
i.href = r, i.download = n, i.style.display = "none", document.body.appendChild(i), i.click(), i.remove(), setTimeout(() => URL.revokeObjectURL(r),
|
|
302
|
+
let n = Ce(t.headers.get("Content-Disposition")) ?? we(e) ?? "download", r = URL.createObjectURL(await t.blob()), i = document.createElement("a");
|
|
303
|
+
i.href = r, i.download = n, i.style.display = "none", document.body.appendChild(i), i.click(), i.remove(), setTimeout(() => URL.revokeObjectURL(r), Se);
|
|
298
304
|
}
|
|
299
305
|
//#endregion
|
|
300
306
|
//#region src/colors.js
|
|
301
|
-
var
|
|
307
|
+
var Ee = {
|
|
302
308
|
"gray-solid": {
|
|
303
309
|
pill: "bb:bg-gray-500 bb:text-white",
|
|
304
310
|
pillHover: "bb:hover:bg-gray-600",
|
|
@@ -395,19 +401,19 @@ var Te = {
|
|
|
395
401
|
menuItem: "bb:bg-purple-100 bb:text-purple-800 bb:hover:bg-purple-200 bb:focus:bg-purple-200",
|
|
396
402
|
mark: "bb:text-purple-500"
|
|
397
403
|
}
|
|
398
|
-
},
|
|
399
|
-
function
|
|
400
|
-
return
|
|
404
|
+
}, De = Object.keys(Ee);
|
|
405
|
+
function k(e) {
|
|
406
|
+
return De.includes(e);
|
|
401
407
|
}
|
|
402
|
-
function
|
|
403
|
-
return
|
|
408
|
+
function Oe(e, t) {
|
|
409
|
+
return k(e) ? Ee[e][t] ?? "" : "";
|
|
404
410
|
}
|
|
405
|
-
var
|
|
411
|
+
var A = { methods: { colorClass: Oe } }, j = (e, t) => {
|
|
406
412
|
let n = e.__vccOpts || e;
|
|
407
413
|
for (let [e, r] of t) n[e] = r;
|
|
408
414
|
return n;
|
|
409
|
-
},
|
|
410
|
-
mixins: [
|
|
415
|
+
}, ke = {
|
|
416
|
+
mixins: [A],
|
|
411
417
|
props: {
|
|
412
418
|
withPulse: {
|
|
413
419
|
type: Boolean,
|
|
@@ -416,11 +422,11 @@ var j = { methods: { colorClass: De } }, M = (e, t) => {
|
|
|
416
422
|
color: {
|
|
417
423
|
type: String,
|
|
418
424
|
required: !0,
|
|
419
|
-
validator:
|
|
425
|
+
validator: k
|
|
420
426
|
}
|
|
421
427
|
}
|
|
422
428
|
};
|
|
423
|
-
function
|
|
429
|
+
function Ae(e, t, n, r, o, s) {
|
|
424
430
|
return p(), i("div", { class: d(["bb-dashboard-ui bb:flex bb:h-full bb:items-center bb:leading-none bb:text-4xl", [e.colorClass(n.color, "mark"), { "bb:animate-pulse": n.withPulse }]]) }, [...t[0] ||= [a("svg", {
|
|
425
431
|
class: "bb:fill-current bb:w-2 bb:h-2",
|
|
426
432
|
viewBox: "0 0 120 120"
|
|
@@ -430,8 +436,8 @@ function ke(e, t, n, r, o, s) {
|
|
|
430
436
|
r: "45"
|
|
431
437
|
})], -1)]], 2);
|
|
432
438
|
}
|
|
433
|
-
var
|
|
434
|
-
components: { Dot:
|
|
439
|
+
var M = /*#__PURE__*/ j(ke, [["render", Ae]]), je = {
|
|
440
|
+
components: { Dot: M },
|
|
435
441
|
props: {
|
|
436
442
|
text: {
|
|
437
443
|
type: String,
|
|
@@ -446,14 +452,14 @@ var N = /*#__PURE__*/ M(Oe, [["render", ke]]), Ae = {
|
|
|
446
452
|
default: !1
|
|
447
453
|
}
|
|
448
454
|
}
|
|
449
|
-
},
|
|
450
|
-
function
|
|
455
|
+
}, Me = { class: "bb:flex bb:h-6 bb:px-3 bb:bg-white bb:items-center bb:justify-between" }, Ne = ["textContent"];
|
|
456
|
+
function Pe(e, t, n, r, o, s) {
|
|
451
457
|
let l = g("dot");
|
|
452
|
-
return p(), i("div",
|
|
458
|
+
return p(), i("div", Me, [
|
|
453
459
|
a("div", {
|
|
454
460
|
class: "bb:flex bb:flex-1 bb:h-full bb:items-center bb:text-xs bb:text-gray-500 bb:whitespace-nowrap bb:truncate bb:leading-tight bb:select-none",
|
|
455
461
|
textContent: y(n.text)
|
|
456
|
-
}, null, 8,
|
|
462
|
+
}, null, 8, Ne),
|
|
457
463
|
w(c(l, {
|
|
458
464
|
color: "red-pale",
|
|
459
465
|
"with-pulse": !0,
|
|
@@ -465,8 +471,8 @@ function Ne(e, t, n, r, o, s) {
|
|
|
465
471
|
}, null, 512), [[S, n.isRequired]])
|
|
466
472
|
]);
|
|
467
473
|
}
|
|
468
|
-
var
|
|
469
|
-
inject:
|
|
474
|
+
var N = /*#__PURE__*/ j(je, [["render", Pe]]), P = {
|
|
475
|
+
inject: ye,
|
|
470
476
|
props: { lang: {
|
|
471
477
|
type: String,
|
|
472
478
|
default: null,
|
|
@@ -480,11 +486,11 @@ var P = /*#__PURE__*/ M(Ae, [["render", Ne]]), F = {
|
|
|
480
486
|
return ie[this.resolvedLang];
|
|
481
487
|
}
|
|
482
488
|
}
|
|
483
|
-
},
|
|
489
|
+
}, Fe = [
|
|
484
490
|
{ transform: "scale(1)" },
|
|
485
491
|
{ transform: "scale(0.8)" },
|
|
486
492
|
{ transform: "scale(1)" }
|
|
487
|
-
],
|
|
493
|
+
], Ie = 150, Le = {
|
|
488
494
|
created() {
|
|
489
495
|
this.isPressing = !1, this.isUnmounted = !1;
|
|
490
496
|
},
|
|
@@ -492,39 +498,39 @@ var P = /*#__PURE__*/ M(Ae, [["render", Ne]]), F = {
|
|
|
492
498
|
this.isUnmounted = !0;
|
|
493
499
|
},
|
|
494
500
|
methods: { press() {
|
|
495
|
-
this.isPressing || (this.isPressing = !0,
|
|
501
|
+
this.isPressing || (this.isPressing = !0, Re(this.$el).then(() => {
|
|
496
502
|
this.isPressing = !1, this.isUnmounted || this.$emit("clicked");
|
|
497
503
|
}));
|
|
498
504
|
} }
|
|
499
505
|
};
|
|
500
|
-
function
|
|
501
|
-
if (typeof e.animate != "function" ||
|
|
506
|
+
function Re(e) {
|
|
507
|
+
if (typeof e.animate != "function" || ze()) return Promise.resolve();
|
|
502
508
|
let t = () => {};
|
|
503
|
-
return e.animate(
|
|
504
|
-
duration:
|
|
509
|
+
return e.animate(Fe, {
|
|
510
|
+
duration: Ie,
|
|
505
511
|
easing: "ease-out"
|
|
506
512
|
}).finished.then(t, t);
|
|
507
513
|
}
|
|
508
|
-
function
|
|
514
|
+
function ze() {
|
|
509
515
|
return typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
510
516
|
}
|
|
511
517
|
//#endregion
|
|
512
518
|
//#region src/components/CrossButton.vue
|
|
513
|
-
var
|
|
514
|
-
mixins: [
|
|
519
|
+
var Be = {
|
|
520
|
+
mixins: [P, Le],
|
|
515
521
|
props: { size: {
|
|
516
522
|
type: String,
|
|
517
523
|
required: !0,
|
|
518
524
|
validator: (e) => ["small", "large"].includes(e)
|
|
519
525
|
} },
|
|
520
526
|
emits: ["clicked"]
|
|
521
|
-
},
|
|
522
|
-
function
|
|
527
|
+
}, Ve = { class: "bb:sr-only bb:pointer-events-none bb:cursor-default" }, He = { class: "bb:flex bb:rounded-md bb:group-focus-visible:focus-ring bb:pointer-events-none bb:cursor-default" };
|
|
528
|
+
function Ue(e, t, n, r, o, c) {
|
|
523
529
|
return p(), i("button", {
|
|
524
530
|
type: "button",
|
|
525
531
|
class: "bb-dashboard-ui bb:group bb:flex bb:items-center bb:justify-center bb:bg-transparent bb:cursor-pointer bb:text-gray-400 bb:focus:outline-hidden bb:hover:text-gray-500",
|
|
526
532
|
onClick: t[0] ||= E((...t) => e.press && e.press(...t), ["prevent"])
|
|
527
|
-
}, [a("span",
|
|
533
|
+
}, [a("span", Ve, [h(e.$slots, "default", {}, () => [s(y(e.texts.clear), 1)])]), a("span", He, [(p(), i("svg", {
|
|
528
534
|
class: d(["bb:stroke-current bb:pointer-events-none bb:cursor-default", {
|
|
529
535
|
"bb:w-6 bb:h-6": n.size === "small",
|
|
530
536
|
"bb:w-8 bb:h-8": n.size === "large"
|
|
@@ -539,24 +545,24 @@ function He(e, t, n, r, o, c) {
|
|
|
539
545
|
d: "M6 18L18 6M6 6l12 12"
|
|
540
546
|
}, null, -1)]], 2))])]);
|
|
541
547
|
}
|
|
542
|
-
var
|
|
543
|
-
function
|
|
548
|
+
var F = /*#__PURE__*/ j(Be, [["render", Ue]]), We = 10;
|
|
549
|
+
function Ge(e) {
|
|
544
550
|
let t = e.replace(/\D/g, "");
|
|
545
|
-
return (t.startsWith("7") || t.startsWith("8")) && t[1] === "9" && (t = t.slice(1)), t.slice(0,
|
|
551
|
+
return (t.startsWith("7") || t.startsWith("8")) && t[1] === "9" && (t = t.slice(1)), t.slice(0, We);
|
|
546
552
|
}
|
|
547
|
-
function
|
|
553
|
+
function Ke(e) {
|
|
548
554
|
return e === "" ? "" : `7${e}`;
|
|
549
555
|
}
|
|
550
|
-
function
|
|
556
|
+
function qe(e) {
|
|
551
557
|
let t = e ?? "", n = t.startsWith("+") ? t.slice(1) : t;
|
|
552
558
|
return n.startsWith("7") ? n.slice(1) : n;
|
|
553
559
|
}
|
|
554
560
|
//#endregion
|
|
555
561
|
//#region src/components/RussianMobileFilter.vue
|
|
556
|
-
var
|
|
562
|
+
var Je = 400, Ye = 3, Xe = {
|
|
557
563
|
components: {
|
|
558
|
-
ElementHeader:
|
|
559
|
-
CrossButton:
|
|
564
|
+
ElementHeader: N,
|
|
565
|
+
CrossButton: F
|
|
560
566
|
},
|
|
561
567
|
emits: ["update:modelValue", "changed"],
|
|
562
568
|
props: {
|
|
@@ -578,10 +584,10 @@ var Ke = 400, qe = 3, Je = {
|
|
|
578
584
|
}
|
|
579
585
|
},
|
|
580
586
|
data() {
|
|
581
|
-
return { digits:
|
|
587
|
+
return { digits: qe(this.modelValue) };
|
|
582
588
|
},
|
|
583
589
|
created() {
|
|
584
|
-
this.mask = null, this.debounceTimer = null, this.isWritingProgrammatically = !1, this.lastCommitted =
|
|
590
|
+
this.mask = null, this.debounceTimer = null, this.isWritingProgrammatically = !1, this.lastCommitted = qe(this.modelValue), this.isUnmounted = !1;
|
|
585
591
|
},
|
|
586
592
|
mounted() {
|
|
587
593
|
this.mask = ne(this.$refs.input, {
|
|
@@ -589,21 +595,21 @@ var Ke = 400, qe = 3, Je = {
|
|
|
589
595
|
lazy: !0,
|
|
590
596
|
prepare: (e, t) => t.unmaskedValue === "" && (e === "7" || e === "8") ? "" : e
|
|
591
597
|
}), this.mask.on("accept", () => {
|
|
592
|
-
this.isWritingProgrammatically || (this.digits = this.mask.unmaskedValue, this.$emit("update:modelValue",
|
|
598
|
+
this.isWritingProgrammatically || (this.digits = this.mask.unmaskedValue, this.$emit("update:modelValue", Ke(this.digits)), this.scheduleCommit());
|
|
593
599
|
}), this.syncFromModelValue(this.modelValue);
|
|
594
600
|
},
|
|
595
601
|
beforeUnmount() {
|
|
596
602
|
this.isUnmounted = !0, clearTimeout(this.debounceTimer), this.mask?.destroy();
|
|
597
603
|
},
|
|
598
604
|
watch: { modelValue(e) {
|
|
599
|
-
e !==
|
|
605
|
+
e !== Ke(this.digits) && this.syncFromModelValue(e);
|
|
600
606
|
} },
|
|
601
607
|
methods: {
|
|
602
608
|
syncFromModelValue(e) {
|
|
603
|
-
this.writeToMask(
|
|
609
|
+
this.writeToMask(qe(e)), this.digits = this.mask.unmaskedValue, this.lastCommitted = this.digits;
|
|
604
610
|
},
|
|
605
611
|
applyUserDigits(e) {
|
|
606
|
-
this.writeToMask(e), this.digits = this.mask.unmaskedValue, this.$emit("update:modelValue",
|
|
612
|
+
this.writeToMask(e), this.digits = this.mask.unmaskedValue, this.$emit("update:modelValue", Ke(this.digits));
|
|
607
613
|
},
|
|
608
614
|
writeToMask(e) {
|
|
609
615
|
if (this.isWritingProgrammatically = !0, e === "") this.mask.value = "";
|
|
@@ -626,7 +632,7 @@ var Ke = 400, qe = 3, Je = {
|
|
|
626
632
|
this.isUnmounted || (this.setLazy(!0), this.digits === "" && this.writeToMask(""), this.commit());
|
|
627
633
|
},
|
|
628
634
|
onPaste(e) {
|
|
629
|
-
this.applyUserDigits(
|
|
635
|
+
this.applyUserDigits(Ge(e.clipboardData?.getData("text") ?? "")), this.scheduleCommit();
|
|
630
636
|
},
|
|
631
637
|
moveFocusFromEraser() {
|
|
632
638
|
let e = this.$refs.eraser.$el;
|
|
@@ -640,16 +646,16 @@ var Ke = 400, qe = 3, Je = {
|
|
|
640
646
|
this.commit();
|
|
641
647
|
return;
|
|
642
648
|
}
|
|
643
|
-
this.digits.length <
|
|
649
|
+
this.digits.length < Ye || (this.debounceTimer = setTimeout(() => this.commit(), Je));
|
|
644
650
|
},
|
|
645
651
|
commit() {
|
|
646
652
|
clearTimeout(this.debounceTimer), this.digits !== this.lastCommitted && (this.lastCommitted = this.digits, this.$emit("changed"));
|
|
647
653
|
}
|
|
648
654
|
}
|
|
649
|
-
},
|
|
650
|
-
function
|
|
655
|
+
}, Ze = { class: "bb-dashboard-ui bb:flex bb:flex-none" }, Qe = { class: "bb:flex bb:w-full bb:flex-col bb:border bb:border-white bb:bg-white" }, $e = { class: "bb:relative bb:flex bb:h-full bb:w-full" }, et = { class: "bb:flex bb:w-full bb:h-full bb:items-center bb:justify-center" };
|
|
656
|
+
function tt(e, t, n, r, o, s) {
|
|
651
657
|
let l = g("element-header"), u = g("cross-button");
|
|
652
|
-
return p(), i("div",
|
|
658
|
+
return p(), i("div", Ze, [a("div", Qe, [c(l, {
|
|
653
659
|
text: n.header,
|
|
654
660
|
"is-required": n.isRequired,
|
|
655
661
|
"is-loading": n.isLoading
|
|
@@ -657,7 +663,7 @@ function $e(e, t, n, r, o, s) {
|
|
|
657
663
|
"text",
|
|
658
664
|
"is-required",
|
|
659
665
|
"is-loading"
|
|
660
|
-
]), a("div",
|
|
666
|
+
]), a("div", $e, [a("label", et, [a("input", {
|
|
661
667
|
ref: "input",
|
|
662
668
|
type: "tel",
|
|
663
669
|
inputmode: "tel",
|
|
@@ -675,10 +681,10 @@ function $e(e, t, n, r, o, s) {
|
|
|
675
681
|
class: "bb:absolute bb:right-0 bb:top-0 bb:pr-2 bb:h-full"
|
|
676
682
|
}, null, 8, ["onClicked"]), [[S, o.digits.length > 0]])])])]);
|
|
677
683
|
}
|
|
678
|
-
var
|
|
684
|
+
var nt = /*#__PURE__*/ j(Xe, [["render", tt]]), rt = {
|
|
679
685
|
components: {
|
|
680
|
-
ElementHeader:
|
|
681
|
-
CrossButton:
|
|
686
|
+
ElementHeader: N,
|
|
687
|
+
CrossButton: F
|
|
682
688
|
},
|
|
683
689
|
emits: ["update:modelValue", "changed"],
|
|
684
690
|
props: {
|
|
@@ -720,10 +726,10 @@ var et = /*#__PURE__*/ M(Je, [["render", $e]]), tt = {
|
|
|
720
726
|
this.$emit("update:modelValue", this.search), this.$emit("changed");
|
|
721
727
|
}
|
|
722
728
|
}
|
|
723
|
-
},
|
|
724
|
-
function
|
|
729
|
+
}, it = { class: "bb-dashboard-ui bb:flex bb:flex-none" }, at = { class: "bb:flex bb:w-full bb:flex-col bb:border bb:border-white bb:bg-white" }, ot = { class: "bb:relative bb:flex bb:h-full bb:w-full" }, st = { class: "bb:flex bb:w-full bb:h-full bb:items-center bb:justify-center" };
|
|
730
|
+
function ct(e, t, n, r, o, s) {
|
|
725
731
|
let l = g("element-header"), u = g("cross-button");
|
|
726
|
-
return p(), i("div",
|
|
732
|
+
return p(), i("div", it, [a("div", at, [c(l, {
|
|
727
733
|
text: n.header,
|
|
728
734
|
"is-required": n.isRequired,
|
|
729
735
|
"is-loading": n.isLoading
|
|
@@ -731,7 +737,7 @@ function ot(e, t, n, r, o, s) {
|
|
|
731
737
|
"text",
|
|
732
738
|
"is-required",
|
|
733
739
|
"is-loading"
|
|
734
|
-
]), a("div",
|
|
740
|
+
]), a("div", ot, [a("label", st, [w(a("input", {
|
|
735
741
|
ref: "input",
|
|
736
742
|
class: "bb:flex bb:w-full bb:h-full bb:px-3 bb:py-2 bb:cursor-pointer bb:truncate bb:focus:focus-ring bb:border-none",
|
|
737
743
|
"onUpdate:modelValue": t[0] ||= (e) => o.search = e,
|
|
@@ -748,43 +754,43 @@ function ot(e, t, n, r, o, s) {
|
|
|
748
754
|
class: "bb:absolute bb:right-0 bb:top-0 bb:pr-2 bb:h-full"
|
|
749
755
|
}, null, 8, ["onClicked"]), [[S, s.inputNeedsEraser]])])])]);
|
|
750
756
|
}
|
|
751
|
-
var
|
|
752
|
-
function
|
|
757
|
+
var lt = /*#__PURE__*/ j(rt, [["render", ct]]), I = 4, L = 8;
|
|
758
|
+
function ut(e) {
|
|
753
759
|
return typeof e?.showPopover == "function";
|
|
754
760
|
}
|
|
755
|
-
function
|
|
756
|
-
return
|
|
761
|
+
function R(e) {
|
|
762
|
+
return ut(e) && e.matches(":popover-open");
|
|
757
763
|
}
|
|
758
|
-
function
|
|
759
|
-
let c = e.getBoundingClientRect(), l = document.documentElement.clientWidth, u = document.documentElement.clientHeight, d = Math.max(
|
|
764
|
+
function dt(e, t, { maxWidth: n = null, align: r = "end", fitsBelow: i = !0, fitsRight: a = !0, shift: o = !1, popoverWidth: s = 0 } = {}) {
|
|
765
|
+
let c = e.getBoundingClientRect(), l = document.documentElement.clientWidth, u = document.documentElement.clientHeight, d = Math.max(L, c.left), f = Math.max(L, l - c.right), p = Math.max(0, l - d - L), m = Math.max(0, l - f - L), h = r === "start" && (a || p >= m), g = Math.max(0, u - c.bottom - I - L), _ = Math.max(0, c.top - I - L), v = i || g >= _, y = "";
|
|
760
766
|
if (r === "start") {
|
|
761
767
|
let e = h ? p : m;
|
|
762
768
|
y = `${n === null ? e : Math.min(n, e)}px`;
|
|
763
769
|
} else o ? y = `${Math.max(0, l - 16)}px` : n !== null && (y = `${Math.min(n, m)}px`);
|
|
764
|
-
let b = o ? Math.max(
|
|
770
|
+
let b = o ? Math.max(L, Math.min(f, l - L - s)) : f;
|
|
765
771
|
Object.assign(t.style, {
|
|
766
|
-
top: v ? `${c.bottom +
|
|
767
|
-
bottom: v ? "auto" : `${u - c.top +
|
|
772
|
+
top: v ? `${c.bottom + I}px` : "auto",
|
|
773
|
+
bottom: v ? "auto" : `${u - c.top + I}px`,
|
|
768
774
|
right: h ? "auto" : `${b}px`,
|
|
769
775
|
left: h ? `${d}px` : "auto",
|
|
770
776
|
maxHeight: `${v ? g : _}px`,
|
|
771
777
|
maxWidth: y
|
|
772
778
|
});
|
|
773
779
|
}
|
|
774
|
-
function
|
|
780
|
+
function ft(e, t, n = {}) {
|
|
775
781
|
let r = t.scrollHeight <= t.clientHeight + 1, i = t.scrollWidth <= t.clientWidth + 1;
|
|
776
|
-
(!r || !i) &&
|
|
782
|
+
(!r || !i) && dt(e, t, {
|
|
777
783
|
...n,
|
|
778
784
|
fitsBelow: r,
|
|
779
785
|
fitsRight: i
|
|
780
|
-
}), n.shift &&
|
|
786
|
+
}), n.shift && dt(e, t, {
|
|
781
787
|
...n,
|
|
782
788
|
fitsBelow: r,
|
|
783
789
|
fitsRight: i,
|
|
784
790
|
popoverWidth: t.getBoundingClientRect().width
|
|
785
791
|
});
|
|
786
792
|
}
|
|
787
|
-
function
|
|
793
|
+
function pt(e, t) {
|
|
788
794
|
let n = (n) => {
|
|
789
795
|
e.contains(n.target) || t();
|
|
790
796
|
};
|
|
@@ -797,11 +803,11 @@ function dt(e, t) {
|
|
|
797
803
|
}
|
|
798
804
|
//#endregion
|
|
799
805
|
//#region src/menuFocus.js
|
|
800
|
-
var
|
|
801
|
-
function
|
|
806
|
+
var mt = "a[href], button";
|
|
807
|
+
function ht(e, t = () => null, n = null) {
|
|
802
808
|
let r = (r) => {
|
|
803
809
|
if (r.key !== "ArrowDown" && r.key !== "ArrowUp") return;
|
|
804
|
-
let i = n === null ? [...e.querySelectorAll(
|
|
810
|
+
let i = n === null ? [...e.querySelectorAll(mt)] : n();
|
|
805
811
|
if (i.length === 0) return;
|
|
806
812
|
r.preventDefault();
|
|
807
813
|
let a = r.key === "ArrowDown" ? 1 : -1, o = i.indexOf(document.activeElement);
|
|
@@ -811,7 +817,7 @@ function pt(e, t = () => null, n = null) {
|
|
|
811
817
|
document.removeEventListener("keydown", r, !0);
|
|
812
818
|
};
|
|
813
819
|
}
|
|
814
|
-
function
|
|
820
|
+
function gt(e) {
|
|
815
821
|
let t = (t) => {
|
|
816
822
|
if (t.key !== "Tab" || t.ctrlKey || t.altKey || t.metaKey) return;
|
|
817
823
|
let n = e();
|
|
@@ -826,7 +832,7 @@ function mt(e) {
|
|
|
826
832
|
}
|
|
827
833
|
//#endregion
|
|
828
834
|
//#region src/components/PopoverPanel.vue
|
|
829
|
-
var
|
|
835
|
+
var _t = {
|
|
830
836
|
emits: ["update:modelValue", "toggle"],
|
|
831
837
|
props: {
|
|
832
838
|
modelValue: {
|
|
@@ -931,11 +937,11 @@ var ht = {
|
|
|
931
937
|
methods: {
|
|
932
938
|
applyPanelState() {
|
|
933
939
|
let e = this.$refs.panel;
|
|
934
|
-
|
|
940
|
+
ut(e) && e.isConnected && (this.panelIsOpen && !R(e) && e.showPopover(), !this.panelIsOpen && R(e) && e.hidePopover());
|
|
935
941
|
},
|
|
936
942
|
close() {
|
|
937
943
|
let e = this.$refs.panel;
|
|
938
|
-
|
|
944
|
+
R(e) && e.hidePopover();
|
|
939
945
|
},
|
|
940
946
|
reportPanelShown(e) {
|
|
941
947
|
this.panelShown !== e && (this.panelShown = e, this.$emit("toggle", e));
|
|
@@ -950,9 +956,9 @@ var ht = {
|
|
|
950
956
|
align: this.align,
|
|
951
957
|
shift: this.shift
|
|
952
958
|
};
|
|
953
|
-
this.$refs.panel.style.minWidth = "", this.$refs.panel.style.minHeight = "", this.$refs.panel.style.scrollbarGutter = "",
|
|
959
|
+
this.$refs.panel.style.minWidth = "", this.$refs.panel.style.minHeight = "", this.$refs.panel.style.scrollbarGutter = "", dt(e, this.$refs.panel, t), requestAnimationFrame(() => {
|
|
954
960
|
let n = this.$refs.panel;
|
|
955
|
-
if (
|
|
961
|
+
if (R(n) && (ft(e, n, t), this.keepSize)) {
|
|
956
962
|
n.scrollHeight > n.clientHeight + 1 && (n.style.scrollbarGutter = "stable");
|
|
957
963
|
let e = n.getBoundingClientRect();
|
|
958
964
|
n.style.minWidth = `${e.width}px`, n.style.top === "auto" && (n.style.minHeight = `${e.height}px`);
|
|
@@ -965,8 +971,8 @@ var ht = {
|
|
|
965
971
|
},
|
|
966
972
|
onToggle() {
|
|
967
973
|
this.stopListening();
|
|
968
|
-
let e = this.$refs.panel, t =
|
|
969
|
-
t && (this.stopClosing =
|
|
974
|
+
let e = this.$refs.panel, t = R(e);
|
|
975
|
+
t && (this.stopClosing = pt(e, this.close), this.arrows && (this.stopArrows = ht(e, this.findSelected, this.findStops)), this.findTabStops !== null && (this.stopTab = gt(this.findTabStops))), t || this.restoreFocus(e), this.reportPanelShown(t), t !== this.panelIsOpen && (this.panelIsOpen = t, this.$emit("update:modelValue", t));
|
|
970
976
|
},
|
|
971
977
|
restoreFocus(e) {
|
|
972
978
|
let t = this.focusWasInside;
|
|
@@ -978,10 +984,10 @@ var ht = {
|
|
|
978
984
|
this.stopClosing !== null && (this.stopClosing(), this.stopClosing = null), this.stopArrows !== null && (this.stopArrows(), this.stopArrows = null), this.stopTab !== null && (this.stopTab(), this.stopTab = null);
|
|
979
985
|
}
|
|
980
986
|
}
|
|
981
|
-
},
|
|
987
|
+
}, vt = {
|
|
982
988
|
key: 0,
|
|
983
989
|
class: "bb:relative"
|
|
984
|
-
},
|
|
990
|
+
}, yt = [
|
|
985
991
|
"id",
|
|
986
992
|
"role",
|
|
987
993
|
"aria-orientation",
|
|
@@ -989,8 +995,8 @@ var ht = {
|
|
|
989
995
|
"aria-label",
|
|
990
996
|
"tabindex"
|
|
991
997
|
];
|
|
992
|
-
function
|
|
993
|
-
return n.hasContent ? (p(), i("span",
|
|
998
|
+
function bt(e, t, n, o, s, c) {
|
|
999
|
+
return n.hasContent ? (p(), i("span", vt, [h(e.$slots, "trigger", {
|
|
994
1000
|
id: o.buttonId,
|
|
995
1001
|
popovertarget: o.panelId
|
|
996
1002
|
}), a("div", {
|
|
@@ -1006,15 +1012,15 @@ function vt(e, t, n, o, s, c) {
|
|
|
1006
1012
|
onBeforetoggle: t[0] ||= (...e) => c.onBeforeToggle && c.onBeforeToggle(...e),
|
|
1007
1013
|
onToggle: t[1] ||= (...e) => c.onToggle && c.onToggle(...e),
|
|
1008
1014
|
onClick: t[2] ||= (...e) => c.onClick && c.onClick(...e)
|
|
1009
|
-
}, [h(e.$slots, "default")], 42,
|
|
1015
|
+
}, [h(e.$slots, "default")], 42, yt)])) : r("", !0);
|
|
1010
1016
|
}
|
|
1011
|
-
var
|
|
1017
|
+
var z = /*#__PURE__*/ j(_t, [["render", bt]]);
|
|
1012
1018
|
//#endregion
|
|
1013
1019
|
//#region src/date.js
|
|
1014
|
-
function
|
|
1020
|
+
function xt(e) {
|
|
1015
1021
|
return `${String(e.getDate()).padStart(2, "0")}.${String(e.getMonth() + 1).padStart(2, "0")}.${String(e.getFullYear()).padStart(4, "0")}`;
|
|
1016
1022
|
}
|
|
1017
|
-
function
|
|
1023
|
+
function St(e) {
|
|
1018
1024
|
let t = /^(\d{1,2})\.(\d{1,2})\.(\d{4})$/.exec(e);
|
|
1019
1025
|
if (t === null) return null;
|
|
1020
1026
|
let [, n, r, i] = t.map(Number), a = /* @__PURE__ */ new Date(0);
|
|
@@ -1022,11 +1028,11 @@ function bt(e) {
|
|
|
1022
1028
|
}
|
|
1023
1029
|
//#endregion
|
|
1024
1030
|
//#region src/dayFocus.js
|
|
1025
|
-
var
|
|
1026
|
-
function
|
|
1031
|
+
var Ct = ".pika-button.pika-day", wt = ".pika-button, .pika-prev, .pika-next";
|
|
1032
|
+
function Tt(e, t = () => null) {
|
|
1027
1033
|
let n = (n) => {
|
|
1028
1034
|
if (n.detail !== 0) return;
|
|
1029
|
-
let r = n.target.closest(
|
|
1035
|
+
let r = n.target.closest(wt);
|
|
1030
1036
|
r !== null && e.contains(r) && setTimeout(() => {
|
|
1031
1037
|
let n = document.activeElement === r;
|
|
1032
1038
|
if (r.dispatchEvent(new MouseEvent("mousedown", {
|
|
@@ -1039,46 +1045,46 @@ function Ct(e, t = () => null) {
|
|
|
1039
1045
|
};
|
|
1040
1046
|
return e.addEventListener("click", n), () => e.removeEventListener("click", n);
|
|
1041
1047
|
}
|
|
1042
|
-
var
|
|
1048
|
+
var Et = {
|
|
1043
1049
|
ArrowLeft: -1,
|
|
1044
1050
|
ArrowRight: 1,
|
|
1045
1051
|
ArrowUp: -7,
|
|
1046
1052
|
ArrowDown: 7
|
|
1047
1053
|
};
|
|
1048
|
-
function
|
|
1054
|
+
function Dt(e, t) {
|
|
1049
1055
|
let n = (n) => {
|
|
1050
|
-
let r =
|
|
1051
|
-
if (r === void 0 ||
|
|
1056
|
+
let r = Et[n.key];
|
|
1057
|
+
if (r === void 0 || Ot(document.activeElement)) return;
|
|
1052
1058
|
n.preventDefault();
|
|
1053
|
-
let i = document.activeElement?.closest(
|
|
1054
|
-
|
|
1059
|
+
let i = document.activeElement?.closest(Ct) ?? null, a = i !== null && e.contains(i) ? At(kt(i), r) : t.getDate() ?? jt();
|
|
1060
|
+
Mt(e, a) === null && t.gotoDate(a), Mt(e, a)?.focus();
|
|
1055
1061
|
};
|
|
1056
1062
|
return document.addEventListener("keydown", n, !0), () => document.removeEventListener("keydown", n, !0);
|
|
1057
1063
|
}
|
|
1058
|
-
function
|
|
1064
|
+
function Ot(e) {
|
|
1059
1065
|
return e !== null && e.matches("input, select, textarea, [contenteditable]");
|
|
1060
1066
|
}
|
|
1061
|
-
function
|
|
1067
|
+
function kt(e) {
|
|
1062
1068
|
return new Date(e.dataset.pikaYear, e.dataset.pikaMonth, e.dataset.pikaDay);
|
|
1063
1069
|
}
|
|
1064
|
-
function
|
|
1070
|
+
function At(e, t) {
|
|
1065
1071
|
return new Date(e.getFullYear(), e.getMonth(), e.getDate() + t);
|
|
1066
1072
|
}
|
|
1067
|
-
function
|
|
1073
|
+
function jt() {
|
|
1068
1074
|
let e = /* @__PURE__ */ new Date();
|
|
1069
1075
|
return new Date(e.getFullYear(), e.getMonth(), e.getDate());
|
|
1070
1076
|
}
|
|
1071
|
-
function
|
|
1072
|
-
return e.querySelector(`${
|
|
1077
|
+
function Mt(e, t) {
|
|
1078
|
+
return e.querySelector(`${Ct}[data-pika-year="${t.getFullYear()}"][data-pika-month="${t.getMonth()}"][data-pika-day="${t.getDate()}"]`);
|
|
1073
1079
|
}
|
|
1074
1080
|
//#endregion
|
|
1075
1081
|
//#region src/components/SelectDate.vue
|
|
1076
|
-
var
|
|
1082
|
+
var Nt = {
|
|
1077
1083
|
components: {
|
|
1078
|
-
PopoverPanel:
|
|
1079
|
-
CrossButton:
|
|
1084
|
+
PopoverPanel: z,
|
|
1085
|
+
CrossButton: F
|
|
1080
1086
|
},
|
|
1081
|
-
mixins: [
|
|
1087
|
+
mixins: [P],
|
|
1082
1088
|
emits: ["update:modelValue", "changed"],
|
|
1083
1089
|
props: {
|
|
1084
1090
|
modelValue: {
|
|
@@ -1113,8 +1119,8 @@ var jt = {
|
|
|
1113
1119
|
keyboardInput: !1,
|
|
1114
1120
|
bound: !1,
|
|
1115
1121
|
firstDay: 1,
|
|
1116
|
-
parse: (e) =>
|
|
1117
|
-
toString: (e) =>
|
|
1122
|
+
parse: (e) => St(e),
|
|
1123
|
+
toString: (e) => xt(e),
|
|
1118
1124
|
i18n: {
|
|
1119
1125
|
previousMonth: this.texts.previousMonth,
|
|
1120
1126
|
nextMonth: this.texts.nextMonth,
|
|
@@ -1123,9 +1129,9 @@ var jt = {
|
|
|
1123
1129
|
weekdaysShort: this.texts.weekdaysShort
|
|
1124
1130
|
},
|
|
1125
1131
|
onSelect: (e) => {
|
|
1126
|
-
this.popupIsOpen = !1, this.$emit("update:modelValue",
|
|
1132
|
+
this.popupIsOpen = !1, this.$emit("update:modelValue", xt(e)), this.$emit("changed");
|
|
1127
1133
|
}
|
|
1128
|
-
}), this.stopPickOnClick =
|
|
1134
|
+
}), this.stopPickOnClick = Tt(this.$refs.container, () => this.$refs.trigger), this.syncDayFocus());
|
|
1129
1135
|
},
|
|
1130
1136
|
beforeUnmount() {
|
|
1131
1137
|
this.isUnmounted = !0, this.stopPickOnClick?.(), this.stopDayFocus?.(), this.picker?.destroy();
|
|
@@ -1154,11 +1160,11 @@ var jt = {
|
|
|
1154
1160
|
].includes(e.key) && (e.preventDefault(), this.$refs.trigger.focus({ preventScroll: !0 }), this.popupIsOpen = !0);
|
|
1155
1161
|
},
|
|
1156
1162
|
syncDayFocus() {
|
|
1157
|
-
this.stopDayFocus?.(), this.stopDayFocus = null, this.popupIsOpen && this.picker !== null && (this.stopDayFocus =
|
|
1163
|
+
this.stopDayFocus?.(), this.stopDayFocus = null, this.popupIsOpen && this.picker !== null && (this.stopDayFocus = Dt(this.$refs.container, this.picker));
|
|
1158
1164
|
},
|
|
1159
1165
|
syncPicker(e) {
|
|
1160
1166
|
if (this.picker === null) return;
|
|
1161
|
-
let t =
|
|
1167
|
+
let t = St(e);
|
|
1162
1168
|
if (t === null) {
|
|
1163
1169
|
this.picker.clear();
|
|
1164
1170
|
return;
|
|
@@ -1184,24 +1190,24 @@ var jt = {
|
|
|
1184
1190
|
return !this.withEraser || this.popupIsOpen ? !1 : this.hasValue;
|
|
1185
1191
|
}
|
|
1186
1192
|
}
|
|
1187
|
-
},
|
|
1193
|
+
}, Pt = { class: "bb-dashboard-ui bb:flex bb:flex-col" }, Ft = { class: "bb:relative bb:flex bb:h-full" }, It = [
|
|
1188
1194
|
"id",
|
|
1189
1195
|
"popovertarget",
|
|
1190
1196
|
"aria-labelledby",
|
|
1191
1197
|
"aria-describedby"
|
|
1192
|
-
],
|
|
1198
|
+
], Lt = ["textContent"], Rt = { class: "bb:flex bb:w-full bb:items-center bb:leading-none bb:min-w-24 bb:pointer-events-none" }, zt = [
|
|
1193
1199
|
"disabled",
|
|
1194
1200
|
"value",
|
|
1195
1201
|
"placeholder",
|
|
1196
1202
|
"aria-labelledby",
|
|
1197
1203
|
"aria-describedby"
|
|
1198
|
-
],
|
|
1204
|
+
], Bt = {
|
|
1199
1205
|
ref: "container",
|
|
1200
1206
|
class: "bb:flex"
|
|
1201
1207
|
};
|
|
1202
|
-
function
|
|
1208
|
+
function Vt(e, t, o, s, l, u) {
|
|
1203
1209
|
let d = g("popover-panel"), f = g("cross-button");
|
|
1204
|
-
return p(), i("div",
|
|
1210
|
+
return p(), i("div", Pt, [a("div", Ft, [c(d, {
|
|
1205
1211
|
class: "bb:flex bb:w-full",
|
|
1206
1212
|
modelValue: l.popupIsOpen,
|
|
1207
1213
|
"onUpdate:modelValue": t[1] ||= (e) => l.popupIsOpen = e,
|
|
@@ -1220,7 +1226,7 @@ function zt(e, t, o, s, l, u) {
|
|
|
1220
1226
|
}, [a("span", {
|
|
1221
1227
|
class: "bb:sr-only bb:pointer-events-none bb:cursor-default",
|
|
1222
1228
|
textContent: y(u.triggerLabel)
|
|
1223
|
-
}, null, 8,
|
|
1229
|
+
}, null, 8, Lt)], 8, It), a("label", Rt, [a("input", {
|
|
1224
1230
|
disabled: l.popupIsOpen,
|
|
1225
1231
|
ref: "field",
|
|
1226
1232
|
onKeydown: t[0] ||= (...e) => u.openOnKey && u.openOnKey(...e),
|
|
@@ -1230,8 +1236,8 @@ function zt(e, t, o, s, l, u) {
|
|
|
1230
1236
|
"aria-labelledby": o.labelledBy || null,
|
|
1231
1237
|
"aria-describedby": o.describedBy,
|
|
1232
1238
|
class: "bb:w-full bb:h-full bb:py-2 bb:pl-3 bb:pr-3 bb:leading-none bb:border bb:border-transparent bb:whitespace-nowrap bb:bg-transparent bb:placeholder:text-sm bb:placeholder-gray-300 bb:cursor-pointer bb:focus:focus-ring bb:rounded-[var(--bb-field-radius,0)]"
|
|
1233
|
-
}, null, 40,
|
|
1234
|
-
default: C(() => [a("div",
|
|
1239
|
+
}, null, 40, zt)])]),
|
|
1240
|
+
default: C(() => [a("div", Bt, null, 512)]),
|
|
1235
1241
|
_: 1
|
|
1236
1242
|
}, 8, ["modelValue"]), u.needsEraser ? (p(), n(f, {
|
|
1237
1243
|
key: 0,
|
|
@@ -1242,10 +1248,10 @@ function zt(e, t, o, s, l, u) {
|
|
|
1242
1248
|
lang: e.resolvedLang
|
|
1243
1249
|
}, null, 8, ["onClicked", "lang"])) : r("", !0)])]);
|
|
1244
1250
|
}
|
|
1245
|
-
var
|
|
1251
|
+
var B = /*#__PURE__*/ j(Nt, [["render", Vt]]), Ht = {
|
|
1246
1252
|
components: {
|
|
1247
|
-
ElementHeader:
|
|
1248
|
-
SelectDate:
|
|
1253
|
+
ElementHeader: N,
|
|
1254
|
+
SelectDate: B
|
|
1249
1255
|
},
|
|
1250
1256
|
emits: ["update:modelValue", "changed"],
|
|
1251
1257
|
props: {
|
|
@@ -1270,10 +1276,10 @@ var H = /*#__PURE__*/ M(jt, [["render", zt]]), Bt = {
|
|
|
1270
1276
|
default: null
|
|
1271
1277
|
}
|
|
1272
1278
|
}
|
|
1273
|
-
},
|
|
1274
|
-
function
|
|
1279
|
+
}, Ut = { class: "bb-dashboard-ui bb:flex bb:w-fit bb:h-18 bb:border bb:border-gray-200" }, Wt = { class: "bb:flex bb:border bb:border-white" }, Gt = { class: "bb:flex bb:flex-col bb:w-36 bb:bg-white bb:h-full" };
|
|
1280
|
+
function Kt(e, t, n, r, o, s) {
|
|
1275
1281
|
let l = g("element-header"), u = g("select-date");
|
|
1276
|
-
return p(), i("div",
|
|
1282
|
+
return p(), i("div", Ut, [a("div", Wt, [a("div", Gt, [c(l, {
|
|
1277
1283
|
text: n.header ?? "",
|
|
1278
1284
|
"is-required": n.isRequired,
|
|
1279
1285
|
"is-loading": n.isLoading
|
|
@@ -1289,7 +1295,7 @@ function Wt(e, t, n, r, o, s) {
|
|
|
1289
1295
|
onChanged: t[1] ||= (t) => e.$emit("changed")
|
|
1290
1296
|
}, null, 8, ["model-value", "lang"])])])]);
|
|
1291
1297
|
}
|
|
1292
|
-
var
|
|
1298
|
+
var qt = /*#__PURE__*/ j(Ht, [["render", Kt]]), V = {
|
|
1293
1299
|
props: { description: {
|
|
1294
1300
|
type: String,
|
|
1295
1301
|
default: null
|
|
@@ -1302,17 +1308,17 @@ var Gt = /*#__PURE__*/ M(Bt, [["render", Wt]]), U = {
|
|
|
1302
1308
|
return this.hasDescription() ? `${e}-description` : null;
|
|
1303
1309
|
}
|
|
1304
1310
|
}
|
|
1305
|
-
},
|
|
1306
|
-
function
|
|
1307
|
-
return p(), i("div",
|
|
1311
|
+
}, Jt = {}, Yt = { class: "bb:mt-1 bb:w-0 bb:min-w-full bb:text-xs bb:leading-4 bb:font-normal bb:text-gray-500 bb:wrap-anywhere" };
|
|
1312
|
+
function Xt(e, t, n, r, a, o) {
|
|
1313
|
+
return p(), i("div", Yt, [h(e.$slots, "default")]);
|
|
1308
1314
|
}
|
|
1309
|
-
var
|
|
1315
|
+
var H = /*#__PURE__*/ j(Jt, [["render", Xt]]), Zt = {
|
|
1310
1316
|
components: {
|
|
1311
|
-
Dot:
|
|
1312
|
-
FieldDescription:
|
|
1313
|
-
SelectDate:
|
|
1317
|
+
Dot: M,
|
|
1318
|
+
FieldDescription: H,
|
|
1319
|
+
SelectDate: B
|
|
1314
1320
|
},
|
|
1315
|
-
mixins: [
|
|
1321
|
+
mixins: [V],
|
|
1316
1322
|
emits: ["update:modelValue", "changed"],
|
|
1317
1323
|
props: {
|
|
1318
1324
|
modelValue: {
|
|
@@ -1335,19 +1341,19 @@ var W = /*#__PURE__*/ M(Kt, [["render", Jt]]), Yt = {
|
|
|
1335
1341
|
setup() {
|
|
1336
1342
|
return { labelId: b() };
|
|
1337
1343
|
}
|
|
1338
|
-
},
|
|
1339
|
-
function
|
|
1344
|
+
}, Qt = { class: "bb-dashboard-ui" }, $t = { class: "bb:flex bb:items-center" }, en = ["id", "textContent"], tn = { class: "bb:mt-1 bb:flex bb:h-9.5 bb:w-full bb:field-frame bb:text-sm" };
|
|
1345
|
+
function nn(e, t, o, l, u, d) {
|
|
1340
1346
|
let f = g("dot"), m = g("select-date"), _ = g("field-description");
|
|
1341
|
-
return p(), i("div",
|
|
1342
|
-
a("div",
|
|
1347
|
+
return p(), i("div", Qt, [
|
|
1348
|
+
a("div", $t, [a("span", {
|
|
1343
1349
|
id: l.labelId,
|
|
1344
1350
|
class: "bb:block bb:text-sm bb:font-medium bb:leading-5 bb:text-gray-700",
|
|
1345
1351
|
textContent: y(o.label ?? "")
|
|
1346
|
-
}, null, 8,
|
|
1352
|
+
}, null, 8, en), w(c(f, {
|
|
1347
1353
|
color: "red-pale",
|
|
1348
1354
|
class: "bb:ml-2"
|
|
1349
1355
|
}, null, 512), [[S, o.isRequired]])]),
|
|
1350
|
-
a("div",
|
|
1356
|
+
a("div", tn, [c(m, {
|
|
1351
1357
|
class: "bb:flex-1",
|
|
1352
1358
|
"model-value": o.modelValue,
|
|
1353
1359
|
"labelled-by": l.labelId,
|
|
@@ -1370,9 +1376,9 @@ function en(e, t, o, l, u, d) {
|
|
|
1370
1376
|
}, 8, ["id"])) : r("", !0)
|
|
1371
1377
|
]);
|
|
1372
1378
|
}
|
|
1373
|
-
var
|
|
1379
|
+
var rn = /*#__PURE__*/ j(Zt, [["render", nn]]), an = {
|
|
1374
1380
|
inheritAttrs: !1,
|
|
1375
|
-
mixins: [
|
|
1381
|
+
mixins: [P],
|
|
1376
1382
|
emits: [
|
|
1377
1383
|
"update:dateFrom",
|
|
1378
1384
|
"update:dateTo",
|
|
@@ -1429,17 +1435,17 @@ var tn = /*#__PURE__*/ M(Yt, [["render", en]]), nn = {
|
|
|
1429
1435
|
}
|
|
1430
1436
|
}
|
|
1431
1437
|
};
|
|
1432
|
-
function
|
|
1438
|
+
function on(e, t, n, r, i, a) {
|
|
1433
1439
|
return h(e.$slots, "default", {
|
|
1434
1440
|
from: a.from,
|
|
1435
1441
|
to: a.to
|
|
1436
1442
|
});
|
|
1437
1443
|
}
|
|
1438
|
-
var
|
|
1444
|
+
var sn = /*#__PURE__*/ j(an, [["render", on]]), cn = {
|
|
1439
1445
|
components: {
|
|
1440
|
-
ElementHeader:
|
|
1441
|
-
SelectDate:
|
|
1442
|
-
SelectDateInterval:
|
|
1446
|
+
ElementHeader: N,
|
|
1447
|
+
SelectDate: B,
|
|
1448
|
+
SelectDateInterval: sn
|
|
1443
1449
|
},
|
|
1444
1450
|
emits: [
|
|
1445
1451
|
"update:dateFrom",
|
|
@@ -1472,10 +1478,10 @@ var an = /*#__PURE__*/ M(nn, [["render", rn]]), on = {
|
|
|
1472
1478
|
default: null
|
|
1473
1479
|
}
|
|
1474
1480
|
}
|
|
1475
|
-
},
|
|
1476
|
-
function
|
|
1481
|
+
}, ln = { class: "bb-dashboard-ui bb:flex bb:w-fit bb:h-18 bb:border bb:border-gray-200" }, un = { class: "bb:flex bb:border bb:border-white" }, dn = { class: "bb:flex bb:flex-col bb:min-w-72 bb:w-72 bb:bg-white bb:h-full" }, fn = { class: "bb:flex bb:h-full bb:divide-x bb:divide-gray-200" };
|
|
1482
|
+
function pn(e, t, n, r, o, s) {
|
|
1477
1483
|
let l = g("element-header"), u = g("select-date"), d = g("select-date-interval");
|
|
1478
|
-
return p(), i("div",
|
|
1484
|
+
return p(), i("div", ln, [a("div", un, [a("div", dn, [c(l, {
|
|
1479
1485
|
text: n.header ?? "",
|
|
1480
1486
|
"is-required": n.isRequired,
|
|
1481
1487
|
"is-loading": n.isLoading
|
|
@@ -1491,7 +1497,7 @@ function dn(e, t, n, r, o, s) {
|
|
|
1491
1497
|
"onUpdate:dateTo": t[1] ||= (t) => e.$emit("update:dateTo", t),
|
|
1492
1498
|
onChanged: t[2] ||= (t) => e.$emit("changed")
|
|
1493
1499
|
}, {
|
|
1494
|
-
default: C(({ from: e, to: t }) => [a("div",
|
|
1500
|
+
default: C(({ from: e, to: t }) => [a("div", fn, [c(u, {
|
|
1495
1501
|
class: "bb:flex-1 bb:min-w-36",
|
|
1496
1502
|
"model-value": e.value,
|
|
1497
1503
|
"placeholder-text": e.placeholder,
|
|
@@ -1521,14 +1527,14 @@ function dn(e, t, n, r, o, s) {
|
|
|
1521
1527
|
"lang"
|
|
1522
1528
|
])])])]);
|
|
1523
1529
|
}
|
|
1524
|
-
var
|
|
1530
|
+
var mn = /*#__PURE__*/ j(cn, [["render", pn]]), hn = {
|
|
1525
1531
|
components: {
|
|
1526
|
-
Dot:
|
|
1527
|
-
FieldDescription:
|
|
1528
|
-
SelectDate:
|
|
1529
|
-
SelectDateInterval:
|
|
1532
|
+
Dot: M,
|
|
1533
|
+
FieldDescription: H,
|
|
1534
|
+
SelectDate: B,
|
|
1535
|
+
SelectDateInterval: sn
|
|
1530
1536
|
},
|
|
1531
|
-
mixins: [
|
|
1537
|
+
mixins: [V],
|
|
1532
1538
|
emits: [
|
|
1533
1539
|
"update:dateFrom",
|
|
1534
1540
|
"update:dateTo",
|
|
@@ -1559,15 +1565,15 @@ var fn = /*#__PURE__*/ M(on, [["render", dn]]), pn = {
|
|
|
1559
1565
|
setup() {
|
|
1560
1566
|
return { labelId: b() };
|
|
1561
1567
|
}
|
|
1562
|
-
},
|
|
1563
|
-
function
|
|
1568
|
+
}, gn = { class: "bb-dashboard-ui" }, _n = { class: "bb:flex bb:items-center" }, vn = ["id", "textContent"], yn = ["aria-labelledby", "aria-describedby"], bn = { class: "bb:flex bb:h-9.5 bb:w-full bb:field-frame bb:text-sm" }, xn = { class: "bb:flex bb:h-9.5 bb:w-full bb:field-frame bb:text-sm" };
|
|
1569
|
+
function Sn(e, t, o, l, u, d) {
|
|
1564
1570
|
let f = g("dot"), m = g("select-date"), _ = g("select-date-interval"), v = g("field-description");
|
|
1565
|
-
return p(), i("div",
|
|
1566
|
-
a("div",
|
|
1571
|
+
return p(), i("div", gn, [
|
|
1572
|
+
a("div", _n, [a("span", {
|
|
1567
1573
|
id: l.labelId,
|
|
1568
1574
|
class: "bb:block bb:text-sm bb:font-medium bb:leading-5 bb:text-gray-700",
|
|
1569
1575
|
textContent: y(o.label ?? "")
|
|
1570
|
-
}, null, 8,
|
|
1576
|
+
}, null, 8, vn), w(c(f, {
|
|
1571
1577
|
color: "red-pale",
|
|
1572
1578
|
class: "bb:ml-2"
|
|
1573
1579
|
}, null, 512), [[S, o.isRequired]])]),
|
|
@@ -1584,7 +1590,7 @@ function bn(e, t, o, l, u, d) {
|
|
|
1584
1590
|
"onUpdate:dateTo": t[1] ||= (t) => e.$emit("update:dateTo", t),
|
|
1585
1591
|
onChanged: t[2] ||= (t) => e.$emit("changed")
|
|
1586
1592
|
}, {
|
|
1587
|
-
default: C(({ from: e, to: t }) => [a("div",
|
|
1593
|
+
default: C(({ from: e, to: t }) => [a("div", bn, [c(m, {
|
|
1588
1594
|
class: "bb:flex-1",
|
|
1589
1595
|
"model-value": e.value,
|
|
1590
1596
|
"placeholder-text": e.placeholder,
|
|
@@ -1595,7 +1601,7 @@ function bn(e, t, o, l, u, d) {
|
|
|
1595
1601
|
"placeholder-text",
|
|
1596
1602
|
"lang",
|
|
1597
1603
|
"onUpdate:modelValue"
|
|
1598
|
-
])]), a("div",
|
|
1604
|
+
])]), a("div", xn, [c(m, {
|
|
1599
1605
|
class: "bb:flex-1",
|
|
1600
1606
|
"model-value": t.value,
|
|
1601
1607
|
"placeholder-text": t.placeholder,
|
|
@@ -1612,7 +1618,7 @@ function bn(e, t, o, l, u, d) {
|
|
|
1612
1618
|
"date-from",
|
|
1613
1619
|
"date-to",
|
|
1614
1620
|
"lang"
|
|
1615
|
-
])], 8,
|
|
1621
|
+
])], 8, yn),
|
|
1616
1622
|
e.hasDescription() ? (p(), n(v, {
|
|
1617
1623
|
key: 0,
|
|
1618
1624
|
id: e.descriptionId(l.labelId)
|
|
@@ -1622,7 +1628,7 @@ function bn(e, t, o, l, u, d) {
|
|
|
1622
1628
|
}, 8, ["id"])) : r("", !0)
|
|
1623
1629
|
]);
|
|
1624
1630
|
}
|
|
1625
|
-
var
|
|
1631
|
+
var Cn = /*#__PURE__*/ j(hn, [["render", Sn]]), wn = {
|
|
1626
1632
|
props: { withSearch: {
|
|
1627
1633
|
type: Boolean,
|
|
1628
1634
|
default: !1
|
|
@@ -1672,10 +1678,10 @@ var xn = /*#__PURE__*/ M(pn, [["render", bn]]), Sn = {
|
|
|
1672
1678
|
}
|
|
1673
1679
|
}
|
|
1674
1680
|
}
|
|
1675
|
-
},
|
|
1681
|
+
}, Tn = {
|
|
1676
1682
|
components: {
|
|
1677
|
-
PopoverPanel:
|
|
1678
|
-
CrossButton:
|
|
1683
|
+
PopoverPanel: z,
|
|
1684
|
+
CrossButton: F
|
|
1679
1685
|
},
|
|
1680
1686
|
emits: [
|
|
1681
1687
|
"update:isOpen",
|
|
@@ -1735,23 +1741,23 @@ var xn = /*#__PURE__*/ M(pn, [["render", bn]]), Sn = {
|
|
|
1735
1741
|
let e = this.$refs.eraser.$el;
|
|
1736
1742
|
document.activeElement === e && e.matches(":focus-visible") && this.$refs.trigger.focus({ preventScroll: !0 }), this.$emit("erased");
|
|
1737
1743
|
} }
|
|
1738
|
-
},
|
|
1744
|
+
}, En = { class: "bb:flex bb:flex-col bb:grow" }, Dn = { class: "bb:relative bb:flex bb:w-full bb:h-full" }, On = [
|
|
1739
1745
|
"id",
|
|
1740
1746
|
"popovertarget",
|
|
1741
1747
|
"aria-labelledby",
|
|
1742
1748
|
"aria-describedby"
|
|
1743
|
-
],
|
|
1749
|
+
], kn = {
|
|
1744
1750
|
key: 0,
|
|
1745
1751
|
class: "bb:flex bb:w-full bb:min-w-0 bb:h-full bb:pl-3 bb:pr-7 bb:py-2 bb:items-center bb:whitespace-nowrap bb:leading-none bb:pointer-events-none bb:cursor-default"
|
|
1746
|
-
},
|
|
1752
|
+
}, An = ["textContent"], jn = ["textContent"], Mn = {
|
|
1747
1753
|
key: 2,
|
|
1748
1754
|
class: "bb:absolute bb:right-3 bb:top-1/2 bb:-translate-y-1/2 bb:w-2 bb:h-1.5 bb:fill-current bb:text-gray-500 bb:pointer-events-none bb:cursor-default",
|
|
1749
1755
|
viewBox: "0 0 8 6",
|
|
1750
1756
|
"aria-hidden": "true"
|
|
1751
1757
|
};
|
|
1752
|
-
function
|
|
1758
|
+
function Nn(e, t, o, s, l, u) {
|
|
1753
1759
|
let d = g("popover-panel"), f = g("cross-button");
|
|
1754
|
-
return p(), i("div",
|
|
1760
|
+
return p(), i("div", En, [a("div", Dn, [c(d, {
|
|
1755
1761
|
class: "bb:flex bb:w-full bb:h-full",
|
|
1756
1762
|
"model-value": o.isOpen,
|
|
1757
1763
|
align: "start",
|
|
@@ -1773,14 +1779,14 @@ function jn(e, t, o, s, l, u) {
|
|
|
1773
1779
|
"aria-labelledby": o.labelledBy ? o.labelledBy + " " + e.id : null,
|
|
1774
1780
|
"aria-describedby": o.describedBy,
|
|
1775
1781
|
class: "bb:flex bb:w-full bb:h-full bb:items-center bb:focus-visible:focus-ring bb:cursor-pointer bb:rounded-[var(--bb-field-radius,0)]"
|
|
1776
|
-
}, [o.withArrow ? (p(), i("span",
|
|
1782
|
+
}, [o.withArrow ? (p(), i("span", kn, [a("span", {
|
|
1777
1783
|
class: "bb:truncate",
|
|
1778
1784
|
textContent: y(o.title)
|
|
1779
|
-
}, null, 8,
|
|
1785
|
+
}, null, 8, An)])) : (p(), i("span", {
|
|
1780
1786
|
key: 1,
|
|
1781
1787
|
class: "bb:flex bb:w-full bb:h-full bb:pl-3 bb:pr-12 bb:py-2 bb:items-center bb:whitespace-nowrap bb:leading-none bb:pointer-events-none bb:cursor-default",
|
|
1782
1788
|
textContent: y(o.title)
|
|
1783
|
-
}, null, 8,
|
|
1789
|
+
}, null, 8, jn)), o.withArrow ? (p(), i("svg", Mn, [...t[2] ||= [a("path", { d: "M0 0h8L4 6z" }, null, -1)]])) : r("", !0)], 8, On)]),
|
|
1784
1790
|
default: C(() => [h(e.$slots, "default")]),
|
|
1785
1791
|
_: 3
|
|
1786
1792
|
}, 8, [
|
|
@@ -1798,7 +1804,7 @@ function jn(e, t, o, s, l, u) {
|
|
|
1798
1804
|
class: "bb:absolute bb:right-0 bb:top-0 bb:pr-2 bb:h-full"
|
|
1799
1805
|
}, null, 8, ["lang", "onClicked"])) : r("", !0)])]);
|
|
1800
1806
|
}
|
|
1801
|
-
var
|
|
1807
|
+
var Pn = /*#__PURE__*/ j(Tn, [["render", Nn]]), Fn = {
|
|
1802
1808
|
props: {
|
|
1803
1809
|
isChecked: {
|
|
1804
1810
|
type: Boolean,
|
|
@@ -1810,28 +1816,28 @@ var Mn = /*#__PURE__*/ M(Cn, [["render", jn]]), Nn = {
|
|
|
1810
1816
|
methods: { toggle() {
|
|
1811
1817
|
this.$emit("clicked");
|
|
1812
1818
|
} }
|
|
1813
|
-
},
|
|
1819
|
+
}, In = { class: "bb:flex bb:w-9 bb:h-9 bb:items-center bb:justify-center bb:pointer-events-none bb:cursor-default" }, Ln = {
|
|
1814
1820
|
class: "bb:w-5 bb:h-5 bb:fill-current bb:text-green-300",
|
|
1815
1821
|
viewBox: "0 0 20 20",
|
|
1816
1822
|
"aria-hidden": "true"
|
|
1817
|
-
},
|
|
1818
|
-
function
|
|
1823
|
+
}, Rn = ["textContent"];
|
|
1824
|
+
function zn(e, t, n, r, o, s) {
|
|
1819
1825
|
return p(), i("button", {
|
|
1820
1826
|
type: "button",
|
|
1821
1827
|
onClick: t[0] ||= E((...e) => s.toggle && s.toggle(...e), ["prevent"]),
|
|
1822
1828
|
class: "bb:flex bb:w-full bb:bg-white bb:cursor-pointer bb:focus:outline-hidden bb:hover:bg-indigo-100 bb:focus:bg-indigo-100"
|
|
1823
|
-
}, [a("span",
|
|
1829
|
+
}, [a("span", In, [w((p(), i("svg", Ln, [...t[1] ||= [a("path", {
|
|
1824
1830
|
d: "M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",
|
|
1825
1831
|
"clip-rule": "evenodd",
|
|
1826
1832
|
"fill-rule": "evenodd"
|
|
1827
1833
|
}, null, -1)]], 512)), [[S, n.isChecked]])]), a("span", {
|
|
1828
1834
|
class: "bb:flex bb:h-9 bb:justify-center bb:items-center bb:pr-6 bb:whitespace-nowrap bb:select-none bb:pointer-events-none bb:cursor-default",
|
|
1829
1835
|
textContent: y(n.name)
|
|
1830
|
-
}, null, 8,
|
|
1836
|
+
}, null, 8, Rn)]);
|
|
1831
1837
|
}
|
|
1832
|
-
var
|
|
1833
|
-
components: { CrossButton:
|
|
1834
|
-
mixins: [
|
|
1838
|
+
var Bn = /*#__PURE__*/ j(Fn, [["render", zn]]), Vn = {
|
|
1839
|
+
components: { CrossButton: F },
|
|
1840
|
+
mixins: [P],
|
|
1835
1841
|
emits: ["update:modelValue"],
|
|
1836
1842
|
props: { modelValue: {
|
|
1837
1843
|
type: String,
|
|
@@ -1863,19 +1869,19 @@ var Rn = /*#__PURE__*/ M(Nn, [["render", Ln]]), zn = {
|
|
|
1863
1869
|
this.query = "", this.$refs.input.focus();
|
|
1864
1870
|
}
|
|
1865
1871
|
}
|
|
1866
|
-
},
|
|
1867
|
-
function
|
|
1872
|
+
}, Hn = { class: "bb:sticky bb:top-0 bb:min-w-56 bb:px-2 bb:py-2 bb:bg-white bb:border-b bb:border-gray-200" }, Un = { class: "bb:relative" }, Wn = ["placeholder", "aria-label"];
|
|
1873
|
+
function Gn(e, t, n, r, o, s) {
|
|
1868
1874
|
let l = g("cross-button");
|
|
1869
|
-
return p(), i("div",
|
|
1875
|
+
return p(), i("div", Hn, [a("div", Un, [w(a("input", {
|
|
1870
1876
|
ref: "input",
|
|
1871
1877
|
type: "text",
|
|
1872
1878
|
autocomplete: "off",
|
|
1873
1879
|
"onUpdate:modelValue": t[0] ||= (e) => s.query = e,
|
|
1874
1880
|
placeholder: e.texts.search,
|
|
1875
1881
|
"aria-label": e.texts.search,
|
|
1876
|
-
class: "bb:w-full bb:pl-3 bb:pr-9 bb:py-2 bb:text-sm bb:
|
|
1882
|
+
class: "bb:w-full bb:pl-3 bb:pr-9 bb:py-2 bb:text-sm bb:field-frame bb:focus:focus-ring",
|
|
1877
1883
|
onKeydown: t[1] ||= T(E(() => {}, ["prevent"]), ["enter"])
|
|
1878
|
-
}, null, 40,
|
|
1884
|
+
}, null, 40, Wn), [[ee, s.query]]), w(c(l, {
|
|
1879
1885
|
ref: "eraser",
|
|
1880
1886
|
size: "small",
|
|
1881
1887
|
lang: e.lang,
|
|
@@ -1883,13 +1889,13 @@ function Un(e, t, n, r, o, s) {
|
|
|
1883
1889
|
class: "bb:absolute bb:right-0 bb:top-0 bb:pr-2 bb:h-full"
|
|
1884
1890
|
}, null, 8, ["lang", "onClicked"]), [[S, s.query !== ""]])])]);
|
|
1885
1891
|
}
|
|
1886
|
-
var
|
|
1892
|
+
var Kn = /*#__PURE__*/ j(Vn, [["render", Gn]]), qn = {
|
|
1887
1893
|
components: {
|
|
1888
|
-
DropdownButton:
|
|
1889
|
-
ListElement:
|
|
1890
|
-
ListSearchField:
|
|
1894
|
+
DropdownButton: Pn,
|
|
1895
|
+
ListElement: Bn,
|
|
1896
|
+
ListSearchField: Kn
|
|
1891
1897
|
},
|
|
1892
|
-
mixins: [
|
|
1898
|
+
mixins: [P, wn],
|
|
1893
1899
|
emits: ["update:modelValue", "changed"],
|
|
1894
1900
|
props: {
|
|
1895
1901
|
items: {
|
|
@@ -1947,10 +1953,10 @@ var Wn = /*#__PURE__*/ M(zn, [["render", Un]]), Gn = {
|
|
|
1947
1953
|
return this.firstSelectedElement() ?? this.searchInput();
|
|
1948
1954
|
}
|
|
1949
1955
|
}
|
|
1950
|
-
},
|
|
1951
|
-
function
|
|
1956
|
+
}, Jn = { class: "bb-dashboard-ui bb:flex bb:flex-col bb:grow" }, Yn = ["textContent"];
|
|
1957
|
+
function Xn(t, a, o, s, c, l) {
|
|
1952
1958
|
let u = g("list-search-field"), d = g("list-element"), f = g("dropdown-button");
|
|
1953
|
-
return p(), i("div",
|
|
1959
|
+
return p(), i("div", Jn, [l.hasItems ? (p(), n(f, {
|
|
1954
1960
|
key: 0,
|
|
1955
1961
|
title: l.title,
|
|
1956
1962
|
"is-open": c.isOpen,
|
|
@@ -1992,7 +1998,7 @@ function Jn(t, a, o, s, c, l) {
|
|
|
1992
1998
|
key: 2,
|
|
1993
1999
|
class: "bb:px-3 bb:py-2 bb:text-sm bb:text-gray-500 bb:text-center",
|
|
1994
2000
|
textContent: y(t.texts.nothingFound)
|
|
1995
|
-
}, null, 8,
|
|
2001
|
+
}, null, 8, Yn))]),
|
|
1996
2002
|
_: 1
|
|
1997
2003
|
}, 8, [
|
|
1998
2004
|
"title",
|
|
@@ -2009,10 +2015,10 @@ function Jn(t, a, o, s, c, l) {
|
|
|
2009
2015
|
"onToggle"
|
|
2010
2016
|
])) : r("", !0)]);
|
|
2011
2017
|
}
|
|
2012
|
-
var
|
|
2018
|
+
var Zn = /*#__PURE__*/ j(qn, [["render", Xn]]), Qn = {
|
|
2013
2019
|
components: {
|
|
2014
|
-
ElementHeader:
|
|
2015
|
-
SelectMultiple:
|
|
2020
|
+
ElementHeader: N,
|
|
2021
|
+
SelectMultiple: Zn
|
|
2016
2022
|
},
|
|
2017
2023
|
emits: ["update:modelValue", "changed"],
|
|
2018
2024
|
props: {
|
|
@@ -2045,10 +2051,10 @@ var Yn = /*#__PURE__*/ M(Gn, [["render", Jn]]), Xn = {
|
|
|
2045
2051
|
default: null
|
|
2046
2052
|
}
|
|
2047
2053
|
}
|
|
2048
|
-
},
|
|
2049
|
-
function
|
|
2054
|
+
}, $n = { class: "bb-dashboard-ui bb:flex bb:flex-none bb:w-fit bb:h-18 bb:border bb:border-gray-200" }, er = { class: "bb:flex bb:w-full bb:flex-col bb:border bb:border-white bb:bg-white" };
|
|
2055
|
+
function tr(e, t, n, r, o, s) {
|
|
2050
2056
|
let l = g("element-header"), u = g("select-multiple");
|
|
2051
|
-
return p(), i("div",
|
|
2057
|
+
return p(), i("div", $n, [a("div", er, [c(l, {
|
|
2052
2058
|
text: n.header ?? "",
|
|
2053
2059
|
"is-required": n.isRequired,
|
|
2054
2060
|
"is-loading": n.isLoading
|
|
@@ -2070,13 +2076,13 @@ function $n(e, t, n, r, o, s) {
|
|
|
2070
2076
|
"lang"
|
|
2071
2077
|
])])]);
|
|
2072
2078
|
}
|
|
2073
|
-
var
|
|
2079
|
+
var nr = /*#__PURE__*/ j(Qn, [["render", tr]]), rr = {
|
|
2074
2080
|
components: {
|
|
2075
|
-
Dot:
|
|
2076
|
-
FieldDescription:
|
|
2077
|
-
SelectMultiple:
|
|
2081
|
+
Dot: M,
|
|
2082
|
+
FieldDescription: H,
|
|
2083
|
+
SelectMultiple: Zn
|
|
2078
2084
|
},
|
|
2079
|
-
mixins: [
|
|
2085
|
+
mixins: [V],
|
|
2080
2086
|
emits: ["update:modelValue", "changed"],
|
|
2081
2087
|
props: {
|
|
2082
2088
|
items: {
|
|
@@ -2107,19 +2113,19 @@ var er = /*#__PURE__*/ M(Xn, [["render", $n]]), tr = {
|
|
|
2107
2113
|
setup() {
|
|
2108
2114
|
return { labelId: b() };
|
|
2109
2115
|
}
|
|
2110
|
-
},
|
|
2111
|
-
function
|
|
2116
|
+
}, ir = { class: "bb-dashboard-ui" }, ar = { class: "bb:flex bb:items-center" }, or = ["id", "textContent"], sr = { class: "bb:mt-1 bb:h-9.5 bb:w-full bb:field-frame bb:text-sm bb:flex bb:flex-col" };
|
|
2117
|
+
function cr(e, t, o, l, u, d) {
|
|
2112
2118
|
let f = g("dot"), m = g("select-multiple"), _ = g("field-description");
|
|
2113
|
-
return p(), i("div",
|
|
2114
|
-
a("div",
|
|
2119
|
+
return p(), i("div", ir, [
|
|
2120
|
+
a("div", ar, [a("span", {
|
|
2115
2121
|
id: l.labelId,
|
|
2116
2122
|
class: "bb:block bb:text-sm bb:font-medium bb:leading-5 bb:text-gray-700",
|
|
2117
2123
|
textContent: y(o.label ?? "")
|
|
2118
|
-
}, null, 8,
|
|
2124
|
+
}, null, 8, or), w(c(f, {
|
|
2119
2125
|
color: "red-pale",
|
|
2120
2126
|
class: "bb:ml-2"
|
|
2121
2127
|
}, null, 512), [[S, o.isRequired]])]),
|
|
2122
|
-
a("div",
|
|
2128
|
+
a("div", sr, [c(m, {
|
|
2123
2129
|
items: o.items,
|
|
2124
2130
|
"model-value": o.modelValue,
|
|
2125
2131
|
"with-search": o.withSearch,
|
|
@@ -2145,17 +2151,17 @@ function or(e, t, o, l, u, d) {
|
|
|
2145
2151
|
}, 8, ["id"])) : r("", !0)
|
|
2146
2152
|
]);
|
|
2147
2153
|
}
|
|
2148
|
-
var
|
|
2149
|
-
function
|
|
2154
|
+
var lr = /*#__PURE__*/ j(rr, [["render", cr]]);
|
|
2155
|
+
function ur(e) {
|
|
2150
2156
|
return Number.isInteger(e) && e >= 1;
|
|
2151
2157
|
}
|
|
2152
|
-
function
|
|
2153
|
-
return
|
|
2158
|
+
function U(e) {
|
|
2159
|
+
return ur(e) ? e : 2;
|
|
2154
2160
|
}
|
|
2155
|
-
function
|
|
2161
|
+
function dr(e) {
|
|
2156
2162
|
return { gridTemplateColumns: `repeat(${e}, minmax(0, 1fr))` };
|
|
2157
2163
|
}
|
|
2158
|
-
function
|
|
2164
|
+
function fr(e, t) {
|
|
2159
2165
|
let n = Math.floor(e / t), r = e % t, i = [];
|
|
2160
2166
|
for (let e = 0; e < t; e++) {
|
|
2161
2167
|
let t = e < r ? n + 1 : n;
|
|
@@ -2168,12 +2174,12 @@ function lr(e, t) {
|
|
|
2168
2174
|
}
|
|
2169
2175
|
//#endregion
|
|
2170
2176
|
//#region src/components/SelectMultipleList.vue
|
|
2171
|
-
var
|
|
2177
|
+
var pr = {
|
|
2172
2178
|
components: {
|
|
2173
|
-
Dot:
|
|
2174
|
-
FieldDescription:
|
|
2179
|
+
Dot: M,
|
|
2180
|
+
FieldDescription: H
|
|
2175
2181
|
},
|
|
2176
|
-
mixins: [
|
|
2182
|
+
mixins: [V],
|
|
2177
2183
|
emits: ["update:modelValue", "changed"],
|
|
2178
2184
|
props: {
|
|
2179
2185
|
items: {
|
|
@@ -2195,7 +2201,7 @@ var ur = {
|
|
|
2195
2201
|
columns: {
|
|
2196
2202
|
type: Number,
|
|
2197
2203
|
default: 2,
|
|
2198
|
-
validator:
|
|
2204
|
+
validator: ur
|
|
2199
2205
|
}
|
|
2200
2206
|
},
|
|
2201
2207
|
setup() {
|
|
@@ -2209,10 +2215,10 @@ var ur = {
|
|
|
2209
2215
|
return Array.isArray(this.modelValue) ? this.modelValue : [];
|
|
2210
2216
|
},
|
|
2211
2217
|
gridStyle() {
|
|
2212
|
-
return
|
|
2218
|
+
return dr(U(this.columns));
|
|
2213
2219
|
},
|
|
2214
2220
|
itemStyles() {
|
|
2215
|
-
return
|
|
2221
|
+
return fr(this.itemList.length, U(this.columns));
|
|
2216
2222
|
}
|
|
2217
2223
|
},
|
|
2218
2224
|
methods: {
|
|
@@ -2231,20 +2237,20 @@ var ur = {
|
|
|
2231
2237
|
});
|
|
2232
2238
|
}
|
|
2233
2239
|
}
|
|
2234
|
-
},
|
|
2240
|
+
}, mr = { class: "bb-dashboard-ui" }, hr = { class: "bb:flex bb:items-center" }, gr = ["id", "textContent"], _r = ["aria-labelledby", "aria-describedby"], vr = { class: "bb:relative bb:flex bb:shrink-0" }, yr = ["checked", "onChange"], br = {
|
|
2235
2241
|
key: 0,
|
|
2236
2242
|
class: "bb:pointer-events-none bb:absolute bb:inset-0 bb:size-4 bb:fill-white bb:forced-colors:hidden",
|
|
2237
2243
|
viewBox: "0 0 16 16",
|
|
2238
2244
|
"aria-hidden": "true"
|
|
2239
|
-
},
|
|
2240
|
-
function
|
|
2245
|
+
}, xr = ["textContent"];
|
|
2246
|
+
function Sr(t, o, l, u, _, v) {
|
|
2241
2247
|
let b = g("dot"), x = g("field-description");
|
|
2242
|
-
return p(), i("div",
|
|
2243
|
-
a("div",
|
|
2248
|
+
return p(), i("div", mr, [
|
|
2249
|
+
a("div", hr, [a("span", {
|
|
2244
2250
|
id: u.labelId,
|
|
2245
2251
|
class: "bb:block bb:text-sm bb:font-medium bb:leading-5 bb:text-gray-700",
|
|
2246
2252
|
textContent: y(l.label ?? "")
|
|
2247
|
-
}, null, 8,
|
|
2253
|
+
}, null, 8, gr), w(c(b, {
|
|
2248
2254
|
color: "red-pale",
|
|
2249
2255
|
class: "bb:ml-2"
|
|
2250
2256
|
}, null, 512), [[S, l.isRequired]])]),
|
|
@@ -2259,15 +2265,15 @@ function yr(t, o, l, u, _, v) {
|
|
|
2259
2265
|
key: t,
|
|
2260
2266
|
style: f(v.itemStyles[t]),
|
|
2261
2267
|
class: "bb:flex bb:items-center"
|
|
2262
|
-
}, [a("span",
|
|
2268
|
+
}, [a("span", vr, [a("input", {
|
|
2263
2269
|
type: "checkbox",
|
|
2264
2270
|
checked: v.isChecked(e),
|
|
2265
2271
|
class: d(["bb:size-4 bb:rounded bb:choice-border bb:bg-none bb:focus-visible:focus-ring bb:forced-colors:appearance-auto", v.isChecked(e) ? "bb:border-indigo-600 bb:bg-indigo-600" : "bb:border-gray-300 bb:bg-white"]),
|
|
2266
2272
|
onChange: (t) => v.toggle(e)
|
|
2267
|
-
}, null, 42,
|
|
2273
|
+
}, null, 42, yr), v.isChecked(e) ? (p(), i("svg", br, [...o[0] ||= [a("path", { d: "M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z" }, null, -1)]])) : r("", !0)]), a("span", {
|
|
2268
2274
|
class: "bb:ml-3 bb:text-sm bb:font-medium bb:text-gray-700",
|
|
2269
2275
|
textContent: y(v.itemName(e))
|
|
2270
|
-
}, null, 8,
|
|
2276
|
+
}, null, 8, xr)], 4))), 128))], 12, _r)) : r("", !0),
|
|
2271
2277
|
t.hasDescription() ? (p(), n(x, {
|
|
2272
2278
|
key: 1,
|
|
2273
2279
|
id: t.descriptionId(u.labelId)
|
|
@@ -2277,13 +2283,13 @@ function yr(t, o, l, u, _, v) {
|
|
|
2277
2283
|
}, 8, ["id"])) : r("", !0)
|
|
2278
2284
|
]);
|
|
2279
2285
|
}
|
|
2280
|
-
var
|
|
2286
|
+
var Cr = /*#__PURE__*/ j(pr, [["render", Sr]]), wr = {
|
|
2281
2287
|
components: {
|
|
2282
|
-
DropdownButton:
|
|
2283
|
-
ListElement:
|
|
2284
|
-
ListSearchField:
|
|
2288
|
+
DropdownButton: Pn,
|
|
2289
|
+
ListElement: Bn,
|
|
2290
|
+
ListSearchField: Kn
|
|
2285
2291
|
},
|
|
2286
|
-
mixins: [
|
|
2292
|
+
mixins: [P, wn],
|
|
2287
2293
|
emits: ["update:modelValue", "changed"],
|
|
2288
2294
|
props: {
|
|
2289
2295
|
items: {
|
|
@@ -2349,10 +2355,10 @@ var br = /*#__PURE__*/ M(ur, [["render", yr]]), xr = {
|
|
|
2349
2355
|
return this.activeItemElement() ?? this.searchInput();
|
|
2350
2356
|
}
|
|
2351
2357
|
}
|
|
2352
|
-
},
|
|
2353
|
-
function
|
|
2358
|
+
}, Tr = { class: "bb-dashboard-ui bb:flex bb:flex-col bb:grow" }, Er = ["textContent"];
|
|
2359
|
+
function Dr(t, a, o, s, c, l) {
|
|
2354
2360
|
let u = g("list-search-field"), d = g("list-element"), f = g("dropdown-button");
|
|
2355
|
-
return p(), i("div",
|
|
2361
|
+
return p(), i("div", Tr, [l.hasItems ? (p(), n(f, {
|
|
2356
2362
|
key: 0,
|
|
2357
2363
|
title: l.activeItemName,
|
|
2358
2364
|
"is-open": c.isOpen,
|
|
@@ -2393,7 +2399,7 @@ function wr(t, a, o, s, c, l) {
|
|
|
2393
2399
|
key: 2,
|
|
2394
2400
|
class: "bb:px-3 bb:py-2 bb:text-sm bb:text-gray-500 bb:text-center",
|
|
2395
2401
|
textContent: y(t.texts.nothingFound)
|
|
2396
|
-
}, null, 8,
|
|
2402
|
+
}, null, 8, Er))]),
|
|
2397
2403
|
_: 1
|
|
2398
2404
|
}, 8, [
|
|
2399
2405
|
"title",
|
|
@@ -2411,10 +2417,10 @@ function wr(t, a, o, s, c, l) {
|
|
|
2411
2417
|
"onToggle"
|
|
2412
2418
|
])) : r("", !0)]);
|
|
2413
2419
|
}
|
|
2414
|
-
var
|
|
2420
|
+
var W = /*#__PURE__*/ j(wr, [["render", Dr]]), Or = {
|
|
2415
2421
|
components: {
|
|
2416
|
-
ElementHeader:
|
|
2417
|
-
SelectSingle:
|
|
2422
|
+
ElementHeader: N,
|
|
2423
|
+
SelectSingle: W
|
|
2418
2424
|
},
|
|
2419
2425
|
emits: ["update:modelValue", "changed"],
|
|
2420
2426
|
props: {
|
|
@@ -2447,10 +2453,10 @@ var q = /*#__PURE__*/ M(xr, [["render", wr]]), Tr = {
|
|
|
2447
2453
|
default: null
|
|
2448
2454
|
}
|
|
2449
2455
|
}
|
|
2450
|
-
},
|
|
2451
|
-
function
|
|
2456
|
+
}, kr = { class: "bb-dashboard-ui bb:flex bb:flex-none bb:w-fit bb:h-18 bb:border bb:border-gray-200" }, Ar = { class: "bb:flex bb:w-full bb:flex-col bb:border bb:border-white bb:bg-white" };
|
|
2457
|
+
function jr(e, t, n, r, o, s) {
|
|
2452
2458
|
let l = g("element-header"), u = g("select-single");
|
|
2453
|
-
return p(), i("div",
|
|
2459
|
+
return p(), i("div", kr, [a("div", Ar, [c(l, {
|
|
2454
2460
|
text: n.header ?? "",
|
|
2455
2461
|
"is-required": n.isRequired,
|
|
2456
2462
|
"is-loading": n.isLoading
|
|
@@ -2472,13 +2478,13 @@ function Or(e, t, n, r, o, s) {
|
|
|
2472
2478
|
"lang"
|
|
2473
2479
|
])])]);
|
|
2474
2480
|
}
|
|
2475
|
-
var
|
|
2481
|
+
var Mr = /*#__PURE__*/ j(Or, [["render", jr]]), Nr = {
|
|
2476
2482
|
components: {
|
|
2477
|
-
Dot:
|
|
2478
|
-
FieldDescription:
|
|
2479
|
-
SelectSingle:
|
|
2483
|
+
Dot: M,
|
|
2484
|
+
FieldDescription: H,
|
|
2485
|
+
SelectSingle: W
|
|
2480
2486
|
},
|
|
2481
|
-
mixins: [
|
|
2487
|
+
mixins: [V],
|
|
2482
2488
|
emits: ["update:modelValue", "changed"],
|
|
2483
2489
|
props: {
|
|
2484
2490
|
items: {
|
|
@@ -2509,19 +2515,19 @@ var kr = /*#__PURE__*/ M(Tr, [["render", Or]]), Ar = {
|
|
|
2509
2515
|
setup() {
|
|
2510
2516
|
return { labelId: b() };
|
|
2511
2517
|
}
|
|
2512
|
-
},
|
|
2513
|
-
function
|
|
2518
|
+
}, Pr = { class: "bb-dashboard-ui" }, Fr = { class: "bb:flex bb:items-center" }, Ir = ["id", "textContent"], Lr = { class: "bb:mt-1 bb:h-9.5 bb:w-full bb:field-frame bb:text-sm bb:flex bb:flex-col" };
|
|
2519
|
+
function Rr(e, t, o, l, u, d) {
|
|
2514
2520
|
let f = g("dot"), m = g("select-single"), _ = g("field-description");
|
|
2515
|
-
return p(), i("div",
|
|
2516
|
-
a("div",
|
|
2521
|
+
return p(), i("div", Pr, [
|
|
2522
|
+
a("div", Fr, [a("span", {
|
|
2517
2523
|
id: l.labelId,
|
|
2518
2524
|
class: "bb:block bb:text-sm bb:font-medium bb:leading-5 bb:text-gray-700",
|
|
2519
2525
|
textContent: y(o.label ?? "")
|
|
2520
|
-
}, null, 8,
|
|
2526
|
+
}, null, 8, Ir), w(c(f, {
|
|
2521
2527
|
color: "red-pale",
|
|
2522
2528
|
class: "bb:ml-2"
|
|
2523
2529
|
}, null, 512), [[S, o.isRequired]])]),
|
|
2524
|
-
a("div",
|
|
2530
|
+
a("div", Lr, [c(m, {
|
|
2525
2531
|
items: o.items,
|
|
2526
2532
|
"model-value": o.modelValue,
|
|
2527
2533
|
"with-search": o.withSearch,
|
|
@@ -2547,12 +2553,12 @@ function Fr(e, t, o, l, u, d) {
|
|
|
2547
2553
|
}, 8, ["id"])) : r("", !0)
|
|
2548
2554
|
]);
|
|
2549
2555
|
}
|
|
2550
|
-
var
|
|
2556
|
+
var zr = /*#__PURE__*/ j(Nr, [["render", Rr]]), Br = {
|
|
2551
2557
|
components: {
|
|
2552
|
-
Dot:
|
|
2553
|
-
FieldDescription:
|
|
2558
|
+
Dot: M,
|
|
2559
|
+
FieldDescription: H
|
|
2554
2560
|
},
|
|
2555
|
-
mixins: [
|
|
2561
|
+
mixins: [V],
|
|
2556
2562
|
emits: ["update:modelValue", "changed"],
|
|
2557
2563
|
props: {
|
|
2558
2564
|
items: {
|
|
@@ -2578,7 +2584,7 @@ var Ir = /*#__PURE__*/ M(Ar, [["render", Fr]]), Lr = {
|
|
|
2578
2584
|
columns: {
|
|
2579
2585
|
type: Number,
|
|
2580
2586
|
default: 2,
|
|
2581
|
-
validator:
|
|
2587
|
+
validator: ur
|
|
2582
2588
|
}
|
|
2583
2589
|
},
|
|
2584
2590
|
setup() {
|
|
@@ -2592,10 +2598,10 @@ var Ir = /*#__PURE__*/ M(Ar, [["render", Fr]]), Lr = {
|
|
|
2592
2598
|
return Array.isArray(this.items) ? this.items.filter((e) => typeof e == "object" && !!e) : [];
|
|
2593
2599
|
},
|
|
2594
2600
|
gridStyle() {
|
|
2595
|
-
return
|
|
2601
|
+
return dr(U(this.columns));
|
|
2596
2602
|
},
|
|
2597
2603
|
itemStyles() {
|
|
2598
|
-
return
|
|
2604
|
+
return fr(this.itemList.length, U(this.columns));
|
|
2599
2605
|
}
|
|
2600
2606
|
},
|
|
2601
2607
|
methods: {
|
|
@@ -2614,22 +2620,22 @@ var Ir = /*#__PURE__*/ M(Ar, [["render", Fr]]), Lr = {
|
|
|
2614
2620
|
});
|
|
2615
2621
|
}
|
|
2616
2622
|
}
|
|
2617
|
-
},
|
|
2623
|
+
}, Vr = { class: "bb-dashboard-ui" }, Hr = { class: "bb:flex bb:items-center" }, Ur = ["id", "textContent"], Wr = ["aria-labelledby", "aria-describedby"], Gr = [
|
|
2618
2624
|
"name",
|
|
2619
2625
|
"checked",
|
|
2620
2626
|
"onChange"
|
|
2621
|
-
],
|
|
2627
|
+
], Kr = {
|
|
2622
2628
|
key: 0,
|
|
2623
2629
|
class: "bb:size-2 bb:rounded-full bb:bg-indigo-600 bb:forced-colors:bg-[CanvasText]"
|
|
2624
|
-
},
|
|
2625
|
-
function
|
|
2630
|
+
}, qr = ["textContent"];
|
|
2631
|
+
function Jr(t, o, l, u, _, v) {
|
|
2626
2632
|
let b = g("dot"), x = g("field-description");
|
|
2627
|
-
return p(), i("div",
|
|
2628
|
-
a("div",
|
|
2633
|
+
return p(), i("div", Vr, [
|
|
2634
|
+
a("div", Hr, [a("span", {
|
|
2629
2635
|
id: u.labelId,
|
|
2630
2636
|
class: "bb:block bb:text-sm bb:font-medium bb:leading-5 bb:text-gray-700",
|
|
2631
2637
|
textContent: y(l.label ?? "")
|
|
2632
|
-
}, null, 8,
|
|
2638
|
+
}, null, 8, Ur), w(c(b, {
|
|
2633
2639
|
color: "red-pale",
|
|
2634
2640
|
class: "bb:ml-2"
|
|
2635
2641
|
}, null, 512), [[S, l.isRequired]])]),
|
|
@@ -2651,13 +2657,13 @@ function Gr(t, o, l, u, _, v) {
|
|
|
2651
2657
|
checked: v.isSelected(e),
|
|
2652
2658
|
class: "bb:absolute bb:inset-0 bb:size-full bb:cursor-pointer bb:bg-none bb:opacity-0",
|
|
2653
2659
|
onChange: (t) => v.select(e)
|
|
2654
|
-
}, null, 40,
|
|
2655
|
-
a("span", { class: d(["bb:pointer-events-none bb:cursor-default bb:shrink-0 bb:mt-0.5 bb:size-4 bb:rounded-full bb:choice-border bb:flex bb:items-center bb:justify-center", v.isSelected(e) ? "bb:border-indigo-600 bb:forced-colors:border-[Highlight]" : "bb:border-gray-300"]) }, [v.isSelected(e) ? (p(), i("span",
|
|
2660
|
+
}, null, 40, Gr),
|
|
2661
|
+
a("span", { class: d(["bb:pointer-events-none bb:cursor-default bb:shrink-0 bb:mt-0.5 bb:size-4 bb:rounded-full bb:choice-border bb:flex bb:items-center bb:justify-center", v.isSelected(e) ? "bb:border-indigo-600 bb:forced-colors:border-[Highlight]" : "bb:border-gray-300"]) }, [v.isSelected(e) ? (p(), i("span", Kr)) : r("", !0)], 2),
|
|
2656
2662
|
a("span", {
|
|
2657
2663
|
class: "bb:pointer-events-none bb:cursor-default bb:ml-3 bb:text-sm bb:font-medium bb:text-gray-700",
|
|
2658
2664
|
textContent: y(v.itemName(e))
|
|
2659
|
-
}, null, 8,
|
|
2660
|
-
], 6))), 128))], 12,
|
|
2665
|
+
}, null, 8, qr)
|
|
2666
|
+
], 6))), 128))], 12, Wr)) : r("", !0),
|
|
2661
2667
|
t.hasDescription() ? (p(), n(x, {
|
|
2662
2668
|
key: 1,
|
|
2663
2669
|
id: t.descriptionId(u.labelId)
|
|
@@ -2667,7 +2673,7 @@ function Gr(t, o, l, u, _, v) {
|
|
|
2667
2673
|
}, 8, ["id"])) : r("", !0)
|
|
2668
2674
|
]);
|
|
2669
2675
|
}
|
|
2670
|
-
var
|
|
2676
|
+
var Yr = /*#__PURE__*/ j(Br, [["render", Jr]]), Xr = [
|
|
2671
2677
|
{
|
|
2672
2678
|
code: "AED",
|
|
2673
2679
|
digits: 2,
|
|
@@ -3449,29 +3455,29 @@ var Kr = /*#__PURE__*/ M(Lr, [["render", Gr]]), qr = [
|
|
|
3449
3455
|
symbol: null
|
|
3450
3456
|
}
|
|
3451
3457
|
];
|
|
3452
|
-
function
|
|
3453
|
-
if (e == null) return
|
|
3458
|
+
function G(e) {
|
|
3459
|
+
if (e == null) return Xr;
|
|
3454
3460
|
if (!Array.isArray(e)) return [];
|
|
3455
3461
|
let t = [];
|
|
3456
3462
|
for (let n of e) {
|
|
3457
|
-
let e =
|
|
3463
|
+
let e = Xr.find((e) => e.code === n);
|
|
3458
3464
|
e && !t.includes(e) && t.push(e);
|
|
3459
3465
|
}
|
|
3460
3466
|
return t;
|
|
3461
3467
|
}
|
|
3462
|
-
function
|
|
3468
|
+
function Zr(e) {
|
|
3463
3469
|
return e.symbol === null ? e.code : `${e.code} ${e.symbol}`;
|
|
3464
3470
|
}
|
|
3465
|
-
function
|
|
3471
|
+
function K(e) {
|
|
3466
3472
|
return e.map((e) => ({
|
|
3467
3473
|
id: e.code,
|
|
3468
|
-
name:
|
|
3474
|
+
name: Zr(e)
|
|
3469
3475
|
}));
|
|
3470
3476
|
}
|
|
3471
3477
|
//#endregion
|
|
3472
3478
|
//#region src/components/SelectCurrencyFilter.vue
|
|
3473
|
-
var
|
|
3474
|
-
components: { SelectSingleFilter:
|
|
3479
|
+
var Qr = {
|
|
3480
|
+
components: { SelectSingleFilter: Mr },
|
|
3475
3481
|
emits: ["update:modelValue", "changed"],
|
|
3476
3482
|
props: {
|
|
3477
3483
|
modelValue: {
|
|
@@ -3504,10 +3510,10 @@ var Yr = {
|
|
|
3504
3510
|
}
|
|
3505
3511
|
},
|
|
3506
3512
|
computed: { items() {
|
|
3507
|
-
return
|
|
3513
|
+
return K(G(this.currencies));
|
|
3508
3514
|
} }
|
|
3509
3515
|
};
|
|
3510
|
-
function
|
|
3516
|
+
function $r(e, t, r, i, a, o) {
|
|
3511
3517
|
let s = g("select-single-filter");
|
|
3512
3518
|
return p(), n(s, {
|
|
3513
3519
|
items: o.items,
|
|
@@ -3529,9 +3535,9 @@ function Xr(e, t, r, i, a, o) {
|
|
|
3529
3535
|
"lang"
|
|
3530
3536
|
]);
|
|
3531
3537
|
}
|
|
3532
|
-
var
|
|
3533
|
-
components: { SelectSingleForm:
|
|
3534
|
-
mixins: [
|
|
3538
|
+
var ei = /*#__PURE__*/ j(Qr, [["render", $r]]), ti = {
|
|
3539
|
+
components: { SelectSingleForm: zr },
|
|
3540
|
+
mixins: [V],
|
|
3535
3541
|
emits: ["update:modelValue", "changed"],
|
|
3536
3542
|
props: {
|
|
3537
3543
|
modelValue: {
|
|
@@ -3560,10 +3566,10 @@ var Zr = /*#__PURE__*/ M(Yr, [["render", Xr]]), Qr = {
|
|
|
3560
3566
|
}
|
|
3561
3567
|
},
|
|
3562
3568
|
computed: { items() {
|
|
3563
|
-
return
|
|
3569
|
+
return K(G(this.currencies));
|
|
3564
3570
|
} }
|
|
3565
3571
|
};
|
|
3566
|
-
function
|
|
3572
|
+
function ni(e, t, r, i, a, s) {
|
|
3567
3573
|
let c = g("select-single-form");
|
|
3568
3574
|
return p(), n(c, {
|
|
3569
3575
|
items: s.items,
|
|
@@ -3589,11 +3595,11 @@ function $r(e, t, r, i, a, s) {
|
|
|
3589
3595
|
"description"
|
|
3590
3596
|
]);
|
|
3591
3597
|
}
|
|
3592
|
-
var
|
|
3593
|
-
function
|
|
3598
|
+
var ri = /*#__PURE__*/ j(ti, [["render", ni]]);
|
|
3599
|
+
function q(e) {
|
|
3594
3600
|
return !Number.isInteger(e) || e < 0 || e >= 10 ** 15 ? null : e;
|
|
3595
3601
|
}
|
|
3596
|
-
function
|
|
3602
|
+
function J(e, t) {
|
|
3597
3603
|
if (e === null) return {
|
|
3598
3604
|
whole: "",
|
|
3599
3605
|
fraction: ""
|
|
@@ -3604,25 +3610,25 @@ function ti(e, t) {
|
|
|
3604
3610
|
fraction: n.slice(r)
|
|
3605
3611
|
};
|
|
3606
3612
|
}
|
|
3607
|
-
function
|
|
3613
|
+
function ii(e, t, n) {
|
|
3608
3614
|
return e === "" && t === "" ? null : Number((e || "0") + t.padEnd(n, "0"));
|
|
3609
3615
|
}
|
|
3610
|
-
function
|
|
3616
|
+
function ai(e) {
|
|
3611
3617
|
return e.replace(/\D/g, "");
|
|
3612
3618
|
}
|
|
3613
|
-
function
|
|
3614
|
-
return
|
|
3619
|
+
function oi(e, t) {
|
|
3620
|
+
return ai(e).replace(/^0+(?=\d)/, "").slice(0, 15 - t);
|
|
3615
3621
|
}
|
|
3616
|
-
function
|
|
3622
|
+
function si(e, t) {
|
|
3617
3623
|
return e.replace(/\B(?=(\d{3})+$)/g, t === "en" ? "," : " ");
|
|
3618
3624
|
}
|
|
3619
|
-
function
|
|
3625
|
+
function ci(e) {
|
|
3620
3626
|
return e === "en" ? "." : ",";
|
|
3621
3627
|
}
|
|
3622
|
-
function
|
|
3628
|
+
function li(e, t) {
|
|
3623
3629
|
return e === "." || e === "," && t !== "en";
|
|
3624
3630
|
}
|
|
3625
|
-
function
|
|
3631
|
+
function ui(e, t, n) {
|
|
3626
3632
|
let r = e.trim();
|
|
3627
3633
|
if (!/^\d+([ \u00a0\u202f.,]\d+)*$/.test(r)) return null;
|
|
3628
3634
|
let i = r.match(/[.,]/g) ?? [], a = new Set(i), o = null;
|
|
@@ -3644,14 +3650,14 @@ function ci(e, t, n) {
|
|
|
3644
3650
|
}
|
|
3645
3651
|
//#endregion
|
|
3646
3652
|
//#region src/amountCurrency.js
|
|
3647
|
-
var
|
|
3653
|
+
var di = {
|
|
3648
3654
|
props: { currencies: {
|
|
3649
3655
|
type: Array,
|
|
3650
3656
|
default: null
|
|
3651
3657
|
} },
|
|
3652
3658
|
computed: {
|
|
3653
3659
|
currencyList() {
|
|
3654
|
-
return
|
|
3660
|
+
return G(this.currencies);
|
|
3655
3661
|
},
|
|
3656
3662
|
activeCurrency() {
|
|
3657
3663
|
return this.currencyList.find((e) => e.code === this.passedCurrency) ?? this.currencyList[0] ?? null;
|
|
@@ -3678,9 +3684,9 @@ var li = {
|
|
|
3678
3684
|
methods: { syncCurrency() {
|
|
3679
3685
|
!this.isBlocked && this.activeCode !== this.passedCurrency && this.reportCurrency(this.activeCode);
|
|
3680
3686
|
} }
|
|
3681
|
-
},
|
|
3682
|
-
components: { SelectSingle:
|
|
3683
|
-
mixins: [
|
|
3687
|
+
}, fi = {
|
|
3688
|
+
components: { SelectSingle: W },
|
|
3689
|
+
mixins: [P],
|
|
3684
3690
|
emits: ["update:modelValue"],
|
|
3685
3691
|
props: {
|
|
3686
3692
|
currencies: {
|
|
@@ -3696,20 +3702,20 @@ var li = {
|
|
|
3696
3702
|
return { labelId: b() };
|
|
3697
3703
|
},
|
|
3698
3704
|
computed: { items() {
|
|
3699
|
-
return
|
|
3705
|
+
return K(this.currencies);
|
|
3700
3706
|
} }
|
|
3701
|
-
},
|
|
3702
|
-
function
|
|
3707
|
+
}, pi = { class: "bb:relative bb:flex bb:flex-col bb:justify-center bb:h-full bb:w-full bb:min-w-0" }, mi = ["textContent"], hi = ["id", "textContent"];
|
|
3708
|
+
function gi(t, n, o, s, l, u) {
|
|
3703
3709
|
let d = g("select-single");
|
|
3704
|
-
return p(), i("div",
|
|
3710
|
+
return p(), i("div", pi, [u.items.length === 1 ? (p(), i("span", {
|
|
3705
3711
|
key: 0,
|
|
3706
3712
|
class: "bb:truncate bb:px-3",
|
|
3707
3713
|
textContent: y(u.items[0].name)
|
|
3708
|
-
}, null, 8,
|
|
3714
|
+
}, null, 8, mi)) : u.items.length > 1 ? (p(), i(e, { key: 1 }, [a("span", {
|
|
3709
3715
|
id: s.labelId,
|
|
3710
3716
|
class: "bb:sr-only",
|
|
3711
3717
|
textContent: y(t.texts.currency)
|
|
3712
|
-
}, null, 8,
|
|
3718
|
+
}, null, 8, hi), c(d, {
|
|
3713
3719
|
items: u.items,
|
|
3714
3720
|
"model-value": o.modelValue,
|
|
3715
3721
|
"labelled-by": s.labelId,
|
|
@@ -3725,9 +3731,9 @@ function mi(t, n, o, s, l, u) {
|
|
|
3725
3731
|
"lang"
|
|
3726
3732
|
])], 64)) : r("", !0)]);
|
|
3727
3733
|
}
|
|
3728
|
-
var
|
|
3729
|
-
components: { CrossButton:
|
|
3730
|
-
mixins: [
|
|
3734
|
+
var Y = /*#__PURE__*/ j(fi, [["render", gi]]), _i = {
|
|
3735
|
+
components: { CrossButton: F },
|
|
3736
|
+
mixins: [P],
|
|
3731
3737
|
emits: ["update:modelValue", "changed"],
|
|
3732
3738
|
props: {
|
|
3733
3739
|
modelValue: {
|
|
@@ -3761,13 +3767,13 @@ var hi = /*#__PURE__*/ M(ui, [["render", mi]]), gi = {
|
|
|
3761
3767
|
},
|
|
3762
3768
|
data() {
|
|
3763
3769
|
return {
|
|
3764
|
-
...
|
|
3770
|
+
...J(this.isDisabled ? null : q(this.modelValue), this.digits),
|
|
3765
3771
|
hasFocus: !1
|
|
3766
3772
|
};
|
|
3767
3773
|
},
|
|
3768
3774
|
computed: {
|
|
3769
3775
|
amount() {
|
|
3770
|
-
return
|
|
3776
|
+
return ii(this.whole, this.fraction, this.digits);
|
|
3771
3777
|
},
|
|
3772
3778
|
isEmpty() {
|
|
3773
3779
|
return this.amount === null;
|
|
@@ -3776,14 +3782,14 @@ var hi = /*#__PURE__*/ M(ui, [["render", mi]]), gi = {
|
|
|
3776
3782
|
return this.isEmpty && !this.hasFocus;
|
|
3777
3783
|
},
|
|
3778
3784
|
groupedWhole() {
|
|
3779
|
-
return
|
|
3785
|
+
return si(this.whole, this.resolvedLang);
|
|
3780
3786
|
},
|
|
3781
3787
|
separator() {
|
|
3782
|
-
return
|
|
3788
|
+
return ci(this.resolvedLang);
|
|
3783
3789
|
},
|
|
3784
3790
|
fullAmount() {
|
|
3785
3791
|
if (this.isEmpty) return null;
|
|
3786
|
-
let { whole: e, fraction: t } =
|
|
3792
|
+
let { whole: e, fraction: t } = J(this.amount, this.digits), n = si(e, this.resolvedLang);
|
|
3787
3793
|
return t === "" ? n : `${n}${this.separator}${t}`;
|
|
3788
3794
|
}
|
|
3789
3795
|
},
|
|
@@ -3803,12 +3809,12 @@ var hi = /*#__PURE__*/ M(ui, [["render", mi]]), gi = {
|
|
|
3803
3809
|
this.writeAmount(null, t), this.hasFocus = !1;
|
|
3804
3810
|
return;
|
|
3805
3811
|
}
|
|
3806
|
-
let o =
|
|
3812
|
+
let o = q(e);
|
|
3807
3813
|
if (a) {
|
|
3808
3814
|
this.writeAmount(o, t), this.committed = o;
|
|
3809
3815
|
return;
|
|
3810
3816
|
}
|
|
3811
|
-
let s =
|
|
3817
|
+
let s = ii(this.whole, this.fraction, i);
|
|
3812
3818
|
if (e === r || o === s) {
|
|
3813
3819
|
t !== i && this.writeAmount(s, t);
|
|
3814
3820
|
return;
|
|
@@ -3816,7 +3822,7 @@ var hi = /*#__PURE__*/ M(ui, [["render", mi]]), gi = {
|
|
|
3816
3822
|
this.writeAmount(o, t), this.committed = o;
|
|
3817
3823
|
},
|
|
3818
3824
|
writeAmount(e, t) {
|
|
3819
|
-
let { whole: n, fraction: r } =
|
|
3825
|
+
let { whole: n, fraction: r } = J(e, t);
|
|
3820
3826
|
this.whole = n, this.fraction = r;
|
|
3821
3827
|
},
|
|
3822
3828
|
applyParts(e, t) {
|
|
@@ -3824,10 +3830,10 @@ var hi = /*#__PURE__*/ M(ui, [["render", mi]]), gi = {
|
|
|
3824
3830
|
this.whole = e, this.fraction = t, this.amount !== n && this.$emit("update:modelValue", this.amount);
|
|
3825
3831
|
},
|
|
3826
3832
|
onWholeInput(e) {
|
|
3827
|
-
this.applyParts(
|
|
3833
|
+
this.applyParts(oi(e.target.value, this.digits), this.fraction), e.target.value = this.groupedWhole;
|
|
3828
3834
|
},
|
|
3829
3835
|
onFractionInput(e) {
|
|
3830
|
-
let t = e.target, n = t.value, r = t.selectionStart, i =
|
|
3836
|
+
let t = e.target, n = t.value, r = t.selectionStart, i = ai(n).slice(0, this.digits);
|
|
3831
3837
|
if (this.applyParts(this.whole, i), t.value = i, i !== n) {
|
|
3832
3838
|
let e = Math.max(r - (n.length - i.length), 0);
|
|
3833
3839
|
t.setSelectionRange(e, e);
|
|
@@ -3846,7 +3852,7 @@ var hi = /*#__PURE__*/ M(ui, [["render", mi]]), gi = {
|
|
|
3846
3852
|
onWholeKeydown(e) {
|
|
3847
3853
|
this.holdCaret();
|
|
3848
3854
|
let t = e.metaKey || e.ctrlKey || e.altKey;
|
|
3849
|
-
this.digits > 0 && !t &&
|
|
3855
|
+
this.digits > 0 && !t && li(e.key, this.resolvedLang) && (e.preventDefault(), this.$refs.fractionInput.focus());
|
|
3850
3856
|
},
|
|
3851
3857
|
onFractionBackspace(e) {
|
|
3852
3858
|
this.fraction === "" && (e.preventDefault(), this.$refs.wholeInput.focus());
|
|
@@ -3858,7 +3864,7 @@ var hi = /*#__PURE__*/ M(ui, [["render", mi]]), gi = {
|
|
|
3858
3864
|
this.fraction !== "" && (this.fraction = this.padFraction(this.fraction), this.whole = this.whole || "0");
|
|
3859
3865
|
},
|
|
3860
3866
|
onWholePaste(e) {
|
|
3861
|
-
let t =
|
|
3867
|
+
let t = ui(e.clipboardData?.getData("text") ?? "", this.resolvedLang, this.digits);
|
|
3862
3868
|
t !== null && (this.applyParts(t.whole, this.padFraction(t.fraction)), this.onWholeFocus());
|
|
3863
3869
|
},
|
|
3864
3870
|
onFractionPaste(e) {
|
|
@@ -3884,17 +3890,17 @@ var hi = /*#__PURE__*/ M(ui, [["render", mi]]), gi = {
|
|
|
3884
3890
|
this.isUnmounted || this.isDisabled || this.amount === this.committed || (this.committed = this.amount, this.$emit("changed"));
|
|
3885
3891
|
}
|
|
3886
3892
|
}
|
|
3887
|
-
},
|
|
3893
|
+
}, vi = {
|
|
3888
3894
|
key: 0,
|
|
3889
3895
|
class: "bb:flex bb:flex-none bb:items-center bb:mr-2 bb:text-gray-400 bb:select-none"
|
|
3890
|
-
},
|
|
3896
|
+
}, yi = [
|
|
3891
3897
|
"id",
|
|
3892
3898
|
"value",
|
|
3893
3899
|
"disabled",
|
|
3894
3900
|
"aria-label",
|
|
3895
3901
|
"aria-describedby",
|
|
3896
3902
|
"title"
|
|
3897
|
-
],
|
|
3903
|
+
], bi = [
|
|
3898
3904
|
"value",
|
|
3899
3905
|
"disabled",
|
|
3900
3906
|
"maxlength",
|
|
@@ -3902,7 +3908,7 @@ var hi = /*#__PURE__*/ M(ui, [["render", mi]]), gi = {
|
|
|
3902
3908
|
"aria-label",
|
|
3903
3909
|
"aria-describedby"
|
|
3904
3910
|
];
|
|
3905
|
-
function
|
|
3911
|
+
function xi(t, o, s, c, l, u) {
|
|
3906
3912
|
let m = g("cross-button");
|
|
3907
3913
|
return p(), i("div", {
|
|
3908
3914
|
class: d(["bb:flex bb:items-stretch bb:h-full bb:w-full bb:min-w-0 bb:pl-3 bb:rounded-[var(--bb-field-radius,0)] bb:has-focus-visible:focus-ring", { "bb:pr-3": !s.withEraser }]),
|
|
@@ -3910,7 +3916,7 @@ function bi(t, o, s, c, l, u) {
|
|
|
3910
3916
|
onFocusin: o[19] ||= (e) => l.hasFocus = !0,
|
|
3911
3917
|
onFocusout: o[20] ||= (...e) => u.onFocusOut && u.onFocusOut(...e)
|
|
3912
3918
|
}, [
|
|
3913
|
-
s.prefix ? (p(), i("span",
|
|
3919
|
+
s.prefix ? (p(), i("span", vi, y(s.prefix), 1)) : r("", !0),
|
|
3914
3920
|
a("input", {
|
|
3915
3921
|
ref: "wholeInput",
|
|
3916
3922
|
id: s.inputId,
|
|
@@ -3932,7 +3938,7 @@ function bi(t, o, s, c, l, u) {
|
|
|
3932
3938
|
onPaste: o[7] ||= E((...e) => u.onWholePaste && u.onWholePaste(...e), ["prevent"]),
|
|
3933
3939
|
onDragstart: o[8] ||= E(() => {}, ["prevent"]),
|
|
3934
3940
|
onDrop: o[9] ||= E(() => {}, ["prevent"])
|
|
3935
|
-
}, null, 40,
|
|
3941
|
+
}, null, 40, yi),
|
|
3936
3942
|
s.digits > 0 ? (p(), i(e, { key: 1 }, [w(a("span", { class: "bb:flex bb:items-center bb:text-gray-500" }, y(u.separator), 513), [[S, !u.isCollapsed]]), w(a("input", {
|
|
3937
3943
|
ref: "fractionInput",
|
|
3938
3944
|
type: "text",
|
|
@@ -3952,7 +3958,7 @@ function bi(t, o, s, c, l, u) {
|
|
|
3952
3958
|
onPaste: o[14] ||= E((...e) => u.onFractionPaste && u.onFractionPaste(...e), ["prevent"]),
|
|
3953
3959
|
onDragstart: o[15] ||= E(() => {}, ["prevent"]),
|
|
3954
3960
|
onDrop: o[16] ||= E(() => {}, ["prevent"])
|
|
3955
|
-
}, null, 44,
|
|
3961
|
+
}, null, 44, bi), [[S, !u.isCollapsed]])], 64)) : r("", !0),
|
|
3956
3962
|
s.withEraser ? (p(), n(m, {
|
|
3957
3963
|
key: 2,
|
|
3958
3964
|
ref: "eraser",
|
|
@@ -3968,14 +3974,14 @@ function bi(t, o, s, c, l, u) {
|
|
|
3968
3974
|
])) : r("", !0)
|
|
3969
3975
|
], 34);
|
|
3970
3976
|
}
|
|
3971
|
-
var
|
|
3977
|
+
var Si = /*#__PURE__*/ j(_i, [["render", xi]]), Ci = {
|
|
3972
3978
|
components: {
|
|
3973
|
-
AmountCurrency:
|
|
3974
|
-
AmountInput:
|
|
3975
|
-
Dot:
|
|
3976
|
-
FieldDescription:
|
|
3979
|
+
AmountCurrency: Y,
|
|
3980
|
+
AmountInput: Si,
|
|
3981
|
+
Dot: M,
|
|
3982
|
+
FieldDescription: H
|
|
3977
3983
|
},
|
|
3978
|
-
mixins: [
|
|
3984
|
+
mixins: [di, V],
|
|
3979
3985
|
emits: ["update:modelValue", "changed"],
|
|
3980
3986
|
props: {
|
|
3981
3987
|
modelValue: {
|
|
@@ -4004,7 +4010,7 @@ var xi = /*#__PURE__*/ M(gi, [["render", bi]]), Si = {
|
|
|
4004
4010
|
},
|
|
4005
4011
|
computed: {
|
|
4006
4012
|
passedAmount() {
|
|
4007
|
-
return
|
|
4013
|
+
return q(this.modelValue?.amount);
|
|
4008
4014
|
},
|
|
4009
4015
|
passedCurrency() {
|
|
4010
4016
|
return this.modelValue?.currency ?? null;
|
|
@@ -4027,19 +4033,19 @@ var xi = /*#__PURE__*/ M(gi, [["render", bi]]), Si = {
|
|
|
4027
4033
|
this.reportCurrency(e), this.passedAmount !== null && this.$emit("changed");
|
|
4028
4034
|
}
|
|
4029
4035
|
}
|
|
4030
|
-
},
|
|
4031
|
-
function
|
|
4036
|
+
}, wi = { class: "bb-dashboard-ui" }, Ti = { class: "bb:flex bb:items-center" }, Ei = ["for", "textContent"], Di = { class: "bb:mt-1 bb:flex bb:gap-3" }, Oi = { class: "bb:flex-1 bb:min-w-0 bb:h-9.5 bb:field-frame bb:text-sm" }, ki = { class: "bb:w-24 bb:flex-none bb:h-9.5 bb:field-frame bb:text-sm" };
|
|
4037
|
+
function Ai(e, t, o, l, u, d) {
|
|
4032
4038
|
let f = g("dot"), m = g("amount-input"), _ = g("amount-currency"), v = g("field-description");
|
|
4033
|
-
return p(), i("div",
|
|
4034
|
-
a("div",
|
|
4039
|
+
return p(), i("div", wi, [
|
|
4040
|
+
a("div", Ti, [a("label", {
|
|
4035
4041
|
for: l.inputId,
|
|
4036
4042
|
class: "bb:block bb:text-sm bb:font-medium bb:leading-5 bb:text-gray-700",
|
|
4037
4043
|
textContent: y(o.label)
|
|
4038
|
-
}, null, 8,
|
|
4044
|
+
}, null, 8, Ei), w(c(f, {
|
|
4039
4045
|
color: "red-pale",
|
|
4040
4046
|
class: "bb:ml-2"
|
|
4041
4047
|
}, null, 512), [[S, o.isRequired]])]),
|
|
4042
|
-
a("div",
|
|
4048
|
+
a("div", Di, [a("div", Oi, [c(m, {
|
|
4043
4049
|
"model-value": d.passedAmount,
|
|
4044
4050
|
digits: e.fractionDigits,
|
|
4045
4051
|
"input-id": l.inputId,
|
|
@@ -4058,7 +4064,7 @@ function ki(e, t, o, l, u, d) {
|
|
|
4058
4064
|
"is-disabled",
|
|
4059
4065
|
"lang",
|
|
4060
4066
|
"onUpdate:modelValue"
|
|
4061
|
-
])]), a("div",
|
|
4067
|
+
])]), a("div", ki, [c(_, {
|
|
4062
4068
|
currencies: e.currencyList,
|
|
4063
4069
|
"model-value": e.activeCode,
|
|
4064
4070
|
lang: o.lang,
|
|
@@ -4078,9 +4084,9 @@ function ki(e, t, o, l, u, d) {
|
|
|
4078
4084
|
}, 8, ["id"])) : r("", !0)
|
|
4079
4085
|
]);
|
|
4080
4086
|
}
|
|
4081
|
-
var
|
|
4087
|
+
var ji = /*#__PURE__*/ j(Ci, [["render", Ai]]), Mi = {
|
|
4082
4088
|
inheritAttrs: !1,
|
|
4083
|
-
mixins: [
|
|
4089
|
+
mixins: [P, di],
|
|
4084
4090
|
emits: [
|
|
4085
4091
|
"update:amountFrom",
|
|
4086
4092
|
"update:amountTo",
|
|
@@ -4106,10 +4112,10 @@ var Ai = /*#__PURE__*/ M(Si, [["render", ki]]), ji = {
|
|
|
4106
4112
|
return this.currency;
|
|
4107
4113
|
},
|
|
4108
4114
|
passedFrom() {
|
|
4109
|
-
return
|
|
4115
|
+
return q(this.amountFrom);
|
|
4110
4116
|
},
|
|
4111
4117
|
passedTo() {
|
|
4112
|
-
return
|
|
4118
|
+
return q(this.amountTo);
|
|
4113
4119
|
},
|
|
4114
4120
|
from() {
|
|
4115
4121
|
return {
|
|
@@ -4146,19 +4152,19 @@ var Ai = /*#__PURE__*/ M(Si, [["render", ki]]), ji = {
|
|
|
4146
4152
|
}
|
|
4147
4153
|
}
|
|
4148
4154
|
};
|
|
4149
|
-
function
|
|
4155
|
+
function Ni(e, t, n, r, i, a) {
|
|
4150
4156
|
return h(e.$slots, "default", {
|
|
4151
4157
|
from: a.from,
|
|
4152
4158
|
to: a.to,
|
|
4153
4159
|
currency: a.currencyField
|
|
4154
4160
|
});
|
|
4155
4161
|
}
|
|
4156
|
-
var
|
|
4162
|
+
var Pi = /*#__PURE__*/ j(Mi, [["render", Ni]]), Fi = {
|
|
4157
4163
|
components: {
|
|
4158
|
-
AmountCurrency:
|
|
4159
|
-
AmountInput:
|
|
4160
|
-
AmountInterval:
|
|
4161
|
-
ElementHeader:
|
|
4164
|
+
AmountCurrency: Y,
|
|
4165
|
+
AmountInput: Si,
|
|
4166
|
+
AmountInterval: Pi,
|
|
4167
|
+
ElementHeader: N
|
|
4162
4168
|
},
|
|
4163
4169
|
emits: [
|
|
4164
4170
|
"update:amountFrom",
|
|
@@ -4208,13 +4214,13 @@ var Ni = /*#__PURE__*/ M(ji, [["render", Mi]]), Pi = {
|
|
|
4208
4214
|
default: null
|
|
4209
4215
|
}
|
|
4210
4216
|
}
|
|
4211
|
-
},
|
|
4217
|
+
}, Ii = { class: "bb-dashboard-ui bb:flex bb:w-fit bb:h-18 bb:border bb:border-gray-200" }, Li = { class: "bb:flex bb:border bb:border-white" }, Ri = { class: "bb:flex bb:flex-col bb:bg-white bb:h-full" }, zi = { class: "bb:flex bb:h-full bb:divide-x bb:divide-gray-200" }, Bi = { class: "bb:w-46 bb:flex-none bb:text-sm" }, Vi = { class: "bb:w-46 bb:flex-none bb:text-sm" }, Hi = {
|
|
4212
4218
|
key: 0,
|
|
4213
4219
|
class: "bb:w-24 bb:flex-none bb:text-sm"
|
|
4214
4220
|
};
|
|
4215
|
-
function
|
|
4221
|
+
function Ui(e, t, n, o, s, l) {
|
|
4216
4222
|
let u = g("element-header"), d = g("amount-input"), f = g("amount-currency"), m = g("amount-interval");
|
|
4217
|
-
return p(), i("div",
|
|
4223
|
+
return p(), i("div", Ii, [a("div", Li, [a("div", Ri, [c(u, {
|
|
4218
4224
|
text: n.header ?? "",
|
|
4219
4225
|
"is-required": n.isRequired,
|
|
4220
4226
|
"is-loading": n.isLoading
|
|
@@ -4233,8 +4239,8 @@ function Hi(e, t, n, o, s, l) {
|
|
|
4233
4239
|
"onUpdate:currency": t[2] ||= (t) => e.$emit("update:currency", t),
|
|
4234
4240
|
onChanged: t[3] ||= (t) => e.$emit("changed")
|
|
4235
4241
|
}, {
|
|
4236
|
-
default: C(({ from: e, to: t, currency: o }) => [a("div",
|
|
4237
|
-
a("div",
|
|
4242
|
+
default: C(({ from: e, to: t, currency: o }) => [a("div", zi, [
|
|
4243
|
+
a("div", Bi, [c(d, {
|
|
4238
4244
|
"model-value": e.value,
|
|
4239
4245
|
digits: o.digits,
|
|
4240
4246
|
prefix: e.prefix,
|
|
@@ -4253,7 +4259,7 @@ function Hi(e, t, n, o, s, l) {
|
|
|
4253
4259
|
"onUpdate:modelValue",
|
|
4254
4260
|
"onChanged"
|
|
4255
4261
|
])]),
|
|
4256
|
-
a("div",
|
|
4262
|
+
a("div", Vi, [c(d, {
|
|
4257
4263
|
"model-value": t.value,
|
|
4258
4264
|
digits: o.digits,
|
|
4259
4265
|
prefix: t.prefix,
|
|
@@ -4272,7 +4278,7 @@ function Hi(e, t, n, o, s, l) {
|
|
|
4272
4278
|
"onUpdate:modelValue",
|
|
4273
4279
|
"onChanged"
|
|
4274
4280
|
])]),
|
|
4275
|
-
n.withCurrency ? (p(), i("div",
|
|
4281
|
+
n.withCurrency ? (p(), i("div", Hi, [c(f, {
|
|
4276
4282
|
currencies: o.list,
|
|
4277
4283
|
"model-value": o.code,
|
|
4278
4284
|
lang: n.lang,
|
|
@@ -4293,15 +4299,15 @@ function Hi(e, t, n, o, s, l) {
|
|
|
4293
4299
|
"lang"
|
|
4294
4300
|
])])])]);
|
|
4295
4301
|
}
|
|
4296
|
-
var
|
|
4302
|
+
var Wi = /*#__PURE__*/ j(Fi, [["render", Ui]]), Gi = {
|
|
4297
4303
|
components: {
|
|
4298
|
-
AmountCurrency:
|
|
4299
|
-
AmountInput:
|
|
4300
|
-
AmountInterval:
|
|
4301
|
-
Dot:
|
|
4302
|
-
FieldDescription:
|
|
4304
|
+
AmountCurrency: Y,
|
|
4305
|
+
AmountInput: Si,
|
|
4306
|
+
AmountInterval: Pi,
|
|
4307
|
+
Dot: M,
|
|
4308
|
+
FieldDescription: H
|
|
4303
4309
|
},
|
|
4304
|
-
mixins: [
|
|
4310
|
+
mixins: [V],
|
|
4305
4311
|
emits: [
|
|
4306
4312
|
"update:amountFrom",
|
|
4307
4313
|
"update:amountTo",
|
|
@@ -4345,15 +4351,15 @@ var Ui = /*#__PURE__*/ M(Pi, [["render", Hi]]), Wi = {
|
|
|
4345
4351
|
setup() {
|
|
4346
4352
|
return { labelId: b() };
|
|
4347
4353
|
}
|
|
4348
|
-
},
|
|
4349
|
-
function
|
|
4354
|
+
}, Ki = { class: "bb-dashboard-ui" }, qi = { class: "bb:flex bb:items-center" }, Ji = ["id", "textContent"], Yi = ["aria-labelledby", "aria-describedby"], Xi = { class: "bb:min-w-0 bb:h-9.5 bb:field-frame bb:text-sm" }, Zi = { class: "bb:min-w-0 bb:h-9.5 bb:field-frame bb:text-sm" }, Qi = { class: "bb:h-9.5 bb:field-frame bb:text-sm" };
|
|
4355
|
+
function $i(e, t, o, l, u, d) {
|
|
4350
4356
|
let f = g("dot"), m = g("amount-input"), _ = g("amount-currency"), v = g("amount-interval"), b = g("field-description");
|
|
4351
|
-
return p(), i("div",
|
|
4352
|
-
a("div",
|
|
4357
|
+
return p(), i("div", Ki, [
|
|
4358
|
+
a("div", qi, [a("span", {
|
|
4353
4359
|
id: l.labelId,
|
|
4354
4360
|
class: "bb:block bb:text-sm bb:font-medium bb:leading-5 bb:text-gray-700",
|
|
4355
4361
|
textContent: y(o.label ?? "")
|
|
4356
|
-
}, null, 8,
|
|
4362
|
+
}, null, 8, Ji), w(c(f, {
|
|
4357
4363
|
color: "red-pale",
|
|
4358
4364
|
class: "bb:ml-2"
|
|
4359
4365
|
}, null, 512), [[S, o.isRequired]])]),
|
|
@@ -4374,7 +4380,7 @@ function Qi(e, t, o, l, u, d) {
|
|
|
4374
4380
|
onChanged: t[3] ||= (t) => e.$emit("changed")
|
|
4375
4381
|
}, {
|
|
4376
4382
|
default: C(({ from: e, to: t, currency: n }) => [
|
|
4377
|
-
a("div",
|
|
4383
|
+
a("div", Xi, [c(m, {
|
|
4378
4384
|
"model-value": e.value,
|
|
4379
4385
|
digits: n.digits,
|
|
4380
4386
|
prefix: e.prefix,
|
|
@@ -4393,7 +4399,7 @@ function Qi(e, t, o, l, u, d) {
|
|
|
4393
4399
|
"onUpdate:modelValue",
|
|
4394
4400
|
"onChanged"
|
|
4395
4401
|
])]),
|
|
4396
|
-
a("div",
|
|
4402
|
+
a("div", Zi, [c(m, {
|
|
4397
4403
|
"model-value": t.value,
|
|
4398
4404
|
digits: n.digits,
|
|
4399
4405
|
prefix: t.prefix,
|
|
@@ -4412,7 +4418,7 @@ function Qi(e, t, o, l, u, d) {
|
|
|
4412
4418
|
"onUpdate:modelValue",
|
|
4413
4419
|
"onChanged"
|
|
4414
4420
|
])]),
|
|
4415
|
-
a("div",
|
|
4421
|
+
a("div", Qi, [c(_, {
|
|
4416
4422
|
currencies: n.list,
|
|
4417
4423
|
"model-value": n.code,
|
|
4418
4424
|
lang: o.lang,
|
|
@@ -4431,7 +4437,7 @@ function Qi(e, t, o, l, u, d) {
|
|
|
4431
4437
|
"currency",
|
|
4432
4438
|
"currencies",
|
|
4433
4439
|
"lang"
|
|
4434
|
-
])], 8,
|
|
4440
|
+
])], 8, Yi),
|
|
4435
4441
|
e.hasDescription() ? (p(), n(b, {
|
|
4436
4442
|
key: 0,
|
|
4437
4443
|
id: e.descriptionId(l.labelId)
|
|
@@ -4441,8 +4447,8 @@ function Qi(e, t, o, l, u, d) {
|
|
|
4441
4447
|
}, 8, ["id"])) : r("", !0)
|
|
4442
4448
|
]);
|
|
4443
4449
|
}
|
|
4444
|
-
var
|
|
4445
|
-
mixins: [
|
|
4450
|
+
var ea = /*#__PURE__*/ j(Gi, [["render", $i]]), ta = {
|
|
4451
|
+
mixins: [A],
|
|
4446
4452
|
props: {
|
|
4447
4453
|
text: {
|
|
4448
4454
|
type: String,
|
|
@@ -4451,17 +4457,17 @@ var $i = /*#__PURE__*/ M(Wi, [["render", Qi]]), ea = {
|
|
|
4451
4457
|
color: {
|
|
4452
4458
|
type: String,
|
|
4453
4459
|
required: !0,
|
|
4454
|
-
validator:
|
|
4460
|
+
validator: k
|
|
4455
4461
|
}
|
|
4456
4462
|
}
|
|
4457
|
-
},
|
|
4458
|
-
function
|
|
4463
|
+
}, na = ["textContent"];
|
|
4464
|
+
function ra(e, t, n, r, a, o) {
|
|
4459
4465
|
return p(), i("span", {
|
|
4460
4466
|
class: d(["bb-dashboard-ui bb:inline-flex bb:items-center bb:px-3 bb:py-2 bb:rounded-full bb:text-xs bb:font-medium bb:leading-none bb:select-none bb:whitespace-nowrap", e.colorClass(n.color, "pill")]),
|
|
4461
4467
|
textContent: y(n.text)
|
|
4462
|
-
}, null, 10,
|
|
4468
|
+
}, null, 10, na);
|
|
4463
4469
|
}
|
|
4464
|
-
var
|
|
4470
|
+
var ia = /*#__PURE__*/ j(ta, [["render", ra]]), aa = {
|
|
4465
4471
|
props: {
|
|
4466
4472
|
messages: {
|
|
4467
4473
|
type: [Object, Array],
|
|
@@ -4481,12 +4487,12 @@ var ra = /*#__PURE__*/ M(ea, [["render", na]]), ia = {
|
|
|
4481
4487
|
return this.type === "dangerous";
|
|
4482
4488
|
}
|
|
4483
4489
|
}
|
|
4484
|
-
},
|
|
4485
|
-
function
|
|
4490
|
+
}, oa = { class: "bb:flex" }, sa = { class: "bb:shrink-0" }, ca = { class: "bb:ml-3" }, la = ["textContent"];
|
|
4491
|
+
function ua(t, n, o, s, c, l) {
|
|
4486
4492
|
return l.hasErrors ? (p(), i("div", {
|
|
4487
4493
|
key: 0,
|
|
4488
4494
|
class: d(["bb-dashboard-ui bb:border-l-4 bb:p-4", l.isDangerous ? "bb:bg-red-50 bb:border-red-400" : "bb:bg-yellow-50 bb:border-yellow-400"])
|
|
4489
|
-
}, [a("div",
|
|
4495
|
+
}, [a("div", oa, [a("div", sa, [(p(), i("svg", {
|
|
4490
4496
|
class: d(["bb:h-5 bb:w-5", l.isDangerous ? "bb:text-red-400" : "bb:text-yellow-400"]),
|
|
4491
4497
|
viewBox: "0 0 20 20",
|
|
4492
4498
|
fill: "currentColor"
|
|
@@ -4494,25 +4500,25 @@ function la(t, n, o, s, c, l) {
|
|
|
4494
4500
|
"fill-rule": "evenodd",
|
|
4495
4501
|
d: "M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",
|
|
4496
4502
|
"clip-rule": "evenodd"
|
|
4497
|
-
}, null, -1)]], 2))]), a("div",
|
|
4503
|
+
}, null, -1)]], 2))]), a("div", ca, [(p(!0), i(e, null, m(o.messages, (e, t) => (p(), i("p", {
|
|
4498
4504
|
class: d(["bb:text-sm bb:leading-5", l.isDangerous ? "bb:text-red-700" : "bb:text-yellow-700"]),
|
|
4499
4505
|
key: t,
|
|
4500
4506
|
textContent: y(e)
|
|
4501
|
-
}, null, 10,
|
|
4507
|
+
}, null, 10, la))), 128))])])], 2)) : r("", !0);
|
|
4502
4508
|
}
|
|
4503
|
-
var
|
|
4509
|
+
var da = /*#__PURE__*/ j(aa, [["render", ua]]), fa = [
|
|
4504
4510
|
"text",
|
|
4505
4511
|
"email",
|
|
4506
4512
|
"password",
|
|
4507
4513
|
"tel",
|
|
4508
4514
|
"url",
|
|
4509
4515
|
"search"
|
|
4510
|
-
],
|
|
4516
|
+
], pa = {
|
|
4511
4517
|
components: {
|
|
4512
|
-
Dot:
|
|
4513
|
-
FieldDescription:
|
|
4518
|
+
Dot: M,
|
|
4519
|
+
FieldDescription: H
|
|
4514
4520
|
},
|
|
4515
|
-
mixins: [
|
|
4521
|
+
mixins: [V],
|
|
4516
4522
|
inheritAttrs: !1,
|
|
4517
4523
|
props: {
|
|
4518
4524
|
modelValue: {
|
|
@@ -4526,7 +4532,7 @@ var ua = /*#__PURE__*/ M(ia, [["render", la]]), da = [
|
|
|
4526
4532
|
type: {
|
|
4527
4533
|
type: String,
|
|
4528
4534
|
default: "text",
|
|
4529
|
-
validator: (e) =>
|
|
4535
|
+
validator: (e) => fa.includes(e)
|
|
4530
4536
|
},
|
|
4531
4537
|
isRequired: {
|
|
4532
4538
|
type: Boolean,
|
|
@@ -4547,7 +4553,7 @@ var ua = /*#__PURE__*/ M(ia, [["render", la]]), da = [
|
|
|
4547
4553
|
}
|
|
4548
4554
|
},
|
|
4549
4555
|
inputType() {
|
|
4550
|
-
return
|
|
4556
|
+
return fa.includes(this.type) ? this.type : "text";
|
|
4551
4557
|
}
|
|
4552
4558
|
},
|
|
4553
4559
|
methods: {
|
|
@@ -4566,22 +4572,22 @@ var ua = /*#__PURE__*/ M(ia, [["render", la]]), da = [
|
|
|
4566
4572
|
].includes(e)));
|
|
4567
4573
|
}
|
|
4568
4574
|
}
|
|
4569
|
-
},
|
|
4575
|
+
}, ma = { class: "bb:flex bb:items-center" }, ha = ["for", "textContent"], ga = [
|
|
4570
4576
|
"id",
|
|
4571
4577
|
"aria-describedby",
|
|
4572
4578
|
"type"
|
|
4573
4579
|
];
|
|
4574
|
-
function
|
|
4580
|
+
function _a(e, t, o, l, m, _) {
|
|
4575
4581
|
let v = g("dot"), b = g("field-description");
|
|
4576
4582
|
return p(), i("div", {
|
|
4577
4583
|
class: d(["bb-dashboard-ui", e.$attrs.class]),
|
|
4578
4584
|
style: f(e.$attrs.style)
|
|
4579
4585
|
}, [
|
|
4580
|
-
a("div",
|
|
4586
|
+
a("div", ma, [a("label", {
|
|
4581
4587
|
for: _.inputId(),
|
|
4582
4588
|
class: "bb:block bb:text-sm bb:font-medium bb:leading-5 bb:text-gray-700",
|
|
4583
4589
|
textContent: y(o.label)
|
|
4584
|
-
}, null, 8,
|
|
4590
|
+
}, null, 8, ha), w(c(v, {
|
|
4585
4591
|
color: "red-pale",
|
|
4586
4592
|
class: "bb:ml-2"
|
|
4587
4593
|
}, null, 512), [[S, o.isRequired]])]),
|
|
@@ -4589,8 +4595,8 @@ function ga(e, t, o, l, m, _) {
|
|
|
4589
4595
|
id: _.inputId(),
|
|
4590
4596
|
"aria-describedby": _.inputDescribedBy(),
|
|
4591
4597
|
type: _.inputType,
|
|
4592
|
-
class: "bb:mt-1 bb:block bb:w-full bb:
|
|
4593
|
-
}), null, 16,
|
|
4598
|
+
class: "bb:mt-1 bb:block bb:w-full bb:field-frame bb:px-3 bb:py-2 bb:text-sm bb:focus:focus-ring"
|
|
4599
|
+
}), null, 16, ga), [[x, _.value]]),
|
|
4594
4600
|
e.hasDescription() ? (p(), n(b, {
|
|
4595
4601
|
key: 0,
|
|
4596
4602
|
id: e.descriptionId(_.inputId())
|
|
@@ -4600,75 +4606,232 @@ function ga(e, t, o, l, m, _) {
|
|
|
4600
4606
|
}, 8, ["id"])) : r("", !0)
|
|
4601
4607
|
], 6);
|
|
4602
4608
|
}
|
|
4603
|
-
var
|
|
4609
|
+
var va = /*#__PURE__*/ j(pa, [["render", _a]]), ya = {
|
|
4610
|
+
mixins: [P],
|
|
4611
|
+
props: {
|
|
4612
|
+
text: {
|
|
4613
|
+
type: String,
|
|
4614
|
+
default: ""
|
|
4615
|
+
},
|
|
4616
|
+
limit: {
|
|
4617
|
+
type: Number,
|
|
4618
|
+
required: !0
|
|
4619
|
+
},
|
|
4620
|
+
id: {
|
|
4621
|
+
type: String,
|
|
4622
|
+
default: null
|
|
4623
|
+
}
|
|
4624
|
+
},
|
|
4625
|
+
computed: {
|
|
4626
|
+
count() {
|
|
4627
|
+
return Array.from(this.text ?? "").length;
|
|
4628
|
+
},
|
|
4629
|
+
isOverLimit() {
|
|
4630
|
+
return this.count > this.limit;
|
|
4631
|
+
}
|
|
4632
|
+
}
|
|
4633
|
+
}, ba = { class: "bb:text-xs bb:leading-4 bb:font-normal bb:text-gray-500 bb:tabular-nums bb:whitespace-nowrap" }, xa = { "aria-hidden": "true" }, Sa = ["id"];
|
|
4634
|
+
function Ca(e, t, n, r, o, c) {
|
|
4635
|
+
return p(), i("span", ba, [a("span", xa, [a("span", { class: d({ "bb:text-red-600": c.isOverLimit }) }, y(c.count), 3), s(" / " + y(n.limit), 1)]), a("span", {
|
|
4636
|
+
id: n.id,
|
|
4637
|
+
class: "bb:sr-only"
|
|
4638
|
+
}, y(`${e.texts.characterCount}: ${c.count} ${e.texts.characterCountOf} ${n.limit}`), 9, Sa)]);
|
|
4639
|
+
}
|
|
4640
|
+
var wa = /*#__PURE__*/ j(ya, [["render", Ca]]), Ta = 6, X = (e) => Number.isInteger(e) && e > 0, Ea = (e) => typeof e == "string" ? e.replace(/\r\n?/g, "\n") : "", Da = {
|
|
4641
|
+
components: {
|
|
4642
|
+
CharacterCounter: wa,
|
|
4643
|
+
Dot: M,
|
|
4644
|
+
FieldDescription: H
|
|
4645
|
+
},
|
|
4646
|
+
mixins: [V, P],
|
|
4647
|
+
inheritAttrs: !1,
|
|
4648
|
+
props: {
|
|
4649
|
+
modelValue: {
|
|
4650
|
+
type: String,
|
|
4651
|
+
default: ""
|
|
4652
|
+
},
|
|
4653
|
+
label: {
|
|
4654
|
+
type: String,
|
|
4655
|
+
required: !0
|
|
4656
|
+
},
|
|
4657
|
+
isRequired: {
|
|
4658
|
+
type: Boolean,
|
|
4659
|
+
default: !1
|
|
4660
|
+
},
|
|
4661
|
+
rows: {
|
|
4662
|
+
type: Number,
|
|
4663
|
+
default: Ta,
|
|
4664
|
+
validator: X
|
|
4665
|
+
},
|
|
4666
|
+
characterLimit: {
|
|
4667
|
+
type: Number,
|
|
4668
|
+
default: null,
|
|
4669
|
+
validator: X
|
|
4670
|
+
}
|
|
4671
|
+
},
|
|
4672
|
+
emits: ["update:modelValue"],
|
|
4673
|
+
setup() {
|
|
4674
|
+
return { generatedId: b() };
|
|
4675
|
+
},
|
|
4676
|
+
data() {
|
|
4677
|
+
return { text: Ea(this.modelValue) };
|
|
4678
|
+
},
|
|
4679
|
+
computed: {
|
|
4680
|
+
value: {
|
|
4681
|
+
get() {
|
|
4682
|
+
return this.text;
|
|
4683
|
+
},
|
|
4684
|
+
set(e) {
|
|
4685
|
+
this.$emit("update:modelValue", e);
|
|
4686
|
+
}
|
|
4687
|
+
},
|
|
4688
|
+
textareaRows() {
|
|
4689
|
+
return X(this.rows) ? this.rows : Ta;
|
|
4690
|
+
},
|
|
4691
|
+
hasCounter() {
|
|
4692
|
+
return X(this.characterLimit);
|
|
4693
|
+
}
|
|
4694
|
+
},
|
|
4695
|
+
watch: { modelValue(e) {
|
|
4696
|
+
this.text = Ea(e);
|
|
4697
|
+
} },
|
|
4698
|
+
methods: {
|
|
4699
|
+
textareaId() {
|
|
4700
|
+
return this.$attrs.id ?? this.generatedId;
|
|
4701
|
+
},
|
|
4702
|
+
textareaDescribedBy() {
|
|
4703
|
+
let e = [
|
|
4704
|
+
this.$attrs["aria-describedby"],
|
|
4705
|
+
this.descriptionId(this.textareaId()),
|
|
4706
|
+
this.hasCounter ? `${this.textareaId()}-counter` : null
|
|
4707
|
+
].filter(Boolean);
|
|
4708
|
+
return e.length > 0 ? e.join(" ") : null;
|
|
4709
|
+
},
|
|
4710
|
+
textareaAttrs() {
|
|
4711
|
+
return Object.fromEntries(Object.entries(this.$attrs).filter(([e]) => ![
|
|
4712
|
+
"class",
|
|
4713
|
+
"style",
|
|
4714
|
+
"id"
|
|
4715
|
+
].includes(e)));
|
|
4716
|
+
}
|
|
4717
|
+
}
|
|
4718
|
+
}, Oa = { class: "bb:flex bb:items-start bb:justify-between bb:gap-3" }, ka = { class: "bb:flex bb:items-center" }, Aa = ["for", "textContent"], ja = {
|
|
4719
|
+
key: 0,
|
|
4720
|
+
class: "bb:flex bb:h-5 bb:shrink-0 bb:items-center"
|
|
4721
|
+
}, Ma = [
|
|
4722
|
+
"id",
|
|
4723
|
+
"aria-describedby",
|
|
4724
|
+
"rows"
|
|
4725
|
+
];
|
|
4726
|
+
function Na(e, t, o, l, m, _) {
|
|
4727
|
+
let v = g("dot"), b = g("character-counter"), x = g("field-description");
|
|
4728
|
+
return p(), i("div", {
|
|
4729
|
+
class: d(["bb-dashboard-ui", e.$attrs.class]),
|
|
4730
|
+
style: f(e.$attrs.style)
|
|
4731
|
+
}, [
|
|
4732
|
+
a("div", Oa, [a("div", ka, [a("label", {
|
|
4733
|
+
for: _.textareaId(),
|
|
4734
|
+
class: "bb:block bb:text-sm bb:font-medium bb:leading-5 bb:text-gray-700",
|
|
4735
|
+
textContent: y(o.label)
|
|
4736
|
+
}, null, 8, Aa), w(c(v, {
|
|
4737
|
+
color: "red-pale",
|
|
4738
|
+
class: "bb:ml-2"
|
|
4739
|
+
}, null, 512), [[S, o.isRequired]])]), _.hasCounter ? (p(), i("div", ja, [c(b, {
|
|
4740
|
+
id: `${_.textareaId()}-counter`,
|
|
4741
|
+
text: m.text,
|
|
4742
|
+
limit: o.characterLimit,
|
|
4743
|
+
lang: e.lang
|
|
4744
|
+
}, null, 8, [
|
|
4745
|
+
"id",
|
|
4746
|
+
"text",
|
|
4747
|
+
"limit",
|
|
4748
|
+
"lang"
|
|
4749
|
+
])])) : r("", !0)]),
|
|
4750
|
+
w(a("textarea", u({ "onUpdate:modelValue": t[0] ||= (e) => _.value = e }, { ..._.textareaAttrs() }, {
|
|
4751
|
+
id: _.textareaId(),
|
|
4752
|
+
"aria-describedby": _.textareaDescribedBy(),
|
|
4753
|
+
rows: _.textareaRows,
|
|
4754
|
+
class: "bb:mt-1 bb:block bb:w-full bb:field-frame bb:px-3 bb:py-2 bb:text-sm bb:focus:focus-ring bb:resize-y",
|
|
4755
|
+
onInput: t[1] ||= (e) => m.text = e.target.value
|
|
4756
|
+
}), null, 16, Ma), [[ee, _.value]]),
|
|
4757
|
+
e.hasDescription() ? (p(), n(x, {
|
|
4758
|
+
key: 0,
|
|
4759
|
+
id: e.descriptionId(_.textareaId())
|
|
4760
|
+
}, {
|
|
4761
|
+
default: C(() => [h(e.$slots, "description", {}, () => [s(y(e.description), 1)])]),
|
|
4762
|
+
_: 3
|
|
4763
|
+
}, 8, ["id"])) : r("", !0)
|
|
4764
|
+
], 6);
|
|
4765
|
+
}
|
|
4766
|
+
var Pa = /*#__PURE__*/ j(Da, [["render", Na]]), Fa = {}, Ia = {
|
|
4604
4767
|
fill: "none",
|
|
4605
4768
|
stroke: "currentColor",
|
|
4606
4769
|
viewBox: "0 0 24 24",
|
|
4607
4770
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4608
4771
|
"aria-hidden": "true"
|
|
4609
4772
|
};
|
|
4610
|
-
function
|
|
4611
|
-
return p(), i("svg",
|
|
4773
|
+
function La(e, t, n, r, o, s) {
|
|
4774
|
+
return p(), i("svg", Ia, [...t[0] ||= [a("path", {
|
|
4612
4775
|
"stroke-linecap": "round",
|
|
4613
4776
|
"stroke-linejoin": "round",
|
|
4614
4777
|
"stroke-width": "2",
|
|
4615
4778
|
d: "M12 4v16m8-8H4"
|
|
4616
4779
|
}, null, -1)]]);
|
|
4617
4780
|
}
|
|
4618
|
-
var
|
|
4781
|
+
var Ra = /*#__PURE__*/ j(Fa, [["render", La]]), za = {}, Ba = {
|
|
4619
4782
|
fill: "none",
|
|
4620
4783
|
stroke: "currentColor",
|
|
4621
4784
|
viewBox: "0 0 24 24",
|
|
4622
4785
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4623
4786
|
"aria-hidden": "true"
|
|
4624
4787
|
};
|
|
4625
|
-
function
|
|
4626
|
-
return p(), i("svg",
|
|
4788
|
+
function Va(e, t, n, r, o, s) {
|
|
4789
|
+
return p(), i("svg", Ba, [...t[0] ||= [a("path", {
|
|
4627
4790
|
"stroke-linecap": "round",
|
|
4628
4791
|
"stroke-linejoin": "round",
|
|
4629
4792
|
"stroke-width": "2",
|
|
4630
4793
|
d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
|
|
4631
4794
|
}, null, -1)]]);
|
|
4632
4795
|
}
|
|
4633
|
-
var
|
|
4796
|
+
var Ha = /*#__PURE__*/ j(za, [["render", Va]]), Ua = {}, Wa = {
|
|
4634
4797
|
fill: "none",
|
|
4635
4798
|
stroke: "currentColor",
|
|
4636
4799
|
viewBox: "0 0 24 24",
|
|
4637
4800
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4638
4801
|
"aria-hidden": "true"
|
|
4639
4802
|
};
|
|
4640
|
-
function
|
|
4641
|
-
return p(), i("svg",
|
|
4803
|
+
function Ga(e, t, n, r, o, s) {
|
|
4804
|
+
return p(), i("svg", Wa, [...t[0] ||= [a("path", {
|
|
4642
4805
|
"stroke-linecap": "round",
|
|
4643
4806
|
"stroke-linejoin": "round",
|
|
4644
4807
|
"stroke-width": "2",
|
|
4645
4808
|
d: "M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"
|
|
4646
4809
|
}, null, -1)]]);
|
|
4647
4810
|
}
|
|
4648
|
-
var
|
|
4811
|
+
var Ka = /*#__PURE__*/ j(Ua, [["render", Ga]]), qa = {}, Ja = {
|
|
4649
4812
|
fill: "none",
|
|
4650
4813
|
stroke: "currentColor",
|
|
4651
4814
|
viewBox: "0 0 24 24",
|
|
4652
4815
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4653
4816
|
"aria-hidden": "true"
|
|
4654
4817
|
};
|
|
4655
|
-
function
|
|
4656
|
-
return p(), i("svg",
|
|
4818
|
+
function Ya(e, t, n, r, o, s) {
|
|
4819
|
+
return p(), i("svg", Ja, [...t[0] ||= [a("path", {
|
|
4657
4820
|
"stroke-linecap": "round",
|
|
4658
4821
|
"stroke-linejoin": "round",
|
|
4659
4822
|
"stroke-width": "2",
|
|
4660
4823
|
d: "M2 9l10-7 10 7H2zM4.5 12v6M9.5 12v6M14.5 12v6M19.5 12v6M3.5 18h17M2 22h20"
|
|
4661
4824
|
}, null, -1)]]);
|
|
4662
4825
|
}
|
|
4663
|
-
var
|
|
4826
|
+
var Xa = /*#__PURE__*/ j(qa, [["render", Ya]]), Za = {}, Qa = {
|
|
4664
4827
|
fill: "none",
|
|
4665
4828
|
stroke: "currentColor",
|
|
4666
4829
|
viewBox: "0 0 24 24",
|
|
4667
4830
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4668
4831
|
"aria-hidden": "true"
|
|
4669
4832
|
};
|
|
4670
|
-
function
|
|
4671
|
-
return p(), i("svg",
|
|
4833
|
+
function $a(e, t, n, r, o, s) {
|
|
4834
|
+
return p(), i("svg", Qa, [...t[0] ||= [a("path", {
|
|
4672
4835
|
"stroke-linecap": "round",
|
|
4673
4836
|
"stroke-linejoin": "round",
|
|
4674
4837
|
"stroke-width": "2",
|
|
@@ -4677,43 +4840,43 @@ function Ia(e, t, n, r, o, s) {
|
|
|
4677
4840
|
}
|
|
4678
4841
|
//#endregion
|
|
4679
4842
|
//#region src/actionIcons.js
|
|
4680
|
-
var
|
|
4681
|
-
plus:
|
|
4682
|
-
download:
|
|
4683
|
-
refresh:
|
|
4684
|
-
"bank-transfer":
|
|
4685
|
-
"currency-exchange": /* @__PURE__ */
|
|
4843
|
+
var eo = {
|
|
4844
|
+
plus: Ra,
|
|
4845
|
+
download: Ha,
|
|
4846
|
+
refresh: Ka,
|
|
4847
|
+
"bank-transfer": Xa,
|
|
4848
|
+
"currency-exchange": /* @__PURE__ */ j(Za, [["render", $a]])
|
|
4686
4849
|
};
|
|
4687
4850
|
function Z(e) {
|
|
4688
|
-
return typeof e == "string" && Object.hasOwn(
|
|
4851
|
+
return typeof e == "string" && Object.hasOwn(eo, e);
|
|
4689
4852
|
}
|
|
4690
4853
|
//#endregion
|
|
4691
4854
|
//#region src/navigation.js
|
|
4692
|
-
function
|
|
4855
|
+
function to(e) {
|
|
4693
4856
|
let t = e.currentTarget?.target ?? "";
|
|
4694
4857
|
return !(e.defaultPrevented || e.target?.isContentEditable === !0 || e.altKey || e.ctrlKey || e.metaKey || e.shiftKey || t !== "" && t !== "_self" || e.button !== 0);
|
|
4695
4858
|
}
|
|
4696
4859
|
var Q = {
|
|
4697
|
-
inject:
|
|
4860
|
+
inject: ye,
|
|
4698
4861
|
methods: { followLink(e, t) {
|
|
4699
4862
|
let n = this.uiSettings.navigate;
|
|
4700
|
-
n !== null &&
|
|
4863
|
+
n !== null && to(e) && (e.preventDefault(), n(t));
|
|
4701
4864
|
} }
|
|
4702
|
-
},
|
|
4865
|
+
}, no = {
|
|
4703
4866
|
props: { name: {
|
|
4704
4867
|
type: String,
|
|
4705
4868
|
default: null
|
|
4706
4869
|
} },
|
|
4707
4870
|
computed: { icon() {
|
|
4708
|
-
return Z(this.name) ?
|
|
4871
|
+
return Z(this.name) ? eo[this.name] : "span";
|
|
4709
4872
|
} }
|
|
4710
4873
|
};
|
|
4711
|
-
function
|
|
4874
|
+
function ro(e, t, r, i, a, o) {
|
|
4712
4875
|
return p(), n(_(o.icon), { class: "bb:w-4 bb:h-4 bb:shrink-0 bb:pointer-events-none bb:cursor-default" });
|
|
4713
4876
|
}
|
|
4714
|
-
var
|
|
4715
|
-
components: { ActionIcon:
|
|
4716
|
-
mixins: [
|
|
4877
|
+
var io = /*#__PURE__*/ j(no, [["render", ro]]), ao = {
|
|
4878
|
+
components: { ActionIcon: io },
|
|
4879
|
+
mixins: [A, Q],
|
|
4717
4880
|
emits: ["click"],
|
|
4718
4881
|
props: {
|
|
4719
4882
|
label: {
|
|
@@ -4723,7 +4886,7 @@ var Va = /*#__PURE__*/ M(za, [["render", Ba]]), Ha = {
|
|
|
4723
4886
|
color: {
|
|
4724
4887
|
type: String,
|
|
4725
4888
|
default: null,
|
|
4726
|
-
validator: (e) => e === "" ||
|
|
4889
|
+
validator: (e) => e === "" || k(e)
|
|
4727
4890
|
},
|
|
4728
4891
|
icon: {
|
|
4729
4892
|
type: String,
|
|
@@ -4746,7 +4909,7 @@ var Va = /*#__PURE__*/ M(za, [["render", Ba]]), Ha = {
|
|
|
4746
4909
|
},
|
|
4747
4910
|
computed: {
|
|
4748
4911
|
hasColor() {
|
|
4749
|
-
return
|
|
4912
|
+
return k(this.color);
|
|
4750
4913
|
},
|
|
4751
4914
|
hasIcon() {
|
|
4752
4915
|
return Z(this.icon);
|
|
@@ -4758,8 +4921,8 @@ var Va = /*#__PURE__*/ M(za, [["render", Ba]]), Ha = {
|
|
|
4758
4921
|
return this.type === "submit" ? "submit" : "button";
|
|
4759
4922
|
}
|
|
4760
4923
|
}
|
|
4761
|
-
},
|
|
4762
|
-
function
|
|
4924
|
+
}, oo = ["href"], so = ["textContent"], co = ["type", "disabled"], lo = ["textContent"];
|
|
4925
|
+
function uo(e, t, o, s, c, l) {
|
|
4763
4926
|
let u = g("action-icon");
|
|
4764
4927
|
return l.isLink ? (p(), i("a", {
|
|
4765
4928
|
key: 0,
|
|
@@ -4772,7 +4935,7 @@ function qa(e, t, o, s, c, l) {
|
|
|
4772
4935
|
}, null, 8, ["name"])) : r("", !0), a("span", {
|
|
4773
4936
|
class: "bb:pointer-events-none bb:cursor-default",
|
|
4774
4937
|
textContent: y(o.label)
|
|
4775
|
-
}, null, 8,
|
|
4938
|
+
}, null, 8, so)], 10, oo)) : (p(), i("button", {
|
|
4776
4939
|
key: 1,
|
|
4777
4940
|
type: l.buttonType,
|
|
4778
4941
|
disabled: o.isDisabled,
|
|
@@ -4788,9 +4951,9 @@ function qa(e, t, o, s, c, l) {
|
|
|
4788
4951
|
}, null, 8, ["name"])) : r("", !0), a("span", {
|
|
4789
4952
|
class: "bb:pointer-events-none bb:cursor-default",
|
|
4790
4953
|
textContent: y(o.label)
|
|
4791
|
-
}, null, 8,
|
|
4954
|
+
}, null, 8, lo)], 10, co));
|
|
4792
4955
|
}
|
|
4793
|
-
var
|
|
4956
|
+
var fo = /*#__PURE__*/ j(ao, [["render", uo]]), po = {}, mo = {
|
|
4794
4957
|
class: "bb:w-4 bb:h-4",
|
|
4795
4958
|
fill: "none",
|
|
4796
4959
|
stroke: "currentColor",
|
|
@@ -4800,8 +4963,8 @@ var Ja = /*#__PURE__*/ M(Ha, [["render", qa]]), Ya = {}, Xa = {
|
|
|
4800
4963
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4801
4964
|
"aria-hidden": "true"
|
|
4802
4965
|
};
|
|
4803
|
-
function
|
|
4804
|
-
return p(), i("svg",
|
|
4966
|
+
function ho(e, t, n, r, o, s) {
|
|
4967
|
+
return p(), i("svg", mo, [...t[0] ||= [
|
|
4805
4968
|
a("circle", {
|
|
4806
4969
|
cx: "12",
|
|
4807
4970
|
cy: "12",
|
|
@@ -4825,12 +4988,12 @@ function Za(e, t, n, r, o, s) {
|
|
|
4825
4988
|
}
|
|
4826
4989
|
//#endregion
|
|
4827
4990
|
//#region src/components/ActionPill.vue
|
|
4828
|
-
var
|
|
4991
|
+
var go = {
|
|
4829
4992
|
components: {
|
|
4830
|
-
"clock-icon": /* @__PURE__ */
|
|
4831
|
-
"action-icon":
|
|
4993
|
+
"clock-icon": /* @__PURE__ */ j(po, [["render", ho]]),
|
|
4994
|
+
"action-icon": io
|
|
4832
4995
|
},
|
|
4833
|
-
mixins: [
|
|
4996
|
+
mixins: [A],
|
|
4834
4997
|
emits: ["click"],
|
|
4835
4998
|
props: {
|
|
4836
4999
|
title: {
|
|
@@ -4845,7 +5008,7 @@ var Qa = {
|
|
|
4845
5008
|
color: {
|
|
4846
5009
|
type: String,
|
|
4847
5010
|
default: "purple-pale",
|
|
4848
|
-
validator:
|
|
5011
|
+
validator: k
|
|
4849
5012
|
},
|
|
4850
5013
|
isLoading: {
|
|
4851
5014
|
type: Boolean,
|
|
@@ -4865,12 +5028,12 @@ var Qa = {
|
|
|
4865
5028
|
return typeof e == "string" ? e : "";
|
|
4866
5029
|
}
|
|
4867
5030
|
}
|
|
4868
|
-
},
|
|
5031
|
+
}, _o = [
|
|
4869
5032
|
"title",
|
|
4870
5033
|
"disabled",
|
|
4871
5034
|
"aria-busy"
|
|
4872
|
-
],
|
|
4873
|
-
function
|
|
5035
|
+
], vo = ["textContent"];
|
|
5036
|
+
function yo(e, t, o, s, c, l) {
|
|
4874
5037
|
let u = g("clock-icon"), f = g("action-icon");
|
|
4875
5038
|
return p(), i("button", {
|
|
4876
5039
|
type: "button",
|
|
@@ -4892,19 +5055,19 @@ function to(e, t, o, s, c, l) {
|
|
|
4892
5055
|
}, null, 8, ["name"])) : r("", !0), a("span", {
|
|
4893
5056
|
class: "bb:ml-1 bb:pointer-events-none bb:cursor-default",
|
|
4894
5057
|
textContent: y(l.label)
|
|
4895
|
-
}, null, 8,
|
|
5058
|
+
}, null, 8, vo)], 10, _o);
|
|
4896
5059
|
}
|
|
4897
|
-
var
|
|
4898
|
-
function
|
|
5060
|
+
var bo = /*#__PURE__*/ j(go, [["render", yo]]), xo = "a[href], button:not(:disabled)";
|
|
5061
|
+
function So(e, t) {
|
|
4899
5062
|
let n = document.activeElement;
|
|
4900
|
-
(e.querySelector("[data-dialog-focus]") ?? e.querySelector(
|
|
5063
|
+
(e.querySelector("[data-dialog-focus]") ?? e.querySelector(xo))?.focus();
|
|
4901
5064
|
let r = (n) => {
|
|
4902
5065
|
if (n.key === "Escape") {
|
|
4903
5066
|
t();
|
|
4904
5067
|
return;
|
|
4905
5068
|
}
|
|
4906
5069
|
if (n.key !== "Tab") return;
|
|
4907
|
-
let r = [...e.querySelectorAll(
|
|
5070
|
+
let r = [...e.querySelectorAll(xo)];
|
|
4908
5071
|
if (r.length === 0) return;
|
|
4909
5072
|
n.preventDefault();
|
|
4910
5073
|
let i = n.shiftKey ? -1 : 1, a = r.indexOf(document.activeElement);
|
|
@@ -4921,7 +5084,7 @@ function io(e, t) {
|
|
|
4921
5084
|
}
|
|
4922
5085
|
//#endregion
|
|
4923
5086
|
//#region src/components/Modal.vue
|
|
4924
|
-
var
|
|
5087
|
+
var Co = {
|
|
4925
5088
|
emits: ["escape"],
|
|
4926
5089
|
props: {
|
|
4927
5090
|
isOpen: {
|
|
@@ -4955,16 +5118,16 @@ var ao = {
|
|
|
4955
5118
|
methods: {
|
|
4956
5119
|
holdFocus() {
|
|
4957
5120
|
this.focusFrame === null && this.releaseHeldFocus === null && (this.focusFrame = requestAnimationFrame(() => {
|
|
4958
|
-
this.focusFrame = null, this.releaseHeldFocus =
|
|
5121
|
+
this.focusFrame = null, this.releaseHeldFocus = So(this.$refs.panel, () => this.$emit("escape"));
|
|
4959
5122
|
}));
|
|
4960
5123
|
},
|
|
4961
5124
|
releaseFocus() {
|
|
4962
5125
|
this.focusFrame !== null && (cancelAnimationFrame(this.focusFrame), this.focusFrame = null), this.releaseHeldFocus !== null && (this.releaseHeldFocus(), this.releaseHeldFocus = null);
|
|
4963
5126
|
}
|
|
4964
5127
|
}
|
|
4965
|
-
},
|
|
4966
|
-
function
|
|
4967
|
-
return p(), i("div", { class: d(["bb-dashboard-ui bb:fixed bb:inset-0 bb:overflow-y-auto bb:z-20", { "bb:pointer-events-none": !r.isOpen }]) }, [a("div",
|
|
5128
|
+
}, wo = { class: "bb:min-h-screen bb:text-center" }, To = { class: "bb:fixed bb:inset-0 bb:transition-opacity" }, Eo = ["aria-labelledby"];
|
|
5129
|
+
function Do(e, n, r, o, s, l) {
|
|
5130
|
+
return p(), i("div", { class: d(["bb-dashboard-ui bb:fixed bb:inset-0 bb:overflow-y-auto bb:z-20", { "bb:pointer-events-none": !r.isOpen }]) }, [a("div", wo, [
|
|
4968
5131
|
c(t, {
|
|
4969
5132
|
"enter-active-class": "bb:ease-out bb:duration-300",
|
|
4970
5133
|
"enter-from-class": "bb:opacity-0",
|
|
@@ -4973,7 +5136,7 @@ function lo(e, n, r, o, s, l) {
|
|
|
4973
5136
|
"leave-from-class": "bb:opacity-100",
|
|
4974
5137
|
"leave-to-class": "bb:opacity-0"
|
|
4975
5138
|
}, {
|
|
4976
|
-
default: C(() => [w(a("div",
|
|
5139
|
+
default: C(() => [w(a("div", To, [...n[0] ||= [a("div", { class: "bb:absolute bb:inset-0 bb:bg-gray-500 bb:opacity-75" }, null, -1)]], 512), [[S, r.isOpen]])]),
|
|
4977
5140
|
_: 1
|
|
4978
5141
|
}),
|
|
4979
5142
|
n[1] ||= a("span", { class: "bb:inline-block bb:align-middle bb:h-screen" }, null, -1),
|
|
@@ -4991,12 +5154,12 @@ function lo(e, n, r, o, s, l) {
|
|
|
4991
5154
|
role: "dialog",
|
|
4992
5155
|
"aria-modal": "true",
|
|
4993
5156
|
"aria-labelledby": r.headingId
|
|
4994
|
-
}, [h(e.$slots, "default")], 8,
|
|
5157
|
+
}, [h(e.$slots, "default")], 8, Eo), [[S, r.isOpen]])]),
|
|
4995
5158
|
_: 3
|
|
4996
5159
|
})
|
|
4997
5160
|
])], 2);
|
|
4998
5161
|
}
|
|
4999
|
-
var
|
|
5162
|
+
var Oo = /*#__PURE__*/ j(Co, [["render", Do]]), ko = {}, Ao = {
|
|
5000
5163
|
class: "bb:h-7 bb:w-7 bb:text-red-600",
|
|
5001
5164
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5002
5165
|
fill: "none",
|
|
@@ -5004,36 +5167,36 @@ var uo = /*#__PURE__*/ M(ao, [["render", lo]]), fo = {}, po = {
|
|
|
5004
5167
|
stroke: "currentColor",
|
|
5005
5168
|
"aria-hidden": "true"
|
|
5006
5169
|
};
|
|
5007
|
-
function
|
|
5008
|
-
return p(), i("svg",
|
|
5170
|
+
function jo(e, t, n, r, o, s) {
|
|
5171
|
+
return p(), i("svg", Ao, [...t[0] ||= [a("path", {
|
|
5009
5172
|
"stroke-linecap": "round",
|
|
5010
5173
|
"stroke-linejoin": "round",
|
|
5011
5174
|
"stroke-width": "2",
|
|
5012
5175
|
d: "M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"
|
|
5013
5176
|
}, null, -1)]]);
|
|
5014
5177
|
}
|
|
5015
|
-
var
|
|
5178
|
+
var Mo = /*#__PURE__*/ j(ko, [["render", jo]]), No = {}, Po = {
|
|
5016
5179
|
class: "bb:h-7 bb:w-7 bb:text-yellow-400",
|
|
5017
5180
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5018
5181
|
viewBox: "0 0 20 20",
|
|
5019
5182
|
fill: "currentColor",
|
|
5020
5183
|
"aria-hidden": "true"
|
|
5021
5184
|
};
|
|
5022
|
-
function
|
|
5023
|
-
return p(), i("svg",
|
|
5185
|
+
function Fo(e, t, n, r, o, s) {
|
|
5186
|
+
return p(), i("svg", Po, [...t[0] ||= [a("path", {
|
|
5024
5187
|
"fill-rule": "evenodd",
|
|
5025
5188
|
d: "M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",
|
|
5026
5189
|
"clip-rule": "evenodd"
|
|
5027
5190
|
}, null, -1)]]);
|
|
5028
5191
|
}
|
|
5029
|
-
var
|
|
5192
|
+
var Io = /*#__PURE__*/ j(No, [["render", Fo]]), Lo = {
|
|
5030
5193
|
components: {
|
|
5031
|
-
ActionButton:
|
|
5032
|
-
Modal:
|
|
5033
|
-
Dangerous:
|
|
5034
|
-
Warning:
|
|
5194
|
+
ActionButton: fo,
|
|
5195
|
+
Modal: Oo,
|
|
5196
|
+
Dangerous: Mo,
|
|
5197
|
+
Warning: Io
|
|
5035
5198
|
},
|
|
5036
|
-
mixins: [
|
|
5199
|
+
mixins: [P],
|
|
5037
5200
|
emits: ["actionConfirmed", "actionCanceled"],
|
|
5038
5201
|
props: {
|
|
5039
5202
|
isOpen: {
|
|
@@ -5076,21 +5239,21 @@ var yo = /*#__PURE__*/ M(go, [["render", vo]]), bo = {
|
|
|
5076
5239
|
return this.isDangerous ? "red-solid" : this.isWarning ? "yellow-solid" : null;
|
|
5077
5240
|
}
|
|
5078
5241
|
}
|
|
5079
|
-
},
|
|
5080
|
-
function
|
|
5242
|
+
}, Ro = { class: "bb:flex bb:bg-white bb:rounded-t-lg bb:p-6 bb:pb-4" }, zo = { class: "bb:flex bb:items-start" }, Bo = { class: "bb:ml-4 bb:text-left" }, Vo = ["id"], Ho = { class: "bb:mt-2" }, Uo = { class: "bb:text-sm bb:text-gray-500" }, Wo = { class: "bb:bg-gray-50 bb:rounded-b-lg bb:px-6 bb:py-3 bb:flex bb:flex-row-reverse" };
|
|
5243
|
+
function Go(e, t, i, o, s, l) {
|
|
5081
5244
|
let u = g("warning"), f = g("dangerous"), m = g("action-button"), h = g("modal");
|
|
5082
5245
|
return p(), n(h, {
|
|
5083
5246
|
"is-open": i.isOpen,
|
|
5084
5247
|
"heading-id": o.headingId,
|
|
5085
5248
|
onEscape: t[2] ||= (t) => e.$emit("actionCanceled")
|
|
5086
5249
|
}, {
|
|
5087
|
-
default: C(() => [a("div",
|
|
5250
|
+
default: C(() => [a("div", Ro, [a("div", zo, [a("div", { class: d(["bb:shrink-0 bb:flex bb:items-center bb:justify-center bb:h-10 bb:w-10 bb:rounded-full", {
|
|
5088
5251
|
"bb:bg-red-100": l.isDangerous,
|
|
5089
5252
|
"bb:bg-yellow-100": l.isWarning
|
|
5090
|
-
}]) }, [l.isWarning ? (p(), n(u, { key: 0 })) : r("", !0), l.isDangerous ? (p(), n(f, { key: 1 })) : r("", !0)], 2), a("div",
|
|
5253
|
+
}]) }, [l.isWarning ? (p(), n(u, { key: 0 })) : r("", !0), l.isDangerous ? (p(), n(f, { key: 1 })) : r("", !0)], 2), a("div", Bo, [a("h3", {
|
|
5091
5254
|
class: "bb:text-lg bb:leading-6 bb:font-medium bb:text-gray-900",
|
|
5092
5255
|
id: o.headingId
|
|
5093
|
-
}, y(i.confirmationHeading), 9,
|
|
5256
|
+
}, y(i.confirmationHeading), 9, Vo), a("div", Ho, [a("p", Uo, y(i.confirmationText), 1)])])])]), a("div", Wo, [c(m, {
|
|
5094
5257
|
class: "bb:ml-3",
|
|
5095
5258
|
label: i.actionButtonText,
|
|
5096
5259
|
color: l.actionColor,
|
|
@@ -5104,34 +5267,34 @@ function Oo(e, t, i, o, s, l) {
|
|
|
5104
5267
|
_: 1
|
|
5105
5268
|
}, 8, ["is-open", "heading-id"]);
|
|
5106
5269
|
}
|
|
5107
|
-
var
|
|
5270
|
+
var Ko = /*#__PURE__*/ j(Lo, [["render", Go]]);
|
|
5108
5271
|
//#endregion
|
|
5109
5272
|
//#region src/menuItems.js
|
|
5110
|
-
function
|
|
5111
|
-
if (typeof e != "object" || !e || typeof e.label != "string" || e.label === "" || e.color !== void 0 && !
|
|
5273
|
+
function qo(e) {
|
|
5274
|
+
if (typeof e != "object" || !e || typeof e.label != "string" || e.label === "" || e.color !== void 0 && !k(e.color) || e.icon !== void 0 && !Z(e.icon)) return !1;
|
|
5112
5275
|
let t = typeof e.href == "string" && e.href !== "" && e.onSelect === void 0, n = typeof e.onSelect == "function" && e.href === void 0;
|
|
5113
5276
|
return t || n;
|
|
5114
5277
|
}
|
|
5115
|
-
function
|
|
5278
|
+
function Jo(e) {
|
|
5116
5279
|
return Array.isArray(e) ? e.filter((e) => typeof e == "object" && !!e) : [];
|
|
5117
5280
|
}
|
|
5118
|
-
function
|
|
5281
|
+
function Yo(e) {
|
|
5119
5282
|
return typeof e.href == "string" && e.href !== "";
|
|
5120
5283
|
}
|
|
5121
|
-
function
|
|
5122
|
-
return
|
|
5284
|
+
function Xo(e) {
|
|
5285
|
+
return k(e.color) ? e.color : null;
|
|
5123
5286
|
}
|
|
5124
|
-
function
|
|
5287
|
+
function Zo(e) {
|
|
5125
5288
|
return Z(e.icon) ? e.icon : null;
|
|
5126
5289
|
}
|
|
5127
5290
|
//#endregion
|
|
5128
5291
|
//#region src/components/PopoverMenu.vue
|
|
5129
|
-
var
|
|
5292
|
+
var Qo = {
|
|
5130
5293
|
components: {
|
|
5131
|
-
ActionIcon:
|
|
5132
|
-
PopoverPanel:
|
|
5294
|
+
ActionIcon: io,
|
|
5295
|
+
PopoverPanel: z
|
|
5133
5296
|
},
|
|
5134
|
-
mixins: [Q,
|
|
5297
|
+
mixins: [Q, A],
|
|
5135
5298
|
emits: ["update:modelValue"],
|
|
5136
5299
|
props: {
|
|
5137
5300
|
actions: { default: () => [] },
|
|
@@ -5142,24 +5305,24 @@ var Fo = {
|
|
|
5142
5305
|
},
|
|
5143
5306
|
computed: {
|
|
5144
5307
|
actionItems() {
|
|
5145
|
-
return
|
|
5308
|
+
return Jo(this.actions);
|
|
5146
5309
|
},
|
|
5147
5310
|
hasActions() {
|
|
5148
5311
|
return this.actionItems.length > 0;
|
|
5149
5312
|
},
|
|
5150
5313
|
hasIcons() {
|
|
5151
|
-
return this.actionItems.some((e) =>
|
|
5314
|
+
return this.actionItems.some((e) => Zo(e) !== null);
|
|
5152
5315
|
}
|
|
5153
5316
|
},
|
|
5154
5317
|
methods: {
|
|
5155
5318
|
color(e) {
|
|
5156
|
-
return
|
|
5319
|
+
return Xo(e);
|
|
5157
5320
|
},
|
|
5158
5321
|
icon(e) {
|
|
5159
|
-
return
|
|
5322
|
+
return Zo(e);
|
|
5160
5323
|
},
|
|
5161
5324
|
isLink(e) {
|
|
5162
|
-
return
|
|
5325
|
+
return Yo(e);
|
|
5163
5326
|
},
|
|
5164
5327
|
linkClicked(e, t) {
|
|
5165
5328
|
e.currentTarget.focus({ preventScroll: !0 }), this.followLink(e, t);
|
|
@@ -5168,8 +5331,8 @@ var Fo = {
|
|
|
5168
5331
|
if (t.currentTarget.focus({ preventScroll: !0 }), typeof e.onSelect == "function") return e.onSelect();
|
|
5169
5332
|
}
|
|
5170
5333
|
}
|
|
5171
|
-
},
|
|
5172
|
-
function
|
|
5334
|
+
}, $o = ["href", "onClick"], es = ["textContent"], ts = ["onClick"], ns = ["textContent"];
|
|
5335
|
+
function rs(t, o, s, c, l, u) {
|
|
5173
5336
|
let f = g("action-icon"), _ = g("popover-panel");
|
|
5174
5337
|
return p(), n(_, {
|
|
5175
5338
|
"model-value": s.modelValue,
|
|
@@ -5199,7 +5362,7 @@ function Bo(t, o, s, c, l, u) {
|
|
|
5199
5362
|
}, null, 8, ["name"])) : r("", !0), a("span", {
|
|
5200
5363
|
class: "bb:min-w-0 bb:truncate bb:pointer-events-none bb:cursor-default",
|
|
5201
5364
|
textContent: y(o.label)
|
|
5202
|
-
}, null, 8,
|
|
5365
|
+
}, null, 8, es)], 10, $o)) : (p(), i("button", {
|
|
5203
5366
|
key: 1,
|
|
5204
5367
|
type: "button",
|
|
5205
5368
|
role: "menuitem",
|
|
@@ -5211,26 +5374,26 @@ function Bo(t, o, s, c, l, u) {
|
|
|
5211
5374
|
}, null, 8, ["name"])) : r("", !0), a("span", {
|
|
5212
5375
|
class: "bb:min-w-0 bb:truncate bb:pointer-events-none bb:cursor-default",
|
|
5213
5376
|
textContent: y(o.label)
|
|
5214
|
-
}, null, 8,
|
|
5377
|
+
}, null, 8, ns)], 10, ts))], 64))), 128))]),
|
|
5215
5378
|
_: 3
|
|
5216
5379
|
}, 8, ["model-value", "has-content"]);
|
|
5217
5380
|
}
|
|
5218
|
-
var
|
|
5381
|
+
var is = /*#__PURE__*/ j(Qo, [["render", rs]]), as = {
|
|
5219
5382
|
components: {
|
|
5220
|
-
ActionButton:
|
|
5221
|
-
PopoverMenu:
|
|
5383
|
+
ActionButton: fo,
|
|
5384
|
+
PopoverMenu: is
|
|
5222
5385
|
},
|
|
5223
5386
|
mixins: [
|
|
5224
|
-
|
|
5387
|
+
P,
|
|
5225
5388
|
Q,
|
|
5226
|
-
|
|
5389
|
+
A
|
|
5227
5390
|
],
|
|
5228
5391
|
emits: ["update:modelValue"],
|
|
5229
5392
|
props: {
|
|
5230
5393
|
actions: {
|
|
5231
5394
|
type: Array,
|
|
5232
5395
|
default: () => [],
|
|
5233
|
-
validator: (e) => e.every(
|
|
5396
|
+
validator: (e) => e.every(qo)
|
|
5234
5397
|
},
|
|
5235
5398
|
modelValue: {
|
|
5236
5399
|
type: Boolean,
|
|
@@ -5242,7 +5405,7 @@ var Vo = /*#__PURE__*/ M(Fo, [["render", Bo]]), Ho = {
|
|
|
5242
5405
|
},
|
|
5243
5406
|
computed: {
|
|
5244
5407
|
items() {
|
|
5245
|
-
return
|
|
5408
|
+
return Jo(this.actions);
|
|
5246
5409
|
},
|
|
5247
5410
|
hasActions() {
|
|
5248
5411
|
return this.items.length > 0;
|
|
@@ -5251,10 +5414,10 @@ var Vo = /*#__PURE__*/ M(Fo, [["render", Bo]]), Ho = {
|
|
|
5251
5414
|
return this.items[0];
|
|
5252
5415
|
},
|
|
5253
5416
|
mainColor() {
|
|
5254
|
-
return this.hasActions ?
|
|
5417
|
+
return this.hasActions ? Xo(this.mainAction) : null;
|
|
5255
5418
|
},
|
|
5256
5419
|
mainIcon() {
|
|
5257
|
-
return this.hasActions ?
|
|
5420
|
+
return this.hasActions ? Zo(this.mainAction) : null;
|
|
5258
5421
|
},
|
|
5259
5422
|
menuActions() {
|
|
5260
5423
|
return this.items.slice(1);
|
|
@@ -5276,7 +5439,7 @@ var Vo = /*#__PURE__*/ M(Fo, [["render", Bo]]), Ho = {
|
|
|
5276
5439
|
},
|
|
5277
5440
|
methods: {
|
|
5278
5441
|
isLink(e) {
|
|
5279
|
-
return
|
|
5442
|
+
return Yo(e);
|
|
5280
5443
|
},
|
|
5281
5444
|
select(e) {
|
|
5282
5445
|
if (typeof e.onSelect == "function") return e.onSelect();
|
|
@@ -5285,13 +5448,13 @@ var Vo = /*#__PURE__*/ M(Fo, [["render", Bo]]), Ho = {
|
|
|
5285
5448
|
this.menuIsOpen = e, this.$emit("update:modelValue", e);
|
|
5286
5449
|
}
|
|
5287
5450
|
}
|
|
5288
|
-
},
|
|
5451
|
+
}, os = {
|
|
5289
5452
|
key: 0,
|
|
5290
5453
|
class: "bb-dashboard-ui bb:relative bb:inline-flex bb:shadow-xs bb:rounded-md"
|
|
5291
|
-
},
|
|
5292
|
-
function
|
|
5454
|
+
}, ss = ["id", "popovertarget"], cs = { class: "bb:sr-only bb:pointer-events-none bb:cursor-default" };
|
|
5455
|
+
function ls(e, t, n, o, s, l) {
|
|
5293
5456
|
let u = g("action-button"), f = g("popover-menu");
|
|
5294
|
-
return l.hasActions ? (p(), i("span",
|
|
5457
|
+
return l.hasActions ? (p(), i("span", os, [c(u, {
|
|
5295
5458
|
label: l.mainAction.label,
|
|
5296
5459
|
color: l.mainColor,
|
|
5297
5460
|
icon: l.mainIcon,
|
|
@@ -5315,7 +5478,7 @@ function Ko(e, t, n, o, s, l) {
|
|
|
5315
5478
|
id: n.id,
|
|
5316
5479
|
popovertarget: n.popovertarget,
|
|
5317
5480
|
class: d(["bb:relative bb:inline-flex bb:items-center bb:px-2 bb:py-2 bb:rounded-r-md bb:border bb:text-sm bb:font-medium bb:focus:z-10 bb:focus:focus-ring", l.mainColor === null ? "bb:bg-white bb:border-gray-300 bb:text-gray-500 bb:hover:bg-gray-50" : [e.colorClass(l.mainColor, "button"), e.colorClass(l.mainColor, "buttonHover")]])
|
|
5318
|
-
}, [a("span",
|
|
5481
|
+
}, [a("span", cs, y(e.texts.openMenu), 1), t[1] ||= a("svg", {
|
|
5319
5482
|
class: "bb:h-5 bb:w-5 bb:pointer-events-none bb:cursor-default",
|
|
5320
5483
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5321
5484
|
viewBox: "0 0 20 20",
|
|
@@ -5325,7 +5488,7 @@ function Ko(e, t, n, o, s, l) {
|
|
|
5325
5488
|
"fill-rule": "evenodd",
|
|
5326
5489
|
d: "M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",
|
|
5327
5490
|
"clip-rule": "evenodd"
|
|
5328
|
-
})], -1)], 10,
|
|
5491
|
+
})], -1)], 10, ss)]),
|
|
5329
5492
|
_: 1
|
|
5330
5493
|
}, 8, [
|
|
5331
5494
|
"actions",
|
|
@@ -5333,16 +5496,16 @@ function Ko(e, t, n, o, s, l) {
|
|
|
5333
5496
|
"onUpdate:modelValue"
|
|
5334
5497
|
])])) : r("", !0);
|
|
5335
5498
|
}
|
|
5336
|
-
var
|
|
5337
|
-
components: { PopoverMenu:
|
|
5338
|
-
mixins: [
|
|
5499
|
+
var us = /*#__PURE__*/ j(as, [["render", ls]]), ds = {
|
|
5500
|
+
components: { PopoverMenu: is },
|
|
5501
|
+
mixins: [P],
|
|
5339
5502
|
props: { actions: {
|
|
5340
5503
|
type: Array,
|
|
5341
5504
|
default: () => [],
|
|
5342
|
-
validator: (e) => e.every(
|
|
5505
|
+
validator: (e) => e.every(qo)
|
|
5343
5506
|
} }
|
|
5344
|
-
},
|
|
5345
|
-
function
|
|
5507
|
+
}, fs = ["id", "popovertarget"], ps = { class: "bb:sr-only bb:pointer-events-none bb:cursor-default" };
|
|
5508
|
+
function ms(e, t, r, i, o, s) {
|
|
5346
5509
|
let c = g("popover-menu");
|
|
5347
5510
|
return p(), n(c, {
|
|
5348
5511
|
class: "bb-dashboard-ui bb:inline-flex",
|
|
@@ -5353,7 +5516,7 @@ function Zo(e, t, r, i, o, s) {
|
|
|
5353
5516
|
id: n.id,
|
|
5354
5517
|
popovertarget: n.popovertarget,
|
|
5355
5518
|
class: "bb:relative bb:inline-flex bb:items-center bb:justify-center bb:p-2 bb:rounded-md bb:text-gray-400 bb:hover:text-gray-500 bb:hover:bg-gray-100 bb:focus:outline-hidden bb:focus:bg-gray-100 bb:focus:text-gray-500 bb:transition bb:duration-150 bb:ease-in-out"
|
|
5356
|
-
}, [a("span",
|
|
5519
|
+
}, [a("span", ps, y(e.texts.openMenu), 1), t[0] ||= a("svg", {
|
|
5357
5520
|
class: "bb:h-6 bb:w-6 bb:pointer-events-none bb:cursor-default",
|
|
5358
5521
|
fill: "none",
|
|
5359
5522
|
viewBox: "0 0 24 24",
|
|
@@ -5364,48 +5527,48 @@ function Zo(e, t, r, i, o, s) {
|
|
|
5364
5527
|
"stroke-linejoin": "round",
|
|
5365
5528
|
"stroke-width": "2",
|
|
5366
5529
|
d: "M4 6h16M4 12h16M4 18h16"
|
|
5367
|
-
})], -1)], 8,
|
|
5530
|
+
})], -1)], 8, fs)]),
|
|
5368
5531
|
_: 1
|
|
5369
5532
|
}, 8, ["actions"]);
|
|
5370
5533
|
}
|
|
5371
|
-
var
|
|
5534
|
+
var hs = /*#__PURE__*/ j(ds, [["render", ms]]), gs = {}, _s = {
|
|
5372
5535
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5373
5536
|
viewBox: "0 0 20 20",
|
|
5374
5537
|
fill: "currentColor",
|
|
5375
5538
|
"aria-hidden": "true"
|
|
5376
5539
|
};
|
|
5377
|
-
function
|
|
5378
|
-
return p(), i("svg",
|
|
5540
|
+
function vs(e, t, n, r, o, s) {
|
|
5541
|
+
return p(), i("svg", _s, [...t[0] ||= [a("path", {
|
|
5379
5542
|
"fill-rule": "evenodd",
|
|
5380
5543
|
"clip-rule": "evenodd",
|
|
5381
5544
|
d: "M7.707 14.707a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l2.293 2.293a1 1 0 010 1.414z"
|
|
5382
5545
|
}, null, -1)]]);
|
|
5383
5546
|
}
|
|
5384
|
-
var
|
|
5547
|
+
var ys = /*#__PURE__*/ j(gs, [["render", vs]]), bs = {}, xs = {
|
|
5385
5548
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5386
5549
|
viewBox: "0 0 20 20",
|
|
5387
5550
|
fill: "currentColor",
|
|
5388
5551
|
"aria-hidden": "true"
|
|
5389
5552
|
};
|
|
5390
|
-
function
|
|
5391
|
-
return p(), i("svg",
|
|
5553
|
+
function Ss(e, t, n, r, o, s) {
|
|
5554
|
+
return p(), i("svg", xs, [...t[0] ||= [a("path", {
|
|
5392
5555
|
"fill-rule": "evenodd",
|
|
5393
5556
|
"clip-rule": "evenodd",
|
|
5394
5557
|
d: "M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z"
|
|
5395
5558
|
}, null, -1)]]);
|
|
5396
5559
|
}
|
|
5397
|
-
var
|
|
5560
|
+
var Cs = /*#__PURE__*/ j(bs, [["render", Ss]]);
|
|
5398
5561
|
//#endregion
|
|
5399
5562
|
//#region src/components/Pagination.vue
|
|
5400
|
-
function
|
|
5563
|
+
function ws(e) {
|
|
5401
5564
|
return typeof e == "string" && e !== "" ? e : null;
|
|
5402
5565
|
}
|
|
5403
|
-
var
|
|
5566
|
+
var Ts = {
|
|
5404
5567
|
components: {
|
|
5405
|
-
ArrowNarrowLeft:
|
|
5406
|
-
ArrowNarrowRight:
|
|
5568
|
+
ArrowNarrowLeft: ys,
|
|
5569
|
+
ArrowNarrowRight: Cs
|
|
5407
5570
|
},
|
|
5408
|
-
mixins: [
|
|
5571
|
+
mixins: [P, Q],
|
|
5409
5572
|
props: {
|
|
5410
5573
|
links: {
|
|
5411
5574
|
type: Object,
|
|
@@ -5433,49 +5596,49 @@ var cs = {
|
|
|
5433
5596
|
return typeof this.from == "number" && typeof this.to == "number";
|
|
5434
5597
|
},
|
|
5435
5598
|
previousPageUrl() {
|
|
5436
|
-
return
|
|
5599
|
+
return ws(this.links?.prev);
|
|
5437
5600
|
},
|
|
5438
5601
|
nextPageUrl() {
|
|
5439
|
-
return
|
|
5602
|
+
return ws(this.links?.next);
|
|
5440
5603
|
}
|
|
5441
5604
|
}
|
|
5442
|
-
},
|
|
5605
|
+
}, Es = {
|
|
5443
5606
|
key: 0,
|
|
5444
5607
|
class: "bb-dashboard-ui bb:flex bb:items-center bb:justify-between"
|
|
5445
|
-
},
|
|
5608
|
+
}, Ds = { class: "bb:-mt-px bb:w-0 bb:flex-1 bb:flex" }, Os = ["href"], ks = {
|
|
5446
5609
|
key: 0,
|
|
5447
5610
|
class: "bb:-mt-px bb:flex bb:text-gray-400 bb:text-sm bb:leading-5"
|
|
5448
|
-
},
|
|
5449
|
-
function
|
|
5611
|
+
}, As = { class: "bb:font-medium bb:text-gray-900 bb:mx-1" }, js = { class: "bb:font-medium bb:text-gray-900 bb:mx-1" }, Ms = { class: "bb:-mt-px bb:w-0 bb:flex-1 bb:flex bb:justify-end" }, Ns = ["href"];
|
|
5612
|
+
function Ps(e, t, n, o, l, u) {
|
|
5450
5613
|
let d = g("arrow-narrow-left"), f = g("arrow-narrow-right");
|
|
5451
|
-
return u.hasResults ? (p(), i("nav",
|
|
5452
|
-
a("div",
|
|
5614
|
+
return u.hasResults ? (p(), i("nav", Es, [
|
|
5615
|
+
a("div", Ds, [u.previousPageUrl === null ? r("", !0) : (p(), i("a", {
|
|
5453
5616
|
key: 0,
|
|
5454
5617
|
href: u.previousPageUrl,
|
|
5455
5618
|
class: "bb:border-t-2 bb:border-transparent bb:pt-4 bb:pr-1 bb:inline-flex bb:items-center bb:text-sm bb:font-medium bb:text-gray-500 bb:hover:text-gray-700 bb:hover:border-indigo-700 bb:focus-visible:focus-ring",
|
|
5456
5619
|
onClick: t[0] ||= (t) => e.followLink(t, u.previousPageUrl)
|
|
5457
|
-
}, [c(d, { class: "bb:mr-3 bb:h-5 bb:w-5 bb:text-gray-400 bb:pointer-events-none bb:cursor-default" }), s(" " + y(e.texts.previousPage), 1)], 8,
|
|
5458
|
-
u.hasRange ? (p(), i("div",
|
|
5620
|
+
}, [c(d, { class: "bb:mr-3 bb:h-5 bb:w-5 bb:text-gray-400 bb:pointer-events-none bb:cursor-default" }), s(" " + y(e.texts.previousPage), 1)], 8, Os))]),
|
|
5621
|
+
u.hasRange ? (p(), i("div", ks, [
|
|
5459
5622
|
s(y(e.texts.resultsBefore) + " ", 1),
|
|
5460
|
-
a("span",
|
|
5623
|
+
a("span", As, y(u.from) + " - " + y(u.to), 1),
|
|
5461
5624
|
s(" " + y(e.texts.resultsOf) + " ", 1),
|
|
5462
|
-
a("span",
|
|
5625
|
+
a("span", js, y(u.total), 1),
|
|
5463
5626
|
s(" " + y(e.texts.resultsAfter), 1)
|
|
5464
5627
|
])) : r("", !0),
|
|
5465
|
-
a("div",
|
|
5628
|
+
a("div", Ms, [u.nextPageUrl === null ? r("", !0) : (p(), i("a", {
|
|
5466
5629
|
key: 0,
|
|
5467
5630
|
href: u.nextPageUrl,
|
|
5468
5631
|
class: "bb:border-t-2 bb:border-transparent bb:pt-4 bb:pl-1 bb:inline-flex bb:items-center bb:text-sm bb:font-medium bb:text-gray-500 bb:hover:text-gray-700 bb:hover:border-indigo-700 bb:focus-visible:focus-ring",
|
|
5469
5632
|
onClick: t[1] ||= (t) => e.followLink(t, u.nextPageUrl)
|
|
5470
|
-
}, [s(y(e.texts.nextPage) + " ", 1), c(f, { class: "bb:ml-3 bb:h-5 bb:w-5 bb:text-gray-400 bb:pointer-events-none bb:cursor-default" })], 8,
|
|
5633
|
+
}, [s(y(e.texts.nextPage) + " ", 1), c(f, { class: "bb:ml-3 bb:h-5 bb:w-5 bb:text-gray-400 bb:pointer-events-none bb:cursor-default" })], 8, Ns))])
|
|
5471
5634
|
])) : r("", !0);
|
|
5472
5635
|
}
|
|
5473
|
-
var
|
|
5636
|
+
var Fs = /*#__PURE__*/ j(Ts, [["render", Ps]]), Is = [
|
|
5474
5637
|
"left",
|
|
5475
5638
|
"center",
|
|
5476
5639
|
"right"
|
|
5477
5640
|
];
|
|
5478
|
-
function
|
|
5641
|
+
function Ls(e) {
|
|
5479
5642
|
if (typeof e != "object" || !e || typeof e.key != "string" || e.key === "") return null;
|
|
5480
5643
|
let t = e.key;
|
|
5481
5644
|
return {
|
|
@@ -5484,21 +5647,21 @@ function bs(e) {
|
|
|
5484
5647
|
value: typeof e.value == "function" ? e.value : (e) => e?.[t],
|
|
5485
5648
|
secondary: typeof e.secondary == "function" ? e.secondary : null,
|
|
5486
5649
|
muted: e.muted === !0,
|
|
5487
|
-
align:
|
|
5650
|
+
align: Is.includes(e.align) ? e.align : "left",
|
|
5488
5651
|
wrap: e.wrap === !0,
|
|
5489
5652
|
narrow: e.narrow === !0,
|
|
5490
5653
|
visible: e.visible !== !1
|
|
5491
5654
|
};
|
|
5492
5655
|
}
|
|
5493
|
-
function
|
|
5656
|
+
function Rs(e) {
|
|
5494
5657
|
return typeof e == "string" && e !== "" ? e : null;
|
|
5495
5658
|
}
|
|
5496
|
-
var
|
|
5659
|
+
var zs = {
|
|
5497
5660
|
components: {
|
|
5498
|
-
Pagination:
|
|
5499
|
-
InfoPill:
|
|
5661
|
+
Pagination: Fs,
|
|
5662
|
+
InfoPill: ia
|
|
5500
5663
|
},
|
|
5501
|
-
mixins: [
|
|
5664
|
+
mixins: [P, A],
|
|
5502
5665
|
props: {
|
|
5503
5666
|
rows: {
|
|
5504
5667
|
type: Array,
|
|
@@ -5543,7 +5706,7 @@ var Ss = {
|
|
|
5543
5706
|
return Array.isArray(this.rows) ? this.rows : [];
|
|
5544
5707
|
},
|
|
5545
5708
|
visibleColumns() {
|
|
5546
|
-
return (Array.isArray(this.columns) ? this.columns : []).map(
|
|
5709
|
+
return (Array.isArray(this.columns) ? this.columns : []).map(Ls).filter((e) => e !== null && e.visible);
|
|
5547
5710
|
},
|
|
5548
5711
|
rowStripes() {
|
|
5549
5712
|
return this.normalizedRows.map((e) => this.stripeOf(e));
|
|
@@ -5562,10 +5725,10 @@ var Ss = {
|
|
|
5562
5725
|
},
|
|
5563
5726
|
badgeText() {
|
|
5564
5727
|
if (this.hasRecords) {
|
|
5565
|
-
let e =
|
|
5728
|
+
let e = Rs(this.foundText);
|
|
5566
5729
|
return e === null ? null : `${e}: ${this.recordCount}`;
|
|
5567
5730
|
}
|
|
5568
|
-
return
|
|
5731
|
+
return Rs(this.emptyText);
|
|
5569
5732
|
}
|
|
5570
5733
|
},
|
|
5571
5734
|
methods: {
|
|
@@ -5585,15 +5748,15 @@ var Ss = {
|
|
|
5585
5748
|
stripeOf(e) {
|
|
5586
5749
|
if (typeof this.rowStripe != "function") return null;
|
|
5587
5750
|
let t = this.rowStripe(e);
|
|
5588
|
-
return
|
|
5751
|
+
return k(t) ? t : null;
|
|
5589
5752
|
},
|
|
5590
5753
|
textOf(e, t) {
|
|
5591
5754
|
let n = e(t);
|
|
5592
5755
|
return n == null ? "" : String(n);
|
|
5593
5756
|
}
|
|
5594
5757
|
}
|
|
5595
|
-
},
|
|
5596
|
-
function
|
|
5758
|
+
}, Bs = { class: "bb:min-w-full bb:divide-y bb:divide-gray-200 bb:border-collapse" }, Vs = { class: "bb:bg-gray-50" }, Hs = ["textContent"], Us = { class: "bb:divide-y bb:divide-gray-200" }, Ws = ["textContent"], Gs = ["textContent"];
|
|
5759
|
+
function Ks(t, o, s, c, l, u) {
|
|
5597
5760
|
let f = g("info-pill"), _ = g("pagination");
|
|
5598
5761
|
return p(), i("div", null, [
|
|
5599
5762
|
u.hasBadgeRow() ? (p(), i("div", {
|
|
@@ -5607,7 +5770,7 @@ function ks(t, o, s, c, l, u) {
|
|
|
5607
5770
|
u.normalizedRows.length > 0 ? (p(), i("div", {
|
|
5608
5771
|
key: 1,
|
|
5609
5772
|
class: d(u.isCard && u.hasBadgeRow() ? "bb:mt-4" : "")
|
|
5610
|
-
}, [a("div", { class: d(["bb:overflow-x-auto", u.isCard ? "bb:border-t bb:border-gray-200" : "bb:shadow-sm bb:border-b bb:border-gray-200 bb:rounded-lg"]) }, [a("table",
|
|
5773
|
+
}, [a("div", { class: d(["bb:overflow-x-auto", u.isCard ? "bb:border-t bb:border-gray-200" : "bb:shadow-sm bb:border-b bb:border-gray-200 bb:rounded-lg"]) }, [a("table", Bs, [a("thead", null, [a("tr", Vs, [(p(!0), i(e, null, m(u.visibleColumns, (e) => (p(), i("th", {
|
|
5611
5774
|
key: e.key,
|
|
5612
5775
|
scope: "col",
|
|
5613
5776
|
class: d(["bb:px-6 bb:py-3 bb:text-xs bb:leading-4 bb:font-medium bb:text-gray-500 bb:uppercase bb:tracking-wider bb:whitespace-nowrap", [{
|
|
@@ -5616,7 +5779,7 @@ function ks(t, o, s, c, l, u) {
|
|
|
5616
5779
|
"bb:text-right": e.align === "right"
|
|
5617
5780
|
}, { "bb:w-px": e.narrow }]]),
|
|
5618
5781
|
textContent: y(e.label)
|
|
5619
|
-
}, null, 10,
|
|
5782
|
+
}, null, 10, Hs))), 128))])]), a("tbody", Us, [(p(!0), i(e, null, m(u.normalizedRows, (n, o) => (p(), i("tr", {
|
|
5620
5783
|
key: u.keyOf(n, o),
|
|
5621
5784
|
class: "bb:bg-white bb:even:bg-gray-50"
|
|
5622
5785
|
}, [(p(!0), i(e, null, m(u.visibleColumns, (e, s) => (p(), i("td", {
|
|
@@ -5640,11 +5803,11 @@ function ks(t, o, s, c, l, u) {
|
|
|
5640
5803
|
}, () => [a("div", {
|
|
5641
5804
|
class: d(["bb:font-medium", e.muted ? "bb:text-gray-400" : "bb:text-gray-900"]),
|
|
5642
5805
|
textContent: y(u.textOf(e.value, n))
|
|
5643
|
-
}, null, 10,
|
|
5806
|
+
}, null, 10, Ws), e.secondary !== null && u.textOf(e.secondary, n) !== "" ? (p(), i("div", {
|
|
5644
5807
|
key: 0,
|
|
5645
5808
|
class: "bb:text-gray-400",
|
|
5646
5809
|
textContent: y(u.textOf(e.secondary, n))
|
|
5647
|
-
}, null, 8,
|
|
5810
|
+
}, null, 8, Gs)) : r("", !0)])], 2))), 128))]))), 128))])])], 2)], 2)) : r("", !0),
|
|
5648
5811
|
u.hasMeta ? (p(), n(_, {
|
|
5649
5812
|
key: 2,
|
|
5650
5813
|
meta: s.meta,
|
|
@@ -5659,7 +5822,7 @@ function ks(t, o, s, c, l, u) {
|
|
|
5659
5822
|
])) : r("", !0)
|
|
5660
5823
|
]);
|
|
5661
5824
|
}
|
|
5662
|
-
var
|
|
5825
|
+
var qs = /*#__PURE__*/ j(zs, [["render", Ks]]), Js = {
|
|
5663
5826
|
mixins: [Q],
|
|
5664
5827
|
props: {
|
|
5665
5828
|
url: {
|
|
@@ -5675,17 +5838,65 @@ var As = /*#__PURE__*/ M(Ss, [["render", ks]]), js = {
|
|
|
5675
5838
|
default: !1
|
|
5676
5839
|
}
|
|
5677
5840
|
}
|
|
5678
|
-
},
|
|
5679
|
-
function
|
|
5841
|
+
}, Ys = ["href", "textContent"];
|
|
5842
|
+
function Xs(e, t, n, r, a, o) {
|
|
5680
5843
|
return p(), i("a", {
|
|
5681
5844
|
href: n.url,
|
|
5682
5845
|
class: d([n.isActive ? "bb:border-indigo-400 bb:text-gray-600 bb:focus:border-indigo-700" : "bb:border-transparent bb:text-gray-500 bb:hover:text-gray-600 bb:hover:border-gray-300 bb:focus:text-gray-700 bb:focus:border-gray-300", "bb-dashboard-ui bb:inline-flex bb:items-center bb:px-1 bb:pt-1 bb:border-b-2 bb:text-sm bb:font-medium bb:leading-5 bb:focus:outline-hidden bb:transition bb:duration-150 bb:ease-in-out"]),
|
|
5683
5846
|
onClick: t[0] ||= (t) => e.followLink(t, n.url),
|
|
5684
5847
|
textContent: y(n.name)
|
|
5685
|
-
}, null, 10,
|
|
5848
|
+
}, null, 10, Ys);
|
|
5686
5849
|
}
|
|
5687
|
-
var
|
|
5688
|
-
|
|
5850
|
+
var Zs = /*#__PURE__*/ j(Js, [["render", Xs]]), Qs = {
|
|
5851
|
+
components: {
|
|
5852
|
+
HamburgerMenu: hs,
|
|
5853
|
+
NavigationMenuElement: Zs
|
|
5854
|
+
},
|
|
5855
|
+
mixins: [P],
|
|
5856
|
+
props: {
|
|
5857
|
+
items: {
|
|
5858
|
+
type: Array,
|
|
5859
|
+
default: () => []
|
|
5860
|
+
},
|
|
5861
|
+
activeKey: {
|
|
5862
|
+
type: String,
|
|
5863
|
+
default: null
|
|
5864
|
+
},
|
|
5865
|
+
actions: {
|
|
5866
|
+
type: Array,
|
|
5867
|
+
default: () => []
|
|
5868
|
+
}
|
|
5869
|
+
},
|
|
5870
|
+
computed: { itemList() {
|
|
5871
|
+
return Array.isArray(this.items) ? this.items.filter((e) => typeof e == "object" && !!e) : [];
|
|
5872
|
+
} }
|
|
5873
|
+
}, $s = ["aria-label"], ec = { class: "bb:flex bb:h-16 bb:justify-between bb:px-8" }, tc = { class: "bb:flex" }, nc = {
|
|
5874
|
+
key: 0,
|
|
5875
|
+
class: "bb:flex bb:shrink-0 bb:items-center bb:mr-8"
|
|
5876
|
+
}, rc = { class: "bb:flex bb:gap-8 bb:whitespace-nowrap" }, ic = { class: "bb:flex bb:items-center bb:ml-6" };
|
|
5877
|
+
function ac(t, o, s, l, u, d) {
|
|
5878
|
+
let f = g("navigation-menu-element"), _ = g("hamburger-menu");
|
|
5879
|
+
return p(), i("nav", {
|
|
5880
|
+
class: "bb-dashboard-ui bb:bg-white bb:shadow-sm",
|
|
5881
|
+
"aria-label": t.texts.sections
|
|
5882
|
+
}, [a("div", ec, [a("div", tc, [t.$slots.logo ? (p(), i("div", nc, [h(t.$slots, "logo")])) : r("", !0), a("div", rc, [(p(!0), i(e, null, m(d.itemList, (e) => (p(), n(f, {
|
|
5883
|
+
key: e.key,
|
|
5884
|
+
name: e.name,
|
|
5885
|
+
url: e.url,
|
|
5886
|
+
"is-active": e.key === s.activeKey,
|
|
5887
|
+
"aria-current": e.key === s.activeKey ? "page" : null
|
|
5888
|
+
}, null, 8, [
|
|
5889
|
+
"name",
|
|
5890
|
+
"url",
|
|
5891
|
+
"is-active",
|
|
5892
|
+
"aria-current"
|
|
5893
|
+
]))), 128))])]), a("div", ic, [c(_, {
|
|
5894
|
+
actions: s.actions,
|
|
5895
|
+
lang: t.lang
|
|
5896
|
+
}, null, 8, ["actions", "lang"])])])], 8, $s);
|
|
5897
|
+
}
|
|
5898
|
+
var oc = /*#__PURE__*/ j(Qs, [["render", ac]]), sc = {
|
|
5899
|
+
mixins: [P, Q],
|
|
5689
5900
|
props: {
|
|
5690
5901
|
tabs: {
|
|
5691
5902
|
type: Array,
|
|
@@ -5699,13 +5910,13 @@ var Ps = /*#__PURE__*/ M(js, [["render", Ns]]), Fs = {
|
|
|
5699
5910
|
computed: { tabList() {
|
|
5700
5911
|
return Array.isArray(this.tabs) ? this.tabs.filter((e) => typeof e == "object" && !!e) : [];
|
|
5701
5912
|
} }
|
|
5702
|
-
},
|
|
5913
|
+
}, cc = ["aria-label"], lc = [
|
|
5703
5914
|
"href",
|
|
5704
5915
|
"aria-current",
|
|
5705
5916
|
"onClick",
|
|
5706
5917
|
"textContent"
|
|
5707
5918
|
];
|
|
5708
|
-
function
|
|
5919
|
+
function uc(t, n, r, a, o, s) {
|
|
5709
5920
|
return p(), i("nav", {
|
|
5710
5921
|
class: "bb-dashboard-ui bb:flex bb:space-x-4",
|
|
5711
5922
|
"aria-label": t.texts.tabs
|
|
@@ -5716,21 +5927,21 @@ function Rs(t, n, r, a, o, s) {
|
|
|
5716
5927
|
class: d(["bb:px-3 bb:py-2 bb:font-medium bb:text-sm bb:rounded-md bb:focus-visible:focus-ring", e.key === r.activeKey ? "bb:bg-indigo-100 bb:text-gray-700" : "bb:text-gray-500 bb:hover:text-gray-700"]),
|
|
5717
5928
|
onClick: (n) => t.followLink(n, e.url),
|
|
5718
5929
|
textContent: y(e.name)
|
|
5719
|
-
}, null, 10,
|
|
5930
|
+
}, null, 10, lc))), 128))], 8, cc);
|
|
5720
5931
|
}
|
|
5721
|
-
var
|
|
5932
|
+
var dc = /*#__PURE__*/ j(sc, [["render", uc]]), fc = [
|
|
5722
5933
|
"xl",
|
|
5723
5934
|
"4xl",
|
|
5724
5935
|
"7xl"
|
|
5725
|
-
],
|
|
5726
|
-
components: { CrossButton:
|
|
5727
|
-
mixins: [
|
|
5936
|
+
], pc = {
|
|
5937
|
+
components: { CrossButton: F },
|
|
5938
|
+
mixins: [P],
|
|
5728
5939
|
inheritAttrs: !1,
|
|
5729
5940
|
props: {
|
|
5730
5941
|
width: {
|
|
5731
5942
|
type: String,
|
|
5732
5943
|
default: "xl",
|
|
5733
|
-
validator: (e) =>
|
|
5944
|
+
validator: (e) => fc.includes(e)
|
|
5734
5945
|
},
|
|
5735
5946
|
fallbackUrl: {
|
|
5736
5947
|
type: String,
|
|
@@ -5746,7 +5957,7 @@ var zs = /*#__PURE__*/ M(Fs, [["render", Rs]]), Bs = [
|
|
|
5746
5957
|
},
|
|
5747
5958
|
computed: {
|
|
5748
5959
|
resolvedWidth() {
|
|
5749
|
-
return
|
|
5960
|
+
return fc.includes(this.width) ? this.width : "xl";
|
|
5750
5961
|
},
|
|
5751
5962
|
windows() {
|
|
5752
5963
|
return this.uiSettings.windows;
|
|
@@ -5762,13 +5973,13 @@ var zs = /*#__PURE__*/ M(Fs, [["render", Rs]]), Bs = [
|
|
|
5762
5973
|
}
|
|
5763
5974
|
},
|
|
5764
5975
|
watch: { fallbackUrl() {
|
|
5765
|
-
this.windows !== null &&
|
|
5976
|
+
this.windows !== null && ge(this.windows.state, this, this.fallbackAddress());
|
|
5766
5977
|
} },
|
|
5767
5978
|
mounted() {
|
|
5768
|
-
this.windows !== null && (this.returnAddress =
|
|
5979
|
+
this.windows !== null && (this.returnAddress = pe(this.windows.state, this, this.resolvedKey, this.fallbackAddress()).returnAddress, this.$watch(() => [this.windows.page.number, this.resolvedKey], () => this.syncWindow(), { flush: "post" }));
|
|
5769
5980
|
},
|
|
5770
5981
|
beforeUnmount() {
|
|
5771
|
-
this.windows !== null &&
|
|
5982
|
+
this.windows !== null && he(this.windows.state, this);
|
|
5772
5983
|
},
|
|
5773
5984
|
methods: {
|
|
5774
5985
|
fallbackAddress() {
|
|
@@ -5778,7 +5989,7 @@ var zs = /*#__PURE__*/ M(Fs, [["render", Rs]]), Bs = [
|
|
|
5778
5989
|
return Object.fromEntries(Object.entries(this.$attrs).filter(([e]) => e.startsWith("data-") || e.startsWith("aria-")));
|
|
5779
5990
|
},
|
|
5780
5991
|
syncWindow() {
|
|
5781
|
-
let e =
|
|
5992
|
+
let e = me(this.windows.state, this, this.resolvedKey, this.fallbackAddress());
|
|
5782
5993
|
e.rejected && console.warn(`PageCard: ключ окна сменился на «${this.resolvedKey}» без смены страницы — карточка остаётся в окне «${e.key}»`), this.returnAddress = e.window.returnAddress;
|
|
5783
5994
|
},
|
|
5784
5995
|
close() {
|
|
@@ -5793,7 +6004,7 @@ var zs = /*#__PURE__*/ M(Fs, [["render", Rs]]), Bs = [
|
|
|
5793
6004
|
}
|
|
5794
6005
|
}
|
|
5795
6006
|
};
|
|
5796
|
-
function
|
|
6007
|
+
function mc(e, t, a, o, c, l) {
|
|
5797
6008
|
let f = g("cross-button");
|
|
5798
6009
|
return p(), i("div", u({
|
|
5799
6010
|
class: ["bb:box-border bb:relative bb:my-6 bb:mx-auto bb:bg-white bb:shadow-xl bb:rounded-lg", [
|
|
@@ -5824,21 +6035,21 @@ function Hs(e, t, a, o, c, l) {
|
|
|
5824
6035
|
_: 1
|
|
5825
6036
|
}, 8, ["class", "onClicked"])) : r("", !0)], 16);
|
|
5826
6037
|
}
|
|
5827
|
-
var
|
|
5828
|
-
function
|
|
5829
|
-
return p(), i("dl",
|
|
6038
|
+
var hc = /*#__PURE__*/ j(pc, [["render", mc]]), gc = {}, _c = { class: "bb:m-0 bb:p-0 bb:overflow-hidden bb:rounded-b-lg" };
|
|
6039
|
+
function vc(e, t, n, r, a, o) {
|
|
6040
|
+
return p(), i("dl", _c, [h(e.$slots, "default")]);
|
|
5830
6041
|
}
|
|
5831
|
-
var
|
|
6042
|
+
var yc = /*#__PURE__*/ j(gc, [["render", vc]]), bc = { props: { title: {
|
|
5832
6043
|
type: String,
|
|
5833
6044
|
required: !0
|
|
5834
|
-
} } },
|
|
5835
|
-
function
|
|
5836
|
-
return p(), i("div",
|
|
6045
|
+
} } }, xc = { class: "bb:grid bb:grid-cols-3 bb:gap-4 bb:px-6 bb:py-5 bb:bg-white bb:odd:bg-gray-50" }, Sc = ["textContent"], Cc = { class: "bb:col-span-2 bb:m-0 bb:p-0 bb:text-sm bb:leading-5 bb:font-medium bb:text-gray-900 bb:wrap-break-word" };
|
|
6046
|
+
function wc(e, t, n, r, o, s) {
|
|
6047
|
+
return p(), i("div", xc, [a("dt", {
|
|
5837
6048
|
class: "bb:m-0 bb:p-0 bb:text-sm bb:leading-5 bb:font-normal bb:text-gray-500 bb:wrap-break-word",
|
|
5838
6049
|
textContent: y(n.title)
|
|
5839
|
-
}, null, 8,
|
|
6050
|
+
}, null, 8, Sc), a("dd", Cc, [h(e.$slots, "default")])]);
|
|
5840
6051
|
}
|
|
5841
|
-
var
|
|
6052
|
+
var Tc = /*#__PURE__*/ j(bc, [["render", wc]]), Ec = {}, Dc = {
|
|
5842
6053
|
class: "bb:h-7 bb:w-7 bb:text-green-600",
|
|
5843
6054
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5844
6055
|
fill: "none",
|
|
@@ -5847,22 +6058,22 @@ var $s = /*#__PURE__*/ M(Js, [["render", Qs]]), ec = {}, tc = {
|
|
|
5847
6058
|
stroke: "currentColor",
|
|
5848
6059
|
"aria-hidden": "true"
|
|
5849
6060
|
};
|
|
5850
|
-
function
|
|
5851
|
-
return p(), i("svg",
|
|
6061
|
+
function Oc(e, t, n, r, o, s) {
|
|
6062
|
+
return p(), i("svg", Dc, [...t[0] ||= [a("path", {
|
|
5852
6063
|
"stroke-linecap": "round",
|
|
5853
6064
|
"stroke-linejoin": "round",
|
|
5854
6065
|
d: "M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"
|
|
5855
6066
|
}, null, -1)]]);
|
|
5856
6067
|
}
|
|
5857
|
-
var
|
|
6068
|
+
var kc = /*#__PURE__*/ j(Ec, [["render", Oc]]), Ac = {}, jc = {
|
|
5858
6069
|
class: "bb:h-5 bb:w-5",
|
|
5859
6070
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5860
6071
|
viewBox: "0 0 20 20",
|
|
5861
6072
|
fill: "currentColor",
|
|
5862
6073
|
"aria-hidden": "true"
|
|
5863
6074
|
};
|
|
5864
|
-
function
|
|
5865
|
-
return p(), i("svg",
|
|
6075
|
+
function Mc(e, t, n, r, o, s) {
|
|
6076
|
+
return p(), i("svg", jc, [...t[0] ||= [a("path", {
|
|
5866
6077
|
"fill-rule": "evenodd",
|
|
5867
6078
|
d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
|
|
5868
6079
|
"clip-rule": "evenodd"
|
|
@@ -5870,14 +6081,14 @@ function oc(e, t, n, r, o, s) {
|
|
|
5870
6081
|
}
|
|
5871
6082
|
//#endregion
|
|
5872
6083
|
//#region src/components/NotificationMessage.vue
|
|
5873
|
-
var
|
|
6084
|
+
var Nc = {
|
|
5874
6085
|
components: {
|
|
5875
|
-
Check:
|
|
5876
|
-
Close: /* @__PURE__ */
|
|
5877
|
-
Dangerous:
|
|
5878
|
-
Warning:
|
|
6086
|
+
Check: kc,
|
|
6087
|
+
Close: /* @__PURE__ */ j(Ac, [["render", Mc]]),
|
|
6088
|
+
Dangerous: Mo,
|
|
6089
|
+
Warning: Io
|
|
5879
6090
|
},
|
|
5880
|
-
mixins: [
|
|
6091
|
+
mixins: [P],
|
|
5881
6092
|
emits: ["update:modelValue"],
|
|
5882
6093
|
props: {
|
|
5883
6094
|
modelValue: {
|
|
@@ -5915,8 +6126,8 @@ var sc = {
|
|
|
5915
6126
|
return this.type === "confirmation";
|
|
5916
6127
|
}
|
|
5917
6128
|
}
|
|
5918
|
-
},
|
|
5919
|
-
function
|
|
6129
|
+
}, Pc = ["role"], Fc = { class: "bb:p-4" }, Ic = { class: "bb:flex bb:items-start" }, Lc = { class: "bb:shrink-0" }, Rc = { class: "bb:ml-3 bb:w-0 bb:flex-1 bb:pt-0.5" }, zc = { class: "bb:text-sm bb:font-medium bb:text-gray-900" }, Bc = { class: "bb:mt-1 bb:text-sm bb:text-gray-500" }, Vc = { class: "bb:ml-4 bb:shrink-0 bb:flex" }, Hc = { class: "bb:sr-only bb:pointer-events-none bb:cursor-default" };
|
|
6130
|
+
function Uc(e, t, o, s, l, u) {
|
|
5920
6131
|
let f = g("warning"), m = g("dangerous"), h = g("check"), _ = g("close");
|
|
5921
6132
|
return p(), i("div", {
|
|
5922
6133
|
class: "bb-dashboard-ui bb:fixed bb:inset-0 bb:flex bb:items-start bb:justify-end bb:p-6 bb:pointer-events-none",
|
|
@@ -5928,14 +6139,14 @@ function _c(e, t, o, s, l, u) {
|
|
|
5928
6139
|
"bb:bg-yellow-50": u.isWarning,
|
|
5929
6140
|
"bb:bg-gray-50": u.isConfirmation
|
|
5930
6141
|
}])
|
|
5931
|
-
}, [a("div",
|
|
5932
|
-
a("div",
|
|
6142
|
+
}, [a("div", Fc, [a("div", Ic, [
|
|
6143
|
+
a("div", Lc, [
|
|
5933
6144
|
u.isWarning ? (p(), n(f, { key: 0 })) : r("", !0),
|
|
5934
6145
|
u.isDangerous ? (p(), n(m, { key: 1 })) : r("", !0),
|
|
5935
6146
|
u.isConfirmation ? (p(), n(h, { key: 2 })) : r("", !0)
|
|
5936
6147
|
]),
|
|
5937
|
-
a("div",
|
|
5938
|
-
a("div",
|
|
6148
|
+
a("div", Rc, [a("p", zc, y(o.notificationHeading), 1), a("p", Bc, y(u.text), 1)]),
|
|
6149
|
+
a("div", Vc, [a("button", {
|
|
5939
6150
|
type: "button",
|
|
5940
6151
|
class: d(["bb:rounded-md bb:inline-flex bb:text-gray-400 bb:hover:text-gray-500 bb:focus:focus-ring", {
|
|
5941
6152
|
"bb:bg-red-50": u.isDangerous,
|
|
@@ -5943,10 +6154,10 @@ function _c(e, t, o, s, l, u) {
|
|
|
5943
6154
|
"bb:bg-gray-50": u.isConfirmation
|
|
5944
6155
|
}]),
|
|
5945
6156
|
onClick: t[0] ||= E((t) => e.$emit("update:modelValue", ""), ["prevent"])
|
|
5946
|
-
}, [a("span",
|
|
5947
|
-
])])], 2)) : r("", !0)], 8,
|
|
6157
|
+
}, [a("span", Hc, y(e.texts.close), 1), c(_, { class: "bb:pointer-events-none bb:cursor-default" })], 2)])
|
|
6158
|
+
])])], 2)) : r("", !0)], 8, Pc);
|
|
5948
6159
|
}
|
|
5949
|
-
var
|
|
6160
|
+
var Wc = /*#__PURE__*/ j(Nc, [["render", Uc]]), Gc = {}, Kc = {
|
|
5950
6161
|
class: "bb:h-5 bb:w-5",
|
|
5951
6162
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5952
6163
|
fill: "none",
|
|
@@ -5955,8 +6166,8 @@ var vc = /*#__PURE__*/ M(sc, [["render", _c]]), yc = {}, bc = {
|
|
|
5955
6166
|
"stroke-width": "2",
|
|
5956
6167
|
"aria-hidden": "true"
|
|
5957
6168
|
};
|
|
5958
|
-
function
|
|
5959
|
-
return p(), i("svg",
|
|
6169
|
+
function qc(e, t, n, r, o, s) {
|
|
6170
|
+
return p(), i("svg", Kc, [...t[0] ||= [a("path", {
|
|
5960
6171
|
"stroke-linecap": "round",
|
|
5961
6172
|
"stroke-linejoin": "round",
|
|
5962
6173
|
d: "M15 12a3 3 0 11-6 0 3 3 0 016 0z"
|
|
@@ -5966,12 +6177,12 @@ function xc(e, t, n, r, o, s) {
|
|
|
5966
6177
|
d: "M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"
|
|
5967
6178
|
}, null, -1)]]);
|
|
5968
6179
|
}
|
|
5969
|
-
var
|
|
6180
|
+
var Jc = /*#__PURE__*/ j(Gc, [["render", qc]]), $ = 0, Yc = null, Xc = {
|
|
5970
6181
|
components: {
|
|
5971
|
-
PopoverPanel:
|
|
5972
|
-
Eye:
|
|
6182
|
+
PopoverPanel: z,
|
|
6183
|
+
Eye: Jc
|
|
5973
6184
|
},
|
|
5974
|
-
mixins: [
|
|
6185
|
+
mixins: [P],
|
|
5975
6186
|
emits: ["update:modelValue"],
|
|
5976
6187
|
props: {
|
|
5977
6188
|
text: {
|
|
@@ -6004,18 +6215,18 @@ var Sc = /*#__PURE__*/ M(yc, [["render", xc]]), $ = 0, Cc = null, wc = {
|
|
|
6004
6215
|
lockPageSelection() {
|
|
6005
6216
|
if (!this.holdsPageSelectionLock && (this.holdsPageSelectionLock = !0, $ += 1, $ === 1)) {
|
|
6006
6217
|
let e = document.documentElement.style;
|
|
6007
|
-
|
|
6218
|
+
Yc = {
|
|
6008
6219
|
userSelect: e.userSelect,
|
|
6009
6220
|
webkitUserSelect: e.webkitUserSelect
|
|
6010
6221
|
}, e.userSelect = "none", e.webkitUserSelect = "none";
|
|
6011
6222
|
}
|
|
6012
6223
|
},
|
|
6013
6224
|
unlockPageSelection() {
|
|
6014
|
-
this.holdsPageSelectionLock && (this.holdsPageSelectionLock = !1, --$, $ === 0 && (Object.assign(document.documentElement.style,
|
|
6225
|
+
this.holdsPageSelectionLock && (this.holdsPageSelectionLock = !1, --$, $ === 0 && (Object.assign(document.documentElement.style, Yc), Yc = null));
|
|
6015
6226
|
}
|
|
6016
6227
|
}
|
|
6017
|
-
},
|
|
6018
|
-
function
|
|
6228
|
+
}, Zc = ["id", "popovertarget"], Qc = { class: "bb:sr-only bb:pointer-events-none bb:cursor-default" };
|
|
6229
|
+
function $c(e, t, r, i, o, l) {
|
|
6019
6230
|
let u = g("eye"), d = g("popover-panel");
|
|
6020
6231
|
return p(), n(d, {
|
|
6021
6232
|
class: "bb-dashboard-ui bb:inline-flex",
|
|
@@ -6035,7 +6246,7 @@ function Dc(e, t, r, i, o, l) {
|
|
|
6035
6246
|
id: t.id,
|
|
6036
6247
|
popovertarget: t.popovertarget,
|
|
6037
6248
|
class: "bb:relative bb:inline-flex bb:items-center bb:justify-center bb:self-center bb:text-gray-400 bb:hover:text-gray-600 bb:rounded-md bb:focus-visible:focus-ring"
|
|
6038
|
-
}, [a("span",
|
|
6249
|
+
}, [a("span", Qc, y(e.texts.showText), 1), c(u, { class: "bb:pointer-events-none bb:cursor-default" })], 8, Zc)]),
|
|
6039
6250
|
default: C(() => [s(y(l.normalizedText), 1)]),
|
|
6040
6251
|
_: 1
|
|
6041
6252
|
}, 8, [
|
|
@@ -6045,6 +6256,6 @@ function Dc(e, t, r, i, o, l) {
|
|
|
6045
6256
|
"onToggle"
|
|
6046
6257
|
]);
|
|
6047
6258
|
}
|
|
6048
|
-
var
|
|
6259
|
+
var el = /*#__PURE__*/ j(Xc, [["render", $c]]);
|
|
6049
6260
|
//#endregion
|
|
6050
|
-
export {
|
|
6261
|
+
export { fo as ActionButton, bo as ActionPill, ji as AmountForm, Wi as AmountIntervalFilter, ea as AmountIntervalForm, Ko as ConfirmationModal, qs as DataTable, yc as DetailList, Tc as DetailRow, M as Dot, us as DropdownButtonWithAction, da as ErrorMessages, va as FormInput, Pa as FormTextarea, hs as HamburgerMenu, ia as InfoPill, oc as NavigationHeader, Zs as NavigationMenuElement, Wc as NotificationMessage, hc as PageCard, dc as PageTabs, nt as RussianMobileFilter, lt as Search, ei as SelectCurrencyFilter, ri as SelectCurrencyForm, qt as SelectDateFilter, rn as SelectDateForm, mn as SelectDateIntervalFilter, Cn as SelectDateIntervalForm, nr as SelectMultipleFilter, lr as SelectMultipleForm, Cr as SelectMultipleList, Yr as SelectSingleCards, Mr as SelectSingleFilter, zr as SelectSingleForm, el as TextPopover, xe as dashboardUi, Te as downloadFile };
|