@boobooking/dashboard-ui-components 0.22.0 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +124 -16
- package/dist/index.js +1414 -1131
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Fragment as e, Transition as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a,
|
|
1
|
+
import { Fragment as e, Transition as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createSlots as o, createTextVNode as s, createVNode as c, effectScope as l, mergeProps as u, normalizeClass as d, normalizeStyle as f, openBlock as p, renderList as m, renderSlot as h, resolveComponent as g, resolveDynamicComponent as _, shallowReactive as v, toDisplayString as y, useId as b, vModelDynamic as ee, vModelText as te, vShow as x, watch as ne, withCtx as S, withDirectives as C, withKeys as w, withModifiers as T } from "vue";
|
|
2
2
|
import re from "imask";
|
|
3
3
|
//#region src/i18n.js
|
|
4
4
|
var ie = ["ru", "en"];
|
|
5
|
-
function
|
|
5
|
+
function ae(e) {
|
|
6
6
|
return ie.includes(e);
|
|
7
7
|
}
|
|
8
|
-
var
|
|
8
|
+
var oe = {
|
|
9
9
|
ru: {
|
|
10
10
|
cancel: "Отмена",
|
|
11
11
|
openMenu: "Открыть меню",
|
|
@@ -125,15 +125,15 @@ var ae = {
|
|
|
125
125
|
};
|
|
126
126
|
//#endregion
|
|
127
127
|
//#region src/windows.js
|
|
128
|
-
function
|
|
128
|
+
function se(e, t) {
|
|
129
129
|
if (e == null || e === "") return null;
|
|
130
130
|
let n = new URL(String(e), t);
|
|
131
131
|
return n.pathname + n.search;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function ce(e) {
|
|
134
134
|
return e === null ? null : e.split("?")[0];
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function le() {
|
|
137
137
|
return {
|
|
138
138
|
windows: [],
|
|
139
139
|
cards: /* @__PURE__ */ new Map(),
|
|
@@ -147,36 +147,36 @@ function ce() {
|
|
|
147
147
|
nextId: 1
|
|
148
148
|
};
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function E(e, t) {
|
|
151
151
|
return e.windows.includes(t);
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function ue(e) {
|
|
154
154
|
return e.returnAddress ?? e.fallbackAddress;
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function de(e) {
|
|
157
157
|
let t = null;
|
|
158
158
|
for (let n of e.cards.values()) t = n.window;
|
|
159
159
|
return t;
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function fe(e, t) {
|
|
162
162
|
let n = t;
|
|
163
|
-
for (; n !== null && !
|
|
163
|
+
for (; n !== null && !E(e, n);) n = n.parent;
|
|
164
164
|
return n;
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function pe(e, t) {
|
|
167
167
|
return e.transition = {
|
|
168
168
|
number: e.transition.number + 1,
|
|
169
169
|
fromAddress: e.shown,
|
|
170
|
-
fromWindow:
|
|
170
|
+
fromWindow: de(e),
|
|
171
171
|
assigned: /* @__PURE__ */ new Map()
|
|
172
172
|
}, e.shown = t, e.transition.number;
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function me(e, t, n) {
|
|
175
175
|
let r = e.transition, i = r.assigned.get(t);
|
|
176
|
-
if (i !== void 0 &&
|
|
176
|
+
if (i !== void 0 && E(e, i)) return i;
|
|
177
177
|
let a = r.fromWindow, o = r.fromAddress;
|
|
178
|
-
a !== null && !
|
|
179
|
-
for (let n = a; n !== null; n = n.parent) if (n.key === t &&
|
|
178
|
+
a !== null && !E(e, a) && (a = fe(e, a), o = null), a !== null && ue(a) === e.shown && (e.windows.splice(e.windows.indexOf(a)), a = a.parent === null ? null : fe(e, a.parent), o = null);
|
|
179
|
+
for (let n = a; n !== null; n = n.parent) if (n.key === t && E(e, n)) return e.windows.splice(e.windows.indexOf(n) + 1), n;
|
|
180
180
|
a === null ? e.windows = [] : e.windows.splice(e.windows.indexOf(a) + 1);
|
|
181
181
|
let s = {
|
|
182
182
|
id: e.nextId,
|
|
@@ -187,18 +187,18 @@ function pe(e, t, n) {
|
|
|
187
187
|
};
|
|
188
188
|
return e.nextId += 1, e.windows.push(s), s;
|
|
189
189
|
}
|
|
190
|
-
function
|
|
191
|
-
let i =
|
|
190
|
+
function D(e, t, n, r) {
|
|
191
|
+
let i = me(e, n, r);
|
|
192
192
|
return i.fallbackAddress = r, e.transition.assigned.set(n, i), e.cards.delete(t), e.cards.set(t, {
|
|
193
193
|
key: n,
|
|
194
194
|
window: i,
|
|
195
195
|
processed: e.transition.number
|
|
196
196
|
}), i;
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function he(e, t, n, r) {
|
|
199
199
|
let i = e.cards.get(t);
|
|
200
200
|
return i === void 0 ? {
|
|
201
|
-
window:
|
|
201
|
+
window: D(e, t, n, r),
|
|
202
202
|
rejected: !1,
|
|
203
203
|
key: n
|
|
204
204
|
} : i.key === n ? (i.processed = e.transition.number, {
|
|
@@ -210,37 +210,37 @@ function me(e, t, n, r) {
|
|
|
210
210
|
rejected: !0,
|
|
211
211
|
key: i.key
|
|
212
212
|
} : (e.cards.delete(t), {
|
|
213
|
-
window:
|
|
213
|
+
window: D(e, t, n, r),
|
|
214
214
|
rejected: !1,
|
|
215
215
|
key: n
|
|
216
216
|
});
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function ge(e, t) {
|
|
219
219
|
e.cards.delete(t);
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function _e(e, t, n) {
|
|
222
222
|
let r = e.cards.get(t);
|
|
223
223
|
r !== void 0 && (r.window.fallbackAddress = n);
|
|
224
224
|
}
|
|
225
225
|
//#endregion
|
|
226
226
|
//#region src/plugin.js
|
|
227
|
-
var
|
|
227
|
+
var ve = Symbol("dashboardUi"), ye = Object.freeze({
|
|
228
228
|
lang: "ru",
|
|
229
229
|
navigate: null,
|
|
230
230
|
windows: null
|
|
231
|
-
}),
|
|
232
|
-
from:
|
|
233
|
-
default: () =>
|
|
231
|
+
}), be = { uiSettings: {
|
|
232
|
+
from: ve,
|
|
233
|
+
default: () => ye
|
|
234
234
|
} };
|
|
235
|
-
function
|
|
236
|
-
let n =
|
|
235
|
+
function xe(e, t) {
|
|
236
|
+
let n = le(), r = v({
|
|
237
237
|
number: 0,
|
|
238
238
|
address: null
|
|
239
|
-
}), i =
|
|
239
|
+
}), i = l(!0);
|
|
240
240
|
return i.run(() => {
|
|
241
241
|
ne(t, (e) => {
|
|
242
|
-
let t =
|
|
243
|
-
t !== null && t !== r.address && (r.number =
|
|
242
|
+
let t = se(e, window.location.origin);
|
|
243
|
+
t !== null && t !== r.address && (r.number = pe(n, t), r.address = t);
|
|
244
244
|
}, {
|
|
245
245
|
flush: "sync",
|
|
246
246
|
immediate: !0
|
|
@@ -250,21 +250,21 @@ function be(e, t) {
|
|
|
250
250
|
page: r
|
|
251
251
|
};
|
|
252
252
|
}
|
|
253
|
-
var
|
|
253
|
+
var Se = { install(e, t) {
|
|
254
254
|
let n = t ?? {}, r = Object.hasOwn(n, "lang") ? n.lang : "ru";
|
|
255
|
-
if (!
|
|
255
|
+
if (!ae(r)) throw Error(`dashboardUi: неизвестный lang «${r}», допустимы: ${ie.join(", ")}`);
|
|
256
256
|
let i = Object.hasOwn(n, "navigate"), a = i ? n.navigate : null;
|
|
257
257
|
if (i && typeof a != "function") throw Error("dashboardUi: navigate должен быть функцией (href) => …");
|
|
258
258
|
let o = Object.hasOwn(n, "currentUrl"), s = o ? n.currentUrl : null;
|
|
259
259
|
if (o && typeof s != "function") throw Error("dashboardUi: currentUrl должен быть функцией () => адрес страницы");
|
|
260
|
-
let c = s !== null && typeof window < "u" ?
|
|
261
|
-
e.provide(
|
|
260
|
+
let c = s !== null && typeof window < "u" ? xe(e, s) : null;
|
|
261
|
+
e.provide(ve, Object.freeze({
|
|
262
262
|
lang: r,
|
|
263
263
|
navigate: a,
|
|
264
264
|
windows: c
|
|
265
265
|
}));
|
|
266
|
-
} },
|
|
267
|
-
function
|
|
266
|
+
} }, Ce = 4e4;
|
|
267
|
+
function we(e) {
|
|
268
268
|
if (typeof e != "string") return null;
|
|
269
269
|
let t = /filename\*\s*=\s*UTF-8''([^;]+)/i.exec(e);
|
|
270
270
|
if (t !== null) try {
|
|
@@ -275,7 +275,7 @@ function Ce(e) {
|
|
|
275
275
|
let r = /filename\s*=\s*([^;"\s]+)/i.exec(e);
|
|
276
276
|
return r === null ? null : r[1];
|
|
277
277
|
}
|
|
278
|
-
function
|
|
278
|
+
function Te(e) {
|
|
279
279
|
try {
|
|
280
280
|
let t = new URL(e, window.location.href).pathname.split("/").filter((e) => e !== "");
|
|
281
281
|
return t.length === 0 ? null : decodeURIComponent(t[t.length - 1]);
|
|
@@ -283,7 +283,7 @@ function we(e) {
|
|
|
283
283
|
return null;
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
|
-
async function
|
|
286
|
+
async function Ee(e) {
|
|
287
287
|
let t = await fetch(e, { credentials: "same-origin" });
|
|
288
288
|
if (t.redirected) throw Object.assign(/* @__PURE__ */ Error(`downloadFile: сервер перенаправил запрос ${e}`), {
|
|
289
289
|
redirectUrl: t.url,
|
|
@@ -293,12 +293,12 @@ async function Te(e) {
|
|
|
293
293
|
redirectUrl: null,
|
|
294
294
|
status: t.status
|
|
295
295
|
});
|
|
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),
|
|
296
|
+
let n = we(t.headers.get("Content-Disposition")) ?? Te(e) ?? "download", r = URL.createObjectURL(await t.blob()), i = document.createElement("a");
|
|
297
|
+
i.href = r, i.download = n, i.style.display = "none", document.body.appendChild(i), i.click(), i.remove(), setTimeout(() => URL.revokeObjectURL(r), Ce);
|
|
298
298
|
}
|
|
299
299
|
//#endregion
|
|
300
300
|
//#region src/colors.js
|
|
301
|
-
var
|
|
301
|
+
var De = {
|
|
302
302
|
gray: {
|
|
303
303
|
pill: "bb:bg-gray-100 bb:text-gray-800",
|
|
304
304
|
pillHover: "bb:hover:text-gray-600",
|
|
@@ -341,19 +341,19 @@ var Ee = {
|
|
|
341
341
|
menuItem: "bb:bg-purple-100 bb:text-purple-800 bb:hover:bg-purple-200 bb:focus:bg-purple-200",
|
|
342
342
|
mark: "bb:text-purple-500"
|
|
343
343
|
}
|
|
344
|
-
},
|
|
345
|
-
function
|
|
346
|
-
return
|
|
344
|
+
}, Oe = Object.keys(De);
|
|
345
|
+
function O(e) {
|
|
346
|
+
return Oe.includes(e);
|
|
347
347
|
}
|
|
348
|
-
function
|
|
349
|
-
return
|
|
348
|
+
function ke(e, t) {
|
|
349
|
+
return O(e) ? De[e][t] ?? "" : "";
|
|
350
350
|
}
|
|
351
|
-
var
|
|
351
|
+
var k = { methods: { colorClass: ke } }, A = (e, t) => {
|
|
352
352
|
let n = e.__vccOpts || e;
|
|
353
353
|
for (let [e, r] of t) n[e] = r;
|
|
354
354
|
return n;
|
|
355
|
-
},
|
|
356
|
-
mixins: [
|
|
355
|
+
}, Ae = {
|
|
356
|
+
mixins: [k],
|
|
357
357
|
props: {
|
|
358
358
|
withPulse: {
|
|
359
359
|
type: Boolean,
|
|
@@ -362,12 +362,12 @@ var O = { methods: { colorClass: Oe } }, k = (e, t) => {
|
|
|
362
362
|
color: {
|
|
363
363
|
type: String,
|
|
364
364
|
required: !0,
|
|
365
|
-
validator:
|
|
365
|
+
validator: O
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
368
|
};
|
|
369
|
-
function
|
|
370
|
-
return
|
|
369
|
+
function je(e, t, n, r, o, s) {
|
|
370
|
+
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", {
|
|
371
371
|
class: "bb:fill-current bb:w-2 bb:h-2",
|
|
372
372
|
viewBox: "0 0 120 120"
|
|
373
373
|
}, [a("circle", {
|
|
@@ -376,8 +376,8 @@ function Ae(e, t, n, r, o, s) {
|
|
|
376
376
|
r: "45"
|
|
377
377
|
})], -1)]], 2);
|
|
378
378
|
}
|
|
379
|
-
var
|
|
380
|
-
components: { Dot:
|
|
379
|
+
var j = /*#__PURE__*/ A(Ae, [["render", je]]), Me = {
|
|
380
|
+
components: { Dot: j },
|
|
381
381
|
props: {
|
|
382
382
|
text: {
|
|
383
383
|
type: String,
|
|
@@ -392,45 +392,45 @@ var A = /*#__PURE__*/ k(ke, [["render", Ae]]), je = {
|
|
|
392
392
|
default: !1
|
|
393
393
|
}
|
|
394
394
|
}
|
|
395
|
-
},
|
|
396
|
-
function
|
|
397
|
-
let l =
|
|
398
|
-
return
|
|
395
|
+
}, Ne = { class: "bb:flex bb:h-6 bb:px-3 bb:bg-white bb:items-center bb:justify-between" }, Pe = ["textContent"];
|
|
396
|
+
function Fe(e, t, n, r, o, s) {
|
|
397
|
+
let l = g("dot");
|
|
398
|
+
return p(), i("div", Ne, [
|
|
399
399
|
a("div", {
|
|
400
400
|
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",
|
|
401
|
-
textContent:
|
|
402
|
-
}, null, 8,
|
|
403
|
-
|
|
401
|
+
textContent: y(n.text)
|
|
402
|
+
}, null, 8, Pe),
|
|
403
|
+
C(c(l, {
|
|
404
404
|
color: "red",
|
|
405
405
|
"with-pulse": !0,
|
|
406
406
|
class: "bb:ml-3"
|
|
407
|
-
}, null, 512), [[
|
|
408
|
-
|
|
407
|
+
}, null, 512), [[x, n.isLoading]]),
|
|
408
|
+
C(c(l, {
|
|
409
409
|
color: "red",
|
|
410
410
|
class: "bb:ml-3"
|
|
411
|
-
}, null, 512), [[
|
|
411
|
+
}, null, 512), [[x, n.isRequired]])
|
|
412
412
|
]);
|
|
413
413
|
}
|
|
414
|
-
var
|
|
415
|
-
inject:
|
|
414
|
+
var M = /*#__PURE__*/ A(Me, [["render", Fe]]), N = {
|
|
415
|
+
inject: be,
|
|
416
416
|
props: { lang: {
|
|
417
417
|
type: String,
|
|
418
418
|
default: null,
|
|
419
|
-
validator: (e) => e === null ||
|
|
419
|
+
validator: (e) => e === null || ae(e)
|
|
420
420
|
} },
|
|
421
421
|
computed: {
|
|
422
422
|
resolvedLang() {
|
|
423
|
-
return
|
|
423
|
+
return ae(this.lang) ? this.lang : this.uiSettings.lang;
|
|
424
424
|
},
|
|
425
425
|
texts() {
|
|
426
|
-
return
|
|
426
|
+
return oe[this.resolvedLang];
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
|
-
},
|
|
429
|
+
}, Ie = [
|
|
430
430
|
{ transform: "scale(1)" },
|
|
431
431
|
{ transform: "scale(0.8)" },
|
|
432
432
|
{ transform: "scale(1)" }
|
|
433
|
-
],
|
|
433
|
+
], Le = 150, Re = {
|
|
434
434
|
created() {
|
|
435
435
|
this.isPressing = !1, this.isUnmounted = !1;
|
|
436
436
|
},
|
|
@@ -438,40 +438,40 @@ var j = /*#__PURE__*/ k(je, [["render", Pe]]), M = {
|
|
|
438
438
|
this.isUnmounted = !0;
|
|
439
439
|
},
|
|
440
440
|
methods: { press() {
|
|
441
|
-
this.isPressing || (this.isPressing = !0,
|
|
441
|
+
this.isPressing || (this.isPressing = !0, ze(this.$el).then(() => {
|
|
442
442
|
this.isPressing = !1, this.isUnmounted || this.$emit("clicked");
|
|
443
443
|
}));
|
|
444
444
|
} }
|
|
445
445
|
};
|
|
446
|
-
function
|
|
447
|
-
if (typeof e.animate != "function" ||
|
|
446
|
+
function ze(e) {
|
|
447
|
+
if (typeof e.animate != "function" || Be()) return Promise.resolve();
|
|
448
448
|
let t = () => {};
|
|
449
|
-
return e.animate(
|
|
450
|
-
duration:
|
|
449
|
+
return e.animate(Ie, {
|
|
450
|
+
duration: Le,
|
|
451
451
|
easing: "ease-out"
|
|
452
452
|
}).finished.then(t, t);
|
|
453
453
|
}
|
|
454
|
-
function
|
|
454
|
+
function Be() {
|
|
455
455
|
return typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
456
456
|
}
|
|
457
457
|
//#endregion
|
|
458
458
|
//#region src/components/CrossButton.vue
|
|
459
|
-
var
|
|
460
|
-
mixins: [
|
|
459
|
+
var Ve = {
|
|
460
|
+
mixins: [N, Re],
|
|
461
461
|
props: { size: {
|
|
462
462
|
type: String,
|
|
463
463
|
required: !0,
|
|
464
464
|
validator: (e) => ["small", "large"].includes(e)
|
|
465
465
|
} },
|
|
466
466
|
emits: ["clicked"]
|
|
467
|
-
},
|
|
468
|
-
function
|
|
469
|
-
return
|
|
467
|
+
}, He = { class: "bb:sr-only bb:pointer-events-none bb:cursor-default" }, Ue = { class: "bb:flex bb:rounded-md bb:group-focus-visible:focus-ring bb:pointer-events-none bb:cursor-default" };
|
|
468
|
+
function We(e, t, n, r, o, c) {
|
|
469
|
+
return p(), i("button", {
|
|
470
470
|
type: "button",
|
|
471
471
|
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",
|
|
472
|
-
onClick: t[0] ||=
|
|
473
|
-
}, [a("span",
|
|
474
|
-
class:
|
|
472
|
+
onClick: t[0] ||= T((...t) => e.press && e.press(...t), ["prevent"])
|
|
473
|
+
}, [a("span", He, [h(e.$slots, "default", {}, () => [s(y(e.texts.clear), 1)])]), a("span", Ue, [(p(), i("svg", {
|
|
474
|
+
class: d(["bb:stroke-current bb:pointer-events-none bb:cursor-default", {
|
|
475
475
|
"bb:w-6 bb:h-6": n.size === "small",
|
|
476
476
|
"bb:w-8 bb:h-8": n.size === "large"
|
|
477
477
|
}]),
|
|
@@ -485,24 +485,24 @@ function Ue(e, t, n, r, s, c) {
|
|
|
485
485
|
d: "M6 18L18 6M6 6l12 12"
|
|
486
486
|
}, null, -1)]], 2))])]);
|
|
487
487
|
}
|
|
488
|
-
var
|
|
489
|
-
function
|
|
488
|
+
var P = /*#__PURE__*/ A(Ve, [["render", We]]), Ge = 10;
|
|
489
|
+
function Ke(e) {
|
|
490
490
|
let t = e.replace(/\D/g, "");
|
|
491
|
-
return (t.startsWith("7") || t.startsWith("8")) && t[1] === "9" && (t = t.slice(1)), t.slice(0,
|
|
491
|
+
return (t.startsWith("7") || t.startsWith("8")) && t[1] === "9" && (t = t.slice(1)), t.slice(0, Ge);
|
|
492
492
|
}
|
|
493
|
-
function
|
|
493
|
+
function F(e) {
|
|
494
494
|
return e === "" ? "" : `7${e}`;
|
|
495
495
|
}
|
|
496
|
-
function
|
|
496
|
+
function I(e) {
|
|
497
497
|
let t = e ?? "", n = t.startsWith("+") ? t.slice(1) : t;
|
|
498
498
|
return n.startsWith("7") ? n.slice(1) : n;
|
|
499
499
|
}
|
|
500
500
|
//#endregion
|
|
501
501
|
//#region src/components/RussianMobileFilter.vue
|
|
502
|
-
var
|
|
502
|
+
var qe = 400, Je = 3, Ye = {
|
|
503
503
|
components: {
|
|
504
|
-
ElementHeader:
|
|
505
|
-
CrossButton:
|
|
504
|
+
ElementHeader: M,
|
|
505
|
+
CrossButton: P
|
|
506
506
|
},
|
|
507
507
|
emits: ["update:modelValue", "changed"],
|
|
508
508
|
props: {
|
|
@@ -524,10 +524,10 @@ var Ke = 400, qe = 3, Je = {
|
|
|
524
524
|
}
|
|
525
525
|
},
|
|
526
526
|
data() {
|
|
527
|
-
return { digits:
|
|
527
|
+
return { digits: I(this.modelValue) };
|
|
528
528
|
},
|
|
529
529
|
created() {
|
|
530
|
-
this.mask = null, this.debounceTimer = null, this.isWritingProgrammatically = !1, this.lastCommitted =
|
|
530
|
+
this.mask = null, this.debounceTimer = null, this.isWritingProgrammatically = !1, this.lastCommitted = I(this.modelValue), this.isUnmounted = !1;
|
|
531
531
|
},
|
|
532
532
|
mounted() {
|
|
533
533
|
this.mask = re(this.$refs.input, {
|
|
@@ -535,21 +535,21 @@ var Ke = 400, qe = 3, Je = {
|
|
|
535
535
|
lazy: !0,
|
|
536
536
|
prepare: (e, t) => t.unmaskedValue === "" && (e === "7" || e === "8") ? "" : e
|
|
537
537
|
}), this.mask.on("accept", () => {
|
|
538
|
-
this.isWritingProgrammatically || (this.digits = this.mask.unmaskedValue, this.$emit("update:modelValue",
|
|
538
|
+
this.isWritingProgrammatically || (this.digits = this.mask.unmaskedValue, this.$emit("update:modelValue", F(this.digits)), this.scheduleCommit());
|
|
539
539
|
}), this.syncFromModelValue(this.modelValue);
|
|
540
540
|
},
|
|
541
541
|
beforeUnmount() {
|
|
542
542
|
this.isUnmounted = !0, clearTimeout(this.debounceTimer), this.mask?.destroy();
|
|
543
543
|
},
|
|
544
544
|
watch: { modelValue(e) {
|
|
545
|
-
e !==
|
|
545
|
+
e !== F(this.digits) && this.syncFromModelValue(e);
|
|
546
546
|
} },
|
|
547
547
|
methods: {
|
|
548
548
|
syncFromModelValue(e) {
|
|
549
|
-
this.writeToMask(
|
|
549
|
+
this.writeToMask(I(e)), this.digits = this.mask.unmaskedValue, this.lastCommitted = this.digits;
|
|
550
550
|
},
|
|
551
551
|
applyUserDigits(e) {
|
|
552
|
-
this.writeToMask(e), this.digits = this.mask.unmaskedValue, this.$emit("update:modelValue",
|
|
552
|
+
this.writeToMask(e), this.digits = this.mask.unmaskedValue, this.$emit("update:modelValue", F(this.digits));
|
|
553
553
|
},
|
|
554
554
|
writeToMask(e) {
|
|
555
555
|
if (this.isWritingProgrammatically = !0, e === "") this.mask.value = "";
|
|
@@ -572,7 +572,7 @@ var Ke = 400, qe = 3, Je = {
|
|
|
572
572
|
this.isUnmounted || (this.setLazy(!0), this.digits === "" && this.writeToMask(""), this.commit());
|
|
573
573
|
},
|
|
574
574
|
onPaste(e) {
|
|
575
|
-
this.applyUserDigits(
|
|
575
|
+
this.applyUserDigits(Ke(e.clipboardData?.getData("text") ?? "")), this.scheduleCommit();
|
|
576
576
|
},
|
|
577
577
|
moveFocusFromEraser() {
|
|
578
578
|
let e = this.$refs.eraser.$el;
|
|
@@ -586,16 +586,16 @@ var Ke = 400, qe = 3, Je = {
|
|
|
586
586
|
this.commit();
|
|
587
587
|
return;
|
|
588
588
|
}
|
|
589
|
-
this.digits.length <
|
|
589
|
+
this.digits.length < Je || (this.debounceTimer = setTimeout(() => this.commit(), qe));
|
|
590
590
|
},
|
|
591
591
|
commit() {
|
|
592
592
|
clearTimeout(this.debounceTimer), this.digits !== this.lastCommitted && (this.lastCommitted = this.digits, this.$emit("changed"));
|
|
593
593
|
}
|
|
594
594
|
}
|
|
595
|
-
},
|
|
596
|
-
function
|
|
597
|
-
let l =
|
|
598
|
-
return
|
|
595
|
+
}, Xe = { class: "bb-dashboard-ui bb:flex bb:flex-none" }, Ze = { class: "bb:flex bb:w-full bb:flex-col bb:border bb:border-white bb:bg-white" }, Qe = { class: "bb:relative bb:flex bb:h-full bb:w-full" }, $e = { class: "bb:flex bb:w-full bb:h-full bb:items-center bb:justify-center" };
|
|
596
|
+
function et(e, t, n, r, o, s) {
|
|
597
|
+
let l = g("element-header"), u = g("cross-button");
|
|
598
|
+
return p(), i("div", Xe, [a("div", Ze, [c(l, {
|
|
599
599
|
text: n.header,
|
|
600
600
|
"is-required": n.isRequired,
|
|
601
601
|
"is-loading": n.isLoading
|
|
@@ -603,28 +603,28 @@ function $e(e, t, n, r, o, c) {
|
|
|
603
603
|
"text",
|
|
604
604
|
"is-required",
|
|
605
605
|
"is-loading"
|
|
606
|
-
]), a("div",
|
|
606
|
+
]), a("div", Qe, [a("label", $e, [a("input", {
|
|
607
607
|
ref: "input",
|
|
608
608
|
type: "tel",
|
|
609
609
|
inputmode: "tel",
|
|
610
610
|
autocomplete: "off",
|
|
611
611
|
class: "bb:flex bb:w-phone bb:h-full bb:px-3 bb:py-2 bb:cursor-pointer bb:truncate bb:focus:focus-ring bb:border-none",
|
|
612
|
-
onFocus: t[0] ||= (...e) =>
|
|
613
|
-
onBlur: t[1] ||= (...e) =>
|
|
614
|
-
onKeydown: t[2] ||=
|
|
615
|
-
onPaste: t[3] ||=
|
|
616
|
-
}, null, 544)]),
|
|
612
|
+
onFocus: t[0] ||= (...e) => s.onFocus && s.onFocus(...e),
|
|
613
|
+
onBlur: t[1] ||= (...e) => s.onBlur && s.onBlur(...e),
|
|
614
|
+
onKeydown: t[2] ||= w((...e) => s.commit && s.commit(...e), ["enter"]),
|
|
615
|
+
onPaste: t[3] ||= T((...e) => s.onPaste && s.onPaste(...e), ["prevent"])
|
|
616
|
+
}, null, 544)]), C(c(u, {
|
|
617
617
|
ref: "eraser",
|
|
618
618
|
size: "small",
|
|
619
|
-
onMousedown: t[4] ||=
|
|
620
|
-
onClicked:
|
|
619
|
+
onMousedown: t[4] ||= T(() => {}, ["prevent"]),
|
|
620
|
+
onClicked: s.clear,
|
|
621
621
|
class: "bb:absolute bb:right-0 bb:top-0 bb:pr-2 bb:h-full"
|
|
622
|
-
}, null, 8, ["onClicked"]), [[
|
|
622
|
+
}, null, 8, ["onClicked"]), [[x, o.digits.length > 0]])])])]);
|
|
623
623
|
}
|
|
624
|
-
var
|
|
624
|
+
var tt = /*#__PURE__*/ A(Ye, [["render", et]]), nt = {
|
|
625
625
|
components: {
|
|
626
|
-
ElementHeader:
|
|
627
|
-
CrossButton:
|
|
626
|
+
ElementHeader: M,
|
|
627
|
+
CrossButton: P
|
|
628
628
|
},
|
|
629
629
|
emits: ["update:modelValue", "changed"],
|
|
630
630
|
props: {
|
|
@@ -666,10 +666,10 @@ var et = /*#__PURE__*/ k(Je, [["render", $e]]), tt = {
|
|
|
666
666
|
this.$emit("update:modelValue", this.search), this.$emit("changed");
|
|
667
667
|
}
|
|
668
668
|
}
|
|
669
|
-
},
|
|
670
|
-
function
|
|
671
|
-
let l =
|
|
672
|
-
return
|
|
669
|
+
}, rt = { class: "bb-dashboard-ui bb:flex bb:flex-none" }, it = { class: "bb:flex bb:w-full bb:flex-col bb:border bb:border-white bb:bg-white" }, at = { class: "bb:relative bb:flex bb:h-full bb:w-full" }, ot = { class: "bb:flex bb:w-full bb:h-full bb:items-center bb:justify-center" };
|
|
670
|
+
function st(e, t, n, r, o, s) {
|
|
671
|
+
let l = g("element-header"), u = g("cross-button");
|
|
672
|
+
return p(), i("div", rt, [a("div", it, [c(l, {
|
|
673
673
|
text: n.header,
|
|
674
674
|
"is-required": n.isRequired,
|
|
675
675
|
"is-loading": n.isLoading
|
|
@@ -677,51 +677,57 @@ function ot(e, t, n, r, o, c) {
|
|
|
677
677
|
"text",
|
|
678
678
|
"is-required",
|
|
679
679
|
"is-loading"
|
|
680
|
-
]), a("div",
|
|
680
|
+
]), a("div", at, [a("label", ot, [C(a("input", {
|
|
681
681
|
ref: "input",
|
|
682
682
|
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",
|
|
683
683
|
"onUpdate:modelValue": t[0] ||= (e) => o.search = e,
|
|
684
|
-
onInput: t[1] ||= (...e) =>
|
|
684
|
+
onInput: t[1] ||= (...e) => s.startSearch && s.startSearch(...e)
|
|
685
685
|
}, null, 544), [[
|
|
686
686
|
te,
|
|
687
687
|
o.search,
|
|
688
688
|
void 0,
|
|
689
689
|
{ trim: !0 }
|
|
690
|
-
]])]),
|
|
690
|
+
]])]), C(c(u, {
|
|
691
691
|
ref: "eraser",
|
|
692
692
|
size: "small",
|
|
693
|
-
onClicked:
|
|
693
|
+
onClicked: s.clearInput,
|
|
694
694
|
class: "bb:absolute bb:right-0 bb:top-0 bb:pr-2 bb:h-full"
|
|
695
|
-
}, null, 8, ["onClicked"]), [[
|
|
695
|
+
}, null, 8, ["onClicked"]), [[x, s.inputNeedsEraser]])])])]);
|
|
696
696
|
}
|
|
697
|
-
var
|
|
698
|
-
function
|
|
697
|
+
var ct = /*#__PURE__*/ A(nt, [["render", st]]), L = 4, R = 8;
|
|
698
|
+
function lt(e) {
|
|
699
699
|
return typeof e?.showPopover == "function";
|
|
700
700
|
}
|
|
701
|
-
function
|
|
702
|
-
return
|
|
701
|
+
function z(e) {
|
|
702
|
+
return lt(e) && e.matches(":popover-open");
|
|
703
703
|
}
|
|
704
|
-
function
|
|
705
|
-
let
|
|
704
|
+
function B(e, t, { maxWidth: n = null, align: r = "end", fitsBelow: i = !0, fitsRight: a = !0, shift: o = !1, popoverWidth: s = 0 } = {}) {
|
|
705
|
+
let c = e.getBoundingClientRect(), l = document.documentElement.clientWidth, u = document.documentElement.clientHeight, d = Math.max(R, c.left), f = Math.max(R, l - c.right), p = Math.max(0, l - d - R), m = Math.max(0, l - f - R), h = r === "start" && (a || p >= m), g = Math.max(0, u - c.bottom - L - R), _ = Math.max(0, c.top - L - R), v = i || g >= _, y = "";
|
|
706
706
|
if (r === "start") {
|
|
707
|
-
let e =
|
|
708
|
-
|
|
709
|
-
} else n !== null && (
|
|
707
|
+
let e = h ? p : m;
|
|
708
|
+
y = `${n === null ? e : Math.min(n, e)}px`;
|
|
709
|
+
} else o ? y = `${Math.max(0, l - 16)}px` : n !== null && (y = `${Math.min(n, m)}px`);
|
|
710
|
+
let b = o ? Math.max(R, Math.min(f, l - R - s)) : f;
|
|
710
711
|
Object.assign(t.style, {
|
|
711
|
-
top:
|
|
712
|
-
bottom:
|
|
713
|
-
right:
|
|
714
|
-
left:
|
|
715
|
-
maxHeight: `${
|
|
716
|
-
maxWidth:
|
|
712
|
+
top: v ? `${c.bottom + L}px` : "auto",
|
|
713
|
+
bottom: v ? "auto" : `${u - c.top + L}px`,
|
|
714
|
+
right: h ? "auto" : `${b}px`,
|
|
715
|
+
left: h ? `${d}px` : "auto",
|
|
716
|
+
maxHeight: `${v ? g : _}px`,
|
|
717
|
+
maxWidth: y
|
|
717
718
|
});
|
|
718
719
|
}
|
|
719
720
|
function ut(e, t, n = {}) {
|
|
720
721
|
let r = t.scrollHeight <= t.clientHeight + 1, i = t.scrollWidth <= t.clientWidth + 1;
|
|
721
|
-
r
|
|
722
|
+
(!r || !i) && B(e, t, {
|
|
722
723
|
...n,
|
|
723
724
|
fitsBelow: r,
|
|
724
725
|
fitsRight: i
|
|
726
|
+
}), n.shift && B(e, t, {
|
|
727
|
+
...n,
|
|
728
|
+
fitsBelow: r,
|
|
729
|
+
fitsRight: i,
|
|
730
|
+
popoverWidth: t.getBoundingClientRect().width
|
|
725
731
|
});
|
|
726
732
|
}
|
|
727
733
|
function dt(e, t) {
|
|
@@ -786,6 +792,10 @@ var ht = {
|
|
|
786
792
|
type: Number,
|
|
787
793
|
default: null
|
|
788
794
|
},
|
|
795
|
+
shift: {
|
|
796
|
+
type: Boolean,
|
|
797
|
+
default: !1
|
|
798
|
+
},
|
|
789
799
|
arrows: {
|
|
790
800
|
type: Boolean,
|
|
791
801
|
default: !1
|
|
@@ -833,8 +843,8 @@ var ht = {
|
|
|
833
843
|
},
|
|
834
844
|
setup() {
|
|
835
845
|
return {
|
|
836
|
-
buttonId:
|
|
837
|
-
panelId:
|
|
846
|
+
buttonId: b(),
|
|
847
|
+
panelId: b()
|
|
838
848
|
};
|
|
839
849
|
},
|
|
840
850
|
data() {
|
|
@@ -867,11 +877,11 @@ var ht = {
|
|
|
867
877
|
methods: {
|
|
868
878
|
applyPanelState() {
|
|
869
879
|
let e = this.$refs.panel;
|
|
870
|
-
|
|
880
|
+
lt(e) && e.isConnected && (this.panelIsOpen && !z(e) && e.showPopover(), !this.panelIsOpen && z(e) && e.hidePopover());
|
|
871
881
|
},
|
|
872
882
|
close() {
|
|
873
883
|
let e = this.$refs.panel;
|
|
874
|
-
|
|
884
|
+
z(e) && e.hidePopover();
|
|
875
885
|
},
|
|
876
886
|
reportPanelShown(e) {
|
|
877
887
|
this.panelShown !== e && (this.panelShown = e, this.$emit("toggle", e));
|
|
@@ -883,11 +893,12 @@ var ht = {
|
|
|
883
893
|
if (e.newState === "open") {
|
|
884
894
|
let e = document.getElementById(this.buttonId), t = {
|
|
885
895
|
maxWidth: this.maxWidth,
|
|
886
|
-
align: this.align
|
|
896
|
+
align: this.align,
|
|
897
|
+
shift: this.shift
|
|
887
898
|
};
|
|
888
|
-
this.$refs.panel.style.minWidth = "", this.$refs.panel.style.minHeight = "", this.$refs.panel.style.scrollbarGutter = "",
|
|
899
|
+
this.$refs.panel.style.minWidth = "", this.$refs.panel.style.minHeight = "", this.$refs.panel.style.scrollbarGutter = "", B(e, this.$refs.panel, t), requestAnimationFrame(() => {
|
|
889
900
|
let n = this.$refs.panel;
|
|
890
|
-
if (
|
|
901
|
+
if (z(n) && (ut(e, n, t), this.keepSize)) {
|
|
891
902
|
n.scrollHeight > n.clientHeight + 1 && (n.style.scrollbarGutter = "stable");
|
|
892
903
|
let e = n.getBoundingClientRect();
|
|
893
904
|
n.style.minWidth = `${e.width}px`, n.style.top === "auto" && (n.style.minHeight = `${e.height}px`);
|
|
@@ -900,7 +911,7 @@ var ht = {
|
|
|
900
911
|
},
|
|
901
912
|
onToggle() {
|
|
902
913
|
this.stopListening();
|
|
903
|
-
let e = this.$refs.panel, t =
|
|
914
|
+
let e = this.$refs.panel, t = z(e);
|
|
904
915
|
t && (this.stopClosing = dt(e, this.close), this.arrows && (this.stopArrows = pt(e, this.findSelected, this.findStops)), this.findTabStops !== null && (this.stopTab = mt(this.findTabStops))), t || this.restoreFocus(e), this.reportPanelShown(t), t !== this.panelIsOpen && (this.panelIsOpen = t, this.$emit("update:modelValue", t));
|
|
905
916
|
},
|
|
906
917
|
restoreFocus(e) {
|
|
@@ -925,14 +936,14 @@ var ht = {
|
|
|
925
936
|
"tabindex"
|
|
926
937
|
];
|
|
927
938
|
function vt(e, t, n, o, s, c) {
|
|
928
|
-
return n.hasContent ? (
|
|
939
|
+
return n.hasContent ? (p(), i("span", gt, [h(e.$slots, "trigger", {
|
|
929
940
|
id: o.buttonId,
|
|
930
941
|
popovertarget: o.panelId
|
|
931
942
|
}), a("div", {
|
|
932
943
|
ref: "panel",
|
|
933
944
|
id: o.panelId,
|
|
934
945
|
popover: "auto",
|
|
935
|
-
class:
|
|
946
|
+
class: d(["bb:m-0 bb:inset-auto", n.panelClass]),
|
|
936
947
|
role: n.panelRole,
|
|
937
948
|
"aria-orientation": n.panelRole === "menu" ? "vertical" : null,
|
|
938
949
|
"aria-labelledby": n.panelLabel === null ? o.buttonId : null,
|
|
@@ -941,9 +952,9 @@ function vt(e, t, n, o, s, c) {
|
|
|
941
952
|
onBeforetoggle: t[0] ||= (...e) => c.onBeforeToggle && c.onBeforeToggle(...e),
|
|
942
953
|
onToggle: t[1] ||= (...e) => c.onToggle && c.onToggle(...e),
|
|
943
954
|
onClick: t[2] ||= (...e) => c.onClick && c.onClick(...e)
|
|
944
|
-
}, [
|
|
955
|
+
}, [h(e.$slots, "default")], 42, _t)])) : r("", !0);
|
|
945
956
|
}
|
|
946
|
-
var
|
|
957
|
+
var V = /*#__PURE__*/ A(ht, [["render", vt]]);
|
|
947
958
|
//#endregion
|
|
948
959
|
//#region src/date.js
|
|
949
960
|
function yt(e) {
|
|
@@ -1010,10 +1021,10 @@ function At(e, t) {
|
|
|
1010
1021
|
//#region src/components/SelectDate.vue
|
|
1011
1022
|
var jt = {
|
|
1012
1023
|
components: {
|
|
1013
|
-
PopoverPanel:
|
|
1014
|
-
CrossButton:
|
|
1024
|
+
PopoverPanel: V,
|
|
1025
|
+
CrossButton: P
|
|
1015
1026
|
},
|
|
1016
|
-
mixins: [
|
|
1027
|
+
mixins: [N],
|
|
1017
1028
|
emits: ["update:modelValue", "changed"],
|
|
1018
1029
|
props: {
|
|
1019
1030
|
modelValue: {
|
|
@@ -1031,6 +1042,10 @@ var jt = {
|
|
|
1031
1042
|
labelledBy: {
|
|
1032
1043
|
type: String,
|
|
1033
1044
|
default: null
|
|
1045
|
+
},
|
|
1046
|
+
describedBy: {
|
|
1047
|
+
type: String,
|
|
1048
|
+
default: null
|
|
1034
1049
|
}
|
|
1035
1050
|
},
|
|
1036
1051
|
created() {
|
|
@@ -1118,19 +1133,21 @@ var jt = {
|
|
|
1118
1133
|
}, Mt = { class: "bb-dashboard-ui bb:flex bb:flex-col" }, Nt = { class: "bb:relative bb:flex bb:h-full" }, Pt = [
|
|
1119
1134
|
"id",
|
|
1120
1135
|
"popovertarget",
|
|
1121
|
-
"aria-labelledby"
|
|
1136
|
+
"aria-labelledby",
|
|
1137
|
+
"aria-describedby"
|
|
1122
1138
|
], Ft = ["textContent"], It = { class: "bb:flex bb:w-full bb:items-center bb:leading-none bb:min-w-24 bb:pointer-events-none" }, Lt = [
|
|
1123
1139
|
"disabled",
|
|
1124
1140
|
"value",
|
|
1125
1141
|
"placeholder",
|
|
1126
|
-
"aria-labelledby"
|
|
1142
|
+
"aria-labelledby",
|
|
1143
|
+
"aria-describedby"
|
|
1127
1144
|
], Rt = {
|
|
1128
1145
|
ref: "container",
|
|
1129
1146
|
class: "bb:flex"
|
|
1130
1147
|
};
|
|
1131
|
-
function zt(e, t, o,
|
|
1132
|
-
let d =
|
|
1133
|
-
return
|
|
1148
|
+
function zt(e, t, o, s, l, u) {
|
|
1149
|
+
let d = g("popover-panel"), f = g("cross-button");
|
|
1150
|
+
return p(), i("div", Mt, [a("div", Nt, [c(d, {
|
|
1134
1151
|
class: "bb:flex bb:w-full",
|
|
1135
1152
|
modelValue: l.popupIsOpen,
|
|
1136
1153
|
"onUpdate:modelValue": t[1] ||= (e) => l.popupIsOpen = e,
|
|
@@ -1138,16 +1155,17 @@ function zt(e, t, o, c, l, u) {
|
|
|
1138
1155
|
"return-focus": "",
|
|
1139
1156
|
"panel-class": "bb:bg-white bb:border bb:border-gray-200 bb:rounded-md bb:shadow-lg"
|
|
1140
1157
|
}, {
|
|
1141
|
-
trigger:
|
|
1158
|
+
trigger: S((e) => [a("button", {
|
|
1142
1159
|
ref: "trigger",
|
|
1143
1160
|
type: "button",
|
|
1144
1161
|
id: e.id,
|
|
1145
1162
|
popovertarget: e.popovertarget,
|
|
1146
1163
|
"aria-labelledby": o.labelledBy ? o.labelledBy + " " + e.id : null,
|
|
1164
|
+
"aria-describedby": o.describedBy,
|
|
1147
1165
|
class: "bb:absolute bb:inset-0 bb:cursor-pointer bb:focus-visible:focus-ring bb:rounded-[var(--bb-field-radius,0)]"
|
|
1148
1166
|
}, [a("span", {
|
|
1149
1167
|
class: "bb:sr-only bb:pointer-events-none bb:cursor-default",
|
|
1150
|
-
textContent:
|
|
1168
|
+
textContent: y(u.triggerLabel)
|
|
1151
1169
|
}, null, 8, Ft)], 8, Pt), a("label", It, [a("input", {
|
|
1152
1170
|
disabled: l.popupIsOpen,
|
|
1153
1171
|
ref: "field",
|
|
@@ -1156,11 +1174,12 @@ function zt(e, t, o, c, l, u) {
|
|
|
1156
1174
|
value: l.dayValue,
|
|
1157
1175
|
placeholder: o.placeholderText,
|
|
1158
1176
|
"aria-labelledby": o.labelledBy || null,
|
|
1177
|
+
"aria-describedby": o.describedBy,
|
|
1159
1178
|
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)]"
|
|
1160
1179
|
}, null, 40, Lt)])]),
|
|
1161
|
-
default:
|
|
1180
|
+
default: S(() => [a("div", Rt, null, 512)]),
|
|
1162
1181
|
_: 1
|
|
1163
|
-
}, 8, ["modelValue"]), u.needsEraser ? (
|
|
1182
|
+
}, 8, ["modelValue"]), u.needsEraser ? (p(), n(f, {
|
|
1164
1183
|
key: 0,
|
|
1165
1184
|
ref: "eraser",
|
|
1166
1185
|
size: "small",
|
|
@@ -1169,10 +1188,10 @@ function zt(e, t, o, c, l, u) {
|
|
|
1169
1188
|
lang: e.resolvedLang
|
|
1170
1189
|
}, null, 8, ["onClicked", "lang"])) : r("", !0)])]);
|
|
1171
1190
|
}
|
|
1172
|
-
var
|
|
1191
|
+
var H = /*#__PURE__*/ A(jt, [["render", zt]]), Bt = {
|
|
1173
1192
|
components: {
|
|
1174
|
-
ElementHeader:
|
|
1175
|
-
SelectDate:
|
|
1193
|
+
ElementHeader: M,
|
|
1194
|
+
SelectDate: H
|
|
1176
1195
|
},
|
|
1177
1196
|
emits: ["update:modelValue", "changed"],
|
|
1178
1197
|
props: {
|
|
@@ -1198,9 +1217,9 @@ var B = /*#__PURE__*/ k(jt, [["render", zt]]), Bt = {
|
|
|
1198
1217
|
}
|
|
1199
1218
|
}
|
|
1200
1219
|
}, Vt = { class: "bb-dashboard-ui bb:flex bb:w-fit bb:h-18 bb:border bb:border-gray-200" }, Ht = { class: "bb:flex bb:border bb:border-white" }, Ut = { class: "bb:flex bb:flex-col bb:w-36 bb:bg-white bb:h-full" };
|
|
1201
|
-
function Wt(e, t, n, r, o,
|
|
1202
|
-
let l =
|
|
1203
|
-
return
|
|
1220
|
+
function Wt(e, t, n, r, o, s) {
|
|
1221
|
+
let l = g("element-header"), u = g("select-date");
|
|
1222
|
+
return p(), i("div", Vt, [a("div", Ht, [a("div", Ut, [c(l, {
|
|
1204
1223
|
text: n.header ?? "",
|
|
1205
1224
|
"is-required": n.isRequired,
|
|
1206
1225
|
"is-loading": n.isLoading
|
|
@@ -1208,7 +1227,7 @@ function Wt(e, t, n, r, o, c) {
|
|
|
1208
1227
|
"text",
|
|
1209
1228
|
"is-required",
|
|
1210
1229
|
"is-loading"
|
|
1211
|
-
]),
|
|
1230
|
+
]), c(u, {
|
|
1212
1231
|
class: "bb:flex-1",
|
|
1213
1232
|
"model-value": n.modelValue,
|
|
1214
1233
|
lang: n.lang,
|
|
@@ -1216,11 +1235,30 @@ function Wt(e, t, n, r, o, c) {
|
|
|
1216
1235
|
onChanged: t[1] ||= (t) => e.$emit("changed")
|
|
1217
1236
|
}, null, 8, ["model-value", "lang"])])])]);
|
|
1218
1237
|
}
|
|
1219
|
-
var Gt = /*#__PURE__*/
|
|
1238
|
+
var Gt = /*#__PURE__*/ A(Bt, [["render", Wt]]), U = {
|
|
1239
|
+
props: { description: {
|
|
1240
|
+
type: String,
|
|
1241
|
+
default: null
|
|
1242
|
+
} },
|
|
1243
|
+
methods: {
|
|
1244
|
+
hasDescription() {
|
|
1245
|
+
return this.$slots.description !== void 0 || typeof this.description == "string" && this.description !== "";
|
|
1246
|
+
},
|
|
1247
|
+
descriptionId(e) {
|
|
1248
|
+
return this.hasDescription() ? `${e}-description` : null;
|
|
1249
|
+
}
|
|
1250
|
+
}
|
|
1251
|
+
}, Kt = {}, qt = { 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" };
|
|
1252
|
+
function Jt(e, t, n, r, a, o) {
|
|
1253
|
+
return p(), i("div", qt, [h(e.$slots, "default")]);
|
|
1254
|
+
}
|
|
1255
|
+
var W = /*#__PURE__*/ A(Kt, [["render", Jt]]), Yt = {
|
|
1220
1256
|
components: {
|
|
1221
|
-
Dot:
|
|
1222
|
-
|
|
1257
|
+
Dot: j,
|
|
1258
|
+
FieldDescription: W,
|
|
1259
|
+
SelectDate: H
|
|
1223
1260
|
},
|
|
1261
|
+
mixins: [U],
|
|
1224
1262
|
emits: ["update:modelValue", "changed"],
|
|
1225
1263
|
props: {
|
|
1226
1264
|
modelValue: {
|
|
@@ -1241,34 +1279,46 @@ var Gt = /*#__PURE__*/ k(Bt, [["render", Wt]]), Kt = {
|
|
|
1241
1279
|
}
|
|
1242
1280
|
},
|
|
1243
1281
|
setup() {
|
|
1244
|
-
return { labelId:
|
|
1282
|
+
return { labelId: b() };
|
|
1245
1283
|
}
|
|
1246
|
-
},
|
|
1247
|
-
function
|
|
1248
|
-
let
|
|
1249
|
-
return
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
"
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1284
|
+
}, Xt = { class: "bb-dashboard-ui" }, Zt = { class: "bb:flex bb:items-center" }, Qt = ["id", "textContent"], $t = { class: "bb:mt-1 bb:flex bb:h-9.5 bb:w-full bb:rounded-md bb:border bb:border-gray-300 bb:bg-white bb:shadow-xs bb:text-sm bb:[--bb-field-radius:0.375rem]" };
|
|
1285
|
+
function en(e, t, o, l, u, d) {
|
|
1286
|
+
let f = g("dot"), m = g("select-date"), _ = g("field-description");
|
|
1287
|
+
return p(), i("div", Xt, [
|
|
1288
|
+
a("div", Zt, [a("span", {
|
|
1289
|
+
id: l.labelId,
|
|
1290
|
+
class: "bb:block bb:text-sm bb:font-medium bb:leading-5 bb:text-gray-700",
|
|
1291
|
+
textContent: y(o.label ?? "")
|
|
1292
|
+
}, null, 8, Qt), C(c(f, {
|
|
1293
|
+
color: "red",
|
|
1294
|
+
class: "bb:ml-2"
|
|
1295
|
+
}, null, 512), [[x, o.isRequired]])]),
|
|
1296
|
+
a("div", $t, [c(m, {
|
|
1297
|
+
class: "bb:flex-1",
|
|
1298
|
+
"model-value": o.modelValue,
|
|
1299
|
+
"labelled-by": l.labelId,
|
|
1300
|
+
"described-by": e.descriptionId(l.labelId),
|
|
1301
|
+
lang: o.lang,
|
|
1302
|
+
"onUpdate:modelValue": t[0] ||= (t) => e.$emit("update:modelValue", t),
|
|
1303
|
+
onChanged: t[1] ||= (t) => e.$emit("changed")
|
|
1304
|
+
}, null, 8, [
|
|
1305
|
+
"model-value",
|
|
1306
|
+
"labelled-by",
|
|
1307
|
+
"described-by",
|
|
1308
|
+
"lang"
|
|
1309
|
+
])]),
|
|
1310
|
+
e.hasDescription() ? (p(), n(_, {
|
|
1311
|
+
key: 0,
|
|
1312
|
+
id: e.descriptionId(l.labelId)
|
|
1313
|
+
}, {
|
|
1314
|
+
default: S(() => [h(e.$slots, "description", {}, () => [s(y(e.description), 1)])]),
|
|
1315
|
+
_: 3
|
|
1316
|
+
}, 8, ["id"])) : r("", !0)
|
|
1317
|
+
]);
|
|
1268
1318
|
}
|
|
1269
|
-
var
|
|
1319
|
+
var tn = /*#__PURE__*/ A(Yt, [["render", en]]), nn = {
|
|
1270
1320
|
inheritAttrs: !1,
|
|
1271
|
-
mixins: [
|
|
1321
|
+
mixins: [N],
|
|
1272
1322
|
emits: [
|
|
1273
1323
|
"update:dateFrom",
|
|
1274
1324
|
"update:dateTo",
|
|
@@ -1325,17 +1375,17 @@ var Qt = /*#__PURE__*/ k(Kt, [["render", Zt]]), $t = {
|
|
|
1325
1375
|
}
|
|
1326
1376
|
}
|
|
1327
1377
|
};
|
|
1328
|
-
function
|
|
1329
|
-
return
|
|
1378
|
+
function rn(e, t, n, r, i, a) {
|
|
1379
|
+
return h(e.$slots, "default", {
|
|
1330
1380
|
from: a.from,
|
|
1331
1381
|
to: a.to
|
|
1332
1382
|
});
|
|
1333
1383
|
}
|
|
1334
|
-
var
|
|
1384
|
+
var an = /*#__PURE__*/ A(nn, [["render", rn]]), on = {
|
|
1335
1385
|
components: {
|
|
1336
|
-
ElementHeader:
|
|
1337
|
-
SelectDate:
|
|
1338
|
-
SelectDateInterval:
|
|
1386
|
+
ElementHeader: M,
|
|
1387
|
+
SelectDate: H,
|
|
1388
|
+
SelectDateInterval: an
|
|
1339
1389
|
},
|
|
1340
1390
|
emits: [
|
|
1341
1391
|
"update:dateFrom",
|
|
@@ -1368,10 +1418,10 @@ var tn = /*#__PURE__*/ k($t, [["render", en]]), nn = {
|
|
|
1368
1418
|
default: null
|
|
1369
1419
|
}
|
|
1370
1420
|
}
|
|
1371
|
-
},
|
|
1372
|
-
function
|
|
1373
|
-
let l =
|
|
1374
|
-
return
|
|
1421
|
+
}, sn = { class: "bb-dashboard-ui bb:flex bb:w-fit bb:h-18 bb:border bb:border-gray-200" }, cn = { class: "bb:flex bb:border bb:border-white" }, ln = { class: "bb:flex bb:flex-col bb:min-w-72 bb:w-72 bb:bg-white bb:h-full" }, un = { class: "bb:flex bb:h-full bb:divide-x bb:divide-gray-200" };
|
|
1422
|
+
function dn(e, t, n, r, o, s) {
|
|
1423
|
+
let l = g("element-header"), u = g("select-date"), d = g("select-date-interval");
|
|
1424
|
+
return p(), i("div", sn, [a("div", cn, [a("div", ln, [c(l, {
|
|
1375
1425
|
text: n.header ?? "",
|
|
1376
1426
|
"is-required": n.isRequired,
|
|
1377
1427
|
"is-loading": n.isLoading
|
|
@@ -1379,7 +1429,7 @@ function cn(e, t, n, r, o, c) {
|
|
|
1379
1429
|
"text",
|
|
1380
1430
|
"is-required",
|
|
1381
1431
|
"is-loading"
|
|
1382
|
-
]),
|
|
1432
|
+
]), c(d, {
|
|
1383
1433
|
"date-from": n.dateFrom,
|
|
1384
1434
|
"date-to": n.dateTo,
|
|
1385
1435
|
lang: n.lang,
|
|
@@ -1387,7 +1437,7 @@ function cn(e, t, n, r, o, c) {
|
|
|
1387
1437
|
"onUpdate:dateTo": t[1] ||= (t) => e.$emit("update:dateTo", t),
|
|
1388
1438
|
onChanged: t[2] ||= (t) => e.$emit("changed")
|
|
1389
1439
|
}, {
|
|
1390
|
-
default:
|
|
1440
|
+
default: S(({ from: e, to: t }) => [a("div", un, [c(u, {
|
|
1391
1441
|
class: "bb:flex-1 bb:min-w-36",
|
|
1392
1442
|
"model-value": e.value,
|
|
1393
1443
|
"placeholder-text": e.placeholder,
|
|
@@ -1398,7 +1448,7 @@ function cn(e, t, n, r, o, c) {
|
|
|
1398
1448
|
"placeholder-text",
|
|
1399
1449
|
"lang",
|
|
1400
1450
|
"onUpdate:modelValue"
|
|
1401
|
-
]),
|
|
1451
|
+
]), c(u, {
|
|
1402
1452
|
class: "bb:flex-1 bb:min-w-36",
|
|
1403
1453
|
"model-value": t.value,
|
|
1404
1454
|
"placeholder-text": t.placeholder,
|
|
@@ -1417,12 +1467,14 @@ function cn(e, t, n, r, o, c) {
|
|
|
1417
1467
|
"lang"
|
|
1418
1468
|
])])])]);
|
|
1419
1469
|
}
|
|
1420
|
-
var
|
|
1470
|
+
var fn = /*#__PURE__*/ A(on, [["render", dn]]), pn = {
|
|
1421
1471
|
components: {
|
|
1422
|
-
Dot:
|
|
1423
|
-
|
|
1424
|
-
|
|
1472
|
+
Dot: j,
|
|
1473
|
+
FieldDescription: W,
|
|
1474
|
+
SelectDate: H,
|
|
1475
|
+
SelectDateInterval: an
|
|
1425
1476
|
},
|
|
1477
|
+
mixins: [U],
|
|
1426
1478
|
emits: [
|
|
1427
1479
|
"update:dateFrom",
|
|
1428
1480
|
"update:dateTo",
|
|
@@ -1451,61 +1503,72 @@ var ln = /*#__PURE__*/ k(nn, [["render", cn]]), un = {
|
|
|
1451
1503
|
}
|
|
1452
1504
|
},
|
|
1453
1505
|
setup() {
|
|
1454
|
-
return { labelId:
|
|
1506
|
+
return { labelId: b() };
|
|
1455
1507
|
}
|
|
1456
|
-
},
|
|
1457
|
-
function
|
|
1458
|
-
let
|
|
1459
|
-
return
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
"
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1508
|
+
}, mn = { class: "bb-dashboard-ui" }, hn = { class: "bb:flex bb:items-center" }, gn = ["id", "textContent"], _n = ["aria-labelledby", "aria-describedby"], vn = { class: "bb:flex bb:h-9.5 bb:w-full bb:rounded-md bb:border bb:border-gray-300 bb:bg-white bb:shadow-xs bb:text-sm bb:[--bb-field-radius:0.375rem]" }, yn = { class: "bb:flex bb:h-9.5 bb:w-full bb:rounded-md bb:border bb:border-gray-300 bb:bg-white bb:shadow-xs bb:text-sm bb:[--bb-field-radius:0.375rem]" };
|
|
1509
|
+
function bn(e, t, o, l, u, d) {
|
|
1510
|
+
let f = g("dot"), m = g("select-date"), _ = g("select-date-interval"), v = g("field-description");
|
|
1511
|
+
return p(), i("div", mn, [
|
|
1512
|
+
a("div", hn, [a("span", {
|
|
1513
|
+
id: l.labelId,
|
|
1514
|
+
class: "bb:block bb:text-sm bb:font-medium bb:leading-5 bb:text-gray-700",
|
|
1515
|
+
textContent: y(o.label ?? "")
|
|
1516
|
+
}, null, 8, gn), C(c(f, {
|
|
1517
|
+
color: "red",
|
|
1518
|
+
class: "bb:ml-2"
|
|
1519
|
+
}, null, 512), [[x, o.isRequired]])]),
|
|
1520
|
+
a("div", {
|
|
1521
|
+
class: "bb:mt-1 bb:grid bb:grid-cols-2 bb:gap-3",
|
|
1522
|
+
role: "group",
|
|
1523
|
+
"aria-labelledby": l.labelId,
|
|
1524
|
+
"aria-describedby": e.descriptionId(l.labelId)
|
|
1525
|
+
}, [c(_, {
|
|
1526
|
+
"date-from": o.dateFrom,
|
|
1527
|
+
"date-to": o.dateTo,
|
|
1528
|
+
lang: o.lang,
|
|
1529
|
+
"onUpdate:dateFrom": t[0] ||= (t) => e.$emit("update:dateFrom", t),
|
|
1530
|
+
"onUpdate:dateTo": t[1] ||= (t) => e.$emit("update:dateTo", t),
|
|
1531
|
+
onChanged: t[2] ||= (t) => e.$emit("changed")
|
|
1532
|
+
}, {
|
|
1533
|
+
default: S(({ from: e, to: t }) => [a("div", vn, [c(m, {
|
|
1534
|
+
class: "bb:flex-1",
|
|
1535
|
+
"model-value": e.value,
|
|
1536
|
+
"placeholder-text": e.placeholder,
|
|
1537
|
+
lang: o.lang,
|
|
1538
|
+
"onUpdate:modelValue": e.update
|
|
1539
|
+
}, null, 8, [
|
|
1540
|
+
"model-value",
|
|
1541
|
+
"placeholder-text",
|
|
1542
|
+
"lang",
|
|
1543
|
+
"onUpdate:modelValue"
|
|
1544
|
+
])]), a("div", yn, [c(m, {
|
|
1545
|
+
class: "bb:flex-1",
|
|
1546
|
+
"model-value": t.value,
|
|
1547
|
+
"placeholder-text": t.placeholder,
|
|
1548
|
+
lang: o.lang,
|
|
1549
|
+
"onUpdate:modelValue": t.update
|
|
1550
|
+
}, null, 8, [
|
|
1551
|
+
"model-value",
|
|
1552
|
+
"placeholder-text",
|
|
1553
|
+
"lang",
|
|
1554
|
+
"onUpdate:modelValue"
|
|
1555
|
+
])])]),
|
|
1556
|
+
_: 1
|
|
1557
|
+
}, 8, [
|
|
1558
|
+
"date-from",
|
|
1559
|
+
"date-to",
|
|
1560
|
+
"lang"
|
|
1561
|
+
])], 8, _n),
|
|
1562
|
+
e.hasDescription() ? (p(), n(v, {
|
|
1563
|
+
key: 0,
|
|
1564
|
+
id: e.descriptionId(l.labelId)
|
|
1565
|
+
}, {
|
|
1566
|
+
default: S(() => [h(e.$slots, "description", {}, () => [s(y(e.description), 1)])]),
|
|
1567
|
+
_: 3
|
|
1568
|
+
}, 8, ["id"])) : r("", !0)
|
|
1569
|
+
]);
|
|
1507
1570
|
}
|
|
1508
|
-
var
|
|
1571
|
+
var xn = /*#__PURE__*/ A(pn, [["render", bn]]), Sn = {
|
|
1509
1572
|
props: { withSearch: {
|
|
1510
1573
|
type: Boolean,
|
|
1511
1574
|
default: !1
|
|
@@ -1555,10 +1618,10 @@ var vn = /*#__PURE__*/ k(un, [["render", _n]]), yn = {
|
|
|
1555
1618
|
}
|
|
1556
1619
|
}
|
|
1557
1620
|
}
|
|
1558
|
-
},
|
|
1621
|
+
}, Cn = {
|
|
1559
1622
|
components: {
|
|
1560
|
-
PopoverPanel:
|
|
1561
|
-
CrossButton:
|
|
1623
|
+
PopoverPanel: V,
|
|
1624
|
+
CrossButton: P
|
|
1562
1625
|
},
|
|
1563
1626
|
emits: [
|
|
1564
1627
|
"update:isOpen",
|
|
@@ -1605,6 +1668,10 @@ var vn = /*#__PURE__*/ k(un, [["render", _n]]), yn = {
|
|
|
1605
1668
|
labelledBy: {
|
|
1606
1669
|
type: String,
|
|
1607
1670
|
default: null
|
|
1671
|
+
},
|
|
1672
|
+
describedBy: {
|
|
1673
|
+
type: String,
|
|
1674
|
+
default: null
|
|
1608
1675
|
}
|
|
1609
1676
|
},
|
|
1610
1677
|
computed: { needsEraser() {
|
|
@@ -1614,22 +1681,23 @@ var vn = /*#__PURE__*/ k(un, [["render", _n]]), yn = {
|
|
|
1614
1681
|
let e = this.$refs.eraser.$el;
|
|
1615
1682
|
document.activeElement === e && e.matches(":focus-visible") && this.$refs.trigger.focus({ preventScroll: !0 }), this.$emit("erased");
|
|
1616
1683
|
} }
|
|
1617
|
-
},
|
|
1684
|
+
}, wn = { class: "bb:flex bb:flex-col bb:grow" }, Tn = { class: "bb:relative bb:flex bb:w-full bb:h-full" }, En = [
|
|
1618
1685
|
"id",
|
|
1619
1686
|
"popovertarget",
|
|
1620
|
-
"aria-labelledby"
|
|
1621
|
-
|
|
1687
|
+
"aria-labelledby",
|
|
1688
|
+
"aria-describedby"
|
|
1689
|
+
], Dn = {
|
|
1622
1690
|
key: 0,
|
|
1623
1691
|
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"
|
|
1624
|
-
},
|
|
1692
|
+
}, On = ["textContent"], kn = ["textContent"], An = {
|
|
1625
1693
|
key: 2,
|
|
1626
1694
|
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",
|
|
1627
1695
|
viewBox: "0 0 8 6",
|
|
1628
1696
|
"aria-hidden": "true"
|
|
1629
1697
|
};
|
|
1630
|
-
function
|
|
1631
|
-
let d =
|
|
1632
|
-
return
|
|
1698
|
+
function jn(e, t, o, s, l, u) {
|
|
1699
|
+
let d = g("popover-panel"), f = g("cross-button");
|
|
1700
|
+
return p(), i("div", wn, [a("div", Tn, [c(d, {
|
|
1633
1701
|
class: "bb:flex bb:w-full bb:h-full",
|
|
1634
1702
|
"model-value": o.isOpen,
|
|
1635
1703
|
align: "start",
|
|
@@ -1643,22 +1711,23 @@ function On(e, t, o, c, l, u) {
|
|
|
1643
1711
|
"onUpdate:modelValue": t[0] ||= (t) => e.$emit("update:isOpen", t),
|
|
1644
1712
|
onToggle: t[1] ||= (t) => e.$emit("toggle", t)
|
|
1645
1713
|
}, {
|
|
1646
|
-
trigger:
|
|
1714
|
+
trigger: S((e) => [a("button", {
|
|
1647
1715
|
ref: "trigger",
|
|
1648
1716
|
type: "button",
|
|
1649
1717
|
id: e.id,
|
|
1650
1718
|
popovertarget: e.popovertarget,
|
|
1651
1719
|
"aria-labelledby": o.labelledBy ? o.labelledBy + " " + e.id : null,
|
|
1720
|
+
"aria-describedby": o.describedBy,
|
|
1652
1721
|
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)]"
|
|
1653
|
-
}, [o.withArrow ? (
|
|
1722
|
+
}, [o.withArrow ? (p(), i("span", Dn, [a("span", {
|
|
1654
1723
|
class: "bb:truncate",
|
|
1655
|
-
textContent:
|
|
1656
|
-
}, null, 8,
|
|
1724
|
+
textContent: y(o.title)
|
|
1725
|
+
}, null, 8, On)])) : (p(), i("span", {
|
|
1657
1726
|
key: 1,
|
|
1658
1727
|
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",
|
|
1659
|
-
textContent:
|
|
1660
|
-
}, null, 8,
|
|
1661
|
-
default:
|
|
1728
|
+
textContent: y(o.title)
|
|
1729
|
+
}, null, 8, kn)), o.withArrow ? (p(), i("svg", An, [...t[2] ||= [a("path", { d: "M0 0h8L4 6z" }, null, -1)]])) : r("", !0)], 8, En)]),
|
|
1730
|
+
default: S(() => [h(e.$slots, "default")]),
|
|
1662
1731
|
_: 3
|
|
1663
1732
|
}, 8, [
|
|
1664
1733
|
"model-value",
|
|
@@ -1666,7 +1735,7 @@ function On(e, t, o, c, l, u) {
|
|
|
1666
1735
|
"find-stops",
|
|
1667
1736
|
"find-tab-stops",
|
|
1668
1737
|
"keep-size"
|
|
1669
|
-
]), u.needsEraser ? (
|
|
1738
|
+
]), u.needsEraser ? (p(), n(f, {
|
|
1670
1739
|
key: 0,
|
|
1671
1740
|
ref: "eraser",
|
|
1672
1741
|
size: "small",
|
|
@@ -1675,7 +1744,7 @@ function On(e, t, o, c, l, u) {
|
|
|
1675
1744
|
class: "bb:absolute bb:right-0 bb:top-0 bb:pr-2 bb:h-full"
|
|
1676
1745
|
}, null, 8, ["lang", "onClicked"])) : r("", !0)])]);
|
|
1677
1746
|
}
|
|
1678
|
-
var
|
|
1747
|
+
var Mn = /*#__PURE__*/ A(Cn, [["render", jn]]), Nn = {
|
|
1679
1748
|
props: {
|
|
1680
1749
|
isChecked: {
|
|
1681
1750
|
type: Boolean,
|
|
@@ -1687,28 +1756,28 @@ var kn = /*#__PURE__*/ k(bn, [["render", On]]), An = {
|
|
|
1687
1756
|
methods: { toggle() {
|
|
1688
1757
|
this.$emit("clicked");
|
|
1689
1758
|
} }
|
|
1690
|
-
},
|
|
1759
|
+
}, Pn = { class: "bb:flex bb:w-9 bb:h-9 bb:items-center bb:justify-center bb:pointer-events-none bb:cursor-default" }, Fn = {
|
|
1691
1760
|
class: "bb:w-5 bb:h-5 bb:fill-current bb:text-green-300",
|
|
1692
1761
|
viewBox: "0 0 20 20",
|
|
1693
1762
|
"aria-hidden": "true"
|
|
1694
|
-
},
|
|
1695
|
-
function
|
|
1696
|
-
return
|
|
1763
|
+
}, In = ["textContent"];
|
|
1764
|
+
function Ln(e, t, n, r, o, s) {
|
|
1765
|
+
return p(), i("button", {
|
|
1697
1766
|
type: "button",
|
|
1698
|
-
onClick: t[0] ||=
|
|
1767
|
+
onClick: t[0] ||= T((...e) => s.toggle && s.toggle(...e), ["prevent"]),
|
|
1699
1768
|
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"
|
|
1700
|
-
}, [a("span",
|
|
1769
|
+
}, [a("span", Pn, [C((p(), i("svg", Fn, [...t[1] ||= [a("path", {
|
|
1701
1770
|
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",
|
|
1702
1771
|
"clip-rule": "evenodd",
|
|
1703
1772
|
"fill-rule": "evenodd"
|
|
1704
|
-
}, null, -1)]], 512)), [[
|
|
1773
|
+
}, null, -1)]], 512)), [[x, n.isChecked]])]), a("span", {
|
|
1705
1774
|
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",
|
|
1706
|
-
textContent:
|
|
1707
|
-
}, null, 8,
|
|
1775
|
+
textContent: y(n.name)
|
|
1776
|
+
}, null, 8, In)]);
|
|
1708
1777
|
}
|
|
1709
|
-
var
|
|
1710
|
-
components: { CrossButton:
|
|
1711
|
-
mixins: [
|
|
1778
|
+
var Rn = /*#__PURE__*/ A(Nn, [["render", Ln]]), zn = {
|
|
1779
|
+
components: { CrossButton: P },
|
|
1780
|
+
mixins: [N],
|
|
1712
1781
|
emits: ["update:modelValue"],
|
|
1713
1782
|
props: { modelValue: {
|
|
1714
1783
|
type: String,
|
|
@@ -1740,33 +1809,33 @@ var Fn = /*#__PURE__*/ k(An, [["render", Pn]]), In = {
|
|
|
1740
1809
|
this.query = "", this.$refs.input.focus();
|
|
1741
1810
|
}
|
|
1742
1811
|
}
|
|
1743
|
-
},
|
|
1744
|
-
function
|
|
1745
|
-
let l =
|
|
1746
|
-
return
|
|
1812
|
+
}, Bn = { 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" }, Vn = { class: "bb:relative" }, Hn = ["placeholder", "aria-label"];
|
|
1813
|
+
function Un(e, t, n, r, o, s) {
|
|
1814
|
+
let l = g("cross-button");
|
|
1815
|
+
return p(), i("div", Bn, [a("div", Vn, [C(a("input", {
|
|
1747
1816
|
ref: "input",
|
|
1748
1817
|
type: "text",
|
|
1749
1818
|
autocomplete: "off",
|
|
1750
|
-
"onUpdate:modelValue": t[0] ||= (e) =>
|
|
1819
|
+
"onUpdate:modelValue": t[0] ||= (e) => s.query = e,
|
|
1751
1820
|
placeholder: e.texts.search,
|
|
1752
1821
|
"aria-label": e.texts.search,
|
|
1753
1822
|
class: "bb:w-full bb:pl-3 bb:pr-9 bb:py-2 bb:text-sm bb:bg-white bb:border bb:border-gray-300 bb:rounded-md bb:focus:focus-ring",
|
|
1754
|
-
onKeydown: t[1] ||=
|
|
1755
|
-
}, null, 40,
|
|
1823
|
+
onKeydown: t[1] ||= w(T(() => {}, ["prevent"]), ["enter"])
|
|
1824
|
+
}, null, 40, Hn), [[te, s.query]]), C(c(l, {
|
|
1756
1825
|
ref: "eraser",
|
|
1757
1826
|
size: "small",
|
|
1758
1827
|
lang: e.lang,
|
|
1759
|
-
onClicked:
|
|
1828
|
+
onClicked: s.clearQuery,
|
|
1760
1829
|
class: "bb:absolute bb:right-0 bb:top-0 bb:pr-2 bb:h-full"
|
|
1761
|
-
}, null, 8, ["lang", "onClicked"]), [[
|
|
1830
|
+
}, null, 8, ["lang", "onClicked"]), [[x, s.query !== ""]])])]);
|
|
1762
1831
|
}
|
|
1763
|
-
var
|
|
1832
|
+
var Wn = /*#__PURE__*/ A(zn, [["render", Un]]), Gn = {
|
|
1764
1833
|
components: {
|
|
1765
|
-
DropdownButton:
|
|
1766
|
-
ListElement:
|
|
1767
|
-
ListSearchField:
|
|
1834
|
+
DropdownButton: Mn,
|
|
1835
|
+
ListElement: Rn,
|
|
1836
|
+
ListSearchField: Wn
|
|
1768
1837
|
},
|
|
1769
|
-
mixins: [
|
|
1838
|
+
mixins: [N, Sn],
|
|
1770
1839
|
emits: ["update:modelValue", "changed"],
|
|
1771
1840
|
props: {
|
|
1772
1841
|
items: {
|
|
@@ -1780,6 +1849,10 @@ var Vn = /*#__PURE__*/ k(In, [["render", Bn]]), Hn = {
|
|
|
1780
1849
|
labelledBy: {
|
|
1781
1850
|
type: String,
|
|
1782
1851
|
default: null
|
|
1852
|
+
},
|
|
1853
|
+
describedBy: {
|
|
1854
|
+
type: String,
|
|
1855
|
+
default: null
|
|
1783
1856
|
}
|
|
1784
1857
|
},
|
|
1785
1858
|
data() {
|
|
@@ -1820,16 +1893,17 @@ var Vn = /*#__PURE__*/ k(In, [["render", Bn]]), Hn = {
|
|
|
1820
1893
|
return this.firstSelectedElement() ?? this.searchInput();
|
|
1821
1894
|
}
|
|
1822
1895
|
}
|
|
1823
|
-
},
|
|
1824
|
-
function
|
|
1825
|
-
let u =
|
|
1826
|
-
return
|
|
1896
|
+
}, Kn = { class: "bb-dashboard-ui bb:flex bb:flex-col bb:grow" }, qn = ["textContent"];
|
|
1897
|
+
function Jn(t, a, o, s, c, l) {
|
|
1898
|
+
let u = g("list-search-field"), d = g("list-element"), f = g("dropdown-button");
|
|
1899
|
+
return p(), i("div", Kn, [l.hasItems ? (p(), n(f, {
|
|
1827
1900
|
key: 0,
|
|
1828
1901
|
title: l.title,
|
|
1829
1902
|
"is-open": c.isOpen,
|
|
1830
1903
|
"onUpdate:isOpen": a[2] ||= (e) => c.isOpen = e,
|
|
1831
1904
|
"has-value": l.selectedItems.length > 0,
|
|
1832
1905
|
"labelled-by": o.labelledBy,
|
|
1906
|
+
"described-by": o.describedBy,
|
|
1833
1907
|
"find-selected": l.arrowsOrigin,
|
|
1834
1908
|
"find-stops": t.searchStops,
|
|
1835
1909
|
"find-tab-stops": t.tabStops,
|
|
@@ -1838,18 +1912,18 @@ function Gn(t, a, o, s, c, l) {
|
|
|
1838
1912
|
onErased: l.clear,
|
|
1839
1913
|
onToggle: t.onSearchToggle
|
|
1840
1914
|
}, {
|
|
1841
|
-
default:
|
|
1915
|
+
default: S(() => [t.withSearch ? (p(), n(u, {
|
|
1842
1916
|
key: 0,
|
|
1843
1917
|
ref: "search",
|
|
1844
1918
|
modelValue: t.query,
|
|
1845
1919
|
"onUpdate:modelValue": a[0] ||= (e) => t.query = e,
|
|
1846
1920
|
lang: t.lang
|
|
1847
|
-
}, null, 8, ["modelValue", "lang"])) : r("", !0), t.visibleItems.length > 0 ? (
|
|
1921
|
+
}, null, 8, ["modelValue", "lang"])) : r("", !0), t.visibleItems.length > 0 ? (p(), i("div", {
|
|
1848
1922
|
key: 1,
|
|
1849
1923
|
ref: "list",
|
|
1850
1924
|
class: "bb:flex bb:flex-col bb:py-1 bb:divide-y bb:divide-gray-200 bb:divide-dashed",
|
|
1851
1925
|
onKeydown: a[1] ||= (...e) => t.onListKeydown && t.onListKeydown(...e)
|
|
1852
|
-
}, [(
|
|
1926
|
+
}, [(p(!0), i(e, null, m(t.visibleItems, (e) => (p(), n(d, {
|
|
1853
1927
|
name: t.itemName(e),
|
|
1854
1928
|
key: e.id,
|
|
1855
1929
|
"is-checked": l.selectedIds.includes(e.id),
|
|
@@ -1860,17 +1934,18 @@ function Gn(t, a, o, s, c, l) {
|
|
|
1860
1934
|
"is-checked",
|
|
1861
1935
|
"aria-pressed",
|
|
1862
1936
|
"onClicked"
|
|
1863
|
-
]))), 128))], 544)) : (
|
|
1937
|
+
]))), 128))], 544)) : (p(), i("div", {
|
|
1864
1938
|
key: 2,
|
|
1865
1939
|
class: "bb:px-3 bb:py-2 bb:text-sm bb:text-gray-500 bb:text-center",
|
|
1866
|
-
textContent:
|
|
1867
|
-
}, null, 8,
|
|
1940
|
+
textContent: y(t.texts.nothingFound)
|
|
1941
|
+
}, null, 8, qn))]),
|
|
1868
1942
|
_: 1
|
|
1869
1943
|
}, 8, [
|
|
1870
1944
|
"title",
|
|
1871
1945
|
"is-open",
|
|
1872
1946
|
"has-value",
|
|
1873
1947
|
"labelled-by",
|
|
1948
|
+
"described-by",
|
|
1874
1949
|
"find-selected",
|
|
1875
1950
|
"find-stops",
|
|
1876
1951
|
"find-tab-stops",
|
|
@@ -1880,10 +1955,10 @@ function Gn(t, a, o, s, c, l) {
|
|
|
1880
1955
|
"onToggle"
|
|
1881
1956
|
])) : r("", !0)]);
|
|
1882
1957
|
}
|
|
1883
|
-
var
|
|
1958
|
+
var Yn = /*#__PURE__*/ A(Gn, [["render", Jn]]), Xn = {
|
|
1884
1959
|
components: {
|
|
1885
|
-
ElementHeader:
|
|
1886
|
-
SelectMultiple:
|
|
1960
|
+
ElementHeader: M,
|
|
1961
|
+
SelectMultiple: Yn
|
|
1887
1962
|
},
|
|
1888
1963
|
emits: ["update:modelValue", "changed"],
|
|
1889
1964
|
props: {
|
|
@@ -1916,10 +1991,10 @@ var Kn = /*#__PURE__*/ k(Hn, [["render", Gn]]), qn = {
|
|
|
1916
1991
|
default: null
|
|
1917
1992
|
}
|
|
1918
1993
|
}
|
|
1919
|
-
},
|
|
1920
|
-
function
|
|
1921
|
-
let l =
|
|
1922
|
-
return
|
|
1994
|
+
}, Zn = { class: "bb-dashboard-ui bb:flex bb:flex-none bb:w-fit bb:h-18 bb:border bb:border-gray-200" }, Qn = { class: "bb:flex bb:w-full bb:flex-col bb:border bb:border-white bb:bg-white" };
|
|
1995
|
+
function $n(e, t, n, r, o, s) {
|
|
1996
|
+
let l = g("element-header"), u = g("select-multiple");
|
|
1997
|
+
return p(), i("div", Zn, [a("div", Qn, [c(l, {
|
|
1923
1998
|
text: n.header ?? "",
|
|
1924
1999
|
"is-required": n.isRequired,
|
|
1925
2000
|
"is-loading": n.isLoading
|
|
@@ -1927,7 +2002,7 @@ function Xn(e, t, n, r, o, c) {
|
|
|
1927
2002
|
"text",
|
|
1928
2003
|
"is-required",
|
|
1929
2004
|
"is-loading"
|
|
1930
|
-
]),
|
|
2005
|
+
]), c(u, {
|
|
1931
2006
|
items: n.items,
|
|
1932
2007
|
"model-value": n.modelValue,
|
|
1933
2008
|
"with-search": n.withSearch,
|
|
@@ -1941,11 +2016,13 @@ function Xn(e, t, n, r, o, c) {
|
|
|
1941
2016
|
"lang"
|
|
1942
2017
|
])])]);
|
|
1943
2018
|
}
|
|
1944
|
-
var
|
|
2019
|
+
var er = /*#__PURE__*/ A(Xn, [["render", $n]]), tr = {
|
|
1945
2020
|
components: {
|
|
1946
|
-
Dot:
|
|
1947
|
-
|
|
2021
|
+
Dot: j,
|
|
2022
|
+
FieldDescription: W,
|
|
2023
|
+
SelectMultiple: Yn
|
|
1948
2024
|
},
|
|
2025
|
+
mixins: [U],
|
|
1949
2026
|
emits: ["update:modelValue", "changed"],
|
|
1950
2027
|
props: {
|
|
1951
2028
|
items: {
|
|
@@ -1974,45 +2051,57 @@ var Zn = /*#__PURE__*/ k(qn, [["render", Xn]]), Qn = {
|
|
|
1974
2051
|
}
|
|
1975
2052
|
},
|
|
1976
2053
|
setup() {
|
|
1977
|
-
return { labelId:
|
|
2054
|
+
return { labelId: b() };
|
|
1978
2055
|
}
|
|
1979
|
-
},
|
|
1980
|
-
function
|
|
1981
|
-
let
|
|
1982
|
-
return
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
"
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2056
|
+
}, nr = { class: "bb-dashboard-ui" }, rr = { class: "bb:flex bb:items-center" }, ir = ["id", "textContent"], ar = { class: "bb:mt-1 bb:h-9.5 bb:w-full bb:rounded-md bb:[--bb-field-radius:0.375rem] bb:border bb:border-gray-300 bb:bg-white bb:shadow-xs bb:text-sm bb:flex bb:flex-col" };
|
|
2057
|
+
function or(e, t, o, l, u, d) {
|
|
2058
|
+
let f = g("dot"), m = g("select-multiple"), _ = g("field-description");
|
|
2059
|
+
return p(), i("div", nr, [
|
|
2060
|
+
a("div", rr, [a("span", {
|
|
2061
|
+
id: l.labelId,
|
|
2062
|
+
class: "bb:block bb:text-sm bb:font-medium bb:leading-5 bb:text-gray-700",
|
|
2063
|
+
textContent: y(o.label ?? "")
|
|
2064
|
+
}, null, 8, ir), C(c(f, {
|
|
2065
|
+
color: "red",
|
|
2066
|
+
class: "bb:ml-2"
|
|
2067
|
+
}, null, 512), [[x, o.isRequired]])]),
|
|
2068
|
+
a("div", ar, [c(m, {
|
|
2069
|
+
items: o.items,
|
|
2070
|
+
"model-value": o.modelValue,
|
|
2071
|
+
"with-search": o.withSearch,
|
|
2072
|
+
lang: o.lang,
|
|
2073
|
+
"labelled-by": l.labelId,
|
|
2074
|
+
"described-by": e.descriptionId(l.labelId),
|
|
2075
|
+
"onUpdate:modelValue": t[0] ||= (t) => e.$emit("update:modelValue", t),
|
|
2076
|
+
onChanged: t[1] ||= (t) => e.$emit("changed")
|
|
2077
|
+
}, null, 8, [
|
|
2078
|
+
"items",
|
|
2079
|
+
"model-value",
|
|
2080
|
+
"with-search",
|
|
2081
|
+
"lang",
|
|
2082
|
+
"labelled-by",
|
|
2083
|
+
"described-by"
|
|
2084
|
+
])]),
|
|
2085
|
+
e.hasDescription() ? (p(), n(_, {
|
|
2086
|
+
key: 0,
|
|
2087
|
+
id: e.descriptionId(l.labelId)
|
|
2088
|
+
}, {
|
|
2089
|
+
default: S(() => [h(e.$slots, "description", {}, () => [s(y(e.description), 1)])]),
|
|
2090
|
+
_: 3
|
|
2091
|
+
}, 8, ["id"])) : r("", !0)
|
|
2092
|
+
]);
|
|
2004
2093
|
}
|
|
2005
|
-
var
|
|
2006
|
-
function
|
|
2094
|
+
var sr = /*#__PURE__*/ A(tr, [["render", or]]);
|
|
2095
|
+
function G(e) {
|
|
2007
2096
|
return Number.isInteger(e) && e >= 1;
|
|
2008
2097
|
}
|
|
2009
|
-
function
|
|
2010
|
-
return
|
|
2098
|
+
function K(e) {
|
|
2099
|
+
return G(e) ? e : 2;
|
|
2011
2100
|
}
|
|
2012
|
-
function
|
|
2101
|
+
function cr(e) {
|
|
2013
2102
|
return { gridTemplateColumns: `repeat(${e}, minmax(0, 1fr))` };
|
|
2014
2103
|
}
|
|
2015
|
-
function
|
|
2104
|
+
function lr(e, t) {
|
|
2016
2105
|
let n = Math.floor(e / t), r = e % t, i = [];
|
|
2017
2106
|
for (let e = 0; e < t; e++) {
|
|
2018
2107
|
let t = e < r ? n + 1 : n;
|
|
@@ -2025,8 +2114,12 @@ function or(e, t) {
|
|
|
2025
2114
|
}
|
|
2026
2115
|
//#endregion
|
|
2027
2116
|
//#region src/components/SelectMultipleList.vue
|
|
2028
|
-
var
|
|
2029
|
-
components: {
|
|
2117
|
+
var ur = {
|
|
2118
|
+
components: {
|
|
2119
|
+
Dot: j,
|
|
2120
|
+
FieldDescription: W
|
|
2121
|
+
},
|
|
2122
|
+
mixins: [U],
|
|
2030
2123
|
emits: ["update:modelValue", "changed"],
|
|
2031
2124
|
props: {
|
|
2032
2125
|
items: {
|
|
@@ -2048,11 +2141,11 @@ var sr = {
|
|
|
2048
2141
|
columns: {
|
|
2049
2142
|
type: Number,
|
|
2050
2143
|
default: 2,
|
|
2051
|
-
validator:
|
|
2144
|
+
validator: G
|
|
2052
2145
|
}
|
|
2053
2146
|
},
|
|
2054
2147
|
setup() {
|
|
2055
|
-
return { labelId:
|
|
2148
|
+
return { labelId: b() };
|
|
2056
2149
|
},
|
|
2057
2150
|
computed: {
|
|
2058
2151
|
itemList() {
|
|
@@ -2062,10 +2155,10 @@ var sr = {
|
|
|
2062
2155
|
return Array.isArray(this.modelValue) ? this.modelValue : [];
|
|
2063
2156
|
},
|
|
2064
2157
|
gridStyle() {
|
|
2065
|
-
return
|
|
2158
|
+
return cr(K(this.columns));
|
|
2066
2159
|
},
|
|
2067
2160
|
itemStyles() {
|
|
2068
|
-
return
|
|
2161
|
+
return lr(this.itemList.length, K(this.columns));
|
|
2069
2162
|
}
|
|
2070
2163
|
},
|
|
2071
2164
|
methods: {
|
|
@@ -2084,48 +2177,59 @@ var sr = {
|
|
|
2084
2177
|
});
|
|
2085
2178
|
}
|
|
2086
2179
|
}
|
|
2087
|
-
},
|
|
2180
|
+
}, dr = { class: "bb-dashboard-ui" }, fr = { class: "bb:flex bb:items-center" }, pr = ["id", "textContent"], mr = ["aria-labelledby", "aria-describedby"], hr = { class: "bb:relative bb:flex bb:shrink-0" }, gr = ["checked", "onChange"], _r = {
|
|
2088
2181
|
key: 0,
|
|
2089
2182
|
class: "bb:pointer-events-none bb:absolute bb:inset-0 bb:size-4 bb:fill-white bb:forced-colors:hidden",
|
|
2090
2183
|
viewBox: "0 0 16 16",
|
|
2091
2184
|
"aria-hidden": "true"
|
|
2092
|
-
},
|
|
2093
|
-
function
|
|
2094
|
-
let
|
|
2095
|
-
return
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2185
|
+
}, vr = ["textContent"];
|
|
2186
|
+
function yr(t, o, l, u, _, v) {
|
|
2187
|
+
let b = g("dot"), ee = g("field-description");
|
|
2188
|
+
return p(), i("div", dr, [
|
|
2189
|
+
a("div", fr, [a("span", {
|
|
2190
|
+
id: u.labelId,
|
|
2191
|
+
class: "bb:block bb:text-sm bb:font-medium bb:leading-5 bb:text-gray-700",
|
|
2192
|
+
textContent: y(l.label ?? "")
|
|
2193
|
+
}, null, 8, pr), C(c(b, {
|
|
2194
|
+
color: "red",
|
|
2195
|
+
class: "bb:ml-2"
|
|
2196
|
+
}, null, 512), [[x, l.isRequired]])]),
|
|
2197
|
+
v.itemList.length > 0 ? (p(), i("div", {
|
|
2198
|
+
key: 0,
|
|
2199
|
+
role: "group",
|
|
2200
|
+
"aria-labelledby": u.labelId,
|
|
2201
|
+
"aria-describedby": t.descriptionId(u.labelId),
|
|
2202
|
+
class: "bb:mt-1 bb:grid bb:gap-x-4 bb:gap-y-2",
|
|
2203
|
+
style: f(v.gridStyle)
|
|
2204
|
+
}, [(p(!0), i(e, null, m(v.itemList, (e, t) => (p(), i("label", {
|
|
2205
|
+
key: t,
|
|
2206
|
+
style: f(v.itemStyles[t]),
|
|
2207
|
+
class: "bb:flex bb:items-center"
|
|
2208
|
+
}, [a("span", hr, [a("input", {
|
|
2209
|
+
type: "checkbox",
|
|
2210
|
+
checked: v.isChecked(e),
|
|
2211
|
+
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"]),
|
|
2212
|
+
onChange: (t) => v.toggle(e)
|
|
2213
|
+
}, null, 42, gr), v.isChecked(e) ? (p(), i("svg", _r, [...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", {
|
|
2214
|
+
class: "bb:ml-3 bb:text-sm bb:font-medium bb:text-gray-700",
|
|
2215
|
+
textContent: y(v.itemName(e))
|
|
2216
|
+
}, null, 8, vr)], 4))), 128))], 12, mr)) : r("", !0),
|
|
2217
|
+
t.hasDescription() ? (p(), n(ee, {
|
|
2218
|
+
key: 1,
|
|
2219
|
+
id: t.descriptionId(u.labelId)
|
|
2220
|
+
}, {
|
|
2221
|
+
default: S(() => [h(t.$slots, "description", {}, () => [s(y(t.description), 1)])]),
|
|
2222
|
+
_: 3
|
|
2223
|
+
}, 8, ["id"])) : r("", !0)
|
|
2224
|
+
]);
|
|
2225
|
+
}
|
|
2226
|
+
var br = /*#__PURE__*/ A(ur, [["render", yr]]), xr = {
|
|
2123
2227
|
components: {
|
|
2124
|
-
DropdownButton:
|
|
2125
|
-
ListElement:
|
|
2126
|
-
ListSearchField:
|
|
2228
|
+
DropdownButton: Mn,
|
|
2229
|
+
ListElement: Rn,
|
|
2230
|
+
ListSearchField: Wn
|
|
2127
2231
|
},
|
|
2128
|
-
mixins: [
|
|
2232
|
+
mixins: [N, Sn],
|
|
2129
2233
|
emits: ["update:modelValue", "changed"],
|
|
2130
2234
|
props: {
|
|
2131
2235
|
items: {
|
|
@@ -2140,6 +2244,10 @@ var _r = /*#__PURE__*/ k(sr, [["render", gr]]), vr = {
|
|
|
2140
2244
|
type: String,
|
|
2141
2245
|
default: null
|
|
2142
2246
|
},
|
|
2247
|
+
describedBy: {
|
|
2248
|
+
type: String,
|
|
2249
|
+
default: null
|
|
2250
|
+
},
|
|
2143
2251
|
withClear: {
|
|
2144
2252
|
type: Boolean,
|
|
2145
2253
|
default: !0
|
|
@@ -2187,10 +2295,10 @@ var _r = /*#__PURE__*/ k(sr, [["render", gr]]), vr = {
|
|
|
2187
2295
|
return this.activeItemElement() ?? this.searchInput();
|
|
2188
2296
|
}
|
|
2189
2297
|
}
|
|
2190
|
-
},
|
|
2191
|
-
function
|
|
2192
|
-
let u =
|
|
2193
|
-
return
|
|
2298
|
+
}, Sr = { class: "bb-dashboard-ui bb:flex bb:flex-col bb:grow" }, Cr = ["textContent"];
|
|
2299
|
+
function wr(t, a, o, s, c, l) {
|
|
2300
|
+
let u = g("list-search-field"), d = g("list-element"), f = g("dropdown-button");
|
|
2301
|
+
return p(), i("div", Sr, [l.hasItems ? (p(), n(f, {
|
|
2194
2302
|
key: 0,
|
|
2195
2303
|
title: l.activeItemName,
|
|
2196
2304
|
"is-open": c.isOpen,
|
|
@@ -2198,6 +2306,7 @@ function xr(t, a, o, s, c, l) {
|
|
|
2198
2306
|
"has-value": o.withClear && l.hasValue,
|
|
2199
2307
|
"with-arrow": o.withArrow,
|
|
2200
2308
|
"labelled-by": o.labelledBy,
|
|
2309
|
+
"described-by": o.describedBy,
|
|
2201
2310
|
"find-selected": l.arrowsOrigin,
|
|
2202
2311
|
"find-stops": t.searchStops,
|
|
2203
2312
|
"find-tab-stops": t.tabStops,
|
|
@@ -2206,18 +2315,18 @@ function xr(t, a, o, s, c, l) {
|
|
|
2206
2315
|
onErased: l.clear,
|
|
2207
2316
|
onToggle: t.onSearchToggle
|
|
2208
2317
|
}, {
|
|
2209
|
-
default:
|
|
2318
|
+
default: S(() => [t.withSearch ? (p(), n(u, {
|
|
2210
2319
|
key: 0,
|
|
2211
2320
|
ref: "search",
|
|
2212
2321
|
modelValue: t.query,
|
|
2213
2322
|
"onUpdate:modelValue": a[0] ||= (e) => t.query = e,
|
|
2214
2323
|
lang: t.lang
|
|
2215
|
-
}, null, 8, ["modelValue", "lang"])) : r("", !0), t.visibleItems.length > 0 ? (
|
|
2324
|
+
}, null, 8, ["modelValue", "lang"])) : r("", !0), t.visibleItems.length > 0 ? (p(), i("div", {
|
|
2216
2325
|
key: 1,
|
|
2217
2326
|
ref: "list",
|
|
2218
2327
|
class: "bb:flex bb:flex-col bb:py-1 bb:divide-y bb:divide-gray-200 bb:divide-dashed",
|
|
2219
2328
|
onKeydown: a[1] ||= (...e) => t.onListKeydown && t.onListKeydown(...e)
|
|
2220
|
-
}, [(
|
|
2329
|
+
}, [(p(!0), i(e, null, m(t.visibleItems, (e) => (p(), n(d, {
|
|
2221
2330
|
name: t.itemName(e),
|
|
2222
2331
|
key: e.id,
|
|
2223
2332
|
"is-checked": e.id === o.modelValue,
|
|
@@ -2226,11 +2335,11 @@ function xr(t, a, o, s, c, l) {
|
|
|
2226
2335
|
"name",
|
|
2227
2336
|
"is-checked",
|
|
2228
2337
|
"onClicked"
|
|
2229
|
-
]))), 128))], 544)) : (
|
|
2338
|
+
]))), 128))], 544)) : (p(), i("div", {
|
|
2230
2339
|
key: 2,
|
|
2231
2340
|
class: "bb:px-3 bb:py-2 bb:text-sm bb:text-gray-500 bb:text-center",
|
|
2232
|
-
textContent:
|
|
2233
|
-
}, null, 8,
|
|
2341
|
+
textContent: y(t.texts.nothingFound)
|
|
2342
|
+
}, null, 8, Cr))]),
|
|
2234
2343
|
_: 1
|
|
2235
2344
|
}, 8, [
|
|
2236
2345
|
"title",
|
|
@@ -2238,6 +2347,7 @@ function xr(t, a, o, s, c, l) {
|
|
|
2238
2347
|
"has-value",
|
|
2239
2348
|
"with-arrow",
|
|
2240
2349
|
"labelled-by",
|
|
2350
|
+
"described-by",
|
|
2241
2351
|
"find-selected",
|
|
2242
2352
|
"find-stops",
|
|
2243
2353
|
"find-tab-stops",
|
|
@@ -2247,10 +2357,10 @@ function xr(t, a, o, s, c, l) {
|
|
|
2247
2357
|
"onToggle"
|
|
2248
2358
|
])) : r("", !0)]);
|
|
2249
2359
|
}
|
|
2250
|
-
var
|
|
2360
|
+
var q = /*#__PURE__*/ A(xr, [["render", wr]]), Tr = {
|
|
2251
2361
|
components: {
|
|
2252
|
-
ElementHeader:
|
|
2253
|
-
SelectSingle:
|
|
2362
|
+
ElementHeader: M,
|
|
2363
|
+
SelectSingle: q
|
|
2254
2364
|
},
|
|
2255
2365
|
emits: ["update:modelValue", "changed"],
|
|
2256
2366
|
props: {
|
|
@@ -2283,10 +2393,10 @@ var U = /*#__PURE__*/ k(vr, [["render", xr]]), Sr = {
|
|
|
2283
2393
|
default: null
|
|
2284
2394
|
}
|
|
2285
2395
|
}
|
|
2286
|
-
},
|
|
2287
|
-
function
|
|
2288
|
-
let l =
|
|
2289
|
-
return
|
|
2396
|
+
}, Er = { class: "bb-dashboard-ui bb:flex bb:flex-none bb:w-fit bb:h-18 bb:border bb:border-gray-200" }, Dr = { class: "bb:flex bb:w-full bb:flex-col bb:border bb:border-white bb:bg-white" };
|
|
2397
|
+
function Or(e, t, n, r, o, s) {
|
|
2398
|
+
let l = g("element-header"), u = g("select-single");
|
|
2399
|
+
return p(), i("div", Er, [a("div", Dr, [c(l, {
|
|
2290
2400
|
text: n.header ?? "",
|
|
2291
2401
|
"is-required": n.isRequired,
|
|
2292
2402
|
"is-loading": n.isLoading
|
|
@@ -2294,7 +2404,7 @@ function Tr(e, t, n, r, o, c) {
|
|
|
2294
2404
|
"text",
|
|
2295
2405
|
"is-required",
|
|
2296
2406
|
"is-loading"
|
|
2297
|
-
]),
|
|
2407
|
+
]), c(u, {
|
|
2298
2408
|
items: n.items,
|
|
2299
2409
|
"model-value": n.modelValue,
|
|
2300
2410
|
"with-search": n.withSearch,
|
|
@@ -2308,11 +2418,13 @@ function Tr(e, t, n, r, o, c) {
|
|
|
2308
2418
|
"lang"
|
|
2309
2419
|
])])]);
|
|
2310
2420
|
}
|
|
2311
|
-
var
|
|
2421
|
+
var kr = /*#__PURE__*/ A(Tr, [["render", Or]]), Ar = {
|
|
2312
2422
|
components: {
|
|
2313
|
-
Dot:
|
|
2314
|
-
|
|
2423
|
+
Dot: j,
|
|
2424
|
+
FieldDescription: W,
|
|
2425
|
+
SelectSingle: q
|
|
2315
2426
|
},
|
|
2427
|
+
mixins: [U],
|
|
2316
2428
|
emits: ["update:modelValue", "changed"],
|
|
2317
2429
|
props: {
|
|
2318
2430
|
items: {
|
|
@@ -2341,36 +2453,52 @@ var Er = /*#__PURE__*/ k(Sr, [["render", Tr]]), Dr = {
|
|
|
2341
2453
|
}
|
|
2342
2454
|
},
|
|
2343
2455
|
setup() {
|
|
2344
|
-
return { labelId:
|
|
2456
|
+
return { labelId: b() };
|
|
2345
2457
|
}
|
|
2346
|
-
},
|
|
2347
|
-
function
|
|
2348
|
-
let
|
|
2349
|
-
return
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
"
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2458
|
+
}, jr = { class: "bb-dashboard-ui" }, Mr = { class: "bb:flex bb:items-center" }, Nr = ["id", "textContent"], Pr = { class: "bb:mt-1 bb:h-9.5 bb:w-full bb:rounded-md bb:[--bb-field-radius:0.375rem] bb:border bb:border-gray-300 bb:bg-white bb:shadow-xs bb:text-sm bb:flex bb:flex-col" };
|
|
2459
|
+
function Fr(e, t, o, l, u, d) {
|
|
2460
|
+
let f = g("dot"), m = g("select-single"), _ = g("field-description");
|
|
2461
|
+
return p(), i("div", jr, [
|
|
2462
|
+
a("div", Mr, [a("span", {
|
|
2463
|
+
id: l.labelId,
|
|
2464
|
+
class: "bb:block bb:text-sm bb:font-medium bb:leading-5 bb:text-gray-700",
|
|
2465
|
+
textContent: y(o.label ?? "")
|
|
2466
|
+
}, null, 8, Nr), C(c(f, {
|
|
2467
|
+
color: "red",
|
|
2468
|
+
class: "bb:ml-2"
|
|
2469
|
+
}, null, 512), [[x, o.isRequired]])]),
|
|
2470
|
+
a("div", Pr, [c(m, {
|
|
2471
|
+
items: o.items,
|
|
2472
|
+
"model-value": o.modelValue,
|
|
2473
|
+
"with-search": o.withSearch,
|
|
2474
|
+
lang: o.lang,
|
|
2475
|
+
"labelled-by": l.labelId,
|
|
2476
|
+
"described-by": e.descriptionId(l.labelId),
|
|
2477
|
+
"onUpdate:modelValue": t[0] ||= (t) => e.$emit("update:modelValue", t),
|
|
2478
|
+
onChanged: t[1] ||= (t) => e.$emit("changed")
|
|
2479
|
+
}, null, 8, [
|
|
2480
|
+
"items",
|
|
2481
|
+
"model-value",
|
|
2482
|
+
"with-search",
|
|
2483
|
+
"lang",
|
|
2484
|
+
"labelled-by",
|
|
2485
|
+
"described-by"
|
|
2486
|
+
])]),
|
|
2487
|
+
e.hasDescription() ? (p(), n(_, {
|
|
2488
|
+
key: 0,
|
|
2489
|
+
id: e.descriptionId(l.labelId)
|
|
2490
|
+
}, {
|
|
2491
|
+
default: S(() => [h(e.$slots, "description", {}, () => [s(y(e.description), 1)])]),
|
|
2492
|
+
_: 3
|
|
2493
|
+
}, 8, ["id"])) : r("", !0)
|
|
2494
|
+
]);
|
|
2371
2495
|
}
|
|
2372
|
-
var
|
|
2373
|
-
components: {
|
|
2496
|
+
var Ir = /*#__PURE__*/ A(Ar, [["render", Fr]]), Lr = {
|
|
2497
|
+
components: {
|
|
2498
|
+
Dot: j,
|
|
2499
|
+
FieldDescription: W
|
|
2500
|
+
},
|
|
2501
|
+
mixins: [U],
|
|
2374
2502
|
emits: ["update:modelValue", "changed"],
|
|
2375
2503
|
props: {
|
|
2376
2504
|
items: {
|
|
@@ -2396,13 +2524,13 @@ var Nr = /*#__PURE__*/ k(Dr, [["render", Mr]]), Pr = {
|
|
|
2396
2524
|
columns: {
|
|
2397
2525
|
type: Number,
|
|
2398
2526
|
default: 2,
|
|
2399
|
-
validator:
|
|
2527
|
+
validator: G
|
|
2400
2528
|
}
|
|
2401
2529
|
},
|
|
2402
2530
|
setup() {
|
|
2403
2531
|
return {
|
|
2404
|
-
labelId:
|
|
2405
|
-
groupName:
|
|
2532
|
+
labelId: b(),
|
|
2533
|
+
groupName: b()
|
|
2406
2534
|
};
|
|
2407
2535
|
},
|
|
2408
2536
|
computed: {
|
|
@@ -2410,10 +2538,10 @@ var Nr = /*#__PURE__*/ k(Dr, [["render", Mr]]), Pr = {
|
|
|
2410
2538
|
return Array.isArray(this.items) ? this.items.filter((e) => typeof e == "object" && !!e) : [];
|
|
2411
2539
|
},
|
|
2412
2540
|
gridStyle() {
|
|
2413
|
-
return
|
|
2541
|
+
return cr(K(this.columns));
|
|
2414
2542
|
},
|
|
2415
2543
|
itemStyles() {
|
|
2416
|
-
return
|
|
2544
|
+
return lr(this.itemList.length, K(this.columns));
|
|
2417
2545
|
}
|
|
2418
2546
|
},
|
|
2419
2547
|
methods: {
|
|
@@ -2432,49 +2560,60 @@ var Nr = /*#__PURE__*/ k(Dr, [["render", Mr]]), Pr = {
|
|
|
2432
2560
|
});
|
|
2433
2561
|
}
|
|
2434
2562
|
}
|
|
2435
|
-
},
|
|
2563
|
+
}, Rr = { class: "bb-dashboard-ui" }, zr = { class: "bb:flex bb:items-center" }, Br = ["id", "textContent"], Vr = ["aria-labelledby", "aria-describedby"], Hr = [
|
|
2436
2564
|
"name",
|
|
2437
2565
|
"checked",
|
|
2438
2566
|
"onChange"
|
|
2439
|
-
],
|
|
2567
|
+
], Ur = {
|
|
2440
2568
|
key: 0,
|
|
2441
2569
|
class: "bb:size-2 bb:rounded-full bb:bg-indigo-600 bb:forced-colors:bg-[CanvasText]"
|
|
2442
|
-
},
|
|
2443
|
-
function
|
|
2444
|
-
let
|
|
2445
|
-
return
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2570
|
+
}, Wr = ["textContent"];
|
|
2571
|
+
function Gr(t, o, l, u, _, v) {
|
|
2572
|
+
let b = g("dot"), ee = g("field-description");
|
|
2573
|
+
return p(), i("div", Rr, [
|
|
2574
|
+
a("div", zr, [a("span", {
|
|
2575
|
+
id: u.labelId,
|
|
2576
|
+
class: "bb:block bb:text-sm bb:font-medium bb:leading-5 bb:text-gray-700",
|
|
2577
|
+
textContent: y(l.label ?? "")
|
|
2578
|
+
}, null, 8, Br), C(c(b, {
|
|
2579
|
+
color: "red",
|
|
2580
|
+
class: "bb:ml-2"
|
|
2581
|
+
}, null, 512), [[x, l.isRequired]])]),
|
|
2582
|
+
v.itemList.length > 0 ? (p(), i("div", {
|
|
2583
|
+
key: 0,
|
|
2584
|
+
role: "radiogroup",
|
|
2585
|
+
"aria-labelledby": u.labelId,
|
|
2586
|
+
"aria-describedby": t.descriptionId(u.labelId),
|
|
2587
|
+
class: "bb:mt-2 bb:grid bb:gap-3",
|
|
2588
|
+
style: f(v.gridStyle)
|
|
2589
|
+
}, [(p(!0), i(e, null, m(v.itemList, (e, t) => (p(), i("label", {
|
|
2590
|
+
key: t,
|
|
2591
|
+
style: f(v.itemStyles[t]),
|
|
2592
|
+
class: d(["bb:relative bb:flex bb:items-start bb:p-3 bb:border bb:rounded-md bb:cursor-pointer bb:select-none bb:transition-[background-color,border-color] bb:has-focus-visible:focus-ring", v.isSelected(e) ? "bb:border-indigo-500 bb:bg-indigo-50" : "bb:border-gray-300 bb:bg-white bb:hover:bg-gray-50"])
|
|
2593
|
+
}, [
|
|
2594
|
+
a("input", {
|
|
2595
|
+
type: "radio",
|
|
2596
|
+
name: u.groupName,
|
|
2597
|
+
checked: v.isSelected(e),
|
|
2598
|
+
class: "bb:absolute bb:inset-0 bb:size-full bb:cursor-pointer bb:bg-none bb:opacity-0",
|
|
2599
|
+
onChange: (t) => v.select(e)
|
|
2600
|
+
}, null, 40, Hr),
|
|
2601
|
+
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", Ur)) : r("", !0)], 2),
|
|
2602
|
+
a("span", {
|
|
2603
|
+
class: "bb:pointer-events-none bb:cursor-default bb:ml-3 bb:text-sm bb:font-medium bb:text-gray-700",
|
|
2604
|
+
textContent: y(v.itemName(e))
|
|
2605
|
+
}, null, 8, Wr)
|
|
2606
|
+
], 6))), 128))], 12, Vr)) : r("", !0),
|
|
2607
|
+
t.hasDescription() ? (p(), n(ee, {
|
|
2608
|
+
key: 1,
|
|
2609
|
+
id: t.descriptionId(u.labelId)
|
|
2610
|
+
}, {
|
|
2611
|
+
default: S(() => [h(t.$slots, "description", {}, () => [s(y(t.description), 1)])]),
|
|
2612
|
+
_: 3
|
|
2613
|
+
}, 8, ["id"])) : r("", !0)
|
|
2614
|
+
]);
|
|
2615
|
+
}
|
|
2616
|
+
var Kr = /*#__PURE__*/ A(Lr, [["render", Gr]]), qr = [
|
|
2478
2617
|
{
|
|
2479
2618
|
code: "AED",
|
|
2480
2619
|
digits: 2,
|
|
@@ -3256,29 +3395,29 @@ var Ur = /*#__PURE__*/ k(Pr, [["render", Hr]]), Wr = [
|
|
|
3256
3395
|
symbol: null
|
|
3257
3396
|
}
|
|
3258
3397
|
];
|
|
3259
|
-
function
|
|
3260
|
-
if (e == null) return
|
|
3398
|
+
function J(e) {
|
|
3399
|
+
if (e == null) return qr;
|
|
3261
3400
|
if (!Array.isArray(e)) return [];
|
|
3262
3401
|
let t = [];
|
|
3263
3402
|
for (let n of e) {
|
|
3264
|
-
let e =
|
|
3403
|
+
let e = qr.find((e) => e.code === n);
|
|
3265
3404
|
e && !t.includes(e) && t.push(e);
|
|
3266
3405
|
}
|
|
3267
3406
|
return t;
|
|
3268
3407
|
}
|
|
3269
|
-
function
|
|
3408
|
+
function Jr(e) {
|
|
3270
3409
|
return e.symbol === null ? e.code : `${e.code} ${e.symbol}`;
|
|
3271
3410
|
}
|
|
3272
|
-
function
|
|
3411
|
+
function Y(e) {
|
|
3273
3412
|
return e.map((e) => ({
|
|
3274
3413
|
id: e.code,
|
|
3275
|
-
name:
|
|
3414
|
+
name: Jr(e)
|
|
3276
3415
|
}));
|
|
3277
3416
|
}
|
|
3278
3417
|
//#endregion
|
|
3279
3418
|
//#region src/components/SelectCurrencyFilter.vue
|
|
3280
|
-
var
|
|
3281
|
-
components: { SelectSingleFilter:
|
|
3419
|
+
var Yr = {
|
|
3420
|
+
components: { SelectSingleFilter: kr },
|
|
3282
3421
|
emits: ["update:modelValue", "changed"],
|
|
3283
3422
|
props: {
|
|
3284
3423
|
modelValue: {
|
|
@@ -3311,12 +3450,12 @@ var Kr = {
|
|
|
3311
3450
|
}
|
|
3312
3451
|
},
|
|
3313
3452
|
computed: { items() {
|
|
3314
|
-
return
|
|
3453
|
+
return Y(J(this.currencies));
|
|
3315
3454
|
} }
|
|
3316
3455
|
};
|
|
3317
|
-
function
|
|
3318
|
-
let s =
|
|
3319
|
-
return
|
|
3456
|
+
function Xr(e, t, r, i, a, o) {
|
|
3457
|
+
let s = g("select-single-filter");
|
|
3458
|
+
return p(), n(s, {
|
|
3320
3459
|
items: o.items,
|
|
3321
3460
|
"model-value": r.modelValue,
|
|
3322
3461
|
header: r.header,
|
|
@@ -3336,8 +3475,9 @@ function qr(e, t, r, i, a, o) {
|
|
|
3336
3475
|
"lang"
|
|
3337
3476
|
]);
|
|
3338
3477
|
}
|
|
3339
|
-
var
|
|
3340
|
-
components: { SelectSingleForm:
|
|
3478
|
+
var Zr = /*#__PURE__*/ A(Yr, [["render", Xr]]), Qr = {
|
|
3479
|
+
components: { SelectSingleForm: Ir },
|
|
3480
|
+
mixins: [U],
|
|
3341
3481
|
emits: ["update:modelValue", "changed"],
|
|
3342
3482
|
props: {
|
|
3343
3483
|
modelValue: {
|
|
@@ -3366,34 +3506,40 @@ var Jr = /*#__PURE__*/ k(Kr, [["render", qr]]), Yr = {
|
|
|
3366
3506
|
}
|
|
3367
3507
|
},
|
|
3368
3508
|
computed: { items() {
|
|
3369
|
-
return
|
|
3509
|
+
return Y(J(this.currencies));
|
|
3370
3510
|
} }
|
|
3371
3511
|
};
|
|
3372
|
-
function
|
|
3373
|
-
let
|
|
3374
|
-
return
|
|
3375
|
-
items:
|
|
3512
|
+
function $r(e, t, r, i, a, s) {
|
|
3513
|
+
let c = g("select-single-form");
|
|
3514
|
+
return p(), n(c, {
|
|
3515
|
+
items: s.items,
|
|
3376
3516
|
"model-value": r.modelValue,
|
|
3377
3517
|
label: r.label,
|
|
3378
3518
|
"is-required": r.isRequired,
|
|
3379
3519
|
"with-search": r.withSearch,
|
|
3380
3520
|
lang: r.lang,
|
|
3521
|
+
description: e.description,
|
|
3381
3522
|
"onUpdate:modelValue": t[0] ||= (t) => e.$emit("update:modelValue", t),
|
|
3382
3523
|
onChanged: t[1] ||= (t) => e.$emit("changed")
|
|
3383
|
-
},
|
|
3524
|
+
}, o({ _: 2 }, [e.$slots.description ? {
|
|
3525
|
+
name: "description",
|
|
3526
|
+
fn: S(() => [h(e.$slots, "description")]),
|
|
3527
|
+
key: "0"
|
|
3528
|
+
} : void 0]), 1032, [
|
|
3384
3529
|
"items",
|
|
3385
3530
|
"model-value",
|
|
3386
3531
|
"label",
|
|
3387
3532
|
"is-required",
|
|
3388
3533
|
"with-search",
|
|
3389
|
-
"lang"
|
|
3534
|
+
"lang",
|
|
3535
|
+
"description"
|
|
3390
3536
|
]);
|
|
3391
3537
|
}
|
|
3392
|
-
var
|
|
3393
|
-
function
|
|
3538
|
+
var ei = /*#__PURE__*/ A(Qr, [["render", $r]]);
|
|
3539
|
+
function X(e) {
|
|
3394
3540
|
return !Number.isInteger(e) || e < 0 || e >= 10 ** 15 ? null : e;
|
|
3395
3541
|
}
|
|
3396
|
-
function
|
|
3542
|
+
function Z(e, t) {
|
|
3397
3543
|
if (e === null) return {
|
|
3398
3544
|
whole: "",
|
|
3399
3545
|
fraction: ""
|
|
@@ -3404,25 +3550,25 @@ function q(e, t) {
|
|
|
3404
3550
|
fraction: n.slice(r)
|
|
3405
3551
|
};
|
|
3406
3552
|
}
|
|
3407
|
-
function
|
|
3553
|
+
function ti(e, t, n) {
|
|
3408
3554
|
return e === "" && t === "" ? null : Number((e || "0") + t.padEnd(n, "0"));
|
|
3409
3555
|
}
|
|
3410
|
-
function
|
|
3556
|
+
function ni(e) {
|
|
3411
3557
|
return e.replace(/\D/g, "");
|
|
3412
3558
|
}
|
|
3413
|
-
function
|
|
3414
|
-
return
|
|
3559
|
+
function ri(e, t) {
|
|
3560
|
+
return ni(e).replace(/^0+(?=\d)/, "").slice(0, 15 - t);
|
|
3415
3561
|
}
|
|
3416
|
-
function
|
|
3562
|
+
function ii(e, t) {
|
|
3417
3563
|
return e.replace(/\B(?=(\d{3})+$)/g, t === "en" ? "," : " ");
|
|
3418
3564
|
}
|
|
3419
|
-
function
|
|
3565
|
+
function ai(e) {
|
|
3420
3566
|
return e === "en" ? "." : ",";
|
|
3421
3567
|
}
|
|
3422
|
-
function
|
|
3568
|
+
function oi(e, t) {
|
|
3423
3569
|
return e === "." || e === "," && t !== "en";
|
|
3424
3570
|
}
|
|
3425
|
-
function
|
|
3571
|
+
function si(e, t, n) {
|
|
3426
3572
|
let r = e.trim();
|
|
3427
3573
|
if (!/^\d+([ \u00a0\u202f.,]\d+)*$/.test(r)) return null;
|
|
3428
3574
|
let i = r.match(/[.,]/g) ?? [], a = new Set(i), o = null;
|
|
@@ -3444,14 +3590,14 @@ function ii(e, t, n) {
|
|
|
3444
3590
|
}
|
|
3445
3591
|
//#endregion
|
|
3446
3592
|
//#region src/amountCurrency.js
|
|
3447
|
-
var
|
|
3593
|
+
var ci = {
|
|
3448
3594
|
props: { currencies: {
|
|
3449
3595
|
type: Array,
|
|
3450
3596
|
default: null
|
|
3451
3597
|
} },
|
|
3452
3598
|
computed: {
|
|
3453
3599
|
currencyList() {
|
|
3454
|
-
return
|
|
3600
|
+
return J(this.currencies);
|
|
3455
3601
|
},
|
|
3456
3602
|
activeCurrency() {
|
|
3457
3603
|
return this.currencyList.find((e) => e.code === this.passedCurrency) ?? this.currencyList[0] ?? null;
|
|
@@ -3478,9 +3624,9 @@ var ai = {
|
|
|
3478
3624
|
methods: { syncCurrency() {
|
|
3479
3625
|
!this.isBlocked && this.activeCode !== this.passedCurrency && this.reportCurrency(this.activeCode);
|
|
3480
3626
|
} }
|
|
3481
|
-
},
|
|
3482
|
-
components: { SelectSingle:
|
|
3483
|
-
mixins: [
|
|
3627
|
+
}, li = {
|
|
3628
|
+
components: { SelectSingle: q },
|
|
3629
|
+
mixins: [N],
|
|
3484
3630
|
emits: ["update:modelValue"],
|
|
3485
3631
|
props: {
|
|
3486
3632
|
currencies: {
|
|
@@ -3493,26 +3639,26 @@ var ai = {
|
|
|
3493
3639
|
}
|
|
3494
3640
|
},
|
|
3495
3641
|
setup() {
|
|
3496
|
-
return { labelId:
|
|
3642
|
+
return { labelId: b() };
|
|
3497
3643
|
},
|
|
3498
3644
|
computed: { items() {
|
|
3499
|
-
return
|
|
3645
|
+
return Y(this.currencies);
|
|
3500
3646
|
} }
|
|
3501
|
-
},
|
|
3502
|
-
function
|
|
3503
|
-
let d =
|
|
3504
|
-
return
|
|
3647
|
+
}, ui = { class: "bb:relative bb:flex bb:flex-col bb:justify-center bb:h-full bb:w-full bb:min-w-0" }, di = ["textContent"], fi = ["id", "textContent"];
|
|
3648
|
+
function pi(t, n, o, s, l, u) {
|
|
3649
|
+
let d = g("select-single");
|
|
3650
|
+
return p(), i("div", ui, [u.items.length === 1 ? (p(), i("span", {
|
|
3505
3651
|
key: 0,
|
|
3506
3652
|
class: "bb:truncate bb:px-3",
|
|
3507
|
-
textContent:
|
|
3508
|
-
}, null, 8,
|
|
3509
|
-
id:
|
|
3653
|
+
textContent: y(u.items[0].name)
|
|
3654
|
+
}, null, 8, di)) : u.items.length > 1 ? (p(), i(e, { key: 1 }, [a("span", {
|
|
3655
|
+
id: s.labelId,
|
|
3510
3656
|
class: "bb:sr-only",
|
|
3511
|
-
textContent:
|
|
3512
|
-
}, null, 8,
|
|
3657
|
+
textContent: y(t.texts.currency)
|
|
3658
|
+
}, null, 8, fi), c(d, {
|
|
3513
3659
|
items: u.items,
|
|
3514
3660
|
"model-value": o.modelValue,
|
|
3515
|
-
"labelled-by":
|
|
3661
|
+
"labelled-by": s.labelId,
|
|
3516
3662
|
"with-clear": !1,
|
|
3517
3663
|
"with-arrow": "",
|
|
3518
3664
|
"with-search": "",
|
|
@@ -3525,9 +3671,9 @@ function ui(t, n, o, c, l, u) {
|
|
|
3525
3671
|
"lang"
|
|
3526
3672
|
])], 64)) : r("", !0)]);
|
|
3527
3673
|
}
|
|
3528
|
-
var
|
|
3529
|
-
components: { CrossButton:
|
|
3530
|
-
mixins: [
|
|
3674
|
+
var mi = /*#__PURE__*/ A(li, [["render", pi]]), hi = {
|
|
3675
|
+
components: { CrossButton: P },
|
|
3676
|
+
mixins: [N],
|
|
3531
3677
|
emits: ["update:modelValue", "changed"],
|
|
3532
3678
|
props: {
|
|
3533
3679
|
modelValue: {
|
|
@@ -3546,6 +3692,10 @@ var J = /*#__PURE__*/ k(oi, [["render", ui]]), di = {
|
|
|
3546
3692
|
type: String,
|
|
3547
3693
|
default: null
|
|
3548
3694
|
},
|
|
3695
|
+
describedBy: {
|
|
3696
|
+
type: String,
|
|
3697
|
+
default: null
|
|
3698
|
+
},
|
|
3549
3699
|
withEraser: {
|
|
3550
3700
|
type: Boolean,
|
|
3551
3701
|
default: !0
|
|
@@ -3557,13 +3707,13 @@ var J = /*#__PURE__*/ k(oi, [["render", ui]]), di = {
|
|
|
3557
3707
|
},
|
|
3558
3708
|
data() {
|
|
3559
3709
|
return {
|
|
3560
|
-
...
|
|
3710
|
+
...Z(this.isDisabled ? null : X(this.modelValue), this.digits),
|
|
3561
3711
|
hasFocus: !1
|
|
3562
3712
|
};
|
|
3563
3713
|
},
|
|
3564
3714
|
computed: {
|
|
3565
3715
|
amount() {
|
|
3566
|
-
return
|
|
3716
|
+
return ti(this.whole, this.fraction, this.digits);
|
|
3567
3717
|
},
|
|
3568
3718
|
isEmpty() {
|
|
3569
3719
|
return this.amount === null;
|
|
@@ -3572,14 +3722,14 @@ var J = /*#__PURE__*/ k(oi, [["render", ui]]), di = {
|
|
|
3572
3722
|
return this.isEmpty && !this.hasFocus;
|
|
3573
3723
|
},
|
|
3574
3724
|
groupedWhole() {
|
|
3575
|
-
return
|
|
3725
|
+
return ii(this.whole, this.resolvedLang);
|
|
3576
3726
|
},
|
|
3577
3727
|
separator() {
|
|
3578
|
-
return
|
|
3728
|
+
return ai(this.resolvedLang);
|
|
3579
3729
|
},
|
|
3580
3730
|
fullAmount() {
|
|
3581
3731
|
if (this.isEmpty) return null;
|
|
3582
|
-
let { whole: e, fraction: t } =
|
|
3732
|
+
let { whole: e, fraction: t } = Z(this.amount, this.digits), n = ii(e, this.resolvedLang);
|
|
3583
3733
|
return t === "" ? n : `${n}${this.separator}${t}`;
|
|
3584
3734
|
}
|
|
3585
3735
|
},
|
|
@@ -3599,12 +3749,12 @@ var J = /*#__PURE__*/ k(oi, [["render", ui]]), di = {
|
|
|
3599
3749
|
this.writeAmount(null, t), this.hasFocus = !1;
|
|
3600
3750
|
return;
|
|
3601
3751
|
}
|
|
3602
|
-
let o =
|
|
3752
|
+
let o = X(e);
|
|
3603
3753
|
if (a) {
|
|
3604
3754
|
this.writeAmount(o, t), this.committed = o;
|
|
3605
3755
|
return;
|
|
3606
3756
|
}
|
|
3607
|
-
let s =
|
|
3757
|
+
let s = ti(this.whole, this.fraction, i);
|
|
3608
3758
|
if (e === r || o === s) {
|
|
3609
3759
|
t !== i && this.writeAmount(s, t);
|
|
3610
3760
|
return;
|
|
@@ -3612,7 +3762,7 @@ var J = /*#__PURE__*/ k(oi, [["render", ui]]), di = {
|
|
|
3612
3762
|
this.writeAmount(o, t), this.committed = o;
|
|
3613
3763
|
},
|
|
3614
3764
|
writeAmount(e, t) {
|
|
3615
|
-
let { whole: n, fraction: r } =
|
|
3765
|
+
let { whole: n, fraction: r } = Z(e, t);
|
|
3616
3766
|
this.whole = n, this.fraction = r;
|
|
3617
3767
|
},
|
|
3618
3768
|
applyParts(e, t) {
|
|
@@ -3620,10 +3770,10 @@ var J = /*#__PURE__*/ k(oi, [["render", ui]]), di = {
|
|
|
3620
3770
|
this.whole = e, this.fraction = t, this.amount !== n && this.$emit("update:modelValue", this.amount);
|
|
3621
3771
|
},
|
|
3622
3772
|
onWholeInput(e) {
|
|
3623
|
-
this.applyParts(
|
|
3773
|
+
this.applyParts(ri(e.target.value, this.digits), this.fraction), e.target.value = this.groupedWhole;
|
|
3624
3774
|
},
|
|
3625
3775
|
onFractionInput(e) {
|
|
3626
|
-
let t = e.target, n = t.value, r = t.selectionStart, i =
|
|
3776
|
+
let t = e.target, n = t.value, r = t.selectionStart, i = ni(n).slice(0, this.digits);
|
|
3627
3777
|
if (this.applyParts(this.whole, i), t.value = i, i !== n) {
|
|
3628
3778
|
let e = Math.max(r - (n.length - i.length), 0);
|
|
3629
3779
|
t.setSelectionRange(e, e);
|
|
@@ -3642,7 +3792,7 @@ var J = /*#__PURE__*/ k(oi, [["render", ui]]), di = {
|
|
|
3642
3792
|
onWholeKeydown(e) {
|
|
3643
3793
|
this.holdCaret();
|
|
3644
3794
|
let t = e.metaKey || e.ctrlKey || e.altKey;
|
|
3645
|
-
this.digits > 0 && !t &&
|
|
3795
|
+
this.digits > 0 && !t && oi(e.key, this.resolvedLang) && (e.preventDefault(), this.$refs.fractionInput.focus());
|
|
3646
3796
|
},
|
|
3647
3797
|
onFractionBackspace(e) {
|
|
3648
3798
|
this.fraction === "" && (e.preventDefault(), this.$refs.wholeInput.focus());
|
|
@@ -3654,7 +3804,7 @@ var J = /*#__PURE__*/ k(oi, [["render", ui]]), di = {
|
|
|
3654
3804
|
this.fraction !== "" && (this.fraction = this.padFraction(this.fraction), this.whole = this.whole || "0");
|
|
3655
3805
|
},
|
|
3656
3806
|
onWholePaste(e) {
|
|
3657
|
-
let t =
|
|
3807
|
+
let t = si(e.clipboardData?.getData("text") ?? "", this.resolvedLang, this.digits);
|
|
3658
3808
|
t !== null && (this.applyParts(t.whole, this.padFraction(t.fraction)), this.onWholeFocus());
|
|
3659
3809
|
},
|
|
3660
3810
|
onFractionPaste(e) {
|
|
@@ -3680,53 +3830,56 @@ var J = /*#__PURE__*/ k(oi, [["render", ui]]), di = {
|
|
|
3680
3830
|
this.isUnmounted || this.isDisabled || this.amount === this.committed || (this.committed = this.amount, this.$emit("changed"));
|
|
3681
3831
|
}
|
|
3682
3832
|
}
|
|
3683
|
-
},
|
|
3833
|
+
}, gi = {
|
|
3684
3834
|
key: 0,
|
|
3685
3835
|
class: "bb:flex bb:flex-none bb:items-center bb:mr-2 bb:text-gray-400 bb:select-none"
|
|
3686
|
-
},
|
|
3836
|
+
}, _i = [
|
|
3687
3837
|
"id",
|
|
3688
3838
|
"value",
|
|
3689
3839
|
"disabled",
|
|
3690
3840
|
"aria-label",
|
|
3841
|
+
"aria-describedby",
|
|
3691
3842
|
"title"
|
|
3692
|
-
],
|
|
3843
|
+
], vi = [
|
|
3693
3844
|
"value",
|
|
3694
3845
|
"disabled",
|
|
3695
3846
|
"maxlength",
|
|
3696
3847
|
"placeholder",
|
|
3697
|
-
"aria-label"
|
|
3848
|
+
"aria-label",
|
|
3849
|
+
"aria-describedby"
|
|
3698
3850
|
];
|
|
3699
|
-
function
|
|
3700
|
-
let m =
|
|
3701
|
-
return
|
|
3702
|
-
class:
|
|
3703
|
-
onMousedown: o[18] ||= (...e) =>
|
|
3851
|
+
function yi(t, o, s, c, l, u) {
|
|
3852
|
+
let m = g("cross-button");
|
|
3853
|
+
return p(), i("div", {
|
|
3854
|
+
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 }]),
|
|
3855
|
+
onMousedown: o[18] ||= (...e) => u.onRootMousedown && u.onRootMousedown(...e),
|
|
3704
3856
|
onFocusin: o[19] ||= (e) => l.hasFocus = !0,
|
|
3705
|
-
onFocusout: o[20] ||= (...e) =>
|
|
3857
|
+
onFocusout: o[20] ||= (...e) => u.onFocusOut && u.onFocusOut(...e)
|
|
3706
3858
|
}, [
|
|
3707
|
-
s.prefix ? (
|
|
3859
|
+
s.prefix ? (p(), i("span", gi, y(s.prefix), 1)) : r("", !0),
|
|
3708
3860
|
a("input", {
|
|
3709
3861
|
ref: "wholeInput",
|
|
3710
3862
|
id: s.inputId,
|
|
3711
3863
|
type: "text",
|
|
3712
3864
|
inputmode: "decimal",
|
|
3713
3865
|
autocomplete: "off",
|
|
3714
|
-
value:
|
|
3866
|
+
value: u.groupedWhole,
|
|
3715
3867
|
disabled: s.isDisabled,
|
|
3716
3868
|
"aria-label": s.prefix,
|
|
3717
|
-
|
|
3869
|
+
"aria-describedby": s.describedBy,
|
|
3870
|
+
title: u.fullAmount,
|
|
3718
3871
|
class: "bb:flex-1 bb:w-full bb:min-w-0 bb:bg-transparent bb:text-right bb:text-ellipsis bb:tabular-nums bb:focus:outline-hidden",
|
|
3719
|
-
onInput: o[0] ||= (...e) =>
|
|
3720
|
-
onFocus: o[1] ||= (...e) =>
|
|
3721
|
-
onClick: o[2] ||= (...e) =>
|
|
3722
|
-
onKeydown: [o[3] ||= (...e) =>
|
|
3723
|
-
onKeyup: o[5] ||= (...e) =>
|
|
3724
|
-
onSelect: o[6] ||= (...e) =>
|
|
3725
|
-
onPaste: o[7] ||=
|
|
3726
|
-
onDragstart: o[8] ||=
|
|
3727
|
-
onDrop: o[9] ||=
|
|
3728
|
-
}, null, 40,
|
|
3729
|
-
s.digits > 0 ? (
|
|
3872
|
+
onInput: o[0] ||= (...e) => u.onWholeInput && u.onWholeInput(...e),
|
|
3873
|
+
onFocus: o[1] ||= (...e) => u.onWholeFocus && u.onWholeFocus(...e),
|
|
3874
|
+
onClick: o[2] ||= (...e) => u.holdCaret && u.holdCaret(...e),
|
|
3875
|
+
onKeydown: [o[3] ||= (...e) => u.onWholeKeydown && u.onWholeKeydown(...e), o[4] ||= w((...e) => u.commit && u.commit(...e), ["enter"])],
|
|
3876
|
+
onKeyup: o[5] ||= (...e) => u.holdCaret && u.holdCaret(...e),
|
|
3877
|
+
onSelect: o[6] ||= (...e) => u.holdCaret && u.holdCaret(...e),
|
|
3878
|
+
onPaste: o[7] ||= T((...e) => u.onWholePaste && u.onWholePaste(...e), ["prevent"]),
|
|
3879
|
+
onDragstart: o[8] ||= T(() => {}, ["prevent"]),
|
|
3880
|
+
onDrop: o[9] ||= T(() => {}, ["prevent"])
|
|
3881
|
+
}, null, 40, _i),
|
|
3882
|
+
s.digits > 0 ? (p(), i(e, { key: 1 }, [C(a("span", { class: "bb:flex bb:items-center bb:text-gray-500" }, y(u.separator), 513), [[x, !u.isCollapsed]]), C(a("input", {
|
|
3730
3883
|
ref: "fractionInput",
|
|
3731
3884
|
type: "text",
|
|
3732
3885
|
inputmode: "numeric",
|
|
@@ -3736,23 +3889,24 @@ function hi(t, o, s, c, l, p) {
|
|
|
3736
3889
|
maxlength: s.digits,
|
|
3737
3890
|
placeholder: "0".repeat(s.digits),
|
|
3738
3891
|
"aria-label": t.texts.amountFraction,
|
|
3739
|
-
|
|
3892
|
+
"aria-describedby": s.describedBy,
|
|
3893
|
+
style: f({ width: `calc(${s.digits}ch + 2px)` }),
|
|
3740
3894
|
class: "bb:flex-none bb:bg-transparent bb:tabular-nums bb:placeholder-gray-400 bb:focus:outline-hidden",
|
|
3741
|
-
onInput: o[10] ||= (...e) =>
|
|
3742
|
-
onBlur: o[11] ||= (...e) =>
|
|
3743
|
-
onKeydown: [o[12] ||=
|
|
3744
|
-
onPaste: o[14] ||=
|
|
3745
|
-
onDragstart: o[15] ||=
|
|
3746
|
-
onDrop: o[16] ||=
|
|
3747
|
-
}, null, 44,
|
|
3748
|
-
s.withEraser ? (
|
|
3895
|
+
onInput: o[10] ||= (...e) => u.onFractionInput && u.onFractionInput(...e),
|
|
3896
|
+
onBlur: o[11] ||= (...e) => u.completeParts && u.completeParts(...e),
|
|
3897
|
+
onKeydown: [o[12] ||= w((...e) => u.commit && u.commit(...e), ["enter"]), o[13] ||= w((...e) => u.onFractionBackspace && u.onFractionBackspace(...e), ["backspace"])],
|
|
3898
|
+
onPaste: o[14] ||= T((...e) => u.onFractionPaste && u.onFractionPaste(...e), ["prevent"]),
|
|
3899
|
+
onDragstart: o[15] ||= T(() => {}, ["prevent"]),
|
|
3900
|
+
onDrop: o[16] ||= T(() => {}, ["prevent"])
|
|
3901
|
+
}, null, 44, vi), [[x, !u.isCollapsed]])], 64)) : r("", !0),
|
|
3902
|
+
s.withEraser ? (p(), n(m, {
|
|
3749
3903
|
key: 2,
|
|
3750
3904
|
ref: "eraser",
|
|
3751
3905
|
size: "small",
|
|
3752
3906
|
lang: t.lang,
|
|
3753
|
-
class:
|
|
3754
|
-
onMousedown: o[17] ||=
|
|
3755
|
-
onClicked:
|
|
3907
|
+
class: d(["bb:h-full bb:pr-2 bb:flex-none", { "bb:invisible": u.isEmpty }]),
|
|
3908
|
+
onMousedown: o[17] ||= T(() => {}, ["prevent"]),
|
|
3909
|
+
onClicked: u.erase
|
|
3756
3910
|
}, null, 8, [
|
|
3757
3911
|
"lang",
|
|
3758
3912
|
"class",
|
|
@@ -3760,13 +3914,14 @@ function hi(t, o, s, c, l, p) {
|
|
|
3760
3914
|
])) : r("", !0)
|
|
3761
3915
|
], 34);
|
|
3762
3916
|
}
|
|
3763
|
-
var
|
|
3917
|
+
var bi = /*#__PURE__*/ A(hi, [["render", yi]]), xi = {
|
|
3764
3918
|
components: {
|
|
3765
|
-
AmountCurrency:
|
|
3766
|
-
AmountInput:
|
|
3767
|
-
Dot:
|
|
3919
|
+
AmountCurrency: mi,
|
|
3920
|
+
AmountInput: bi,
|
|
3921
|
+
Dot: j,
|
|
3922
|
+
FieldDescription: W
|
|
3768
3923
|
},
|
|
3769
|
-
mixins: [
|
|
3924
|
+
mixins: [ci, U],
|
|
3770
3925
|
emits: ["update:modelValue", "changed"],
|
|
3771
3926
|
props: {
|
|
3772
3927
|
modelValue: {
|
|
@@ -3791,11 +3946,11 @@ var Y = /*#__PURE__*/ k(di, [["render", hi]]), gi = {
|
|
|
3791
3946
|
}
|
|
3792
3947
|
},
|
|
3793
3948
|
setup() {
|
|
3794
|
-
return { inputId:
|
|
3949
|
+
return { inputId: b() };
|
|
3795
3950
|
},
|
|
3796
3951
|
computed: {
|
|
3797
3952
|
passedAmount() {
|
|
3798
|
-
return
|
|
3953
|
+
return X(this.modelValue?.amount);
|
|
3799
3954
|
},
|
|
3800
3955
|
passedCurrency() {
|
|
3801
3956
|
return this.modelValue?.currency ?? null;
|
|
@@ -3818,48 +3973,60 @@ var Y = /*#__PURE__*/ k(di, [["render", hi]]), gi = {
|
|
|
3818
3973
|
this.reportCurrency(e), this.passedAmount !== null && this.$emit("changed");
|
|
3819
3974
|
}
|
|
3820
3975
|
}
|
|
3821
|
-
},
|
|
3822
|
-
function
|
|
3823
|
-
let
|
|
3824
|
-
return
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
"
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
|
|
3857
|
-
|
|
3858
|
-
|
|
3976
|
+
}, Si = { class: "bb-dashboard-ui" }, Ci = { class: "bb:flex bb:items-center" }, wi = ["for", "textContent"], Ti = { class: "bb:mt-1 bb:flex bb:gap-3" }, Ei = { class: "bb:flex-1 bb:min-w-0 bb:h-9.5 bb:rounded-md bb:border bb:border-gray-300 bb:bg-white bb:text-sm bb:leading-5 bb:shadow-xs bb:[--bb-field-radius:0.375rem]" }, Di = { class: "bb:w-24 bb:flex-none bb:h-9.5 bb:rounded-md bb:border bb:border-gray-300 bb:bg-white bb:text-sm bb:shadow-xs bb:[--bb-field-radius:0.375rem]" };
|
|
3977
|
+
function Oi(e, t, o, l, u, d) {
|
|
3978
|
+
let f = g("dot"), m = g("amount-input"), _ = g("amount-currency"), v = g("field-description");
|
|
3979
|
+
return p(), i("div", Si, [
|
|
3980
|
+
a("div", Ci, [a("label", {
|
|
3981
|
+
for: l.inputId,
|
|
3982
|
+
class: "bb:block bb:text-sm bb:font-medium bb:leading-5 bb:text-gray-700",
|
|
3983
|
+
textContent: y(o.label)
|
|
3984
|
+
}, null, 8, wi), C(c(f, {
|
|
3985
|
+
color: "red",
|
|
3986
|
+
class: "bb:ml-2"
|
|
3987
|
+
}, null, 512), [[x, o.isRequired]])]),
|
|
3988
|
+
a("div", Ti, [a("div", Ei, [c(m, {
|
|
3989
|
+
"model-value": d.passedAmount,
|
|
3990
|
+
digits: e.fractionDigits,
|
|
3991
|
+
"input-id": l.inputId,
|
|
3992
|
+
"described-by": e.descriptionId(l.inputId),
|
|
3993
|
+
"with-eraser": o.withEraser,
|
|
3994
|
+
"is-disabled": e.isBlocked,
|
|
3995
|
+
lang: o.lang,
|
|
3996
|
+
"onUpdate:modelValue": d.reportAmount,
|
|
3997
|
+
onChanged: t[0] ||= (t) => e.$emit("changed")
|
|
3998
|
+
}, null, 8, [
|
|
3999
|
+
"model-value",
|
|
4000
|
+
"digits",
|
|
4001
|
+
"input-id",
|
|
4002
|
+
"described-by",
|
|
4003
|
+
"with-eraser",
|
|
4004
|
+
"is-disabled",
|
|
4005
|
+
"lang",
|
|
4006
|
+
"onUpdate:modelValue"
|
|
4007
|
+
])]), a("div", Di, [c(_, {
|
|
4008
|
+
currencies: e.currencyList,
|
|
4009
|
+
"model-value": e.activeCode,
|
|
4010
|
+
lang: o.lang,
|
|
4011
|
+
"onUpdate:modelValue": d.chooseCurrency
|
|
4012
|
+
}, null, 8, [
|
|
4013
|
+
"currencies",
|
|
4014
|
+
"model-value",
|
|
4015
|
+
"lang",
|
|
4016
|
+
"onUpdate:modelValue"
|
|
4017
|
+
])])]),
|
|
4018
|
+
e.hasDescription() ? (p(), n(v, {
|
|
4019
|
+
key: 0,
|
|
4020
|
+
id: e.descriptionId(l.inputId)
|
|
4021
|
+
}, {
|
|
4022
|
+
default: S(() => [h(e.$slots, "description", {}, () => [s(y(e.description), 1)])]),
|
|
4023
|
+
_: 3
|
|
4024
|
+
}, 8, ["id"])) : r("", !0)
|
|
4025
|
+
]);
|
|
3859
4026
|
}
|
|
3860
|
-
var
|
|
4027
|
+
var ki = /*#__PURE__*/ A(xi, [["render", Oi]]), Ai = {
|
|
3861
4028
|
inheritAttrs: !1,
|
|
3862
|
-
mixins: [
|
|
4029
|
+
mixins: [N, ci],
|
|
3863
4030
|
emits: [
|
|
3864
4031
|
"update:amountFrom",
|
|
3865
4032
|
"update:amountTo",
|
|
@@ -3885,10 +4052,10 @@ var wi = /*#__PURE__*/ k(gi, [["render", Ci]]), Ti = {
|
|
|
3885
4052
|
return this.currency;
|
|
3886
4053
|
},
|
|
3887
4054
|
passedFrom() {
|
|
3888
|
-
return
|
|
4055
|
+
return X(this.amountFrom);
|
|
3889
4056
|
},
|
|
3890
4057
|
passedTo() {
|
|
3891
|
-
return
|
|
4058
|
+
return X(this.amountTo);
|
|
3892
4059
|
},
|
|
3893
4060
|
from() {
|
|
3894
4061
|
return {
|
|
@@ -3925,19 +4092,19 @@ var wi = /*#__PURE__*/ k(gi, [["render", Ci]]), Ti = {
|
|
|
3925
4092
|
}
|
|
3926
4093
|
}
|
|
3927
4094
|
};
|
|
3928
|
-
function
|
|
3929
|
-
return
|
|
4095
|
+
function ji(e, t, n, r, i, a) {
|
|
4096
|
+
return h(e.$slots, "default", {
|
|
3930
4097
|
from: a.from,
|
|
3931
4098
|
to: a.to,
|
|
3932
4099
|
currency: a.currencyField
|
|
3933
4100
|
});
|
|
3934
4101
|
}
|
|
3935
|
-
var
|
|
4102
|
+
var Mi = /*#__PURE__*/ A(Ai, [["render", ji]]), Ni = {
|
|
3936
4103
|
components: {
|
|
3937
|
-
AmountCurrency:
|
|
3938
|
-
AmountInput:
|
|
3939
|
-
AmountInterval:
|
|
3940
|
-
ElementHeader:
|
|
4104
|
+
AmountCurrency: mi,
|
|
4105
|
+
AmountInput: bi,
|
|
4106
|
+
AmountInterval: Mi,
|
|
4107
|
+
ElementHeader: M
|
|
3941
4108
|
},
|
|
3942
4109
|
emits: [
|
|
3943
4110
|
"update:amountFrom",
|
|
@@ -3987,13 +4154,13 @@ var Di = /*#__PURE__*/ k(Ti, [["render", Ei]]), Oi = {
|
|
|
3987
4154
|
default: null
|
|
3988
4155
|
}
|
|
3989
4156
|
}
|
|
3990
|
-
},
|
|
4157
|
+
}, Pi = { class: "bb-dashboard-ui bb:flex bb:w-fit bb:h-18 bb:border bb:border-gray-200" }, Fi = { class: "bb:flex bb:border bb:border-white" }, Ii = { class: "bb:flex bb:flex-col bb:bg-white bb:h-full" }, Li = { class: "bb:flex bb:h-full bb:divide-x bb:divide-gray-200" }, Ri = { class: "bb:w-46 bb:flex-none bb:text-sm" }, zi = { class: "bb:w-46 bb:flex-none bb:text-sm" }, Bi = {
|
|
3991
4158
|
key: 0,
|
|
3992
4159
|
class: "bb:w-24 bb:flex-none bb:text-sm"
|
|
3993
4160
|
};
|
|
3994
|
-
function
|
|
3995
|
-
let u =
|
|
3996
|
-
return
|
|
4161
|
+
function Vi(e, t, n, o, s, l) {
|
|
4162
|
+
let u = g("element-header"), d = g("amount-input"), f = g("amount-currency"), m = g("amount-interval");
|
|
4163
|
+
return p(), i("div", Pi, [a("div", Fi, [a("div", Ii, [c(u, {
|
|
3997
4164
|
text: n.header ?? "",
|
|
3998
4165
|
"is-required": n.isRequired,
|
|
3999
4166
|
"is-loading": n.isLoading
|
|
@@ -4001,7 +4168,7 @@ function Ii(e, t, n, o, c, l) {
|
|
|
4001
4168
|
"text",
|
|
4002
4169
|
"is-required",
|
|
4003
4170
|
"is-loading"
|
|
4004
|
-
]),
|
|
4171
|
+
]), c(m, {
|
|
4005
4172
|
"amount-from": n.amountFrom,
|
|
4006
4173
|
"amount-to": n.amountTo,
|
|
4007
4174
|
currency: n.currency,
|
|
@@ -4012,8 +4179,8 @@ function Ii(e, t, n, o, c, l) {
|
|
|
4012
4179
|
"onUpdate:currency": t[2] ||= (t) => e.$emit("update:currency", t),
|
|
4013
4180
|
onChanged: t[3] ||= (t) => e.$emit("changed")
|
|
4014
4181
|
}, {
|
|
4015
|
-
default:
|
|
4016
|
-
a("div",
|
|
4182
|
+
default: S(({ from: e, to: t, currency: o }) => [a("div", Li, [
|
|
4183
|
+
a("div", Ri, [c(d, {
|
|
4017
4184
|
"model-value": e.value,
|
|
4018
4185
|
digits: o.digits,
|
|
4019
4186
|
prefix: e.prefix,
|
|
@@ -4032,7 +4199,7 @@ function Ii(e, t, n, o, c, l) {
|
|
|
4032
4199
|
"onUpdate:modelValue",
|
|
4033
4200
|
"onChanged"
|
|
4034
4201
|
])]),
|
|
4035
|
-
a("div",
|
|
4202
|
+
a("div", zi, [c(d, {
|
|
4036
4203
|
"model-value": t.value,
|
|
4037
4204
|
digits: o.digits,
|
|
4038
4205
|
prefix: t.prefix,
|
|
@@ -4051,7 +4218,7 @@ function Ii(e, t, n, o, c, l) {
|
|
|
4051
4218
|
"onUpdate:modelValue",
|
|
4052
4219
|
"onChanged"
|
|
4053
4220
|
])]),
|
|
4054
|
-
n.withCurrency ? (
|
|
4221
|
+
n.withCurrency ? (p(), i("div", Bi, [c(f, {
|
|
4055
4222
|
currencies: o.list,
|
|
4056
4223
|
"model-value": o.code,
|
|
4057
4224
|
lang: n.lang,
|
|
@@ -4072,13 +4239,15 @@ function Ii(e, t, n, o, c, l) {
|
|
|
4072
4239
|
"lang"
|
|
4073
4240
|
])])])]);
|
|
4074
4241
|
}
|
|
4075
|
-
var
|
|
4242
|
+
var Hi = /*#__PURE__*/ A(Ni, [["render", Vi]]), Ui = {
|
|
4076
4243
|
components: {
|
|
4077
|
-
AmountCurrency:
|
|
4078
|
-
AmountInput:
|
|
4079
|
-
AmountInterval:
|
|
4080
|
-
Dot:
|
|
4244
|
+
AmountCurrency: mi,
|
|
4245
|
+
AmountInput: bi,
|
|
4246
|
+
AmountInterval: Mi,
|
|
4247
|
+
Dot: j,
|
|
4248
|
+
FieldDescription: W
|
|
4081
4249
|
},
|
|
4250
|
+
mixins: [U],
|
|
4082
4251
|
emits: [
|
|
4083
4252
|
"update:amountFrom",
|
|
4084
4253
|
"update:amountTo",
|
|
@@ -4120,95 +4289,106 @@ var Li = /*#__PURE__*/ k(Oi, [["render", Ii]]), Ri = {
|
|
|
4120
4289
|
}
|
|
4121
4290
|
},
|
|
4122
4291
|
setup() {
|
|
4123
|
-
return { labelId:
|
|
4292
|
+
return { labelId: b() };
|
|
4124
4293
|
}
|
|
4125
|
-
},
|
|
4126
|
-
function
|
|
4127
|
-
let
|
|
4128
|
-
return
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4294
|
+
}, Wi = { class: "bb-dashboard-ui" }, Gi = { class: "bb:flex bb:items-center" }, Ki = ["id", "textContent"], qi = ["aria-labelledby", "aria-describedby"], Ji = { class: "bb:min-w-0 bb:h-9.5 bb:rounded-md bb:border bb:border-gray-300 bb:bg-white bb:text-sm bb:shadow-xs bb:[--bb-field-radius:0.375rem]" }, Yi = { class: "bb:min-w-0 bb:h-9.5 bb:rounded-md bb:border bb:border-gray-300 bb:bg-white bb:text-sm bb:shadow-xs bb:[--bb-field-radius:0.375rem]" }, Xi = { class: "bb:h-9.5 bb:rounded-md bb:border bb:border-gray-300 bb:bg-white bb:text-sm bb:shadow-xs bb:[--bb-field-radius:0.375rem]" };
|
|
4295
|
+
function Zi(e, t, o, l, u, d) {
|
|
4296
|
+
let f = g("dot"), m = g("amount-input"), _ = g("amount-currency"), v = g("amount-interval"), b = g("field-description");
|
|
4297
|
+
return p(), i("div", Wi, [
|
|
4298
|
+
a("div", Gi, [a("span", {
|
|
4299
|
+
id: l.labelId,
|
|
4300
|
+
class: "bb:block bb:text-sm bb:font-medium bb:leading-5 bb:text-gray-700",
|
|
4301
|
+
textContent: y(o.label ?? "")
|
|
4302
|
+
}, null, 8, Ki), C(c(f, {
|
|
4303
|
+
color: "red",
|
|
4304
|
+
class: "bb:ml-2"
|
|
4305
|
+
}, null, 512), [[x, o.isRequired]])]),
|
|
4306
|
+
a("div", {
|
|
4307
|
+
class: "bb:mt-1 bb:grid bb:grid-cols-[1fr_1fr_6rem] bb:gap-3",
|
|
4308
|
+
role: "group",
|
|
4309
|
+
"aria-labelledby": l.labelId,
|
|
4310
|
+
"aria-describedby": e.descriptionId(l.labelId)
|
|
4311
|
+
}, [c(v, {
|
|
4312
|
+
"amount-from": o.amountFrom,
|
|
4313
|
+
"amount-to": o.amountTo,
|
|
4314
|
+
currency: o.currency,
|
|
4315
|
+
currencies: o.currencies,
|
|
4316
|
+
lang: o.lang,
|
|
4317
|
+
"onUpdate:amountFrom": t[0] ||= (t) => e.$emit("update:amountFrom", t),
|
|
4318
|
+
"onUpdate:amountTo": t[1] ||= (t) => e.$emit("update:amountTo", t),
|
|
4319
|
+
"onUpdate:currency": t[2] ||= (t) => e.$emit("update:currency", t),
|
|
4320
|
+
onChanged: t[3] ||= (t) => e.$emit("changed")
|
|
4321
|
+
}, {
|
|
4322
|
+
default: S(({ from: e, to: t, currency: n }) => [
|
|
4323
|
+
a("div", Ji, [c(m, {
|
|
4324
|
+
"model-value": e.value,
|
|
4325
|
+
digits: n.digits,
|
|
4326
|
+
prefix: e.prefix,
|
|
4327
|
+
"with-eraser": o.withEraser,
|
|
4328
|
+
"is-disabled": n.isBlocked,
|
|
4329
|
+
lang: o.lang,
|
|
4330
|
+
"onUpdate:modelValue": e.update,
|
|
4331
|
+
onChanged: e.changed
|
|
4332
|
+
}, null, 8, [
|
|
4333
|
+
"model-value",
|
|
4334
|
+
"digits",
|
|
4335
|
+
"prefix",
|
|
4336
|
+
"with-eraser",
|
|
4337
|
+
"is-disabled",
|
|
4338
|
+
"lang",
|
|
4339
|
+
"onUpdate:modelValue",
|
|
4340
|
+
"onChanged"
|
|
4341
|
+
])]),
|
|
4342
|
+
a("div", Yi, [c(m, {
|
|
4343
|
+
"model-value": t.value,
|
|
4344
|
+
digits: n.digits,
|
|
4345
|
+
prefix: t.prefix,
|
|
4346
|
+
"with-eraser": o.withEraser,
|
|
4347
|
+
"is-disabled": n.isBlocked,
|
|
4348
|
+
lang: o.lang,
|
|
4349
|
+
"onUpdate:modelValue": t.update,
|
|
4350
|
+
onChanged: t.changed
|
|
4351
|
+
}, null, 8, [
|
|
4352
|
+
"model-value",
|
|
4353
|
+
"digits",
|
|
4354
|
+
"prefix",
|
|
4355
|
+
"with-eraser",
|
|
4356
|
+
"is-disabled",
|
|
4357
|
+
"lang",
|
|
4358
|
+
"onUpdate:modelValue",
|
|
4359
|
+
"onChanged"
|
|
4360
|
+
])]),
|
|
4361
|
+
a("div", Xi, [c(_, {
|
|
4362
|
+
currencies: n.list,
|
|
4363
|
+
"model-value": n.code,
|
|
4364
|
+
lang: o.lang,
|
|
4365
|
+
"onUpdate:modelValue": n.choose
|
|
4366
|
+
}, null, 8, [
|
|
4367
|
+
"currencies",
|
|
4368
|
+
"model-value",
|
|
4369
|
+
"lang",
|
|
4370
|
+
"onUpdate:modelValue"
|
|
4371
|
+
])])
|
|
4372
|
+
]),
|
|
4373
|
+
_: 1
|
|
4374
|
+
}, 8, [
|
|
4375
|
+
"amount-from",
|
|
4376
|
+
"amount-to",
|
|
4377
|
+
"currency",
|
|
4378
|
+
"currencies",
|
|
4379
|
+
"lang"
|
|
4380
|
+
])], 8, qi),
|
|
4381
|
+
e.hasDescription() ? (p(), n(b, {
|
|
4382
|
+
key: 0,
|
|
4383
|
+
id: e.descriptionId(l.labelId)
|
|
4384
|
+
}, {
|
|
4385
|
+
default: S(() => [h(e.$slots, "description", {}, () => [s(y(e.description), 1)])]),
|
|
4386
|
+
_: 3
|
|
4387
|
+
}, 8, ["id"])) : r("", !0)
|
|
4388
|
+
]);
|
|
4209
4389
|
}
|
|
4210
|
-
var
|
|
4211
|
-
mixins: [
|
|
4390
|
+
var Qi = /*#__PURE__*/ A(Ui, [["render", Zi]]), $i = {
|
|
4391
|
+
mixins: [k],
|
|
4212
4392
|
props: {
|
|
4213
4393
|
text: {
|
|
4214
4394
|
type: String,
|
|
@@ -4217,17 +4397,17 @@ var qi = /*#__PURE__*/ k(Ri, [["render", Ki]]), Ji = {
|
|
|
4217
4397
|
color: {
|
|
4218
4398
|
type: String,
|
|
4219
4399
|
required: !0,
|
|
4220
|
-
validator:
|
|
4400
|
+
validator: O
|
|
4221
4401
|
}
|
|
4222
4402
|
}
|
|
4223
|
-
},
|
|
4224
|
-
function
|
|
4225
|
-
return
|
|
4226
|
-
class:
|
|
4227
|
-
textContent:
|
|
4228
|
-
}, null, 10,
|
|
4229
|
-
}
|
|
4230
|
-
var
|
|
4403
|
+
}, ea = ["textContent"];
|
|
4404
|
+
function ta(e, t, n, r, a, o) {
|
|
4405
|
+
return p(), i("span", {
|
|
4406
|
+
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")]),
|
|
4407
|
+
textContent: y(n.text)
|
|
4408
|
+
}, null, 10, ea);
|
|
4409
|
+
}
|
|
4410
|
+
var na = /*#__PURE__*/ A($i, [["render", ta]]), ra = {
|
|
4231
4411
|
props: {
|
|
4232
4412
|
messages: {
|
|
4233
4413
|
type: [Object, Array],
|
|
@@ -4247,34 +4427,38 @@ var Zi = /*#__PURE__*/ k(Ji, [["render", Xi]]), Qi = {
|
|
|
4247
4427
|
return this.type === "dangerous";
|
|
4248
4428
|
}
|
|
4249
4429
|
}
|
|
4250
|
-
},
|
|
4251
|
-
function
|
|
4252
|
-
return l.hasErrors ? (
|
|
4430
|
+
}, ia = { class: "bb:flex" }, aa = { class: "bb:shrink-0" }, oa = { class: "bb:ml-3" }, sa = ["textContent"];
|
|
4431
|
+
function ca(t, n, o, s, c, l) {
|
|
4432
|
+
return l.hasErrors ? (p(), i("div", {
|
|
4253
4433
|
key: 0,
|
|
4254
|
-
class:
|
|
4255
|
-
}, [a("div",
|
|
4256
|
-
class:
|
|
4434
|
+
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"])
|
|
4435
|
+
}, [a("div", ia, [a("div", aa, [(p(), i("svg", {
|
|
4436
|
+
class: d(["bb:h-5 bb:w-5", l.isDangerous ? "bb:text-red-400" : "bb:text-yellow-400"]),
|
|
4257
4437
|
viewBox: "0 0 20 20",
|
|
4258
4438
|
fill: "currentColor"
|
|
4259
4439
|
}, [...n[0] ||= [a("path", {
|
|
4260
4440
|
"fill-rule": "evenodd",
|
|
4261
4441
|
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",
|
|
4262
4442
|
"clip-rule": "evenodd"
|
|
4263
|
-
}, null, -1)]], 2))]), a("div",
|
|
4264
|
-
class:
|
|
4443
|
+
}, null, -1)]], 2))]), a("div", oa, [(p(!0), i(e, null, m(o.messages, (e, t) => (p(), i("p", {
|
|
4444
|
+
class: d(["bb:text-sm bb:leading-5", l.isDangerous ? "bb:text-red-700" : "bb:text-yellow-700"]),
|
|
4265
4445
|
key: t,
|
|
4266
|
-
textContent:
|
|
4267
|
-
}, null, 10,
|
|
4446
|
+
textContent: y(e)
|
|
4447
|
+
}, null, 10, sa))), 128))])])], 2)) : r("", !0);
|
|
4268
4448
|
}
|
|
4269
|
-
var
|
|
4449
|
+
var la = /*#__PURE__*/ A(ra, [["render", ca]]), ua = [
|
|
4270
4450
|
"text",
|
|
4271
4451
|
"email",
|
|
4272
4452
|
"password",
|
|
4273
4453
|
"tel",
|
|
4274
4454
|
"url",
|
|
4275
4455
|
"search"
|
|
4276
|
-
],
|
|
4277
|
-
components: {
|
|
4456
|
+
], da = {
|
|
4457
|
+
components: {
|
|
4458
|
+
Dot: j,
|
|
4459
|
+
FieldDescription: W
|
|
4460
|
+
},
|
|
4461
|
+
mixins: [U],
|
|
4278
4462
|
inheritAttrs: !1,
|
|
4279
4463
|
props: {
|
|
4280
4464
|
modelValue: {
|
|
@@ -4288,7 +4472,7 @@ var ia = /*#__PURE__*/ k(Qi, [["render", ra]]), aa = [
|
|
|
4288
4472
|
type: {
|
|
4289
4473
|
type: String,
|
|
4290
4474
|
default: "text",
|
|
4291
|
-
validator: (e) =>
|
|
4475
|
+
validator: (e) => ua.includes(e)
|
|
4292
4476
|
},
|
|
4293
4477
|
isRequired: {
|
|
4294
4478
|
type: Boolean,
|
|
@@ -4297,7 +4481,7 @@ var ia = /*#__PURE__*/ k(Qi, [["render", ra]]), aa = [
|
|
|
4297
4481
|
},
|
|
4298
4482
|
emits: ["update:modelValue"],
|
|
4299
4483
|
setup() {
|
|
4300
|
-
return { generatedId:
|
|
4484
|
+
return { generatedId: b() };
|
|
4301
4485
|
},
|
|
4302
4486
|
computed: {
|
|
4303
4487
|
value: {
|
|
@@ -4309,13 +4493,17 @@ var ia = /*#__PURE__*/ k(Qi, [["render", ra]]), aa = [
|
|
|
4309
4493
|
}
|
|
4310
4494
|
},
|
|
4311
4495
|
inputType() {
|
|
4312
|
-
return
|
|
4496
|
+
return ua.includes(this.type) ? this.type : "text";
|
|
4313
4497
|
}
|
|
4314
4498
|
},
|
|
4315
4499
|
methods: {
|
|
4316
4500
|
inputId() {
|
|
4317
4501
|
return this.$attrs.id ?? this.generatedId;
|
|
4318
4502
|
},
|
|
4503
|
+
inputDescribedBy() {
|
|
4504
|
+
let e = [this.$attrs["aria-describedby"], this.descriptionId(this.inputId())].filter(Boolean);
|
|
4505
|
+
return e.length > 0 ? e.join(" ") : null;
|
|
4506
|
+
},
|
|
4319
4507
|
inputAttrs() {
|
|
4320
4508
|
return Object.fromEntries(Object.entries(this.$attrs).filter(([e]) => ![
|
|
4321
4509
|
"class",
|
|
@@ -4324,26 +4512,41 @@ var ia = /*#__PURE__*/ k(Qi, [["render", ra]]), aa = [
|
|
|
4324
4512
|
].includes(e)));
|
|
4325
4513
|
}
|
|
4326
4514
|
}
|
|
4327
|
-
},
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
class: "bb
|
|
4336
|
-
|
|
4337
|
-
},
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
}
|
|
4346
|
-
|
|
4515
|
+
}, fa = { class: "bb:flex bb:items-center" }, pa = ["for", "textContent"], ma = [
|
|
4516
|
+
"id",
|
|
4517
|
+
"aria-describedby",
|
|
4518
|
+
"type"
|
|
4519
|
+
];
|
|
4520
|
+
function ha(e, t, o, l, m, _) {
|
|
4521
|
+
let v = g("dot"), b = g("field-description");
|
|
4522
|
+
return p(), i("div", {
|
|
4523
|
+
class: d(["bb-dashboard-ui", e.$attrs.class]),
|
|
4524
|
+
style: f(e.$attrs.style)
|
|
4525
|
+
}, [
|
|
4526
|
+
a("div", fa, [a("label", {
|
|
4527
|
+
for: _.inputId(),
|
|
4528
|
+
class: "bb:block bb:text-sm bb:font-medium bb:leading-5 bb:text-gray-700",
|
|
4529
|
+
textContent: y(o.label)
|
|
4530
|
+
}, null, 8, pa), C(c(v, {
|
|
4531
|
+
color: "red",
|
|
4532
|
+
class: "bb:ml-2"
|
|
4533
|
+
}, null, 512), [[x, o.isRequired]])]),
|
|
4534
|
+
C(a("input", u({ "onUpdate:modelValue": t[0] ||= (e) => _.value = e }, { ..._.inputAttrs() }, {
|
|
4535
|
+
id: _.inputId(),
|
|
4536
|
+
"aria-describedby": _.inputDescribedBy(),
|
|
4537
|
+
type: _.inputType,
|
|
4538
|
+
class: "bb:mt-1 bb:block bb:w-full bb:rounded-md bb:border bb:border-gray-300 bb:bg-white bb:px-3 bb:py-2 bb:text-sm bb:leading-5 bb:shadow-xs bb:focus:focus-ring"
|
|
4539
|
+
}), null, 16, ma), [[ee, _.value]]),
|
|
4540
|
+
e.hasDescription() ? (p(), n(b, {
|
|
4541
|
+
key: 0,
|
|
4542
|
+
id: e.descriptionId(_.inputId())
|
|
4543
|
+
}, {
|
|
4544
|
+
default: S(() => [h(e.$slots, "description", {}, () => [s(y(e.description), 1)])]),
|
|
4545
|
+
_: 3
|
|
4546
|
+
}, 8, ["id"])) : r("", !0)
|
|
4547
|
+
], 6);
|
|
4548
|
+
}
|
|
4549
|
+
var ga = /*#__PURE__*/ A(da, [["render", ha]]), _a = {}, va = {
|
|
4347
4550
|
class: "bb:w-4 bb:h-4",
|
|
4348
4551
|
fill: "none",
|
|
4349
4552
|
stroke: "currentColor",
|
|
@@ -4353,8 +4556,8 @@ var da = /*#__PURE__*/ k(oa, [["render", ua]]), fa = {}, pa = {
|
|
|
4353
4556
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4354
4557
|
"aria-hidden": "true"
|
|
4355
4558
|
};
|
|
4356
|
-
function
|
|
4357
|
-
return
|
|
4559
|
+
function ya(e, t, n, r, o, s) {
|
|
4560
|
+
return p(), i("svg", va, [...t[0] ||= [
|
|
4358
4561
|
a("circle", {
|
|
4359
4562
|
cx: "12",
|
|
4360
4563
|
cy: "12",
|
|
@@ -4376,7 +4579,7 @@ function ma(e, t, n, r, o, s) {
|
|
|
4376
4579
|
}, null, -1)
|
|
4377
4580
|
]]);
|
|
4378
4581
|
}
|
|
4379
|
-
var
|
|
4582
|
+
var ba = /*#__PURE__*/ A(_a, [["render", ya]]), xa = {}, Sa = {
|
|
4380
4583
|
class: "bb:w-4 bb:h-4",
|
|
4381
4584
|
fill: "none",
|
|
4382
4585
|
stroke: "currentColor",
|
|
@@ -4384,15 +4587,15 @@ var ha = /*#__PURE__*/ k(fa, [["render", ma]]), ga = {}, _a = {
|
|
|
4384
4587
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4385
4588
|
"aria-hidden": "true"
|
|
4386
4589
|
};
|
|
4387
|
-
function
|
|
4388
|
-
return
|
|
4590
|
+
function Ca(e, t, n, r, o, s) {
|
|
4591
|
+
return p(), i("svg", Sa, [...t[0] ||= [a("path", {
|
|
4389
4592
|
"stroke-linecap": "round",
|
|
4390
4593
|
"stroke-linejoin": "round",
|
|
4391
4594
|
"stroke-width": "2",
|
|
4392
4595
|
d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
|
|
4393
4596
|
}, null, -1)]]);
|
|
4394
4597
|
}
|
|
4395
|
-
var
|
|
4598
|
+
var wa = /*#__PURE__*/ A(xa, [["render", Ca]]), Ta = {}, Ea = {
|
|
4396
4599
|
class: "bb:w-4 bb:h-4",
|
|
4397
4600
|
fill: "none",
|
|
4398
4601
|
stroke: "currentColor",
|
|
@@ -4400,21 +4603,21 @@ var ya = /*#__PURE__*/ k(ga, [["render", va]]), ba = {}, xa = {
|
|
|
4400
4603
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4401
4604
|
"aria-hidden": "true"
|
|
4402
4605
|
};
|
|
4403
|
-
function
|
|
4404
|
-
return
|
|
4606
|
+
function Da(e, t, n, r, o, s) {
|
|
4607
|
+
return p(), i("svg", Ea, [...t[0] ||= [a("path", {
|
|
4405
4608
|
"stroke-linecap": "round",
|
|
4406
4609
|
"stroke-linejoin": "round",
|
|
4407
4610
|
"stroke-width": "2",
|
|
4408
4611
|
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"
|
|
4409
4612
|
}, null, -1)]]);
|
|
4410
4613
|
}
|
|
4411
|
-
var
|
|
4614
|
+
var Oa = /*#__PURE__*/ A(Ta, [["render", Da]]), ka = ["download", "refresh"], Aa = {
|
|
4412
4615
|
components: {
|
|
4413
|
-
"clock-icon":
|
|
4414
|
-
"download-icon":
|
|
4415
|
-
"refresh-icon":
|
|
4616
|
+
"clock-icon": ba,
|
|
4617
|
+
"download-icon": wa,
|
|
4618
|
+
"refresh-icon": Oa
|
|
4416
4619
|
},
|
|
4417
|
-
mixins: [
|
|
4620
|
+
mixins: [k],
|
|
4418
4621
|
emits: ["click"],
|
|
4419
4622
|
props: {
|
|
4420
4623
|
title: {
|
|
@@ -4424,12 +4627,12 @@ var Ca = /*#__PURE__*/ k(ba, [["render", Sa]]), wa = ["download", "refresh"], Ta
|
|
|
4424
4627
|
icon: {
|
|
4425
4628
|
type: String,
|
|
4426
4629
|
required: !0,
|
|
4427
|
-
validator: (e) =>
|
|
4630
|
+
validator: (e) => ka.includes(e)
|
|
4428
4631
|
},
|
|
4429
4632
|
color: {
|
|
4430
4633
|
type: String,
|
|
4431
4634
|
default: "purple",
|
|
4432
|
-
validator:
|
|
4635
|
+
validator: O
|
|
4433
4636
|
},
|
|
4434
4637
|
isLoading: {
|
|
4435
4638
|
type: Boolean,
|
|
@@ -4444,16 +4647,16 @@ var Ca = /*#__PURE__*/ k(ba, [["render", Sa]]), wa = ["download", "refresh"], Ta
|
|
|
4444
4647
|
let e = this.isLoading && typeof this.loadingText == "string" && this.loadingText !== "" ? this.loadingText : this.title;
|
|
4445
4648
|
return typeof e == "string" ? e : "";
|
|
4446
4649
|
} }
|
|
4447
|
-
},
|
|
4650
|
+
}, ja = [
|
|
4448
4651
|
"title",
|
|
4449
4652
|
"disabled",
|
|
4450
4653
|
"aria-busy"
|
|
4451
|
-
],
|
|
4452
|
-
function
|
|
4453
|
-
let
|
|
4454
|
-
return
|
|
4654
|
+
], Ma = ["textContent"];
|
|
4655
|
+
function Na(e, t, o, s, c, l) {
|
|
4656
|
+
let u = g("clock-icon"), f = g("download-icon"), m = g("refresh-icon");
|
|
4657
|
+
return p(), i("button", {
|
|
4455
4658
|
type: "button",
|
|
4456
|
-
class:
|
|
4659
|
+
class: d(["bb-dashboard-ui bb:inline-flex bb:items-center bb:px-3 bb:py-1.5 bb:rounded-full bb:text-xs bb:font-medium bb:leading-none bb:select-none bb:whitespace-nowrap bb:focus-visible:focus-ring", [
|
|
4457
4660
|
e.colorClass(o.color, "pill"),
|
|
4458
4661
|
o.isLoading ? "bb:opacity-60 bb:cursor-not-allowed" : "bb:cursor-pointer",
|
|
4459
4662
|
o.isLoading ? "" : e.colorClass(o.color, "pillHover")
|
|
@@ -4462,31 +4665,31 @@ function Oa(e, t, o, s, c, l) {
|
|
|
4462
4665
|
disabled: o.isLoading,
|
|
4463
4666
|
"aria-busy": o.isLoading ? "true" : null,
|
|
4464
4667
|
onClick: t[0] ||= (t) => e.$emit("click")
|
|
4465
|
-
}, [o.isLoading ? (
|
|
4668
|
+
}, [o.isLoading ? (p(), n(u, {
|
|
4466
4669
|
key: 0,
|
|
4467
4670
|
class: "bb:pointer-events-none bb:cursor-default"
|
|
4468
|
-
})) : o.icon === "download" ? (
|
|
4671
|
+
})) : o.icon === "download" ? (p(), n(f, {
|
|
4469
4672
|
key: 1,
|
|
4470
4673
|
class: "bb:pointer-events-none bb:cursor-default"
|
|
4471
|
-
})) : o.icon === "refresh" ? (
|
|
4674
|
+
})) : o.icon === "refresh" ? (p(), n(m, {
|
|
4472
4675
|
key: 2,
|
|
4473
4676
|
class: "bb:pointer-events-none bb:cursor-default"
|
|
4474
4677
|
})) : r("", !0), a("span", {
|
|
4475
4678
|
class: "bb:ml-1 bb:pointer-events-none bb:cursor-default",
|
|
4476
|
-
textContent:
|
|
4477
|
-
}, null, 8,
|
|
4679
|
+
textContent: y(l.label)
|
|
4680
|
+
}, null, 8, Ma)], 10, ja);
|
|
4478
4681
|
}
|
|
4479
|
-
var
|
|
4480
|
-
function
|
|
4682
|
+
var Pa = /*#__PURE__*/ A(Aa, [["render", Na]]), Fa = "a[href], button:not(:disabled)";
|
|
4683
|
+
function Ia(e, t) {
|
|
4481
4684
|
let n = document.activeElement;
|
|
4482
|
-
(e.querySelector("[data-dialog-focus]") ?? e.querySelector(
|
|
4685
|
+
(e.querySelector("[data-dialog-focus]") ?? e.querySelector(Fa))?.focus();
|
|
4483
4686
|
let r = (n) => {
|
|
4484
4687
|
if (n.key === "Escape") {
|
|
4485
4688
|
t();
|
|
4486
4689
|
return;
|
|
4487
4690
|
}
|
|
4488
4691
|
if (n.key !== "Tab") return;
|
|
4489
|
-
let r = [...e.querySelectorAll(
|
|
4692
|
+
let r = [...e.querySelectorAll(Fa)];
|
|
4490
4693
|
if (r.length === 0) return;
|
|
4491
4694
|
n.preventDefault();
|
|
4492
4695
|
let i = n.shiftKey ? -1 : 1, a = r.indexOf(document.activeElement);
|
|
@@ -4503,7 +4706,7 @@ function ja(e, t) {
|
|
|
4503
4706
|
}
|
|
4504
4707
|
//#endregion
|
|
4505
4708
|
//#region src/components/Modal.vue
|
|
4506
|
-
var
|
|
4709
|
+
var La = {
|
|
4507
4710
|
emits: ["escape"],
|
|
4508
4711
|
props: {
|
|
4509
4712
|
isOpen: {
|
|
@@ -4537,17 +4740,17 @@ var Ma = {
|
|
|
4537
4740
|
methods: {
|
|
4538
4741
|
holdFocus() {
|
|
4539
4742
|
this.focusFrame === null && this.releaseHeldFocus === null && (this.focusFrame = requestAnimationFrame(() => {
|
|
4540
|
-
this.focusFrame = null, this.releaseHeldFocus =
|
|
4743
|
+
this.focusFrame = null, this.releaseHeldFocus = Ia(this.$refs.panel, () => this.$emit("escape"));
|
|
4541
4744
|
}));
|
|
4542
4745
|
},
|
|
4543
4746
|
releaseFocus() {
|
|
4544
4747
|
this.focusFrame !== null && (cancelAnimationFrame(this.focusFrame), this.focusFrame = null), this.releaseHeldFocus !== null && (this.releaseHeldFocus(), this.releaseHeldFocus = null);
|
|
4545
4748
|
}
|
|
4546
4749
|
}
|
|
4547
|
-
},
|
|
4548
|
-
function
|
|
4549
|
-
return
|
|
4550
|
-
|
|
4750
|
+
}, Ra = { class: "bb:min-h-screen bb:text-center" }, za = { class: "bb:fixed bb:inset-0 bb:transition-opacity" }, Ba = ["aria-labelledby"];
|
|
4751
|
+
function Va(e, n, r, o, s, l) {
|
|
4752
|
+
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", Ra, [
|
|
4753
|
+
c(t, {
|
|
4551
4754
|
"enter-active-class": "bb:ease-out bb:duration-300",
|
|
4552
4755
|
"enter-from-class": "bb:opacity-0",
|
|
4553
4756
|
"enter-to-class": "bb:opacity-100",
|
|
@@ -4555,11 +4758,11 @@ function Ia(e, n, r, o, c, l) {
|
|
|
4555
4758
|
"leave-from-class": "bb:opacity-100",
|
|
4556
4759
|
"leave-to-class": "bb:opacity-0"
|
|
4557
4760
|
}, {
|
|
4558
|
-
default:
|
|
4761
|
+
default: S(() => [C(a("div", za, [...n[0] ||= [a("div", { class: "bb:absolute bb:inset-0 bb:bg-gray-500 bb:opacity-75" }, null, -1)]], 512), [[x, r.isOpen]])]),
|
|
4559
4762
|
_: 1
|
|
4560
4763
|
}),
|
|
4561
4764
|
n[1] ||= a("span", { class: "bb:inline-block bb:align-middle bb:h-screen" }, null, -1),
|
|
4562
|
-
|
|
4765
|
+
c(t, {
|
|
4563
4766
|
"enter-active-class": "bb:ease-out bb:duration-300",
|
|
4564
4767
|
"enter-from-class": "bb:opacity-0 bb:scale-95",
|
|
4565
4768
|
"enter-to-class": "bb:opacity-100 bb:scale-100",
|
|
@@ -4567,18 +4770,18 @@ function Ia(e, n, r, o, c, l) {
|
|
|
4567
4770
|
"leave-from-class": "bb:opacity-100 bb:scale-100",
|
|
4568
4771
|
"leave-to-class": "bb:opacity-0 bb:scale-95"
|
|
4569
4772
|
}, {
|
|
4570
|
-
default:
|
|
4773
|
+
default: S(() => [C(a("div", {
|
|
4571
4774
|
ref: "panel",
|
|
4572
4775
|
class: "bb:relative bb:inline-block bb:align-middle bb:my-8 bb:max-w-lg bb:w-full bb:bg-white bb:rounded-lg bb:text-left bb:overflow-visible bb:shadow-xl bb:transition-all",
|
|
4573
4776
|
role: "dialog",
|
|
4574
4777
|
"aria-modal": "true",
|
|
4575
4778
|
"aria-labelledby": r.headingId
|
|
4576
|
-
}, [
|
|
4779
|
+
}, [h(e.$slots, "default")], 8, Ba), [[x, r.isOpen]])]),
|
|
4577
4780
|
_: 3
|
|
4578
4781
|
})
|
|
4579
4782
|
])], 2);
|
|
4580
4783
|
}
|
|
4581
|
-
var
|
|
4784
|
+
var Ha = /*#__PURE__*/ A(La, [["render", Va]]), Ua = {}, Wa = {
|
|
4582
4785
|
class: "bb:h-7 bb:w-7 bb:text-red-600",
|
|
4583
4786
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4584
4787
|
fill: "none",
|
|
@@ -4586,35 +4789,35 @@ var La = /*#__PURE__*/ k(Ma, [["render", Ia]]), Ra = {}, za = {
|
|
|
4586
4789
|
stroke: "currentColor",
|
|
4587
4790
|
"aria-hidden": "true"
|
|
4588
4791
|
};
|
|
4589
|
-
function
|
|
4590
|
-
return
|
|
4792
|
+
function Ga(e, t, n, r, o, s) {
|
|
4793
|
+
return p(), i("svg", Wa, [...t[0] ||= [a("path", {
|
|
4591
4794
|
"stroke-linecap": "round",
|
|
4592
4795
|
"stroke-linejoin": "round",
|
|
4593
4796
|
"stroke-width": "2",
|
|
4594
4797
|
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"
|
|
4595
4798
|
}, null, -1)]]);
|
|
4596
4799
|
}
|
|
4597
|
-
var
|
|
4800
|
+
var Ka = /*#__PURE__*/ A(Ua, [["render", Ga]]), qa = {}, Ja = {
|
|
4598
4801
|
class: "bb:h-7 bb:w-7 bb:text-yellow-400",
|
|
4599
4802
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4600
4803
|
viewBox: "0 0 20 20",
|
|
4601
4804
|
fill: "currentColor",
|
|
4602
4805
|
"aria-hidden": "true"
|
|
4603
4806
|
};
|
|
4604
|
-
function
|
|
4605
|
-
return
|
|
4807
|
+
function Ya(e, t, n, r, o, s) {
|
|
4808
|
+
return p(), i("svg", Ja, [...t[0] ||= [a("path", {
|
|
4606
4809
|
"fill-rule": "evenodd",
|
|
4607
4810
|
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",
|
|
4608
4811
|
"clip-rule": "evenodd"
|
|
4609
4812
|
}, null, -1)]]);
|
|
4610
4813
|
}
|
|
4611
|
-
var
|
|
4814
|
+
var Xa = /*#__PURE__*/ A(qa, [["render", Ya]]), Za = {
|
|
4612
4815
|
components: {
|
|
4613
|
-
Modal:
|
|
4614
|
-
Dangerous:
|
|
4615
|
-
Warning:
|
|
4816
|
+
Modal: Ha,
|
|
4817
|
+
Dangerous: Ka,
|
|
4818
|
+
Warning: Xa
|
|
4616
4819
|
},
|
|
4617
|
-
mixins: [
|
|
4820
|
+
mixins: [N],
|
|
4618
4821
|
emits: ["actionConfirmed", "actionCanceled"],
|
|
4619
4822
|
props: {
|
|
4620
4823
|
isOpen: {
|
|
@@ -4644,7 +4847,7 @@ var Wa = /*#__PURE__*/ k(Va, [["render", Ua]]), Ga = {
|
|
|
4644
4847
|
}
|
|
4645
4848
|
},
|
|
4646
4849
|
setup() {
|
|
4647
|
-
return { headingId:
|
|
4850
|
+
return { headingId: b() };
|
|
4648
4851
|
},
|
|
4649
4852
|
computed: {
|
|
4650
4853
|
isDangerous() {
|
|
@@ -4654,68 +4857,106 @@ var Wa = /*#__PURE__*/ k(Va, [["render", Ua]]), Ga = {
|
|
|
4654
4857
|
return this.type === "warning";
|
|
4655
4858
|
}
|
|
4656
4859
|
}
|
|
4657
|
-
},
|
|
4658
|
-
function
|
|
4659
|
-
let l =
|
|
4660
|
-
return
|
|
4860
|
+
}, Qa = { class: "bb:flex bb:bg-white bb:rounded-t-lg bb:p-6 bb:pb-4" }, $a = { class: "bb:flex bb:items-start" }, eo = { class: "bb:ml-4 bb:text-left" }, to = ["id"], no = { class: "bb:mt-2" }, ro = { class: "bb:text-sm bb:text-gray-500" }, io = { class: "bb:bg-gray-50 bb:rounded-b-lg bb:px-6 bb:py-3 bb:flex bb:flex-row-reverse" };
|
|
4861
|
+
function ao(e, t, i, o, s, c) {
|
|
4862
|
+
let l = g("warning"), u = g("dangerous"), f = g("modal");
|
|
4863
|
+
return p(), n(f, {
|
|
4661
4864
|
"is-open": i.isOpen,
|
|
4662
4865
|
"heading-id": o.headingId,
|
|
4663
4866
|
onEscape: t[2] ||= (t) => e.$emit("actionCanceled")
|
|
4664
4867
|
}, {
|
|
4665
|
-
default:
|
|
4868
|
+
default: S(() => [a("div", Qa, [a("div", $a, [a("div", { class: d(["bb:shrink-0 bb:flex bb:items-center bb:justify-center bb:h-10 bb:w-10 bb:rounded-full", {
|
|
4666
4869
|
"bb:bg-red-100": c.isDangerous,
|
|
4667
4870
|
"bb:bg-yellow-100": c.isWarning
|
|
4668
|
-
}]) }, [c.isWarning ? (
|
|
4871
|
+
}]) }, [c.isWarning ? (p(), n(l, { key: 0 })) : r("", !0), c.isDangerous ? (p(), n(u, { key: 1 })) : r("", !0)], 2), a("div", eo, [a("h3", {
|
|
4669
4872
|
class: "bb:text-lg bb:leading-6 bb:font-medium bb:text-gray-900",
|
|
4670
4873
|
id: o.headingId
|
|
4671
|
-
},
|
|
4874
|
+
}, y(i.confirmationHeading), 9, to), a("div", no, [a("p", ro, y(i.confirmationText), 1)])])])]), a("div", io, [a("button", {
|
|
4672
4875
|
type: "button",
|
|
4673
|
-
class:
|
|
4876
|
+
class: d(["bb:inline-flex bb:justify-center bb:rounded-md bb:border bb:border-transparent bb:shadow-xs bb:px-4 bb:py-2 bb:text-sm bb:font-medium bb:text-white bb:focus:focus-ring bb:ml-3", {
|
|
4674
4877
|
"bb:bg-red-600 bb:hover:bg-red-700": c.isDangerous,
|
|
4675
4878
|
"bb:bg-yellow-400 bb:hover:bg-yellow-500": c.isWarning
|
|
4676
4879
|
}]),
|
|
4677
|
-
onClick: t[0] ||=
|
|
4678
|
-
},
|
|
4880
|
+
onClick: t[0] ||= T((t) => e.$emit("actionConfirmed"), ["prevent"])
|
|
4881
|
+
}, y(i.actionButtonText), 3), a("button", {
|
|
4679
4882
|
type: "button",
|
|
4680
4883
|
class: "bb:inline-flex bb:justify-center bb:rounded-md bb:border bb:border-gray-300 bb:shadow-xs bb:px-4 bb:py-2 bb:bg-white bb:text-sm bb:font-medium bb:text-gray-700 bb:hover:bg-gray-50 bb:focus:focus-ring bb:ml-3",
|
|
4681
4884
|
"data-dialog-focus": "",
|
|
4682
|
-
onClick: t[1] ||=
|
|
4683
|
-
},
|
|
4885
|
+
onClick: t[1] ||= T((t) => e.$emit("actionCanceled"), ["prevent"])
|
|
4886
|
+
}, y(i.cancelButtonText ?? e.texts.cancel), 1)])]),
|
|
4684
4887
|
_: 1
|
|
4685
4888
|
}, 8, ["is-open", "heading-id"]);
|
|
4686
4889
|
}
|
|
4687
|
-
var
|
|
4890
|
+
var oo = /*#__PURE__*/ A(Za, [["render", ao]]), so = {}, co = {
|
|
4891
|
+
fill: "none",
|
|
4892
|
+
stroke: "currentColor",
|
|
4893
|
+
viewBox: "0 0 24 24",
|
|
4894
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4895
|
+
"aria-hidden": "true"
|
|
4896
|
+
};
|
|
4897
|
+
function lo(e, t, n, r, o, s) {
|
|
4898
|
+
return p(), i("svg", co, [...t[0] ||= [a("path", {
|
|
4899
|
+
"stroke-linecap": "round",
|
|
4900
|
+
"stroke-linejoin": "round",
|
|
4901
|
+
"stroke-width": "2",
|
|
4902
|
+
d: "M12 4v16m8-8H4"
|
|
4903
|
+
}, null, -1)]]);
|
|
4904
|
+
}
|
|
4905
|
+
//#endregion
|
|
4906
|
+
//#region src/actionIcons.js
|
|
4907
|
+
var uo = { plus: /* @__PURE__ */ A(so, [["render", lo]]) };
|
|
4908
|
+
function fo(e) {
|
|
4909
|
+
return typeof e == "string" && Object.hasOwn(uo, e);
|
|
4910
|
+
}
|
|
4688
4911
|
//#endregion
|
|
4689
4912
|
//#region src/menuItems.js
|
|
4690
|
-
function
|
|
4691
|
-
if (typeof e != "object" || !e || typeof e.label != "string" || e.label === "" || e.color !== void 0 && !
|
|
4913
|
+
function po(e) {
|
|
4914
|
+
if (typeof e != "object" || !e || typeof e.label != "string" || e.label === "" || e.color !== void 0 && !O(e.color) || e.icon !== void 0 && !fo(e.icon)) return !1;
|
|
4692
4915
|
let t = typeof e.href == "string" && e.href !== "" && e.onSelect === void 0, n = typeof e.onSelect == "function" && e.href === void 0;
|
|
4693
4916
|
return t || n;
|
|
4694
4917
|
}
|
|
4695
|
-
function
|
|
4918
|
+
function mo(e) {
|
|
4696
4919
|
return Array.isArray(e) ? e.filter((e) => typeof e == "object" && !!e) : [];
|
|
4697
4920
|
}
|
|
4698
|
-
function
|
|
4921
|
+
function ho(e) {
|
|
4699
4922
|
return typeof e.href == "string" && e.href !== "";
|
|
4700
4923
|
}
|
|
4701
|
-
function
|
|
4702
|
-
return
|
|
4924
|
+
function go(e) {
|
|
4925
|
+
return O(e.color) ? e.color : null;
|
|
4926
|
+
}
|
|
4927
|
+
function _o(e) {
|
|
4928
|
+
return fo(e.icon) ? e.icon : null;
|
|
4703
4929
|
}
|
|
4704
4930
|
//#endregion
|
|
4705
4931
|
//#region src/navigation.js
|
|
4706
|
-
function
|
|
4932
|
+
function vo(e) {
|
|
4707
4933
|
let t = e.currentTarget?.target ?? "";
|
|
4708
4934
|
return !(e.defaultPrevented || e.target?.isContentEditable === !0 || e.altKey || e.ctrlKey || e.metaKey || e.shiftKey || t !== "" && t !== "_self" || e.button !== 0);
|
|
4709
4935
|
}
|
|
4710
|
-
var
|
|
4711
|
-
inject:
|
|
4936
|
+
var Q = {
|
|
4937
|
+
inject: be,
|
|
4712
4938
|
methods: { followLink(e, t) {
|
|
4713
4939
|
let n = this.uiSettings.navigate;
|
|
4714
|
-
n !== null &&
|
|
4940
|
+
n !== null && vo(e) && (e.preventDefault(), n(t));
|
|
4941
|
+
} }
|
|
4942
|
+
}, yo = {
|
|
4943
|
+
props: { name: {
|
|
4944
|
+
type: String,
|
|
4945
|
+
default: null
|
|
4946
|
+
} },
|
|
4947
|
+
computed: { icon() {
|
|
4948
|
+
return fo(this.name) ? uo[this.name] : "span";
|
|
4715
4949
|
} }
|
|
4716
|
-
}
|
|
4717
|
-
|
|
4718
|
-
|
|
4950
|
+
};
|
|
4951
|
+
function bo(e, t, r, i, a, o) {
|
|
4952
|
+
return p(), n(_(o.icon), { class: "bb:w-4 bb:h-4 bb:shrink-0 bb:pointer-events-none bb:cursor-default" });
|
|
4953
|
+
}
|
|
4954
|
+
var xo = /*#__PURE__*/ A(yo, [["render", bo]]), So = {
|
|
4955
|
+
components: {
|
|
4956
|
+
ActionIcon: xo,
|
|
4957
|
+
PopoverPanel: V
|
|
4958
|
+
},
|
|
4959
|
+
mixins: [Q, k],
|
|
4719
4960
|
emits: ["update:modelValue"],
|
|
4720
4961
|
props: {
|
|
4721
4962
|
actions: { default: () => [] },
|
|
@@ -4726,18 +4967,24 @@ var Z = {
|
|
|
4726
4967
|
},
|
|
4727
4968
|
computed: {
|
|
4728
4969
|
actionItems() {
|
|
4729
|
-
return
|
|
4970
|
+
return mo(this.actions);
|
|
4730
4971
|
},
|
|
4731
4972
|
hasActions() {
|
|
4732
4973
|
return this.actionItems.length > 0;
|
|
4974
|
+
},
|
|
4975
|
+
hasIcons() {
|
|
4976
|
+
return this.actionItems.some((e) => _o(e) !== null);
|
|
4733
4977
|
}
|
|
4734
4978
|
},
|
|
4735
4979
|
methods: {
|
|
4736
4980
|
color(e) {
|
|
4737
|
-
return
|
|
4981
|
+
return go(e);
|
|
4982
|
+
},
|
|
4983
|
+
icon(e) {
|
|
4984
|
+
return _o(e);
|
|
4738
4985
|
},
|
|
4739
4986
|
isLink(e) {
|
|
4740
|
-
return
|
|
4987
|
+
return ho(e);
|
|
4741
4988
|
},
|
|
4742
4989
|
linkClicked(e, t) {
|
|
4743
4990
|
e.currentTarget.focus({ preventScroll: !0 }), this.followLink(e, t);
|
|
@@ -4746,60 +4993,69 @@ var Z = {
|
|
|
4746
4993
|
if (t.currentTarget.focus({ preventScroll: !0 }), typeof e.onSelect == "function") return e.onSelect();
|
|
4747
4994
|
}
|
|
4748
4995
|
}
|
|
4749
|
-
},
|
|
4750
|
-
|
|
4751
|
-
"
|
|
4752
|
-
|
|
4753
|
-
|
|
4754
|
-
|
|
4755
|
-
let l = h("popover-panel");
|
|
4756
|
-
return f(), n(l, {
|
|
4757
|
-
"model-value": a.modelValue,
|
|
4758
|
-
"has-content": c.hasActions,
|
|
4996
|
+
}, Co = ["href", "onClick"], wo = ["textContent"], To = ["onClick"], Eo = ["textContent"];
|
|
4997
|
+
function Do(t, o, s, c, l, u) {
|
|
4998
|
+
let f = g("action-icon"), _ = g("popover-panel");
|
|
4999
|
+
return p(), n(_, {
|
|
5000
|
+
"model-value": s.modelValue,
|
|
5001
|
+
"has-content": u.hasActions,
|
|
4759
5002
|
align: "end",
|
|
4760
|
-
"
|
|
5003
|
+
shift: "",
|
|
4761
5004
|
arrows: "",
|
|
4762
5005
|
"close-on-click": "",
|
|
4763
5006
|
"return-focus": "",
|
|
4764
|
-
"panel-class": "bb:w-56 bb:rounded-md bb:shadow-lg bb:bg-white bb:ring-1 bb:ring-black/5",
|
|
5007
|
+
"panel-class": "bb:w-max bb:min-w-56 bb:rounded-md bb:shadow-lg bb:bg-white bb:ring-1 bb:ring-black/5",
|
|
4765
5008
|
"panel-role": "menu",
|
|
4766
|
-
"onUpdate:modelValue":
|
|
5009
|
+
"onUpdate:modelValue": o[0] ||= (e) => t.$emit("update:modelValue", e)
|
|
4767
5010
|
}, {
|
|
4768
|
-
trigger:
|
|
5011
|
+
trigger: S((e) => [h(t.$slots, "trigger", {
|
|
4769
5012
|
id: e.id,
|
|
4770
5013
|
popovertarget: e.popovertarget
|
|
4771
5014
|
})]),
|
|
4772
|
-
default:
|
|
5015
|
+
default: S(() => [(p(!0), i(e, null, m(u.actionItems, (o, s) => (p(), i(e, { key: s }, [u.isLink(o) ? (p(), i("a", {
|
|
4773
5016
|
key: 0,
|
|
4774
|
-
href:
|
|
5017
|
+
href: o.href,
|
|
4775
5018
|
role: "menuitem",
|
|
4776
|
-
class:
|
|
4777
|
-
onClick: (e) =>
|
|
4778
|
-
|
|
4779
|
-
|
|
5019
|
+
class: d(["bb:flex bb:items-center bb:gap-2 bb:w-full bb:px-4 bb:py-2 bb:text-sm bb:text-left bb:cursor-pointer bb:focus:outline-hidden", u.color(o) === null ? "bb:text-gray-700 bb:hover:bg-gray-100 bb:hover:text-gray-900 bb:focus:bg-gray-100 bb:focus:text-gray-900" : t.colorClass(u.color(o), "menuItem")]),
|
|
5020
|
+
onClick: (e) => u.linkClicked(e, o.href)
|
|
5021
|
+
}, [u.hasIcons ? (p(), n(f, {
|
|
5022
|
+
key: 0,
|
|
5023
|
+
name: u.icon(o)
|
|
5024
|
+
}, null, 8, ["name"])) : r("", !0), a("span", {
|
|
5025
|
+
class: "bb:min-w-0 bb:truncate bb:pointer-events-none bb:cursor-default",
|
|
5026
|
+
textContent: y(o.label)
|
|
5027
|
+
}, null, 8, wo)], 10, Co)) : (p(), i("button", {
|
|
4780
5028
|
key: 1,
|
|
4781
5029
|
type: "button",
|
|
4782
5030
|
role: "menuitem",
|
|
4783
|
-
class:
|
|
4784
|
-
onClick: (e) =>
|
|
4785
|
-
|
|
4786
|
-
|
|
5031
|
+
class: d(["bb:flex bb:items-center bb:gap-2 bb:w-full bb:px-4 bb:py-2 bb:text-sm bb:text-left bb:cursor-pointer bb:focus:outline-hidden", u.color(o) === null ? "bb:text-gray-700 bb:hover:bg-gray-100 bb:hover:text-gray-900 bb:focus:bg-gray-100 bb:focus:text-gray-900" : t.colorClass(u.color(o), "menuItem")]),
|
|
5032
|
+
onClick: (e) => u.select(o, e)
|
|
5033
|
+
}, [u.hasIcons ? (p(), n(f, {
|
|
5034
|
+
key: 0,
|
|
5035
|
+
name: u.icon(o)
|
|
5036
|
+
}, null, 8, ["name"])) : r("", !0), a("span", {
|
|
5037
|
+
class: "bb:min-w-0 bb:truncate bb:pointer-events-none bb:cursor-default",
|
|
5038
|
+
textContent: y(o.label)
|
|
5039
|
+
}, null, 8, Eo)], 10, To))], 64))), 128))]),
|
|
4787
5040
|
_: 3
|
|
4788
5041
|
}, 8, ["model-value", "has-content"]);
|
|
4789
5042
|
}
|
|
4790
|
-
var
|
|
4791
|
-
components: {
|
|
5043
|
+
var Oo = /*#__PURE__*/ A(So, [["render", Do]]), ko = {
|
|
5044
|
+
components: {
|
|
5045
|
+
ActionIcon: xo,
|
|
5046
|
+
PopoverMenu: Oo
|
|
5047
|
+
},
|
|
4792
5048
|
mixins: [
|
|
4793
|
-
|
|
4794
|
-
|
|
4795
|
-
|
|
5049
|
+
N,
|
|
5050
|
+
Q,
|
|
5051
|
+
k
|
|
4796
5052
|
],
|
|
4797
5053
|
emits: ["update:modelValue"],
|
|
4798
5054
|
props: {
|
|
4799
5055
|
actions: {
|
|
4800
5056
|
type: Array,
|
|
4801
5057
|
default: () => [],
|
|
4802
|
-
validator: (e) => e.every(
|
|
5058
|
+
validator: (e) => e.every(po)
|
|
4803
5059
|
},
|
|
4804
5060
|
modelValue: {
|
|
4805
5061
|
type: Boolean,
|
|
@@ -4811,7 +5067,7 @@ var uo = /*#__PURE__*/ k(oo, [["render", lo]]), fo = {
|
|
|
4811
5067
|
},
|
|
4812
5068
|
computed: {
|
|
4813
5069
|
items() {
|
|
4814
|
-
return
|
|
5070
|
+
return mo(this.actions);
|
|
4815
5071
|
},
|
|
4816
5072
|
hasActions() {
|
|
4817
5073
|
return this.items.length > 0;
|
|
@@ -4820,7 +5076,10 @@ var uo = /*#__PURE__*/ k(oo, [["render", lo]]), fo = {
|
|
|
4820
5076
|
return this.items[0];
|
|
4821
5077
|
},
|
|
4822
5078
|
mainColor() {
|
|
4823
|
-
return this.hasActions ?
|
|
5079
|
+
return this.hasActions ? go(this.mainAction) : null;
|
|
5080
|
+
},
|
|
5081
|
+
mainIcon() {
|
|
5082
|
+
return this.hasActions ? _o(this.mainAction) : null;
|
|
4824
5083
|
},
|
|
4825
5084
|
menuActions() {
|
|
4826
5085
|
return this.items.slice(1);
|
|
@@ -4842,7 +5101,7 @@ var uo = /*#__PURE__*/ k(oo, [["render", lo]]), fo = {
|
|
|
4842
5101
|
},
|
|
4843
5102
|
methods: {
|
|
4844
5103
|
isLink(e) {
|
|
4845
|
-
return
|
|
5104
|
+
return ho(e);
|
|
4846
5105
|
},
|
|
4847
5106
|
select(e) {
|
|
4848
5107
|
if (typeof e.onSelect == "function") return e.onSelect();
|
|
@@ -4851,42 +5110,52 @@ var uo = /*#__PURE__*/ k(oo, [["render", lo]]), fo = {
|
|
|
4851
5110
|
this.menuIsOpen = e, this.$emit("update:modelValue", e);
|
|
4852
5111
|
}
|
|
4853
5112
|
}
|
|
4854
|
-
},
|
|
5113
|
+
}, Ao = {
|
|
4855
5114
|
key: 0,
|
|
4856
5115
|
class: "bb-dashboard-ui bb:relative bb:inline-flex bb:shadow-xs bb:rounded-md"
|
|
4857
|
-
},
|
|
4858
|
-
function
|
|
4859
|
-
let
|
|
4860
|
-
return
|
|
5116
|
+
}, jo = ["href"], Mo = ["textContent"], No = ["textContent"], Po = ["id", "popovertarget"], Fo = { class: "bb:sr-only bb:pointer-events-none bb:cursor-default" };
|
|
5117
|
+
function Io(e, t, o, s, l, u) {
|
|
5118
|
+
let f = g("action-icon"), m = g("popover-menu");
|
|
5119
|
+
return u.hasActions ? (p(), i("span", Ao, [u.isLink(u.mainAction) ? (p(), i("a", {
|
|
5120
|
+
key: 0,
|
|
5121
|
+
href: u.mainAction.href,
|
|
5122
|
+
class: d(["bb:relative bb:inline-flex bb:items-center bb:gap-2 bb:px-4 bb:py-2 bb:border bb:text-sm bb:font-medium bb:cursor-pointer bb:focus:z-10 bb:focus:focus-ring", [{
|
|
5123
|
+
"bb:rounded-l-md": u.hasMenu,
|
|
5124
|
+
"bb:rounded-md": !u.hasMenu
|
|
5125
|
+
}, u.mainColor === null ? "bb:bg-white bb:border-gray-300 bb:text-gray-700 bb:hover:bg-gray-50" : e.colorClass(u.mainColor, "button")]]),
|
|
5126
|
+
onClick: t[0] ||= (t) => e.followLink(t, u.mainAction.href)
|
|
5127
|
+
}, [u.mainIcon === null ? r("", !0) : (p(), n(f, {
|
|
4861
5128
|
key: 0,
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
onClick: t[0] ||= (t) => e.followLink(t, l.mainAction.href),
|
|
4868
|
-
textContent: _(l.mainAction.label)
|
|
4869
|
-
}, null, 10, mo)) : (f(), i("button", {
|
|
5129
|
+
name: u.mainIcon
|
|
5130
|
+
}, null, 8, ["name"])), a("span", {
|
|
5131
|
+
class: "bb:pointer-events-none bb:cursor-default",
|
|
5132
|
+
textContent: y(u.mainAction.label)
|
|
5133
|
+
}, null, 8, Mo)], 10, jo)) : (p(), i("button", {
|
|
4870
5134
|
key: 1,
|
|
4871
5135
|
type: "button",
|
|
4872
|
-
class:
|
|
4873
|
-
"bb:rounded-l-md":
|
|
4874
|
-
"bb:rounded-md": !
|
|
4875
|
-
},
|
|
4876
|
-
onClick: t[1] ||= (e) =>
|
|
4877
|
-
|
|
4878
|
-
|
|
5136
|
+
class: d(["bb:relative bb:inline-flex bb:items-center bb:gap-2 bb:px-4 bb:py-2 bb:border bb:text-sm bb:font-medium bb:cursor-pointer bb:focus:z-10 bb:focus:focus-ring", [{
|
|
5137
|
+
"bb:rounded-l-md": u.hasMenu,
|
|
5138
|
+
"bb:rounded-md": !u.hasMenu
|
|
5139
|
+
}, u.mainColor === null ? "bb:bg-white bb:border-gray-300 bb:text-gray-700 bb:hover:bg-gray-50" : e.colorClass(u.mainColor, "button")]]),
|
|
5140
|
+
onClick: t[1] ||= (e) => u.select(u.mainAction)
|
|
5141
|
+
}, [u.mainIcon === null ? r("", !0) : (p(), n(f, {
|
|
5142
|
+
key: 0,
|
|
5143
|
+
name: u.mainIcon
|
|
5144
|
+
}, null, 8, ["name"])), a("span", {
|
|
5145
|
+
class: "bb:pointer-events-none bb:cursor-default",
|
|
5146
|
+
textContent: y(u.mainAction.label)
|
|
5147
|
+
}, null, 8, No)], 2)), c(m, {
|
|
4879
5148
|
class: "bb:-ml-px bb:flex",
|
|
4880
|
-
actions:
|
|
4881
|
-
"model-value":
|
|
4882
|
-
"onUpdate:modelValue":
|
|
5149
|
+
actions: u.menuActions,
|
|
5150
|
+
"model-value": o.modelValue,
|
|
5151
|
+
"onUpdate:modelValue": u.onMenuToggle
|
|
4883
5152
|
}, {
|
|
4884
|
-
trigger:
|
|
5153
|
+
trigger: S((n) => [a("button", {
|
|
4885
5154
|
type: "button",
|
|
4886
5155
|
id: n.id,
|
|
4887
5156
|
popovertarget: n.popovertarget,
|
|
4888
|
-
class:
|
|
4889
|
-
}, [a("span",
|
|
5157
|
+
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", u.mainColor === null ? "bb:bg-white bb:border-gray-300 bb:text-gray-500 bb:hover:bg-gray-50" : e.colorClass(u.mainColor, "button")])
|
|
5158
|
+
}, [a("span", Fo, y(e.texts.openMenu), 1), t[2] ||= a("svg", {
|
|
4890
5159
|
class: "bb:h-5 bb:w-5 bb:pointer-events-none bb:cursor-default",
|
|
4891
5160
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4892
5161
|
viewBox: "0 0 20 20",
|
|
@@ -4896,7 +5165,7 @@ function vo(e, t, n, o, c, l) {
|
|
|
4896
5165
|
"fill-rule": "evenodd",
|
|
4897
5166
|
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",
|
|
4898
5167
|
"clip-rule": "evenodd"
|
|
4899
|
-
})], -1)], 10,
|
|
5168
|
+
})], -1)], 10, Po)]),
|
|
4900
5169
|
_: 1
|
|
4901
5170
|
}, 8, [
|
|
4902
5171
|
"actions",
|
|
@@ -4904,27 +5173,27 @@ function vo(e, t, n, o, c, l) {
|
|
|
4904
5173
|
"onUpdate:modelValue"
|
|
4905
5174
|
])])) : r("", !0);
|
|
4906
5175
|
}
|
|
4907
|
-
var
|
|
4908
|
-
components: { PopoverMenu:
|
|
4909
|
-
mixins: [
|
|
5176
|
+
var Lo = /*#__PURE__*/ A(ko, [["render", Io]]), Ro = {
|
|
5177
|
+
components: { PopoverMenu: Oo },
|
|
5178
|
+
mixins: [N],
|
|
4910
5179
|
props: { actions: {
|
|
4911
5180
|
type: Array,
|
|
4912
5181
|
default: () => [],
|
|
4913
|
-
validator: (e) => e.every(
|
|
5182
|
+
validator: (e) => e.every(po)
|
|
4914
5183
|
} }
|
|
4915
|
-
},
|
|
4916
|
-
function
|
|
4917
|
-
let c =
|
|
4918
|
-
return
|
|
5184
|
+
}, zo = ["id", "popovertarget"], Bo = { class: "bb:sr-only bb:pointer-events-none bb:cursor-default" };
|
|
5185
|
+
function Vo(e, t, r, i, o, s) {
|
|
5186
|
+
let c = g("popover-menu");
|
|
5187
|
+
return p(), n(c, {
|
|
4919
5188
|
class: "bb-dashboard-ui bb:inline-flex",
|
|
4920
5189
|
actions: r.actions
|
|
4921
5190
|
}, {
|
|
4922
|
-
trigger:
|
|
5191
|
+
trigger: S((n) => [a("button", {
|
|
4923
5192
|
type: "button",
|
|
4924
5193
|
id: n.id,
|
|
4925
5194
|
popovertarget: n.popovertarget,
|
|
4926
5195
|
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"
|
|
4927
|
-
}, [a("span",
|
|
5196
|
+
}, [a("span", Bo, y(e.texts.openMenu), 1), t[0] ||= a("svg", {
|
|
4928
5197
|
class: "bb:h-6 bb:w-6 bb:pointer-events-none bb:cursor-default",
|
|
4929
5198
|
fill: "none",
|
|
4930
5199
|
viewBox: "0 0 24 24",
|
|
@@ -4935,48 +5204,48 @@ function Co(e, t, r, i, o, s) {
|
|
|
4935
5204
|
"stroke-linejoin": "round",
|
|
4936
5205
|
"stroke-width": "2",
|
|
4937
5206
|
d: "M4 6h16M4 12h16M4 18h16"
|
|
4938
|
-
})], -1)], 8,
|
|
5207
|
+
})], -1)], 8, zo)]),
|
|
4939
5208
|
_: 1
|
|
4940
5209
|
}, 8, ["actions"]);
|
|
4941
5210
|
}
|
|
4942
|
-
var
|
|
5211
|
+
var Ho = /*#__PURE__*/ A(Ro, [["render", Vo]]), Uo = {}, Wo = {
|
|
4943
5212
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4944
5213
|
viewBox: "0 0 20 20",
|
|
4945
5214
|
fill: "currentColor",
|
|
4946
5215
|
"aria-hidden": "true"
|
|
4947
5216
|
};
|
|
4948
|
-
function
|
|
4949
|
-
return
|
|
5217
|
+
function Go(e, t, n, r, o, s) {
|
|
5218
|
+
return p(), i("svg", Wo, [...t[0] ||= [a("path", {
|
|
4950
5219
|
"fill-rule": "evenodd",
|
|
4951
5220
|
"clip-rule": "evenodd",
|
|
4952
5221
|
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"
|
|
4953
5222
|
}, null, -1)]]);
|
|
4954
5223
|
}
|
|
4955
|
-
var
|
|
5224
|
+
var Ko = /*#__PURE__*/ A(Uo, [["render", Go]]), qo = {}, Jo = {
|
|
4956
5225
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4957
5226
|
viewBox: "0 0 20 20",
|
|
4958
5227
|
fill: "currentColor",
|
|
4959
5228
|
"aria-hidden": "true"
|
|
4960
5229
|
};
|
|
4961
|
-
function
|
|
4962
|
-
return
|
|
5230
|
+
function Yo(e, t, n, r, o, s) {
|
|
5231
|
+
return p(), i("svg", Jo, [...t[0] ||= [a("path", {
|
|
4963
5232
|
"fill-rule": "evenodd",
|
|
4964
5233
|
"clip-rule": "evenodd",
|
|
4965
5234
|
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"
|
|
4966
5235
|
}, null, -1)]]);
|
|
4967
5236
|
}
|
|
4968
|
-
var
|
|
5237
|
+
var Xo = /*#__PURE__*/ A(qo, [["render", Yo]]);
|
|
4969
5238
|
//#endregion
|
|
4970
5239
|
//#region src/components/Pagination.vue
|
|
4971
|
-
function
|
|
5240
|
+
function Zo(e) {
|
|
4972
5241
|
return typeof e == "string" && e !== "" ? e : null;
|
|
4973
5242
|
}
|
|
4974
|
-
var
|
|
5243
|
+
var Qo = {
|
|
4975
5244
|
components: {
|
|
4976
|
-
ArrowNarrowLeft:
|
|
4977
|
-
ArrowNarrowRight:
|
|
5245
|
+
ArrowNarrowLeft: Ko,
|
|
5246
|
+
ArrowNarrowRight: Xo
|
|
4978
5247
|
},
|
|
4979
|
-
mixins: [
|
|
5248
|
+
mixins: [N, Q],
|
|
4980
5249
|
props: {
|
|
4981
5250
|
links: {
|
|
4982
5251
|
type: Object,
|
|
@@ -5004,49 +5273,49 @@ var Po = {
|
|
|
5004
5273
|
return typeof this.from == "number" && typeof this.to == "number";
|
|
5005
5274
|
},
|
|
5006
5275
|
previousPageUrl() {
|
|
5007
|
-
return
|
|
5276
|
+
return Zo(this.links?.prev);
|
|
5008
5277
|
},
|
|
5009
5278
|
nextPageUrl() {
|
|
5010
|
-
return
|
|
5279
|
+
return Zo(this.links?.next);
|
|
5011
5280
|
}
|
|
5012
5281
|
}
|
|
5013
|
-
},
|
|
5282
|
+
}, $o = {
|
|
5014
5283
|
key: 0,
|
|
5015
5284
|
class: "bb-dashboard-ui bb:flex bb:items-center bb:justify-between"
|
|
5016
|
-
},
|
|
5285
|
+
}, es = { class: "bb:-mt-px bb:w-0 bb:flex-1 bb:flex" }, ts = ["href"], ns = {
|
|
5017
5286
|
key: 0,
|
|
5018
5287
|
class: "bb:-mt-px bb:flex bb:text-gray-400 bb:text-sm bb:leading-5"
|
|
5019
|
-
},
|
|
5020
|
-
function
|
|
5021
|
-
let d =
|
|
5022
|
-
return u.hasResults ? (
|
|
5023
|
-
a("div",
|
|
5288
|
+
}, rs = { class: "bb:font-medium bb:text-gray-900 bb:mx-1" }, is = { class: "bb:font-medium bb:text-gray-900 bb:mx-1" }, as = { class: "bb:-mt-px bb:w-0 bb:flex-1 bb:flex bb:justify-end" }, os = ["href"];
|
|
5289
|
+
function ss(e, t, n, o, l, u) {
|
|
5290
|
+
let d = g("arrow-narrow-left"), f = g("arrow-narrow-right");
|
|
5291
|
+
return u.hasResults ? (p(), i("nav", $o, [
|
|
5292
|
+
a("div", es, [u.previousPageUrl === null ? r("", !0) : (p(), i("a", {
|
|
5024
5293
|
key: 0,
|
|
5025
5294
|
href: u.previousPageUrl,
|
|
5026
5295
|
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",
|
|
5027
5296
|
onClick: t[0] ||= (t) => e.followLink(t, u.previousPageUrl)
|
|
5028
|
-
}, [
|
|
5029
|
-
u.hasRange ? (
|
|
5030
|
-
|
|
5031
|
-
a("span",
|
|
5032
|
-
|
|
5033
|
-
a("span",
|
|
5034
|
-
|
|
5297
|
+
}, [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, ts))]),
|
|
5298
|
+
u.hasRange ? (p(), i("div", ns, [
|
|
5299
|
+
s(y(e.texts.resultsBefore) + " ", 1),
|
|
5300
|
+
a("span", rs, y(u.from) + " - " + y(u.to), 1),
|
|
5301
|
+
s(" " + y(e.texts.resultsOf) + " ", 1),
|
|
5302
|
+
a("span", is, y(u.total), 1),
|
|
5303
|
+
s(" " + y(e.texts.resultsAfter), 1)
|
|
5035
5304
|
])) : r("", !0),
|
|
5036
|
-
a("div",
|
|
5305
|
+
a("div", as, [u.nextPageUrl === null ? r("", !0) : (p(), i("a", {
|
|
5037
5306
|
key: 0,
|
|
5038
5307
|
href: u.nextPageUrl,
|
|
5039
5308
|
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",
|
|
5040
5309
|
onClick: t[1] ||= (t) => e.followLink(t, u.nextPageUrl)
|
|
5041
|
-
}, [
|
|
5310
|
+
}, [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, os))])
|
|
5042
5311
|
])) : r("", !0);
|
|
5043
5312
|
}
|
|
5044
|
-
var
|
|
5313
|
+
var cs = /*#__PURE__*/ A(Qo, [["render", ss]]), ls = [
|
|
5045
5314
|
"left",
|
|
5046
5315
|
"center",
|
|
5047
5316
|
"right"
|
|
5048
5317
|
];
|
|
5049
|
-
function
|
|
5318
|
+
function us(e) {
|
|
5050
5319
|
if (typeof e != "object" || !e || typeof e.key != "string" || e.key === "") return null;
|
|
5051
5320
|
let t = e.key;
|
|
5052
5321
|
return {
|
|
@@ -5055,21 +5324,21 @@ function Ko(e) {
|
|
|
5055
5324
|
value: typeof e.value == "function" ? e.value : (e) => e?.[t],
|
|
5056
5325
|
secondary: typeof e.secondary == "function" ? e.secondary : null,
|
|
5057
5326
|
muted: e.muted === !0,
|
|
5058
|
-
align:
|
|
5327
|
+
align: ls.includes(e.align) ? e.align : "left",
|
|
5059
5328
|
wrap: e.wrap === !0,
|
|
5060
5329
|
narrow: e.narrow === !0,
|
|
5061
5330
|
visible: e.visible !== !1
|
|
5062
5331
|
};
|
|
5063
5332
|
}
|
|
5064
|
-
function
|
|
5333
|
+
function ds(e) {
|
|
5065
5334
|
return typeof e == "string" && e !== "" ? e : null;
|
|
5066
5335
|
}
|
|
5067
|
-
var
|
|
5336
|
+
var fs = {
|
|
5068
5337
|
components: {
|
|
5069
|
-
Pagination:
|
|
5070
|
-
InfoPill:
|
|
5338
|
+
Pagination: cs,
|
|
5339
|
+
InfoPill: na
|
|
5071
5340
|
},
|
|
5072
|
-
mixins: [
|
|
5341
|
+
mixins: [N, k],
|
|
5073
5342
|
props: {
|
|
5074
5343
|
rows: {
|
|
5075
5344
|
type: Array,
|
|
@@ -5114,7 +5383,7 @@ var Jo = {
|
|
|
5114
5383
|
return Array.isArray(this.rows) ? this.rows : [];
|
|
5115
5384
|
},
|
|
5116
5385
|
visibleColumns() {
|
|
5117
|
-
return (Array.isArray(this.columns) ? this.columns : []).map(
|
|
5386
|
+
return (Array.isArray(this.columns) ? this.columns : []).map(us).filter((e) => e !== null && e.visible);
|
|
5118
5387
|
},
|
|
5119
5388
|
rowStripes() {
|
|
5120
5389
|
return this.normalizedRows.map((e) => this.stripeOf(e));
|
|
@@ -5133,10 +5402,10 @@ var Jo = {
|
|
|
5133
5402
|
},
|
|
5134
5403
|
badgeText() {
|
|
5135
5404
|
if (this.hasRecords) {
|
|
5136
|
-
let e =
|
|
5405
|
+
let e = ds(this.foundText);
|
|
5137
5406
|
return e === null ? null : `${e}: ${this.recordCount}`;
|
|
5138
5407
|
}
|
|
5139
|
-
return
|
|
5408
|
+
return ds(this.emptyText);
|
|
5140
5409
|
}
|
|
5141
5410
|
},
|
|
5142
5411
|
methods: {
|
|
@@ -5156,43 +5425,43 @@ var Jo = {
|
|
|
5156
5425
|
stripeOf(e) {
|
|
5157
5426
|
if (typeof this.rowStripe != "function") return null;
|
|
5158
5427
|
let t = this.rowStripe(e);
|
|
5159
|
-
return
|
|
5428
|
+
return O(t) ? t : null;
|
|
5160
5429
|
},
|
|
5161
5430
|
textOf(e, t) {
|
|
5162
5431
|
let n = e(t);
|
|
5163
5432
|
return n == null ? "" : String(n);
|
|
5164
5433
|
}
|
|
5165
5434
|
}
|
|
5166
|
-
},
|
|
5167
|
-
function
|
|
5168
|
-
let
|
|
5169
|
-
return
|
|
5170
|
-
|
|
5435
|
+
}, ps = { class: "bb:min-w-full bb:divide-y bb:divide-gray-200 bb:border-collapse" }, ms = { class: "bb:bg-gray-50" }, hs = ["textContent"], gs = { class: "bb:divide-y bb:divide-gray-200" }, _s = ["textContent"], vs = ["textContent"];
|
|
5436
|
+
function ys(t, o, s, c, l, u) {
|
|
5437
|
+
let f = g("info-pill"), _ = g("pagination");
|
|
5438
|
+
return p(), i("div", null, [
|
|
5439
|
+
u.hasBadgeRow() ? (p(), i("div", {
|
|
5171
5440
|
key: 0,
|
|
5172
|
-
class:
|
|
5173
|
-
}, [
|
|
5441
|
+
class: d(["bb:flex bb:justify-center bb:items-center bb:space-x-2", u.isCard ? "" : "bb:my-4"])
|
|
5442
|
+
}, [u.badgeText === null ? r("", !0) : (p(), n(f, {
|
|
5174
5443
|
key: 0,
|
|
5175
|
-
text:
|
|
5444
|
+
text: u.badgeText,
|
|
5176
5445
|
color: "indigo"
|
|
5177
|
-
}, null, 8, ["text"])),
|
|
5178
|
-
|
|
5446
|
+
}, null, 8, ["text"])), u.hasRecords ? h(t.$slots, "results-actions", {}, void 0, void 0, 1) : r("", !0)], 2)) : r("", !0),
|
|
5447
|
+
u.normalizedRows.length > 0 ? (p(), i("div", {
|
|
5179
5448
|
key: 1,
|
|
5180
|
-
class: u
|
|
5181
|
-
}, [a("div", { class:
|
|
5449
|
+
class: d(u.isCard && u.hasBadgeRow() ? "bb:mt-4" : "")
|
|
5450
|
+
}, [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", ps, [a("thead", null, [a("tr", ms, [(p(!0), i(e, null, m(u.visibleColumns, (e) => (p(), i("th", {
|
|
5182
5451
|
key: e.key,
|
|
5183
5452
|
scope: "col",
|
|
5184
|
-
class:
|
|
5453
|
+
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", [{
|
|
5185
5454
|
"bb:text-left": e.align === "left",
|
|
5186
5455
|
"bb:text-center": e.align === "center",
|
|
5187
5456
|
"bb:text-right": e.align === "right"
|
|
5188
5457
|
}, { "bb:w-px": e.narrow }]]),
|
|
5189
|
-
textContent:
|
|
5190
|
-
}, null, 10,
|
|
5191
|
-
key:
|
|
5458
|
+
textContent: y(e.label)
|
|
5459
|
+
}, null, 10, hs))), 128))])]), a("tbody", gs, [(p(!0), i(e, null, m(u.normalizedRows, (n, o) => (p(), i("tr", {
|
|
5460
|
+
key: u.keyOf(n, o),
|
|
5192
5461
|
class: "bb:bg-white bb:even:bg-gray-50"
|
|
5193
|
-
}, [(
|
|
5462
|
+
}, [(p(!0), i(e, null, m(u.visibleColumns, (e, s) => (p(), i("td", {
|
|
5194
5463
|
key: e.key,
|
|
5195
|
-
class:
|
|
5464
|
+
class: d(["bb:px-6 bb:py-4 bb:align-top bb:relative bb:text-sm bb:leading-5", [
|
|
5196
5465
|
{ "bb:whitespace-nowrap": !e.wrap },
|
|
5197
5466
|
{
|
|
5198
5467
|
"bb:text-left": e.align === "left",
|
|
@@ -5201,27 +5470,27 @@ function ts(t, o, s, c, l, d) {
|
|
|
5201
5470
|
},
|
|
5202
5471
|
{ "bb:w-px": e.narrow }
|
|
5203
5472
|
]])
|
|
5204
|
-
}, [s === 0 &&
|
|
5473
|
+
}, [s === 0 && u.rowStripes[o] !== null ? (p(), i("span", {
|
|
5205
5474
|
key: 0,
|
|
5206
|
-
class:
|
|
5475
|
+
class: d(["bb:absolute bb:left-0 bb:inset-y-0 bb:w-1 bb:bg-current", t.colorClass(u.rowStripes[o], "mark")]),
|
|
5207
5476
|
"aria-hidden": "true"
|
|
5208
|
-
}, null, 2)) : r("", !0),
|
|
5477
|
+
}, null, 2)) : r("", !0), h(t.$slots, `cell-${e.key}`, {
|
|
5209
5478
|
row: n,
|
|
5210
5479
|
index: o
|
|
5211
5480
|
}, () => [a("div", {
|
|
5212
|
-
class:
|
|
5213
|
-
textContent:
|
|
5214
|
-
}, null, 10,
|
|
5481
|
+
class: d(["bb:font-medium", e.muted ? "bb:text-gray-400" : "bb:text-gray-900"]),
|
|
5482
|
+
textContent: y(u.textOf(e.value, n))
|
|
5483
|
+
}, null, 10, _s), e.secondary !== null && u.textOf(e.secondary, n) !== "" ? (p(), i("div", {
|
|
5215
5484
|
key: 0,
|
|
5216
5485
|
class: "bb:text-gray-400",
|
|
5217
|
-
textContent:
|
|
5218
|
-
}, null, 8,
|
|
5219
|
-
|
|
5486
|
+
textContent: y(u.textOf(e.secondary, n))
|
|
5487
|
+
}, null, 8, vs)) : r("", !0)])], 2))), 128))]))), 128))])])], 2)], 2)) : r("", !0),
|
|
5488
|
+
u.hasMeta ? (p(), n(_, {
|
|
5220
5489
|
key: 2,
|
|
5221
5490
|
meta: s.meta,
|
|
5222
5491
|
links: s.links ?? {},
|
|
5223
5492
|
lang: t.lang,
|
|
5224
|
-
class: u
|
|
5493
|
+
class: d(u.isCard ? "bb:mt-4" : "bb:mt-6")
|
|
5225
5494
|
}, null, 8, [
|
|
5226
5495
|
"meta",
|
|
5227
5496
|
"links",
|
|
@@ -5230,8 +5499,8 @@ function ts(t, o, s, c, l, d) {
|
|
|
5230
5499
|
])) : r("", !0)
|
|
5231
5500
|
]);
|
|
5232
5501
|
}
|
|
5233
|
-
var
|
|
5234
|
-
mixins: [
|
|
5502
|
+
var bs = /*#__PURE__*/ A(fs, [["render", ys]]), xs = {
|
|
5503
|
+
mixins: [Q],
|
|
5235
5504
|
props: {
|
|
5236
5505
|
url: {
|
|
5237
5506
|
type: String,
|
|
@@ -5246,17 +5515,17 @@ var ns = /*#__PURE__*/ k(Jo, [["render", ts]]), rs = {
|
|
|
5246
5515
|
default: !1
|
|
5247
5516
|
}
|
|
5248
5517
|
}
|
|
5249
|
-
},
|
|
5250
|
-
function
|
|
5251
|
-
return
|
|
5518
|
+
}, Ss = ["href", "textContent"];
|
|
5519
|
+
function Cs(e, t, n, r, a, o) {
|
|
5520
|
+
return p(), i("a", {
|
|
5252
5521
|
href: n.url,
|
|
5253
|
-
class:
|
|
5522
|
+
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"]),
|
|
5254
5523
|
onClick: t[0] ||= (t) => e.followLink(t, n.url),
|
|
5255
|
-
textContent:
|
|
5256
|
-
}, null, 10,
|
|
5524
|
+
textContent: y(n.name)
|
|
5525
|
+
}, null, 10, Ss);
|
|
5257
5526
|
}
|
|
5258
|
-
var
|
|
5259
|
-
mixins: [
|
|
5527
|
+
var ws = /*#__PURE__*/ A(xs, [["render", Cs]]), Ts = {
|
|
5528
|
+
mixins: [N, Q],
|
|
5260
5529
|
props: {
|
|
5261
5530
|
tabs: {
|
|
5262
5531
|
type: Array,
|
|
@@ -5270,38 +5539,38 @@ var os = /*#__PURE__*/ k(rs, [["render", as]]), ss = {
|
|
|
5270
5539
|
computed: { tabList() {
|
|
5271
5540
|
return Array.isArray(this.tabs) ? this.tabs.filter((e) => typeof e == "object" && !!e) : [];
|
|
5272
5541
|
} }
|
|
5273
|
-
},
|
|
5542
|
+
}, Es = ["aria-label"], Ds = [
|
|
5274
5543
|
"href",
|
|
5275
5544
|
"aria-current",
|
|
5276
5545
|
"onClick",
|
|
5277
5546
|
"textContent"
|
|
5278
5547
|
];
|
|
5279
|
-
function
|
|
5280
|
-
return
|
|
5548
|
+
function Os(t, n, r, a, o, s) {
|
|
5549
|
+
return p(), i("nav", {
|
|
5281
5550
|
class: "bb-dashboard-ui bb:flex bb:space-x-4",
|
|
5282
5551
|
"aria-label": t.texts.tabs
|
|
5283
|
-
}, [(
|
|
5552
|
+
}, [(p(!0), i(e, null, m(s.tabList, (e) => (p(), i("a", {
|
|
5284
5553
|
key: e.key,
|
|
5285
5554
|
href: e.url,
|
|
5286
5555
|
"aria-current": e.key === r.activeKey ? "page" : null,
|
|
5287
|
-
class:
|
|
5556
|
+
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"]),
|
|
5288
5557
|
onClick: (n) => t.followLink(n, e.url),
|
|
5289
|
-
textContent:
|
|
5290
|
-
}, null, 10,
|
|
5558
|
+
textContent: y(e.name)
|
|
5559
|
+
}, null, 10, Ds))), 128))], 8, Es);
|
|
5291
5560
|
}
|
|
5292
|
-
var
|
|
5561
|
+
var ks = /*#__PURE__*/ A(Ts, [["render", Os]]), As = [
|
|
5293
5562
|
"xl",
|
|
5294
5563
|
"4xl",
|
|
5295
5564
|
"7xl"
|
|
5296
|
-
],
|
|
5297
|
-
components: { CrossButton:
|
|
5298
|
-
mixins: [
|
|
5565
|
+
], js = {
|
|
5566
|
+
components: { CrossButton: P },
|
|
5567
|
+
mixins: [N],
|
|
5299
5568
|
inheritAttrs: !1,
|
|
5300
5569
|
props: {
|
|
5301
5570
|
width: {
|
|
5302
5571
|
type: String,
|
|
5303
5572
|
default: "xl",
|
|
5304
|
-
validator: (e) =>
|
|
5573
|
+
validator: (e) => As.includes(e)
|
|
5305
5574
|
},
|
|
5306
5575
|
fallbackUrl: {
|
|
5307
5576
|
type: String,
|
|
@@ -5317,13 +5586,13 @@ var ds = /*#__PURE__*/ k(ss, [["render", us]]), fs = [
|
|
|
5317
5586
|
},
|
|
5318
5587
|
computed: {
|
|
5319
5588
|
resolvedWidth() {
|
|
5320
|
-
return
|
|
5589
|
+
return As.includes(this.width) ? this.width : "xl";
|
|
5321
5590
|
},
|
|
5322
5591
|
windows() {
|
|
5323
5592
|
return this.uiSettings.windows;
|
|
5324
5593
|
},
|
|
5325
5594
|
resolvedKey() {
|
|
5326
|
-
return this.windowKey !== null && this.windowKey !== "" ? this.windowKey : this.windows === null ? null :
|
|
5595
|
+
return this.windowKey !== null && this.windowKey !== "" ? this.windowKey : this.windows === null ? null : ce(this.windows.page.address);
|
|
5327
5596
|
},
|
|
5328
5597
|
target() {
|
|
5329
5598
|
return this.returnAddress === null ? this.fallbackUrl === null || this.fallbackUrl === "" ? null : this.fallbackUrl : this.returnAddress;
|
|
@@ -5333,23 +5602,23 @@ var ds = /*#__PURE__*/ k(ss, [["render", us]]), fs = [
|
|
|
5333
5602
|
}
|
|
5334
5603
|
},
|
|
5335
5604
|
watch: { fallbackUrl() {
|
|
5336
|
-
this.windows !== null &&
|
|
5605
|
+
this.windows !== null && _e(this.windows.state, this, this.fallbackAddress());
|
|
5337
5606
|
} },
|
|
5338
5607
|
mounted() {
|
|
5339
|
-
this.windows !== null && (this.returnAddress =
|
|
5608
|
+
this.windows !== null && (this.returnAddress = D(this.windows.state, this, this.resolvedKey, this.fallbackAddress()).returnAddress, this.$watch(() => [this.windows.page.number, this.resolvedKey], () => this.syncWindow(), { flush: "post" }));
|
|
5340
5609
|
},
|
|
5341
5610
|
beforeUnmount() {
|
|
5342
|
-
this.windows !== null &&
|
|
5611
|
+
this.windows !== null && ge(this.windows.state, this);
|
|
5343
5612
|
},
|
|
5344
5613
|
methods: {
|
|
5345
5614
|
fallbackAddress() {
|
|
5346
|
-
return
|
|
5615
|
+
return se(this.fallbackUrl, window.location.origin);
|
|
5347
5616
|
},
|
|
5348
5617
|
forwardedAttrs() {
|
|
5349
5618
|
return Object.fromEntries(Object.entries(this.$attrs).filter(([e]) => e.startsWith("data-") || e.startsWith("aria-")));
|
|
5350
5619
|
},
|
|
5351
5620
|
syncWindow() {
|
|
5352
|
-
let e =
|
|
5621
|
+
let e = he(this.windows.state, this, this.resolvedKey, this.fallbackAddress());
|
|
5353
5622
|
e.rejected && console.warn(`PageCard: ключ окна сменился на «${this.resolvedKey}» без смены страницы — карточка остаётся в окне «${e.key}»`), this.returnAddress = e.window.returnAddress;
|
|
5354
5623
|
},
|
|
5355
5624
|
close() {
|
|
@@ -5364,38 +5633,52 @@ var ds = /*#__PURE__*/ k(ss, [["render", us]]), fs = [
|
|
|
5364
5633
|
}
|
|
5365
5634
|
}
|
|
5366
5635
|
};
|
|
5367
|
-
function
|
|
5368
|
-
let
|
|
5369
|
-
return
|
|
5636
|
+
function Ms(e, t, a, o, c, l) {
|
|
5637
|
+
let f = g("cross-button");
|
|
5638
|
+
return p(), i("div", u({
|
|
5370
5639
|
class: ["bb:box-border bb:relative bb:my-6 bb:mx-auto bb:bg-white bb:shadow-xl bb:rounded-lg", [
|
|
5371
5640
|
{
|
|
5372
|
-
"bb:max-w-xl":
|
|
5373
|
-
"bb:max-w-4xl":
|
|
5374
|
-
"bb:max-w-7xl":
|
|
5641
|
+
"bb:max-w-xl": l.resolvedWidth === "xl",
|
|
5642
|
+
"bb:max-w-4xl": l.resolvedWidth === "4xl",
|
|
5643
|
+
"bb:max-w-7xl": l.resolvedWidth === "7xl"
|
|
5375
5644
|
},
|
|
5376
|
-
|
|
5377
|
-
"bb:[--bb-closer-space:3.5rem] bb:md:[--bb-closer-space:0px]":
|
|
5378
|
-
"bb:[--bb-closer-space:3.5rem] bb:lg:[--bb-closer-space:0px]":
|
|
5379
|
-
"bb:[--bb-closer-space:3.5rem] bb:2xl:[--bb-closer-space:0px]":
|
|
5645
|
+
l.canClose ? {
|
|
5646
|
+
"bb:[--bb-closer-space:3.5rem] bb:md:[--bb-closer-space:0px]": l.resolvedWidth === "xl",
|
|
5647
|
+
"bb:[--bb-closer-space:3.5rem] bb:lg:[--bb-closer-space:0px]": l.resolvedWidth === "4xl",
|
|
5648
|
+
"bb:[--bb-closer-space:3.5rem] bb:2xl:[--bb-closer-space:0px]": l.resolvedWidth === "7xl"
|
|
5380
5649
|
} : "bb:[--bb-closer-space:0px]",
|
|
5381
5650
|
e.$attrs.class
|
|
5382
5651
|
]],
|
|
5383
5652
|
style: e.$attrs.style
|
|
5384
|
-
}, { ...
|
|
5653
|
+
}, { ...l.forwardedAttrs() }), [h(e.$slots, "default", { close: l.close }), l.canClose ? (p(), n(f, {
|
|
5385
5654
|
key: 0,
|
|
5386
5655
|
size: "large",
|
|
5387
|
-
class:
|
|
5388
|
-
"bb:md:right-auto bb:md:left-full bb:md:mr-0 bb:md:ml-4":
|
|
5389
|
-
"bb:lg:right-auto bb:lg:left-full bb:lg:mr-0 bb:lg:ml-4":
|
|
5390
|
-
"bb:2xl:right-auto bb:2xl:left-full bb:2xl:mr-0 bb:2xl:ml-4":
|
|
5656
|
+
class: d(["bb:absolute bb:top-0 bb:right-0 bb:mt-6 bb:mr-4 bb:w-8 bb:h-8", {
|
|
5657
|
+
"bb:md:right-auto bb:md:left-full bb:md:mr-0 bb:md:ml-4": l.resolvedWidth === "xl",
|
|
5658
|
+
"bb:lg:right-auto bb:lg:left-full bb:lg:mr-0 bb:lg:ml-4": l.resolvedWidth === "4xl",
|
|
5659
|
+
"bb:2xl:right-auto bb:2xl:left-full bb:2xl:mr-0 bb:2xl:ml-4": l.resolvedWidth === "7xl"
|
|
5391
5660
|
}]),
|
|
5392
|
-
onClicked:
|
|
5661
|
+
onClicked: l.close
|
|
5393
5662
|
}, {
|
|
5394
|
-
default:
|
|
5663
|
+
default: S(() => [s(y(e.texts.back), 1)]),
|
|
5395
5664
|
_: 1
|
|
5396
5665
|
}, 8, ["class", "onClicked"])) : r("", !0)], 16);
|
|
5397
5666
|
}
|
|
5398
|
-
var
|
|
5667
|
+
var Ns = /*#__PURE__*/ A(js, [["render", Ms]]), Ps = {}, Fs = { class: "bb:m-0 bb:p-0 bb:overflow-hidden bb:rounded-b-lg" };
|
|
5668
|
+
function Is(e, t, n, r, a, o) {
|
|
5669
|
+
return p(), i("dl", Fs, [h(e.$slots, "default")]);
|
|
5670
|
+
}
|
|
5671
|
+
var Ls = /*#__PURE__*/ A(Ps, [["render", Is]]), Rs = { props: { title: {
|
|
5672
|
+
type: String,
|
|
5673
|
+
required: !0
|
|
5674
|
+
} } }, zs = { class: "bb:grid bb:grid-cols-3 bb:gap-4 bb:px-6 bb:py-5 bb:bg-white bb:odd:bg-gray-50" }, Bs = ["textContent"], Vs = { 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" };
|
|
5675
|
+
function Hs(e, t, n, r, o, s) {
|
|
5676
|
+
return p(), i("div", zs, [a("dt", {
|
|
5677
|
+
class: "bb:m-0 bb:p-0 bb:text-sm bb:leading-5 bb:font-normal bb:text-gray-500 bb:wrap-break-word",
|
|
5678
|
+
textContent: y(n.title)
|
|
5679
|
+
}, null, 8, Bs), a("dd", Vs, [h(e.$slots, "default")])]);
|
|
5680
|
+
}
|
|
5681
|
+
var Us = /*#__PURE__*/ A(Rs, [["render", Hs]]), Ws = {}, Gs = {
|
|
5399
5682
|
class: "bb:h-7 bb:w-7 bb:text-green-600",
|
|
5400
5683
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5401
5684
|
fill: "none",
|
|
@@ -5404,22 +5687,22 @@ var hs = /*#__PURE__*/ k(ps, [["render", ms]]), gs = {}, _s = {
|
|
|
5404
5687
|
stroke: "currentColor",
|
|
5405
5688
|
"aria-hidden": "true"
|
|
5406
5689
|
};
|
|
5407
|
-
function
|
|
5408
|
-
return
|
|
5690
|
+
function Ks(e, t, n, r, o, s) {
|
|
5691
|
+
return p(), i("svg", Gs, [...t[0] ||= [a("path", {
|
|
5409
5692
|
"stroke-linecap": "round",
|
|
5410
5693
|
"stroke-linejoin": "round",
|
|
5411
5694
|
d: "M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"
|
|
5412
5695
|
}, null, -1)]]);
|
|
5413
5696
|
}
|
|
5414
|
-
var
|
|
5697
|
+
var qs = /*#__PURE__*/ A(Ws, [["render", Ks]]), Js = {}, Ys = {
|
|
5415
5698
|
class: "bb:h-5 bb:w-5",
|
|
5416
5699
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5417
5700
|
viewBox: "0 0 20 20",
|
|
5418
5701
|
fill: "currentColor",
|
|
5419
5702
|
"aria-hidden": "true"
|
|
5420
5703
|
};
|
|
5421
|
-
function
|
|
5422
|
-
return
|
|
5704
|
+
function Xs(e, t, n, r, o, s) {
|
|
5705
|
+
return p(), i("svg", Ys, [...t[0] ||= [a("path", {
|
|
5423
5706
|
"fill-rule": "evenodd",
|
|
5424
5707
|
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",
|
|
5425
5708
|
"clip-rule": "evenodd"
|
|
@@ -5427,14 +5710,14 @@ function Ss(e, t, n, r, o, s) {
|
|
|
5427
5710
|
}
|
|
5428
5711
|
//#endregion
|
|
5429
5712
|
//#region src/components/NotificationMessage.vue
|
|
5430
|
-
var
|
|
5713
|
+
var Zs = {
|
|
5431
5714
|
components: {
|
|
5432
|
-
Check:
|
|
5433
|
-
Close: /* @__PURE__ */
|
|
5434
|
-
Dangerous:
|
|
5435
|
-
Warning:
|
|
5715
|
+
Check: qs,
|
|
5716
|
+
Close: /* @__PURE__ */ A(Js, [["render", Xs]]),
|
|
5717
|
+
Dangerous: Ka,
|
|
5718
|
+
Warning: Xa
|
|
5436
5719
|
},
|
|
5437
|
-
mixins: [
|
|
5720
|
+
mixins: [N],
|
|
5438
5721
|
emits: ["update:modelValue"],
|
|
5439
5722
|
props: {
|
|
5440
5723
|
modelValue: {
|
|
@@ -5472,38 +5755,38 @@ var Cs = {
|
|
|
5472
5755
|
return this.type === "confirmation";
|
|
5473
5756
|
}
|
|
5474
5757
|
}
|
|
5475
|
-
},
|
|
5476
|
-
function
|
|
5477
|
-
let
|
|
5478
|
-
return
|
|
5758
|
+
}, Qs = ["role"], $s = { class: "bb:p-4" }, ec = { class: "bb:flex bb:items-start" }, tc = { class: "bb:shrink-0" }, nc = { class: "bb:ml-3 bb:w-0 bb:flex-1 bb:pt-0.5" }, rc = { class: "bb:text-sm bb:font-medium bb:text-gray-900" }, ic = { class: "bb:mt-1 bb:text-sm bb:text-gray-500" }, ac = { class: "bb:ml-4 bb:shrink-0 bb:flex" }, oc = { class: "bb:sr-only bb:pointer-events-none bb:cursor-default" };
|
|
5759
|
+
function sc(e, t, o, s, l, u) {
|
|
5760
|
+
let f = g("warning"), m = g("dangerous"), h = g("check"), _ = g("close");
|
|
5761
|
+
return p(), i("div", {
|
|
5479
5762
|
class: "bb-dashboard-ui bb:fixed bb:inset-0 bb:flex bb:items-start bb:justify-end bb:p-6 bb:pointer-events-none",
|
|
5480
|
-
role:
|
|
5481
|
-
}, [
|
|
5763
|
+
role: u.isDangerous ? "alert" : "status"
|
|
5764
|
+
}, [u.hasMessage ? (p(), i("div", {
|
|
5482
5765
|
key: 0,
|
|
5483
|
-
class:
|
|
5484
|
-
"bb:bg-red-50":
|
|
5485
|
-
"bb:bg-yellow-50":
|
|
5486
|
-
"bb:bg-gray-50":
|
|
5766
|
+
class: d(["bb:max-w-sm bb:w-full bb:shadow-lg bb:rounded-lg bb:pointer-events-auto bb:ring-1 bb:ring-black/5 bb:overflow-hidden", {
|
|
5767
|
+
"bb:bg-red-50": u.isDangerous,
|
|
5768
|
+
"bb:bg-yellow-50": u.isWarning,
|
|
5769
|
+
"bb:bg-gray-50": u.isConfirmation
|
|
5487
5770
|
}])
|
|
5488
|
-
}, [a("div",
|
|
5489
|
-
a("div",
|
|
5490
|
-
|
|
5491
|
-
|
|
5492
|
-
|
|
5771
|
+
}, [a("div", $s, [a("div", ec, [
|
|
5772
|
+
a("div", tc, [
|
|
5773
|
+
u.isWarning ? (p(), n(f, { key: 0 })) : r("", !0),
|
|
5774
|
+
u.isDangerous ? (p(), n(m, { key: 1 })) : r("", !0),
|
|
5775
|
+
u.isConfirmation ? (p(), n(h, { key: 2 })) : r("", !0)
|
|
5493
5776
|
]),
|
|
5494
|
-
a("div",
|
|
5495
|
-
a("div",
|
|
5777
|
+
a("div", nc, [a("p", rc, y(o.notificationHeading), 1), a("p", ic, y(u.text), 1)]),
|
|
5778
|
+
a("div", ac, [a("button", {
|
|
5496
5779
|
type: "button",
|
|
5497
|
-
class:
|
|
5498
|
-
"bb:bg-red-50":
|
|
5499
|
-
"bb:bg-yellow-50":
|
|
5500
|
-
"bb:bg-gray-50":
|
|
5780
|
+
class: d(["bb:rounded-md bb:inline-flex bb:text-gray-400 bb:hover:text-gray-500 bb:focus:focus-ring", {
|
|
5781
|
+
"bb:bg-red-50": u.isDangerous,
|
|
5782
|
+
"bb:bg-yellow-50": u.isWarning,
|
|
5783
|
+
"bb:bg-gray-50": u.isConfirmation
|
|
5501
5784
|
}]),
|
|
5502
|
-
onClick: t[0] ||=
|
|
5503
|
-
}, [a("span",
|
|
5504
|
-
])])], 2)) : r("", !0)], 8,
|
|
5785
|
+
onClick: t[0] ||= T((t) => e.$emit("update:modelValue", ""), ["prevent"])
|
|
5786
|
+
}, [a("span", oc, y(e.texts.close), 1), c(_, { class: "bb:pointer-events-none bb:cursor-default" })], 2)])
|
|
5787
|
+
])])], 2)) : r("", !0)], 8, Qs);
|
|
5505
5788
|
}
|
|
5506
|
-
var
|
|
5789
|
+
var cc = /*#__PURE__*/ A(Zs, [["render", sc]]), lc = {}, uc = {
|
|
5507
5790
|
class: "bb:h-5 bb:w-5",
|
|
5508
5791
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5509
5792
|
fill: "none",
|
|
@@ -5512,8 +5795,8 @@ var Ps = /*#__PURE__*/ k(Cs, [["render", Ns]]), Fs = {}, Is = {
|
|
|
5512
5795
|
"stroke-width": "2",
|
|
5513
5796
|
"aria-hidden": "true"
|
|
5514
5797
|
};
|
|
5515
|
-
function
|
|
5516
|
-
return
|
|
5798
|
+
function dc(e, t, n, r, o, s) {
|
|
5799
|
+
return p(), i("svg", uc, [...t[0] ||= [a("path", {
|
|
5517
5800
|
"stroke-linecap": "round",
|
|
5518
5801
|
"stroke-linejoin": "round",
|
|
5519
5802
|
d: "M15 12a3 3 0 11-6 0 3 3 0 016 0z"
|
|
@@ -5523,12 +5806,12 @@ function Ls(e, t, n, r, o, s) {
|
|
|
5523
5806
|
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"
|
|
5524
5807
|
}, null, -1)]]);
|
|
5525
5808
|
}
|
|
5526
|
-
var
|
|
5809
|
+
var fc = /*#__PURE__*/ A(lc, [["render", dc]]), $ = 0, pc = null, mc = {
|
|
5527
5810
|
components: {
|
|
5528
|
-
PopoverPanel:
|
|
5529
|
-
Eye:
|
|
5811
|
+
PopoverPanel: V,
|
|
5812
|
+
Eye: fc
|
|
5530
5813
|
},
|
|
5531
|
-
mixins: [
|
|
5814
|
+
mixins: [N],
|
|
5532
5815
|
emits: ["update:modelValue"],
|
|
5533
5816
|
props: {
|
|
5534
5817
|
text: {
|
|
@@ -5559,22 +5842,22 @@ var Rs = /*#__PURE__*/ k(Fs, [["render", Ls]]), Q = 0, $ = null, zs = {
|
|
|
5559
5842
|
e ? this.lockPageSelection() : this.unlockPageSelection();
|
|
5560
5843
|
},
|
|
5561
5844
|
lockPageSelection() {
|
|
5562
|
-
if (!this.holdsPageSelectionLock && (this.holdsPageSelectionLock = !0,
|
|
5845
|
+
if (!this.holdsPageSelectionLock && (this.holdsPageSelectionLock = !0, $ += 1, $ === 1)) {
|
|
5563
5846
|
let e = document.documentElement.style;
|
|
5564
|
-
|
|
5847
|
+
pc = {
|
|
5565
5848
|
userSelect: e.userSelect,
|
|
5566
5849
|
webkitUserSelect: e.webkitUserSelect
|
|
5567
5850
|
}, e.userSelect = "none", e.webkitUserSelect = "none";
|
|
5568
5851
|
}
|
|
5569
5852
|
},
|
|
5570
5853
|
unlockPageSelection() {
|
|
5571
|
-
this.holdsPageSelectionLock && (this.holdsPageSelectionLock = !1,
|
|
5854
|
+
this.holdsPageSelectionLock && (this.holdsPageSelectionLock = !1, --$, $ === 0 && (Object.assign(document.documentElement.style, pc), pc = null));
|
|
5572
5855
|
}
|
|
5573
5856
|
}
|
|
5574
|
-
},
|
|
5575
|
-
function
|
|
5576
|
-
let u =
|
|
5577
|
-
return
|
|
5857
|
+
}, hc = ["id", "popovertarget"], gc = { class: "bb:sr-only bb:pointer-events-none bb:cursor-default" };
|
|
5858
|
+
function _c(e, t, r, i, o, l) {
|
|
5859
|
+
let u = g("eye"), d = g("popover-panel");
|
|
5860
|
+
return p(), n(d, {
|
|
5578
5861
|
class: "bb-dashboard-ui bb:inline-flex",
|
|
5579
5862
|
"has-content": !l.isEmpty,
|
|
5580
5863
|
"model-value": r.modelValue,
|
|
@@ -5587,13 +5870,13 @@ function Hs(e, t, r, i, c, l) {
|
|
|
5587
5870
|
"onUpdate:modelValue": t[0] ||= (t) => e.$emit("update:modelValue", t),
|
|
5588
5871
|
onToggle: l.onPanelToggle
|
|
5589
5872
|
}, {
|
|
5590
|
-
trigger:
|
|
5873
|
+
trigger: S((t) => [a("button", {
|
|
5591
5874
|
type: "button",
|
|
5592
5875
|
id: t.id,
|
|
5593
5876
|
popovertarget: t.popovertarget,
|
|
5594
5877
|
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"
|
|
5595
|
-
}, [a("span",
|
|
5596
|
-
default:
|
|
5878
|
+
}, [a("span", gc, y(e.texts.showText), 1), c(u, { class: "bb:pointer-events-none bb:cursor-default" })], 8, hc)]),
|
|
5879
|
+
default: S(() => [s(y(l.normalizedText), 1)]),
|
|
5597
5880
|
_: 1
|
|
5598
5881
|
}, 8, [
|
|
5599
5882
|
"has-content",
|
|
@@ -5602,6 +5885,6 @@ function Hs(e, t, r, i, c, l) {
|
|
|
5602
5885
|
"onToggle"
|
|
5603
5886
|
]);
|
|
5604
5887
|
}
|
|
5605
|
-
var
|
|
5888
|
+
var vc = /*#__PURE__*/ A(mc, [["render", _c]]);
|
|
5606
5889
|
//#endregion
|
|
5607
|
-
export {
|
|
5890
|
+
export { Pa as ActionPill, ki as AmountForm, Hi as AmountIntervalFilter, Qi as AmountIntervalForm, oo as ConfirmationModal, bs as DataTable, Ls as DetailList, Us as DetailRow, j as Dot, Lo as DropdownButtonWithAction, la as ErrorMessages, ga as FormInput, Ho as HamburgerMenu, na as InfoPill, ws as NavigationMenuElement, cc as NotificationMessage, Ns as PageCard, ks as PageTabs, tt as RussianMobileFilter, ct as Search, Zr as SelectCurrencyFilter, ei as SelectCurrencyForm, Gt as SelectDateFilter, tn as SelectDateForm, fn as SelectDateIntervalFilter, xn as SelectDateIntervalForm, er as SelectMultipleFilter, sr as SelectMultipleForm, br as SelectMultipleList, Kr as SelectSingleCards, kr as SelectSingleFilter, Ir as SelectSingleForm, vc as TextPopover, Se as dashboardUi, Ee as downloadFile };
|