@boobooking/dashboard-ui-components 0.22.0 → 0.24.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 +288 -43
- package/dist/index.js +1636 -1193
- 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,
|
|
2
|
-
import
|
|
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 x, vModelText as ee, vShow as S, watch as te, withCtx as C, withDirectives as w, withKeys as T, withModifiers as E } from "vue";
|
|
2
|
+
import ne from "imask";
|
|
3
3
|
//#region src/i18n.js
|
|
4
|
-
var
|
|
5
|
-
function
|
|
6
|
-
return
|
|
4
|
+
var re = ["ru", "en"];
|
|
5
|
+
function D(e) {
|
|
6
|
+
return re.includes(e);
|
|
7
7
|
}
|
|
8
|
-
var
|
|
8
|
+
var ie = {
|
|
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 ae(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 oe(e) {
|
|
134
134
|
return e === null ? null : e.split("?")[0];
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function se() {
|
|
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 O(e, t) {
|
|
151
151
|
return e.windows.includes(t);
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function ce(e) {
|
|
154
154
|
return e.returnAddress ?? e.fallbackAddress;
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function le(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 ue(e, t) {
|
|
162
162
|
let n = t;
|
|
163
|
-
for (; n !== null && !
|
|
163
|
+
for (; n !== null && !O(e, n);) n = n.parent;
|
|
164
164
|
return n;
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function de(e, t) {
|
|
167
167
|
return e.transition = {
|
|
168
168
|
number: e.transition.number + 1,
|
|
169
169
|
fromAddress: e.shown,
|
|
170
|
-
fromWindow:
|
|
170
|
+
fromWindow: le(e),
|
|
171
171
|
assigned: /* @__PURE__ */ new Map()
|
|
172
172
|
}, e.shown = t, e.transition.number;
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function fe(e, t, n) {
|
|
175
175
|
let r = e.transition, i = r.assigned.get(t);
|
|
176
|
-
if (i !== void 0 &&
|
|
176
|
+
if (i !== void 0 && O(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 && !O(e, a) && (a = ue(e, a), o = null), a !== null && ce(a) === e.shown && (e.windows.splice(e.windows.indexOf(a)), a = a.parent === null ? null : ue(e, a.parent), o = null);
|
|
179
|
+
for (let n = a; n !== null; n = n.parent) if (n.key === t && O(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 k(e, t, n, r) {
|
|
191
|
+
let i = fe(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 pe(e, t, n, r) {
|
|
199
199
|
let i = e.cards.get(t);
|
|
200
200
|
return i === void 0 ? {
|
|
201
|
-
window:
|
|
201
|
+
window: k(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: k(e, t, n, r),
|
|
214
214
|
rejected: !1,
|
|
215
215
|
key: n
|
|
216
216
|
});
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function me(e, t) {
|
|
219
219
|
e.cards.delete(t);
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function he(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 ge = Symbol("dashboardUi"), _e = Object.freeze({
|
|
228
228
|
lang: "ru",
|
|
229
229
|
navigate: null,
|
|
230
230
|
windows: null
|
|
231
|
-
}),
|
|
232
|
-
from:
|
|
233
|
-
default: () =>
|
|
231
|
+
}), ve = { uiSettings: {
|
|
232
|
+
from: ge,
|
|
233
|
+
default: () => _e
|
|
234
234
|
} };
|
|
235
|
-
function
|
|
236
|
-
let n =
|
|
235
|
+
function ye(e, t) {
|
|
236
|
+
let n = se(), r = v({
|
|
237
237
|
number: 0,
|
|
238
238
|
address: null
|
|
239
|
-
}), i =
|
|
239
|
+
}), i = l(!0);
|
|
240
240
|
return i.run(() => {
|
|
241
|
-
|
|
242
|
-
let t =
|
|
243
|
-
t !== null && t !== r.address && (r.number =
|
|
241
|
+
te(t, (e) => {
|
|
242
|
+
let t = ae(e, window.location.origin);
|
|
243
|
+
t !== null && t !== r.address && (r.number = de(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 be = { install(e, t) {
|
|
254
254
|
let n = t ?? {}, r = Object.hasOwn(n, "lang") ? n.lang : "ru";
|
|
255
|
-
if (!
|
|
255
|
+
if (!D(r)) throw Error(`dashboardUi: неизвестный lang «${r}», допустимы: ${re.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" ? ye(e, s) : null;
|
|
261
|
+
e.provide(ge, Object.freeze({
|
|
262
262
|
lang: r,
|
|
263
263
|
navigate: a,
|
|
264
264
|
windows: c
|
|
265
265
|
}));
|
|
266
|
-
} },
|
|
267
|
-
function
|
|
266
|
+
} }, xe = 4e4;
|
|
267
|
+
function Se(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 Ce(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 we(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,67 +293,121 @@ 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 = Se(t.headers.get("Content-Disposition")) ?? Ce(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), xe);
|
|
298
298
|
}
|
|
299
299
|
//#endregion
|
|
300
300
|
//#region src/colors.js
|
|
301
|
-
var
|
|
302
|
-
gray: {
|
|
301
|
+
var Te = {
|
|
302
|
+
"gray-solid": {
|
|
303
|
+
pill: "bb:bg-gray-500 bb:text-white",
|
|
304
|
+
pillHover: "bb:hover:bg-gray-600",
|
|
305
|
+
button: "bb:bg-gray-500 bb:border-gray-600 bb:text-white",
|
|
306
|
+
buttonHover: "bb:hover:bg-gray-600",
|
|
307
|
+
menuItem: "bb:bg-gray-500 bb:text-white bb:hover:bg-gray-600 bb:focus:bg-gray-600",
|
|
308
|
+
mark: "bb:text-gray-500"
|
|
309
|
+
},
|
|
310
|
+
"gray-pale": {
|
|
303
311
|
pill: "bb:bg-gray-100 bb:text-gray-800",
|
|
304
312
|
pillHover: "bb:hover:text-gray-600",
|
|
305
|
-
button: "bb:bg-gray-100 bb:border-gray-300 bb:text-gray-800
|
|
313
|
+
button: "bb:bg-gray-100 bb:border-gray-300 bb:text-gray-800",
|
|
314
|
+
buttonHover: "bb:hover:bg-gray-200",
|
|
306
315
|
menuItem: "bb:bg-gray-100 bb:text-gray-800 bb:hover:bg-gray-200 bb:focus:bg-gray-200",
|
|
307
316
|
mark: "bb:text-gray-500"
|
|
308
317
|
},
|
|
309
|
-
green: {
|
|
318
|
+
"green-solid": {
|
|
319
|
+
pill: "bb:bg-green-600 bb:text-white",
|
|
320
|
+
pillHover: "bb:hover:bg-green-700",
|
|
321
|
+
button: "bb:bg-green-600 bb:border-green-700 bb:text-white",
|
|
322
|
+
buttonHover: "bb:hover:bg-green-700",
|
|
323
|
+
menuItem: "bb:bg-green-600 bb:text-white bb:hover:bg-green-700 bb:focus:bg-green-700",
|
|
324
|
+
mark: "bb:text-green-500"
|
|
325
|
+
},
|
|
326
|
+
"green-pale": {
|
|
310
327
|
pill: "bb:bg-green-100 bb:text-green-800",
|
|
311
328
|
pillHover: "bb:hover:text-green-600",
|
|
312
|
-
button: "bb:bg-green-100 bb:border-green-300 bb:text-green-800
|
|
329
|
+
button: "bb:bg-green-100 bb:border-green-300 bb:text-green-800",
|
|
330
|
+
buttonHover: "bb:hover:bg-green-200",
|
|
313
331
|
menuItem: "bb:bg-green-100 bb:text-green-800 bb:hover:bg-green-200 bb:focus:bg-green-200",
|
|
314
332
|
mark: "bb:text-green-500"
|
|
315
333
|
},
|
|
316
|
-
yellow: {
|
|
334
|
+
"yellow-solid": {
|
|
335
|
+
pill: "bb:bg-yellow-300 bb:text-yellow-950",
|
|
336
|
+
pillHover: "bb:hover:bg-yellow-400",
|
|
337
|
+
button: "bb:bg-yellow-300 bb:border-yellow-400 bb:text-yellow-950",
|
|
338
|
+
buttonHover: "bb:hover:bg-yellow-400",
|
|
339
|
+
menuItem: "bb:bg-yellow-300 bb:text-yellow-950 bb:hover:bg-yellow-400 bb:focus:bg-yellow-400",
|
|
340
|
+
mark: "bb:text-yellow-500"
|
|
341
|
+
},
|
|
342
|
+
"yellow-pale": {
|
|
317
343
|
pill: "bb:bg-yellow-100 bb:text-yellow-800",
|
|
318
344
|
pillHover: "bb:hover:text-yellow-600",
|
|
319
|
-
button: "bb:bg-yellow-100 bb:border-yellow-300 bb:text-yellow-800
|
|
345
|
+
button: "bb:bg-yellow-100 bb:border-yellow-300 bb:text-yellow-800",
|
|
346
|
+
buttonHover: "bb:hover:bg-yellow-200",
|
|
320
347
|
menuItem: "bb:bg-yellow-100 bb:text-yellow-800 bb:hover:bg-yellow-200 bb:focus:bg-yellow-200",
|
|
321
348
|
mark: "bb:text-yellow-500"
|
|
322
349
|
},
|
|
323
|
-
red: {
|
|
350
|
+
"red-solid": {
|
|
351
|
+
pill: "bb:bg-red-600 bb:text-white",
|
|
352
|
+
pillHover: "bb:hover:bg-red-700",
|
|
353
|
+
button: "bb:bg-red-600 bb:border-red-700 bb:text-white",
|
|
354
|
+
buttonHover: "bb:hover:bg-red-700",
|
|
355
|
+
menuItem: "bb:bg-red-600 bb:text-white bb:hover:bg-red-700 bb:focus:bg-red-700",
|
|
356
|
+
mark: "bb:text-red-500"
|
|
357
|
+
},
|
|
358
|
+
"red-pale": {
|
|
324
359
|
pill: "bb:bg-red-100 bb:text-red-800",
|
|
325
360
|
pillHover: "bb:hover:text-red-600",
|
|
326
|
-
button: "bb:bg-red-100 bb:border-red-300 bb:text-red-800
|
|
361
|
+
button: "bb:bg-red-100 bb:border-red-300 bb:text-red-800",
|
|
362
|
+
buttonHover: "bb:hover:bg-red-200",
|
|
327
363
|
menuItem: "bb:bg-red-100 bb:text-red-800 bb:hover:bg-red-200 bb:focus:bg-red-200",
|
|
328
364
|
mark: "bb:text-red-500"
|
|
329
365
|
},
|
|
330
|
-
indigo: {
|
|
366
|
+
"indigo-solid": {
|
|
367
|
+
pill: "bb:bg-indigo-500 bb:text-white",
|
|
368
|
+
pillHover: "bb:hover:bg-indigo-600",
|
|
369
|
+
button: "bb:bg-indigo-500 bb:border-indigo-600 bb:text-white",
|
|
370
|
+
buttonHover: "bb:hover:bg-indigo-600",
|
|
371
|
+
menuItem: "bb:bg-indigo-500 bb:text-white bb:hover:bg-indigo-600 bb:focus:bg-indigo-600",
|
|
372
|
+
mark: "bb:text-indigo-500"
|
|
373
|
+
},
|
|
374
|
+
"indigo-pale": {
|
|
331
375
|
pill: "bb:bg-indigo-100 bb:text-indigo-800",
|
|
332
376
|
pillHover: "bb:hover:text-indigo-600",
|
|
333
|
-
button: "bb:bg-indigo-100 bb:border-indigo-300 bb:text-indigo-800
|
|
377
|
+
button: "bb:bg-indigo-100 bb:border-indigo-300 bb:text-indigo-800",
|
|
378
|
+
buttonHover: "bb:hover:bg-indigo-200",
|
|
334
379
|
menuItem: "bb:bg-indigo-100 bb:text-indigo-800 bb:hover:bg-indigo-200 bb:focus:bg-indigo-200",
|
|
335
380
|
mark: "bb:text-indigo-500"
|
|
336
381
|
},
|
|
337
|
-
purple: {
|
|
382
|
+
"purple-solid": {
|
|
383
|
+
pill: "bb:bg-purple-500 bb:text-white",
|
|
384
|
+
pillHover: "bb:hover:bg-purple-600",
|
|
385
|
+
button: "bb:bg-purple-500 bb:border-purple-600 bb:text-white",
|
|
386
|
+
buttonHover: "bb:hover:bg-purple-600",
|
|
387
|
+
menuItem: "bb:bg-purple-500 bb:text-white bb:hover:bg-purple-600 bb:focus:bg-purple-600",
|
|
388
|
+
mark: "bb:text-purple-500"
|
|
389
|
+
},
|
|
390
|
+
"purple-pale": {
|
|
338
391
|
pill: "bb:bg-purple-100 bb:text-purple-800",
|
|
339
392
|
pillHover: "bb:hover:text-purple-600",
|
|
340
|
-
button: "bb:bg-purple-100 bb:border-purple-300 bb:text-purple-800
|
|
393
|
+
button: "bb:bg-purple-100 bb:border-purple-300 bb:text-purple-800",
|
|
394
|
+
buttonHover: "bb:hover:bg-purple-200",
|
|
341
395
|
menuItem: "bb:bg-purple-100 bb:text-purple-800 bb:hover:bg-purple-200 bb:focus:bg-purple-200",
|
|
342
396
|
mark: "bb:text-purple-500"
|
|
343
397
|
}
|
|
344
|
-
},
|
|
345
|
-
function
|
|
346
|
-
return
|
|
398
|
+
}, Ee = Object.keys(Te);
|
|
399
|
+
function A(e) {
|
|
400
|
+
return Ee.includes(e);
|
|
347
401
|
}
|
|
348
|
-
function
|
|
349
|
-
return
|
|
402
|
+
function De(e, t) {
|
|
403
|
+
return A(e) ? Te[e][t] ?? "" : "";
|
|
350
404
|
}
|
|
351
|
-
var
|
|
405
|
+
var j = { methods: { colorClass: De } }, M = (e, t) => {
|
|
352
406
|
let n = e.__vccOpts || e;
|
|
353
407
|
for (let [e, r] of t) n[e] = r;
|
|
354
408
|
return n;
|
|
355
|
-
},
|
|
356
|
-
mixins: [
|
|
409
|
+
}, Oe = {
|
|
410
|
+
mixins: [j],
|
|
357
411
|
props: {
|
|
358
412
|
withPulse: {
|
|
359
413
|
type: Boolean,
|
|
@@ -362,12 +416,12 @@ var O = { methods: { colorClass: Oe } }, k = (e, t) => {
|
|
|
362
416
|
color: {
|
|
363
417
|
type: String,
|
|
364
418
|
required: !0,
|
|
365
|
-
validator:
|
|
419
|
+
validator: A
|
|
366
420
|
}
|
|
367
421
|
}
|
|
368
422
|
};
|
|
369
|
-
function
|
|
370
|
-
return
|
|
423
|
+
function ke(e, t, n, r, o, s) {
|
|
424
|
+
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
425
|
class: "bb:fill-current bb:w-2 bb:h-2",
|
|
372
426
|
viewBox: "0 0 120 120"
|
|
373
427
|
}, [a("circle", {
|
|
@@ -376,8 +430,8 @@ function Ae(e, t, n, r, o, s) {
|
|
|
376
430
|
r: "45"
|
|
377
431
|
})], -1)]], 2);
|
|
378
432
|
}
|
|
379
|
-
var
|
|
380
|
-
components: { Dot:
|
|
433
|
+
var N = /*#__PURE__*/ M(Oe, [["render", ke]]), Ae = {
|
|
434
|
+
components: { Dot: N },
|
|
381
435
|
props: {
|
|
382
436
|
text: {
|
|
383
437
|
type: String,
|
|
@@ -392,45 +446,45 @@ var A = /*#__PURE__*/ k(ke, [["render", Ae]]), je = {
|
|
|
392
446
|
default: !1
|
|
393
447
|
}
|
|
394
448
|
}
|
|
395
|
-
},
|
|
396
|
-
function
|
|
397
|
-
let l =
|
|
398
|
-
return
|
|
449
|
+
}, je = { class: "bb:flex bb:h-6 bb:px-3 bb:bg-white bb:items-center bb:justify-between" }, Me = ["textContent"];
|
|
450
|
+
function Ne(e, t, n, r, o, s) {
|
|
451
|
+
let l = g("dot");
|
|
452
|
+
return p(), i("div", je, [
|
|
399
453
|
a("div", {
|
|
400
454
|
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
|
-
|
|
404
|
-
color: "red",
|
|
455
|
+
textContent: y(n.text)
|
|
456
|
+
}, null, 8, Me),
|
|
457
|
+
w(c(l, {
|
|
458
|
+
color: "red-pale",
|
|
405
459
|
"with-pulse": !0,
|
|
406
460
|
class: "bb:ml-3"
|
|
407
|
-
}, null, 512), [[
|
|
408
|
-
|
|
409
|
-
color: "red",
|
|
461
|
+
}, null, 512), [[S, n.isLoading]]),
|
|
462
|
+
w(c(l, {
|
|
463
|
+
color: "red-pale",
|
|
410
464
|
class: "bb:ml-3"
|
|
411
|
-
}, null, 512), [[
|
|
465
|
+
}, null, 512), [[S, n.isRequired]])
|
|
412
466
|
]);
|
|
413
467
|
}
|
|
414
|
-
var
|
|
415
|
-
inject:
|
|
468
|
+
var P = /*#__PURE__*/ M(Ae, [["render", Ne]]), F = {
|
|
469
|
+
inject: ve,
|
|
416
470
|
props: { lang: {
|
|
417
471
|
type: String,
|
|
418
472
|
default: null,
|
|
419
|
-
validator: (e) => e === null ||
|
|
473
|
+
validator: (e) => e === null || D(e)
|
|
420
474
|
} },
|
|
421
475
|
computed: {
|
|
422
476
|
resolvedLang() {
|
|
423
|
-
return
|
|
477
|
+
return D(this.lang) ? this.lang : this.uiSettings.lang;
|
|
424
478
|
},
|
|
425
479
|
texts() {
|
|
426
|
-
return
|
|
480
|
+
return ie[this.resolvedLang];
|
|
427
481
|
}
|
|
428
482
|
}
|
|
429
|
-
},
|
|
483
|
+
}, Pe = [
|
|
430
484
|
{ transform: "scale(1)" },
|
|
431
485
|
{ transform: "scale(0.8)" },
|
|
432
486
|
{ transform: "scale(1)" }
|
|
433
|
-
],
|
|
487
|
+
], Fe = 150, Ie = {
|
|
434
488
|
created() {
|
|
435
489
|
this.isPressing = !1, this.isUnmounted = !1;
|
|
436
490
|
},
|
|
@@ -438,40 +492,40 @@ var j = /*#__PURE__*/ k(je, [["render", Pe]]), M = {
|
|
|
438
492
|
this.isUnmounted = !0;
|
|
439
493
|
},
|
|
440
494
|
methods: { press() {
|
|
441
|
-
this.isPressing || (this.isPressing = !0,
|
|
495
|
+
this.isPressing || (this.isPressing = !0, Le(this.$el).then(() => {
|
|
442
496
|
this.isPressing = !1, this.isUnmounted || this.$emit("clicked");
|
|
443
497
|
}));
|
|
444
498
|
} }
|
|
445
499
|
};
|
|
446
|
-
function
|
|
447
|
-
if (typeof e.animate != "function" ||
|
|
500
|
+
function Le(e) {
|
|
501
|
+
if (typeof e.animate != "function" || Re()) return Promise.resolve();
|
|
448
502
|
let t = () => {};
|
|
449
|
-
return e.animate(
|
|
450
|
-
duration:
|
|
503
|
+
return e.animate(Pe, {
|
|
504
|
+
duration: Fe,
|
|
451
505
|
easing: "ease-out"
|
|
452
506
|
}).finished.then(t, t);
|
|
453
507
|
}
|
|
454
|
-
function
|
|
508
|
+
function Re() {
|
|
455
509
|
return typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
456
510
|
}
|
|
457
511
|
//#endregion
|
|
458
512
|
//#region src/components/CrossButton.vue
|
|
459
|
-
var
|
|
460
|
-
mixins: [
|
|
513
|
+
var ze = {
|
|
514
|
+
mixins: [F, Ie],
|
|
461
515
|
props: { size: {
|
|
462
516
|
type: String,
|
|
463
517
|
required: !0,
|
|
464
518
|
validator: (e) => ["small", "large"].includes(e)
|
|
465
519
|
} },
|
|
466
520
|
emits: ["clicked"]
|
|
467
|
-
},
|
|
468
|
-
function
|
|
469
|
-
return
|
|
521
|
+
}, Be = { class: "bb:sr-only bb:pointer-events-none bb:cursor-default" }, Ve = { class: "bb:flex bb:rounded-md bb:group-focus-visible:focus-ring bb:pointer-events-none bb:cursor-default" };
|
|
522
|
+
function He(e, t, n, r, o, c) {
|
|
523
|
+
return p(), i("button", {
|
|
470
524
|
type: "button",
|
|
471
525
|
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:
|
|
526
|
+
onClick: t[0] ||= E((...t) => e.press && e.press(...t), ["prevent"])
|
|
527
|
+
}, [a("span", Be, [h(e.$slots, "default", {}, () => [s(y(e.texts.clear), 1)])]), a("span", Ve, [(p(), i("svg", {
|
|
528
|
+
class: d(["bb:stroke-current bb:pointer-events-none bb:cursor-default", {
|
|
475
529
|
"bb:w-6 bb:h-6": n.size === "small",
|
|
476
530
|
"bb:w-8 bb:h-8": n.size === "large"
|
|
477
531
|
}]),
|
|
@@ -485,15 +539,15 @@ function Ue(e, t, n, r, s, c) {
|
|
|
485
539
|
d: "M6 18L18 6M6 6l12 12"
|
|
486
540
|
}, null, -1)]], 2))])]);
|
|
487
541
|
}
|
|
488
|
-
var
|
|
489
|
-
function
|
|
542
|
+
var I = /*#__PURE__*/ M(ze, [["render", He]]), Ue = 10;
|
|
543
|
+
function We(e) {
|
|
490
544
|
let t = e.replace(/\D/g, "");
|
|
491
|
-
return (t.startsWith("7") || t.startsWith("8")) && t[1] === "9" && (t = t.slice(1)), t.slice(0,
|
|
545
|
+
return (t.startsWith("7") || t.startsWith("8")) && t[1] === "9" && (t = t.slice(1)), t.slice(0, Ue);
|
|
492
546
|
}
|
|
493
|
-
function
|
|
547
|
+
function Ge(e) {
|
|
494
548
|
return e === "" ? "" : `7${e}`;
|
|
495
549
|
}
|
|
496
|
-
function
|
|
550
|
+
function L(e) {
|
|
497
551
|
let t = e ?? "", n = t.startsWith("+") ? t.slice(1) : t;
|
|
498
552
|
return n.startsWith("7") ? n.slice(1) : n;
|
|
499
553
|
}
|
|
@@ -501,8 +555,8 @@ function F(e) {
|
|
|
501
555
|
//#region src/components/RussianMobileFilter.vue
|
|
502
556
|
var Ke = 400, qe = 3, Je = {
|
|
503
557
|
components: {
|
|
504
|
-
ElementHeader:
|
|
505
|
-
CrossButton:
|
|
558
|
+
ElementHeader: P,
|
|
559
|
+
CrossButton: I
|
|
506
560
|
},
|
|
507
561
|
emits: ["update:modelValue", "changed"],
|
|
508
562
|
props: {
|
|
@@ -524,32 +578,32 @@ var Ke = 400, qe = 3, Je = {
|
|
|
524
578
|
}
|
|
525
579
|
},
|
|
526
580
|
data() {
|
|
527
|
-
return { digits:
|
|
581
|
+
return { digits: L(this.modelValue) };
|
|
528
582
|
},
|
|
529
583
|
created() {
|
|
530
|
-
this.mask = null, this.debounceTimer = null, this.isWritingProgrammatically = !1, this.lastCommitted =
|
|
584
|
+
this.mask = null, this.debounceTimer = null, this.isWritingProgrammatically = !1, this.lastCommitted = L(this.modelValue), this.isUnmounted = !1;
|
|
531
585
|
},
|
|
532
586
|
mounted() {
|
|
533
|
-
this.mask =
|
|
587
|
+
this.mask = ne(this.$refs.input, {
|
|
534
588
|
mask: "+7 (000) 000 00 00",
|
|
535
589
|
lazy: !0,
|
|
536
590
|
prepare: (e, t) => t.unmaskedValue === "" && (e === "7" || e === "8") ? "" : e
|
|
537
591
|
}), this.mask.on("accept", () => {
|
|
538
|
-
this.isWritingProgrammatically || (this.digits = this.mask.unmaskedValue, this.$emit("update:modelValue",
|
|
592
|
+
this.isWritingProgrammatically || (this.digits = this.mask.unmaskedValue, this.$emit("update:modelValue", Ge(this.digits)), this.scheduleCommit());
|
|
539
593
|
}), this.syncFromModelValue(this.modelValue);
|
|
540
594
|
},
|
|
541
595
|
beforeUnmount() {
|
|
542
596
|
this.isUnmounted = !0, clearTimeout(this.debounceTimer), this.mask?.destroy();
|
|
543
597
|
},
|
|
544
598
|
watch: { modelValue(e) {
|
|
545
|
-
e !==
|
|
599
|
+
e !== Ge(this.digits) && this.syncFromModelValue(e);
|
|
546
600
|
} },
|
|
547
601
|
methods: {
|
|
548
602
|
syncFromModelValue(e) {
|
|
549
|
-
this.writeToMask(
|
|
603
|
+
this.writeToMask(L(e)), this.digits = this.mask.unmaskedValue, this.lastCommitted = this.digits;
|
|
550
604
|
},
|
|
551
605
|
applyUserDigits(e) {
|
|
552
|
-
this.writeToMask(e), this.digits = this.mask.unmaskedValue, this.$emit("update:modelValue",
|
|
606
|
+
this.writeToMask(e), this.digits = this.mask.unmaskedValue, this.$emit("update:modelValue", Ge(this.digits));
|
|
553
607
|
},
|
|
554
608
|
writeToMask(e) {
|
|
555
609
|
if (this.isWritingProgrammatically = !0, e === "") this.mask.value = "";
|
|
@@ -572,7 +626,7 @@ var Ke = 400, qe = 3, Je = {
|
|
|
572
626
|
this.isUnmounted || (this.setLazy(!0), this.digits === "" && this.writeToMask(""), this.commit());
|
|
573
627
|
},
|
|
574
628
|
onPaste(e) {
|
|
575
|
-
this.applyUserDigits(
|
|
629
|
+
this.applyUserDigits(We(e.clipboardData?.getData("text") ?? "")), this.scheduleCommit();
|
|
576
630
|
},
|
|
577
631
|
moveFocusFromEraser() {
|
|
578
632
|
let e = this.$refs.eraser.$el;
|
|
@@ -593,9 +647,9 @@ var Ke = 400, qe = 3, Je = {
|
|
|
593
647
|
}
|
|
594
648
|
}
|
|
595
649
|
}, Ye = { class: "bb-dashboard-ui bb:flex bb:flex-none" }, Xe = { class: "bb:flex bb:w-full bb:flex-col bb:border bb:border-white bb:bg-white" }, Ze = { class: "bb:relative bb:flex bb:h-full bb:w-full" }, Qe = { class: "bb:flex bb:w-full bb:h-full bb:items-center bb:justify-center" };
|
|
596
|
-
function $e(e, t, n, r, o,
|
|
597
|
-
let l =
|
|
598
|
-
return
|
|
650
|
+
function $e(e, t, n, r, o, s) {
|
|
651
|
+
let l = g("element-header"), u = g("cross-button");
|
|
652
|
+
return p(), i("div", Ye, [a("div", Xe, [c(l, {
|
|
599
653
|
text: n.header,
|
|
600
654
|
"is-required": n.isRequired,
|
|
601
655
|
"is-loading": n.isLoading
|
|
@@ -609,22 +663,22 @@ function $e(e, t, n, r, o, c) {
|
|
|
609
663
|
inputmode: "tel",
|
|
610
664
|
autocomplete: "off",
|
|
611
665
|
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)]),
|
|
666
|
+
onFocus: t[0] ||= (...e) => s.onFocus && s.onFocus(...e),
|
|
667
|
+
onBlur: t[1] ||= (...e) => s.onBlur && s.onBlur(...e),
|
|
668
|
+
onKeydown: t[2] ||= T((...e) => s.commit && s.commit(...e), ["enter"]),
|
|
669
|
+
onPaste: t[3] ||= E((...e) => s.onPaste && s.onPaste(...e), ["prevent"])
|
|
670
|
+
}, null, 544)]), w(c(u, {
|
|
617
671
|
ref: "eraser",
|
|
618
672
|
size: "small",
|
|
619
|
-
onMousedown: t[4] ||=
|
|
620
|
-
onClicked:
|
|
673
|
+
onMousedown: t[4] ||= E(() => {}, ["prevent"]),
|
|
674
|
+
onClicked: s.clear,
|
|
621
675
|
class: "bb:absolute bb:right-0 bb:top-0 bb:pr-2 bb:h-full"
|
|
622
|
-
}, null, 8, ["onClicked"]), [[
|
|
676
|
+
}, null, 8, ["onClicked"]), [[S, o.digits.length > 0]])])])]);
|
|
623
677
|
}
|
|
624
|
-
var et = /*#__PURE__*/
|
|
678
|
+
var et = /*#__PURE__*/ M(Je, [["render", $e]]), tt = {
|
|
625
679
|
components: {
|
|
626
|
-
ElementHeader:
|
|
627
|
-
CrossButton:
|
|
680
|
+
ElementHeader: P,
|
|
681
|
+
CrossButton: I
|
|
628
682
|
},
|
|
629
683
|
emits: ["update:modelValue", "changed"],
|
|
630
684
|
props: {
|
|
@@ -667,9 +721,9 @@ var et = /*#__PURE__*/ k(Je, [["render", $e]]), tt = {
|
|
|
667
721
|
}
|
|
668
722
|
}
|
|
669
723
|
}, nt = { class: "bb-dashboard-ui bb:flex bb:flex-none" }, rt = { class: "bb:flex bb:w-full bb:flex-col bb:border bb:border-white bb:bg-white" }, it = { class: "bb:relative bb:flex bb:h-full bb:w-full" }, at = { class: "bb:flex bb:w-full bb:h-full bb:items-center bb:justify-center" };
|
|
670
|
-
function ot(e, t, n, r, o,
|
|
671
|
-
let l =
|
|
672
|
-
return
|
|
724
|
+
function ot(e, t, n, r, o, s) {
|
|
725
|
+
let l = g("element-header"), u = g("cross-button");
|
|
726
|
+
return p(), i("div", nt, [a("div", rt, [c(l, {
|
|
673
727
|
text: n.header,
|
|
674
728
|
"is-required": n.isRequired,
|
|
675
729
|
"is-loading": n.isLoading
|
|
@@ -677,51 +731,57 @@ function ot(e, t, n, r, o, c) {
|
|
|
677
731
|
"text",
|
|
678
732
|
"is-required",
|
|
679
733
|
"is-loading"
|
|
680
|
-
]), a("div", it, [a("label", at, [
|
|
734
|
+
]), a("div", it, [a("label", at, [w(a("input", {
|
|
681
735
|
ref: "input",
|
|
682
736
|
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
737
|
"onUpdate:modelValue": t[0] ||= (e) => o.search = e,
|
|
684
|
-
onInput: t[1] ||= (...e) =>
|
|
738
|
+
onInput: t[1] ||= (...e) => s.startSearch && s.startSearch(...e)
|
|
685
739
|
}, null, 544), [[
|
|
686
|
-
|
|
740
|
+
ee,
|
|
687
741
|
o.search,
|
|
688
742
|
void 0,
|
|
689
743
|
{ trim: !0 }
|
|
690
|
-
]])]),
|
|
744
|
+
]])]), w(c(u, {
|
|
691
745
|
ref: "eraser",
|
|
692
746
|
size: "small",
|
|
693
|
-
onClicked:
|
|
747
|
+
onClicked: s.clearInput,
|
|
694
748
|
class: "bb:absolute bb:right-0 bb:top-0 bb:pr-2 bb:h-full"
|
|
695
|
-
}, null, 8, ["onClicked"]), [[
|
|
749
|
+
}, null, 8, ["onClicked"]), [[S, s.inputNeedsEraser]])])])]);
|
|
696
750
|
}
|
|
697
|
-
var st = /*#__PURE__*/
|
|
751
|
+
var st = /*#__PURE__*/ M(tt, [["render", ot]]), R = 4, z = 8;
|
|
698
752
|
function ct(e) {
|
|
699
753
|
return typeof e?.showPopover == "function";
|
|
700
754
|
}
|
|
701
|
-
function
|
|
755
|
+
function B(e) {
|
|
702
756
|
return ct(e) && e.matches(":popover-open");
|
|
703
757
|
}
|
|
704
|
-
function lt(e, t, { maxWidth: n = null, align: r = "end", fitsBelow: i = !0, fitsRight: a = !0 } = {}) {
|
|
705
|
-
let
|
|
758
|
+
function lt(e, t, { maxWidth: n = null, align: r = "end", fitsBelow: i = !0, fitsRight: a = !0, shift: o = !1, popoverWidth: s = 0 } = {}) {
|
|
759
|
+
let c = e.getBoundingClientRect(), l = document.documentElement.clientWidth, u = document.documentElement.clientHeight, d = Math.max(z, c.left), f = Math.max(z, l - c.right), p = Math.max(0, l - d - z), m = Math.max(0, l - f - z), h = r === "start" && (a || p >= m), g = Math.max(0, u - c.bottom - R - z), _ = Math.max(0, c.top - R - z), v = i || g >= _, y = "";
|
|
706
760
|
if (r === "start") {
|
|
707
|
-
let e =
|
|
708
|
-
|
|
709
|
-
} else n !== null && (
|
|
761
|
+
let e = h ? p : m;
|
|
762
|
+
y = `${n === null ? e : Math.min(n, e)}px`;
|
|
763
|
+
} else o ? y = `${Math.max(0, l - 16)}px` : n !== null && (y = `${Math.min(n, m)}px`);
|
|
764
|
+
let b = o ? Math.max(z, Math.min(f, l - z - s)) : f;
|
|
710
765
|
Object.assign(t.style, {
|
|
711
|
-
top:
|
|
712
|
-
bottom:
|
|
713
|
-
right:
|
|
714
|
-
left:
|
|
715
|
-
maxHeight: `${
|
|
716
|
-
maxWidth:
|
|
766
|
+
top: v ? `${c.bottom + R}px` : "auto",
|
|
767
|
+
bottom: v ? "auto" : `${u - c.top + R}px`,
|
|
768
|
+
right: h ? "auto" : `${b}px`,
|
|
769
|
+
left: h ? `${d}px` : "auto",
|
|
770
|
+
maxHeight: `${v ? g : _}px`,
|
|
771
|
+
maxWidth: y
|
|
717
772
|
});
|
|
718
773
|
}
|
|
719
774
|
function ut(e, t, n = {}) {
|
|
720
775
|
let r = t.scrollHeight <= t.clientHeight + 1, i = t.scrollWidth <= t.clientWidth + 1;
|
|
721
|
-
r
|
|
776
|
+
(!r || !i) && lt(e, t, {
|
|
722
777
|
...n,
|
|
723
778
|
fitsBelow: r,
|
|
724
779
|
fitsRight: i
|
|
780
|
+
}), n.shift && lt(e, t, {
|
|
781
|
+
...n,
|
|
782
|
+
fitsBelow: r,
|
|
783
|
+
fitsRight: i,
|
|
784
|
+
popoverWidth: t.getBoundingClientRect().width
|
|
725
785
|
});
|
|
726
786
|
}
|
|
727
787
|
function dt(e, t) {
|
|
@@ -786,6 +846,10 @@ var ht = {
|
|
|
786
846
|
type: Number,
|
|
787
847
|
default: null
|
|
788
848
|
},
|
|
849
|
+
shift: {
|
|
850
|
+
type: Boolean,
|
|
851
|
+
default: !1
|
|
852
|
+
},
|
|
789
853
|
arrows: {
|
|
790
854
|
type: Boolean,
|
|
791
855
|
default: !1
|
|
@@ -833,8 +897,8 @@ var ht = {
|
|
|
833
897
|
},
|
|
834
898
|
setup() {
|
|
835
899
|
return {
|
|
836
|
-
buttonId:
|
|
837
|
-
panelId:
|
|
900
|
+
buttonId: b(),
|
|
901
|
+
panelId: b()
|
|
838
902
|
};
|
|
839
903
|
},
|
|
840
904
|
data() {
|
|
@@ -867,11 +931,11 @@ var ht = {
|
|
|
867
931
|
methods: {
|
|
868
932
|
applyPanelState() {
|
|
869
933
|
let e = this.$refs.panel;
|
|
870
|
-
ct(e) && e.isConnected && (this.panelIsOpen && !
|
|
934
|
+
ct(e) && e.isConnected && (this.panelIsOpen && !B(e) && e.showPopover(), !this.panelIsOpen && B(e) && e.hidePopover());
|
|
871
935
|
},
|
|
872
936
|
close() {
|
|
873
937
|
let e = this.$refs.panel;
|
|
874
|
-
|
|
938
|
+
B(e) && e.hidePopover();
|
|
875
939
|
},
|
|
876
940
|
reportPanelShown(e) {
|
|
877
941
|
this.panelShown !== e && (this.panelShown = e, this.$emit("toggle", e));
|
|
@@ -883,11 +947,12 @@ var ht = {
|
|
|
883
947
|
if (e.newState === "open") {
|
|
884
948
|
let e = document.getElementById(this.buttonId), t = {
|
|
885
949
|
maxWidth: this.maxWidth,
|
|
886
|
-
align: this.align
|
|
950
|
+
align: this.align,
|
|
951
|
+
shift: this.shift
|
|
887
952
|
};
|
|
888
953
|
this.$refs.panel.style.minWidth = "", this.$refs.panel.style.minHeight = "", this.$refs.panel.style.scrollbarGutter = "", lt(e, this.$refs.panel, t), requestAnimationFrame(() => {
|
|
889
954
|
let n = this.$refs.panel;
|
|
890
|
-
if (
|
|
955
|
+
if (B(n) && (ut(e, n, t), this.keepSize)) {
|
|
891
956
|
n.scrollHeight > n.clientHeight + 1 && (n.style.scrollbarGutter = "stable");
|
|
892
957
|
let e = n.getBoundingClientRect();
|
|
893
958
|
n.style.minWidth = `${e.width}px`, n.style.top === "auto" && (n.style.minHeight = `${e.height}px`);
|
|
@@ -900,7 +965,7 @@ var ht = {
|
|
|
900
965
|
},
|
|
901
966
|
onToggle() {
|
|
902
967
|
this.stopListening();
|
|
903
|
-
let e = this.$refs.panel, t =
|
|
968
|
+
let e = this.$refs.panel, t = B(e);
|
|
904
969
|
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
970
|
},
|
|
906
971
|
restoreFocus(e) {
|
|
@@ -925,14 +990,14 @@ var ht = {
|
|
|
925
990
|
"tabindex"
|
|
926
991
|
];
|
|
927
992
|
function vt(e, t, n, o, s, c) {
|
|
928
|
-
return n.hasContent ? (
|
|
993
|
+
return n.hasContent ? (p(), i("span", gt, [h(e.$slots, "trigger", {
|
|
929
994
|
id: o.buttonId,
|
|
930
995
|
popovertarget: o.panelId
|
|
931
996
|
}), a("div", {
|
|
932
997
|
ref: "panel",
|
|
933
998
|
id: o.panelId,
|
|
934
999
|
popover: "auto",
|
|
935
|
-
class:
|
|
1000
|
+
class: d(["bb:m-0 bb:inset-auto", n.panelClass]),
|
|
936
1001
|
role: n.panelRole,
|
|
937
1002
|
"aria-orientation": n.panelRole === "menu" ? "vertical" : null,
|
|
938
1003
|
"aria-labelledby": n.panelLabel === null ? o.buttonId : null,
|
|
@@ -941,9 +1006,9 @@ function vt(e, t, n, o, s, c) {
|
|
|
941
1006
|
onBeforetoggle: t[0] ||= (...e) => c.onBeforeToggle && c.onBeforeToggle(...e),
|
|
942
1007
|
onToggle: t[1] ||= (...e) => c.onToggle && c.onToggle(...e),
|
|
943
1008
|
onClick: t[2] ||= (...e) => c.onClick && c.onClick(...e)
|
|
944
|
-
}, [
|
|
1009
|
+
}, [h(e.$slots, "default")], 42, _t)])) : r("", !0);
|
|
945
1010
|
}
|
|
946
|
-
var
|
|
1011
|
+
var V = /*#__PURE__*/ M(ht, [["render", vt]]);
|
|
947
1012
|
//#endregion
|
|
948
1013
|
//#region src/date.js
|
|
949
1014
|
function yt(e) {
|
|
@@ -1010,10 +1075,10 @@ function At(e, t) {
|
|
|
1010
1075
|
//#region src/components/SelectDate.vue
|
|
1011
1076
|
var jt = {
|
|
1012
1077
|
components: {
|
|
1013
|
-
PopoverPanel:
|
|
1014
|
-
CrossButton:
|
|
1078
|
+
PopoverPanel: V,
|
|
1079
|
+
CrossButton: I
|
|
1015
1080
|
},
|
|
1016
|
-
mixins: [
|
|
1081
|
+
mixins: [F],
|
|
1017
1082
|
emits: ["update:modelValue", "changed"],
|
|
1018
1083
|
props: {
|
|
1019
1084
|
modelValue: {
|
|
@@ -1031,6 +1096,10 @@ var jt = {
|
|
|
1031
1096
|
labelledBy: {
|
|
1032
1097
|
type: String,
|
|
1033
1098
|
default: null
|
|
1099
|
+
},
|
|
1100
|
+
describedBy: {
|
|
1101
|
+
type: String,
|
|
1102
|
+
default: null
|
|
1034
1103
|
}
|
|
1035
1104
|
},
|
|
1036
1105
|
created() {
|
|
@@ -1118,19 +1187,21 @@ var jt = {
|
|
|
1118
1187
|
}, Mt = { class: "bb-dashboard-ui bb:flex bb:flex-col" }, Nt = { class: "bb:relative bb:flex bb:h-full" }, Pt = [
|
|
1119
1188
|
"id",
|
|
1120
1189
|
"popovertarget",
|
|
1121
|
-
"aria-labelledby"
|
|
1190
|
+
"aria-labelledby",
|
|
1191
|
+
"aria-describedby"
|
|
1122
1192
|
], 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
1193
|
"disabled",
|
|
1124
1194
|
"value",
|
|
1125
1195
|
"placeholder",
|
|
1126
|
-
"aria-labelledby"
|
|
1196
|
+
"aria-labelledby",
|
|
1197
|
+
"aria-describedby"
|
|
1127
1198
|
], Rt = {
|
|
1128
1199
|
ref: "container",
|
|
1129
1200
|
class: "bb:flex"
|
|
1130
1201
|
};
|
|
1131
|
-
function zt(e, t, o,
|
|
1132
|
-
let d =
|
|
1133
|
-
return
|
|
1202
|
+
function zt(e, t, o, s, l, u) {
|
|
1203
|
+
let d = g("popover-panel"), f = g("cross-button");
|
|
1204
|
+
return p(), i("div", Mt, [a("div", Nt, [c(d, {
|
|
1134
1205
|
class: "bb:flex bb:w-full",
|
|
1135
1206
|
modelValue: l.popupIsOpen,
|
|
1136
1207
|
"onUpdate:modelValue": t[1] ||= (e) => l.popupIsOpen = e,
|
|
@@ -1138,16 +1209,17 @@ function zt(e, t, o, c, l, u) {
|
|
|
1138
1209
|
"return-focus": "",
|
|
1139
1210
|
"panel-class": "bb:bg-white bb:border bb:border-gray-200 bb:rounded-md bb:shadow-lg"
|
|
1140
1211
|
}, {
|
|
1141
|
-
trigger:
|
|
1212
|
+
trigger: C((e) => [a("button", {
|
|
1142
1213
|
ref: "trigger",
|
|
1143
1214
|
type: "button",
|
|
1144
1215
|
id: e.id,
|
|
1145
1216
|
popovertarget: e.popovertarget,
|
|
1146
1217
|
"aria-labelledby": o.labelledBy ? o.labelledBy + " " + e.id : null,
|
|
1218
|
+
"aria-describedby": o.describedBy,
|
|
1147
1219
|
class: "bb:absolute bb:inset-0 bb:cursor-pointer bb:focus-visible:focus-ring bb:rounded-[var(--bb-field-radius,0)]"
|
|
1148
1220
|
}, [a("span", {
|
|
1149
1221
|
class: "bb:sr-only bb:pointer-events-none bb:cursor-default",
|
|
1150
|
-
textContent:
|
|
1222
|
+
textContent: y(u.triggerLabel)
|
|
1151
1223
|
}, null, 8, Ft)], 8, Pt), a("label", It, [a("input", {
|
|
1152
1224
|
disabled: l.popupIsOpen,
|
|
1153
1225
|
ref: "field",
|
|
@@ -1156,11 +1228,12 @@ function zt(e, t, o, c, l, u) {
|
|
|
1156
1228
|
value: l.dayValue,
|
|
1157
1229
|
placeholder: o.placeholderText,
|
|
1158
1230
|
"aria-labelledby": o.labelledBy || null,
|
|
1231
|
+
"aria-describedby": o.describedBy,
|
|
1159
1232
|
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
1233
|
}, null, 40, Lt)])]),
|
|
1161
|
-
default:
|
|
1234
|
+
default: C(() => [a("div", Rt, null, 512)]),
|
|
1162
1235
|
_: 1
|
|
1163
|
-
}, 8, ["modelValue"]), u.needsEraser ? (
|
|
1236
|
+
}, 8, ["modelValue"]), u.needsEraser ? (p(), n(f, {
|
|
1164
1237
|
key: 0,
|
|
1165
1238
|
ref: "eraser",
|
|
1166
1239
|
size: "small",
|
|
@@ -1169,10 +1242,10 @@ function zt(e, t, o, c, l, u) {
|
|
|
1169
1242
|
lang: e.resolvedLang
|
|
1170
1243
|
}, null, 8, ["onClicked", "lang"])) : r("", !0)])]);
|
|
1171
1244
|
}
|
|
1172
|
-
var
|
|
1245
|
+
var H = /*#__PURE__*/ M(jt, [["render", zt]]), Bt = {
|
|
1173
1246
|
components: {
|
|
1174
|
-
ElementHeader:
|
|
1175
|
-
SelectDate:
|
|
1247
|
+
ElementHeader: P,
|
|
1248
|
+
SelectDate: H
|
|
1176
1249
|
},
|
|
1177
1250
|
emits: ["update:modelValue", "changed"],
|
|
1178
1251
|
props: {
|
|
@@ -1198,9 +1271,9 @@ var B = /*#__PURE__*/ k(jt, [["render", zt]]), Bt = {
|
|
|
1198
1271
|
}
|
|
1199
1272
|
}
|
|
1200
1273
|
}, 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
|
|
1274
|
+
function Wt(e, t, n, r, o, s) {
|
|
1275
|
+
let l = g("element-header"), u = g("select-date");
|
|
1276
|
+
return p(), i("div", Vt, [a("div", Ht, [a("div", Ut, [c(l, {
|
|
1204
1277
|
text: n.header ?? "",
|
|
1205
1278
|
"is-required": n.isRequired,
|
|
1206
1279
|
"is-loading": n.isLoading
|
|
@@ -1208,7 +1281,7 @@ function Wt(e, t, n, r, o, c) {
|
|
|
1208
1281
|
"text",
|
|
1209
1282
|
"is-required",
|
|
1210
1283
|
"is-loading"
|
|
1211
|
-
]),
|
|
1284
|
+
]), c(u, {
|
|
1212
1285
|
class: "bb:flex-1",
|
|
1213
1286
|
"model-value": n.modelValue,
|
|
1214
1287
|
lang: n.lang,
|
|
@@ -1216,11 +1289,30 @@ function Wt(e, t, n, r, o, c) {
|
|
|
1216
1289
|
onChanged: t[1] ||= (t) => e.$emit("changed")
|
|
1217
1290
|
}, null, 8, ["model-value", "lang"])])])]);
|
|
1218
1291
|
}
|
|
1219
|
-
var Gt = /*#__PURE__*/
|
|
1292
|
+
var Gt = /*#__PURE__*/ M(Bt, [["render", Wt]]), U = {
|
|
1293
|
+
props: { description: {
|
|
1294
|
+
type: String,
|
|
1295
|
+
default: null
|
|
1296
|
+
} },
|
|
1297
|
+
methods: {
|
|
1298
|
+
hasDescription() {
|
|
1299
|
+
return this.$slots.description !== void 0 || typeof this.description == "string" && this.description !== "";
|
|
1300
|
+
},
|
|
1301
|
+
descriptionId(e) {
|
|
1302
|
+
return this.hasDescription() ? `${e}-description` : null;
|
|
1303
|
+
}
|
|
1304
|
+
}
|
|
1305
|
+
}, 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" };
|
|
1306
|
+
function Jt(e, t, n, r, a, o) {
|
|
1307
|
+
return p(), i("div", qt, [h(e.$slots, "default")]);
|
|
1308
|
+
}
|
|
1309
|
+
var W = /*#__PURE__*/ M(Kt, [["render", Jt]]), Yt = {
|
|
1220
1310
|
components: {
|
|
1221
|
-
Dot:
|
|
1222
|
-
|
|
1311
|
+
Dot: N,
|
|
1312
|
+
FieldDescription: W,
|
|
1313
|
+
SelectDate: H
|
|
1223
1314
|
},
|
|
1315
|
+
mixins: [U],
|
|
1224
1316
|
emits: ["update:modelValue", "changed"],
|
|
1225
1317
|
props: {
|
|
1226
1318
|
modelValue: {
|
|
@@ -1241,34 +1333,46 @@ var Gt = /*#__PURE__*/ k(Bt, [["render", Wt]]), Kt = {
|
|
|
1241
1333
|
}
|
|
1242
1334
|
},
|
|
1243
1335
|
setup() {
|
|
1244
|
-
return { labelId:
|
|
1336
|
+
return { labelId: b() };
|
|
1245
1337
|
}
|
|
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
|
-
|
|
1338
|
+
}, 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]" };
|
|
1339
|
+
function en(e, t, o, l, u, d) {
|
|
1340
|
+
let f = g("dot"), m = g("select-date"), _ = g("field-description");
|
|
1341
|
+
return p(), i("div", Xt, [
|
|
1342
|
+
a("div", Zt, [a("span", {
|
|
1343
|
+
id: l.labelId,
|
|
1344
|
+
class: "bb:block bb:text-sm bb:font-medium bb:leading-5 bb:text-gray-700",
|
|
1345
|
+
textContent: y(o.label ?? "")
|
|
1346
|
+
}, null, 8, Qt), w(c(f, {
|
|
1347
|
+
color: "red-pale",
|
|
1348
|
+
class: "bb:ml-2"
|
|
1349
|
+
}, null, 512), [[S, o.isRequired]])]),
|
|
1350
|
+
a("div", $t, [c(m, {
|
|
1351
|
+
class: "bb:flex-1",
|
|
1352
|
+
"model-value": o.modelValue,
|
|
1353
|
+
"labelled-by": l.labelId,
|
|
1354
|
+
"described-by": e.descriptionId(l.labelId),
|
|
1355
|
+
lang: o.lang,
|
|
1356
|
+
"onUpdate:modelValue": t[0] ||= (t) => e.$emit("update:modelValue", t),
|
|
1357
|
+
onChanged: t[1] ||= (t) => e.$emit("changed")
|
|
1358
|
+
}, null, 8, [
|
|
1359
|
+
"model-value",
|
|
1360
|
+
"labelled-by",
|
|
1361
|
+
"described-by",
|
|
1362
|
+
"lang"
|
|
1363
|
+
])]),
|
|
1364
|
+
e.hasDescription() ? (p(), n(_, {
|
|
1365
|
+
key: 0,
|
|
1366
|
+
id: e.descriptionId(l.labelId)
|
|
1367
|
+
}, {
|
|
1368
|
+
default: C(() => [h(e.$slots, "description", {}, () => [s(y(e.description), 1)])]),
|
|
1369
|
+
_: 3
|
|
1370
|
+
}, 8, ["id"])) : r("", !0)
|
|
1371
|
+
]);
|
|
1268
1372
|
}
|
|
1269
|
-
var
|
|
1373
|
+
var tn = /*#__PURE__*/ M(Yt, [["render", en]]), nn = {
|
|
1270
1374
|
inheritAttrs: !1,
|
|
1271
|
-
mixins: [
|
|
1375
|
+
mixins: [F],
|
|
1272
1376
|
emits: [
|
|
1273
1377
|
"update:dateFrom",
|
|
1274
1378
|
"update:dateTo",
|
|
@@ -1325,17 +1429,17 @@ var Qt = /*#__PURE__*/ k(Kt, [["render", Zt]]), $t = {
|
|
|
1325
1429
|
}
|
|
1326
1430
|
}
|
|
1327
1431
|
};
|
|
1328
|
-
function
|
|
1329
|
-
return
|
|
1432
|
+
function rn(e, t, n, r, i, a) {
|
|
1433
|
+
return h(e.$slots, "default", {
|
|
1330
1434
|
from: a.from,
|
|
1331
1435
|
to: a.to
|
|
1332
1436
|
});
|
|
1333
1437
|
}
|
|
1334
|
-
var
|
|
1438
|
+
var an = /*#__PURE__*/ M(nn, [["render", rn]]), on = {
|
|
1335
1439
|
components: {
|
|
1336
|
-
ElementHeader:
|
|
1337
|
-
SelectDate:
|
|
1338
|
-
SelectDateInterval:
|
|
1440
|
+
ElementHeader: P,
|
|
1441
|
+
SelectDate: H,
|
|
1442
|
+
SelectDateInterval: an
|
|
1339
1443
|
},
|
|
1340
1444
|
emits: [
|
|
1341
1445
|
"update:dateFrom",
|
|
@@ -1368,10 +1472,10 @@ var tn = /*#__PURE__*/ k($t, [["render", en]]), nn = {
|
|
|
1368
1472
|
default: null
|
|
1369
1473
|
}
|
|
1370
1474
|
}
|
|
1371
|
-
},
|
|
1372
|
-
function
|
|
1373
|
-
let l =
|
|
1374
|
-
return
|
|
1475
|
+
}, 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" };
|
|
1476
|
+
function dn(e, t, n, r, o, s) {
|
|
1477
|
+
let l = g("element-header"), u = g("select-date"), d = g("select-date-interval");
|
|
1478
|
+
return p(), i("div", sn, [a("div", cn, [a("div", ln, [c(l, {
|
|
1375
1479
|
text: n.header ?? "",
|
|
1376
1480
|
"is-required": n.isRequired,
|
|
1377
1481
|
"is-loading": n.isLoading
|
|
@@ -1379,7 +1483,7 @@ function cn(e, t, n, r, o, c) {
|
|
|
1379
1483
|
"text",
|
|
1380
1484
|
"is-required",
|
|
1381
1485
|
"is-loading"
|
|
1382
|
-
]),
|
|
1486
|
+
]), c(d, {
|
|
1383
1487
|
"date-from": n.dateFrom,
|
|
1384
1488
|
"date-to": n.dateTo,
|
|
1385
1489
|
lang: n.lang,
|
|
@@ -1387,7 +1491,7 @@ function cn(e, t, n, r, o, c) {
|
|
|
1387
1491
|
"onUpdate:dateTo": t[1] ||= (t) => e.$emit("update:dateTo", t),
|
|
1388
1492
|
onChanged: t[2] ||= (t) => e.$emit("changed")
|
|
1389
1493
|
}, {
|
|
1390
|
-
default:
|
|
1494
|
+
default: C(({ from: e, to: t }) => [a("div", un, [c(u, {
|
|
1391
1495
|
class: "bb:flex-1 bb:min-w-36",
|
|
1392
1496
|
"model-value": e.value,
|
|
1393
1497
|
"placeholder-text": e.placeholder,
|
|
@@ -1398,7 +1502,7 @@ function cn(e, t, n, r, o, c) {
|
|
|
1398
1502
|
"placeholder-text",
|
|
1399
1503
|
"lang",
|
|
1400
1504
|
"onUpdate:modelValue"
|
|
1401
|
-
]),
|
|
1505
|
+
]), c(u, {
|
|
1402
1506
|
class: "bb:flex-1 bb:min-w-36",
|
|
1403
1507
|
"model-value": t.value,
|
|
1404
1508
|
"placeholder-text": t.placeholder,
|
|
@@ -1417,12 +1521,14 @@ function cn(e, t, n, r, o, c) {
|
|
|
1417
1521
|
"lang"
|
|
1418
1522
|
])])])]);
|
|
1419
1523
|
}
|
|
1420
|
-
var
|
|
1524
|
+
var fn = /*#__PURE__*/ M(on, [["render", dn]]), pn = {
|
|
1421
1525
|
components: {
|
|
1422
|
-
Dot:
|
|
1423
|
-
|
|
1424
|
-
|
|
1526
|
+
Dot: N,
|
|
1527
|
+
FieldDescription: W,
|
|
1528
|
+
SelectDate: H,
|
|
1529
|
+
SelectDateInterval: an
|
|
1425
1530
|
},
|
|
1531
|
+
mixins: [U],
|
|
1426
1532
|
emits: [
|
|
1427
1533
|
"update:dateFrom",
|
|
1428
1534
|
"update:dateTo",
|
|
@@ -1451,61 +1557,72 @@ var ln = /*#__PURE__*/ k(nn, [["render", cn]]), un = {
|
|
|
1451
1557
|
}
|
|
1452
1558
|
},
|
|
1453
1559
|
setup() {
|
|
1454
|
-
return { labelId:
|
|
1560
|
+
return { labelId: b() };
|
|
1455
1561
|
}
|
|
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
|
-
|
|
1562
|
+
}, 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]" };
|
|
1563
|
+
function bn(e, t, o, l, u, d) {
|
|
1564
|
+
let f = g("dot"), m = g("select-date"), _ = g("select-date-interval"), v = g("field-description");
|
|
1565
|
+
return p(), i("div", mn, [
|
|
1566
|
+
a("div", hn, [a("span", {
|
|
1567
|
+
id: l.labelId,
|
|
1568
|
+
class: "bb:block bb:text-sm bb:font-medium bb:leading-5 bb:text-gray-700",
|
|
1569
|
+
textContent: y(o.label ?? "")
|
|
1570
|
+
}, null, 8, gn), w(c(f, {
|
|
1571
|
+
color: "red-pale",
|
|
1572
|
+
class: "bb:ml-2"
|
|
1573
|
+
}, null, 512), [[S, o.isRequired]])]),
|
|
1574
|
+
a("div", {
|
|
1575
|
+
class: "bb:mt-1 bb:grid bb:grid-cols-2 bb:gap-3",
|
|
1576
|
+
role: "group",
|
|
1577
|
+
"aria-labelledby": l.labelId,
|
|
1578
|
+
"aria-describedby": e.descriptionId(l.labelId)
|
|
1579
|
+
}, [c(_, {
|
|
1580
|
+
"date-from": o.dateFrom,
|
|
1581
|
+
"date-to": o.dateTo,
|
|
1582
|
+
lang: o.lang,
|
|
1583
|
+
"onUpdate:dateFrom": t[0] ||= (t) => e.$emit("update:dateFrom", t),
|
|
1584
|
+
"onUpdate:dateTo": t[1] ||= (t) => e.$emit("update:dateTo", t),
|
|
1585
|
+
onChanged: t[2] ||= (t) => e.$emit("changed")
|
|
1586
|
+
}, {
|
|
1587
|
+
default: C(({ from: e, to: t }) => [a("div", vn, [c(m, {
|
|
1588
|
+
class: "bb:flex-1",
|
|
1589
|
+
"model-value": e.value,
|
|
1590
|
+
"placeholder-text": e.placeholder,
|
|
1591
|
+
lang: o.lang,
|
|
1592
|
+
"onUpdate:modelValue": e.update
|
|
1593
|
+
}, null, 8, [
|
|
1594
|
+
"model-value",
|
|
1595
|
+
"placeholder-text",
|
|
1596
|
+
"lang",
|
|
1597
|
+
"onUpdate:modelValue"
|
|
1598
|
+
])]), a("div", yn, [c(m, {
|
|
1599
|
+
class: "bb:flex-1",
|
|
1600
|
+
"model-value": t.value,
|
|
1601
|
+
"placeholder-text": t.placeholder,
|
|
1602
|
+
lang: o.lang,
|
|
1603
|
+
"onUpdate:modelValue": t.update
|
|
1604
|
+
}, null, 8, [
|
|
1605
|
+
"model-value",
|
|
1606
|
+
"placeholder-text",
|
|
1607
|
+
"lang",
|
|
1608
|
+
"onUpdate:modelValue"
|
|
1609
|
+
])])]),
|
|
1610
|
+
_: 1
|
|
1611
|
+
}, 8, [
|
|
1612
|
+
"date-from",
|
|
1613
|
+
"date-to",
|
|
1614
|
+
"lang"
|
|
1615
|
+
])], 8, _n),
|
|
1616
|
+
e.hasDescription() ? (p(), n(v, {
|
|
1617
|
+
key: 0,
|
|
1618
|
+
id: e.descriptionId(l.labelId)
|
|
1619
|
+
}, {
|
|
1620
|
+
default: C(() => [h(e.$slots, "description", {}, () => [s(y(e.description), 1)])]),
|
|
1621
|
+
_: 3
|
|
1622
|
+
}, 8, ["id"])) : r("", !0)
|
|
1623
|
+
]);
|
|
1507
1624
|
}
|
|
1508
|
-
var
|
|
1625
|
+
var xn = /*#__PURE__*/ M(pn, [["render", bn]]), Sn = {
|
|
1509
1626
|
props: { withSearch: {
|
|
1510
1627
|
type: Boolean,
|
|
1511
1628
|
default: !1
|
|
@@ -1555,10 +1672,10 @@ var vn = /*#__PURE__*/ k(un, [["render", _n]]), yn = {
|
|
|
1555
1672
|
}
|
|
1556
1673
|
}
|
|
1557
1674
|
}
|
|
1558
|
-
},
|
|
1675
|
+
}, Cn = {
|
|
1559
1676
|
components: {
|
|
1560
|
-
PopoverPanel:
|
|
1561
|
-
CrossButton:
|
|
1677
|
+
PopoverPanel: V,
|
|
1678
|
+
CrossButton: I
|
|
1562
1679
|
},
|
|
1563
1680
|
emits: [
|
|
1564
1681
|
"update:isOpen",
|
|
@@ -1605,6 +1722,10 @@ var vn = /*#__PURE__*/ k(un, [["render", _n]]), yn = {
|
|
|
1605
1722
|
labelledBy: {
|
|
1606
1723
|
type: String,
|
|
1607
1724
|
default: null
|
|
1725
|
+
},
|
|
1726
|
+
describedBy: {
|
|
1727
|
+
type: String,
|
|
1728
|
+
default: null
|
|
1608
1729
|
}
|
|
1609
1730
|
},
|
|
1610
1731
|
computed: { needsEraser() {
|
|
@@ -1614,22 +1735,23 @@ var vn = /*#__PURE__*/ k(un, [["render", _n]]), yn = {
|
|
|
1614
1735
|
let e = this.$refs.eraser.$el;
|
|
1615
1736
|
document.activeElement === e && e.matches(":focus-visible") && this.$refs.trigger.focus({ preventScroll: !0 }), this.$emit("erased");
|
|
1616
1737
|
} }
|
|
1617
|
-
},
|
|
1738
|
+
}, wn = { class: "bb:flex bb:flex-col bb:grow" }, Tn = { class: "bb:relative bb:flex bb:w-full bb:h-full" }, En = [
|
|
1618
1739
|
"id",
|
|
1619
1740
|
"popovertarget",
|
|
1620
|
-
"aria-labelledby"
|
|
1621
|
-
|
|
1741
|
+
"aria-labelledby",
|
|
1742
|
+
"aria-describedby"
|
|
1743
|
+
], Dn = {
|
|
1622
1744
|
key: 0,
|
|
1623
1745
|
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
|
-
},
|
|
1746
|
+
}, On = ["textContent"], kn = ["textContent"], An = {
|
|
1625
1747
|
key: 2,
|
|
1626
1748
|
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
1749
|
viewBox: "0 0 8 6",
|
|
1628
1750
|
"aria-hidden": "true"
|
|
1629
1751
|
};
|
|
1630
|
-
function
|
|
1631
|
-
let d =
|
|
1632
|
-
return
|
|
1752
|
+
function jn(e, t, o, s, l, u) {
|
|
1753
|
+
let d = g("popover-panel"), f = g("cross-button");
|
|
1754
|
+
return p(), i("div", wn, [a("div", Tn, [c(d, {
|
|
1633
1755
|
class: "bb:flex bb:w-full bb:h-full",
|
|
1634
1756
|
"model-value": o.isOpen,
|
|
1635
1757
|
align: "start",
|
|
@@ -1643,22 +1765,23 @@ function On(e, t, o, c, l, u) {
|
|
|
1643
1765
|
"onUpdate:modelValue": t[0] ||= (t) => e.$emit("update:isOpen", t),
|
|
1644
1766
|
onToggle: t[1] ||= (t) => e.$emit("toggle", t)
|
|
1645
1767
|
}, {
|
|
1646
|
-
trigger:
|
|
1768
|
+
trigger: C((e) => [a("button", {
|
|
1647
1769
|
ref: "trigger",
|
|
1648
1770
|
type: "button",
|
|
1649
1771
|
id: e.id,
|
|
1650
1772
|
popovertarget: e.popovertarget,
|
|
1651
1773
|
"aria-labelledby": o.labelledBy ? o.labelledBy + " " + e.id : null,
|
|
1774
|
+
"aria-describedby": o.describedBy,
|
|
1652
1775
|
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 ? (
|
|
1776
|
+
}, [o.withArrow ? (p(), i("span", Dn, [a("span", {
|
|
1654
1777
|
class: "bb:truncate",
|
|
1655
|
-
textContent:
|
|
1656
|
-
}, null, 8,
|
|
1778
|
+
textContent: y(o.title)
|
|
1779
|
+
}, null, 8, On)])) : (p(), i("span", {
|
|
1657
1780
|
key: 1,
|
|
1658
1781
|
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:
|
|
1782
|
+
textContent: y(o.title)
|
|
1783
|
+
}, null, 8, kn)), o.withArrow ? (p(), i("svg", An, [...t[2] ||= [a("path", { d: "M0 0h8L4 6z" }, null, -1)]])) : r("", !0)], 8, En)]),
|
|
1784
|
+
default: C(() => [h(e.$slots, "default")]),
|
|
1662
1785
|
_: 3
|
|
1663
1786
|
}, 8, [
|
|
1664
1787
|
"model-value",
|
|
@@ -1666,7 +1789,7 @@ function On(e, t, o, c, l, u) {
|
|
|
1666
1789
|
"find-stops",
|
|
1667
1790
|
"find-tab-stops",
|
|
1668
1791
|
"keep-size"
|
|
1669
|
-
]), u.needsEraser ? (
|
|
1792
|
+
]), u.needsEraser ? (p(), n(f, {
|
|
1670
1793
|
key: 0,
|
|
1671
1794
|
ref: "eraser",
|
|
1672
1795
|
size: "small",
|
|
@@ -1675,7 +1798,7 @@ function On(e, t, o, c, l, u) {
|
|
|
1675
1798
|
class: "bb:absolute bb:right-0 bb:top-0 bb:pr-2 bb:h-full"
|
|
1676
1799
|
}, null, 8, ["lang", "onClicked"])) : r("", !0)])]);
|
|
1677
1800
|
}
|
|
1678
|
-
var
|
|
1801
|
+
var Mn = /*#__PURE__*/ M(Cn, [["render", jn]]), Nn = {
|
|
1679
1802
|
props: {
|
|
1680
1803
|
isChecked: {
|
|
1681
1804
|
type: Boolean,
|
|
@@ -1687,28 +1810,28 @@ var kn = /*#__PURE__*/ k(bn, [["render", On]]), An = {
|
|
|
1687
1810
|
methods: { toggle() {
|
|
1688
1811
|
this.$emit("clicked");
|
|
1689
1812
|
} }
|
|
1690
|
-
},
|
|
1813
|
+
}, 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
1814
|
class: "bb:w-5 bb:h-5 bb:fill-current bb:text-green-300",
|
|
1692
1815
|
viewBox: "0 0 20 20",
|
|
1693
1816
|
"aria-hidden": "true"
|
|
1694
|
-
},
|
|
1695
|
-
function
|
|
1696
|
-
return
|
|
1817
|
+
}, In = ["textContent"];
|
|
1818
|
+
function Ln(e, t, n, r, o, s) {
|
|
1819
|
+
return p(), i("button", {
|
|
1697
1820
|
type: "button",
|
|
1698
|
-
onClick: t[0] ||=
|
|
1821
|
+
onClick: t[0] ||= E((...e) => s.toggle && s.toggle(...e), ["prevent"]),
|
|
1699
1822
|
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",
|
|
1823
|
+
}, [a("span", Pn, [w((p(), i("svg", Fn, [...t[1] ||= [a("path", {
|
|
1701
1824
|
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
1825
|
"clip-rule": "evenodd",
|
|
1703
1826
|
"fill-rule": "evenodd"
|
|
1704
|
-
}, null, -1)]], 512)), [[
|
|
1827
|
+
}, null, -1)]], 512)), [[S, n.isChecked]])]), a("span", {
|
|
1705
1828
|
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,
|
|
1829
|
+
textContent: y(n.name)
|
|
1830
|
+
}, null, 8, In)]);
|
|
1708
1831
|
}
|
|
1709
|
-
var
|
|
1710
|
-
components: { CrossButton:
|
|
1711
|
-
mixins: [
|
|
1832
|
+
var Rn = /*#__PURE__*/ M(Nn, [["render", Ln]]), zn = {
|
|
1833
|
+
components: { CrossButton: I },
|
|
1834
|
+
mixins: [F],
|
|
1712
1835
|
emits: ["update:modelValue"],
|
|
1713
1836
|
props: { modelValue: {
|
|
1714
1837
|
type: String,
|
|
@@ -1740,33 +1863,33 @@ var Fn = /*#__PURE__*/ k(An, [["render", Pn]]), In = {
|
|
|
1740
1863
|
this.query = "", this.$refs.input.focus();
|
|
1741
1864
|
}
|
|
1742
1865
|
}
|
|
1743
|
-
},
|
|
1744
|
-
function
|
|
1745
|
-
let l =
|
|
1746
|
-
return
|
|
1866
|
+
}, 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"];
|
|
1867
|
+
function Un(e, t, n, r, o, s) {
|
|
1868
|
+
let l = g("cross-button");
|
|
1869
|
+
return p(), i("div", Bn, [a("div", Vn, [w(a("input", {
|
|
1747
1870
|
ref: "input",
|
|
1748
1871
|
type: "text",
|
|
1749
1872
|
autocomplete: "off",
|
|
1750
|
-
"onUpdate:modelValue": t[0] ||= (e) =>
|
|
1873
|
+
"onUpdate:modelValue": t[0] ||= (e) => s.query = e,
|
|
1751
1874
|
placeholder: e.texts.search,
|
|
1752
1875
|
"aria-label": e.texts.search,
|
|
1753
1876
|
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,
|
|
1877
|
+
onKeydown: t[1] ||= T(E(() => {}, ["prevent"]), ["enter"])
|
|
1878
|
+
}, null, 40, Hn), [[ee, s.query]]), w(c(l, {
|
|
1756
1879
|
ref: "eraser",
|
|
1757
1880
|
size: "small",
|
|
1758
1881
|
lang: e.lang,
|
|
1759
|
-
onClicked:
|
|
1882
|
+
onClicked: s.clearQuery,
|
|
1760
1883
|
class: "bb:absolute bb:right-0 bb:top-0 bb:pr-2 bb:h-full"
|
|
1761
|
-
}, null, 8, ["lang", "onClicked"]), [[
|
|
1884
|
+
}, null, 8, ["lang", "onClicked"]), [[S, s.query !== ""]])])]);
|
|
1762
1885
|
}
|
|
1763
|
-
var
|
|
1886
|
+
var Wn = /*#__PURE__*/ M(zn, [["render", Un]]), Gn = {
|
|
1764
1887
|
components: {
|
|
1765
|
-
DropdownButton:
|
|
1766
|
-
ListElement:
|
|
1767
|
-
ListSearchField:
|
|
1888
|
+
DropdownButton: Mn,
|
|
1889
|
+
ListElement: Rn,
|
|
1890
|
+
ListSearchField: Wn
|
|
1768
1891
|
},
|
|
1769
|
-
mixins: [
|
|
1892
|
+
mixins: [F, Sn],
|
|
1770
1893
|
emits: ["update:modelValue", "changed"],
|
|
1771
1894
|
props: {
|
|
1772
1895
|
items: {
|
|
@@ -1780,6 +1903,10 @@ var Vn = /*#__PURE__*/ k(In, [["render", Bn]]), Hn = {
|
|
|
1780
1903
|
labelledBy: {
|
|
1781
1904
|
type: String,
|
|
1782
1905
|
default: null
|
|
1906
|
+
},
|
|
1907
|
+
describedBy: {
|
|
1908
|
+
type: String,
|
|
1909
|
+
default: null
|
|
1783
1910
|
}
|
|
1784
1911
|
},
|
|
1785
1912
|
data() {
|
|
@@ -1820,16 +1947,17 @@ var Vn = /*#__PURE__*/ k(In, [["render", Bn]]), Hn = {
|
|
|
1820
1947
|
return this.firstSelectedElement() ?? this.searchInput();
|
|
1821
1948
|
}
|
|
1822
1949
|
}
|
|
1823
|
-
},
|
|
1824
|
-
function
|
|
1825
|
-
let u =
|
|
1826
|
-
return
|
|
1950
|
+
}, Kn = { class: "bb-dashboard-ui bb:flex bb:flex-col bb:grow" }, qn = ["textContent"];
|
|
1951
|
+
function Jn(t, a, o, s, c, l) {
|
|
1952
|
+
let u = g("list-search-field"), d = g("list-element"), f = g("dropdown-button");
|
|
1953
|
+
return p(), i("div", Kn, [l.hasItems ? (p(), n(f, {
|
|
1827
1954
|
key: 0,
|
|
1828
1955
|
title: l.title,
|
|
1829
1956
|
"is-open": c.isOpen,
|
|
1830
1957
|
"onUpdate:isOpen": a[2] ||= (e) => c.isOpen = e,
|
|
1831
1958
|
"has-value": l.selectedItems.length > 0,
|
|
1832
1959
|
"labelled-by": o.labelledBy,
|
|
1960
|
+
"described-by": o.describedBy,
|
|
1833
1961
|
"find-selected": l.arrowsOrigin,
|
|
1834
1962
|
"find-stops": t.searchStops,
|
|
1835
1963
|
"find-tab-stops": t.tabStops,
|
|
@@ -1838,18 +1966,18 @@ function Gn(t, a, o, s, c, l) {
|
|
|
1838
1966
|
onErased: l.clear,
|
|
1839
1967
|
onToggle: t.onSearchToggle
|
|
1840
1968
|
}, {
|
|
1841
|
-
default:
|
|
1969
|
+
default: C(() => [t.withSearch ? (p(), n(u, {
|
|
1842
1970
|
key: 0,
|
|
1843
1971
|
ref: "search",
|
|
1844
1972
|
modelValue: t.query,
|
|
1845
1973
|
"onUpdate:modelValue": a[0] ||= (e) => t.query = e,
|
|
1846
1974
|
lang: t.lang
|
|
1847
|
-
}, null, 8, ["modelValue", "lang"])) : r("", !0), t.visibleItems.length > 0 ? (
|
|
1975
|
+
}, null, 8, ["modelValue", "lang"])) : r("", !0), t.visibleItems.length > 0 ? (p(), i("div", {
|
|
1848
1976
|
key: 1,
|
|
1849
1977
|
ref: "list",
|
|
1850
1978
|
class: "bb:flex bb:flex-col bb:py-1 bb:divide-y bb:divide-gray-200 bb:divide-dashed",
|
|
1851
1979
|
onKeydown: a[1] ||= (...e) => t.onListKeydown && t.onListKeydown(...e)
|
|
1852
|
-
}, [(
|
|
1980
|
+
}, [(p(!0), i(e, null, m(t.visibleItems, (e) => (p(), n(d, {
|
|
1853
1981
|
name: t.itemName(e),
|
|
1854
1982
|
key: e.id,
|
|
1855
1983
|
"is-checked": l.selectedIds.includes(e.id),
|
|
@@ -1860,17 +1988,18 @@ function Gn(t, a, o, s, c, l) {
|
|
|
1860
1988
|
"is-checked",
|
|
1861
1989
|
"aria-pressed",
|
|
1862
1990
|
"onClicked"
|
|
1863
|
-
]))), 128))], 544)) : (
|
|
1991
|
+
]))), 128))], 544)) : (p(), i("div", {
|
|
1864
1992
|
key: 2,
|
|
1865
1993
|
class: "bb:px-3 bb:py-2 bb:text-sm bb:text-gray-500 bb:text-center",
|
|
1866
|
-
textContent:
|
|
1867
|
-
}, null, 8,
|
|
1994
|
+
textContent: y(t.texts.nothingFound)
|
|
1995
|
+
}, null, 8, qn))]),
|
|
1868
1996
|
_: 1
|
|
1869
1997
|
}, 8, [
|
|
1870
1998
|
"title",
|
|
1871
1999
|
"is-open",
|
|
1872
2000
|
"has-value",
|
|
1873
2001
|
"labelled-by",
|
|
2002
|
+
"described-by",
|
|
1874
2003
|
"find-selected",
|
|
1875
2004
|
"find-stops",
|
|
1876
2005
|
"find-tab-stops",
|
|
@@ -1880,10 +2009,10 @@ function Gn(t, a, o, s, c, l) {
|
|
|
1880
2009
|
"onToggle"
|
|
1881
2010
|
])) : r("", !0)]);
|
|
1882
2011
|
}
|
|
1883
|
-
var
|
|
2012
|
+
var Yn = /*#__PURE__*/ M(Gn, [["render", Jn]]), Xn = {
|
|
1884
2013
|
components: {
|
|
1885
|
-
ElementHeader:
|
|
1886
|
-
SelectMultiple:
|
|
2014
|
+
ElementHeader: P,
|
|
2015
|
+
SelectMultiple: Yn
|
|
1887
2016
|
},
|
|
1888
2017
|
emits: ["update:modelValue", "changed"],
|
|
1889
2018
|
props: {
|
|
@@ -1916,10 +2045,10 @@ var Kn = /*#__PURE__*/ k(Hn, [["render", Gn]]), qn = {
|
|
|
1916
2045
|
default: null
|
|
1917
2046
|
}
|
|
1918
2047
|
}
|
|
1919
|
-
},
|
|
1920
|
-
function
|
|
1921
|
-
let l =
|
|
1922
|
-
return
|
|
2048
|
+
}, 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" };
|
|
2049
|
+
function $n(e, t, n, r, o, s) {
|
|
2050
|
+
let l = g("element-header"), u = g("select-multiple");
|
|
2051
|
+
return p(), i("div", Zn, [a("div", Qn, [c(l, {
|
|
1923
2052
|
text: n.header ?? "",
|
|
1924
2053
|
"is-required": n.isRequired,
|
|
1925
2054
|
"is-loading": n.isLoading
|
|
@@ -1927,7 +2056,7 @@ function Xn(e, t, n, r, o, c) {
|
|
|
1927
2056
|
"text",
|
|
1928
2057
|
"is-required",
|
|
1929
2058
|
"is-loading"
|
|
1930
|
-
]),
|
|
2059
|
+
]), c(u, {
|
|
1931
2060
|
items: n.items,
|
|
1932
2061
|
"model-value": n.modelValue,
|
|
1933
2062
|
"with-search": n.withSearch,
|
|
@@ -1941,11 +2070,13 @@ function Xn(e, t, n, r, o, c) {
|
|
|
1941
2070
|
"lang"
|
|
1942
2071
|
])])]);
|
|
1943
2072
|
}
|
|
1944
|
-
var
|
|
2073
|
+
var er = /*#__PURE__*/ M(Xn, [["render", $n]]), tr = {
|
|
1945
2074
|
components: {
|
|
1946
|
-
Dot:
|
|
1947
|
-
|
|
2075
|
+
Dot: N,
|
|
2076
|
+
FieldDescription: W,
|
|
2077
|
+
SelectMultiple: Yn
|
|
1948
2078
|
},
|
|
2079
|
+
mixins: [U],
|
|
1949
2080
|
emits: ["update:modelValue", "changed"],
|
|
1950
2081
|
props: {
|
|
1951
2082
|
items: {
|
|
@@ -1974,45 +2105,57 @@ var Zn = /*#__PURE__*/ k(qn, [["render", Xn]]), Qn = {
|
|
|
1974
2105
|
}
|
|
1975
2106
|
},
|
|
1976
2107
|
setup() {
|
|
1977
|
-
return { labelId:
|
|
2108
|
+
return { labelId: b() };
|
|
1978
2109
|
}
|
|
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
|
-
|
|
2110
|
+
}, 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" };
|
|
2111
|
+
function or(e, t, o, l, u, d) {
|
|
2112
|
+
let f = g("dot"), m = g("select-multiple"), _ = g("field-description");
|
|
2113
|
+
return p(), i("div", nr, [
|
|
2114
|
+
a("div", rr, [a("span", {
|
|
2115
|
+
id: l.labelId,
|
|
2116
|
+
class: "bb:block bb:text-sm bb:font-medium bb:leading-5 bb:text-gray-700",
|
|
2117
|
+
textContent: y(o.label ?? "")
|
|
2118
|
+
}, null, 8, ir), w(c(f, {
|
|
2119
|
+
color: "red-pale",
|
|
2120
|
+
class: "bb:ml-2"
|
|
2121
|
+
}, null, 512), [[S, o.isRequired]])]),
|
|
2122
|
+
a("div", ar, [c(m, {
|
|
2123
|
+
items: o.items,
|
|
2124
|
+
"model-value": o.modelValue,
|
|
2125
|
+
"with-search": o.withSearch,
|
|
2126
|
+
lang: o.lang,
|
|
2127
|
+
"labelled-by": l.labelId,
|
|
2128
|
+
"described-by": e.descriptionId(l.labelId),
|
|
2129
|
+
"onUpdate:modelValue": t[0] ||= (t) => e.$emit("update:modelValue", t),
|
|
2130
|
+
onChanged: t[1] ||= (t) => e.$emit("changed")
|
|
2131
|
+
}, null, 8, [
|
|
2132
|
+
"items",
|
|
2133
|
+
"model-value",
|
|
2134
|
+
"with-search",
|
|
2135
|
+
"lang",
|
|
2136
|
+
"labelled-by",
|
|
2137
|
+
"described-by"
|
|
2138
|
+
])]),
|
|
2139
|
+
e.hasDescription() ? (p(), n(_, {
|
|
2140
|
+
key: 0,
|
|
2141
|
+
id: e.descriptionId(l.labelId)
|
|
2142
|
+
}, {
|
|
2143
|
+
default: C(() => [h(e.$slots, "description", {}, () => [s(y(e.description), 1)])]),
|
|
2144
|
+
_: 3
|
|
2145
|
+
}, 8, ["id"])) : r("", !0)
|
|
2146
|
+
]);
|
|
2004
2147
|
}
|
|
2005
|
-
var
|
|
2006
|
-
function
|
|
2148
|
+
var sr = /*#__PURE__*/ M(tr, [["render", or]]);
|
|
2149
|
+
function G(e) {
|
|
2007
2150
|
return Number.isInteger(e) && e >= 1;
|
|
2008
2151
|
}
|
|
2009
|
-
function
|
|
2010
|
-
return
|
|
2152
|
+
function K(e) {
|
|
2153
|
+
return G(e) ? e : 2;
|
|
2011
2154
|
}
|
|
2012
|
-
function
|
|
2155
|
+
function cr(e) {
|
|
2013
2156
|
return { gridTemplateColumns: `repeat(${e}, minmax(0, 1fr))` };
|
|
2014
2157
|
}
|
|
2015
|
-
function
|
|
2158
|
+
function lr(e, t) {
|
|
2016
2159
|
let n = Math.floor(e / t), r = e % t, i = [];
|
|
2017
2160
|
for (let e = 0; e < t; e++) {
|
|
2018
2161
|
let t = e < r ? n + 1 : n;
|
|
@@ -2025,8 +2168,12 @@ function or(e, t) {
|
|
|
2025
2168
|
}
|
|
2026
2169
|
//#endregion
|
|
2027
2170
|
//#region src/components/SelectMultipleList.vue
|
|
2028
|
-
var
|
|
2029
|
-
components: {
|
|
2171
|
+
var ur = {
|
|
2172
|
+
components: {
|
|
2173
|
+
Dot: N,
|
|
2174
|
+
FieldDescription: W
|
|
2175
|
+
},
|
|
2176
|
+
mixins: [U],
|
|
2030
2177
|
emits: ["update:modelValue", "changed"],
|
|
2031
2178
|
props: {
|
|
2032
2179
|
items: {
|
|
@@ -2048,11 +2195,11 @@ var sr = {
|
|
|
2048
2195
|
columns: {
|
|
2049
2196
|
type: Number,
|
|
2050
2197
|
default: 2,
|
|
2051
|
-
validator:
|
|
2198
|
+
validator: G
|
|
2052
2199
|
}
|
|
2053
2200
|
},
|
|
2054
2201
|
setup() {
|
|
2055
|
-
return { labelId:
|
|
2202
|
+
return { labelId: b() };
|
|
2056
2203
|
},
|
|
2057
2204
|
computed: {
|
|
2058
2205
|
itemList() {
|
|
@@ -2062,10 +2209,10 @@ var sr = {
|
|
|
2062
2209
|
return Array.isArray(this.modelValue) ? this.modelValue : [];
|
|
2063
2210
|
},
|
|
2064
2211
|
gridStyle() {
|
|
2065
|
-
return
|
|
2212
|
+
return cr(K(this.columns));
|
|
2066
2213
|
},
|
|
2067
2214
|
itemStyles() {
|
|
2068
|
-
return
|
|
2215
|
+
return lr(this.itemList.length, K(this.columns));
|
|
2069
2216
|
}
|
|
2070
2217
|
},
|
|
2071
2218
|
methods: {
|
|
@@ -2084,48 +2231,59 @@ var sr = {
|
|
|
2084
2231
|
});
|
|
2085
2232
|
}
|
|
2086
2233
|
}
|
|
2087
|
-
},
|
|
2234
|
+
}, 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
2235
|
key: 0,
|
|
2089
2236
|
class: "bb:pointer-events-none bb:absolute bb:inset-0 bb:size-4 bb:fill-white bb:forced-colors:hidden",
|
|
2090
2237
|
viewBox: "0 0 16 16",
|
|
2091
2238
|
"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
|
-
|
|
2239
|
+
}, vr = ["textContent"];
|
|
2240
|
+
function yr(t, o, l, u, _, v) {
|
|
2241
|
+
let b = g("dot"), x = g("field-description");
|
|
2242
|
+
return p(), i("div", dr, [
|
|
2243
|
+
a("div", fr, [a("span", {
|
|
2244
|
+
id: u.labelId,
|
|
2245
|
+
class: "bb:block bb:text-sm bb:font-medium bb:leading-5 bb:text-gray-700",
|
|
2246
|
+
textContent: y(l.label ?? "")
|
|
2247
|
+
}, null, 8, pr), w(c(b, {
|
|
2248
|
+
color: "red-pale",
|
|
2249
|
+
class: "bb:ml-2"
|
|
2250
|
+
}, null, 512), [[S, l.isRequired]])]),
|
|
2251
|
+
v.itemList.length > 0 ? (p(), i("div", {
|
|
2252
|
+
key: 0,
|
|
2253
|
+
role: "group",
|
|
2254
|
+
"aria-labelledby": u.labelId,
|
|
2255
|
+
"aria-describedby": t.descriptionId(u.labelId),
|
|
2256
|
+
class: "bb:mt-1 bb:grid bb:gap-x-4 bb:gap-y-2",
|
|
2257
|
+
style: f(v.gridStyle)
|
|
2258
|
+
}, [(p(!0), i(e, null, m(v.itemList, (e, t) => (p(), i("label", {
|
|
2259
|
+
key: t,
|
|
2260
|
+
style: f(v.itemStyles[t]),
|
|
2261
|
+
class: "bb:flex bb:items-center"
|
|
2262
|
+
}, [a("span", hr, [a("input", {
|
|
2263
|
+
type: "checkbox",
|
|
2264
|
+
checked: v.isChecked(e),
|
|
2265
|
+
class: d(["bb:size-4 bb:rounded bb:choice-border bb:bg-none bb:focus-visible:focus-ring bb:forced-colors:appearance-auto", v.isChecked(e) ? "bb:border-indigo-600 bb:bg-indigo-600" : "bb:border-gray-300 bb:bg-white"]),
|
|
2266
|
+
onChange: (t) => v.toggle(e)
|
|
2267
|
+
}, 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", {
|
|
2268
|
+
class: "bb:ml-3 bb:text-sm bb:font-medium bb:text-gray-700",
|
|
2269
|
+
textContent: y(v.itemName(e))
|
|
2270
|
+
}, null, 8, vr)], 4))), 128))], 12, mr)) : r("", !0),
|
|
2271
|
+
t.hasDescription() ? (p(), n(x, {
|
|
2272
|
+
key: 1,
|
|
2273
|
+
id: t.descriptionId(u.labelId)
|
|
2274
|
+
}, {
|
|
2275
|
+
default: C(() => [h(t.$slots, "description", {}, () => [s(y(t.description), 1)])]),
|
|
2276
|
+
_: 3
|
|
2277
|
+
}, 8, ["id"])) : r("", !0)
|
|
2278
|
+
]);
|
|
2279
|
+
}
|
|
2280
|
+
var br = /*#__PURE__*/ M(ur, [["render", yr]]), xr = {
|
|
2123
2281
|
components: {
|
|
2124
|
-
DropdownButton:
|
|
2125
|
-
ListElement:
|
|
2126
|
-
ListSearchField:
|
|
2282
|
+
DropdownButton: Mn,
|
|
2283
|
+
ListElement: Rn,
|
|
2284
|
+
ListSearchField: Wn
|
|
2127
2285
|
},
|
|
2128
|
-
mixins: [
|
|
2286
|
+
mixins: [F, Sn],
|
|
2129
2287
|
emits: ["update:modelValue", "changed"],
|
|
2130
2288
|
props: {
|
|
2131
2289
|
items: {
|
|
@@ -2140,6 +2298,10 @@ var _r = /*#__PURE__*/ k(sr, [["render", gr]]), vr = {
|
|
|
2140
2298
|
type: String,
|
|
2141
2299
|
default: null
|
|
2142
2300
|
},
|
|
2301
|
+
describedBy: {
|
|
2302
|
+
type: String,
|
|
2303
|
+
default: null
|
|
2304
|
+
},
|
|
2143
2305
|
withClear: {
|
|
2144
2306
|
type: Boolean,
|
|
2145
2307
|
default: !0
|
|
@@ -2187,10 +2349,10 @@ var _r = /*#__PURE__*/ k(sr, [["render", gr]]), vr = {
|
|
|
2187
2349
|
return this.activeItemElement() ?? this.searchInput();
|
|
2188
2350
|
}
|
|
2189
2351
|
}
|
|
2190
|
-
},
|
|
2191
|
-
function
|
|
2192
|
-
let u =
|
|
2193
|
-
return
|
|
2352
|
+
}, Sr = { class: "bb-dashboard-ui bb:flex bb:flex-col bb:grow" }, Cr = ["textContent"];
|
|
2353
|
+
function wr(t, a, o, s, c, l) {
|
|
2354
|
+
let u = g("list-search-field"), d = g("list-element"), f = g("dropdown-button");
|
|
2355
|
+
return p(), i("div", Sr, [l.hasItems ? (p(), n(f, {
|
|
2194
2356
|
key: 0,
|
|
2195
2357
|
title: l.activeItemName,
|
|
2196
2358
|
"is-open": c.isOpen,
|
|
@@ -2198,6 +2360,7 @@ function xr(t, a, o, s, c, l) {
|
|
|
2198
2360
|
"has-value": o.withClear && l.hasValue,
|
|
2199
2361
|
"with-arrow": o.withArrow,
|
|
2200
2362
|
"labelled-by": o.labelledBy,
|
|
2363
|
+
"described-by": o.describedBy,
|
|
2201
2364
|
"find-selected": l.arrowsOrigin,
|
|
2202
2365
|
"find-stops": t.searchStops,
|
|
2203
2366
|
"find-tab-stops": t.tabStops,
|
|
@@ -2206,18 +2369,18 @@ function xr(t, a, o, s, c, l) {
|
|
|
2206
2369
|
onErased: l.clear,
|
|
2207
2370
|
onToggle: t.onSearchToggle
|
|
2208
2371
|
}, {
|
|
2209
|
-
default:
|
|
2372
|
+
default: C(() => [t.withSearch ? (p(), n(u, {
|
|
2210
2373
|
key: 0,
|
|
2211
2374
|
ref: "search",
|
|
2212
2375
|
modelValue: t.query,
|
|
2213
2376
|
"onUpdate:modelValue": a[0] ||= (e) => t.query = e,
|
|
2214
2377
|
lang: t.lang
|
|
2215
|
-
}, null, 8, ["modelValue", "lang"])) : r("", !0), t.visibleItems.length > 0 ? (
|
|
2378
|
+
}, null, 8, ["modelValue", "lang"])) : r("", !0), t.visibleItems.length > 0 ? (p(), i("div", {
|
|
2216
2379
|
key: 1,
|
|
2217
2380
|
ref: "list",
|
|
2218
2381
|
class: "bb:flex bb:flex-col bb:py-1 bb:divide-y bb:divide-gray-200 bb:divide-dashed",
|
|
2219
2382
|
onKeydown: a[1] ||= (...e) => t.onListKeydown && t.onListKeydown(...e)
|
|
2220
|
-
}, [(
|
|
2383
|
+
}, [(p(!0), i(e, null, m(t.visibleItems, (e) => (p(), n(d, {
|
|
2221
2384
|
name: t.itemName(e),
|
|
2222
2385
|
key: e.id,
|
|
2223
2386
|
"is-checked": e.id === o.modelValue,
|
|
@@ -2226,11 +2389,11 @@ function xr(t, a, o, s, c, l) {
|
|
|
2226
2389
|
"name",
|
|
2227
2390
|
"is-checked",
|
|
2228
2391
|
"onClicked"
|
|
2229
|
-
]))), 128))], 544)) : (
|
|
2392
|
+
]))), 128))], 544)) : (p(), i("div", {
|
|
2230
2393
|
key: 2,
|
|
2231
2394
|
class: "bb:px-3 bb:py-2 bb:text-sm bb:text-gray-500 bb:text-center",
|
|
2232
|
-
textContent:
|
|
2233
|
-
}, null, 8,
|
|
2395
|
+
textContent: y(t.texts.nothingFound)
|
|
2396
|
+
}, null, 8, Cr))]),
|
|
2234
2397
|
_: 1
|
|
2235
2398
|
}, 8, [
|
|
2236
2399
|
"title",
|
|
@@ -2238,6 +2401,7 @@ function xr(t, a, o, s, c, l) {
|
|
|
2238
2401
|
"has-value",
|
|
2239
2402
|
"with-arrow",
|
|
2240
2403
|
"labelled-by",
|
|
2404
|
+
"described-by",
|
|
2241
2405
|
"find-selected",
|
|
2242
2406
|
"find-stops",
|
|
2243
2407
|
"find-tab-stops",
|
|
@@ -2247,10 +2411,10 @@ function xr(t, a, o, s, c, l) {
|
|
|
2247
2411
|
"onToggle"
|
|
2248
2412
|
])) : r("", !0)]);
|
|
2249
2413
|
}
|
|
2250
|
-
var
|
|
2414
|
+
var q = /*#__PURE__*/ M(xr, [["render", wr]]), Tr = {
|
|
2251
2415
|
components: {
|
|
2252
|
-
ElementHeader:
|
|
2253
|
-
SelectSingle:
|
|
2416
|
+
ElementHeader: P,
|
|
2417
|
+
SelectSingle: q
|
|
2254
2418
|
},
|
|
2255
2419
|
emits: ["update:modelValue", "changed"],
|
|
2256
2420
|
props: {
|
|
@@ -2283,10 +2447,10 @@ var U = /*#__PURE__*/ k(vr, [["render", xr]]), Sr = {
|
|
|
2283
2447
|
default: null
|
|
2284
2448
|
}
|
|
2285
2449
|
}
|
|
2286
|
-
},
|
|
2287
|
-
function
|
|
2288
|
-
let l =
|
|
2289
|
-
return
|
|
2450
|
+
}, 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" };
|
|
2451
|
+
function Or(e, t, n, r, o, s) {
|
|
2452
|
+
let l = g("element-header"), u = g("select-single");
|
|
2453
|
+
return p(), i("div", Er, [a("div", Dr, [c(l, {
|
|
2290
2454
|
text: n.header ?? "",
|
|
2291
2455
|
"is-required": n.isRequired,
|
|
2292
2456
|
"is-loading": n.isLoading
|
|
@@ -2294,7 +2458,7 @@ function Tr(e, t, n, r, o, c) {
|
|
|
2294
2458
|
"text",
|
|
2295
2459
|
"is-required",
|
|
2296
2460
|
"is-loading"
|
|
2297
|
-
]),
|
|
2461
|
+
]), c(u, {
|
|
2298
2462
|
items: n.items,
|
|
2299
2463
|
"model-value": n.modelValue,
|
|
2300
2464
|
"with-search": n.withSearch,
|
|
@@ -2308,11 +2472,13 @@ function Tr(e, t, n, r, o, c) {
|
|
|
2308
2472
|
"lang"
|
|
2309
2473
|
])])]);
|
|
2310
2474
|
}
|
|
2311
|
-
var
|
|
2475
|
+
var kr = /*#__PURE__*/ M(Tr, [["render", Or]]), Ar = {
|
|
2312
2476
|
components: {
|
|
2313
|
-
Dot:
|
|
2314
|
-
|
|
2477
|
+
Dot: N,
|
|
2478
|
+
FieldDescription: W,
|
|
2479
|
+
SelectSingle: q
|
|
2315
2480
|
},
|
|
2481
|
+
mixins: [U],
|
|
2316
2482
|
emits: ["update:modelValue", "changed"],
|
|
2317
2483
|
props: {
|
|
2318
2484
|
items: {
|
|
@@ -2341,36 +2507,52 @@ var Er = /*#__PURE__*/ k(Sr, [["render", Tr]]), Dr = {
|
|
|
2341
2507
|
}
|
|
2342
2508
|
},
|
|
2343
2509
|
setup() {
|
|
2344
|
-
return { labelId:
|
|
2510
|
+
return { labelId: b() };
|
|
2345
2511
|
}
|
|
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
|
-
|
|
2512
|
+
}, 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" };
|
|
2513
|
+
function Fr(e, t, o, l, u, d) {
|
|
2514
|
+
let f = g("dot"), m = g("select-single"), _ = g("field-description");
|
|
2515
|
+
return p(), i("div", jr, [
|
|
2516
|
+
a("div", Mr, [a("span", {
|
|
2517
|
+
id: l.labelId,
|
|
2518
|
+
class: "bb:block bb:text-sm bb:font-medium bb:leading-5 bb:text-gray-700",
|
|
2519
|
+
textContent: y(o.label ?? "")
|
|
2520
|
+
}, null, 8, Nr), w(c(f, {
|
|
2521
|
+
color: "red-pale",
|
|
2522
|
+
class: "bb:ml-2"
|
|
2523
|
+
}, null, 512), [[S, o.isRequired]])]),
|
|
2524
|
+
a("div", Pr, [c(m, {
|
|
2525
|
+
items: o.items,
|
|
2526
|
+
"model-value": o.modelValue,
|
|
2527
|
+
"with-search": o.withSearch,
|
|
2528
|
+
lang: o.lang,
|
|
2529
|
+
"labelled-by": l.labelId,
|
|
2530
|
+
"described-by": e.descriptionId(l.labelId),
|
|
2531
|
+
"onUpdate:modelValue": t[0] ||= (t) => e.$emit("update:modelValue", t),
|
|
2532
|
+
onChanged: t[1] ||= (t) => e.$emit("changed")
|
|
2533
|
+
}, null, 8, [
|
|
2534
|
+
"items",
|
|
2535
|
+
"model-value",
|
|
2536
|
+
"with-search",
|
|
2537
|
+
"lang",
|
|
2538
|
+
"labelled-by",
|
|
2539
|
+
"described-by"
|
|
2540
|
+
])]),
|
|
2541
|
+
e.hasDescription() ? (p(), n(_, {
|
|
2542
|
+
key: 0,
|
|
2543
|
+
id: e.descriptionId(l.labelId)
|
|
2544
|
+
}, {
|
|
2545
|
+
default: C(() => [h(e.$slots, "description", {}, () => [s(y(e.description), 1)])]),
|
|
2546
|
+
_: 3
|
|
2547
|
+
}, 8, ["id"])) : r("", !0)
|
|
2548
|
+
]);
|
|
2371
2549
|
}
|
|
2372
|
-
var
|
|
2373
|
-
components: {
|
|
2550
|
+
var Ir = /*#__PURE__*/ M(Ar, [["render", Fr]]), Lr = {
|
|
2551
|
+
components: {
|
|
2552
|
+
Dot: N,
|
|
2553
|
+
FieldDescription: W
|
|
2554
|
+
},
|
|
2555
|
+
mixins: [U],
|
|
2374
2556
|
emits: ["update:modelValue", "changed"],
|
|
2375
2557
|
props: {
|
|
2376
2558
|
items: {
|
|
@@ -2396,13 +2578,13 @@ var Nr = /*#__PURE__*/ k(Dr, [["render", Mr]]), Pr = {
|
|
|
2396
2578
|
columns: {
|
|
2397
2579
|
type: Number,
|
|
2398
2580
|
default: 2,
|
|
2399
|
-
validator:
|
|
2581
|
+
validator: G
|
|
2400
2582
|
}
|
|
2401
2583
|
},
|
|
2402
2584
|
setup() {
|
|
2403
2585
|
return {
|
|
2404
|
-
labelId:
|
|
2405
|
-
groupName:
|
|
2586
|
+
labelId: b(),
|
|
2587
|
+
groupName: b()
|
|
2406
2588
|
};
|
|
2407
2589
|
},
|
|
2408
2590
|
computed: {
|
|
@@ -2410,10 +2592,10 @@ var Nr = /*#__PURE__*/ k(Dr, [["render", Mr]]), Pr = {
|
|
|
2410
2592
|
return Array.isArray(this.items) ? this.items.filter((e) => typeof e == "object" && !!e) : [];
|
|
2411
2593
|
},
|
|
2412
2594
|
gridStyle() {
|
|
2413
|
-
return
|
|
2595
|
+
return cr(K(this.columns));
|
|
2414
2596
|
},
|
|
2415
2597
|
itemStyles() {
|
|
2416
|
-
return
|
|
2598
|
+
return lr(this.itemList.length, K(this.columns));
|
|
2417
2599
|
}
|
|
2418
2600
|
},
|
|
2419
2601
|
methods: {
|
|
@@ -2432,49 +2614,60 @@ var Nr = /*#__PURE__*/ k(Dr, [["render", Mr]]), Pr = {
|
|
|
2432
2614
|
});
|
|
2433
2615
|
}
|
|
2434
2616
|
}
|
|
2435
|
-
},
|
|
2617
|
+
}, Rr = { class: "bb-dashboard-ui" }, zr = { class: "bb:flex bb:items-center" }, Br = ["id", "textContent"], Vr = ["aria-labelledby", "aria-describedby"], Hr = [
|
|
2436
2618
|
"name",
|
|
2437
2619
|
"checked",
|
|
2438
2620
|
"onChange"
|
|
2439
|
-
],
|
|
2621
|
+
], Ur = {
|
|
2440
2622
|
key: 0,
|
|
2441
2623
|
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
|
-
|
|
2624
|
+
}, Wr = ["textContent"];
|
|
2625
|
+
function Gr(t, o, l, u, _, v) {
|
|
2626
|
+
let b = g("dot"), x = g("field-description");
|
|
2627
|
+
return p(), i("div", Rr, [
|
|
2628
|
+
a("div", zr, [a("span", {
|
|
2629
|
+
id: u.labelId,
|
|
2630
|
+
class: "bb:block bb:text-sm bb:font-medium bb:leading-5 bb:text-gray-700",
|
|
2631
|
+
textContent: y(l.label ?? "")
|
|
2632
|
+
}, null, 8, Br), w(c(b, {
|
|
2633
|
+
color: "red-pale",
|
|
2634
|
+
class: "bb:ml-2"
|
|
2635
|
+
}, null, 512), [[S, l.isRequired]])]),
|
|
2636
|
+
v.itemList.length > 0 ? (p(), i("div", {
|
|
2637
|
+
key: 0,
|
|
2638
|
+
role: "radiogroup",
|
|
2639
|
+
"aria-labelledby": u.labelId,
|
|
2640
|
+
"aria-describedby": t.descriptionId(u.labelId),
|
|
2641
|
+
class: "bb:mt-2 bb:grid bb:gap-3",
|
|
2642
|
+
style: f(v.gridStyle)
|
|
2643
|
+
}, [(p(!0), i(e, null, m(v.itemList, (e, t) => (p(), i("label", {
|
|
2644
|
+
key: t,
|
|
2645
|
+
style: f(v.itemStyles[t]),
|
|
2646
|
+
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"])
|
|
2647
|
+
}, [
|
|
2648
|
+
a("input", {
|
|
2649
|
+
type: "radio",
|
|
2650
|
+
name: u.groupName,
|
|
2651
|
+
checked: v.isSelected(e),
|
|
2652
|
+
class: "bb:absolute bb:inset-0 bb:size-full bb:cursor-pointer bb:bg-none bb:opacity-0",
|
|
2653
|
+
onChange: (t) => v.select(e)
|
|
2654
|
+
}, null, 40, Hr),
|
|
2655
|
+
a("span", { class: d(["bb:pointer-events-none bb:cursor-default bb:shrink-0 bb:mt-0.5 bb:size-4 bb:rounded-full bb:choice-border bb:flex bb:items-center bb:justify-center", v.isSelected(e) ? "bb:border-indigo-600 bb:forced-colors:border-[Highlight]" : "bb:border-gray-300"]) }, [v.isSelected(e) ? (p(), i("span", Ur)) : r("", !0)], 2),
|
|
2656
|
+
a("span", {
|
|
2657
|
+
class: "bb:pointer-events-none bb:cursor-default bb:ml-3 bb:text-sm bb:font-medium bb:text-gray-700",
|
|
2658
|
+
textContent: y(v.itemName(e))
|
|
2659
|
+
}, null, 8, Wr)
|
|
2660
|
+
], 6))), 128))], 12, Vr)) : r("", !0),
|
|
2661
|
+
t.hasDescription() ? (p(), n(x, {
|
|
2662
|
+
key: 1,
|
|
2663
|
+
id: t.descriptionId(u.labelId)
|
|
2664
|
+
}, {
|
|
2665
|
+
default: C(() => [h(t.$slots, "description", {}, () => [s(y(t.description), 1)])]),
|
|
2666
|
+
_: 3
|
|
2667
|
+
}, 8, ["id"])) : r("", !0)
|
|
2668
|
+
]);
|
|
2669
|
+
}
|
|
2670
|
+
var Kr = /*#__PURE__*/ M(Lr, [["render", Gr]]), qr = [
|
|
2478
2671
|
{
|
|
2479
2672
|
code: "AED",
|
|
2480
2673
|
digits: 2,
|
|
@@ -3256,29 +3449,29 @@ var Ur = /*#__PURE__*/ k(Pr, [["render", Hr]]), Wr = [
|
|
|
3256
3449
|
symbol: null
|
|
3257
3450
|
}
|
|
3258
3451
|
];
|
|
3259
|
-
function
|
|
3260
|
-
if (e == null) return
|
|
3452
|
+
function J(e) {
|
|
3453
|
+
if (e == null) return qr;
|
|
3261
3454
|
if (!Array.isArray(e)) return [];
|
|
3262
3455
|
let t = [];
|
|
3263
3456
|
for (let n of e) {
|
|
3264
|
-
let e =
|
|
3457
|
+
let e = qr.find((e) => e.code === n);
|
|
3265
3458
|
e && !t.includes(e) && t.push(e);
|
|
3266
3459
|
}
|
|
3267
3460
|
return t;
|
|
3268
3461
|
}
|
|
3269
|
-
function
|
|
3462
|
+
function Jr(e) {
|
|
3270
3463
|
return e.symbol === null ? e.code : `${e.code} ${e.symbol}`;
|
|
3271
3464
|
}
|
|
3272
|
-
function
|
|
3465
|
+
function Y(e) {
|
|
3273
3466
|
return e.map((e) => ({
|
|
3274
3467
|
id: e.code,
|
|
3275
|
-
name:
|
|
3468
|
+
name: Jr(e)
|
|
3276
3469
|
}));
|
|
3277
3470
|
}
|
|
3278
3471
|
//#endregion
|
|
3279
3472
|
//#region src/components/SelectCurrencyFilter.vue
|
|
3280
|
-
var
|
|
3281
|
-
components: { SelectSingleFilter:
|
|
3473
|
+
var Yr = {
|
|
3474
|
+
components: { SelectSingleFilter: kr },
|
|
3282
3475
|
emits: ["update:modelValue", "changed"],
|
|
3283
3476
|
props: {
|
|
3284
3477
|
modelValue: {
|
|
@@ -3311,12 +3504,12 @@ var Kr = {
|
|
|
3311
3504
|
}
|
|
3312
3505
|
},
|
|
3313
3506
|
computed: { items() {
|
|
3314
|
-
return
|
|
3507
|
+
return Y(J(this.currencies));
|
|
3315
3508
|
} }
|
|
3316
3509
|
};
|
|
3317
|
-
function
|
|
3318
|
-
let s =
|
|
3319
|
-
return
|
|
3510
|
+
function Xr(e, t, r, i, a, o) {
|
|
3511
|
+
let s = g("select-single-filter");
|
|
3512
|
+
return p(), n(s, {
|
|
3320
3513
|
items: o.items,
|
|
3321
3514
|
"model-value": r.modelValue,
|
|
3322
3515
|
header: r.header,
|
|
@@ -3336,8 +3529,9 @@ function qr(e, t, r, i, a, o) {
|
|
|
3336
3529
|
"lang"
|
|
3337
3530
|
]);
|
|
3338
3531
|
}
|
|
3339
|
-
var
|
|
3340
|
-
components: { SelectSingleForm:
|
|
3532
|
+
var Zr = /*#__PURE__*/ M(Yr, [["render", Xr]]), Qr = {
|
|
3533
|
+
components: { SelectSingleForm: Ir },
|
|
3534
|
+
mixins: [U],
|
|
3341
3535
|
emits: ["update:modelValue", "changed"],
|
|
3342
3536
|
props: {
|
|
3343
3537
|
modelValue: {
|
|
@@ -3366,34 +3560,40 @@ var Jr = /*#__PURE__*/ k(Kr, [["render", qr]]), Yr = {
|
|
|
3366
3560
|
}
|
|
3367
3561
|
},
|
|
3368
3562
|
computed: { items() {
|
|
3369
|
-
return
|
|
3563
|
+
return Y(J(this.currencies));
|
|
3370
3564
|
} }
|
|
3371
3565
|
};
|
|
3372
|
-
function
|
|
3373
|
-
let
|
|
3374
|
-
return
|
|
3375
|
-
items:
|
|
3566
|
+
function $r(e, t, r, i, a, s) {
|
|
3567
|
+
let c = g("select-single-form");
|
|
3568
|
+
return p(), n(c, {
|
|
3569
|
+
items: s.items,
|
|
3376
3570
|
"model-value": r.modelValue,
|
|
3377
3571
|
label: r.label,
|
|
3378
3572
|
"is-required": r.isRequired,
|
|
3379
3573
|
"with-search": r.withSearch,
|
|
3380
3574
|
lang: r.lang,
|
|
3575
|
+
description: e.description,
|
|
3381
3576
|
"onUpdate:modelValue": t[0] ||= (t) => e.$emit("update:modelValue", t),
|
|
3382
3577
|
onChanged: t[1] ||= (t) => e.$emit("changed")
|
|
3383
|
-
},
|
|
3578
|
+
}, o({ _: 2 }, [e.$slots.description ? {
|
|
3579
|
+
name: "description",
|
|
3580
|
+
fn: C(() => [h(e.$slots, "description")]),
|
|
3581
|
+
key: "0"
|
|
3582
|
+
} : void 0]), 1032, [
|
|
3384
3583
|
"items",
|
|
3385
3584
|
"model-value",
|
|
3386
3585
|
"label",
|
|
3387
3586
|
"is-required",
|
|
3388
3587
|
"with-search",
|
|
3389
|
-
"lang"
|
|
3588
|
+
"lang",
|
|
3589
|
+
"description"
|
|
3390
3590
|
]);
|
|
3391
3591
|
}
|
|
3392
|
-
var
|
|
3393
|
-
function
|
|
3592
|
+
var ei = /*#__PURE__*/ M(Qr, [["render", $r]]);
|
|
3593
|
+
function X(e) {
|
|
3394
3594
|
return !Number.isInteger(e) || e < 0 || e >= 10 ** 15 ? null : e;
|
|
3395
3595
|
}
|
|
3396
|
-
function
|
|
3596
|
+
function ti(e, t) {
|
|
3397
3597
|
if (e === null) return {
|
|
3398
3598
|
whole: "",
|
|
3399
3599
|
fraction: ""
|
|
@@ -3404,25 +3604,25 @@ function q(e, t) {
|
|
|
3404
3604
|
fraction: n.slice(r)
|
|
3405
3605
|
};
|
|
3406
3606
|
}
|
|
3407
|
-
function
|
|
3607
|
+
function ni(e, t, n) {
|
|
3408
3608
|
return e === "" && t === "" ? null : Number((e || "0") + t.padEnd(n, "0"));
|
|
3409
3609
|
}
|
|
3410
|
-
function
|
|
3610
|
+
function ri(e) {
|
|
3411
3611
|
return e.replace(/\D/g, "");
|
|
3412
3612
|
}
|
|
3413
|
-
function
|
|
3414
|
-
return
|
|
3613
|
+
function ii(e, t) {
|
|
3614
|
+
return ri(e).replace(/^0+(?=\d)/, "").slice(0, 15 - t);
|
|
3415
3615
|
}
|
|
3416
|
-
function
|
|
3616
|
+
function ai(e, t) {
|
|
3417
3617
|
return e.replace(/\B(?=(\d{3})+$)/g, t === "en" ? "," : " ");
|
|
3418
3618
|
}
|
|
3419
|
-
function
|
|
3619
|
+
function oi(e) {
|
|
3420
3620
|
return e === "en" ? "." : ",";
|
|
3421
3621
|
}
|
|
3422
|
-
function
|
|
3622
|
+
function si(e, t) {
|
|
3423
3623
|
return e === "." || e === "," && t !== "en";
|
|
3424
3624
|
}
|
|
3425
|
-
function
|
|
3625
|
+
function ci(e, t, n) {
|
|
3426
3626
|
let r = e.trim();
|
|
3427
3627
|
if (!/^\d+([ \u00a0\u202f.,]\d+)*$/.test(r)) return null;
|
|
3428
3628
|
let i = r.match(/[.,]/g) ?? [], a = new Set(i), o = null;
|
|
@@ -3444,14 +3644,14 @@ function ii(e, t, n) {
|
|
|
3444
3644
|
}
|
|
3445
3645
|
//#endregion
|
|
3446
3646
|
//#region src/amountCurrency.js
|
|
3447
|
-
var
|
|
3647
|
+
var li = {
|
|
3448
3648
|
props: { currencies: {
|
|
3449
3649
|
type: Array,
|
|
3450
3650
|
default: null
|
|
3451
3651
|
} },
|
|
3452
3652
|
computed: {
|
|
3453
3653
|
currencyList() {
|
|
3454
|
-
return
|
|
3654
|
+
return J(this.currencies);
|
|
3455
3655
|
},
|
|
3456
3656
|
activeCurrency() {
|
|
3457
3657
|
return this.currencyList.find((e) => e.code === this.passedCurrency) ?? this.currencyList[0] ?? null;
|
|
@@ -3478,9 +3678,9 @@ var ai = {
|
|
|
3478
3678
|
methods: { syncCurrency() {
|
|
3479
3679
|
!this.isBlocked && this.activeCode !== this.passedCurrency && this.reportCurrency(this.activeCode);
|
|
3480
3680
|
} }
|
|
3481
|
-
},
|
|
3482
|
-
components: { SelectSingle:
|
|
3483
|
-
mixins: [
|
|
3681
|
+
}, ui = {
|
|
3682
|
+
components: { SelectSingle: q },
|
|
3683
|
+
mixins: [F],
|
|
3484
3684
|
emits: ["update:modelValue"],
|
|
3485
3685
|
props: {
|
|
3486
3686
|
currencies: {
|
|
@@ -3493,26 +3693,26 @@ var ai = {
|
|
|
3493
3693
|
}
|
|
3494
3694
|
},
|
|
3495
3695
|
setup() {
|
|
3496
|
-
return { labelId:
|
|
3696
|
+
return { labelId: b() };
|
|
3497
3697
|
},
|
|
3498
3698
|
computed: { items() {
|
|
3499
|
-
return
|
|
3699
|
+
return Y(this.currencies);
|
|
3500
3700
|
} }
|
|
3501
|
-
},
|
|
3502
|
-
function
|
|
3503
|
-
let d =
|
|
3504
|
-
return
|
|
3701
|
+
}, di = { class: "bb:relative bb:flex bb:flex-col bb:justify-center bb:h-full bb:w-full bb:min-w-0" }, fi = ["textContent"], pi = ["id", "textContent"];
|
|
3702
|
+
function mi(t, n, o, s, l, u) {
|
|
3703
|
+
let d = g("select-single");
|
|
3704
|
+
return p(), i("div", di, [u.items.length === 1 ? (p(), i("span", {
|
|
3505
3705
|
key: 0,
|
|
3506
3706
|
class: "bb:truncate bb:px-3",
|
|
3507
|
-
textContent:
|
|
3508
|
-
}, null, 8,
|
|
3509
|
-
id:
|
|
3707
|
+
textContent: y(u.items[0].name)
|
|
3708
|
+
}, null, 8, fi)) : u.items.length > 1 ? (p(), i(e, { key: 1 }, [a("span", {
|
|
3709
|
+
id: s.labelId,
|
|
3510
3710
|
class: "bb:sr-only",
|
|
3511
|
-
textContent:
|
|
3512
|
-
}, null, 8,
|
|
3711
|
+
textContent: y(t.texts.currency)
|
|
3712
|
+
}, null, 8, pi), c(d, {
|
|
3513
3713
|
items: u.items,
|
|
3514
3714
|
"model-value": o.modelValue,
|
|
3515
|
-
"labelled-by":
|
|
3715
|
+
"labelled-by": s.labelId,
|
|
3516
3716
|
"with-clear": !1,
|
|
3517
3717
|
"with-arrow": "",
|
|
3518
3718
|
"with-search": "",
|
|
@@ -3525,9 +3725,9 @@ function ui(t, n, o, c, l, u) {
|
|
|
3525
3725
|
"lang"
|
|
3526
3726
|
])], 64)) : r("", !0)]);
|
|
3527
3727
|
}
|
|
3528
|
-
var
|
|
3529
|
-
components: { CrossButton:
|
|
3530
|
-
mixins: [
|
|
3728
|
+
var hi = /*#__PURE__*/ M(ui, [["render", mi]]), gi = {
|
|
3729
|
+
components: { CrossButton: I },
|
|
3730
|
+
mixins: [F],
|
|
3531
3731
|
emits: ["update:modelValue", "changed"],
|
|
3532
3732
|
props: {
|
|
3533
3733
|
modelValue: {
|
|
@@ -3546,6 +3746,10 @@ var J = /*#__PURE__*/ k(oi, [["render", ui]]), di = {
|
|
|
3546
3746
|
type: String,
|
|
3547
3747
|
default: null
|
|
3548
3748
|
},
|
|
3749
|
+
describedBy: {
|
|
3750
|
+
type: String,
|
|
3751
|
+
default: null
|
|
3752
|
+
},
|
|
3549
3753
|
withEraser: {
|
|
3550
3754
|
type: Boolean,
|
|
3551
3755
|
default: !0
|
|
@@ -3557,13 +3761,13 @@ var J = /*#__PURE__*/ k(oi, [["render", ui]]), di = {
|
|
|
3557
3761
|
},
|
|
3558
3762
|
data() {
|
|
3559
3763
|
return {
|
|
3560
|
-
...
|
|
3764
|
+
...ti(this.isDisabled ? null : X(this.modelValue), this.digits),
|
|
3561
3765
|
hasFocus: !1
|
|
3562
3766
|
};
|
|
3563
3767
|
},
|
|
3564
3768
|
computed: {
|
|
3565
3769
|
amount() {
|
|
3566
|
-
return
|
|
3770
|
+
return ni(this.whole, this.fraction, this.digits);
|
|
3567
3771
|
},
|
|
3568
3772
|
isEmpty() {
|
|
3569
3773
|
return this.amount === null;
|
|
@@ -3572,14 +3776,14 @@ var J = /*#__PURE__*/ k(oi, [["render", ui]]), di = {
|
|
|
3572
3776
|
return this.isEmpty && !this.hasFocus;
|
|
3573
3777
|
},
|
|
3574
3778
|
groupedWhole() {
|
|
3575
|
-
return
|
|
3779
|
+
return ai(this.whole, this.resolvedLang);
|
|
3576
3780
|
},
|
|
3577
3781
|
separator() {
|
|
3578
|
-
return
|
|
3782
|
+
return oi(this.resolvedLang);
|
|
3579
3783
|
},
|
|
3580
3784
|
fullAmount() {
|
|
3581
3785
|
if (this.isEmpty) return null;
|
|
3582
|
-
let { whole: e, fraction: t } =
|
|
3786
|
+
let { whole: e, fraction: t } = ti(this.amount, this.digits), n = ai(e, this.resolvedLang);
|
|
3583
3787
|
return t === "" ? n : `${n}${this.separator}${t}`;
|
|
3584
3788
|
}
|
|
3585
3789
|
},
|
|
@@ -3599,12 +3803,12 @@ var J = /*#__PURE__*/ k(oi, [["render", ui]]), di = {
|
|
|
3599
3803
|
this.writeAmount(null, t), this.hasFocus = !1;
|
|
3600
3804
|
return;
|
|
3601
3805
|
}
|
|
3602
|
-
let o =
|
|
3806
|
+
let o = X(e);
|
|
3603
3807
|
if (a) {
|
|
3604
3808
|
this.writeAmount(o, t), this.committed = o;
|
|
3605
3809
|
return;
|
|
3606
3810
|
}
|
|
3607
|
-
let s =
|
|
3811
|
+
let s = ni(this.whole, this.fraction, i);
|
|
3608
3812
|
if (e === r || o === s) {
|
|
3609
3813
|
t !== i && this.writeAmount(s, t);
|
|
3610
3814
|
return;
|
|
@@ -3612,7 +3816,7 @@ var J = /*#__PURE__*/ k(oi, [["render", ui]]), di = {
|
|
|
3612
3816
|
this.writeAmount(o, t), this.committed = o;
|
|
3613
3817
|
},
|
|
3614
3818
|
writeAmount(e, t) {
|
|
3615
|
-
let { whole: n, fraction: r } =
|
|
3819
|
+
let { whole: n, fraction: r } = ti(e, t);
|
|
3616
3820
|
this.whole = n, this.fraction = r;
|
|
3617
3821
|
},
|
|
3618
3822
|
applyParts(e, t) {
|
|
@@ -3620,10 +3824,10 @@ var J = /*#__PURE__*/ k(oi, [["render", ui]]), di = {
|
|
|
3620
3824
|
this.whole = e, this.fraction = t, this.amount !== n && this.$emit("update:modelValue", this.amount);
|
|
3621
3825
|
},
|
|
3622
3826
|
onWholeInput(e) {
|
|
3623
|
-
this.applyParts(
|
|
3827
|
+
this.applyParts(ii(e.target.value, this.digits), this.fraction), e.target.value = this.groupedWhole;
|
|
3624
3828
|
},
|
|
3625
3829
|
onFractionInput(e) {
|
|
3626
|
-
let t = e.target, n = t.value, r = t.selectionStart, i =
|
|
3830
|
+
let t = e.target, n = t.value, r = t.selectionStart, i = ri(n).slice(0, this.digits);
|
|
3627
3831
|
if (this.applyParts(this.whole, i), t.value = i, i !== n) {
|
|
3628
3832
|
let e = Math.max(r - (n.length - i.length), 0);
|
|
3629
3833
|
t.setSelectionRange(e, e);
|
|
@@ -3642,7 +3846,7 @@ var J = /*#__PURE__*/ k(oi, [["render", ui]]), di = {
|
|
|
3642
3846
|
onWholeKeydown(e) {
|
|
3643
3847
|
this.holdCaret();
|
|
3644
3848
|
let t = e.metaKey || e.ctrlKey || e.altKey;
|
|
3645
|
-
this.digits > 0 && !t &&
|
|
3849
|
+
this.digits > 0 && !t && si(e.key, this.resolvedLang) && (e.preventDefault(), this.$refs.fractionInput.focus());
|
|
3646
3850
|
},
|
|
3647
3851
|
onFractionBackspace(e) {
|
|
3648
3852
|
this.fraction === "" && (e.preventDefault(), this.$refs.wholeInput.focus());
|
|
@@ -3654,7 +3858,7 @@ var J = /*#__PURE__*/ k(oi, [["render", ui]]), di = {
|
|
|
3654
3858
|
this.fraction !== "" && (this.fraction = this.padFraction(this.fraction), this.whole = this.whole || "0");
|
|
3655
3859
|
},
|
|
3656
3860
|
onWholePaste(e) {
|
|
3657
|
-
let t =
|
|
3861
|
+
let t = ci(e.clipboardData?.getData("text") ?? "", this.resolvedLang, this.digits);
|
|
3658
3862
|
t !== null && (this.applyParts(t.whole, this.padFraction(t.fraction)), this.onWholeFocus());
|
|
3659
3863
|
},
|
|
3660
3864
|
onFractionPaste(e) {
|
|
@@ -3680,53 +3884,56 @@ var J = /*#__PURE__*/ k(oi, [["render", ui]]), di = {
|
|
|
3680
3884
|
this.isUnmounted || this.isDisabled || this.amount === this.committed || (this.committed = this.amount, this.$emit("changed"));
|
|
3681
3885
|
}
|
|
3682
3886
|
}
|
|
3683
|
-
},
|
|
3887
|
+
}, _i = {
|
|
3684
3888
|
key: 0,
|
|
3685
3889
|
class: "bb:flex bb:flex-none bb:items-center bb:mr-2 bb:text-gray-400 bb:select-none"
|
|
3686
|
-
},
|
|
3890
|
+
}, vi = [
|
|
3687
3891
|
"id",
|
|
3688
3892
|
"value",
|
|
3689
3893
|
"disabled",
|
|
3690
3894
|
"aria-label",
|
|
3895
|
+
"aria-describedby",
|
|
3691
3896
|
"title"
|
|
3692
|
-
],
|
|
3897
|
+
], yi = [
|
|
3693
3898
|
"value",
|
|
3694
3899
|
"disabled",
|
|
3695
3900
|
"maxlength",
|
|
3696
3901
|
"placeholder",
|
|
3697
|
-
"aria-label"
|
|
3902
|
+
"aria-label",
|
|
3903
|
+
"aria-describedby"
|
|
3698
3904
|
];
|
|
3699
|
-
function
|
|
3700
|
-
let m =
|
|
3701
|
-
return
|
|
3702
|
-
class:
|
|
3703
|
-
onMousedown: o[18] ||= (...e) =>
|
|
3905
|
+
function bi(t, o, s, c, l, u) {
|
|
3906
|
+
let m = g("cross-button");
|
|
3907
|
+
return p(), i("div", {
|
|
3908
|
+
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 }]),
|
|
3909
|
+
onMousedown: o[18] ||= (...e) => u.onRootMousedown && u.onRootMousedown(...e),
|
|
3704
3910
|
onFocusin: o[19] ||= (e) => l.hasFocus = !0,
|
|
3705
|
-
onFocusout: o[20] ||= (...e) =>
|
|
3911
|
+
onFocusout: o[20] ||= (...e) => u.onFocusOut && u.onFocusOut(...e)
|
|
3706
3912
|
}, [
|
|
3707
|
-
s.prefix ? (
|
|
3913
|
+
s.prefix ? (p(), i("span", _i, y(s.prefix), 1)) : r("", !0),
|
|
3708
3914
|
a("input", {
|
|
3709
3915
|
ref: "wholeInput",
|
|
3710
3916
|
id: s.inputId,
|
|
3711
3917
|
type: "text",
|
|
3712
3918
|
inputmode: "decimal",
|
|
3713
3919
|
autocomplete: "off",
|
|
3714
|
-
value:
|
|
3920
|
+
value: u.groupedWhole,
|
|
3715
3921
|
disabled: s.isDisabled,
|
|
3716
3922
|
"aria-label": s.prefix,
|
|
3717
|
-
|
|
3923
|
+
"aria-describedby": s.describedBy,
|
|
3924
|
+
title: u.fullAmount,
|
|
3718
3925
|
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 ? (
|
|
3926
|
+
onInput: o[0] ||= (...e) => u.onWholeInput && u.onWholeInput(...e),
|
|
3927
|
+
onFocus: o[1] ||= (...e) => u.onWholeFocus && u.onWholeFocus(...e),
|
|
3928
|
+
onClick: o[2] ||= (...e) => u.holdCaret && u.holdCaret(...e),
|
|
3929
|
+
onKeydown: [o[3] ||= (...e) => u.onWholeKeydown && u.onWholeKeydown(...e), o[4] ||= T((...e) => u.commit && u.commit(...e), ["enter"])],
|
|
3930
|
+
onKeyup: o[5] ||= (...e) => u.holdCaret && u.holdCaret(...e),
|
|
3931
|
+
onSelect: o[6] ||= (...e) => u.holdCaret && u.holdCaret(...e),
|
|
3932
|
+
onPaste: o[7] ||= E((...e) => u.onWholePaste && u.onWholePaste(...e), ["prevent"]),
|
|
3933
|
+
onDragstart: o[8] ||= E(() => {}, ["prevent"]),
|
|
3934
|
+
onDrop: o[9] ||= E(() => {}, ["prevent"])
|
|
3935
|
+
}, null, 40, vi),
|
|
3936
|
+
s.digits > 0 ? (p(), i(e, { key: 1 }, [w(a("span", { class: "bb:flex bb:items-center bb:text-gray-500" }, y(u.separator), 513), [[S, !u.isCollapsed]]), w(a("input", {
|
|
3730
3937
|
ref: "fractionInput",
|
|
3731
3938
|
type: "text",
|
|
3732
3939
|
inputmode: "numeric",
|
|
@@ -3736,23 +3943,24 @@ function hi(t, o, s, c, l, p) {
|
|
|
3736
3943
|
maxlength: s.digits,
|
|
3737
3944
|
placeholder: "0".repeat(s.digits),
|
|
3738
3945
|
"aria-label": t.texts.amountFraction,
|
|
3739
|
-
|
|
3946
|
+
"aria-describedby": s.describedBy,
|
|
3947
|
+
style: f({ width: `calc(${s.digits}ch + 2px)` }),
|
|
3740
3948
|
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 ? (
|
|
3949
|
+
onInput: o[10] ||= (...e) => u.onFractionInput && u.onFractionInput(...e),
|
|
3950
|
+
onBlur: o[11] ||= (...e) => u.completeParts && u.completeParts(...e),
|
|
3951
|
+
onKeydown: [o[12] ||= T((...e) => u.commit && u.commit(...e), ["enter"]), o[13] ||= T((...e) => u.onFractionBackspace && u.onFractionBackspace(...e), ["backspace"])],
|
|
3952
|
+
onPaste: o[14] ||= E((...e) => u.onFractionPaste && u.onFractionPaste(...e), ["prevent"]),
|
|
3953
|
+
onDragstart: o[15] ||= E(() => {}, ["prevent"]),
|
|
3954
|
+
onDrop: o[16] ||= E(() => {}, ["prevent"])
|
|
3955
|
+
}, null, 44, yi), [[S, !u.isCollapsed]])], 64)) : r("", !0),
|
|
3956
|
+
s.withEraser ? (p(), n(m, {
|
|
3749
3957
|
key: 2,
|
|
3750
3958
|
ref: "eraser",
|
|
3751
3959
|
size: "small",
|
|
3752
3960
|
lang: t.lang,
|
|
3753
|
-
class:
|
|
3754
|
-
onMousedown: o[17] ||=
|
|
3755
|
-
onClicked:
|
|
3961
|
+
class: d(["bb:h-full bb:pr-2 bb:flex-none", { "bb:invisible": u.isEmpty }]),
|
|
3962
|
+
onMousedown: o[17] ||= E(() => {}, ["prevent"]),
|
|
3963
|
+
onClicked: u.erase
|
|
3756
3964
|
}, null, 8, [
|
|
3757
3965
|
"lang",
|
|
3758
3966
|
"class",
|
|
@@ -3760,13 +3968,14 @@ function hi(t, o, s, c, l, p) {
|
|
|
3760
3968
|
])) : r("", !0)
|
|
3761
3969
|
], 34);
|
|
3762
3970
|
}
|
|
3763
|
-
var
|
|
3971
|
+
var xi = /*#__PURE__*/ M(gi, [["render", bi]]), Si = {
|
|
3764
3972
|
components: {
|
|
3765
|
-
AmountCurrency:
|
|
3766
|
-
AmountInput:
|
|
3767
|
-
Dot:
|
|
3973
|
+
AmountCurrency: hi,
|
|
3974
|
+
AmountInput: xi,
|
|
3975
|
+
Dot: N,
|
|
3976
|
+
FieldDescription: W
|
|
3768
3977
|
},
|
|
3769
|
-
mixins: [
|
|
3978
|
+
mixins: [li, U],
|
|
3770
3979
|
emits: ["update:modelValue", "changed"],
|
|
3771
3980
|
props: {
|
|
3772
3981
|
modelValue: {
|
|
@@ -3791,11 +4000,11 @@ var Y = /*#__PURE__*/ k(di, [["render", hi]]), gi = {
|
|
|
3791
4000
|
}
|
|
3792
4001
|
},
|
|
3793
4002
|
setup() {
|
|
3794
|
-
return { inputId:
|
|
4003
|
+
return { inputId: b() };
|
|
3795
4004
|
},
|
|
3796
4005
|
computed: {
|
|
3797
4006
|
passedAmount() {
|
|
3798
|
-
return
|
|
4007
|
+
return X(this.modelValue?.amount);
|
|
3799
4008
|
},
|
|
3800
4009
|
passedCurrency() {
|
|
3801
4010
|
return this.modelValue?.currency ?? null;
|
|
@@ -3818,48 +4027,60 @@ var Y = /*#__PURE__*/ k(di, [["render", hi]]), gi = {
|
|
|
3818
4027
|
this.reportCurrency(e), this.passedAmount !== null && this.$emit("changed");
|
|
3819
4028
|
}
|
|
3820
4029
|
}
|
|
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
|
-
|
|
4030
|
+
}, Ci = { class: "bb-dashboard-ui" }, wi = { class: "bb:flex bb:items-center" }, Ti = ["for", "textContent"], Ei = { class: "bb:mt-1 bb:flex bb:gap-3" }, Di = { 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]" }, Oi = { 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]" };
|
|
4031
|
+
function ki(e, t, o, l, u, d) {
|
|
4032
|
+
let f = g("dot"), m = g("amount-input"), _ = g("amount-currency"), v = g("field-description");
|
|
4033
|
+
return p(), i("div", Ci, [
|
|
4034
|
+
a("div", wi, [a("label", {
|
|
4035
|
+
for: l.inputId,
|
|
4036
|
+
class: "bb:block bb:text-sm bb:font-medium bb:leading-5 bb:text-gray-700",
|
|
4037
|
+
textContent: y(o.label)
|
|
4038
|
+
}, null, 8, Ti), w(c(f, {
|
|
4039
|
+
color: "red-pale",
|
|
4040
|
+
class: "bb:ml-2"
|
|
4041
|
+
}, null, 512), [[S, o.isRequired]])]),
|
|
4042
|
+
a("div", Ei, [a("div", Di, [c(m, {
|
|
4043
|
+
"model-value": d.passedAmount,
|
|
4044
|
+
digits: e.fractionDigits,
|
|
4045
|
+
"input-id": l.inputId,
|
|
4046
|
+
"described-by": e.descriptionId(l.inputId),
|
|
4047
|
+
"with-eraser": o.withEraser,
|
|
4048
|
+
"is-disabled": e.isBlocked,
|
|
4049
|
+
lang: o.lang,
|
|
4050
|
+
"onUpdate:modelValue": d.reportAmount,
|
|
4051
|
+
onChanged: t[0] ||= (t) => e.$emit("changed")
|
|
4052
|
+
}, null, 8, [
|
|
4053
|
+
"model-value",
|
|
4054
|
+
"digits",
|
|
4055
|
+
"input-id",
|
|
4056
|
+
"described-by",
|
|
4057
|
+
"with-eraser",
|
|
4058
|
+
"is-disabled",
|
|
4059
|
+
"lang",
|
|
4060
|
+
"onUpdate:modelValue"
|
|
4061
|
+
])]), a("div", Oi, [c(_, {
|
|
4062
|
+
currencies: e.currencyList,
|
|
4063
|
+
"model-value": e.activeCode,
|
|
4064
|
+
lang: o.lang,
|
|
4065
|
+
"onUpdate:modelValue": d.chooseCurrency
|
|
4066
|
+
}, null, 8, [
|
|
4067
|
+
"currencies",
|
|
4068
|
+
"model-value",
|
|
4069
|
+
"lang",
|
|
4070
|
+
"onUpdate:modelValue"
|
|
4071
|
+
])])]),
|
|
4072
|
+
e.hasDescription() ? (p(), n(v, {
|
|
4073
|
+
key: 0,
|
|
4074
|
+
id: e.descriptionId(l.inputId)
|
|
4075
|
+
}, {
|
|
4076
|
+
default: C(() => [h(e.$slots, "description", {}, () => [s(y(e.description), 1)])]),
|
|
4077
|
+
_: 3
|
|
4078
|
+
}, 8, ["id"])) : r("", !0)
|
|
4079
|
+
]);
|
|
3859
4080
|
}
|
|
3860
|
-
var
|
|
4081
|
+
var Ai = /*#__PURE__*/ M(Si, [["render", ki]]), ji = {
|
|
3861
4082
|
inheritAttrs: !1,
|
|
3862
|
-
mixins: [
|
|
4083
|
+
mixins: [F, li],
|
|
3863
4084
|
emits: [
|
|
3864
4085
|
"update:amountFrom",
|
|
3865
4086
|
"update:amountTo",
|
|
@@ -3885,10 +4106,10 @@ var wi = /*#__PURE__*/ k(gi, [["render", Ci]]), Ti = {
|
|
|
3885
4106
|
return this.currency;
|
|
3886
4107
|
},
|
|
3887
4108
|
passedFrom() {
|
|
3888
|
-
return
|
|
4109
|
+
return X(this.amountFrom);
|
|
3889
4110
|
},
|
|
3890
4111
|
passedTo() {
|
|
3891
|
-
return
|
|
4112
|
+
return X(this.amountTo);
|
|
3892
4113
|
},
|
|
3893
4114
|
from() {
|
|
3894
4115
|
return {
|
|
@@ -3925,19 +4146,19 @@ var wi = /*#__PURE__*/ k(gi, [["render", Ci]]), Ti = {
|
|
|
3925
4146
|
}
|
|
3926
4147
|
}
|
|
3927
4148
|
};
|
|
3928
|
-
function
|
|
3929
|
-
return
|
|
4149
|
+
function Mi(e, t, n, r, i, a) {
|
|
4150
|
+
return h(e.$slots, "default", {
|
|
3930
4151
|
from: a.from,
|
|
3931
4152
|
to: a.to,
|
|
3932
4153
|
currency: a.currencyField
|
|
3933
4154
|
});
|
|
3934
4155
|
}
|
|
3935
|
-
var
|
|
4156
|
+
var Ni = /*#__PURE__*/ M(ji, [["render", Mi]]), Pi = {
|
|
3936
4157
|
components: {
|
|
3937
|
-
AmountCurrency:
|
|
3938
|
-
AmountInput:
|
|
3939
|
-
AmountInterval:
|
|
3940
|
-
ElementHeader:
|
|
4158
|
+
AmountCurrency: hi,
|
|
4159
|
+
AmountInput: xi,
|
|
4160
|
+
AmountInterval: Ni,
|
|
4161
|
+
ElementHeader: P
|
|
3941
4162
|
},
|
|
3942
4163
|
emits: [
|
|
3943
4164
|
"update:amountFrom",
|
|
@@ -3987,13 +4208,13 @@ var Di = /*#__PURE__*/ k(Ti, [["render", Ei]]), Oi = {
|
|
|
3987
4208
|
default: null
|
|
3988
4209
|
}
|
|
3989
4210
|
}
|
|
3990
|
-
},
|
|
4211
|
+
}, Fi = { class: "bb-dashboard-ui bb:flex bb:w-fit bb:h-18 bb:border bb:border-gray-200" }, Ii = { class: "bb:flex bb:border bb:border-white" }, Li = { class: "bb:flex bb:flex-col bb:bg-white bb:h-full" }, Ri = { class: "bb:flex bb:h-full bb:divide-x bb:divide-gray-200" }, zi = { class: "bb:w-46 bb:flex-none bb:text-sm" }, Bi = { class: "bb:w-46 bb:flex-none bb:text-sm" }, Vi = {
|
|
3991
4212
|
key: 0,
|
|
3992
4213
|
class: "bb:w-24 bb:flex-none bb:text-sm"
|
|
3993
4214
|
};
|
|
3994
|
-
function
|
|
3995
|
-
let u =
|
|
3996
|
-
return
|
|
4215
|
+
function Hi(e, t, n, o, s, l) {
|
|
4216
|
+
let u = g("element-header"), d = g("amount-input"), f = g("amount-currency"), m = g("amount-interval");
|
|
4217
|
+
return p(), i("div", Fi, [a("div", Ii, [a("div", Li, [c(u, {
|
|
3997
4218
|
text: n.header ?? "",
|
|
3998
4219
|
"is-required": n.isRequired,
|
|
3999
4220
|
"is-loading": n.isLoading
|
|
@@ -4001,7 +4222,7 @@ function Ii(e, t, n, o, c, l) {
|
|
|
4001
4222
|
"text",
|
|
4002
4223
|
"is-required",
|
|
4003
4224
|
"is-loading"
|
|
4004
|
-
]),
|
|
4225
|
+
]), c(m, {
|
|
4005
4226
|
"amount-from": n.amountFrom,
|
|
4006
4227
|
"amount-to": n.amountTo,
|
|
4007
4228
|
currency: n.currency,
|
|
@@ -4012,8 +4233,8 @@ function Ii(e, t, n, o, c, l) {
|
|
|
4012
4233
|
"onUpdate:currency": t[2] ||= (t) => e.$emit("update:currency", t),
|
|
4013
4234
|
onChanged: t[3] ||= (t) => e.$emit("changed")
|
|
4014
4235
|
}, {
|
|
4015
|
-
default:
|
|
4016
|
-
a("div",
|
|
4236
|
+
default: C(({ from: e, to: t, currency: o }) => [a("div", Ri, [
|
|
4237
|
+
a("div", zi, [c(d, {
|
|
4017
4238
|
"model-value": e.value,
|
|
4018
4239
|
digits: o.digits,
|
|
4019
4240
|
prefix: e.prefix,
|
|
@@ -4032,7 +4253,7 @@ function Ii(e, t, n, o, c, l) {
|
|
|
4032
4253
|
"onUpdate:modelValue",
|
|
4033
4254
|
"onChanged"
|
|
4034
4255
|
])]),
|
|
4035
|
-
a("div",
|
|
4256
|
+
a("div", Bi, [c(d, {
|
|
4036
4257
|
"model-value": t.value,
|
|
4037
4258
|
digits: o.digits,
|
|
4038
4259
|
prefix: t.prefix,
|
|
@@ -4051,7 +4272,7 @@ function Ii(e, t, n, o, c, l) {
|
|
|
4051
4272
|
"onUpdate:modelValue",
|
|
4052
4273
|
"onChanged"
|
|
4053
4274
|
])]),
|
|
4054
|
-
n.withCurrency ? (
|
|
4275
|
+
n.withCurrency ? (p(), i("div", Vi, [c(f, {
|
|
4055
4276
|
currencies: o.list,
|
|
4056
4277
|
"model-value": o.code,
|
|
4057
4278
|
lang: n.lang,
|
|
@@ -4072,13 +4293,15 @@ function Ii(e, t, n, o, c, l) {
|
|
|
4072
4293
|
"lang"
|
|
4073
4294
|
])])])]);
|
|
4074
4295
|
}
|
|
4075
|
-
var
|
|
4296
|
+
var Ui = /*#__PURE__*/ M(Pi, [["render", Hi]]), Wi = {
|
|
4076
4297
|
components: {
|
|
4077
|
-
AmountCurrency:
|
|
4078
|
-
AmountInput:
|
|
4079
|
-
AmountInterval:
|
|
4080
|
-
Dot:
|
|
4298
|
+
AmountCurrency: hi,
|
|
4299
|
+
AmountInput: xi,
|
|
4300
|
+
AmountInterval: Ni,
|
|
4301
|
+
Dot: N,
|
|
4302
|
+
FieldDescription: W
|
|
4081
4303
|
},
|
|
4304
|
+
mixins: [U],
|
|
4082
4305
|
emits: [
|
|
4083
4306
|
"update:amountFrom",
|
|
4084
4307
|
"update:amountTo",
|
|
@@ -4120,95 +4343,106 @@ var Li = /*#__PURE__*/ k(Oi, [["render", Ii]]), Ri = {
|
|
|
4120
4343
|
}
|
|
4121
4344
|
},
|
|
4122
4345
|
setup() {
|
|
4123
|
-
return { labelId:
|
|
4346
|
+
return { labelId: b() };
|
|
4124
4347
|
}
|
|
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
|
-
|
|
4348
|
+
}, Gi = { class: "bb-dashboard-ui" }, Ki = { class: "bb:flex bb:items-center" }, qi = ["id", "textContent"], Ji = ["aria-labelledby", "aria-describedby"], 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: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]" }, Zi = { 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]" };
|
|
4349
|
+
function Qi(e, t, o, l, u, d) {
|
|
4350
|
+
let f = g("dot"), m = g("amount-input"), _ = g("amount-currency"), v = g("amount-interval"), b = g("field-description");
|
|
4351
|
+
return p(), i("div", Gi, [
|
|
4352
|
+
a("div", Ki, [a("span", {
|
|
4353
|
+
id: l.labelId,
|
|
4354
|
+
class: "bb:block bb:text-sm bb:font-medium bb:leading-5 bb:text-gray-700",
|
|
4355
|
+
textContent: y(o.label ?? "")
|
|
4356
|
+
}, null, 8, qi), w(c(f, {
|
|
4357
|
+
color: "red-pale",
|
|
4358
|
+
class: "bb:ml-2"
|
|
4359
|
+
}, null, 512), [[S, o.isRequired]])]),
|
|
4360
|
+
a("div", {
|
|
4361
|
+
class: "bb:mt-1 bb:grid bb:grid-cols-[1fr_1fr_6rem] bb:gap-3",
|
|
4362
|
+
role: "group",
|
|
4363
|
+
"aria-labelledby": l.labelId,
|
|
4364
|
+
"aria-describedby": e.descriptionId(l.labelId)
|
|
4365
|
+
}, [c(v, {
|
|
4366
|
+
"amount-from": o.amountFrom,
|
|
4367
|
+
"amount-to": o.amountTo,
|
|
4368
|
+
currency: o.currency,
|
|
4369
|
+
currencies: o.currencies,
|
|
4370
|
+
lang: o.lang,
|
|
4371
|
+
"onUpdate:amountFrom": t[0] ||= (t) => e.$emit("update:amountFrom", t),
|
|
4372
|
+
"onUpdate:amountTo": t[1] ||= (t) => e.$emit("update:amountTo", t),
|
|
4373
|
+
"onUpdate:currency": t[2] ||= (t) => e.$emit("update:currency", t),
|
|
4374
|
+
onChanged: t[3] ||= (t) => e.$emit("changed")
|
|
4375
|
+
}, {
|
|
4376
|
+
default: C(({ from: e, to: t, currency: n }) => [
|
|
4377
|
+
a("div", Yi, [c(m, {
|
|
4378
|
+
"model-value": e.value,
|
|
4379
|
+
digits: n.digits,
|
|
4380
|
+
prefix: e.prefix,
|
|
4381
|
+
"with-eraser": o.withEraser,
|
|
4382
|
+
"is-disabled": n.isBlocked,
|
|
4383
|
+
lang: o.lang,
|
|
4384
|
+
"onUpdate:modelValue": e.update,
|
|
4385
|
+
onChanged: e.changed
|
|
4386
|
+
}, null, 8, [
|
|
4387
|
+
"model-value",
|
|
4388
|
+
"digits",
|
|
4389
|
+
"prefix",
|
|
4390
|
+
"with-eraser",
|
|
4391
|
+
"is-disabled",
|
|
4392
|
+
"lang",
|
|
4393
|
+
"onUpdate:modelValue",
|
|
4394
|
+
"onChanged"
|
|
4395
|
+
])]),
|
|
4396
|
+
a("div", Xi, [c(m, {
|
|
4397
|
+
"model-value": t.value,
|
|
4398
|
+
digits: n.digits,
|
|
4399
|
+
prefix: t.prefix,
|
|
4400
|
+
"with-eraser": o.withEraser,
|
|
4401
|
+
"is-disabled": n.isBlocked,
|
|
4402
|
+
lang: o.lang,
|
|
4403
|
+
"onUpdate:modelValue": t.update,
|
|
4404
|
+
onChanged: t.changed
|
|
4405
|
+
}, null, 8, [
|
|
4406
|
+
"model-value",
|
|
4407
|
+
"digits",
|
|
4408
|
+
"prefix",
|
|
4409
|
+
"with-eraser",
|
|
4410
|
+
"is-disabled",
|
|
4411
|
+
"lang",
|
|
4412
|
+
"onUpdate:modelValue",
|
|
4413
|
+
"onChanged"
|
|
4414
|
+
])]),
|
|
4415
|
+
a("div", Zi, [c(_, {
|
|
4416
|
+
currencies: n.list,
|
|
4417
|
+
"model-value": n.code,
|
|
4418
|
+
lang: o.lang,
|
|
4419
|
+
"onUpdate:modelValue": n.choose
|
|
4420
|
+
}, null, 8, [
|
|
4421
|
+
"currencies",
|
|
4422
|
+
"model-value",
|
|
4423
|
+
"lang",
|
|
4424
|
+
"onUpdate:modelValue"
|
|
4425
|
+
])])
|
|
4426
|
+
]),
|
|
4427
|
+
_: 1
|
|
4428
|
+
}, 8, [
|
|
4429
|
+
"amount-from",
|
|
4430
|
+
"amount-to",
|
|
4431
|
+
"currency",
|
|
4432
|
+
"currencies",
|
|
4433
|
+
"lang"
|
|
4434
|
+
])], 8, Ji),
|
|
4435
|
+
e.hasDescription() ? (p(), n(b, {
|
|
4436
|
+
key: 0,
|
|
4437
|
+
id: e.descriptionId(l.labelId)
|
|
4438
|
+
}, {
|
|
4439
|
+
default: C(() => [h(e.$slots, "description", {}, () => [s(y(e.description), 1)])]),
|
|
4440
|
+
_: 3
|
|
4441
|
+
}, 8, ["id"])) : r("", !0)
|
|
4442
|
+
]);
|
|
4209
4443
|
}
|
|
4210
|
-
var
|
|
4211
|
-
mixins: [
|
|
4444
|
+
var $i = /*#__PURE__*/ M(Wi, [["render", Qi]]), ea = {
|
|
4445
|
+
mixins: [j],
|
|
4212
4446
|
props: {
|
|
4213
4447
|
text: {
|
|
4214
4448
|
type: String,
|
|
@@ -4217,17 +4451,17 @@ var qi = /*#__PURE__*/ k(Ri, [["render", Ki]]), Ji = {
|
|
|
4217
4451
|
color: {
|
|
4218
4452
|
type: String,
|
|
4219
4453
|
required: !0,
|
|
4220
|
-
validator:
|
|
4454
|
+
validator: A
|
|
4221
4455
|
}
|
|
4222
4456
|
}
|
|
4223
|
-
},
|
|
4224
|
-
function
|
|
4225
|
-
return
|
|
4226
|
-
class:
|
|
4227
|
-
textContent:
|
|
4228
|
-
}, null, 10,
|
|
4229
|
-
}
|
|
4230
|
-
var
|
|
4457
|
+
}, ta = ["textContent"];
|
|
4458
|
+
function na(e, t, n, r, a, o) {
|
|
4459
|
+
return p(), i("span", {
|
|
4460
|
+
class: d(["bb-dashboard-ui bb:inline-flex bb:items-center bb:px-3 bb:py-2 bb:rounded-full bb:text-xs bb:font-medium bb:leading-none bb:select-none bb:whitespace-nowrap", e.colorClass(n.color, "pill")]),
|
|
4461
|
+
textContent: y(n.text)
|
|
4462
|
+
}, null, 10, ta);
|
|
4463
|
+
}
|
|
4464
|
+
var ra = /*#__PURE__*/ M(ea, [["render", na]]), ia = {
|
|
4231
4465
|
props: {
|
|
4232
4466
|
messages: {
|
|
4233
4467
|
type: [Object, Array],
|
|
@@ -4247,34 +4481,38 @@ var Zi = /*#__PURE__*/ k(Ji, [["render", Xi]]), Qi = {
|
|
|
4247
4481
|
return this.type === "dangerous";
|
|
4248
4482
|
}
|
|
4249
4483
|
}
|
|
4250
|
-
},
|
|
4251
|
-
function
|
|
4252
|
-
return l.hasErrors ? (
|
|
4484
|
+
}, aa = { class: "bb:flex" }, oa = { class: "bb:shrink-0" }, sa = { class: "bb:ml-3" }, ca = ["textContent"];
|
|
4485
|
+
function la(t, n, o, s, c, l) {
|
|
4486
|
+
return l.hasErrors ? (p(), i("div", {
|
|
4253
4487
|
key: 0,
|
|
4254
|
-
class:
|
|
4255
|
-
}, [a("div",
|
|
4256
|
-
class:
|
|
4488
|
+
class: d(["bb-dashboard-ui bb:border-l-4 bb:p-4", l.isDangerous ? "bb:bg-red-50 bb:border-red-400" : "bb:bg-yellow-50 bb:border-yellow-400"])
|
|
4489
|
+
}, [a("div", aa, [a("div", oa, [(p(), i("svg", {
|
|
4490
|
+
class: d(["bb:h-5 bb:w-5", l.isDangerous ? "bb:text-red-400" : "bb:text-yellow-400"]),
|
|
4257
4491
|
viewBox: "0 0 20 20",
|
|
4258
4492
|
fill: "currentColor"
|
|
4259
4493
|
}, [...n[0] ||= [a("path", {
|
|
4260
4494
|
"fill-rule": "evenodd",
|
|
4261
4495
|
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
4496
|
"clip-rule": "evenodd"
|
|
4263
|
-
}, null, -1)]], 2))]), a("div",
|
|
4264
|
-
class:
|
|
4497
|
+
}, null, -1)]], 2))]), a("div", sa, [(p(!0), i(e, null, m(o.messages, (e, t) => (p(), i("p", {
|
|
4498
|
+
class: d(["bb:text-sm bb:leading-5", l.isDangerous ? "bb:text-red-700" : "bb:text-yellow-700"]),
|
|
4265
4499
|
key: t,
|
|
4266
|
-
textContent:
|
|
4267
|
-
}, null, 10,
|
|
4500
|
+
textContent: y(e)
|
|
4501
|
+
}, null, 10, ca))), 128))])])], 2)) : r("", !0);
|
|
4268
4502
|
}
|
|
4269
|
-
var
|
|
4503
|
+
var ua = /*#__PURE__*/ M(ia, [["render", la]]), da = [
|
|
4270
4504
|
"text",
|
|
4271
4505
|
"email",
|
|
4272
4506
|
"password",
|
|
4273
4507
|
"tel",
|
|
4274
4508
|
"url",
|
|
4275
4509
|
"search"
|
|
4276
|
-
],
|
|
4277
|
-
components: {
|
|
4510
|
+
], fa = {
|
|
4511
|
+
components: {
|
|
4512
|
+
Dot: N,
|
|
4513
|
+
FieldDescription: W
|
|
4514
|
+
},
|
|
4515
|
+
mixins: [U],
|
|
4278
4516
|
inheritAttrs: !1,
|
|
4279
4517
|
props: {
|
|
4280
4518
|
modelValue: {
|
|
@@ -4288,7 +4526,7 @@ var ia = /*#__PURE__*/ k(Qi, [["render", ra]]), aa = [
|
|
|
4288
4526
|
type: {
|
|
4289
4527
|
type: String,
|
|
4290
4528
|
default: "text",
|
|
4291
|
-
validator: (e) =>
|
|
4529
|
+
validator: (e) => da.includes(e)
|
|
4292
4530
|
},
|
|
4293
4531
|
isRequired: {
|
|
4294
4532
|
type: Boolean,
|
|
@@ -4297,7 +4535,7 @@ var ia = /*#__PURE__*/ k(Qi, [["render", ra]]), aa = [
|
|
|
4297
4535
|
},
|
|
4298
4536
|
emits: ["update:modelValue"],
|
|
4299
4537
|
setup() {
|
|
4300
|
-
return { generatedId:
|
|
4538
|
+
return { generatedId: b() };
|
|
4301
4539
|
},
|
|
4302
4540
|
computed: {
|
|
4303
4541
|
value: {
|
|
@@ -4309,13 +4547,17 @@ var ia = /*#__PURE__*/ k(Qi, [["render", ra]]), aa = [
|
|
|
4309
4547
|
}
|
|
4310
4548
|
},
|
|
4311
4549
|
inputType() {
|
|
4312
|
-
return
|
|
4550
|
+
return da.includes(this.type) ? this.type : "text";
|
|
4313
4551
|
}
|
|
4314
4552
|
},
|
|
4315
4553
|
methods: {
|
|
4316
4554
|
inputId() {
|
|
4317
4555
|
return this.$attrs.id ?? this.generatedId;
|
|
4318
4556
|
},
|
|
4557
|
+
inputDescribedBy() {
|
|
4558
|
+
let e = [this.$attrs["aria-describedby"], this.descriptionId(this.inputId())].filter(Boolean);
|
|
4559
|
+
return e.length > 0 ? e.join(" ") : null;
|
|
4560
|
+
},
|
|
4319
4561
|
inputAttrs() {
|
|
4320
4562
|
return Object.fromEntries(Object.entries(this.$attrs).filter(([e]) => ![
|
|
4321
4563
|
"class",
|
|
@@ -4324,97 +4566,271 @@ var ia = /*#__PURE__*/ k(Qi, [["render", ra]]), aa = [
|
|
|
4324
4566
|
].includes(e)));
|
|
4325
4567
|
}
|
|
4326
4568
|
}
|
|
4327
|
-
},
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
class: "bb
|
|
4336
|
-
|
|
4337
|
-
},
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
}
|
|
4346
|
-
|
|
4347
|
-
|
|
4569
|
+
}, pa = { class: "bb:flex bb:items-center" }, ma = ["for", "textContent"], ha = [
|
|
4570
|
+
"id",
|
|
4571
|
+
"aria-describedby",
|
|
4572
|
+
"type"
|
|
4573
|
+
];
|
|
4574
|
+
function ga(e, t, o, l, m, _) {
|
|
4575
|
+
let v = g("dot"), b = g("field-description");
|
|
4576
|
+
return p(), i("div", {
|
|
4577
|
+
class: d(["bb-dashboard-ui", e.$attrs.class]),
|
|
4578
|
+
style: f(e.$attrs.style)
|
|
4579
|
+
}, [
|
|
4580
|
+
a("div", pa, [a("label", {
|
|
4581
|
+
for: _.inputId(),
|
|
4582
|
+
class: "bb:block bb:text-sm bb:font-medium bb:leading-5 bb:text-gray-700",
|
|
4583
|
+
textContent: y(o.label)
|
|
4584
|
+
}, null, 8, ma), w(c(v, {
|
|
4585
|
+
color: "red-pale",
|
|
4586
|
+
class: "bb:ml-2"
|
|
4587
|
+
}, null, 512), [[S, o.isRequired]])]),
|
|
4588
|
+
w(a("input", u({ "onUpdate:modelValue": t[0] ||= (e) => _.value = e }, { ..._.inputAttrs() }, {
|
|
4589
|
+
id: _.inputId(),
|
|
4590
|
+
"aria-describedby": _.inputDescribedBy(),
|
|
4591
|
+
type: _.inputType,
|
|
4592
|
+
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"
|
|
4593
|
+
}), null, 16, ha), [[x, _.value]]),
|
|
4594
|
+
e.hasDescription() ? (p(), n(b, {
|
|
4595
|
+
key: 0,
|
|
4596
|
+
id: e.descriptionId(_.inputId())
|
|
4597
|
+
}, {
|
|
4598
|
+
default: C(() => [h(e.$slots, "description", {}, () => [s(y(e.description), 1)])]),
|
|
4599
|
+
_: 3
|
|
4600
|
+
}, 8, ["id"])) : r("", !0)
|
|
4601
|
+
], 6);
|
|
4602
|
+
}
|
|
4603
|
+
var _a = /*#__PURE__*/ M(fa, [["render", ga]]), va = {}, ya = {
|
|
4348
4604
|
fill: "none",
|
|
4349
4605
|
stroke: "currentColor",
|
|
4350
|
-
"stroke-width": "2",
|
|
4351
|
-
"stroke-linecap": "round",
|
|
4352
4606
|
viewBox: "0 0 24 24",
|
|
4353
4607
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4354
4608
|
"aria-hidden": "true"
|
|
4355
4609
|
};
|
|
4356
|
-
function
|
|
4357
|
-
return
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
a("line", {
|
|
4364
|
-
class: "bb:origin-center bb:animate-[spin_12s_linear_infinite] bb:motion-reduce:animate-none",
|
|
4365
|
-
x1: "12",
|
|
4366
|
-
y1: "12",
|
|
4367
|
-
x2: "15",
|
|
4368
|
-
y2: "12"
|
|
4369
|
-
}, null, -1),
|
|
4370
|
-
a("line", {
|
|
4371
|
-
class: "bb:origin-center bb:animate-spin bb:motion-reduce:animate-none",
|
|
4372
|
-
x1: "12",
|
|
4373
|
-
y1: "12",
|
|
4374
|
-
x2: "12",
|
|
4375
|
-
y2: "6.5"
|
|
4376
|
-
}, null, -1)
|
|
4377
|
-
]]);
|
|
4610
|
+
function ba(e, t, n, r, o, s) {
|
|
4611
|
+
return p(), i("svg", ya, [...t[0] ||= [a("path", {
|
|
4612
|
+
"stroke-linecap": "round",
|
|
4613
|
+
"stroke-linejoin": "round",
|
|
4614
|
+
"stroke-width": "2",
|
|
4615
|
+
d: "M12 4v16m8-8H4"
|
|
4616
|
+
}, null, -1)]]);
|
|
4378
4617
|
}
|
|
4379
|
-
var
|
|
4380
|
-
class: "bb:w-4 bb:h-4",
|
|
4618
|
+
var xa = /*#__PURE__*/ M(va, [["render", ba]]), Sa = {}, Ca = {
|
|
4381
4619
|
fill: "none",
|
|
4382
4620
|
stroke: "currentColor",
|
|
4383
4621
|
viewBox: "0 0 24 24",
|
|
4384
4622
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4385
4623
|
"aria-hidden": "true"
|
|
4386
4624
|
};
|
|
4387
|
-
function
|
|
4388
|
-
return
|
|
4625
|
+
function wa(e, t, n, r, o, s) {
|
|
4626
|
+
return p(), i("svg", Ca, [...t[0] ||= [a("path", {
|
|
4389
4627
|
"stroke-linecap": "round",
|
|
4390
4628
|
"stroke-linejoin": "round",
|
|
4391
4629
|
"stroke-width": "2",
|
|
4392
4630
|
d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
|
|
4393
4631
|
}, null, -1)]]);
|
|
4394
4632
|
}
|
|
4395
|
-
var
|
|
4396
|
-
class: "bb:w-4 bb:h-4",
|
|
4633
|
+
var Ta = /*#__PURE__*/ M(Sa, [["render", wa]]), Ea = {}, Da = {
|
|
4397
4634
|
fill: "none",
|
|
4398
4635
|
stroke: "currentColor",
|
|
4399
4636
|
viewBox: "0 0 24 24",
|
|
4400
4637
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4401
4638
|
"aria-hidden": "true"
|
|
4402
4639
|
};
|
|
4403
|
-
function
|
|
4404
|
-
return
|
|
4640
|
+
function Oa(e, t, n, r, o, s) {
|
|
4641
|
+
return p(), i("svg", Da, [...t[0] ||= [a("path", {
|
|
4405
4642
|
"stroke-linecap": "round",
|
|
4406
4643
|
"stroke-linejoin": "round",
|
|
4407
4644
|
"stroke-width": "2",
|
|
4408
4645
|
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
4646
|
}, null, -1)]]);
|
|
4410
4647
|
}
|
|
4411
|
-
var
|
|
4648
|
+
var ka = /*#__PURE__*/ M(Ea, [["render", Oa]]), Aa = {}, ja = {
|
|
4649
|
+
fill: "none",
|
|
4650
|
+
stroke: "currentColor",
|
|
4651
|
+
viewBox: "0 0 24 24",
|
|
4652
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4653
|
+
"aria-hidden": "true"
|
|
4654
|
+
};
|
|
4655
|
+
function Ma(e, t, n, r, o, s) {
|
|
4656
|
+
return p(), i("svg", ja, [...t[0] ||= [a("path", {
|
|
4657
|
+
"stroke-linecap": "round",
|
|
4658
|
+
"stroke-linejoin": "round",
|
|
4659
|
+
"stroke-width": "2",
|
|
4660
|
+
d: "M2 9l10-7 10 7H2zM4.5 12v6M9.5 12v6M14.5 12v6M19.5 12v6M3.5 18h17M2 22h20"
|
|
4661
|
+
}, null, -1)]]);
|
|
4662
|
+
}
|
|
4663
|
+
var Na = /*#__PURE__*/ M(Aa, [["render", Ma]]), Pa = {}, Fa = {
|
|
4664
|
+
fill: "none",
|
|
4665
|
+
stroke: "currentColor",
|
|
4666
|
+
viewBox: "0 0 24 24",
|
|
4667
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4668
|
+
"aria-hidden": "true"
|
|
4669
|
+
};
|
|
4670
|
+
function Ia(e, t, n, r, o, s) {
|
|
4671
|
+
return p(), i("svg", Fa, [...t[0] ||= [a("path", {
|
|
4672
|
+
"stroke-linecap": "round",
|
|
4673
|
+
"stroke-linejoin": "round",
|
|
4674
|
+
"stroke-width": "2",
|
|
4675
|
+
d: "M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"
|
|
4676
|
+
}, null, -1)]]);
|
|
4677
|
+
}
|
|
4678
|
+
//#endregion
|
|
4679
|
+
//#region src/actionIcons.js
|
|
4680
|
+
var La = {
|
|
4681
|
+
plus: xa,
|
|
4682
|
+
download: Ta,
|
|
4683
|
+
refresh: ka,
|
|
4684
|
+
"bank-transfer": Na,
|
|
4685
|
+
"currency-exchange": /* @__PURE__ */ M(Pa, [["render", Ia]])
|
|
4686
|
+
};
|
|
4687
|
+
function Z(e) {
|
|
4688
|
+
return typeof e == "string" && Object.hasOwn(La, e);
|
|
4689
|
+
}
|
|
4690
|
+
//#endregion
|
|
4691
|
+
//#region src/navigation.js
|
|
4692
|
+
function Ra(e) {
|
|
4693
|
+
let t = e.currentTarget?.target ?? "";
|
|
4694
|
+
return !(e.defaultPrevented || e.target?.isContentEditable === !0 || e.altKey || e.ctrlKey || e.metaKey || e.shiftKey || t !== "" && t !== "_self" || e.button !== 0);
|
|
4695
|
+
}
|
|
4696
|
+
var Q = {
|
|
4697
|
+
inject: ve,
|
|
4698
|
+
methods: { followLink(e, t) {
|
|
4699
|
+
let n = this.uiSettings.navigate;
|
|
4700
|
+
n !== null && Ra(e) && (e.preventDefault(), n(t));
|
|
4701
|
+
} }
|
|
4702
|
+
}, za = {
|
|
4703
|
+
props: { name: {
|
|
4704
|
+
type: String,
|
|
4705
|
+
default: null
|
|
4706
|
+
} },
|
|
4707
|
+
computed: { icon() {
|
|
4708
|
+
return Z(this.name) ? La[this.name] : "span";
|
|
4709
|
+
} }
|
|
4710
|
+
};
|
|
4711
|
+
function Ba(e, t, r, i, a, o) {
|
|
4712
|
+
return p(), n(_(o.icon), { class: "bb:w-4 bb:h-4 bb:shrink-0 bb:pointer-events-none bb:cursor-default" });
|
|
4713
|
+
}
|
|
4714
|
+
var Va = /*#__PURE__*/ M(za, [["render", Ba]]), Ha = {
|
|
4715
|
+
components: { ActionIcon: Va },
|
|
4716
|
+
mixins: [j, Q],
|
|
4717
|
+
emits: ["click"],
|
|
4718
|
+
props: {
|
|
4719
|
+
label: {
|
|
4720
|
+
type: String,
|
|
4721
|
+
required: !0
|
|
4722
|
+
},
|
|
4723
|
+
color: {
|
|
4724
|
+
type: String,
|
|
4725
|
+
default: null,
|
|
4726
|
+
validator: (e) => e === "" || A(e)
|
|
4727
|
+
},
|
|
4728
|
+
icon: {
|
|
4729
|
+
type: String,
|
|
4730
|
+
default: null,
|
|
4731
|
+
validator: (e) => e === "" || Z(e)
|
|
4732
|
+
},
|
|
4733
|
+
href: {
|
|
4734
|
+
type: String,
|
|
4735
|
+
default: null
|
|
4736
|
+
},
|
|
4737
|
+
type: {
|
|
4738
|
+
type: String,
|
|
4739
|
+
default: "button",
|
|
4740
|
+
validator: (e) => ["button", "submit"].includes(e)
|
|
4741
|
+
},
|
|
4742
|
+
isDisabled: {
|
|
4743
|
+
type: Boolean,
|
|
4744
|
+
default: !1
|
|
4745
|
+
}
|
|
4746
|
+
},
|
|
4747
|
+
computed: {
|
|
4748
|
+
hasColor() {
|
|
4749
|
+
return A(this.color);
|
|
4750
|
+
},
|
|
4751
|
+
hasIcon() {
|
|
4752
|
+
return Z(this.icon);
|
|
4753
|
+
},
|
|
4754
|
+
isLink() {
|
|
4755
|
+
return typeof this.href == "string" && this.href !== "" && !this.isDisabled;
|
|
4756
|
+
},
|
|
4757
|
+
buttonType() {
|
|
4758
|
+
return this.type === "submit" ? "submit" : "button";
|
|
4759
|
+
}
|
|
4760
|
+
}
|
|
4761
|
+
}, Ua = ["href"], Wa = ["textContent"], Ga = ["type", "disabled"], Ka = ["textContent"];
|
|
4762
|
+
function qa(e, t, o, s, c, l) {
|
|
4763
|
+
let u = g("action-icon");
|
|
4764
|
+
return l.isLink ? (p(), i("a", {
|
|
4765
|
+
key: 0,
|
|
4766
|
+
href: o.href,
|
|
4767
|
+
class: d(["bb-dashboard-ui bb:relative bb:inline-flex bb:items-center bb:justify-center bb:whitespace-nowrap bb:gap-2 bb:px-4 bb:py-2 bb:border bb:rounded-md bb:shadow-xs bb:text-sm bb:font-medium bb:cursor-pointer bb:focus:focus-ring", l.hasColor ? [e.colorClass(o.color, "button"), e.colorClass(o.color, "buttonHover")] : "bb:bg-white bb:border-gray-300 bb:text-gray-700 bb:hover:bg-gray-50"]),
|
|
4768
|
+
onClick: t[0] ||= (t) => e.followLink(t, o.href)
|
|
4769
|
+
}, [l.hasIcon ? (p(), n(u, {
|
|
4770
|
+
key: 0,
|
|
4771
|
+
name: o.icon
|
|
4772
|
+
}, null, 8, ["name"])) : r("", !0), a("span", {
|
|
4773
|
+
class: "bb:pointer-events-none bb:cursor-default",
|
|
4774
|
+
textContent: y(o.label)
|
|
4775
|
+
}, null, 8, Wa)], 10, Ua)) : (p(), i("button", {
|
|
4776
|
+
key: 1,
|
|
4777
|
+
type: l.buttonType,
|
|
4778
|
+
disabled: o.isDisabled,
|
|
4779
|
+
class: d(["bb-dashboard-ui bb:relative bb:inline-flex bb:items-center bb:justify-center bb:whitespace-nowrap bb:gap-2 bb:px-4 bb:py-2 bb:border bb:rounded-md bb:shadow-xs bb:text-sm bb:font-medium bb:focus:focus-ring", [
|
|
4780
|
+
l.hasColor ? e.colorClass(o.color, "button") : "bb:bg-white bb:border-gray-300 bb:text-gray-700",
|
|
4781
|
+
o.isDisabled ? "bb:opacity-50 bb:cursor-not-allowed" : "bb:cursor-pointer",
|
|
4782
|
+
o.isDisabled ? "" : l.hasColor ? e.colorClass(o.color, "buttonHover") : "bb:hover:bg-gray-50"
|
|
4783
|
+
]]),
|
|
4784
|
+
onClick: t[1] ||= (t) => e.$emit("click", t)
|
|
4785
|
+
}, [l.hasIcon ? (p(), n(u, {
|
|
4786
|
+
key: 0,
|
|
4787
|
+
name: o.icon
|
|
4788
|
+
}, null, 8, ["name"])) : r("", !0), a("span", {
|
|
4789
|
+
class: "bb:pointer-events-none bb:cursor-default",
|
|
4790
|
+
textContent: y(o.label)
|
|
4791
|
+
}, null, 8, Ka)], 10, Ga));
|
|
4792
|
+
}
|
|
4793
|
+
var Ja = /*#__PURE__*/ M(Ha, [["render", qa]]), Ya = {}, Xa = {
|
|
4794
|
+
class: "bb:w-4 bb:h-4",
|
|
4795
|
+
fill: "none",
|
|
4796
|
+
stroke: "currentColor",
|
|
4797
|
+
"stroke-width": "2",
|
|
4798
|
+
"stroke-linecap": "round",
|
|
4799
|
+
viewBox: "0 0 24 24",
|
|
4800
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4801
|
+
"aria-hidden": "true"
|
|
4802
|
+
};
|
|
4803
|
+
function Za(e, t, n, r, o, s) {
|
|
4804
|
+
return p(), i("svg", Xa, [...t[0] ||= [
|
|
4805
|
+
a("circle", {
|
|
4806
|
+
cx: "12",
|
|
4807
|
+
cy: "12",
|
|
4808
|
+
r: "9"
|
|
4809
|
+
}, null, -1),
|
|
4810
|
+
a("line", {
|
|
4811
|
+
class: "bb:origin-center bb:animate-[spin_12s_linear_infinite] bb:motion-reduce:animate-none",
|
|
4812
|
+
x1: "12",
|
|
4813
|
+
y1: "12",
|
|
4814
|
+
x2: "15",
|
|
4815
|
+
y2: "12"
|
|
4816
|
+
}, null, -1),
|
|
4817
|
+
a("line", {
|
|
4818
|
+
class: "bb:origin-center bb:animate-spin bb:motion-reduce:animate-none",
|
|
4819
|
+
x1: "12",
|
|
4820
|
+
y1: "12",
|
|
4821
|
+
x2: "12",
|
|
4822
|
+
y2: "6.5"
|
|
4823
|
+
}, null, -1)
|
|
4824
|
+
]]);
|
|
4825
|
+
}
|
|
4826
|
+
//#endregion
|
|
4827
|
+
//#region src/components/ActionPill.vue
|
|
4828
|
+
var Qa = {
|
|
4412
4829
|
components: {
|
|
4413
|
-
"clock-icon":
|
|
4414
|
-
"
|
|
4415
|
-
"refresh-icon": Ca
|
|
4830
|
+
"clock-icon": /* @__PURE__ */ M(Ya, [["render", Za]]),
|
|
4831
|
+
"action-icon": Va
|
|
4416
4832
|
},
|
|
4417
|
-
mixins: [
|
|
4833
|
+
mixins: [j],
|
|
4418
4834
|
emits: ["click"],
|
|
4419
4835
|
props: {
|
|
4420
4836
|
title: {
|
|
@@ -4424,12 +4840,12 @@ var Ca = /*#__PURE__*/ k(ba, [["render", Sa]]), wa = ["download", "refresh"], Ta
|
|
|
4424
4840
|
icon: {
|
|
4425
4841
|
type: String,
|
|
4426
4842
|
required: !0,
|
|
4427
|
-
validator:
|
|
4843
|
+
validator: Z
|
|
4428
4844
|
},
|
|
4429
4845
|
color: {
|
|
4430
4846
|
type: String,
|
|
4431
|
-
default: "purple",
|
|
4432
|
-
validator:
|
|
4847
|
+
default: "purple-pale",
|
|
4848
|
+
validator: A
|
|
4433
4849
|
},
|
|
4434
4850
|
isLoading: {
|
|
4435
4851
|
type: Boolean,
|
|
@@ -4440,20 +4856,25 @@ var Ca = /*#__PURE__*/ k(ba, [["render", Sa]]), wa = ["download", "refresh"], Ta
|
|
|
4440
4856
|
default: null
|
|
4441
4857
|
}
|
|
4442
4858
|
},
|
|
4443
|
-
computed: {
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4859
|
+
computed: {
|
|
4860
|
+
hasIcon() {
|
|
4861
|
+
return Z(this.icon);
|
|
4862
|
+
},
|
|
4863
|
+
label() {
|
|
4864
|
+
let e = this.isLoading && typeof this.loadingText == "string" && this.loadingText !== "" ? this.loadingText : this.title;
|
|
4865
|
+
return typeof e == "string" ? e : "";
|
|
4866
|
+
}
|
|
4867
|
+
}
|
|
4868
|
+
}, $a = [
|
|
4448
4869
|
"title",
|
|
4449
4870
|
"disabled",
|
|
4450
4871
|
"aria-busy"
|
|
4451
|
-
],
|
|
4452
|
-
function
|
|
4453
|
-
let
|
|
4454
|
-
return
|
|
4872
|
+
], eo = ["textContent"];
|
|
4873
|
+
function to(e, t, o, s, c, l) {
|
|
4874
|
+
let u = g("clock-icon"), f = g("action-icon");
|
|
4875
|
+
return p(), i("button", {
|
|
4455
4876
|
type: "button",
|
|
4456
|
-
class:
|
|
4877
|
+
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
4878
|
e.colorClass(o.color, "pill"),
|
|
4458
4879
|
o.isLoading ? "bb:opacity-60 bb:cursor-not-allowed" : "bb:cursor-pointer",
|
|
4459
4880
|
o.isLoading ? "" : e.colorClass(o.color, "pillHover")
|
|
@@ -4462,31 +4883,28 @@ function Oa(e, t, o, s, c, l) {
|
|
|
4462
4883
|
disabled: o.isLoading,
|
|
4463
4884
|
"aria-busy": o.isLoading ? "true" : null,
|
|
4464
4885
|
onClick: t[0] ||= (t) => e.$emit("click")
|
|
4465
|
-
}, [o.isLoading ? (
|
|
4886
|
+
}, [o.isLoading ? (p(), n(u, {
|
|
4466
4887
|
key: 0,
|
|
4467
4888
|
class: "bb:pointer-events-none bb:cursor-default"
|
|
4468
|
-
})) :
|
|
4889
|
+
})) : l.hasIcon ? (p(), n(f, {
|
|
4469
4890
|
key: 1,
|
|
4470
|
-
|
|
4471
|
-
})) :
|
|
4472
|
-
key: 2,
|
|
4473
|
-
class: "bb:pointer-events-none bb:cursor-default"
|
|
4474
|
-
})) : r("", !0), a("span", {
|
|
4891
|
+
name: o.icon
|
|
4892
|
+
}, null, 8, ["name"])) : r("", !0), a("span", {
|
|
4475
4893
|
class: "bb:ml-1 bb:pointer-events-none bb:cursor-default",
|
|
4476
|
-
textContent:
|
|
4477
|
-
}, null, 8,
|
|
4894
|
+
textContent: y(l.label)
|
|
4895
|
+
}, null, 8, eo)], 10, $a);
|
|
4478
4896
|
}
|
|
4479
|
-
var
|
|
4480
|
-
function
|
|
4897
|
+
var no = /*#__PURE__*/ M(Qa, [["render", to]]), ro = "a[href], button:not(:disabled)";
|
|
4898
|
+
function io(e, t) {
|
|
4481
4899
|
let n = document.activeElement;
|
|
4482
|
-
(e.querySelector("[data-dialog-focus]") ?? e.querySelector(
|
|
4900
|
+
(e.querySelector("[data-dialog-focus]") ?? e.querySelector(ro))?.focus();
|
|
4483
4901
|
let r = (n) => {
|
|
4484
4902
|
if (n.key === "Escape") {
|
|
4485
4903
|
t();
|
|
4486
4904
|
return;
|
|
4487
4905
|
}
|
|
4488
4906
|
if (n.key !== "Tab") return;
|
|
4489
|
-
let r = [...e.querySelectorAll(
|
|
4907
|
+
let r = [...e.querySelectorAll(ro)];
|
|
4490
4908
|
if (r.length === 0) return;
|
|
4491
4909
|
n.preventDefault();
|
|
4492
4910
|
let i = n.shiftKey ? -1 : 1, a = r.indexOf(document.activeElement);
|
|
@@ -4503,7 +4921,7 @@ function ja(e, t) {
|
|
|
4503
4921
|
}
|
|
4504
4922
|
//#endregion
|
|
4505
4923
|
//#region src/components/Modal.vue
|
|
4506
|
-
var
|
|
4924
|
+
var ao = {
|
|
4507
4925
|
emits: ["escape"],
|
|
4508
4926
|
props: {
|
|
4509
4927
|
isOpen: {
|
|
@@ -4537,17 +4955,17 @@ var Ma = {
|
|
|
4537
4955
|
methods: {
|
|
4538
4956
|
holdFocus() {
|
|
4539
4957
|
this.focusFrame === null && this.releaseHeldFocus === null && (this.focusFrame = requestAnimationFrame(() => {
|
|
4540
|
-
this.focusFrame = null, this.releaseHeldFocus =
|
|
4958
|
+
this.focusFrame = null, this.releaseHeldFocus = io(this.$refs.panel, () => this.$emit("escape"));
|
|
4541
4959
|
}));
|
|
4542
4960
|
},
|
|
4543
4961
|
releaseFocus() {
|
|
4544
4962
|
this.focusFrame !== null && (cancelAnimationFrame(this.focusFrame), this.focusFrame = null), this.releaseHeldFocus !== null && (this.releaseHeldFocus(), this.releaseHeldFocus = null);
|
|
4545
4963
|
}
|
|
4546
4964
|
}
|
|
4547
|
-
},
|
|
4548
|
-
function
|
|
4549
|
-
return
|
|
4550
|
-
|
|
4965
|
+
}, oo = { class: "bb:min-h-screen bb:text-center" }, so = { class: "bb:fixed bb:inset-0 bb:transition-opacity" }, co = ["aria-labelledby"];
|
|
4966
|
+
function lo(e, n, r, o, s, l) {
|
|
4967
|
+
return p(), i("div", { class: d(["bb-dashboard-ui bb:fixed bb:inset-0 bb:overflow-y-auto bb:z-20", { "bb:pointer-events-none": !r.isOpen }]) }, [a("div", oo, [
|
|
4968
|
+
c(t, {
|
|
4551
4969
|
"enter-active-class": "bb:ease-out bb:duration-300",
|
|
4552
4970
|
"enter-from-class": "bb:opacity-0",
|
|
4553
4971
|
"enter-to-class": "bb:opacity-100",
|
|
@@ -4555,11 +4973,11 @@ function Ia(e, n, r, o, c, l) {
|
|
|
4555
4973
|
"leave-from-class": "bb:opacity-100",
|
|
4556
4974
|
"leave-to-class": "bb:opacity-0"
|
|
4557
4975
|
}, {
|
|
4558
|
-
default:
|
|
4976
|
+
default: C(() => [w(a("div", so, [...n[0] ||= [a("div", { class: "bb:absolute bb:inset-0 bb:bg-gray-500 bb:opacity-75" }, null, -1)]], 512), [[S, r.isOpen]])]),
|
|
4559
4977
|
_: 1
|
|
4560
4978
|
}),
|
|
4561
4979
|
n[1] ||= a("span", { class: "bb:inline-block bb:align-middle bb:h-screen" }, null, -1),
|
|
4562
|
-
|
|
4980
|
+
c(t, {
|
|
4563
4981
|
"enter-active-class": "bb:ease-out bb:duration-300",
|
|
4564
4982
|
"enter-from-class": "bb:opacity-0 bb:scale-95",
|
|
4565
4983
|
"enter-to-class": "bb:opacity-100 bb:scale-100",
|
|
@@ -4567,18 +4985,18 @@ function Ia(e, n, r, o, c, l) {
|
|
|
4567
4985
|
"leave-from-class": "bb:opacity-100 bb:scale-100",
|
|
4568
4986
|
"leave-to-class": "bb:opacity-0 bb:scale-95"
|
|
4569
4987
|
}, {
|
|
4570
|
-
default:
|
|
4988
|
+
default: C(() => [w(a("div", {
|
|
4571
4989
|
ref: "panel",
|
|
4572
4990
|
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
4991
|
role: "dialog",
|
|
4574
4992
|
"aria-modal": "true",
|
|
4575
4993
|
"aria-labelledby": r.headingId
|
|
4576
|
-
}, [
|
|
4994
|
+
}, [h(e.$slots, "default")], 8, co), [[S, r.isOpen]])]),
|
|
4577
4995
|
_: 3
|
|
4578
4996
|
})
|
|
4579
4997
|
])], 2);
|
|
4580
4998
|
}
|
|
4581
|
-
var
|
|
4999
|
+
var uo = /*#__PURE__*/ M(ao, [["render", lo]]), fo = {}, po = {
|
|
4582
5000
|
class: "bb:h-7 bb:w-7 bb:text-red-600",
|
|
4583
5001
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4584
5002
|
fill: "none",
|
|
@@ -4586,35 +5004,36 @@ var La = /*#__PURE__*/ k(Ma, [["render", Ia]]), Ra = {}, za = {
|
|
|
4586
5004
|
stroke: "currentColor",
|
|
4587
5005
|
"aria-hidden": "true"
|
|
4588
5006
|
};
|
|
4589
|
-
function
|
|
4590
|
-
return
|
|
5007
|
+
function mo(e, t, n, r, o, s) {
|
|
5008
|
+
return p(), i("svg", po, [...t[0] ||= [a("path", {
|
|
4591
5009
|
"stroke-linecap": "round",
|
|
4592
5010
|
"stroke-linejoin": "round",
|
|
4593
5011
|
"stroke-width": "2",
|
|
4594
5012
|
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
5013
|
}, null, -1)]]);
|
|
4596
5014
|
}
|
|
4597
|
-
var
|
|
5015
|
+
var ho = /*#__PURE__*/ M(fo, [["render", mo]]), go = {}, _o = {
|
|
4598
5016
|
class: "bb:h-7 bb:w-7 bb:text-yellow-400",
|
|
4599
5017
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4600
5018
|
viewBox: "0 0 20 20",
|
|
4601
5019
|
fill: "currentColor",
|
|
4602
5020
|
"aria-hidden": "true"
|
|
4603
5021
|
};
|
|
4604
|
-
function
|
|
4605
|
-
return
|
|
5022
|
+
function vo(e, t, n, r, o, s) {
|
|
5023
|
+
return p(), i("svg", _o, [...t[0] ||= [a("path", {
|
|
4606
5024
|
"fill-rule": "evenodd",
|
|
4607
5025
|
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
5026
|
"clip-rule": "evenodd"
|
|
4609
5027
|
}, null, -1)]]);
|
|
4610
5028
|
}
|
|
4611
|
-
var
|
|
5029
|
+
var yo = /*#__PURE__*/ M(go, [["render", vo]]), bo = {
|
|
4612
5030
|
components: {
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
5031
|
+
ActionButton: Ja,
|
|
5032
|
+
Modal: uo,
|
|
5033
|
+
Dangerous: ho,
|
|
5034
|
+
Warning: yo
|
|
4616
5035
|
},
|
|
4617
|
-
mixins: [
|
|
5036
|
+
mixins: [F],
|
|
4618
5037
|
emits: ["actionConfirmed", "actionCanceled"],
|
|
4619
5038
|
props: {
|
|
4620
5039
|
isOpen: {
|
|
@@ -4644,7 +5063,7 @@ var Wa = /*#__PURE__*/ k(Va, [["render", Ua]]), Ga = {
|
|
|
4644
5063
|
}
|
|
4645
5064
|
},
|
|
4646
5065
|
setup() {
|
|
4647
|
-
return { headingId:
|
|
5066
|
+
return { headingId: b() };
|
|
4648
5067
|
},
|
|
4649
5068
|
computed: {
|
|
4650
5069
|
isDangerous() {
|
|
@@ -4652,70 +5071,67 @@ var Wa = /*#__PURE__*/ k(Va, [["render", Ua]]), Ga = {
|
|
|
4652
5071
|
},
|
|
4653
5072
|
isWarning() {
|
|
4654
5073
|
return this.type === "warning";
|
|
5074
|
+
},
|
|
5075
|
+
actionColor() {
|
|
5076
|
+
return this.isDangerous ? "red-solid" : this.isWarning ? "yellow-solid" : null;
|
|
4655
5077
|
}
|
|
4656
5078
|
}
|
|
4657
|
-
},
|
|
4658
|
-
function
|
|
4659
|
-
let
|
|
4660
|
-
return
|
|
5079
|
+
}, xo = { class: "bb:flex bb:bg-white bb:rounded-t-lg bb:p-6 bb:pb-4" }, So = { class: "bb:flex bb:items-start" }, Co = { class: "bb:ml-4 bb:text-left" }, wo = ["id"], To = { class: "bb:mt-2" }, Eo = { class: "bb:text-sm bb:text-gray-500" }, Do = { class: "bb:bg-gray-50 bb:rounded-b-lg bb:px-6 bb:py-3 bb:flex bb:flex-row-reverse" };
|
|
5080
|
+
function Oo(e, t, i, o, s, l) {
|
|
5081
|
+
let u = g("warning"), f = g("dangerous"), m = g("action-button"), h = g("modal");
|
|
5082
|
+
return p(), n(h, {
|
|
4661
5083
|
"is-open": i.isOpen,
|
|
4662
5084
|
"heading-id": o.headingId,
|
|
4663
5085
|
onEscape: t[2] ||= (t) => e.$emit("actionCanceled")
|
|
4664
5086
|
}, {
|
|
4665
|
-
default:
|
|
4666
|
-
"bb:bg-red-100":
|
|
4667
|
-
"bb:bg-yellow-100":
|
|
4668
|
-
}]) }, [
|
|
5087
|
+
default: C(() => [a("div", xo, [a("div", So, [a("div", { class: d(["bb:shrink-0 bb:flex bb:items-center bb:justify-center bb:h-10 bb:w-10 bb:rounded-full", {
|
|
5088
|
+
"bb:bg-red-100": l.isDangerous,
|
|
5089
|
+
"bb:bg-yellow-100": l.isWarning
|
|
5090
|
+
}]) }, [l.isWarning ? (p(), n(u, { key: 0 })) : r("", !0), l.isDangerous ? (p(), n(f, { key: 1 })) : r("", !0)], 2), a("div", Co, [a("h3", {
|
|
4669
5091
|
class: "bb:text-lg bb:leading-6 bb:font-medium bb:text-gray-900",
|
|
4670
5092
|
id: o.headingId
|
|
4671
|
-
},
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
type: "button",
|
|
4680
|
-
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",
|
|
5093
|
+
}, y(i.confirmationHeading), 9, wo), a("div", To, [a("p", Eo, y(i.confirmationText), 1)])])])]), a("div", Do, [c(m, {
|
|
5094
|
+
class: "bb:ml-3",
|
|
5095
|
+
label: i.actionButtonText,
|
|
5096
|
+
color: l.actionColor,
|
|
5097
|
+
onClick: t[0] ||= E((t) => e.$emit("actionConfirmed"), ["prevent"])
|
|
5098
|
+
}, null, 8, ["label", "color"]), c(m, {
|
|
5099
|
+
class: "bb:ml-3",
|
|
5100
|
+
label: i.cancelButtonText ?? e.texts.cancel,
|
|
4681
5101
|
"data-dialog-focus": "",
|
|
4682
|
-
onClick: t[1] ||=
|
|
4683
|
-
},
|
|
5102
|
+
onClick: t[1] ||= E((t) => e.$emit("actionCanceled"), ["prevent"])
|
|
5103
|
+
}, null, 8, ["label"])])]),
|
|
4684
5104
|
_: 1
|
|
4685
5105
|
}, 8, ["is-open", "heading-id"]);
|
|
4686
5106
|
}
|
|
4687
|
-
var
|
|
5107
|
+
var ko = /*#__PURE__*/ M(bo, [["render", Oo]]);
|
|
4688
5108
|
//#endregion
|
|
4689
5109
|
//#region src/menuItems.js
|
|
4690
|
-
function
|
|
4691
|
-
if (typeof e != "object" || !e || typeof e.label != "string" || e.label === "" || e.color !== void 0 && !
|
|
5110
|
+
function Ao(e) {
|
|
5111
|
+
if (typeof e != "object" || !e || typeof e.label != "string" || e.label === "" || e.color !== void 0 && !A(e.color) || e.icon !== void 0 && !Z(e.icon)) return !1;
|
|
4692
5112
|
let t = typeof e.href == "string" && e.href !== "" && e.onSelect === void 0, n = typeof e.onSelect == "function" && e.href === void 0;
|
|
4693
5113
|
return t || n;
|
|
4694
5114
|
}
|
|
4695
|
-
function
|
|
5115
|
+
function jo(e) {
|
|
4696
5116
|
return Array.isArray(e) ? e.filter((e) => typeof e == "object" && !!e) : [];
|
|
4697
5117
|
}
|
|
4698
|
-
function
|
|
5118
|
+
function Mo(e) {
|
|
4699
5119
|
return typeof e.href == "string" && e.href !== "";
|
|
4700
5120
|
}
|
|
4701
|
-
function
|
|
4702
|
-
return
|
|
5121
|
+
function No(e) {
|
|
5122
|
+
return A(e.color) ? e.color : null;
|
|
4703
5123
|
}
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
function ao(e) {
|
|
4707
|
-
let t = e.currentTarget?.target ?? "";
|
|
4708
|
-
return !(e.defaultPrevented || e.target?.isContentEditable === !0 || e.altKey || e.ctrlKey || e.metaKey || e.shiftKey || t !== "" && t !== "_self" || e.button !== 0);
|
|
5124
|
+
function Po(e) {
|
|
5125
|
+
return Z(e.icon) ? e.icon : null;
|
|
4709
5126
|
}
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
},
|
|
4717
|
-
|
|
4718
|
-
mixins: [Z, O],
|
|
5127
|
+
//#endregion
|
|
5128
|
+
//#region src/components/PopoverMenu.vue
|
|
5129
|
+
var Fo = {
|
|
5130
|
+
components: {
|
|
5131
|
+
ActionIcon: Va,
|
|
5132
|
+
PopoverPanel: V
|
|
5133
|
+
},
|
|
5134
|
+
mixins: [Q, j],
|
|
4719
5135
|
emits: ["update:modelValue"],
|
|
4720
5136
|
props: {
|
|
4721
5137
|
actions: { default: () => [] },
|
|
@@ -4726,18 +5142,24 @@ var Z = {
|
|
|
4726
5142
|
},
|
|
4727
5143
|
computed: {
|
|
4728
5144
|
actionItems() {
|
|
4729
|
-
return
|
|
5145
|
+
return jo(this.actions);
|
|
4730
5146
|
},
|
|
4731
5147
|
hasActions() {
|
|
4732
5148
|
return this.actionItems.length > 0;
|
|
5149
|
+
},
|
|
5150
|
+
hasIcons() {
|
|
5151
|
+
return this.actionItems.some((e) => Po(e) !== null);
|
|
4733
5152
|
}
|
|
4734
5153
|
},
|
|
4735
5154
|
methods: {
|
|
4736
5155
|
color(e) {
|
|
4737
|
-
return
|
|
5156
|
+
return No(e);
|
|
5157
|
+
},
|
|
5158
|
+
icon(e) {
|
|
5159
|
+
return Po(e);
|
|
4738
5160
|
},
|
|
4739
5161
|
isLink(e) {
|
|
4740
|
-
return
|
|
5162
|
+
return Mo(e);
|
|
4741
5163
|
},
|
|
4742
5164
|
linkClicked(e, t) {
|
|
4743
5165
|
e.currentTarget.focus({ preventScroll: !0 }), this.followLink(e, t);
|
|
@@ -4746,60 +5168,69 @@ var Z = {
|
|
|
4746
5168
|
if (t.currentTarget.focus({ preventScroll: !0 }), typeof e.onSelect == "function") return e.onSelect();
|
|
4747
5169
|
}
|
|
4748
5170
|
}
|
|
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,
|
|
5171
|
+
}, Io = ["href", "onClick"], Lo = ["textContent"], Ro = ["onClick"], zo = ["textContent"];
|
|
5172
|
+
function Bo(t, o, s, c, l, u) {
|
|
5173
|
+
let f = g("action-icon"), _ = g("popover-panel");
|
|
5174
|
+
return p(), n(_, {
|
|
5175
|
+
"model-value": s.modelValue,
|
|
5176
|
+
"has-content": u.hasActions,
|
|
4759
5177
|
align: "end",
|
|
4760
|
-
"
|
|
5178
|
+
shift: "",
|
|
4761
5179
|
arrows: "",
|
|
4762
5180
|
"close-on-click": "",
|
|
4763
5181
|
"return-focus": "",
|
|
4764
|
-
"panel-class": "bb:w-56 bb:rounded-md bb:shadow-lg bb:bg-white bb:ring-1 bb:ring-black/5",
|
|
5182
|
+
"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
5183
|
"panel-role": "menu",
|
|
4766
|
-
"onUpdate:modelValue":
|
|
5184
|
+
"onUpdate:modelValue": o[0] ||= (e) => t.$emit("update:modelValue", e)
|
|
4767
5185
|
}, {
|
|
4768
|
-
trigger:
|
|
5186
|
+
trigger: C((e) => [h(t.$slots, "trigger", {
|
|
4769
5187
|
id: e.id,
|
|
4770
5188
|
popovertarget: e.popovertarget
|
|
4771
5189
|
})]),
|
|
4772
|
-
default:
|
|
5190
|
+
default: C(() => [(p(!0), i(e, null, m(u.actionItems, (o, s) => (p(), i(e, { key: s }, [u.isLink(o) ? (p(), i("a", {
|
|
4773
5191
|
key: 0,
|
|
4774
|
-
href:
|
|
5192
|
+
href: o.href,
|
|
4775
5193
|
role: "menuitem",
|
|
4776
|
-
class:
|
|
4777
|
-
onClick: (e) =>
|
|
4778
|
-
|
|
4779
|
-
|
|
5194
|
+
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")]),
|
|
5195
|
+
onClick: (e) => u.linkClicked(e, o.href)
|
|
5196
|
+
}, [u.hasIcons ? (p(), n(f, {
|
|
5197
|
+
key: 0,
|
|
5198
|
+
name: u.icon(o)
|
|
5199
|
+
}, null, 8, ["name"])) : r("", !0), a("span", {
|
|
5200
|
+
class: "bb:min-w-0 bb:truncate bb:pointer-events-none bb:cursor-default",
|
|
5201
|
+
textContent: y(o.label)
|
|
5202
|
+
}, null, 8, Lo)], 10, Io)) : (p(), i("button", {
|
|
4780
5203
|
key: 1,
|
|
4781
5204
|
type: "button",
|
|
4782
5205
|
role: "menuitem",
|
|
4783
|
-
class:
|
|
4784
|
-
onClick: (e) =>
|
|
4785
|
-
|
|
4786
|
-
|
|
5206
|
+
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")]),
|
|
5207
|
+
onClick: (e) => u.select(o, e)
|
|
5208
|
+
}, [u.hasIcons ? (p(), n(f, {
|
|
5209
|
+
key: 0,
|
|
5210
|
+
name: u.icon(o)
|
|
5211
|
+
}, null, 8, ["name"])) : r("", !0), a("span", {
|
|
5212
|
+
class: "bb:min-w-0 bb:truncate bb:pointer-events-none bb:cursor-default",
|
|
5213
|
+
textContent: y(o.label)
|
|
5214
|
+
}, null, 8, zo)], 10, Ro))], 64))), 128))]),
|
|
4787
5215
|
_: 3
|
|
4788
5216
|
}, 8, ["model-value", "has-content"]);
|
|
4789
5217
|
}
|
|
4790
|
-
var
|
|
4791
|
-
components: {
|
|
5218
|
+
var Vo = /*#__PURE__*/ M(Fo, [["render", Bo]]), Ho = {
|
|
5219
|
+
components: {
|
|
5220
|
+
ActionButton: Ja,
|
|
5221
|
+
PopoverMenu: Vo
|
|
5222
|
+
},
|
|
4792
5223
|
mixins: [
|
|
4793
|
-
|
|
4794
|
-
|
|
4795
|
-
|
|
5224
|
+
F,
|
|
5225
|
+
Q,
|
|
5226
|
+
j
|
|
4796
5227
|
],
|
|
4797
5228
|
emits: ["update:modelValue"],
|
|
4798
5229
|
props: {
|
|
4799
5230
|
actions: {
|
|
4800
5231
|
type: Array,
|
|
4801
5232
|
default: () => [],
|
|
4802
|
-
validator: (e) => e.every(
|
|
5233
|
+
validator: (e) => e.every(Ao)
|
|
4803
5234
|
},
|
|
4804
5235
|
modelValue: {
|
|
4805
5236
|
type: Boolean,
|
|
@@ -4811,7 +5242,7 @@ var uo = /*#__PURE__*/ k(oo, [["render", lo]]), fo = {
|
|
|
4811
5242
|
},
|
|
4812
5243
|
computed: {
|
|
4813
5244
|
items() {
|
|
4814
|
-
return
|
|
5245
|
+
return jo(this.actions);
|
|
4815
5246
|
},
|
|
4816
5247
|
hasActions() {
|
|
4817
5248
|
return this.items.length > 0;
|
|
@@ -4820,7 +5251,10 @@ var uo = /*#__PURE__*/ k(oo, [["render", lo]]), fo = {
|
|
|
4820
5251
|
return this.items[0];
|
|
4821
5252
|
},
|
|
4822
5253
|
mainColor() {
|
|
4823
|
-
return this.hasActions ?
|
|
5254
|
+
return this.hasActions ? No(this.mainAction) : null;
|
|
5255
|
+
},
|
|
5256
|
+
mainIcon() {
|
|
5257
|
+
return this.hasActions ? Po(this.mainAction) : null;
|
|
4824
5258
|
},
|
|
4825
5259
|
menuActions() {
|
|
4826
5260
|
return this.items.slice(1);
|
|
@@ -4842,7 +5276,7 @@ var uo = /*#__PURE__*/ k(oo, [["render", lo]]), fo = {
|
|
|
4842
5276
|
},
|
|
4843
5277
|
methods: {
|
|
4844
5278
|
isLink(e) {
|
|
4845
|
-
return
|
|
5279
|
+
return Mo(e);
|
|
4846
5280
|
},
|
|
4847
5281
|
select(e) {
|
|
4848
5282
|
if (typeof e.onSelect == "function") return e.onSelect();
|
|
@@ -4851,42 +5285,37 @@ var uo = /*#__PURE__*/ k(oo, [["render", lo]]), fo = {
|
|
|
4851
5285
|
this.menuIsOpen = e, this.$emit("update:modelValue", e);
|
|
4852
5286
|
}
|
|
4853
5287
|
}
|
|
4854
|
-
},
|
|
5288
|
+
}, Uo = {
|
|
4855
5289
|
key: 0,
|
|
4856
5290
|
class: "bb-dashboard-ui bb:relative bb:inline-flex bb:shadow-xs bb:rounded-md"
|
|
4857
|
-
},
|
|
4858
|
-
function
|
|
4859
|
-
let
|
|
4860
|
-
return l.hasActions ? (
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
class
|
|
4873
|
-
|
|
4874
|
-
"bb:rounded-md": !l.hasMenu
|
|
4875
|
-
}, l.mainColor === null ? "bb:bg-white bb:border-gray-300 bb:text-gray-700 bb:hover:bg-gray-50" : e.colorClass(l.mainColor, "button")]]),
|
|
4876
|
-
onClick: t[1] ||= (e) => l.select(l.mainAction),
|
|
4877
|
-
textContent: _(l.mainAction.label)
|
|
4878
|
-
}, null, 10, ho)), s(d, {
|
|
5291
|
+
}, Wo = ["id", "popovertarget"], Go = { class: "bb:sr-only bb:pointer-events-none bb:cursor-default" };
|
|
5292
|
+
function Ko(e, t, n, o, s, l) {
|
|
5293
|
+
let u = g("action-button"), f = g("popover-menu");
|
|
5294
|
+
return l.hasActions ? (p(), i("span", Uo, [c(u, {
|
|
5295
|
+
label: l.mainAction.label,
|
|
5296
|
+
color: l.mainColor,
|
|
5297
|
+
icon: l.mainIcon,
|
|
5298
|
+
href: l.isLink(l.mainAction) ? l.mainAction.href : null,
|
|
5299
|
+
class: d(["bb:shadow-none! bb:focus:z-10", { "bb:rounded-r-none!": l.hasMenu }]),
|
|
5300
|
+
onClick: t[0] ||= (e) => l.select(l.mainAction)
|
|
5301
|
+
}, null, 8, [
|
|
5302
|
+
"label",
|
|
5303
|
+
"color",
|
|
5304
|
+
"icon",
|
|
5305
|
+
"href",
|
|
5306
|
+
"class"
|
|
5307
|
+
]), c(f, {
|
|
4879
5308
|
class: "bb:-ml-px bb:flex",
|
|
4880
5309
|
actions: l.menuActions,
|
|
4881
5310
|
"model-value": n.modelValue,
|
|
4882
5311
|
"onUpdate:modelValue": l.onMenuToggle
|
|
4883
5312
|
}, {
|
|
4884
|
-
trigger:
|
|
5313
|
+
trigger: C((n) => [a("button", {
|
|
4885
5314
|
type: "button",
|
|
4886
5315
|
id: n.id,
|
|
4887
5316
|
popovertarget: n.popovertarget,
|
|
4888
|
-
class:
|
|
4889
|
-
}, [a("span",
|
|
5317
|
+
class: d(["bb:relative bb:inline-flex bb:items-center bb:px-2 bb:py-2 bb:rounded-r-md bb:border bb:text-sm bb:font-medium bb:focus:z-10 bb:focus:focus-ring", l.mainColor === null ? "bb:bg-white bb:border-gray-300 bb:text-gray-500 bb:hover:bg-gray-50" : [e.colorClass(l.mainColor, "button"), e.colorClass(l.mainColor, "buttonHover")]])
|
|
5318
|
+
}, [a("span", Go, y(e.texts.openMenu), 1), t[1] ||= a("svg", {
|
|
4890
5319
|
class: "bb:h-5 bb:w-5 bb:pointer-events-none bb:cursor-default",
|
|
4891
5320
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4892
5321
|
viewBox: "0 0 20 20",
|
|
@@ -4896,7 +5325,7 @@ function vo(e, t, n, o, c, l) {
|
|
|
4896
5325
|
"fill-rule": "evenodd",
|
|
4897
5326
|
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
5327
|
"clip-rule": "evenodd"
|
|
4899
|
-
})], -1)], 10,
|
|
5328
|
+
})], -1)], 10, Wo)]),
|
|
4900
5329
|
_: 1
|
|
4901
5330
|
}, 8, [
|
|
4902
5331
|
"actions",
|
|
@@ -4904,27 +5333,27 @@ function vo(e, t, n, o, c, l) {
|
|
|
4904
5333
|
"onUpdate:modelValue"
|
|
4905
5334
|
])])) : r("", !0);
|
|
4906
5335
|
}
|
|
4907
|
-
var
|
|
4908
|
-
components: { PopoverMenu:
|
|
4909
|
-
mixins: [
|
|
5336
|
+
var qo = /*#__PURE__*/ M(Ho, [["render", Ko]]), Jo = {
|
|
5337
|
+
components: { PopoverMenu: Vo },
|
|
5338
|
+
mixins: [F],
|
|
4910
5339
|
props: { actions: {
|
|
4911
5340
|
type: Array,
|
|
4912
5341
|
default: () => [],
|
|
4913
|
-
validator: (e) => e.every(
|
|
5342
|
+
validator: (e) => e.every(Ao)
|
|
4914
5343
|
} }
|
|
4915
|
-
},
|
|
4916
|
-
function
|
|
4917
|
-
let c =
|
|
4918
|
-
return
|
|
5344
|
+
}, Yo = ["id", "popovertarget"], Xo = { class: "bb:sr-only bb:pointer-events-none bb:cursor-default" };
|
|
5345
|
+
function Zo(e, t, r, i, o, s) {
|
|
5346
|
+
let c = g("popover-menu");
|
|
5347
|
+
return p(), n(c, {
|
|
4919
5348
|
class: "bb-dashboard-ui bb:inline-flex",
|
|
4920
5349
|
actions: r.actions
|
|
4921
5350
|
}, {
|
|
4922
|
-
trigger:
|
|
5351
|
+
trigger: C((n) => [a("button", {
|
|
4923
5352
|
type: "button",
|
|
4924
5353
|
id: n.id,
|
|
4925
5354
|
popovertarget: n.popovertarget,
|
|
4926
5355
|
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",
|
|
5356
|
+
}, [a("span", Xo, y(e.texts.openMenu), 1), t[0] ||= a("svg", {
|
|
4928
5357
|
class: "bb:h-6 bb:w-6 bb:pointer-events-none bb:cursor-default",
|
|
4929
5358
|
fill: "none",
|
|
4930
5359
|
viewBox: "0 0 24 24",
|
|
@@ -4935,48 +5364,48 @@ function Co(e, t, r, i, o, s) {
|
|
|
4935
5364
|
"stroke-linejoin": "round",
|
|
4936
5365
|
"stroke-width": "2",
|
|
4937
5366
|
d: "M4 6h16M4 12h16M4 18h16"
|
|
4938
|
-
})], -1)], 8,
|
|
5367
|
+
})], -1)], 8, Yo)]),
|
|
4939
5368
|
_: 1
|
|
4940
5369
|
}, 8, ["actions"]);
|
|
4941
5370
|
}
|
|
4942
|
-
var
|
|
5371
|
+
var Qo = /*#__PURE__*/ M(Jo, [["render", Zo]]), $o = {}, es = {
|
|
4943
5372
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4944
5373
|
viewBox: "0 0 20 20",
|
|
4945
5374
|
fill: "currentColor",
|
|
4946
5375
|
"aria-hidden": "true"
|
|
4947
5376
|
};
|
|
4948
|
-
function
|
|
4949
|
-
return
|
|
5377
|
+
function ts(e, t, n, r, o, s) {
|
|
5378
|
+
return p(), i("svg", es, [...t[0] ||= [a("path", {
|
|
4950
5379
|
"fill-rule": "evenodd",
|
|
4951
5380
|
"clip-rule": "evenodd",
|
|
4952
5381
|
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
5382
|
}, null, -1)]]);
|
|
4954
5383
|
}
|
|
4955
|
-
var
|
|
5384
|
+
var ns = /*#__PURE__*/ M($o, [["render", ts]]), rs = {}, is = {
|
|
4956
5385
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4957
5386
|
viewBox: "0 0 20 20",
|
|
4958
5387
|
fill: "currentColor",
|
|
4959
5388
|
"aria-hidden": "true"
|
|
4960
5389
|
};
|
|
4961
|
-
function
|
|
4962
|
-
return
|
|
5390
|
+
function as(e, t, n, r, o, s) {
|
|
5391
|
+
return p(), i("svg", is, [...t[0] ||= [a("path", {
|
|
4963
5392
|
"fill-rule": "evenodd",
|
|
4964
5393
|
"clip-rule": "evenodd",
|
|
4965
5394
|
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
5395
|
}, null, -1)]]);
|
|
4967
5396
|
}
|
|
4968
|
-
var
|
|
5397
|
+
var os = /*#__PURE__*/ M(rs, [["render", as]]);
|
|
4969
5398
|
//#endregion
|
|
4970
5399
|
//#region src/components/Pagination.vue
|
|
4971
|
-
function
|
|
5400
|
+
function ss(e) {
|
|
4972
5401
|
return typeof e == "string" && e !== "" ? e : null;
|
|
4973
5402
|
}
|
|
4974
|
-
var
|
|
5403
|
+
var cs = {
|
|
4975
5404
|
components: {
|
|
4976
|
-
ArrowNarrowLeft:
|
|
4977
|
-
ArrowNarrowRight:
|
|
5405
|
+
ArrowNarrowLeft: ns,
|
|
5406
|
+
ArrowNarrowRight: os
|
|
4978
5407
|
},
|
|
4979
|
-
mixins: [
|
|
5408
|
+
mixins: [F, Q],
|
|
4980
5409
|
props: {
|
|
4981
5410
|
links: {
|
|
4982
5411
|
type: Object,
|
|
@@ -5004,49 +5433,49 @@ var Po = {
|
|
|
5004
5433
|
return typeof this.from == "number" && typeof this.to == "number";
|
|
5005
5434
|
},
|
|
5006
5435
|
previousPageUrl() {
|
|
5007
|
-
return
|
|
5436
|
+
return ss(this.links?.prev);
|
|
5008
5437
|
},
|
|
5009
5438
|
nextPageUrl() {
|
|
5010
|
-
return
|
|
5439
|
+
return ss(this.links?.next);
|
|
5011
5440
|
}
|
|
5012
5441
|
}
|
|
5013
|
-
},
|
|
5442
|
+
}, ls = {
|
|
5014
5443
|
key: 0,
|
|
5015
5444
|
class: "bb-dashboard-ui bb:flex bb:items-center bb:justify-between"
|
|
5016
|
-
},
|
|
5445
|
+
}, us = { class: "bb:-mt-px bb:w-0 bb:flex-1 bb:flex" }, ds = ["href"], fs = {
|
|
5017
5446
|
key: 0,
|
|
5018
5447
|
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",
|
|
5448
|
+
}, ps = { class: "bb:font-medium bb:text-gray-900 bb:mx-1" }, ms = { class: "bb:font-medium bb:text-gray-900 bb:mx-1" }, hs = { class: "bb:-mt-px bb:w-0 bb:flex-1 bb:flex bb:justify-end" }, gs = ["href"];
|
|
5449
|
+
function _s(e, t, n, o, l, u) {
|
|
5450
|
+
let d = g("arrow-narrow-left"), f = g("arrow-narrow-right");
|
|
5451
|
+
return u.hasResults ? (p(), i("nav", ls, [
|
|
5452
|
+
a("div", us, [u.previousPageUrl === null ? r("", !0) : (p(), i("a", {
|
|
5024
5453
|
key: 0,
|
|
5025
5454
|
href: u.previousPageUrl,
|
|
5026
5455
|
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
5456
|
onClick: t[0] ||= (t) => e.followLink(t, u.previousPageUrl)
|
|
5028
|
-
}, [
|
|
5029
|
-
u.hasRange ? (
|
|
5030
|
-
|
|
5031
|
-
a("span",
|
|
5032
|
-
|
|
5033
|
-
a("span",
|
|
5034
|
-
|
|
5457
|
+
}, [c(d, { class: "bb:mr-3 bb:h-5 bb:w-5 bb:text-gray-400 bb:pointer-events-none bb:cursor-default" }), s(" " + y(e.texts.previousPage), 1)], 8, ds))]),
|
|
5458
|
+
u.hasRange ? (p(), i("div", fs, [
|
|
5459
|
+
s(y(e.texts.resultsBefore) + " ", 1),
|
|
5460
|
+
a("span", ps, y(u.from) + " - " + y(u.to), 1),
|
|
5461
|
+
s(" " + y(e.texts.resultsOf) + " ", 1),
|
|
5462
|
+
a("span", ms, y(u.total), 1),
|
|
5463
|
+
s(" " + y(e.texts.resultsAfter), 1)
|
|
5035
5464
|
])) : r("", !0),
|
|
5036
|
-
a("div",
|
|
5465
|
+
a("div", hs, [u.nextPageUrl === null ? r("", !0) : (p(), i("a", {
|
|
5037
5466
|
key: 0,
|
|
5038
5467
|
href: u.nextPageUrl,
|
|
5039
5468
|
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
5469
|
onClick: t[1] ||= (t) => e.followLink(t, u.nextPageUrl)
|
|
5041
|
-
}, [
|
|
5470
|
+
}, [s(y(e.texts.nextPage) + " ", 1), c(f, { class: "bb:ml-3 bb:h-5 bb:w-5 bb:text-gray-400 bb:pointer-events-none bb:cursor-default" })], 8, gs))])
|
|
5042
5471
|
])) : r("", !0);
|
|
5043
5472
|
}
|
|
5044
|
-
var
|
|
5473
|
+
var vs = /*#__PURE__*/ M(cs, [["render", _s]]), ys = [
|
|
5045
5474
|
"left",
|
|
5046
5475
|
"center",
|
|
5047
5476
|
"right"
|
|
5048
5477
|
];
|
|
5049
|
-
function
|
|
5478
|
+
function bs(e) {
|
|
5050
5479
|
if (typeof e != "object" || !e || typeof e.key != "string" || e.key === "") return null;
|
|
5051
5480
|
let t = e.key;
|
|
5052
5481
|
return {
|
|
@@ -5055,21 +5484,21 @@ function Ko(e) {
|
|
|
5055
5484
|
value: typeof e.value == "function" ? e.value : (e) => e?.[t],
|
|
5056
5485
|
secondary: typeof e.secondary == "function" ? e.secondary : null,
|
|
5057
5486
|
muted: e.muted === !0,
|
|
5058
|
-
align:
|
|
5487
|
+
align: ys.includes(e.align) ? e.align : "left",
|
|
5059
5488
|
wrap: e.wrap === !0,
|
|
5060
5489
|
narrow: e.narrow === !0,
|
|
5061
5490
|
visible: e.visible !== !1
|
|
5062
5491
|
};
|
|
5063
5492
|
}
|
|
5064
|
-
function
|
|
5493
|
+
function xs(e) {
|
|
5065
5494
|
return typeof e == "string" && e !== "" ? e : null;
|
|
5066
5495
|
}
|
|
5067
|
-
var
|
|
5496
|
+
var Ss = {
|
|
5068
5497
|
components: {
|
|
5069
|
-
Pagination:
|
|
5070
|
-
InfoPill:
|
|
5498
|
+
Pagination: vs,
|
|
5499
|
+
InfoPill: ra
|
|
5071
5500
|
},
|
|
5072
|
-
mixins: [
|
|
5501
|
+
mixins: [F, j],
|
|
5073
5502
|
props: {
|
|
5074
5503
|
rows: {
|
|
5075
5504
|
type: Array,
|
|
@@ -5114,7 +5543,7 @@ var Jo = {
|
|
|
5114
5543
|
return Array.isArray(this.rows) ? this.rows : [];
|
|
5115
5544
|
},
|
|
5116
5545
|
visibleColumns() {
|
|
5117
|
-
return (Array.isArray(this.columns) ? this.columns : []).map(
|
|
5546
|
+
return (Array.isArray(this.columns) ? this.columns : []).map(bs).filter((e) => e !== null && e.visible);
|
|
5118
5547
|
},
|
|
5119
5548
|
rowStripes() {
|
|
5120
5549
|
return this.normalizedRows.map((e) => this.stripeOf(e));
|
|
@@ -5133,10 +5562,10 @@ var Jo = {
|
|
|
5133
5562
|
},
|
|
5134
5563
|
badgeText() {
|
|
5135
5564
|
if (this.hasRecords) {
|
|
5136
|
-
let e =
|
|
5565
|
+
let e = xs(this.foundText);
|
|
5137
5566
|
return e === null ? null : `${e}: ${this.recordCount}`;
|
|
5138
5567
|
}
|
|
5139
|
-
return
|
|
5568
|
+
return xs(this.emptyText);
|
|
5140
5569
|
}
|
|
5141
5570
|
},
|
|
5142
5571
|
methods: {
|
|
@@ -5156,43 +5585,43 @@ var Jo = {
|
|
|
5156
5585
|
stripeOf(e) {
|
|
5157
5586
|
if (typeof this.rowStripe != "function") return null;
|
|
5158
5587
|
let t = this.rowStripe(e);
|
|
5159
|
-
return
|
|
5588
|
+
return A(t) ? t : null;
|
|
5160
5589
|
},
|
|
5161
5590
|
textOf(e, t) {
|
|
5162
5591
|
let n = e(t);
|
|
5163
5592
|
return n == null ? "" : String(n);
|
|
5164
5593
|
}
|
|
5165
5594
|
}
|
|
5166
|
-
},
|
|
5167
|
-
function
|
|
5168
|
-
let
|
|
5169
|
-
return
|
|
5170
|
-
|
|
5595
|
+
}, Cs = { class: "bb:min-w-full bb:divide-y bb:divide-gray-200 bb:border-collapse" }, ws = { class: "bb:bg-gray-50" }, Ts = ["textContent"], Es = { class: "bb:divide-y bb:divide-gray-200" }, Ds = ["textContent"], Os = ["textContent"];
|
|
5596
|
+
function ks(t, o, s, c, l, u) {
|
|
5597
|
+
let f = g("info-pill"), _ = g("pagination");
|
|
5598
|
+
return p(), i("div", null, [
|
|
5599
|
+
u.hasBadgeRow() ? (p(), i("div", {
|
|
5171
5600
|
key: 0,
|
|
5172
|
-
class:
|
|
5173
|
-
}, [
|
|
5601
|
+
class: d(["bb:flex bb:justify-center bb:items-center bb:space-x-2", u.isCard ? "" : "bb:my-4"])
|
|
5602
|
+
}, [u.badgeText === null ? r("", !0) : (p(), n(f, {
|
|
5174
5603
|
key: 0,
|
|
5175
|
-
text:
|
|
5176
|
-
color: "indigo"
|
|
5177
|
-
}, null, 8, ["text"])),
|
|
5178
|
-
|
|
5604
|
+
text: u.badgeText,
|
|
5605
|
+
color: "indigo-pale"
|
|
5606
|
+
}, null, 8, ["text"])), u.hasRecords ? h(t.$slots, "results-actions", {}, void 0, void 0, 1) : r("", !0)], 2)) : r("", !0),
|
|
5607
|
+
u.normalizedRows.length > 0 ? (p(), i("div", {
|
|
5179
5608
|
key: 1,
|
|
5180
|
-
class: u
|
|
5181
|
-
}, [a("div", { class:
|
|
5609
|
+
class: d(u.isCard && u.hasBadgeRow() ? "bb:mt-4" : "")
|
|
5610
|
+
}, [a("div", { class: d(["bb:overflow-x-auto", u.isCard ? "bb:border-t bb:border-gray-200" : "bb:shadow-sm bb:border-b bb:border-gray-200 bb:rounded-lg"]) }, [a("table", Cs, [a("thead", null, [a("tr", ws, [(p(!0), i(e, null, m(u.visibleColumns, (e) => (p(), i("th", {
|
|
5182
5611
|
key: e.key,
|
|
5183
5612
|
scope: "col",
|
|
5184
|
-
class:
|
|
5613
|
+
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
5614
|
"bb:text-left": e.align === "left",
|
|
5186
5615
|
"bb:text-center": e.align === "center",
|
|
5187
5616
|
"bb:text-right": e.align === "right"
|
|
5188
5617
|
}, { "bb:w-px": e.narrow }]]),
|
|
5189
|
-
textContent:
|
|
5190
|
-
}, null, 10,
|
|
5191
|
-
key:
|
|
5618
|
+
textContent: y(e.label)
|
|
5619
|
+
}, null, 10, Ts))), 128))])]), a("tbody", Es, [(p(!0), i(e, null, m(u.normalizedRows, (n, o) => (p(), i("tr", {
|
|
5620
|
+
key: u.keyOf(n, o),
|
|
5192
5621
|
class: "bb:bg-white bb:even:bg-gray-50"
|
|
5193
|
-
}, [(
|
|
5622
|
+
}, [(p(!0), i(e, null, m(u.visibleColumns, (e, s) => (p(), i("td", {
|
|
5194
5623
|
key: e.key,
|
|
5195
|
-
class:
|
|
5624
|
+
class: d(["bb:px-6 bb:py-4 bb:align-top bb:relative bb:text-sm bb:leading-5", [
|
|
5196
5625
|
{ "bb:whitespace-nowrap": !e.wrap },
|
|
5197
5626
|
{
|
|
5198
5627
|
"bb:text-left": e.align === "left",
|
|
@@ -5201,27 +5630,27 @@ function ts(t, o, s, c, l, d) {
|
|
|
5201
5630
|
},
|
|
5202
5631
|
{ "bb:w-px": e.narrow }
|
|
5203
5632
|
]])
|
|
5204
|
-
}, [s === 0 &&
|
|
5633
|
+
}, [s === 0 && u.rowStripes[o] !== null ? (p(), i("span", {
|
|
5205
5634
|
key: 0,
|
|
5206
|
-
class:
|
|
5635
|
+
class: d(["bb:absolute bb:left-0 bb:inset-y-0 bb:w-1 bb:bg-current", t.colorClass(u.rowStripes[o], "mark")]),
|
|
5207
5636
|
"aria-hidden": "true"
|
|
5208
|
-
}, null, 2)) : r("", !0),
|
|
5637
|
+
}, null, 2)) : r("", !0), h(t.$slots, `cell-${e.key}`, {
|
|
5209
5638
|
row: n,
|
|
5210
5639
|
index: o
|
|
5211
5640
|
}, () => [a("div", {
|
|
5212
|
-
class:
|
|
5213
|
-
textContent:
|
|
5214
|
-
}, null, 10,
|
|
5641
|
+
class: d(["bb:font-medium", e.muted ? "bb:text-gray-400" : "bb:text-gray-900"]),
|
|
5642
|
+
textContent: y(u.textOf(e.value, n))
|
|
5643
|
+
}, null, 10, Ds), e.secondary !== null && u.textOf(e.secondary, n) !== "" ? (p(), i("div", {
|
|
5215
5644
|
key: 0,
|
|
5216
5645
|
class: "bb:text-gray-400",
|
|
5217
|
-
textContent:
|
|
5218
|
-
}, null, 8,
|
|
5219
|
-
|
|
5646
|
+
textContent: y(u.textOf(e.secondary, n))
|
|
5647
|
+
}, null, 8, Os)) : r("", !0)])], 2))), 128))]))), 128))])])], 2)], 2)) : r("", !0),
|
|
5648
|
+
u.hasMeta ? (p(), n(_, {
|
|
5220
5649
|
key: 2,
|
|
5221
5650
|
meta: s.meta,
|
|
5222
5651
|
links: s.links ?? {},
|
|
5223
5652
|
lang: t.lang,
|
|
5224
|
-
class: u
|
|
5653
|
+
class: d(u.isCard ? "bb:mt-4" : "bb:mt-6")
|
|
5225
5654
|
}, null, 8, [
|
|
5226
5655
|
"meta",
|
|
5227
5656
|
"links",
|
|
@@ -5230,8 +5659,8 @@ function ts(t, o, s, c, l, d) {
|
|
|
5230
5659
|
])) : r("", !0)
|
|
5231
5660
|
]);
|
|
5232
5661
|
}
|
|
5233
|
-
var
|
|
5234
|
-
mixins: [
|
|
5662
|
+
var As = /*#__PURE__*/ M(Ss, [["render", ks]]), js = {
|
|
5663
|
+
mixins: [Q],
|
|
5235
5664
|
props: {
|
|
5236
5665
|
url: {
|
|
5237
5666
|
type: String,
|
|
@@ -5246,17 +5675,17 @@ var ns = /*#__PURE__*/ k(Jo, [["render", ts]]), rs = {
|
|
|
5246
5675
|
default: !1
|
|
5247
5676
|
}
|
|
5248
5677
|
}
|
|
5249
|
-
},
|
|
5250
|
-
function
|
|
5251
|
-
return
|
|
5678
|
+
}, Ms = ["href", "textContent"];
|
|
5679
|
+
function Ns(e, t, n, r, a, o) {
|
|
5680
|
+
return p(), i("a", {
|
|
5252
5681
|
href: n.url,
|
|
5253
|
-
class:
|
|
5682
|
+
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
5683
|
onClick: t[0] ||= (t) => e.followLink(t, n.url),
|
|
5255
|
-
textContent:
|
|
5256
|
-
}, null, 10,
|
|
5684
|
+
textContent: y(n.name)
|
|
5685
|
+
}, null, 10, Ms);
|
|
5257
5686
|
}
|
|
5258
|
-
var
|
|
5259
|
-
mixins: [
|
|
5687
|
+
var Ps = /*#__PURE__*/ M(js, [["render", Ns]]), Fs = {
|
|
5688
|
+
mixins: [F, Q],
|
|
5260
5689
|
props: {
|
|
5261
5690
|
tabs: {
|
|
5262
5691
|
type: Array,
|
|
@@ -5270,38 +5699,38 @@ var os = /*#__PURE__*/ k(rs, [["render", as]]), ss = {
|
|
|
5270
5699
|
computed: { tabList() {
|
|
5271
5700
|
return Array.isArray(this.tabs) ? this.tabs.filter((e) => typeof e == "object" && !!e) : [];
|
|
5272
5701
|
} }
|
|
5273
|
-
},
|
|
5702
|
+
}, Is = ["aria-label"], Ls = [
|
|
5274
5703
|
"href",
|
|
5275
5704
|
"aria-current",
|
|
5276
5705
|
"onClick",
|
|
5277
5706
|
"textContent"
|
|
5278
5707
|
];
|
|
5279
|
-
function
|
|
5280
|
-
return
|
|
5708
|
+
function Rs(t, n, r, a, o, s) {
|
|
5709
|
+
return p(), i("nav", {
|
|
5281
5710
|
class: "bb-dashboard-ui bb:flex bb:space-x-4",
|
|
5282
5711
|
"aria-label": t.texts.tabs
|
|
5283
|
-
}, [(
|
|
5712
|
+
}, [(p(!0), i(e, null, m(s.tabList, (e) => (p(), i("a", {
|
|
5284
5713
|
key: e.key,
|
|
5285
5714
|
href: e.url,
|
|
5286
5715
|
"aria-current": e.key === r.activeKey ? "page" : null,
|
|
5287
|
-
class:
|
|
5716
|
+
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
5717
|
onClick: (n) => t.followLink(n, e.url),
|
|
5289
|
-
textContent:
|
|
5290
|
-
}, null, 10,
|
|
5718
|
+
textContent: y(e.name)
|
|
5719
|
+
}, null, 10, Ls))), 128))], 8, Is);
|
|
5291
5720
|
}
|
|
5292
|
-
var
|
|
5721
|
+
var zs = /*#__PURE__*/ M(Fs, [["render", Rs]]), Bs = [
|
|
5293
5722
|
"xl",
|
|
5294
5723
|
"4xl",
|
|
5295
5724
|
"7xl"
|
|
5296
|
-
],
|
|
5297
|
-
components: { CrossButton:
|
|
5298
|
-
mixins: [
|
|
5725
|
+
], Vs = {
|
|
5726
|
+
components: { CrossButton: I },
|
|
5727
|
+
mixins: [F],
|
|
5299
5728
|
inheritAttrs: !1,
|
|
5300
5729
|
props: {
|
|
5301
5730
|
width: {
|
|
5302
5731
|
type: String,
|
|
5303
5732
|
default: "xl",
|
|
5304
|
-
validator: (e) =>
|
|
5733
|
+
validator: (e) => Bs.includes(e)
|
|
5305
5734
|
},
|
|
5306
5735
|
fallbackUrl: {
|
|
5307
5736
|
type: String,
|
|
@@ -5317,13 +5746,13 @@ var ds = /*#__PURE__*/ k(ss, [["render", us]]), fs = [
|
|
|
5317
5746
|
},
|
|
5318
5747
|
computed: {
|
|
5319
5748
|
resolvedWidth() {
|
|
5320
|
-
return
|
|
5749
|
+
return Bs.includes(this.width) ? this.width : "xl";
|
|
5321
5750
|
},
|
|
5322
5751
|
windows() {
|
|
5323
5752
|
return this.uiSettings.windows;
|
|
5324
5753
|
},
|
|
5325
5754
|
resolvedKey() {
|
|
5326
|
-
return this.windowKey !== null && this.windowKey !== "" ? this.windowKey : this.windows === null ? null :
|
|
5755
|
+
return this.windowKey !== null && this.windowKey !== "" ? this.windowKey : this.windows === null ? null : oe(this.windows.page.address);
|
|
5327
5756
|
},
|
|
5328
5757
|
target() {
|
|
5329
5758
|
return this.returnAddress === null ? this.fallbackUrl === null || this.fallbackUrl === "" ? null : this.fallbackUrl : this.returnAddress;
|
|
@@ -5333,23 +5762,23 @@ var ds = /*#__PURE__*/ k(ss, [["render", us]]), fs = [
|
|
|
5333
5762
|
}
|
|
5334
5763
|
},
|
|
5335
5764
|
watch: { fallbackUrl() {
|
|
5336
|
-
this.windows !== null &&
|
|
5765
|
+
this.windows !== null && he(this.windows.state, this, this.fallbackAddress());
|
|
5337
5766
|
} },
|
|
5338
5767
|
mounted() {
|
|
5339
|
-
this.windows !== null && (this.returnAddress =
|
|
5768
|
+
this.windows !== null && (this.returnAddress = k(this.windows.state, this, this.resolvedKey, this.fallbackAddress()).returnAddress, this.$watch(() => [this.windows.page.number, this.resolvedKey], () => this.syncWindow(), { flush: "post" }));
|
|
5340
5769
|
},
|
|
5341
5770
|
beforeUnmount() {
|
|
5342
|
-
this.windows !== null &&
|
|
5771
|
+
this.windows !== null && me(this.windows.state, this);
|
|
5343
5772
|
},
|
|
5344
5773
|
methods: {
|
|
5345
5774
|
fallbackAddress() {
|
|
5346
|
-
return
|
|
5775
|
+
return ae(this.fallbackUrl, window.location.origin);
|
|
5347
5776
|
},
|
|
5348
5777
|
forwardedAttrs() {
|
|
5349
5778
|
return Object.fromEntries(Object.entries(this.$attrs).filter(([e]) => e.startsWith("data-") || e.startsWith("aria-")));
|
|
5350
5779
|
},
|
|
5351
5780
|
syncWindow() {
|
|
5352
|
-
let e =
|
|
5781
|
+
let e = pe(this.windows.state, this, this.resolvedKey, this.fallbackAddress());
|
|
5353
5782
|
e.rejected && console.warn(`PageCard: ключ окна сменился на «${this.resolvedKey}» без смены страницы — карточка остаётся в окне «${e.key}»`), this.returnAddress = e.window.returnAddress;
|
|
5354
5783
|
},
|
|
5355
5784
|
close() {
|
|
@@ -5364,38 +5793,52 @@ var ds = /*#__PURE__*/ k(ss, [["render", us]]), fs = [
|
|
|
5364
5793
|
}
|
|
5365
5794
|
}
|
|
5366
5795
|
};
|
|
5367
|
-
function
|
|
5368
|
-
let
|
|
5369
|
-
return
|
|
5796
|
+
function Hs(e, t, a, o, c, l) {
|
|
5797
|
+
let f = g("cross-button");
|
|
5798
|
+
return p(), i("div", u({
|
|
5370
5799
|
class: ["bb:box-border bb:relative bb:my-6 bb:mx-auto bb:bg-white bb:shadow-xl bb:rounded-lg", [
|
|
5371
5800
|
{
|
|
5372
|
-
"bb:max-w-xl":
|
|
5373
|
-
"bb:max-w-4xl":
|
|
5374
|
-
"bb:max-w-7xl":
|
|
5801
|
+
"bb:max-w-xl": l.resolvedWidth === "xl",
|
|
5802
|
+
"bb:max-w-4xl": l.resolvedWidth === "4xl",
|
|
5803
|
+
"bb:max-w-7xl": l.resolvedWidth === "7xl"
|
|
5375
5804
|
},
|
|
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]":
|
|
5805
|
+
l.canClose ? {
|
|
5806
|
+
"bb:[--bb-closer-space:3.5rem] bb:md:[--bb-closer-space:0px]": l.resolvedWidth === "xl",
|
|
5807
|
+
"bb:[--bb-closer-space:3.5rem] bb:lg:[--bb-closer-space:0px]": l.resolvedWidth === "4xl",
|
|
5808
|
+
"bb:[--bb-closer-space:3.5rem] bb:2xl:[--bb-closer-space:0px]": l.resolvedWidth === "7xl"
|
|
5380
5809
|
} : "bb:[--bb-closer-space:0px]",
|
|
5381
5810
|
e.$attrs.class
|
|
5382
5811
|
]],
|
|
5383
5812
|
style: e.$attrs.style
|
|
5384
|
-
}, { ...
|
|
5813
|
+
}, { ...l.forwardedAttrs() }), [h(e.$slots, "default", { close: l.close }), l.canClose ? (p(), n(f, {
|
|
5385
5814
|
key: 0,
|
|
5386
5815
|
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":
|
|
5816
|
+
class: d(["bb:absolute bb:top-0 bb:right-0 bb:mt-6 bb:mr-4 bb:w-8 bb:h-8", {
|
|
5817
|
+
"bb:md:right-auto bb:md:left-full bb:md:mr-0 bb:md:ml-4": l.resolvedWidth === "xl",
|
|
5818
|
+
"bb:lg:right-auto bb:lg:left-full bb:lg:mr-0 bb:lg:ml-4": l.resolvedWidth === "4xl",
|
|
5819
|
+
"bb:2xl:right-auto bb:2xl:left-full bb:2xl:mr-0 bb:2xl:ml-4": l.resolvedWidth === "7xl"
|
|
5391
5820
|
}]),
|
|
5392
|
-
onClicked:
|
|
5821
|
+
onClicked: l.close
|
|
5393
5822
|
}, {
|
|
5394
|
-
default:
|
|
5823
|
+
default: C(() => [s(y(e.texts.back), 1)]),
|
|
5395
5824
|
_: 1
|
|
5396
5825
|
}, 8, ["class", "onClicked"])) : r("", !0)], 16);
|
|
5397
5826
|
}
|
|
5398
|
-
var
|
|
5827
|
+
var Us = /*#__PURE__*/ M(Vs, [["render", Hs]]), Ws = {}, Gs = { class: "bb:m-0 bb:p-0 bb:overflow-hidden bb:rounded-b-lg" };
|
|
5828
|
+
function Ks(e, t, n, r, a, o) {
|
|
5829
|
+
return p(), i("dl", Gs, [h(e.$slots, "default")]);
|
|
5830
|
+
}
|
|
5831
|
+
var qs = /*#__PURE__*/ M(Ws, [["render", Ks]]), Js = { props: { title: {
|
|
5832
|
+
type: String,
|
|
5833
|
+
required: !0
|
|
5834
|
+
} } }, Ys = { class: "bb:grid bb:grid-cols-3 bb:gap-4 bb:px-6 bb:py-5 bb:bg-white bb:odd:bg-gray-50" }, Xs = ["textContent"], Zs = { 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" };
|
|
5835
|
+
function Qs(e, t, n, r, o, s) {
|
|
5836
|
+
return p(), i("div", Ys, [a("dt", {
|
|
5837
|
+
class: "bb:m-0 bb:p-0 bb:text-sm bb:leading-5 bb:font-normal bb:text-gray-500 bb:wrap-break-word",
|
|
5838
|
+
textContent: y(n.title)
|
|
5839
|
+
}, null, 8, Xs), a("dd", Zs, [h(e.$slots, "default")])]);
|
|
5840
|
+
}
|
|
5841
|
+
var $s = /*#__PURE__*/ M(Js, [["render", Qs]]), ec = {}, tc = {
|
|
5399
5842
|
class: "bb:h-7 bb:w-7 bb:text-green-600",
|
|
5400
5843
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5401
5844
|
fill: "none",
|
|
@@ -5404,22 +5847,22 @@ var hs = /*#__PURE__*/ k(ps, [["render", ms]]), gs = {}, _s = {
|
|
|
5404
5847
|
stroke: "currentColor",
|
|
5405
5848
|
"aria-hidden": "true"
|
|
5406
5849
|
};
|
|
5407
|
-
function
|
|
5408
|
-
return
|
|
5850
|
+
function nc(e, t, n, r, o, s) {
|
|
5851
|
+
return p(), i("svg", tc, [...t[0] ||= [a("path", {
|
|
5409
5852
|
"stroke-linecap": "round",
|
|
5410
5853
|
"stroke-linejoin": "round",
|
|
5411
5854
|
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
5855
|
}, null, -1)]]);
|
|
5413
5856
|
}
|
|
5414
|
-
var
|
|
5857
|
+
var rc = /*#__PURE__*/ M(ec, [["render", nc]]), ic = {}, ac = {
|
|
5415
5858
|
class: "bb:h-5 bb:w-5",
|
|
5416
5859
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5417
5860
|
viewBox: "0 0 20 20",
|
|
5418
5861
|
fill: "currentColor",
|
|
5419
5862
|
"aria-hidden": "true"
|
|
5420
5863
|
};
|
|
5421
|
-
function
|
|
5422
|
-
return
|
|
5864
|
+
function oc(e, t, n, r, o, s) {
|
|
5865
|
+
return p(), i("svg", ac, [...t[0] ||= [a("path", {
|
|
5423
5866
|
"fill-rule": "evenodd",
|
|
5424
5867
|
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
5868
|
"clip-rule": "evenodd"
|
|
@@ -5427,14 +5870,14 @@ function Ss(e, t, n, r, o, s) {
|
|
|
5427
5870
|
}
|
|
5428
5871
|
//#endregion
|
|
5429
5872
|
//#region src/components/NotificationMessage.vue
|
|
5430
|
-
var
|
|
5873
|
+
var sc = {
|
|
5431
5874
|
components: {
|
|
5432
|
-
Check:
|
|
5433
|
-
Close: /* @__PURE__ */
|
|
5434
|
-
Dangerous:
|
|
5435
|
-
Warning:
|
|
5875
|
+
Check: rc,
|
|
5876
|
+
Close: /* @__PURE__ */ M(ic, [["render", oc]]),
|
|
5877
|
+
Dangerous: ho,
|
|
5878
|
+
Warning: yo
|
|
5436
5879
|
},
|
|
5437
|
-
mixins: [
|
|
5880
|
+
mixins: [F],
|
|
5438
5881
|
emits: ["update:modelValue"],
|
|
5439
5882
|
props: {
|
|
5440
5883
|
modelValue: {
|
|
@@ -5472,38 +5915,38 @@ var Cs = {
|
|
|
5472
5915
|
return this.type === "confirmation";
|
|
5473
5916
|
}
|
|
5474
5917
|
}
|
|
5475
|
-
},
|
|
5476
|
-
function
|
|
5477
|
-
let
|
|
5478
|
-
return
|
|
5918
|
+
}, cc = ["role"], lc = { class: "bb:p-4" }, uc = { class: "bb:flex bb:items-start" }, dc = { class: "bb:shrink-0" }, fc = { class: "bb:ml-3 bb:w-0 bb:flex-1 bb:pt-0.5" }, pc = { class: "bb:text-sm bb:font-medium bb:text-gray-900" }, mc = { class: "bb:mt-1 bb:text-sm bb:text-gray-500" }, hc = { class: "bb:ml-4 bb:shrink-0 bb:flex" }, gc = { class: "bb:sr-only bb:pointer-events-none bb:cursor-default" };
|
|
5919
|
+
function _c(e, t, o, s, l, u) {
|
|
5920
|
+
let f = g("warning"), m = g("dangerous"), h = g("check"), _ = g("close");
|
|
5921
|
+
return p(), i("div", {
|
|
5479
5922
|
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
|
-
}, [
|
|
5923
|
+
role: u.isDangerous ? "alert" : "status"
|
|
5924
|
+
}, [u.hasMessage ? (p(), i("div", {
|
|
5482
5925
|
key: 0,
|
|
5483
|
-
class:
|
|
5484
|
-
"bb:bg-red-50":
|
|
5485
|
-
"bb:bg-yellow-50":
|
|
5486
|
-
"bb:bg-gray-50":
|
|
5926
|
+
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", {
|
|
5927
|
+
"bb:bg-red-50": u.isDangerous,
|
|
5928
|
+
"bb:bg-yellow-50": u.isWarning,
|
|
5929
|
+
"bb:bg-gray-50": u.isConfirmation
|
|
5487
5930
|
}])
|
|
5488
|
-
}, [a("div",
|
|
5489
|
-
a("div",
|
|
5490
|
-
|
|
5491
|
-
|
|
5492
|
-
|
|
5931
|
+
}, [a("div", lc, [a("div", uc, [
|
|
5932
|
+
a("div", dc, [
|
|
5933
|
+
u.isWarning ? (p(), n(f, { key: 0 })) : r("", !0),
|
|
5934
|
+
u.isDangerous ? (p(), n(m, { key: 1 })) : r("", !0),
|
|
5935
|
+
u.isConfirmation ? (p(), n(h, { key: 2 })) : r("", !0)
|
|
5493
5936
|
]),
|
|
5494
|
-
a("div",
|
|
5495
|
-
a("div",
|
|
5937
|
+
a("div", fc, [a("p", pc, y(o.notificationHeading), 1), a("p", mc, y(u.text), 1)]),
|
|
5938
|
+
a("div", hc, [a("button", {
|
|
5496
5939
|
type: "button",
|
|
5497
|
-
class:
|
|
5498
|
-
"bb:bg-red-50":
|
|
5499
|
-
"bb:bg-yellow-50":
|
|
5500
|
-
"bb:bg-gray-50":
|
|
5940
|
+
class: d(["bb:rounded-md bb:inline-flex bb:text-gray-400 bb:hover:text-gray-500 bb:focus:focus-ring", {
|
|
5941
|
+
"bb:bg-red-50": u.isDangerous,
|
|
5942
|
+
"bb:bg-yellow-50": u.isWarning,
|
|
5943
|
+
"bb:bg-gray-50": u.isConfirmation
|
|
5501
5944
|
}]),
|
|
5502
|
-
onClick: t[0] ||=
|
|
5503
|
-
}, [a("span",
|
|
5504
|
-
])])], 2)) : r("", !0)], 8,
|
|
5945
|
+
onClick: t[0] ||= E((t) => e.$emit("update:modelValue", ""), ["prevent"])
|
|
5946
|
+
}, [a("span", gc, y(e.texts.close), 1), c(_, { class: "bb:pointer-events-none bb:cursor-default" })], 2)])
|
|
5947
|
+
])])], 2)) : r("", !0)], 8, cc);
|
|
5505
5948
|
}
|
|
5506
|
-
var
|
|
5949
|
+
var vc = /*#__PURE__*/ M(sc, [["render", _c]]), yc = {}, bc = {
|
|
5507
5950
|
class: "bb:h-5 bb:w-5",
|
|
5508
5951
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5509
5952
|
fill: "none",
|
|
@@ -5512,8 +5955,8 @@ var Ps = /*#__PURE__*/ k(Cs, [["render", Ns]]), Fs = {}, Is = {
|
|
|
5512
5955
|
"stroke-width": "2",
|
|
5513
5956
|
"aria-hidden": "true"
|
|
5514
5957
|
};
|
|
5515
|
-
function
|
|
5516
|
-
return
|
|
5958
|
+
function xc(e, t, n, r, o, s) {
|
|
5959
|
+
return p(), i("svg", bc, [...t[0] ||= [a("path", {
|
|
5517
5960
|
"stroke-linecap": "round",
|
|
5518
5961
|
"stroke-linejoin": "round",
|
|
5519
5962
|
d: "M15 12a3 3 0 11-6 0 3 3 0 016 0z"
|
|
@@ -5523,12 +5966,12 @@ function Ls(e, t, n, r, o, s) {
|
|
|
5523
5966
|
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
5967
|
}, null, -1)]]);
|
|
5525
5968
|
}
|
|
5526
|
-
var
|
|
5969
|
+
var Sc = /*#__PURE__*/ M(yc, [["render", xc]]), $ = 0, Cc = null, wc = {
|
|
5527
5970
|
components: {
|
|
5528
|
-
PopoverPanel:
|
|
5529
|
-
Eye:
|
|
5971
|
+
PopoverPanel: V,
|
|
5972
|
+
Eye: Sc
|
|
5530
5973
|
},
|
|
5531
|
-
mixins: [
|
|
5974
|
+
mixins: [F],
|
|
5532
5975
|
emits: ["update:modelValue"],
|
|
5533
5976
|
props: {
|
|
5534
5977
|
text: {
|
|
@@ -5559,22 +6002,22 @@ var Rs = /*#__PURE__*/ k(Fs, [["render", Ls]]), Q = 0, $ = null, zs = {
|
|
|
5559
6002
|
e ? this.lockPageSelection() : this.unlockPageSelection();
|
|
5560
6003
|
},
|
|
5561
6004
|
lockPageSelection() {
|
|
5562
|
-
if (!this.holdsPageSelectionLock && (this.holdsPageSelectionLock = !0,
|
|
6005
|
+
if (!this.holdsPageSelectionLock && (this.holdsPageSelectionLock = !0, $ += 1, $ === 1)) {
|
|
5563
6006
|
let e = document.documentElement.style;
|
|
5564
|
-
|
|
6007
|
+
Cc = {
|
|
5565
6008
|
userSelect: e.userSelect,
|
|
5566
6009
|
webkitUserSelect: e.webkitUserSelect
|
|
5567
6010
|
}, e.userSelect = "none", e.webkitUserSelect = "none";
|
|
5568
6011
|
}
|
|
5569
6012
|
},
|
|
5570
6013
|
unlockPageSelection() {
|
|
5571
|
-
this.holdsPageSelectionLock && (this.holdsPageSelectionLock = !1,
|
|
6014
|
+
this.holdsPageSelectionLock && (this.holdsPageSelectionLock = !1, --$, $ === 0 && (Object.assign(document.documentElement.style, Cc), Cc = null));
|
|
5572
6015
|
}
|
|
5573
6016
|
}
|
|
5574
|
-
},
|
|
5575
|
-
function
|
|
5576
|
-
let u =
|
|
5577
|
-
return
|
|
6017
|
+
}, Tc = ["id", "popovertarget"], Ec = { class: "bb:sr-only bb:pointer-events-none bb:cursor-default" };
|
|
6018
|
+
function Dc(e, t, r, i, o, l) {
|
|
6019
|
+
let u = g("eye"), d = g("popover-panel");
|
|
6020
|
+
return p(), n(d, {
|
|
5578
6021
|
class: "bb-dashboard-ui bb:inline-flex",
|
|
5579
6022
|
"has-content": !l.isEmpty,
|
|
5580
6023
|
"model-value": r.modelValue,
|
|
@@ -5587,13 +6030,13 @@ function Hs(e, t, r, i, c, l) {
|
|
|
5587
6030
|
"onUpdate:modelValue": t[0] ||= (t) => e.$emit("update:modelValue", t),
|
|
5588
6031
|
onToggle: l.onPanelToggle
|
|
5589
6032
|
}, {
|
|
5590
|
-
trigger:
|
|
6033
|
+
trigger: C((t) => [a("button", {
|
|
5591
6034
|
type: "button",
|
|
5592
6035
|
id: t.id,
|
|
5593
6036
|
popovertarget: t.popovertarget,
|
|
5594
6037
|
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:
|
|
6038
|
+
}, [a("span", Ec, y(e.texts.showText), 1), c(u, { class: "bb:pointer-events-none bb:cursor-default" })], 8, Tc)]),
|
|
6039
|
+
default: C(() => [s(y(l.normalizedText), 1)]),
|
|
5597
6040
|
_: 1
|
|
5598
6041
|
}, 8, [
|
|
5599
6042
|
"has-content",
|
|
@@ -5602,6 +6045,6 @@ function Hs(e, t, r, i, c, l) {
|
|
|
5602
6045
|
"onToggle"
|
|
5603
6046
|
]);
|
|
5604
6047
|
}
|
|
5605
|
-
var
|
|
6048
|
+
var Oc = /*#__PURE__*/ M(wc, [["render", Dc]]);
|
|
5606
6049
|
//#endregion
|
|
5607
|
-
export {
|
|
6050
|
+
export { Ja as ActionButton, no as ActionPill, Ai as AmountForm, Ui as AmountIntervalFilter, $i as AmountIntervalForm, ko as ConfirmationModal, As as DataTable, qs as DetailList, $s as DetailRow, N as Dot, qo as DropdownButtonWithAction, ua as ErrorMessages, _a as FormInput, Qo as HamburgerMenu, ra as InfoPill, Ps as NavigationMenuElement, vc as NotificationMessage, Us as PageCard, zs as PageTabs, et as RussianMobileFilter, st 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, Oc as TextPopover, be as dashboardUi, we as downloadFile };
|