@boobooking/dashboard-ui-components 0.24.0 → 0.25.1
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 +199 -26
- package/dist/index.js +897 -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,11 +4532,19 @@ 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,
|
|
4533
4539
|
default: !1
|
|
4540
|
+
},
|
|
4541
|
+
fieldClass: {
|
|
4542
|
+
type: [
|
|
4543
|
+
String,
|
|
4544
|
+
Array,
|
|
4545
|
+
Object
|
|
4546
|
+
],
|
|
4547
|
+
default: null
|
|
4534
4548
|
}
|
|
4535
4549
|
},
|
|
4536
4550
|
emits: ["update:modelValue"],
|
|
@@ -4547,7 +4561,7 @@ var ua = /*#__PURE__*/ M(ia, [["render", la]]), da = [
|
|
|
4547
4561
|
}
|
|
4548
4562
|
},
|
|
4549
4563
|
inputType() {
|
|
4550
|
-
return
|
|
4564
|
+
return fa.includes(this.type) ? this.type : "text";
|
|
4551
4565
|
}
|
|
4552
4566
|
},
|
|
4553
4567
|
methods: {
|
|
@@ -4566,22 +4580,22 @@ var ua = /*#__PURE__*/ M(ia, [["render", la]]), da = [
|
|
|
4566
4580
|
].includes(e)));
|
|
4567
4581
|
}
|
|
4568
4582
|
}
|
|
4569
|
-
},
|
|
4583
|
+
}, ma = { class: "bb:flex bb:items-center" }, ha = ["for", "textContent"], ga = [
|
|
4570
4584
|
"id",
|
|
4571
4585
|
"aria-describedby",
|
|
4572
4586
|
"type"
|
|
4573
4587
|
];
|
|
4574
|
-
function
|
|
4588
|
+
function _a(e, t, o, l, m, _) {
|
|
4575
4589
|
let v = g("dot"), b = g("field-description");
|
|
4576
4590
|
return p(), i("div", {
|
|
4577
4591
|
class: d(["bb-dashboard-ui", e.$attrs.class]),
|
|
4578
4592
|
style: f(e.$attrs.style)
|
|
4579
4593
|
}, [
|
|
4580
|
-
a("div",
|
|
4594
|
+
a("div", ma, [a("label", {
|
|
4581
4595
|
for: _.inputId(),
|
|
4582
4596
|
class: "bb:block bb:text-sm bb:font-medium bb:leading-5 bb:text-gray-700",
|
|
4583
4597
|
textContent: y(o.label)
|
|
4584
|
-
}, null, 8,
|
|
4598
|
+
}, null, 8, ha), w(c(v, {
|
|
4585
4599
|
color: "red-pale",
|
|
4586
4600
|
class: "bb:ml-2"
|
|
4587
4601
|
}, null, 512), [[S, o.isRequired]])]),
|
|
@@ -4589,8 +4603,8 @@ function ga(e, t, o, l, m, _) {
|
|
|
4589
4603
|
id: _.inputId(),
|
|
4590
4604
|
"aria-describedby": _.inputDescribedBy(),
|
|
4591
4605
|
type: _.inputType,
|
|
4592
|
-
class: "bb:mt-1 bb:block bb:w-full bb:
|
|
4593
|
-
}), null, 16,
|
|
4606
|
+
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", o.fieldClass]
|
|
4607
|
+
}), null, 16, ga), [[x, _.value]]),
|
|
4594
4608
|
e.hasDescription() ? (p(), n(b, {
|
|
4595
4609
|
key: 0,
|
|
4596
4610
|
id: e.descriptionId(_.inputId())
|
|
@@ -4600,75 +4614,240 @@ function ga(e, t, o, l, m, _) {
|
|
|
4600
4614
|
}, 8, ["id"])) : r("", !0)
|
|
4601
4615
|
], 6);
|
|
4602
4616
|
}
|
|
4603
|
-
var
|
|
4617
|
+
var va = /*#__PURE__*/ j(pa, [["render", _a]]), ya = {
|
|
4618
|
+
mixins: [P],
|
|
4619
|
+
props: {
|
|
4620
|
+
text: {
|
|
4621
|
+
type: String,
|
|
4622
|
+
default: ""
|
|
4623
|
+
},
|
|
4624
|
+
limit: {
|
|
4625
|
+
type: Number,
|
|
4626
|
+
required: !0
|
|
4627
|
+
},
|
|
4628
|
+
id: {
|
|
4629
|
+
type: String,
|
|
4630
|
+
default: null
|
|
4631
|
+
}
|
|
4632
|
+
},
|
|
4633
|
+
computed: {
|
|
4634
|
+
count() {
|
|
4635
|
+
return Array.from(this.text ?? "").length;
|
|
4636
|
+
},
|
|
4637
|
+
isOverLimit() {
|
|
4638
|
+
return this.count > this.limit;
|
|
4639
|
+
}
|
|
4640
|
+
}
|
|
4641
|
+
}, 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"];
|
|
4642
|
+
function Ca(e, t, n, r, o, c) {
|
|
4643
|
+
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", {
|
|
4644
|
+
id: n.id,
|
|
4645
|
+
class: "bb:sr-only"
|
|
4646
|
+
}, y(`${e.texts.characterCount}: ${c.count} ${e.texts.characterCountOf} ${n.limit}`), 9, Sa)]);
|
|
4647
|
+
}
|
|
4648
|
+
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 = {
|
|
4649
|
+
components: {
|
|
4650
|
+
CharacterCounter: wa,
|
|
4651
|
+
Dot: M,
|
|
4652
|
+
FieldDescription: H
|
|
4653
|
+
},
|
|
4654
|
+
mixins: [V, P],
|
|
4655
|
+
inheritAttrs: !1,
|
|
4656
|
+
props: {
|
|
4657
|
+
modelValue: {
|
|
4658
|
+
type: String,
|
|
4659
|
+
default: ""
|
|
4660
|
+
},
|
|
4661
|
+
label: {
|
|
4662
|
+
type: String,
|
|
4663
|
+
required: !0
|
|
4664
|
+
},
|
|
4665
|
+
isRequired: {
|
|
4666
|
+
type: Boolean,
|
|
4667
|
+
default: !1
|
|
4668
|
+
},
|
|
4669
|
+
rows: {
|
|
4670
|
+
type: Number,
|
|
4671
|
+
default: Ta,
|
|
4672
|
+
validator: X
|
|
4673
|
+
},
|
|
4674
|
+
characterLimit: {
|
|
4675
|
+
type: Number,
|
|
4676
|
+
default: null,
|
|
4677
|
+
validator: X
|
|
4678
|
+
},
|
|
4679
|
+
fieldClass: {
|
|
4680
|
+
type: [
|
|
4681
|
+
String,
|
|
4682
|
+
Array,
|
|
4683
|
+
Object
|
|
4684
|
+
],
|
|
4685
|
+
default: null
|
|
4686
|
+
}
|
|
4687
|
+
},
|
|
4688
|
+
emits: ["update:modelValue"],
|
|
4689
|
+
setup() {
|
|
4690
|
+
return { generatedId: b() };
|
|
4691
|
+
},
|
|
4692
|
+
data() {
|
|
4693
|
+
return { text: Ea(this.modelValue) };
|
|
4694
|
+
},
|
|
4695
|
+
computed: {
|
|
4696
|
+
value: {
|
|
4697
|
+
get() {
|
|
4698
|
+
return this.text;
|
|
4699
|
+
},
|
|
4700
|
+
set(e) {
|
|
4701
|
+
this.$emit("update:modelValue", e);
|
|
4702
|
+
}
|
|
4703
|
+
},
|
|
4704
|
+
textareaRows() {
|
|
4705
|
+
return X(this.rows) ? this.rows : Ta;
|
|
4706
|
+
},
|
|
4707
|
+
hasCounter() {
|
|
4708
|
+
return X(this.characterLimit);
|
|
4709
|
+
}
|
|
4710
|
+
},
|
|
4711
|
+
watch: { modelValue(e) {
|
|
4712
|
+
this.text = Ea(e);
|
|
4713
|
+
} },
|
|
4714
|
+
methods: {
|
|
4715
|
+
textareaId() {
|
|
4716
|
+
return this.$attrs.id ?? this.generatedId;
|
|
4717
|
+
},
|
|
4718
|
+
textareaDescribedBy() {
|
|
4719
|
+
let e = [
|
|
4720
|
+
this.$attrs["aria-describedby"],
|
|
4721
|
+
this.descriptionId(this.textareaId()),
|
|
4722
|
+
this.hasCounter ? `${this.textareaId()}-counter` : null
|
|
4723
|
+
].filter(Boolean);
|
|
4724
|
+
return e.length > 0 ? e.join(" ") : null;
|
|
4725
|
+
},
|
|
4726
|
+
textareaAttrs() {
|
|
4727
|
+
return Object.fromEntries(Object.entries(this.$attrs).filter(([e]) => ![
|
|
4728
|
+
"class",
|
|
4729
|
+
"style",
|
|
4730
|
+
"id"
|
|
4731
|
+
].includes(e)));
|
|
4732
|
+
}
|
|
4733
|
+
}
|
|
4734
|
+
}, Oa = { class: "bb:flex bb:items-start bb:justify-between bb:gap-3" }, ka = { class: "bb:flex bb:items-center" }, Aa = ["for", "textContent"], ja = {
|
|
4735
|
+
key: 0,
|
|
4736
|
+
class: "bb:flex bb:h-5 bb:shrink-0 bb:items-center"
|
|
4737
|
+
}, Ma = [
|
|
4738
|
+
"id",
|
|
4739
|
+
"aria-describedby",
|
|
4740
|
+
"rows"
|
|
4741
|
+
];
|
|
4742
|
+
function Na(e, t, o, l, m, _) {
|
|
4743
|
+
let v = g("dot"), b = g("character-counter"), x = g("field-description");
|
|
4744
|
+
return p(), i("div", {
|
|
4745
|
+
class: d(["bb-dashboard-ui", e.$attrs.class]),
|
|
4746
|
+
style: f(e.$attrs.style)
|
|
4747
|
+
}, [
|
|
4748
|
+
a("div", Oa, [a("div", ka, [a("label", {
|
|
4749
|
+
for: _.textareaId(),
|
|
4750
|
+
class: "bb:block bb:text-sm bb:font-medium bb:leading-5 bb:text-gray-700",
|
|
4751
|
+
textContent: y(o.label)
|
|
4752
|
+
}, null, 8, Aa), w(c(v, {
|
|
4753
|
+
color: "red-pale",
|
|
4754
|
+
class: "bb:ml-2"
|
|
4755
|
+
}, null, 512), [[S, o.isRequired]])]), _.hasCounter ? (p(), i("div", ja, [c(b, {
|
|
4756
|
+
id: `${_.textareaId()}-counter`,
|
|
4757
|
+
text: m.text,
|
|
4758
|
+
limit: o.characterLimit,
|
|
4759
|
+
lang: e.lang
|
|
4760
|
+
}, null, 8, [
|
|
4761
|
+
"id",
|
|
4762
|
+
"text",
|
|
4763
|
+
"limit",
|
|
4764
|
+
"lang"
|
|
4765
|
+
])])) : r("", !0)]),
|
|
4766
|
+
w(a("textarea", u({ "onUpdate:modelValue": t[0] ||= (e) => _.value = e }, { ..._.textareaAttrs() }, {
|
|
4767
|
+
id: _.textareaId(),
|
|
4768
|
+
"aria-describedby": _.textareaDescribedBy(),
|
|
4769
|
+
rows: _.textareaRows,
|
|
4770
|
+
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", o.fieldClass],
|
|
4771
|
+
onInput: t[1] ||= (e) => m.text = e.target.value
|
|
4772
|
+
}), null, 16, Ma), [[ee, _.value]]),
|
|
4773
|
+
e.hasDescription() ? (p(), n(x, {
|
|
4774
|
+
key: 0,
|
|
4775
|
+
id: e.descriptionId(_.textareaId())
|
|
4776
|
+
}, {
|
|
4777
|
+
default: C(() => [h(e.$slots, "description", {}, () => [s(y(e.description), 1)])]),
|
|
4778
|
+
_: 3
|
|
4779
|
+
}, 8, ["id"])) : r("", !0)
|
|
4780
|
+
], 6);
|
|
4781
|
+
}
|
|
4782
|
+
var Pa = /*#__PURE__*/ j(Da, [["render", Na]]), Fa = {}, Ia = {
|
|
4604
4783
|
fill: "none",
|
|
4605
4784
|
stroke: "currentColor",
|
|
4606
4785
|
viewBox: "0 0 24 24",
|
|
4607
4786
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4608
4787
|
"aria-hidden": "true"
|
|
4609
4788
|
};
|
|
4610
|
-
function
|
|
4611
|
-
return p(), i("svg",
|
|
4789
|
+
function La(e, t, n, r, o, s) {
|
|
4790
|
+
return p(), i("svg", Ia, [...t[0] ||= [a("path", {
|
|
4612
4791
|
"stroke-linecap": "round",
|
|
4613
4792
|
"stroke-linejoin": "round",
|
|
4614
4793
|
"stroke-width": "2",
|
|
4615
4794
|
d: "M12 4v16m8-8H4"
|
|
4616
4795
|
}, null, -1)]]);
|
|
4617
4796
|
}
|
|
4618
|
-
var
|
|
4797
|
+
var Ra = /*#__PURE__*/ j(Fa, [["render", La]]), za = {}, Ba = {
|
|
4619
4798
|
fill: "none",
|
|
4620
4799
|
stroke: "currentColor",
|
|
4621
4800
|
viewBox: "0 0 24 24",
|
|
4622
4801
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4623
4802
|
"aria-hidden": "true"
|
|
4624
4803
|
};
|
|
4625
|
-
function
|
|
4626
|
-
return p(), i("svg",
|
|
4804
|
+
function Va(e, t, n, r, o, s) {
|
|
4805
|
+
return p(), i("svg", Ba, [...t[0] ||= [a("path", {
|
|
4627
4806
|
"stroke-linecap": "round",
|
|
4628
4807
|
"stroke-linejoin": "round",
|
|
4629
4808
|
"stroke-width": "2",
|
|
4630
4809
|
d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
|
|
4631
4810
|
}, null, -1)]]);
|
|
4632
4811
|
}
|
|
4633
|
-
var
|
|
4812
|
+
var Ha = /*#__PURE__*/ j(za, [["render", Va]]), Ua = {}, Wa = {
|
|
4634
4813
|
fill: "none",
|
|
4635
4814
|
stroke: "currentColor",
|
|
4636
4815
|
viewBox: "0 0 24 24",
|
|
4637
4816
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4638
4817
|
"aria-hidden": "true"
|
|
4639
4818
|
};
|
|
4640
|
-
function
|
|
4641
|
-
return p(), i("svg",
|
|
4819
|
+
function Ga(e, t, n, r, o, s) {
|
|
4820
|
+
return p(), i("svg", Wa, [...t[0] ||= [a("path", {
|
|
4642
4821
|
"stroke-linecap": "round",
|
|
4643
4822
|
"stroke-linejoin": "round",
|
|
4644
4823
|
"stroke-width": "2",
|
|
4645
4824
|
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
4825
|
}, null, -1)]]);
|
|
4647
4826
|
}
|
|
4648
|
-
var
|
|
4827
|
+
var Ka = /*#__PURE__*/ j(Ua, [["render", Ga]]), qa = {}, Ja = {
|
|
4649
4828
|
fill: "none",
|
|
4650
4829
|
stroke: "currentColor",
|
|
4651
4830
|
viewBox: "0 0 24 24",
|
|
4652
4831
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4653
4832
|
"aria-hidden": "true"
|
|
4654
4833
|
};
|
|
4655
|
-
function
|
|
4656
|
-
return p(), i("svg",
|
|
4834
|
+
function Ya(e, t, n, r, o, s) {
|
|
4835
|
+
return p(), i("svg", Ja, [...t[0] ||= [a("path", {
|
|
4657
4836
|
"stroke-linecap": "round",
|
|
4658
4837
|
"stroke-linejoin": "round",
|
|
4659
4838
|
"stroke-width": "2",
|
|
4660
4839
|
d: "M2 9l10-7 10 7H2zM4.5 12v6M9.5 12v6M14.5 12v6M19.5 12v6M3.5 18h17M2 22h20"
|
|
4661
4840
|
}, null, -1)]]);
|
|
4662
4841
|
}
|
|
4663
|
-
var
|
|
4842
|
+
var Xa = /*#__PURE__*/ j(qa, [["render", Ya]]), Za = {}, Qa = {
|
|
4664
4843
|
fill: "none",
|
|
4665
4844
|
stroke: "currentColor",
|
|
4666
4845
|
viewBox: "0 0 24 24",
|
|
4667
4846
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4668
4847
|
"aria-hidden": "true"
|
|
4669
4848
|
};
|
|
4670
|
-
function
|
|
4671
|
-
return p(), i("svg",
|
|
4849
|
+
function $a(e, t, n, r, o, s) {
|
|
4850
|
+
return p(), i("svg", Qa, [...t[0] ||= [a("path", {
|
|
4672
4851
|
"stroke-linecap": "round",
|
|
4673
4852
|
"stroke-linejoin": "round",
|
|
4674
4853
|
"stroke-width": "2",
|
|
@@ -4677,43 +4856,43 @@ function Ia(e, t, n, r, o, s) {
|
|
|
4677
4856
|
}
|
|
4678
4857
|
//#endregion
|
|
4679
4858
|
//#region src/actionIcons.js
|
|
4680
|
-
var
|
|
4681
|
-
plus:
|
|
4682
|
-
download:
|
|
4683
|
-
refresh:
|
|
4684
|
-
"bank-transfer":
|
|
4685
|
-
"currency-exchange": /* @__PURE__ */
|
|
4859
|
+
var eo = {
|
|
4860
|
+
plus: Ra,
|
|
4861
|
+
download: Ha,
|
|
4862
|
+
refresh: Ka,
|
|
4863
|
+
"bank-transfer": Xa,
|
|
4864
|
+
"currency-exchange": /* @__PURE__ */ j(Za, [["render", $a]])
|
|
4686
4865
|
};
|
|
4687
4866
|
function Z(e) {
|
|
4688
|
-
return typeof e == "string" && Object.hasOwn(
|
|
4867
|
+
return typeof e == "string" && Object.hasOwn(eo, e);
|
|
4689
4868
|
}
|
|
4690
4869
|
//#endregion
|
|
4691
4870
|
//#region src/navigation.js
|
|
4692
|
-
function
|
|
4871
|
+
function to(e) {
|
|
4693
4872
|
let t = e.currentTarget?.target ?? "";
|
|
4694
4873
|
return !(e.defaultPrevented || e.target?.isContentEditable === !0 || e.altKey || e.ctrlKey || e.metaKey || e.shiftKey || t !== "" && t !== "_self" || e.button !== 0);
|
|
4695
4874
|
}
|
|
4696
4875
|
var Q = {
|
|
4697
|
-
inject:
|
|
4876
|
+
inject: ye,
|
|
4698
4877
|
methods: { followLink(e, t) {
|
|
4699
4878
|
let n = this.uiSettings.navigate;
|
|
4700
|
-
n !== null &&
|
|
4879
|
+
n !== null && to(e) && (e.preventDefault(), n(t));
|
|
4701
4880
|
} }
|
|
4702
|
-
},
|
|
4881
|
+
}, no = {
|
|
4703
4882
|
props: { name: {
|
|
4704
4883
|
type: String,
|
|
4705
4884
|
default: null
|
|
4706
4885
|
} },
|
|
4707
4886
|
computed: { icon() {
|
|
4708
|
-
return Z(this.name) ?
|
|
4887
|
+
return Z(this.name) ? eo[this.name] : "span";
|
|
4709
4888
|
} }
|
|
4710
4889
|
};
|
|
4711
|
-
function
|
|
4890
|
+
function ro(e, t, r, i, a, o) {
|
|
4712
4891
|
return p(), n(_(o.icon), { class: "bb:w-4 bb:h-4 bb:shrink-0 bb:pointer-events-none bb:cursor-default" });
|
|
4713
4892
|
}
|
|
4714
|
-
var
|
|
4715
|
-
components: { ActionIcon:
|
|
4716
|
-
mixins: [
|
|
4893
|
+
var io = /*#__PURE__*/ j(no, [["render", ro]]), ao = {
|
|
4894
|
+
components: { ActionIcon: io },
|
|
4895
|
+
mixins: [A, Q],
|
|
4717
4896
|
emits: ["click"],
|
|
4718
4897
|
props: {
|
|
4719
4898
|
label: {
|
|
@@ -4723,7 +4902,7 @@ var Va = /*#__PURE__*/ M(za, [["render", Ba]]), Ha = {
|
|
|
4723
4902
|
color: {
|
|
4724
4903
|
type: String,
|
|
4725
4904
|
default: null,
|
|
4726
|
-
validator: (e) => e === "" ||
|
|
4905
|
+
validator: (e) => e === "" || k(e)
|
|
4727
4906
|
},
|
|
4728
4907
|
icon: {
|
|
4729
4908
|
type: String,
|
|
@@ -4746,7 +4925,7 @@ var Va = /*#__PURE__*/ M(za, [["render", Ba]]), Ha = {
|
|
|
4746
4925
|
},
|
|
4747
4926
|
computed: {
|
|
4748
4927
|
hasColor() {
|
|
4749
|
-
return
|
|
4928
|
+
return k(this.color);
|
|
4750
4929
|
},
|
|
4751
4930
|
hasIcon() {
|
|
4752
4931
|
return Z(this.icon);
|
|
@@ -4758,8 +4937,8 @@ var Va = /*#__PURE__*/ M(za, [["render", Ba]]), Ha = {
|
|
|
4758
4937
|
return this.type === "submit" ? "submit" : "button";
|
|
4759
4938
|
}
|
|
4760
4939
|
}
|
|
4761
|
-
},
|
|
4762
|
-
function
|
|
4940
|
+
}, oo = ["href"], so = ["textContent"], co = ["type", "disabled"], lo = ["textContent"];
|
|
4941
|
+
function uo(e, t, o, s, c, l) {
|
|
4763
4942
|
let u = g("action-icon");
|
|
4764
4943
|
return l.isLink ? (p(), i("a", {
|
|
4765
4944
|
key: 0,
|
|
@@ -4772,7 +4951,7 @@ function qa(e, t, o, s, c, l) {
|
|
|
4772
4951
|
}, null, 8, ["name"])) : r("", !0), a("span", {
|
|
4773
4952
|
class: "bb:pointer-events-none bb:cursor-default",
|
|
4774
4953
|
textContent: y(o.label)
|
|
4775
|
-
}, null, 8,
|
|
4954
|
+
}, null, 8, so)], 10, oo)) : (p(), i("button", {
|
|
4776
4955
|
key: 1,
|
|
4777
4956
|
type: l.buttonType,
|
|
4778
4957
|
disabled: o.isDisabled,
|
|
@@ -4788,9 +4967,9 @@ function qa(e, t, o, s, c, l) {
|
|
|
4788
4967
|
}, null, 8, ["name"])) : r("", !0), a("span", {
|
|
4789
4968
|
class: "bb:pointer-events-none bb:cursor-default",
|
|
4790
4969
|
textContent: y(o.label)
|
|
4791
|
-
}, null, 8,
|
|
4970
|
+
}, null, 8, lo)], 10, co));
|
|
4792
4971
|
}
|
|
4793
|
-
var
|
|
4972
|
+
var fo = /*#__PURE__*/ j(ao, [["render", uo]]), po = {}, mo = {
|
|
4794
4973
|
class: "bb:w-4 bb:h-4",
|
|
4795
4974
|
fill: "none",
|
|
4796
4975
|
stroke: "currentColor",
|
|
@@ -4800,8 +4979,8 @@ var Ja = /*#__PURE__*/ M(Ha, [["render", qa]]), Ya = {}, Xa = {
|
|
|
4800
4979
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4801
4980
|
"aria-hidden": "true"
|
|
4802
4981
|
};
|
|
4803
|
-
function
|
|
4804
|
-
return p(), i("svg",
|
|
4982
|
+
function ho(e, t, n, r, o, s) {
|
|
4983
|
+
return p(), i("svg", mo, [...t[0] ||= [
|
|
4805
4984
|
a("circle", {
|
|
4806
4985
|
cx: "12",
|
|
4807
4986
|
cy: "12",
|
|
@@ -4825,12 +5004,12 @@ function Za(e, t, n, r, o, s) {
|
|
|
4825
5004
|
}
|
|
4826
5005
|
//#endregion
|
|
4827
5006
|
//#region src/components/ActionPill.vue
|
|
4828
|
-
var
|
|
5007
|
+
var go = {
|
|
4829
5008
|
components: {
|
|
4830
|
-
"clock-icon": /* @__PURE__ */
|
|
4831
|
-
"action-icon":
|
|
5009
|
+
"clock-icon": /* @__PURE__ */ j(po, [["render", ho]]),
|
|
5010
|
+
"action-icon": io
|
|
4832
5011
|
},
|
|
4833
|
-
mixins: [
|
|
5012
|
+
mixins: [A],
|
|
4834
5013
|
emits: ["click"],
|
|
4835
5014
|
props: {
|
|
4836
5015
|
title: {
|
|
@@ -4845,7 +5024,7 @@ var Qa = {
|
|
|
4845
5024
|
color: {
|
|
4846
5025
|
type: String,
|
|
4847
5026
|
default: "purple-pale",
|
|
4848
|
-
validator:
|
|
5027
|
+
validator: k
|
|
4849
5028
|
},
|
|
4850
5029
|
isLoading: {
|
|
4851
5030
|
type: Boolean,
|
|
@@ -4865,12 +5044,12 @@ var Qa = {
|
|
|
4865
5044
|
return typeof e == "string" ? e : "";
|
|
4866
5045
|
}
|
|
4867
5046
|
}
|
|
4868
|
-
},
|
|
5047
|
+
}, _o = [
|
|
4869
5048
|
"title",
|
|
4870
5049
|
"disabled",
|
|
4871
5050
|
"aria-busy"
|
|
4872
|
-
],
|
|
4873
|
-
function
|
|
5051
|
+
], vo = ["textContent"];
|
|
5052
|
+
function yo(e, t, o, s, c, l) {
|
|
4874
5053
|
let u = g("clock-icon"), f = g("action-icon");
|
|
4875
5054
|
return p(), i("button", {
|
|
4876
5055
|
type: "button",
|
|
@@ -4892,19 +5071,19 @@ function to(e, t, o, s, c, l) {
|
|
|
4892
5071
|
}, null, 8, ["name"])) : r("", !0), a("span", {
|
|
4893
5072
|
class: "bb:ml-1 bb:pointer-events-none bb:cursor-default",
|
|
4894
5073
|
textContent: y(l.label)
|
|
4895
|
-
}, null, 8,
|
|
5074
|
+
}, null, 8, vo)], 10, _o);
|
|
4896
5075
|
}
|
|
4897
|
-
var
|
|
4898
|
-
function
|
|
5076
|
+
var bo = /*#__PURE__*/ j(go, [["render", yo]]), xo = "a[href], button:not(:disabled)";
|
|
5077
|
+
function So(e, t) {
|
|
4899
5078
|
let n = document.activeElement;
|
|
4900
|
-
(e.querySelector("[data-dialog-focus]") ?? e.querySelector(
|
|
5079
|
+
(e.querySelector("[data-dialog-focus]") ?? e.querySelector(xo))?.focus();
|
|
4901
5080
|
let r = (n) => {
|
|
4902
5081
|
if (n.key === "Escape") {
|
|
4903
5082
|
t();
|
|
4904
5083
|
return;
|
|
4905
5084
|
}
|
|
4906
5085
|
if (n.key !== "Tab") return;
|
|
4907
|
-
let r = [...e.querySelectorAll(
|
|
5086
|
+
let r = [...e.querySelectorAll(xo)];
|
|
4908
5087
|
if (r.length === 0) return;
|
|
4909
5088
|
n.preventDefault();
|
|
4910
5089
|
let i = n.shiftKey ? -1 : 1, a = r.indexOf(document.activeElement);
|
|
@@ -4921,7 +5100,7 @@ function io(e, t) {
|
|
|
4921
5100
|
}
|
|
4922
5101
|
//#endregion
|
|
4923
5102
|
//#region src/components/Modal.vue
|
|
4924
|
-
var
|
|
5103
|
+
var Co = {
|
|
4925
5104
|
emits: ["escape"],
|
|
4926
5105
|
props: {
|
|
4927
5106
|
isOpen: {
|
|
@@ -4955,16 +5134,16 @@ var ao = {
|
|
|
4955
5134
|
methods: {
|
|
4956
5135
|
holdFocus() {
|
|
4957
5136
|
this.focusFrame === null && this.releaseHeldFocus === null && (this.focusFrame = requestAnimationFrame(() => {
|
|
4958
|
-
this.focusFrame = null, this.releaseHeldFocus =
|
|
5137
|
+
this.focusFrame = null, this.releaseHeldFocus = So(this.$refs.panel, () => this.$emit("escape"));
|
|
4959
5138
|
}));
|
|
4960
5139
|
},
|
|
4961
5140
|
releaseFocus() {
|
|
4962
5141
|
this.focusFrame !== null && (cancelAnimationFrame(this.focusFrame), this.focusFrame = null), this.releaseHeldFocus !== null && (this.releaseHeldFocus(), this.releaseHeldFocus = null);
|
|
4963
5142
|
}
|
|
4964
5143
|
}
|
|
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",
|
|
5144
|
+
}, wo = { class: "bb:min-h-screen bb:text-center" }, To = { class: "bb:fixed bb:inset-0 bb:transition-opacity" }, Eo = ["aria-labelledby"];
|
|
5145
|
+
function Do(e, n, r, o, s, l) {
|
|
5146
|
+
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
5147
|
c(t, {
|
|
4969
5148
|
"enter-active-class": "bb:ease-out bb:duration-300",
|
|
4970
5149
|
"enter-from-class": "bb:opacity-0",
|
|
@@ -4973,7 +5152,7 @@ function lo(e, n, r, o, s, l) {
|
|
|
4973
5152
|
"leave-from-class": "bb:opacity-100",
|
|
4974
5153
|
"leave-to-class": "bb:opacity-0"
|
|
4975
5154
|
}, {
|
|
4976
|
-
default: C(() => [w(a("div",
|
|
5155
|
+
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
5156
|
_: 1
|
|
4978
5157
|
}),
|
|
4979
5158
|
n[1] ||= a("span", { class: "bb:inline-block bb:align-middle bb:h-screen" }, null, -1),
|
|
@@ -4991,12 +5170,12 @@ function lo(e, n, r, o, s, l) {
|
|
|
4991
5170
|
role: "dialog",
|
|
4992
5171
|
"aria-modal": "true",
|
|
4993
5172
|
"aria-labelledby": r.headingId
|
|
4994
|
-
}, [h(e.$slots, "default")], 8,
|
|
5173
|
+
}, [h(e.$slots, "default")], 8, Eo), [[S, r.isOpen]])]),
|
|
4995
5174
|
_: 3
|
|
4996
5175
|
})
|
|
4997
5176
|
])], 2);
|
|
4998
5177
|
}
|
|
4999
|
-
var
|
|
5178
|
+
var Oo = /*#__PURE__*/ j(Co, [["render", Do]]), ko = {}, Ao = {
|
|
5000
5179
|
class: "bb:h-7 bb:w-7 bb:text-red-600",
|
|
5001
5180
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5002
5181
|
fill: "none",
|
|
@@ -5004,36 +5183,36 @@ var uo = /*#__PURE__*/ M(ao, [["render", lo]]), fo = {}, po = {
|
|
|
5004
5183
|
stroke: "currentColor",
|
|
5005
5184
|
"aria-hidden": "true"
|
|
5006
5185
|
};
|
|
5007
|
-
function
|
|
5008
|
-
return p(), i("svg",
|
|
5186
|
+
function jo(e, t, n, r, o, s) {
|
|
5187
|
+
return p(), i("svg", Ao, [...t[0] ||= [a("path", {
|
|
5009
5188
|
"stroke-linecap": "round",
|
|
5010
5189
|
"stroke-linejoin": "round",
|
|
5011
5190
|
"stroke-width": "2",
|
|
5012
5191
|
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
5192
|
}, null, -1)]]);
|
|
5014
5193
|
}
|
|
5015
|
-
var
|
|
5194
|
+
var Mo = /*#__PURE__*/ j(ko, [["render", jo]]), No = {}, Po = {
|
|
5016
5195
|
class: "bb:h-7 bb:w-7 bb:text-yellow-400",
|
|
5017
5196
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5018
5197
|
viewBox: "0 0 20 20",
|
|
5019
5198
|
fill: "currentColor",
|
|
5020
5199
|
"aria-hidden": "true"
|
|
5021
5200
|
};
|
|
5022
|
-
function
|
|
5023
|
-
return p(), i("svg",
|
|
5201
|
+
function Fo(e, t, n, r, o, s) {
|
|
5202
|
+
return p(), i("svg", Po, [...t[0] ||= [a("path", {
|
|
5024
5203
|
"fill-rule": "evenodd",
|
|
5025
5204
|
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
5205
|
"clip-rule": "evenodd"
|
|
5027
5206
|
}, null, -1)]]);
|
|
5028
5207
|
}
|
|
5029
|
-
var
|
|
5208
|
+
var Io = /*#__PURE__*/ j(No, [["render", Fo]]), Lo = {
|
|
5030
5209
|
components: {
|
|
5031
|
-
ActionButton:
|
|
5032
|
-
Modal:
|
|
5033
|
-
Dangerous:
|
|
5034
|
-
Warning:
|
|
5210
|
+
ActionButton: fo,
|
|
5211
|
+
Modal: Oo,
|
|
5212
|
+
Dangerous: Mo,
|
|
5213
|
+
Warning: Io
|
|
5035
5214
|
},
|
|
5036
|
-
mixins: [
|
|
5215
|
+
mixins: [P],
|
|
5037
5216
|
emits: ["actionConfirmed", "actionCanceled"],
|
|
5038
5217
|
props: {
|
|
5039
5218
|
isOpen: {
|
|
@@ -5076,21 +5255,21 @@ var yo = /*#__PURE__*/ M(go, [["render", vo]]), bo = {
|
|
|
5076
5255
|
return this.isDangerous ? "red-solid" : this.isWarning ? "yellow-solid" : null;
|
|
5077
5256
|
}
|
|
5078
5257
|
}
|
|
5079
|
-
},
|
|
5080
|
-
function
|
|
5258
|
+
}, 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" };
|
|
5259
|
+
function Go(e, t, i, o, s, l) {
|
|
5081
5260
|
let u = g("warning"), f = g("dangerous"), m = g("action-button"), h = g("modal");
|
|
5082
5261
|
return p(), n(h, {
|
|
5083
5262
|
"is-open": i.isOpen,
|
|
5084
5263
|
"heading-id": o.headingId,
|
|
5085
5264
|
onEscape: t[2] ||= (t) => e.$emit("actionCanceled")
|
|
5086
5265
|
}, {
|
|
5087
|
-
default: C(() => [a("div",
|
|
5266
|
+
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
5267
|
"bb:bg-red-100": l.isDangerous,
|
|
5089
5268
|
"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",
|
|
5269
|
+
}]) }, [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
5270
|
class: "bb:text-lg bb:leading-6 bb:font-medium bb:text-gray-900",
|
|
5092
5271
|
id: o.headingId
|
|
5093
|
-
}, y(i.confirmationHeading), 9,
|
|
5272
|
+
}, y(i.confirmationHeading), 9, Vo), a("div", Ho, [a("p", Uo, y(i.confirmationText), 1)])])])]), a("div", Wo, [c(m, {
|
|
5094
5273
|
class: "bb:ml-3",
|
|
5095
5274
|
label: i.actionButtonText,
|
|
5096
5275
|
color: l.actionColor,
|
|
@@ -5104,34 +5283,34 @@ function Oo(e, t, i, o, s, l) {
|
|
|
5104
5283
|
_: 1
|
|
5105
5284
|
}, 8, ["is-open", "heading-id"]);
|
|
5106
5285
|
}
|
|
5107
|
-
var
|
|
5286
|
+
var Ko = /*#__PURE__*/ j(Lo, [["render", Go]]);
|
|
5108
5287
|
//#endregion
|
|
5109
5288
|
//#region src/menuItems.js
|
|
5110
|
-
function
|
|
5111
|
-
if (typeof e != "object" || !e || typeof e.label != "string" || e.label === "" || e.color !== void 0 && !
|
|
5289
|
+
function qo(e) {
|
|
5290
|
+
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
5291
|
let t = typeof e.href == "string" && e.href !== "" && e.onSelect === void 0, n = typeof e.onSelect == "function" && e.href === void 0;
|
|
5113
5292
|
return t || n;
|
|
5114
5293
|
}
|
|
5115
|
-
function
|
|
5294
|
+
function Jo(e) {
|
|
5116
5295
|
return Array.isArray(e) ? e.filter((e) => typeof e == "object" && !!e) : [];
|
|
5117
5296
|
}
|
|
5118
|
-
function
|
|
5297
|
+
function Yo(e) {
|
|
5119
5298
|
return typeof e.href == "string" && e.href !== "";
|
|
5120
5299
|
}
|
|
5121
|
-
function
|
|
5122
|
-
return
|
|
5300
|
+
function Xo(e) {
|
|
5301
|
+
return k(e.color) ? e.color : null;
|
|
5123
5302
|
}
|
|
5124
|
-
function
|
|
5303
|
+
function Zo(e) {
|
|
5125
5304
|
return Z(e.icon) ? e.icon : null;
|
|
5126
5305
|
}
|
|
5127
5306
|
//#endregion
|
|
5128
5307
|
//#region src/components/PopoverMenu.vue
|
|
5129
|
-
var
|
|
5308
|
+
var Qo = {
|
|
5130
5309
|
components: {
|
|
5131
|
-
ActionIcon:
|
|
5132
|
-
PopoverPanel:
|
|
5310
|
+
ActionIcon: io,
|
|
5311
|
+
PopoverPanel: z
|
|
5133
5312
|
},
|
|
5134
|
-
mixins: [Q,
|
|
5313
|
+
mixins: [Q, A],
|
|
5135
5314
|
emits: ["update:modelValue"],
|
|
5136
5315
|
props: {
|
|
5137
5316
|
actions: { default: () => [] },
|
|
@@ -5142,24 +5321,24 @@ var Fo = {
|
|
|
5142
5321
|
},
|
|
5143
5322
|
computed: {
|
|
5144
5323
|
actionItems() {
|
|
5145
|
-
return
|
|
5324
|
+
return Jo(this.actions);
|
|
5146
5325
|
},
|
|
5147
5326
|
hasActions() {
|
|
5148
5327
|
return this.actionItems.length > 0;
|
|
5149
5328
|
},
|
|
5150
5329
|
hasIcons() {
|
|
5151
|
-
return this.actionItems.some((e) =>
|
|
5330
|
+
return this.actionItems.some((e) => Zo(e) !== null);
|
|
5152
5331
|
}
|
|
5153
5332
|
},
|
|
5154
5333
|
methods: {
|
|
5155
5334
|
color(e) {
|
|
5156
|
-
return
|
|
5335
|
+
return Xo(e);
|
|
5157
5336
|
},
|
|
5158
5337
|
icon(e) {
|
|
5159
|
-
return
|
|
5338
|
+
return Zo(e);
|
|
5160
5339
|
},
|
|
5161
5340
|
isLink(e) {
|
|
5162
|
-
return
|
|
5341
|
+
return Yo(e);
|
|
5163
5342
|
},
|
|
5164
5343
|
linkClicked(e, t) {
|
|
5165
5344
|
e.currentTarget.focus({ preventScroll: !0 }), this.followLink(e, t);
|
|
@@ -5168,8 +5347,8 @@ var Fo = {
|
|
|
5168
5347
|
if (t.currentTarget.focus({ preventScroll: !0 }), typeof e.onSelect == "function") return e.onSelect();
|
|
5169
5348
|
}
|
|
5170
5349
|
}
|
|
5171
|
-
},
|
|
5172
|
-
function
|
|
5350
|
+
}, $o = ["href", "onClick"], es = ["textContent"], ts = ["onClick"], ns = ["textContent"];
|
|
5351
|
+
function rs(t, o, s, c, l, u) {
|
|
5173
5352
|
let f = g("action-icon"), _ = g("popover-panel");
|
|
5174
5353
|
return p(), n(_, {
|
|
5175
5354
|
"model-value": s.modelValue,
|
|
@@ -5199,7 +5378,7 @@ function Bo(t, o, s, c, l, u) {
|
|
|
5199
5378
|
}, null, 8, ["name"])) : r("", !0), a("span", {
|
|
5200
5379
|
class: "bb:min-w-0 bb:truncate bb:pointer-events-none bb:cursor-default",
|
|
5201
5380
|
textContent: y(o.label)
|
|
5202
|
-
}, null, 8,
|
|
5381
|
+
}, null, 8, es)], 10, $o)) : (p(), i("button", {
|
|
5203
5382
|
key: 1,
|
|
5204
5383
|
type: "button",
|
|
5205
5384
|
role: "menuitem",
|
|
@@ -5211,26 +5390,26 @@ function Bo(t, o, s, c, l, u) {
|
|
|
5211
5390
|
}, null, 8, ["name"])) : r("", !0), a("span", {
|
|
5212
5391
|
class: "bb:min-w-0 bb:truncate bb:pointer-events-none bb:cursor-default",
|
|
5213
5392
|
textContent: y(o.label)
|
|
5214
|
-
}, null, 8,
|
|
5393
|
+
}, null, 8, ns)], 10, ts))], 64))), 128))]),
|
|
5215
5394
|
_: 3
|
|
5216
5395
|
}, 8, ["model-value", "has-content"]);
|
|
5217
5396
|
}
|
|
5218
|
-
var
|
|
5397
|
+
var is = /*#__PURE__*/ j(Qo, [["render", rs]]), as = {
|
|
5219
5398
|
components: {
|
|
5220
|
-
ActionButton:
|
|
5221
|
-
PopoverMenu:
|
|
5399
|
+
ActionButton: fo,
|
|
5400
|
+
PopoverMenu: is
|
|
5222
5401
|
},
|
|
5223
5402
|
mixins: [
|
|
5224
|
-
|
|
5403
|
+
P,
|
|
5225
5404
|
Q,
|
|
5226
|
-
|
|
5405
|
+
A
|
|
5227
5406
|
],
|
|
5228
5407
|
emits: ["update:modelValue"],
|
|
5229
5408
|
props: {
|
|
5230
5409
|
actions: {
|
|
5231
5410
|
type: Array,
|
|
5232
5411
|
default: () => [],
|
|
5233
|
-
validator: (e) => e.every(
|
|
5412
|
+
validator: (e) => e.every(qo)
|
|
5234
5413
|
},
|
|
5235
5414
|
modelValue: {
|
|
5236
5415
|
type: Boolean,
|
|
@@ -5242,7 +5421,7 @@ var Vo = /*#__PURE__*/ M(Fo, [["render", Bo]]), Ho = {
|
|
|
5242
5421
|
},
|
|
5243
5422
|
computed: {
|
|
5244
5423
|
items() {
|
|
5245
|
-
return
|
|
5424
|
+
return Jo(this.actions);
|
|
5246
5425
|
},
|
|
5247
5426
|
hasActions() {
|
|
5248
5427
|
return this.items.length > 0;
|
|
@@ -5251,10 +5430,10 @@ var Vo = /*#__PURE__*/ M(Fo, [["render", Bo]]), Ho = {
|
|
|
5251
5430
|
return this.items[0];
|
|
5252
5431
|
},
|
|
5253
5432
|
mainColor() {
|
|
5254
|
-
return this.hasActions ?
|
|
5433
|
+
return this.hasActions ? Xo(this.mainAction) : null;
|
|
5255
5434
|
},
|
|
5256
5435
|
mainIcon() {
|
|
5257
|
-
return this.hasActions ?
|
|
5436
|
+
return this.hasActions ? Zo(this.mainAction) : null;
|
|
5258
5437
|
},
|
|
5259
5438
|
menuActions() {
|
|
5260
5439
|
return this.items.slice(1);
|
|
@@ -5276,7 +5455,7 @@ var Vo = /*#__PURE__*/ M(Fo, [["render", Bo]]), Ho = {
|
|
|
5276
5455
|
},
|
|
5277
5456
|
methods: {
|
|
5278
5457
|
isLink(e) {
|
|
5279
|
-
return
|
|
5458
|
+
return Yo(e);
|
|
5280
5459
|
},
|
|
5281
5460
|
select(e) {
|
|
5282
5461
|
if (typeof e.onSelect == "function") return e.onSelect();
|
|
@@ -5285,13 +5464,13 @@ var Vo = /*#__PURE__*/ M(Fo, [["render", Bo]]), Ho = {
|
|
|
5285
5464
|
this.menuIsOpen = e, this.$emit("update:modelValue", e);
|
|
5286
5465
|
}
|
|
5287
5466
|
}
|
|
5288
|
-
},
|
|
5467
|
+
}, os = {
|
|
5289
5468
|
key: 0,
|
|
5290
5469
|
class: "bb-dashboard-ui bb:relative bb:inline-flex bb:shadow-xs bb:rounded-md"
|
|
5291
|
-
},
|
|
5292
|
-
function
|
|
5470
|
+
}, ss = ["id", "popovertarget"], cs = { class: "bb:sr-only bb:pointer-events-none bb:cursor-default" };
|
|
5471
|
+
function ls(e, t, n, o, s, l) {
|
|
5293
5472
|
let u = g("action-button"), f = g("popover-menu");
|
|
5294
|
-
return l.hasActions ? (p(), i("span",
|
|
5473
|
+
return l.hasActions ? (p(), i("span", os, [c(u, {
|
|
5295
5474
|
label: l.mainAction.label,
|
|
5296
5475
|
color: l.mainColor,
|
|
5297
5476
|
icon: l.mainIcon,
|
|
@@ -5315,7 +5494,7 @@ function Ko(e, t, n, o, s, l) {
|
|
|
5315
5494
|
id: n.id,
|
|
5316
5495
|
popovertarget: n.popovertarget,
|
|
5317
5496
|
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",
|
|
5497
|
+
}, [a("span", cs, y(e.texts.openMenu), 1), t[1] ||= a("svg", {
|
|
5319
5498
|
class: "bb:h-5 bb:w-5 bb:pointer-events-none bb:cursor-default",
|
|
5320
5499
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5321
5500
|
viewBox: "0 0 20 20",
|
|
@@ -5325,7 +5504,7 @@ function Ko(e, t, n, o, s, l) {
|
|
|
5325
5504
|
"fill-rule": "evenodd",
|
|
5326
5505
|
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
5506
|
"clip-rule": "evenodd"
|
|
5328
|
-
})], -1)], 10,
|
|
5507
|
+
})], -1)], 10, ss)]),
|
|
5329
5508
|
_: 1
|
|
5330
5509
|
}, 8, [
|
|
5331
5510
|
"actions",
|
|
@@ -5333,16 +5512,16 @@ function Ko(e, t, n, o, s, l) {
|
|
|
5333
5512
|
"onUpdate:modelValue"
|
|
5334
5513
|
])])) : r("", !0);
|
|
5335
5514
|
}
|
|
5336
|
-
var
|
|
5337
|
-
components: { PopoverMenu:
|
|
5338
|
-
mixins: [
|
|
5515
|
+
var us = /*#__PURE__*/ j(as, [["render", ls]]), ds = {
|
|
5516
|
+
components: { PopoverMenu: is },
|
|
5517
|
+
mixins: [P],
|
|
5339
5518
|
props: { actions: {
|
|
5340
5519
|
type: Array,
|
|
5341
5520
|
default: () => [],
|
|
5342
|
-
validator: (e) => e.every(
|
|
5521
|
+
validator: (e) => e.every(qo)
|
|
5343
5522
|
} }
|
|
5344
|
-
},
|
|
5345
|
-
function
|
|
5523
|
+
}, fs = ["id", "popovertarget"], ps = { class: "bb:sr-only bb:pointer-events-none bb:cursor-default" };
|
|
5524
|
+
function ms(e, t, r, i, o, s) {
|
|
5346
5525
|
let c = g("popover-menu");
|
|
5347
5526
|
return p(), n(c, {
|
|
5348
5527
|
class: "bb-dashboard-ui bb:inline-flex",
|
|
@@ -5353,7 +5532,7 @@ function Zo(e, t, r, i, o, s) {
|
|
|
5353
5532
|
id: n.id,
|
|
5354
5533
|
popovertarget: n.popovertarget,
|
|
5355
5534
|
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",
|
|
5535
|
+
}, [a("span", ps, y(e.texts.openMenu), 1), t[0] ||= a("svg", {
|
|
5357
5536
|
class: "bb:h-6 bb:w-6 bb:pointer-events-none bb:cursor-default",
|
|
5358
5537
|
fill: "none",
|
|
5359
5538
|
viewBox: "0 0 24 24",
|
|
@@ -5364,48 +5543,48 @@ function Zo(e, t, r, i, o, s) {
|
|
|
5364
5543
|
"stroke-linejoin": "round",
|
|
5365
5544
|
"stroke-width": "2",
|
|
5366
5545
|
d: "M4 6h16M4 12h16M4 18h16"
|
|
5367
|
-
})], -1)], 8,
|
|
5546
|
+
})], -1)], 8, fs)]),
|
|
5368
5547
|
_: 1
|
|
5369
5548
|
}, 8, ["actions"]);
|
|
5370
5549
|
}
|
|
5371
|
-
var
|
|
5550
|
+
var hs = /*#__PURE__*/ j(ds, [["render", ms]]), gs = {}, _s = {
|
|
5372
5551
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5373
5552
|
viewBox: "0 0 20 20",
|
|
5374
5553
|
fill: "currentColor",
|
|
5375
5554
|
"aria-hidden": "true"
|
|
5376
5555
|
};
|
|
5377
|
-
function
|
|
5378
|
-
return p(), i("svg",
|
|
5556
|
+
function vs(e, t, n, r, o, s) {
|
|
5557
|
+
return p(), i("svg", _s, [...t[0] ||= [a("path", {
|
|
5379
5558
|
"fill-rule": "evenodd",
|
|
5380
5559
|
"clip-rule": "evenodd",
|
|
5381
5560
|
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
5561
|
}, null, -1)]]);
|
|
5383
5562
|
}
|
|
5384
|
-
var
|
|
5563
|
+
var ys = /*#__PURE__*/ j(gs, [["render", vs]]), bs = {}, xs = {
|
|
5385
5564
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5386
5565
|
viewBox: "0 0 20 20",
|
|
5387
5566
|
fill: "currentColor",
|
|
5388
5567
|
"aria-hidden": "true"
|
|
5389
5568
|
};
|
|
5390
|
-
function
|
|
5391
|
-
return p(), i("svg",
|
|
5569
|
+
function Ss(e, t, n, r, o, s) {
|
|
5570
|
+
return p(), i("svg", xs, [...t[0] ||= [a("path", {
|
|
5392
5571
|
"fill-rule": "evenodd",
|
|
5393
5572
|
"clip-rule": "evenodd",
|
|
5394
5573
|
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
5574
|
}, null, -1)]]);
|
|
5396
5575
|
}
|
|
5397
|
-
var
|
|
5576
|
+
var Cs = /*#__PURE__*/ j(bs, [["render", Ss]]);
|
|
5398
5577
|
//#endregion
|
|
5399
5578
|
//#region src/components/Pagination.vue
|
|
5400
|
-
function
|
|
5579
|
+
function ws(e) {
|
|
5401
5580
|
return typeof e == "string" && e !== "" ? e : null;
|
|
5402
5581
|
}
|
|
5403
|
-
var
|
|
5582
|
+
var Ts = {
|
|
5404
5583
|
components: {
|
|
5405
|
-
ArrowNarrowLeft:
|
|
5406
|
-
ArrowNarrowRight:
|
|
5584
|
+
ArrowNarrowLeft: ys,
|
|
5585
|
+
ArrowNarrowRight: Cs
|
|
5407
5586
|
},
|
|
5408
|
-
mixins: [
|
|
5587
|
+
mixins: [P, Q],
|
|
5409
5588
|
props: {
|
|
5410
5589
|
links: {
|
|
5411
5590
|
type: Object,
|
|
@@ -5433,49 +5612,49 @@ var cs = {
|
|
|
5433
5612
|
return typeof this.from == "number" && typeof this.to == "number";
|
|
5434
5613
|
},
|
|
5435
5614
|
previousPageUrl() {
|
|
5436
|
-
return
|
|
5615
|
+
return ws(this.links?.prev);
|
|
5437
5616
|
},
|
|
5438
5617
|
nextPageUrl() {
|
|
5439
|
-
return
|
|
5618
|
+
return ws(this.links?.next);
|
|
5440
5619
|
}
|
|
5441
5620
|
}
|
|
5442
|
-
},
|
|
5621
|
+
}, Es = {
|
|
5443
5622
|
key: 0,
|
|
5444
5623
|
class: "bb-dashboard-ui bb:flex bb:items-center bb:justify-between"
|
|
5445
|
-
},
|
|
5624
|
+
}, Ds = { class: "bb:-mt-px bb:w-0 bb:flex-1 bb:flex" }, Os = ["href"], ks = {
|
|
5446
5625
|
key: 0,
|
|
5447
5626
|
class: "bb:-mt-px bb:flex bb:text-gray-400 bb:text-sm bb:leading-5"
|
|
5448
|
-
},
|
|
5449
|
-
function
|
|
5627
|
+
}, 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"];
|
|
5628
|
+
function Ps(e, t, n, o, l, u) {
|
|
5450
5629
|
let d = g("arrow-narrow-left"), f = g("arrow-narrow-right");
|
|
5451
|
-
return u.hasResults ? (p(), i("nav",
|
|
5452
|
-
a("div",
|
|
5630
|
+
return u.hasResults ? (p(), i("nav", Es, [
|
|
5631
|
+
a("div", Ds, [u.previousPageUrl === null ? r("", !0) : (p(), i("a", {
|
|
5453
5632
|
key: 0,
|
|
5454
5633
|
href: u.previousPageUrl,
|
|
5455
5634
|
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
5635
|
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",
|
|
5636
|
+
}, [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))]),
|
|
5637
|
+
u.hasRange ? (p(), i("div", ks, [
|
|
5459
5638
|
s(y(e.texts.resultsBefore) + " ", 1),
|
|
5460
|
-
a("span",
|
|
5639
|
+
a("span", As, y(u.from) + " - " + y(u.to), 1),
|
|
5461
5640
|
s(" " + y(e.texts.resultsOf) + " ", 1),
|
|
5462
|
-
a("span",
|
|
5641
|
+
a("span", js, y(u.total), 1),
|
|
5463
5642
|
s(" " + y(e.texts.resultsAfter), 1)
|
|
5464
5643
|
])) : r("", !0),
|
|
5465
|
-
a("div",
|
|
5644
|
+
a("div", Ms, [u.nextPageUrl === null ? r("", !0) : (p(), i("a", {
|
|
5466
5645
|
key: 0,
|
|
5467
5646
|
href: u.nextPageUrl,
|
|
5468
5647
|
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
5648
|
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,
|
|
5649
|
+
}, [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
5650
|
])) : r("", !0);
|
|
5472
5651
|
}
|
|
5473
|
-
var
|
|
5652
|
+
var Fs = /*#__PURE__*/ j(Ts, [["render", Ps]]), Is = [
|
|
5474
5653
|
"left",
|
|
5475
5654
|
"center",
|
|
5476
5655
|
"right"
|
|
5477
5656
|
];
|
|
5478
|
-
function
|
|
5657
|
+
function Ls(e) {
|
|
5479
5658
|
if (typeof e != "object" || !e || typeof e.key != "string" || e.key === "") return null;
|
|
5480
5659
|
let t = e.key;
|
|
5481
5660
|
return {
|
|
@@ -5484,21 +5663,21 @@ function bs(e) {
|
|
|
5484
5663
|
value: typeof e.value == "function" ? e.value : (e) => e?.[t],
|
|
5485
5664
|
secondary: typeof e.secondary == "function" ? e.secondary : null,
|
|
5486
5665
|
muted: e.muted === !0,
|
|
5487
|
-
align:
|
|
5666
|
+
align: Is.includes(e.align) ? e.align : "left",
|
|
5488
5667
|
wrap: e.wrap === !0,
|
|
5489
5668
|
narrow: e.narrow === !0,
|
|
5490
5669
|
visible: e.visible !== !1
|
|
5491
5670
|
};
|
|
5492
5671
|
}
|
|
5493
|
-
function
|
|
5672
|
+
function Rs(e) {
|
|
5494
5673
|
return typeof e == "string" && e !== "" ? e : null;
|
|
5495
5674
|
}
|
|
5496
|
-
var
|
|
5675
|
+
var zs = {
|
|
5497
5676
|
components: {
|
|
5498
|
-
Pagination:
|
|
5499
|
-
InfoPill:
|
|
5677
|
+
Pagination: Fs,
|
|
5678
|
+
InfoPill: ia
|
|
5500
5679
|
},
|
|
5501
|
-
mixins: [
|
|
5680
|
+
mixins: [P, A],
|
|
5502
5681
|
props: {
|
|
5503
5682
|
rows: {
|
|
5504
5683
|
type: Array,
|
|
@@ -5543,7 +5722,7 @@ var Ss = {
|
|
|
5543
5722
|
return Array.isArray(this.rows) ? this.rows : [];
|
|
5544
5723
|
},
|
|
5545
5724
|
visibleColumns() {
|
|
5546
|
-
return (Array.isArray(this.columns) ? this.columns : []).map(
|
|
5725
|
+
return (Array.isArray(this.columns) ? this.columns : []).map(Ls).filter((e) => e !== null && e.visible);
|
|
5547
5726
|
},
|
|
5548
5727
|
rowStripes() {
|
|
5549
5728
|
return this.normalizedRows.map((e) => this.stripeOf(e));
|
|
@@ -5562,10 +5741,10 @@ var Ss = {
|
|
|
5562
5741
|
},
|
|
5563
5742
|
badgeText() {
|
|
5564
5743
|
if (this.hasRecords) {
|
|
5565
|
-
let e =
|
|
5744
|
+
let e = Rs(this.foundText);
|
|
5566
5745
|
return e === null ? null : `${e}: ${this.recordCount}`;
|
|
5567
5746
|
}
|
|
5568
|
-
return
|
|
5747
|
+
return Rs(this.emptyText);
|
|
5569
5748
|
}
|
|
5570
5749
|
},
|
|
5571
5750
|
methods: {
|
|
@@ -5585,15 +5764,15 @@ var Ss = {
|
|
|
5585
5764
|
stripeOf(e) {
|
|
5586
5765
|
if (typeof this.rowStripe != "function") return null;
|
|
5587
5766
|
let t = this.rowStripe(e);
|
|
5588
|
-
return
|
|
5767
|
+
return k(t) ? t : null;
|
|
5589
5768
|
},
|
|
5590
5769
|
textOf(e, t) {
|
|
5591
5770
|
let n = e(t);
|
|
5592
5771
|
return n == null ? "" : String(n);
|
|
5593
5772
|
}
|
|
5594
5773
|
}
|
|
5595
|
-
},
|
|
5596
|
-
function
|
|
5774
|
+
}, 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"];
|
|
5775
|
+
function Ks(t, o, s, c, l, u) {
|
|
5597
5776
|
let f = g("info-pill"), _ = g("pagination");
|
|
5598
5777
|
return p(), i("div", null, [
|
|
5599
5778
|
u.hasBadgeRow() ? (p(), i("div", {
|
|
@@ -5607,7 +5786,7 @@ function ks(t, o, s, c, l, u) {
|
|
|
5607
5786
|
u.normalizedRows.length > 0 ? (p(), i("div", {
|
|
5608
5787
|
key: 1,
|
|
5609
5788
|
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",
|
|
5789
|
+
}, [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
5790
|
key: e.key,
|
|
5612
5791
|
scope: "col",
|
|
5613
5792
|
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 +5795,7 @@ function ks(t, o, s, c, l, u) {
|
|
|
5616
5795
|
"bb:text-right": e.align === "right"
|
|
5617
5796
|
}, { "bb:w-px": e.narrow }]]),
|
|
5618
5797
|
textContent: y(e.label)
|
|
5619
|
-
}, null, 10,
|
|
5798
|
+
}, null, 10, Hs))), 128))])]), a("tbody", Us, [(p(!0), i(e, null, m(u.normalizedRows, (n, o) => (p(), i("tr", {
|
|
5620
5799
|
key: u.keyOf(n, o),
|
|
5621
5800
|
class: "bb:bg-white bb:even:bg-gray-50"
|
|
5622
5801
|
}, [(p(!0), i(e, null, m(u.visibleColumns, (e, s) => (p(), i("td", {
|
|
@@ -5640,11 +5819,11 @@ function ks(t, o, s, c, l, u) {
|
|
|
5640
5819
|
}, () => [a("div", {
|
|
5641
5820
|
class: d(["bb:font-medium", e.muted ? "bb:text-gray-400" : "bb:text-gray-900"]),
|
|
5642
5821
|
textContent: y(u.textOf(e.value, n))
|
|
5643
|
-
}, null, 10,
|
|
5822
|
+
}, null, 10, Ws), e.secondary !== null && u.textOf(e.secondary, n) !== "" ? (p(), i("div", {
|
|
5644
5823
|
key: 0,
|
|
5645
5824
|
class: "bb:text-gray-400",
|
|
5646
5825
|
textContent: y(u.textOf(e.secondary, n))
|
|
5647
|
-
}, null, 8,
|
|
5826
|
+
}, null, 8, Gs)) : r("", !0)])], 2))), 128))]))), 128))])])], 2)], 2)) : r("", !0),
|
|
5648
5827
|
u.hasMeta ? (p(), n(_, {
|
|
5649
5828
|
key: 2,
|
|
5650
5829
|
meta: s.meta,
|
|
@@ -5659,7 +5838,7 @@ function ks(t, o, s, c, l, u) {
|
|
|
5659
5838
|
])) : r("", !0)
|
|
5660
5839
|
]);
|
|
5661
5840
|
}
|
|
5662
|
-
var
|
|
5841
|
+
var qs = /*#__PURE__*/ j(zs, [["render", Ks]]), Js = {
|
|
5663
5842
|
mixins: [Q],
|
|
5664
5843
|
props: {
|
|
5665
5844
|
url: {
|
|
@@ -5675,17 +5854,65 @@ var As = /*#__PURE__*/ M(Ss, [["render", ks]]), js = {
|
|
|
5675
5854
|
default: !1
|
|
5676
5855
|
}
|
|
5677
5856
|
}
|
|
5678
|
-
},
|
|
5679
|
-
function
|
|
5857
|
+
}, Ys = ["href", "textContent"];
|
|
5858
|
+
function Xs(e, t, n, r, a, o) {
|
|
5680
5859
|
return p(), i("a", {
|
|
5681
5860
|
href: n.url,
|
|
5682
5861
|
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
5862
|
onClick: t[0] ||= (t) => e.followLink(t, n.url),
|
|
5684
5863
|
textContent: y(n.name)
|
|
5685
|
-
}, null, 10,
|
|
5864
|
+
}, null, 10, Ys);
|
|
5686
5865
|
}
|
|
5687
|
-
var
|
|
5688
|
-
|
|
5866
|
+
var Zs = /*#__PURE__*/ j(Js, [["render", Xs]]), Qs = {
|
|
5867
|
+
components: {
|
|
5868
|
+
HamburgerMenu: hs,
|
|
5869
|
+
NavigationMenuElement: Zs
|
|
5870
|
+
},
|
|
5871
|
+
mixins: [P],
|
|
5872
|
+
props: {
|
|
5873
|
+
items: {
|
|
5874
|
+
type: Array,
|
|
5875
|
+
default: () => []
|
|
5876
|
+
},
|
|
5877
|
+
activeKey: {
|
|
5878
|
+
type: String,
|
|
5879
|
+
default: null
|
|
5880
|
+
},
|
|
5881
|
+
actions: {
|
|
5882
|
+
type: Array,
|
|
5883
|
+
default: () => []
|
|
5884
|
+
}
|
|
5885
|
+
},
|
|
5886
|
+
computed: { itemList() {
|
|
5887
|
+
return Array.isArray(this.items) ? this.items.filter((e) => typeof e == "object" && !!e) : [];
|
|
5888
|
+
} }
|
|
5889
|
+
}, $s = ["aria-label"], ec = { class: "bb:flex bb:h-16 bb:justify-between bb:px-8" }, tc = { class: "bb:flex" }, nc = {
|
|
5890
|
+
key: 0,
|
|
5891
|
+
class: "bb:flex bb:shrink-0 bb:items-center bb:mr-8"
|
|
5892
|
+
}, rc = { class: "bb:flex bb:gap-8 bb:whitespace-nowrap" }, ic = { class: "bb:flex bb:items-center bb:ml-6" };
|
|
5893
|
+
function ac(t, o, s, l, u, d) {
|
|
5894
|
+
let f = g("navigation-menu-element"), _ = g("hamburger-menu");
|
|
5895
|
+
return p(), i("nav", {
|
|
5896
|
+
class: "bb-dashboard-ui bb:bg-white bb:shadow-sm",
|
|
5897
|
+
"aria-label": t.texts.sections
|
|
5898
|
+
}, [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, {
|
|
5899
|
+
key: e.key,
|
|
5900
|
+
name: e.name,
|
|
5901
|
+
url: e.url,
|
|
5902
|
+
"is-active": e.key === s.activeKey,
|
|
5903
|
+
"aria-current": e.key === s.activeKey ? "page" : null
|
|
5904
|
+
}, null, 8, [
|
|
5905
|
+
"name",
|
|
5906
|
+
"url",
|
|
5907
|
+
"is-active",
|
|
5908
|
+
"aria-current"
|
|
5909
|
+
]))), 128))])]), a("div", ic, [c(_, {
|
|
5910
|
+
actions: s.actions,
|
|
5911
|
+
lang: t.lang
|
|
5912
|
+
}, null, 8, ["actions", "lang"])])])], 8, $s);
|
|
5913
|
+
}
|
|
5914
|
+
var oc = /*#__PURE__*/ j(Qs, [["render", ac]]), sc = {
|
|
5915
|
+
mixins: [P, Q],
|
|
5689
5916
|
props: {
|
|
5690
5917
|
tabs: {
|
|
5691
5918
|
type: Array,
|
|
@@ -5699,13 +5926,13 @@ var Ps = /*#__PURE__*/ M(js, [["render", Ns]]), Fs = {
|
|
|
5699
5926
|
computed: { tabList() {
|
|
5700
5927
|
return Array.isArray(this.tabs) ? this.tabs.filter((e) => typeof e == "object" && !!e) : [];
|
|
5701
5928
|
} }
|
|
5702
|
-
},
|
|
5929
|
+
}, cc = ["aria-label"], lc = [
|
|
5703
5930
|
"href",
|
|
5704
5931
|
"aria-current",
|
|
5705
5932
|
"onClick",
|
|
5706
5933
|
"textContent"
|
|
5707
5934
|
];
|
|
5708
|
-
function
|
|
5935
|
+
function uc(t, n, r, a, o, s) {
|
|
5709
5936
|
return p(), i("nav", {
|
|
5710
5937
|
class: "bb-dashboard-ui bb:flex bb:space-x-4",
|
|
5711
5938
|
"aria-label": t.texts.tabs
|
|
@@ -5716,21 +5943,21 @@ function Rs(t, n, r, a, o, s) {
|
|
|
5716
5943
|
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
5944
|
onClick: (n) => t.followLink(n, e.url),
|
|
5718
5945
|
textContent: y(e.name)
|
|
5719
|
-
}, null, 10,
|
|
5946
|
+
}, null, 10, lc))), 128))], 8, cc);
|
|
5720
5947
|
}
|
|
5721
|
-
var
|
|
5948
|
+
var dc = /*#__PURE__*/ j(sc, [["render", uc]]), fc = [
|
|
5722
5949
|
"xl",
|
|
5723
5950
|
"4xl",
|
|
5724
5951
|
"7xl"
|
|
5725
|
-
],
|
|
5726
|
-
components: { CrossButton:
|
|
5727
|
-
mixins: [
|
|
5952
|
+
], pc = {
|
|
5953
|
+
components: { CrossButton: F },
|
|
5954
|
+
mixins: [P],
|
|
5728
5955
|
inheritAttrs: !1,
|
|
5729
5956
|
props: {
|
|
5730
5957
|
width: {
|
|
5731
5958
|
type: String,
|
|
5732
5959
|
default: "xl",
|
|
5733
|
-
validator: (e) =>
|
|
5960
|
+
validator: (e) => fc.includes(e)
|
|
5734
5961
|
},
|
|
5735
5962
|
fallbackUrl: {
|
|
5736
5963
|
type: String,
|
|
@@ -5746,7 +5973,7 @@ var zs = /*#__PURE__*/ M(Fs, [["render", Rs]]), Bs = [
|
|
|
5746
5973
|
},
|
|
5747
5974
|
computed: {
|
|
5748
5975
|
resolvedWidth() {
|
|
5749
|
-
return
|
|
5976
|
+
return fc.includes(this.width) ? this.width : "xl";
|
|
5750
5977
|
},
|
|
5751
5978
|
windows() {
|
|
5752
5979
|
return this.uiSettings.windows;
|
|
@@ -5762,13 +5989,13 @@ var zs = /*#__PURE__*/ M(Fs, [["render", Rs]]), Bs = [
|
|
|
5762
5989
|
}
|
|
5763
5990
|
},
|
|
5764
5991
|
watch: { fallbackUrl() {
|
|
5765
|
-
this.windows !== null &&
|
|
5992
|
+
this.windows !== null && ge(this.windows.state, this, this.fallbackAddress());
|
|
5766
5993
|
} },
|
|
5767
5994
|
mounted() {
|
|
5768
|
-
this.windows !== null && (this.returnAddress =
|
|
5995
|
+
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
5996
|
},
|
|
5770
5997
|
beforeUnmount() {
|
|
5771
|
-
this.windows !== null &&
|
|
5998
|
+
this.windows !== null && he(this.windows.state, this);
|
|
5772
5999
|
},
|
|
5773
6000
|
methods: {
|
|
5774
6001
|
fallbackAddress() {
|
|
@@ -5778,7 +6005,7 @@ var zs = /*#__PURE__*/ M(Fs, [["render", Rs]]), Bs = [
|
|
|
5778
6005
|
return Object.fromEntries(Object.entries(this.$attrs).filter(([e]) => e.startsWith("data-") || e.startsWith("aria-")));
|
|
5779
6006
|
},
|
|
5780
6007
|
syncWindow() {
|
|
5781
|
-
let e =
|
|
6008
|
+
let e = me(this.windows.state, this, this.resolvedKey, this.fallbackAddress());
|
|
5782
6009
|
e.rejected && console.warn(`PageCard: ключ окна сменился на «${this.resolvedKey}» без смены страницы — карточка остаётся в окне «${e.key}»`), this.returnAddress = e.window.returnAddress;
|
|
5783
6010
|
},
|
|
5784
6011
|
close() {
|
|
@@ -5793,7 +6020,7 @@ var zs = /*#__PURE__*/ M(Fs, [["render", Rs]]), Bs = [
|
|
|
5793
6020
|
}
|
|
5794
6021
|
}
|
|
5795
6022
|
};
|
|
5796
|
-
function
|
|
6023
|
+
function mc(e, t, a, o, c, l) {
|
|
5797
6024
|
let f = g("cross-button");
|
|
5798
6025
|
return p(), i("div", u({
|
|
5799
6026
|
class: ["bb:box-border bb:relative bb:my-6 bb:mx-auto bb:bg-white bb:shadow-xl bb:rounded-lg", [
|
|
@@ -5824,21 +6051,21 @@ function Hs(e, t, a, o, c, l) {
|
|
|
5824
6051
|
_: 1
|
|
5825
6052
|
}, 8, ["class", "onClicked"])) : r("", !0)], 16);
|
|
5826
6053
|
}
|
|
5827
|
-
var
|
|
5828
|
-
function
|
|
5829
|
-
return p(), i("dl",
|
|
6054
|
+
var hc = /*#__PURE__*/ j(pc, [["render", mc]]), gc = {}, _c = { class: "bb:m-0 bb:p-0 bb:overflow-hidden bb:rounded-b-lg" };
|
|
6055
|
+
function vc(e, t, n, r, a, o) {
|
|
6056
|
+
return p(), i("dl", _c, [h(e.$slots, "default")]);
|
|
5830
6057
|
}
|
|
5831
|
-
var
|
|
6058
|
+
var yc = /*#__PURE__*/ j(gc, [["render", vc]]), bc = { props: { title: {
|
|
5832
6059
|
type: String,
|
|
5833
6060
|
required: !0
|
|
5834
|
-
} } },
|
|
5835
|
-
function
|
|
5836
|
-
return p(), i("div",
|
|
6061
|
+
} } }, 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" };
|
|
6062
|
+
function wc(e, t, n, r, o, s) {
|
|
6063
|
+
return p(), i("div", xc, [a("dt", {
|
|
5837
6064
|
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
6065
|
textContent: y(n.title)
|
|
5839
|
-
}, null, 8,
|
|
6066
|
+
}, null, 8, Sc), a("dd", Cc, [h(e.$slots, "default")])]);
|
|
5840
6067
|
}
|
|
5841
|
-
var
|
|
6068
|
+
var Tc = /*#__PURE__*/ j(bc, [["render", wc]]), Ec = {}, Dc = {
|
|
5842
6069
|
class: "bb:h-7 bb:w-7 bb:text-green-600",
|
|
5843
6070
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5844
6071
|
fill: "none",
|
|
@@ -5847,22 +6074,22 @@ var $s = /*#__PURE__*/ M(Js, [["render", Qs]]), ec = {}, tc = {
|
|
|
5847
6074
|
stroke: "currentColor",
|
|
5848
6075
|
"aria-hidden": "true"
|
|
5849
6076
|
};
|
|
5850
|
-
function
|
|
5851
|
-
return p(), i("svg",
|
|
6077
|
+
function Oc(e, t, n, r, o, s) {
|
|
6078
|
+
return p(), i("svg", Dc, [...t[0] ||= [a("path", {
|
|
5852
6079
|
"stroke-linecap": "round",
|
|
5853
6080
|
"stroke-linejoin": "round",
|
|
5854
6081
|
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
6082
|
}, null, -1)]]);
|
|
5856
6083
|
}
|
|
5857
|
-
var
|
|
6084
|
+
var kc = /*#__PURE__*/ j(Ec, [["render", Oc]]), Ac = {}, jc = {
|
|
5858
6085
|
class: "bb:h-5 bb:w-5",
|
|
5859
6086
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5860
6087
|
viewBox: "0 0 20 20",
|
|
5861
6088
|
fill: "currentColor",
|
|
5862
6089
|
"aria-hidden": "true"
|
|
5863
6090
|
};
|
|
5864
|
-
function
|
|
5865
|
-
return p(), i("svg",
|
|
6091
|
+
function Mc(e, t, n, r, o, s) {
|
|
6092
|
+
return p(), i("svg", jc, [...t[0] ||= [a("path", {
|
|
5866
6093
|
"fill-rule": "evenodd",
|
|
5867
6094
|
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
6095
|
"clip-rule": "evenodd"
|
|
@@ -5870,14 +6097,14 @@ function oc(e, t, n, r, o, s) {
|
|
|
5870
6097
|
}
|
|
5871
6098
|
//#endregion
|
|
5872
6099
|
//#region src/components/NotificationMessage.vue
|
|
5873
|
-
var
|
|
6100
|
+
var Nc = {
|
|
5874
6101
|
components: {
|
|
5875
|
-
Check:
|
|
5876
|
-
Close: /* @__PURE__ */
|
|
5877
|
-
Dangerous:
|
|
5878
|
-
Warning:
|
|
6102
|
+
Check: kc,
|
|
6103
|
+
Close: /* @__PURE__ */ j(Ac, [["render", Mc]]),
|
|
6104
|
+
Dangerous: Mo,
|
|
6105
|
+
Warning: Io
|
|
5879
6106
|
},
|
|
5880
|
-
mixins: [
|
|
6107
|
+
mixins: [P],
|
|
5881
6108
|
emits: ["update:modelValue"],
|
|
5882
6109
|
props: {
|
|
5883
6110
|
modelValue: {
|
|
@@ -5915,8 +6142,8 @@ var sc = {
|
|
|
5915
6142
|
return this.type === "confirmation";
|
|
5916
6143
|
}
|
|
5917
6144
|
}
|
|
5918
|
-
},
|
|
5919
|
-
function
|
|
6145
|
+
}, 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" };
|
|
6146
|
+
function Uc(e, t, o, s, l, u) {
|
|
5920
6147
|
let f = g("warning"), m = g("dangerous"), h = g("check"), _ = g("close");
|
|
5921
6148
|
return p(), i("div", {
|
|
5922
6149
|
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 +6155,14 @@ function _c(e, t, o, s, l, u) {
|
|
|
5928
6155
|
"bb:bg-yellow-50": u.isWarning,
|
|
5929
6156
|
"bb:bg-gray-50": u.isConfirmation
|
|
5930
6157
|
}])
|
|
5931
|
-
}, [a("div",
|
|
5932
|
-
a("div",
|
|
6158
|
+
}, [a("div", Fc, [a("div", Ic, [
|
|
6159
|
+
a("div", Lc, [
|
|
5933
6160
|
u.isWarning ? (p(), n(f, { key: 0 })) : r("", !0),
|
|
5934
6161
|
u.isDangerous ? (p(), n(m, { key: 1 })) : r("", !0),
|
|
5935
6162
|
u.isConfirmation ? (p(), n(h, { key: 2 })) : r("", !0)
|
|
5936
6163
|
]),
|
|
5937
|
-
a("div",
|
|
5938
|
-
a("div",
|
|
6164
|
+
a("div", Rc, [a("p", zc, y(o.notificationHeading), 1), a("p", Bc, y(u.text), 1)]),
|
|
6165
|
+
a("div", Vc, [a("button", {
|
|
5939
6166
|
type: "button",
|
|
5940
6167
|
class: d(["bb:rounded-md bb:inline-flex bb:text-gray-400 bb:hover:text-gray-500 bb:focus:focus-ring", {
|
|
5941
6168
|
"bb:bg-red-50": u.isDangerous,
|
|
@@ -5943,10 +6170,10 @@ function _c(e, t, o, s, l, u) {
|
|
|
5943
6170
|
"bb:bg-gray-50": u.isConfirmation
|
|
5944
6171
|
}]),
|
|
5945
6172
|
onClick: t[0] ||= E((t) => e.$emit("update:modelValue", ""), ["prevent"])
|
|
5946
|
-
}, [a("span",
|
|
5947
|
-
])])], 2)) : r("", !0)], 8,
|
|
6173
|
+
}, [a("span", Hc, y(e.texts.close), 1), c(_, { class: "bb:pointer-events-none bb:cursor-default" })], 2)])
|
|
6174
|
+
])])], 2)) : r("", !0)], 8, Pc);
|
|
5948
6175
|
}
|
|
5949
|
-
var
|
|
6176
|
+
var Wc = /*#__PURE__*/ j(Nc, [["render", Uc]]), Gc = {}, Kc = {
|
|
5950
6177
|
class: "bb:h-5 bb:w-5",
|
|
5951
6178
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5952
6179
|
fill: "none",
|
|
@@ -5955,8 +6182,8 @@ var vc = /*#__PURE__*/ M(sc, [["render", _c]]), yc = {}, bc = {
|
|
|
5955
6182
|
"stroke-width": "2",
|
|
5956
6183
|
"aria-hidden": "true"
|
|
5957
6184
|
};
|
|
5958
|
-
function
|
|
5959
|
-
return p(), i("svg",
|
|
6185
|
+
function qc(e, t, n, r, o, s) {
|
|
6186
|
+
return p(), i("svg", Kc, [...t[0] ||= [a("path", {
|
|
5960
6187
|
"stroke-linecap": "round",
|
|
5961
6188
|
"stroke-linejoin": "round",
|
|
5962
6189
|
d: "M15 12a3 3 0 11-6 0 3 3 0 016 0z"
|
|
@@ -5966,12 +6193,12 @@ function xc(e, t, n, r, o, s) {
|
|
|
5966
6193
|
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
6194
|
}, null, -1)]]);
|
|
5968
6195
|
}
|
|
5969
|
-
var
|
|
6196
|
+
var Jc = /*#__PURE__*/ j(Gc, [["render", qc]]), $ = 0, Yc = null, Xc = {
|
|
5970
6197
|
components: {
|
|
5971
|
-
PopoverPanel:
|
|
5972
|
-
Eye:
|
|
6198
|
+
PopoverPanel: z,
|
|
6199
|
+
Eye: Jc
|
|
5973
6200
|
},
|
|
5974
|
-
mixins: [
|
|
6201
|
+
mixins: [P],
|
|
5975
6202
|
emits: ["update:modelValue"],
|
|
5976
6203
|
props: {
|
|
5977
6204
|
text: {
|
|
@@ -6004,18 +6231,18 @@ var Sc = /*#__PURE__*/ M(yc, [["render", xc]]), $ = 0, Cc = null, wc = {
|
|
|
6004
6231
|
lockPageSelection() {
|
|
6005
6232
|
if (!this.holdsPageSelectionLock && (this.holdsPageSelectionLock = !0, $ += 1, $ === 1)) {
|
|
6006
6233
|
let e = document.documentElement.style;
|
|
6007
|
-
|
|
6234
|
+
Yc = {
|
|
6008
6235
|
userSelect: e.userSelect,
|
|
6009
6236
|
webkitUserSelect: e.webkitUserSelect
|
|
6010
6237
|
}, e.userSelect = "none", e.webkitUserSelect = "none";
|
|
6011
6238
|
}
|
|
6012
6239
|
},
|
|
6013
6240
|
unlockPageSelection() {
|
|
6014
|
-
this.holdsPageSelectionLock && (this.holdsPageSelectionLock = !1, --$, $ === 0 && (Object.assign(document.documentElement.style,
|
|
6241
|
+
this.holdsPageSelectionLock && (this.holdsPageSelectionLock = !1, --$, $ === 0 && (Object.assign(document.documentElement.style, Yc), Yc = null));
|
|
6015
6242
|
}
|
|
6016
6243
|
}
|
|
6017
|
-
},
|
|
6018
|
-
function
|
|
6244
|
+
}, Zc = ["id", "popovertarget"], Qc = { class: "bb:sr-only bb:pointer-events-none bb:cursor-default" };
|
|
6245
|
+
function $c(e, t, r, i, o, l) {
|
|
6019
6246
|
let u = g("eye"), d = g("popover-panel");
|
|
6020
6247
|
return p(), n(d, {
|
|
6021
6248
|
class: "bb-dashboard-ui bb:inline-flex",
|
|
@@ -6035,7 +6262,7 @@ function Dc(e, t, r, i, o, l) {
|
|
|
6035
6262
|
id: t.id,
|
|
6036
6263
|
popovertarget: t.popovertarget,
|
|
6037
6264
|
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",
|
|
6265
|
+
}, [a("span", Qc, y(e.texts.showText), 1), c(u, { class: "bb:pointer-events-none bb:cursor-default" })], 8, Zc)]),
|
|
6039
6266
|
default: C(() => [s(y(l.normalizedText), 1)]),
|
|
6040
6267
|
_: 1
|
|
6041
6268
|
}, 8, [
|
|
@@ -6045,6 +6272,6 @@ function Dc(e, t, r, i, o, l) {
|
|
|
6045
6272
|
"onToggle"
|
|
6046
6273
|
]);
|
|
6047
6274
|
}
|
|
6048
|
-
var
|
|
6275
|
+
var el = /*#__PURE__*/ j(Xc, [["render", $c]]);
|
|
6049
6276
|
//#endregion
|
|
6050
|
-
export {
|
|
6277
|
+
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 };
|