@boobooking/dashboard-ui-components 0.23.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 +169 -32
- package/dist/index.js +854 -694
- 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, 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
|
|
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 oe = {
|
|
|
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 le() {
|
|
|
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 me(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 he(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
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 xe(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 we(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 Te(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 Ee(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,11 +416,11 @@ var k = { methods: { colorClass: ke } }, A = (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
|
|
423
|
+
function ke(e, t, n, r, o, s) {
|
|
370
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"
|
|
@@ -376,8 +430,8 @@ function je(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 j = /*#__PURE__*/ A(Ae, [["render", je]]), Me = {
|
|
|
392
446
|
default: !1
|
|
393
447
|
}
|
|
394
448
|
}
|
|
395
|
-
},
|
|
396
|
-
function
|
|
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) {
|
|
397
451
|
let l = g("dot");
|
|
398
|
-
return p(), i("div",
|
|
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
455
|
textContent: y(n.text)
|
|
402
|
-
}, null, 8,
|
|
403
|
-
|
|
404
|
-
color: "red",
|
|
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,39 +492,39 @@ var M = /*#__PURE__*/ A(Me, [["render", Fe]]), N = {
|
|
|
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
|
|
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) {
|
|
469
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",
|
|
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", {
|
|
474
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"
|
|
@@ -485,24 +539,24 @@ function We(e, t, n, r, o, 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
|
}
|
|
500
554
|
//#endregion
|
|
501
555
|
//#region src/components/RussianMobileFilter.vue
|
|
502
|
-
var
|
|
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 qe = 400, Je = 3, Ye = {
|
|
|
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 qe = 400, Je = 3, Ye = {
|
|
|
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;
|
|
@@ -586,16 +640,16 @@ var qe = 400, Je = 3, Ye = {
|
|
|
586
640
|
this.commit();
|
|
587
641
|
return;
|
|
588
642
|
}
|
|
589
|
-
this.digits.length <
|
|
643
|
+
this.digits.length < qe || (this.debounceTimer = setTimeout(() => this.commit(), Ke));
|
|
590
644
|
},
|
|
591
645
|
commit() {
|
|
592
646
|
clearTimeout(this.debounceTimer), this.digits !== this.lastCommitted && (this.lastCommitted = this.digits, this.$emit("changed"));
|
|
593
647
|
}
|
|
594
648
|
}
|
|
595
|
-
},
|
|
596
|
-
function
|
|
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" };
|
|
650
|
+
function $e(e, t, n, r, o, s) {
|
|
597
651
|
let l = g("element-header"), u = g("cross-button");
|
|
598
|
-
return p(), i("div",
|
|
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
|
|
@@ -603,7 +657,7 @@ function et(e, t, n, r, o, s) {
|
|
|
603
657
|
"text",
|
|
604
658
|
"is-required",
|
|
605
659
|
"is-loading"
|
|
606
|
-
]), a("div",
|
|
660
|
+
]), a("div", Ze, [a("label", Qe, [a("input", {
|
|
607
661
|
ref: "input",
|
|
608
662
|
type: "tel",
|
|
609
663
|
inputmode: "tel",
|
|
@@ -611,20 +665,20 @@ function et(e, t, n, r, o, s) {
|
|
|
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
666
|
onFocus: t[0] ||= (...e) => s.onFocus && s.onFocus(...e),
|
|
613
667
|
onBlur: t[1] ||= (...e) => s.onBlur && s.onBlur(...e),
|
|
614
|
-
onKeydown: t[2] ||=
|
|
615
|
-
onPaste: t[3] ||=
|
|
616
|
-
}, null, 544)]),
|
|
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] ||=
|
|
673
|
+
onMousedown: t[4] ||= E(() => {}, ["prevent"]),
|
|
620
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
|
|
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: {
|
|
@@ -666,10 +720,10 @@ var tt = /*#__PURE__*/ A(Ye, [["render", et]]), nt = {
|
|
|
666
720
|
this.$emit("update:modelValue", this.search), this.$emit("changed");
|
|
667
721
|
}
|
|
668
722
|
}
|
|
669
|
-
},
|
|
670
|
-
function
|
|
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" };
|
|
724
|
+
function ot(e, t, n, r, o, s) {
|
|
671
725
|
let l = g("element-header"), u = g("cross-button");
|
|
672
|
-
return p(), i("div",
|
|
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,40 +731,40 @@ function st(e, t, n, r, o, s) {
|
|
|
677
731
|
"text",
|
|
678
732
|
"is-required",
|
|
679
733
|
"is-loading"
|
|
680
|
-
]), a("div",
|
|
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
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
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
|
|
698
|
-
function
|
|
751
|
+
var st = /*#__PURE__*/ M(tt, [["render", ot]]), R = 4, z = 8;
|
|
752
|
+
function ct(e) {
|
|
699
753
|
return typeof e?.showPopover == "function";
|
|
700
754
|
}
|
|
701
|
-
function
|
|
702
|
-
return
|
|
755
|
+
function B(e) {
|
|
756
|
+
return ct(e) && e.matches(":popover-open");
|
|
703
757
|
}
|
|
704
|
-
function
|
|
705
|
-
let c = e.getBoundingClientRect(), l = document.documentElement.clientWidth, u = document.documentElement.clientHeight, d = Math.max(
|
|
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
761
|
let e = h ? p : m;
|
|
708
762
|
y = `${n === null ? e : Math.min(n, e)}px`;
|
|
709
763
|
} else o ? y = `${Math.max(0, l - 16)}px` : n !== null && (y = `${Math.min(n, m)}px`);
|
|
710
|
-
let b = o ? Math.max(
|
|
764
|
+
let b = o ? Math.max(z, Math.min(f, l - z - s)) : f;
|
|
711
765
|
Object.assign(t.style, {
|
|
712
|
-
top: v ? `${c.bottom +
|
|
713
|
-
bottom: v ? "auto" : `${u - c.top +
|
|
766
|
+
top: v ? `${c.bottom + R}px` : "auto",
|
|
767
|
+
bottom: v ? "auto" : `${u - c.top + R}px`,
|
|
714
768
|
right: h ? "auto" : `${b}px`,
|
|
715
769
|
left: h ? `${d}px` : "auto",
|
|
716
770
|
maxHeight: `${v ? g : _}px`,
|
|
@@ -719,11 +773,11 @@ function B(e, t, { maxWidth: n = null, align: r = "end", fitsBelow: i = !0, fits
|
|
|
719
773
|
}
|
|
720
774
|
function ut(e, t, n = {}) {
|
|
721
775
|
let r = t.scrollHeight <= t.clientHeight + 1, i = t.scrollWidth <= t.clientWidth + 1;
|
|
722
|
-
(!r || !i) &&
|
|
776
|
+
(!r || !i) && lt(e, t, {
|
|
723
777
|
...n,
|
|
724
778
|
fitsBelow: r,
|
|
725
779
|
fitsRight: i
|
|
726
|
-
}), n.shift &&
|
|
780
|
+
}), n.shift && lt(e, t, {
|
|
727
781
|
...n,
|
|
728
782
|
fitsBelow: r,
|
|
729
783
|
fitsRight: i,
|
|
@@ -877,11 +931,11 @@ var ht = {
|
|
|
877
931
|
methods: {
|
|
878
932
|
applyPanelState() {
|
|
879
933
|
let e = this.$refs.panel;
|
|
880
|
-
|
|
934
|
+
ct(e) && e.isConnected && (this.panelIsOpen && !B(e) && e.showPopover(), !this.panelIsOpen && B(e) && e.hidePopover());
|
|
881
935
|
},
|
|
882
936
|
close() {
|
|
883
937
|
let e = this.$refs.panel;
|
|
884
|
-
|
|
938
|
+
B(e) && e.hidePopover();
|
|
885
939
|
},
|
|
886
940
|
reportPanelShown(e) {
|
|
887
941
|
this.panelShown !== e && (this.panelShown = e, this.$emit("toggle", e));
|
|
@@ -896,9 +950,9 @@ var ht = {
|
|
|
896
950
|
align: this.align,
|
|
897
951
|
shift: this.shift
|
|
898
952
|
};
|
|
899
|
-
this.$refs.panel.style.minWidth = "", this.$refs.panel.style.minHeight = "", this.$refs.panel.style.scrollbarGutter = "",
|
|
953
|
+
this.$refs.panel.style.minWidth = "", this.$refs.panel.style.minHeight = "", this.$refs.panel.style.scrollbarGutter = "", lt(e, this.$refs.panel, t), requestAnimationFrame(() => {
|
|
900
954
|
let n = this.$refs.panel;
|
|
901
|
-
if (
|
|
955
|
+
if (B(n) && (ut(e, n, t), this.keepSize)) {
|
|
902
956
|
n.scrollHeight > n.clientHeight + 1 && (n.style.scrollbarGutter = "stable");
|
|
903
957
|
let e = n.getBoundingClientRect();
|
|
904
958
|
n.style.minWidth = `${e.width}px`, n.style.top === "auto" && (n.style.minHeight = `${e.height}px`);
|
|
@@ -911,7 +965,7 @@ var ht = {
|
|
|
911
965
|
},
|
|
912
966
|
onToggle() {
|
|
913
967
|
this.stopListening();
|
|
914
|
-
let e = this.$refs.panel, t =
|
|
968
|
+
let e = this.$refs.panel, t = B(e);
|
|
915
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));
|
|
916
970
|
},
|
|
917
971
|
restoreFocus(e) {
|
|
@@ -954,7 +1008,7 @@ function vt(e, t, n, o, s, c) {
|
|
|
954
1008
|
onClick: t[2] ||= (...e) => c.onClick && c.onClick(...e)
|
|
955
1009
|
}, [h(e.$slots, "default")], 42, _t)])) : r("", !0);
|
|
956
1010
|
}
|
|
957
|
-
var V = /*#__PURE__*/
|
|
1011
|
+
var V = /*#__PURE__*/ M(ht, [["render", vt]]);
|
|
958
1012
|
//#endregion
|
|
959
1013
|
//#region src/date.js
|
|
960
1014
|
function yt(e) {
|
|
@@ -1022,9 +1076,9 @@ function At(e, t) {
|
|
|
1022
1076
|
var jt = {
|
|
1023
1077
|
components: {
|
|
1024
1078
|
PopoverPanel: V,
|
|
1025
|
-
CrossButton:
|
|
1079
|
+
CrossButton: I
|
|
1026
1080
|
},
|
|
1027
|
-
mixins: [
|
|
1081
|
+
mixins: [F],
|
|
1028
1082
|
emits: ["update:modelValue", "changed"],
|
|
1029
1083
|
props: {
|
|
1030
1084
|
modelValue: {
|
|
@@ -1155,7 +1209,7 @@ function zt(e, t, o, s, l, u) {
|
|
|
1155
1209
|
"return-focus": "",
|
|
1156
1210
|
"panel-class": "bb:bg-white bb:border bb:border-gray-200 bb:rounded-md bb:shadow-lg"
|
|
1157
1211
|
}, {
|
|
1158
|
-
trigger:
|
|
1212
|
+
trigger: C((e) => [a("button", {
|
|
1159
1213
|
ref: "trigger",
|
|
1160
1214
|
type: "button",
|
|
1161
1215
|
id: e.id,
|
|
@@ -1177,7 +1231,7 @@ function zt(e, t, o, s, l, u) {
|
|
|
1177
1231
|
"aria-describedby": o.describedBy,
|
|
1178
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)]"
|
|
1179
1233
|
}, null, 40, Lt)])]),
|
|
1180
|
-
default:
|
|
1234
|
+
default: C(() => [a("div", Rt, null, 512)]),
|
|
1181
1235
|
_: 1
|
|
1182
1236
|
}, 8, ["modelValue"]), u.needsEraser ? (p(), n(f, {
|
|
1183
1237
|
key: 0,
|
|
@@ -1188,9 +1242,9 @@ function zt(e, t, o, s, l, u) {
|
|
|
1188
1242
|
lang: e.resolvedLang
|
|
1189
1243
|
}, null, 8, ["onClicked", "lang"])) : r("", !0)])]);
|
|
1190
1244
|
}
|
|
1191
|
-
var H = /*#__PURE__*/
|
|
1245
|
+
var H = /*#__PURE__*/ M(jt, [["render", zt]]), Bt = {
|
|
1192
1246
|
components: {
|
|
1193
|
-
ElementHeader:
|
|
1247
|
+
ElementHeader: P,
|
|
1194
1248
|
SelectDate: H
|
|
1195
1249
|
},
|
|
1196
1250
|
emits: ["update:modelValue", "changed"],
|
|
@@ -1235,7 +1289,7 @@ function Wt(e, t, n, r, o, s) {
|
|
|
1235
1289
|
onChanged: t[1] ||= (t) => e.$emit("changed")
|
|
1236
1290
|
}, null, 8, ["model-value", "lang"])])])]);
|
|
1237
1291
|
}
|
|
1238
|
-
var Gt = /*#__PURE__*/
|
|
1292
|
+
var Gt = /*#__PURE__*/ M(Bt, [["render", Wt]]), U = {
|
|
1239
1293
|
props: { description: {
|
|
1240
1294
|
type: String,
|
|
1241
1295
|
default: null
|
|
@@ -1252,9 +1306,9 @@ var Gt = /*#__PURE__*/ A(Bt, [["render", Wt]]), U = {
|
|
|
1252
1306
|
function Jt(e, t, n, r, a, o) {
|
|
1253
1307
|
return p(), i("div", qt, [h(e.$slots, "default")]);
|
|
1254
1308
|
}
|
|
1255
|
-
var W = /*#__PURE__*/
|
|
1309
|
+
var W = /*#__PURE__*/ M(Kt, [["render", Jt]]), Yt = {
|
|
1256
1310
|
components: {
|
|
1257
|
-
Dot:
|
|
1311
|
+
Dot: N,
|
|
1258
1312
|
FieldDescription: W,
|
|
1259
1313
|
SelectDate: H
|
|
1260
1314
|
},
|
|
@@ -1289,10 +1343,10 @@ function en(e, t, o, l, u, d) {
|
|
|
1289
1343
|
id: l.labelId,
|
|
1290
1344
|
class: "bb:block bb:text-sm bb:font-medium bb:leading-5 bb:text-gray-700",
|
|
1291
1345
|
textContent: y(o.label ?? "")
|
|
1292
|
-
}, null, 8, Qt),
|
|
1293
|
-
color: "red",
|
|
1346
|
+
}, null, 8, Qt), w(c(f, {
|
|
1347
|
+
color: "red-pale",
|
|
1294
1348
|
class: "bb:ml-2"
|
|
1295
|
-
}, null, 512), [[
|
|
1349
|
+
}, null, 512), [[S, o.isRequired]])]),
|
|
1296
1350
|
a("div", $t, [c(m, {
|
|
1297
1351
|
class: "bb:flex-1",
|
|
1298
1352
|
"model-value": o.modelValue,
|
|
@@ -1311,14 +1365,14 @@ function en(e, t, o, l, u, d) {
|
|
|
1311
1365
|
key: 0,
|
|
1312
1366
|
id: e.descriptionId(l.labelId)
|
|
1313
1367
|
}, {
|
|
1314
|
-
default:
|
|
1368
|
+
default: C(() => [h(e.$slots, "description", {}, () => [s(y(e.description), 1)])]),
|
|
1315
1369
|
_: 3
|
|
1316
1370
|
}, 8, ["id"])) : r("", !0)
|
|
1317
1371
|
]);
|
|
1318
1372
|
}
|
|
1319
|
-
var tn = /*#__PURE__*/
|
|
1373
|
+
var tn = /*#__PURE__*/ M(Yt, [["render", en]]), nn = {
|
|
1320
1374
|
inheritAttrs: !1,
|
|
1321
|
-
mixins: [
|
|
1375
|
+
mixins: [F],
|
|
1322
1376
|
emits: [
|
|
1323
1377
|
"update:dateFrom",
|
|
1324
1378
|
"update:dateTo",
|
|
@@ -1381,9 +1435,9 @@ function rn(e, t, n, r, i, a) {
|
|
|
1381
1435
|
to: a.to
|
|
1382
1436
|
});
|
|
1383
1437
|
}
|
|
1384
|
-
var an = /*#__PURE__*/
|
|
1438
|
+
var an = /*#__PURE__*/ M(nn, [["render", rn]]), on = {
|
|
1385
1439
|
components: {
|
|
1386
|
-
ElementHeader:
|
|
1440
|
+
ElementHeader: P,
|
|
1387
1441
|
SelectDate: H,
|
|
1388
1442
|
SelectDateInterval: an
|
|
1389
1443
|
},
|
|
@@ -1437,7 +1491,7 @@ function dn(e, t, n, r, o, s) {
|
|
|
1437
1491
|
"onUpdate:dateTo": t[1] ||= (t) => e.$emit("update:dateTo", t),
|
|
1438
1492
|
onChanged: t[2] ||= (t) => e.$emit("changed")
|
|
1439
1493
|
}, {
|
|
1440
|
-
default:
|
|
1494
|
+
default: C(({ from: e, to: t }) => [a("div", un, [c(u, {
|
|
1441
1495
|
class: "bb:flex-1 bb:min-w-36",
|
|
1442
1496
|
"model-value": e.value,
|
|
1443
1497
|
"placeholder-text": e.placeholder,
|
|
@@ -1467,9 +1521,9 @@ function dn(e, t, n, r, o, s) {
|
|
|
1467
1521
|
"lang"
|
|
1468
1522
|
])])])]);
|
|
1469
1523
|
}
|
|
1470
|
-
var fn = /*#__PURE__*/
|
|
1524
|
+
var fn = /*#__PURE__*/ M(on, [["render", dn]]), pn = {
|
|
1471
1525
|
components: {
|
|
1472
|
-
Dot:
|
|
1526
|
+
Dot: N,
|
|
1473
1527
|
FieldDescription: W,
|
|
1474
1528
|
SelectDate: H,
|
|
1475
1529
|
SelectDateInterval: an
|
|
@@ -1513,10 +1567,10 @@ function bn(e, t, o, l, u, d) {
|
|
|
1513
1567
|
id: l.labelId,
|
|
1514
1568
|
class: "bb:block bb:text-sm bb:font-medium bb:leading-5 bb:text-gray-700",
|
|
1515
1569
|
textContent: y(o.label ?? "")
|
|
1516
|
-
}, null, 8, gn),
|
|
1517
|
-
color: "red",
|
|
1570
|
+
}, null, 8, gn), w(c(f, {
|
|
1571
|
+
color: "red-pale",
|
|
1518
1572
|
class: "bb:ml-2"
|
|
1519
|
-
}, null, 512), [[
|
|
1573
|
+
}, null, 512), [[S, o.isRequired]])]),
|
|
1520
1574
|
a("div", {
|
|
1521
1575
|
class: "bb:mt-1 bb:grid bb:grid-cols-2 bb:gap-3",
|
|
1522
1576
|
role: "group",
|
|
@@ -1530,7 +1584,7 @@ function bn(e, t, o, l, u, d) {
|
|
|
1530
1584
|
"onUpdate:dateTo": t[1] ||= (t) => e.$emit("update:dateTo", t),
|
|
1531
1585
|
onChanged: t[2] ||= (t) => e.$emit("changed")
|
|
1532
1586
|
}, {
|
|
1533
|
-
default:
|
|
1587
|
+
default: C(({ from: e, to: t }) => [a("div", vn, [c(m, {
|
|
1534
1588
|
class: "bb:flex-1",
|
|
1535
1589
|
"model-value": e.value,
|
|
1536
1590
|
"placeholder-text": e.placeholder,
|
|
@@ -1563,12 +1617,12 @@ function bn(e, t, o, l, u, d) {
|
|
|
1563
1617
|
key: 0,
|
|
1564
1618
|
id: e.descriptionId(l.labelId)
|
|
1565
1619
|
}, {
|
|
1566
|
-
default:
|
|
1620
|
+
default: C(() => [h(e.$slots, "description", {}, () => [s(y(e.description), 1)])]),
|
|
1567
1621
|
_: 3
|
|
1568
1622
|
}, 8, ["id"])) : r("", !0)
|
|
1569
1623
|
]);
|
|
1570
1624
|
}
|
|
1571
|
-
var xn = /*#__PURE__*/
|
|
1625
|
+
var xn = /*#__PURE__*/ M(pn, [["render", bn]]), Sn = {
|
|
1572
1626
|
props: { withSearch: {
|
|
1573
1627
|
type: Boolean,
|
|
1574
1628
|
default: !1
|
|
@@ -1621,7 +1675,7 @@ var xn = /*#__PURE__*/ A(pn, [["render", bn]]), Sn = {
|
|
|
1621
1675
|
}, Cn = {
|
|
1622
1676
|
components: {
|
|
1623
1677
|
PopoverPanel: V,
|
|
1624
|
-
CrossButton:
|
|
1678
|
+
CrossButton: I
|
|
1625
1679
|
},
|
|
1626
1680
|
emits: [
|
|
1627
1681
|
"update:isOpen",
|
|
@@ -1711,7 +1765,7 @@ function jn(e, t, o, s, l, u) {
|
|
|
1711
1765
|
"onUpdate:modelValue": t[0] ||= (t) => e.$emit("update:isOpen", t),
|
|
1712
1766
|
onToggle: t[1] ||= (t) => e.$emit("toggle", t)
|
|
1713
1767
|
}, {
|
|
1714
|
-
trigger:
|
|
1768
|
+
trigger: C((e) => [a("button", {
|
|
1715
1769
|
ref: "trigger",
|
|
1716
1770
|
type: "button",
|
|
1717
1771
|
id: e.id,
|
|
@@ -1727,7 +1781,7 @@ function jn(e, t, o, s, l, u) {
|
|
|
1727
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",
|
|
1728
1782
|
textContent: y(o.title)
|
|
1729
1783
|
}, null, 8, kn)), o.withArrow ? (p(), i("svg", An, [...t[2] ||= [a("path", { d: "M0 0h8L4 6z" }, null, -1)]])) : r("", !0)], 8, En)]),
|
|
1730
|
-
default:
|
|
1784
|
+
default: C(() => [h(e.$slots, "default")]),
|
|
1731
1785
|
_: 3
|
|
1732
1786
|
}, 8, [
|
|
1733
1787
|
"model-value",
|
|
@@ -1744,7 +1798,7 @@ function jn(e, t, o, s, l, u) {
|
|
|
1744
1798
|
class: "bb:absolute bb:right-0 bb:top-0 bb:pr-2 bb:h-full"
|
|
1745
1799
|
}, null, 8, ["lang", "onClicked"])) : r("", !0)])]);
|
|
1746
1800
|
}
|
|
1747
|
-
var Mn = /*#__PURE__*/
|
|
1801
|
+
var Mn = /*#__PURE__*/ M(Cn, [["render", jn]]), Nn = {
|
|
1748
1802
|
props: {
|
|
1749
1803
|
isChecked: {
|
|
1750
1804
|
type: Boolean,
|
|
@@ -1764,20 +1818,20 @@ var Mn = /*#__PURE__*/ A(Cn, [["render", jn]]), Nn = {
|
|
|
1764
1818
|
function Ln(e, t, n, r, o, s) {
|
|
1765
1819
|
return p(), i("button", {
|
|
1766
1820
|
type: "button",
|
|
1767
|
-
onClick: t[0] ||=
|
|
1821
|
+
onClick: t[0] ||= E((...e) => s.toggle && s.toggle(...e), ["prevent"]),
|
|
1768
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"
|
|
1769
|
-
}, [a("span", Pn, [
|
|
1823
|
+
}, [a("span", Pn, [w((p(), i("svg", Fn, [...t[1] ||= [a("path", {
|
|
1770
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",
|
|
1771
1825
|
"clip-rule": "evenodd",
|
|
1772
1826
|
"fill-rule": "evenodd"
|
|
1773
|
-
}, null, -1)]], 512)), [[
|
|
1827
|
+
}, null, -1)]], 512)), [[S, n.isChecked]])]), a("span", {
|
|
1774
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",
|
|
1775
1829
|
textContent: y(n.name)
|
|
1776
1830
|
}, null, 8, In)]);
|
|
1777
1831
|
}
|
|
1778
|
-
var Rn = /*#__PURE__*/
|
|
1779
|
-
components: { CrossButton:
|
|
1780
|
-
mixins: [
|
|
1832
|
+
var Rn = /*#__PURE__*/ M(Nn, [["render", Ln]]), zn = {
|
|
1833
|
+
components: { CrossButton: I },
|
|
1834
|
+
mixins: [F],
|
|
1781
1835
|
emits: ["update:modelValue"],
|
|
1782
1836
|
props: { modelValue: {
|
|
1783
1837
|
type: String,
|
|
@@ -1812,7 +1866,7 @@ var Rn = /*#__PURE__*/ A(Nn, [["render", Ln]]), zn = {
|
|
|
1812
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"];
|
|
1813
1867
|
function Un(e, t, n, r, o, s) {
|
|
1814
1868
|
let l = g("cross-button");
|
|
1815
|
-
return p(), i("div", Bn, [a("div", Vn, [
|
|
1869
|
+
return p(), i("div", Bn, [a("div", Vn, [w(a("input", {
|
|
1816
1870
|
ref: "input",
|
|
1817
1871
|
type: "text",
|
|
1818
1872
|
autocomplete: "off",
|
|
@@ -1820,22 +1874,22 @@ function Un(e, t, n, r, o, s) {
|
|
|
1820
1874
|
placeholder: e.texts.search,
|
|
1821
1875
|
"aria-label": e.texts.search,
|
|
1822
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",
|
|
1823
|
-
onKeydown: t[1] ||=
|
|
1824
|
-
}, null, 40, Hn), [[
|
|
1877
|
+
onKeydown: t[1] ||= T(E(() => {}, ["prevent"]), ["enter"])
|
|
1878
|
+
}, null, 40, Hn), [[ee, s.query]]), w(c(l, {
|
|
1825
1879
|
ref: "eraser",
|
|
1826
1880
|
size: "small",
|
|
1827
1881
|
lang: e.lang,
|
|
1828
1882
|
onClicked: s.clearQuery,
|
|
1829
1883
|
class: "bb:absolute bb:right-0 bb:top-0 bb:pr-2 bb:h-full"
|
|
1830
|
-
}, null, 8, ["lang", "onClicked"]), [[
|
|
1884
|
+
}, null, 8, ["lang", "onClicked"]), [[S, s.query !== ""]])])]);
|
|
1831
1885
|
}
|
|
1832
|
-
var Wn = /*#__PURE__*/
|
|
1886
|
+
var Wn = /*#__PURE__*/ M(zn, [["render", Un]]), Gn = {
|
|
1833
1887
|
components: {
|
|
1834
1888
|
DropdownButton: Mn,
|
|
1835
1889
|
ListElement: Rn,
|
|
1836
1890
|
ListSearchField: Wn
|
|
1837
1891
|
},
|
|
1838
|
-
mixins: [
|
|
1892
|
+
mixins: [F, Sn],
|
|
1839
1893
|
emits: ["update:modelValue", "changed"],
|
|
1840
1894
|
props: {
|
|
1841
1895
|
items: {
|
|
@@ -1912,7 +1966,7 @@ function Jn(t, a, o, s, c, l) {
|
|
|
1912
1966
|
onErased: l.clear,
|
|
1913
1967
|
onToggle: t.onSearchToggle
|
|
1914
1968
|
}, {
|
|
1915
|
-
default:
|
|
1969
|
+
default: C(() => [t.withSearch ? (p(), n(u, {
|
|
1916
1970
|
key: 0,
|
|
1917
1971
|
ref: "search",
|
|
1918
1972
|
modelValue: t.query,
|
|
@@ -1955,9 +2009,9 @@ function Jn(t, a, o, s, c, l) {
|
|
|
1955
2009
|
"onToggle"
|
|
1956
2010
|
])) : r("", !0)]);
|
|
1957
2011
|
}
|
|
1958
|
-
var Yn = /*#__PURE__*/
|
|
2012
|
+
var Yn = /*#__PURE__*/ M(Gn, [["render", Jn]]), Xn = {
|
|
1959
2013
|
components: {
|
|
1960
|
-
ElementHeader:
|
|
2014
|
+
ElementHeader: P,
|
|
1961
2015
|
SelectMultiple: Yn
|
|
1962
2016
|
},
|
|
1963
2017
|
emits: ["update:modelValue", "changed"],
|
|
@@ -2016,9 +2070,9 @@ function $n(e, t, n, r, o, s) {
|
|
|
2016
2070
|
"lang"
|
|
2017
2071
|
])])]);
|
|
2018
2072
|
}
|
|
2019
|
-
var er = /*#__PURE__*/
|
|
2073
|
+
var er = /*#__PURE__*/ M(Xn, [["render", $n]]), tr = {
|
|
2020
2074
|
components: {
|
|
2021
|
-
Dot:
|
|
2075
|
+
Dot: N,
|
|
2022
2076
|
FieldDescription: W,
|
|
2023
2077
|
SelectMultiple: Yn
|
|
2024
2078
|
},
|
|
@@ -2061,10 +2115,10 @@ function or(e, t, o, l, u, d) {
|
|
|
2061
2115
|
id: l.labelId,
|
|
2062
2116
|
class: "bb:block bb:text-sm bb:font-medium bb:leading-5 bb:text-gray-700",
|
|
2063
2117
|
textContent: y(o.label ?? "")
|
|
2064
|
-
}, null, 8, ir),
|
|
2065
|
-
color: "red",
|
|
2118
|
+
}, null, 8, ir), w(c(f, {
|
|
2119
|
+
color: "red-pale",
|
|
2066
2120
|
class: "bb:ml-2"
|
|
2067
|
-
}, null, 512), [[
|
|
2121
|
+
}, null, 512), [[S, o.isRequired]])]),
|
|
2068
2122
|
a("div", ar, [c(m, {
|
|
2069
2123
|
items: o.items,
|
|
2070
2124
|
"model-value": o.modelValue,
|
|
@@ -2086,12 +2140,12 @@ function or(e, t, o, l, u, d) {
|
|
|
2086
2140
|
key: 0,
|
|
2087
2141
|
id: e.descriptionId(l.labelId)
|
|
2088
2142
|
}, {
|
|
2089
|
-
default:
|
|
2143
|
+
default: C(() => [h(e.$slots, "description", {}, () => [s(y(e.description), 1)])]),
|
|
2090
2144
|
_: 3
|
|
2091
2145
|
}, 8, ["id"])) : r("", !0)
|
|
2092
2146
|
]);
|
|
2093
2147
|
}
|
|
2094
|
-
var sr = /*#__PURE__*/
|
|
2148
|
+
var sr = /*#__PURE__*/ M(tr, [["render", or]]);
|
|
2095
2149
|
function G(e) {
|
|
2096
2150
|
return Number.isInteger(e) && e >= 1;
|
|
2097
2151
|
}
|
|
@@ -2116,7 +2170,7 @@ function lr(e, t) {
|
|
|
2116
2170
|
//#region src/components/SelectMultipleList.vue
|
|
2117
2171
|
var ur = {
|
|
2118
2172
|
components: {
|
|
2119
|
-
Dot:
|
|
2173
|
+
Dot: N,
|
|
2120
2174
|
FieldDescription: W
|
|
2121
2175
|
},
|
|
2122
2176
|
mixins: [U],
|
|
@@ -2184,16 +2238,16 @@ var ur = {
|
|
|
2184
2238
|
"aria-hidden": "true"
|
|
2185
2239
|
}, vr = ["textContent"];
|
|
2186
2240
|
function yr(t, o, l, u, _, v) {
|
|
2187
|
-
let b = g("dot"),
|
|
2241
|
+
let b = g("dot"), x = g("field-description");
|
|
2188
2242
|
return p(), i("div", dr, [
|
|
2189
2243
|
a("div", fr, [a("span", {
|
|
2190
2244
|
id: u.labelId,
|
|
2191
2245
|
class: "bb:block bb:text-sm bb:font-medium bb:leading-5 bb:text-gray-700",
|
|
2192
2246
|
textContent: y(l.label ?? "")
|
|
2193
|
-
}, null, 8, pr),
|
|
2194
|
-
color: "red",
|
|
2247
|
+
}, null, 8, pr), w(c(b, {
|
|
2248
|
+
color: "red-pale",
|
|
2195
2249
|
class: "bb:ml-2"
|
|
2196
|
-
}, null, 512), [[
|
|
2250
|
+
}, null, 512), [[S, l.isRequired]])]),
|
|
2197
2251
|
v.itemList.length > 0 ? (p(), i("div", {
|
|
2198
2252
|
key: 0,
|
|
2199
2253
|
role: "group",
|
|
@@ -2214,22 +2268,22 @@ function yr(t, o, l, u, _, v) {
|
|
|
2214
2268
|
class: "bb:ml-3 bb:text-sm bb:font-medium bb:text-gray-700",
|
|
2215
2269
|
textContent: y(v.itemName(e))
|
|
2216
2270
|
}, null, 8, vr)], 4))), 128))], 12, mr)) : r("", !0),
|
|
2217
|
-
t.hasDescription() ? (p(), n(
|
|
2271
|
+
t.hasDescription() ? (p(), n(x, {
|
|
2218
2272
|
key: 1,
|
|
2219
2273
|
id: t.descriptionId(u.labelId)
|
|
2220
2274
|
}, {
|
|
2221
|
-
default:
|
|
2275
|
+
default: C(() => [h(t.$slots, "description", {}, () => [s(y(t.description), 1)])]),
|
|
2222
2276
|
_: 3
|
|
2223
2277
|
}, 8, ["id"])) : r("", !0)
|
|
2224
2278
|
]);
|
|
2225
2279
|
}
|
|
2226
|
-
var br = /*#__PURE__*/
|
|
2280
|
+
var br = /*#__PURE__*/ M(ur, [["render", yr]]), xr = {
|
|
2227
2281
|
components: {
|
|
2228
2282
|
DropdownButton: Mn,
|
|
2229
2283
|
ListElement: Rn,
|
|
2230
2284
|
ListSearchField: Wn
|
|
2231
2285
|
},
|
|
2232
|
-
mixins: [
|
|
2286
|
+
mixins: [F, Sn],
|
|
2233
2287
|
emits: ["update:modelValue", "changed"],
|
|
2234
2288
|
props: {
|
|
2235
2289
|
items: {
|
|
@@ -2315,7 +2369,7 @@ function wr(t, a, o, s, c, l) {
|
|
|
2315
2369
|
onErased: l.clear,
|
|
2316
2370
|
onToggle: t.onSearchToggle
|
|
2317
2371
|
}, {
|
|
2318
|
-
default:
|
|
2372
|
+
default: C(() => [t.withSearch ? (p(), n(u, {
|
|
2319
2373
|
key: 0,
|
|
2320
2374
|
ref: "search",
|
|
2321
2375
|
modelValue: t.query,
|
|
@@ -2357,9 +2411,9 @@ function wr(t, a, o, s, c, l) {
|
|
|
2357
2411
|
"onToggle"
|
|
2358
2412
|
])) : r("", !0)]);
|
|
2359
2413
|
}
|
|
2360
|
-
var q = /*#__PURE__*/
|
|
2414
|
+
var q = /*#__PURE__*/ M(xr, [["render", wr]]), Tr = {
|
|
2361
2415
|
components: {
|
|
2362
|
-
ElementHeader:
|
|
2416
|
+
ElementHeader: P,
|
|
2363
2417
|
SelectSingle: q
|
|
2364
2418
|
},
|
|
2365
2419
|
emits: ["update:modelValue", "changed"],
|
|
@@ -2418,9 +2472,9 @@ function Or(e, t, n, r, o, s) {
|
|
|
2418
2472
|
"lang"
|
|
2419
2473
|
])])]);
|
|
2420
2474
|
}
|
|
2421
|
-
var kr = /*#__PURE__*/
|
|
2475
|
+
var kr = /*#__PURE__*/ M(Tr, [["render", Or]]), Ar = {
|
|
2422
2476
|
components: {
|
|
2423
|
-
Dot:
|
|
2477
|
+
Dot: N,
|
|
2424
2478
|
FieldDescription: W,
|
|
2425
2479
|
SelectSingle: q
|
|
2426
2480
|
},
|
|
@@ -2463,10 +2517,10 @@ function Fr(e, t, o, l, u, d) {
|
|
|
2463
2517
|
id: l.labelId,
|
|
2464
2518
|
class: "bb:block bb:text-sm bb:font-medium bb:leading-5 bb:text-gray-700",
|
|
2465
2519
|
textContent: y(o.label ?? "")
|
|
2466
|
-
}, null, 8, Nr),
|
|
2467
|
-
color: "red",
|
|
2520
|
+
}, null, 8, Nr), w(c(f, {
|
|
2521
|
+
color: "red-pale",
|
|
2468
2522
|
class: "bb:ml-2"
|
|
2469
|
-
}, null, 512), [[
|
|
2523
|
+
}, null, 512), [[S, o.isRequired]])]),
|
|
2470
2524
|
a("div", Pr, [c(m, {
|
|
2471
2525
|
items: o.items,
|
|
2472
2526
|
"model-value": o.modelValue,
|
|
@@ -2488,14 +2542,14 @@ function Fr(e, t, o, l, u, d) {
|
|
|
2488
2542
|
key: 0,
|
|
2489
2543
|
id: e.descriptionId(l.labelId)
|
|
2490
2544
|
}, {
|
|
2491
|
-
default:
|
|
2545
|
+
default: C(() => [h(e.$slots, "description", {}, () => [s(y(e.description), 1)])]),
|
|
2492
2546
|
_: 3
|
|
2493
2547
|
}, 8, ["id"])) : r("", !0)
|
|
2494
2548
|
]);
|
|
2495
2549
|
}
|
|
2496
|
-
var Ir = /*#__PURE__*/
|
|
2550
|
+
var Ir = /*#__PURE__*/ M(Ar, [["render", Fr]]), Lr = {
|
|
2497
2551
|
components: {
|
|
2498
|
-
Dot:
|
|
2552
|
+
Dot: N,
|
|
2499
2553
|
FieldDescription: W
|
|
2500
2554
|
},
|
|
2501
2555
|
mixins: [U],
|
|
@@ -2569,16 +2623,16 @@ var Ir = /*#__PURE__*/ A(Ar, [["render", Fr]]), Lr = {
|
|
|
2569
2623
|
class: "bb:size-2 bb:rounded-full bb:bg-indigo-600 bb:forced-colors:bg-[CanvasText]"
|
|
2570
2624
|
}, Wr = ["textContent"];
|
|
2571
2625
|
function Gr(t, o, l, u, _, v) {
|
|
2572
|
-
let b = g("dot"),
|
|
2626
|
+
let b = g("dot"), x = g("field-description");
|
|
2573
2627
|
return p(), i("div", Rr, [
|
|
2574
2628
|
a("div", zr, [a("span", {
|
|
2575
2629
|
id: u.labelId,
|
|
2576
2630
|
class: "bb:block bb:text-sm bb:font-medium bb:leading-5 bb:text-gray-700",
|
|
2577
2631
|
textContent: y(l.label ?? "")
|
|
2578
|
-
}, null, 8, Br),
|
|
2579
|
-
color: "red",
|
|
2632
|
+
}, null, 8, Br), w(c(b, {
|
|
2633
|
+
color: "red-pale",
|
|
2580
2634
|
class: "bb:ml-2"
|
|
2581
|
-
}, null, 512), [[
|
|
2635
|
+
}, null, 512), [[S, l.isRequired]])]),
|
|
2582
2636
|
v.itemList.length > 0 ? (p(), i("div", {
|
|
2583
2637
|
key: 0,
|
|
2584
2638
|
role: "radiogroup",
|
|
@@ -2604,16 +2658,16 @@ function Gr(t, o, l, u, _, v) {
|
|
|
2604
2658
|
textContent: y(v.itemName(e))
|
|
2605
2659
|
}, null, 8, Wr)
|
|
2606
2660
|
], 6))), 128))], 12, Vr)) : r("", !0),
|
|
2607
|
-
t.hasDescription() ? (p(), n(
|
|
2661
|
+
t.hasDescription() ? (p(), n(x, {
|
|
2608
2662
|
key: 1,
|
|
2609
2663
|
id: t.descriptionId(u.labelId)
|
|
2610
2664
|
}, {
|
|
2611
|
-
default:
|
|
2665
|
+
default: C(() => [h(t.$slots, "description", {}, () => [s(y(t.description), 1)])]),
|
|
2612
2666
|
_: 3
|
|
2613
2667
|
}, 8, ["id"])) : r("", !0)
|
|
2614
2668
|
]);
|
|
2615
2669
|
}
|
|
2616
|
-
var Kr = /*#__PURE__*/
|
|
2670
|
+
var Kr = /*#__PURE__*/ M(Lr, [["render", Gr]]), qr = [
|
|
2617
2671
|
{
|
|
2618
2672
|
code: "AED",
|
|
2619
2673
|
digits: 2,
|
|
@@ -3475,7 +3529,7 @@ function Xr(e, t, r, i, a, o) {
|
|
|
3475
3529
|
"lang"
|
|
3476
3530
|
]);
|
|
3477
3531
|
}
|
|
3478
|
-
var Zr = /*#__PURE__*/
|
|
3532
|
+
var Zr = /*#__PURE__*/ M(Yr, [["render", Xr]]), Qr = {
|
|
3479
3533
|
components: { SelectSingleForm: Ir },
|
|
3480
3534
|
mixins: [U],
|
|
3481
3535
|
emits: ["update:modelValue", "changed"],
|
|
@@ -3523,7 +3577,7 @@ function $r(e, t, r, i, a, s) {
|
|
|
3523
3577
|
onChanged: t[1] ||= (t) => e.$emit("changed")
|
|
3524
3578
|
}, o({ _: 2 }, [e.$slots.description ? {
|
|
3525
3579
|
name: "description",
|
|
3526
|
-
fn:
|
|
3580
|
+
fn: C(() => [h(e.$slots, "description")]),
|
|
3527
3581
|
key: "0"
|
|
3528
3582
|
} : void 0]), 1032, [
|
|
3529
3583
|
"items",
|
|
@@ -3535,11 +3589,11 @@ function $r(e, t, r, i, a, s) {
|
|
|
3535
3589
|
"description"
|
|
3536
3590
|
]);
|
|
3537
3591
|
}
|
|
3538
|
-
var ei = /*#__PURE__*/
|
|
3592
|
+
var ei = /*#__PURE__*/ M(Qr, [["render", $r]]);
|
|
3539
3593
|
function X(e) {
|
|
3540
3594
|
return !Number.isInteger(e) || e < 0 || e >= 10 ** 15 ? null : e;
|
|
3541
3595
|
}
|
|
3542
|
-
function
|
|
3596
|
+
function ti(e, t) {
|
|
3543
3597
|
if (e === null) return {
|
|
3544
3598
|
whole: "",
|
|
3545
3599
|
fraction: ""
|
|
@@ -3550,25 +3604,25 @@ function Z(e, t) {
|
|
|
3550
3604
|
fraction: n.slice(r)
|
|
3551
3605
|
};
|
|
3552
3606
|
}
|
|
3553
|
-
function
|
|
3607
|
+
function ni(e, t, n) {
|
|
3554
3608
|
return e === "" && t === "" ? null : Number((e || "0") + t.padEnd(n, "0"));
|
|
3555
3609
|
}
|
|
3556
|
-
function
|
|
3610
|
+
function ri(e) {
|
|
3557
3611
|
return e.replace(/\D/g, "");
|
|
3558
3612
|
}
|
|
3559
|
-
function ri(e, t) {
|
|
3560
|
-
return ni(e).replace(/^0+(?=\d)/, "").slice(0, 15 - t);
|
|
3561
|
-
}
|
|
3562
3613
|
function ii(e, t) {
|
|
3614
|
+
return ri(e).replace(/^0+(?=\d)/, "").slice(0, 15 - t);
|
|
3615
|
+
}
|
|
3616
|
+
function ai(e, t) {
|
|
3563
3617
|
return e.replace(/\B(?=(\d{3})+$)/g, t === "en" ? "," : " ");
|
|
3564
3618
|
}
|
|
3565
|
-
function
|
|
3619
|
+
function oi(e) {
|
|
3566
3620
|
return e === "en" ? "." : ",";
|
|
3567
3621
|
}
|
|
3568
|
-
function
|
|
3622
|
+
function si(e, t) {
|
|
3569
3623
|
return e === "." || e === "," && t !== "en";
|
|
3570
3624
|
}
|
|
3571
|
-
function
|
|
3625
|
+
function ci(e, t, n) {
|
|
3572
3626
|
let r = e.trim();
|
|
3573
3627
|
if (!/^\d+([ \u00a0\u202f.,]\d+)*$/.test(r)) return null;
|
|
3574
3628
|
let i = r.match(/[.,]/g) ?? [], a = new Set(i), o = null;
|
|
@@ -3590,7 +3644,7 @@ function si(e, t, n) {
|
|
|
3590
3644
|
}
|
|
3591
3645
|
//#endregion
|
|
3592
3646
|
//#region src/amountCurrency.js
|
|
3593
|
-
var
|
|
3647
|
+
var li = {
|
|
3594
3648
|
props: { currencies: {
|
|
3595
3649
|
type: Array,
|
|
3596
3650
|
default: null
|
|
@@ -3624,9 +3678,9 @@ var ci = {
|
|
|
3624
3678
|
methods: { syncCurrency() {
|
|
3625
3679
|
!this.isBlocked && this.activeCode !== this.passedCurrency && this.reportCurrency(this.activeCode);
|
|
3626
3680
|
} }
|
|
3627
|
-
},
|
|
3681
|
+
}, ui = {
|
|
3628
3682
|
components: { SelectSingle: q },
|
|
3629
|
-
mixins: [
|
|
3683
|
+
mixins: [F],
|
|
3630
3684
|
emits: ["update:modelValue"],
|
|
3631
3685
|
props: {
|
|
3632
3686
|
currencies: {
|
|
@@ -3644,18 +3698,18 @@ var ci = {
|
|
|
3644
3698
|
computed: { items() {
|
|
3645
3699
|
return Y(this.currencies);
|
|
3646
3700
|
} }
|
|
3647
|
-
},
|
|
3648
|
-
function
|
|
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) {
|
|
3649
3703
|
let d = g("select-single");
|
|
3650
|
-
return p(), i("div",
|
|
3704
|
+
return p(), i("div", di, [u.items.length === 1 ? (p(), i("span", {
|
|
3651
3705
|
key: 0,
|
|
3652
3706
|
class: "bb:truncate bb:px-3",
|
|
3653
3707
|
textContent: y(u.items[0].name)
|
|
3654
|
-
}, null, 8,
|
|
3708
|
+
}, null, 8, fi)) : u.items.length > 1 ? (p(), i(e, { key: 1 }, [a("span", {
|
|
3655
3709
|
id: s.labelId,
|
|
3656
3710
|
class: "bb:sr-only",
|
|
3657
3711
|
textContent: y(t.texts.currency)
|
|
3658
|
-
}, null, 8,
|
|
3712
|
+
}, null, 8, pi), c(d, {
|
|
3659
3713
|
items: u.items,
|
|
3660
3714
|
"model-value": o.modelValue,
|
|
3661
3715
|
"labelled-by": s.labelId,
|
|
@@ -3671,9 +3725,9 @@ function pi(t, n, o, s, l, u) {
|
|
|
3671
3725
|
"lang"
|
|
3672
3726
|
])], 64)) : r("", !0)]);
|
|
3673
3727
|
}
|
|
3674
|
-
var
|
|
3675
|
-
components: { CrossButton:
|
|
3676
|
-
mixins: [
|
|
3728
|
+
var hi = /*#__PURE__*/ M(ui, [["render", mi]]), gi = {
|
|
3729
|
+
components: { CrossButton: I },
|
|
3730
|
+
mixins: [F],
|
|
3677
3731
|
emits: ["update:modelValue", "changed"],
|
|
3678
3732
|
props: {
|
|
3679
3733
|
modelValue: {
|
|
@@ -3707,13 +3761,13 @@ var mi = /*#__PURE__*/ A(li, [["render", pi]]), hi = {
|
|
|
3707
3761
|
},
|
|
3708
3762
|
data() {
|
|
3709
3763
|
return {
|
|
3710
|
-
...
|
|
3764
|
+
...ti(this.isDisabled ? null : X(this.modelValue), this.digits),
|
|
3711
3765
|
hasFocus: !1
|
|
3712
3766
|
};
|
|
3713
3767
|
},
|
|
3714
3768
|
computed: {
|
|
3715
3769
|
amount() {
|
|
3716
|
-
return
|
|
3770
|
+
return ni(this.whole, this.fraction, this.digits);
|
|
3717
3771
|
},
|
|
3718
3772
|
isEmpty() {
|
|
3719
3773
|
return this.amount === null;
|
|
@@ -3722,14 +3776,14 @@ var mi = /*#__PURE__*/ A(li, [["render", pi]]), hi = {
|
|
|
3722
3776
|
return this.isEmpty && !this.hasFocus;
|
|
3723
3777
|
},
|
|
3724
3778
|
groupedWhole() {
|
|
3725
|
-
return
|
|
3779
|
+
return ai(this.whole, this.resolvedLang);
|
|
3726
3780
|
},
|
|
3727
3781
|
separator() {
|
|
3728
|
-
return
|
|
3782
|
+
return oi(this.resolvedLang);
|
|
3729
3783
|
},
|
|
3730
3784
|
fullAmount() {
|
|
3731
3785
|
if (this.isEmpty) return null;
|
|
3732
|
-
let { whole: e, fraction: t } =
|
|
3786
|
+
let { whole: e, fraction: t } = ti(this.amount, this.digits), n = ai(e, this.resolvedLang);
|
|
3733
3787
|
return t === "" ? n : `${n}${this.separator}${t}`;
|
|
3734
3788
|
}
|
|
3735
3789
|
},
|
|
@@ -3754,7 +3808,7 @@ var mi = /*#__PURE__*/ A(li, [["render", pi]]), hi = {
|
|
|
3754
3808
|
this.writeAmount(o, t), this.committed = o;
|
|
3755
3809
|
return;
|
|
3756
3810
|
}
|
|
3757
|
-
let s =
|
|
3811
|
+
let s = ni(this.whole, this.fraction, i);
|
|
3758
3812
|
if (e === r || o === s) {
|
|
3759
3813
|
t !== i && this.writeAmount(s, t);
|
|
3760
3814
|
return;
|
|
@@ -3762,7 +3816,7 @@ var mi = /*#__PURE__*/ A(li, [["render", pi]]), hi = {
|
|
|
3762
3816
|
this.writeAmount(o, t), this.committed = o;
|
|
3763
3817
|
},
|
|
3764
3818
|
writeAmount(e, t) {
|
|
3765
|
-
let { whole: n, fraction: r } =
|
|
3819
|
+
let { whole: n, fraction: r } = ti(e, t);
|
|
3766
3820
|
this.whole = n, this.fraction = r;
|
|
3767
3821
|
},
|
|
3768
3822
|
applyParts(e, t) {
|
|
@@ -3770,10 +3824,10 @@ var mi = /*#__PURE__*/ A(li, [["render", pi]]), hi = {
|
|
|
3770
3824
|
this.whole = e, this.fraction = t, this.amount !== n && this.$emit("update:modelValue", this.amount);
|
|
3771
3825
|
},
|
|
3772
3826
|
onWholeInput(e) {
|
|
3773
|
-
this.applyParts(
|
|
3827
|
+
this.applyParts(ii(e.target.value, this.digits), this.fraction), e.target.value = this.groupedWhole;
|
|
3774
3828
|
},
|
|
3775
3829
|
onFractionInput(e) {
|
|
3776
|
-
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);
|
|
3777
3831
|
if (this.applyParts(this.whole, i), t.value = i, i !== n) {
|
|
3778
3832
|
let e = Math.max(r - (n.length - i.length), 0);
|
|
3779
3833
|
t.setSelectionRange(e, e);
|
|
@@ -3792,7 +3846,7 @@ var mi = /*#__PURE__*/ A(li, [["render", pi]]), hi = {
|
|
|
3792
3846
|
onWholeKeydown(e) {
|
|
3793
3847
|
this.holdCaret();
|
|
3794
3848
|
let t = e.metaKey || e.ctrlKey || e.altKey;
|
|
3795
|
-
this.digits > 0 && !t &&
|
|
3849
|
+
this.digits > 0 && !t && si(e.key, this.resolvedLang) && (e.preventDefault(), this.$refs.fractionInput.focus());
|
|
3796
3850
|
},
|
|
3797
3851
|
onFractionBackspace(e) {
|
|
3798
3852
|
this.fraction === "" && (e.preventDefault(), this.$refs.wholeInput.focus());
|
|
@@ -3804,7 +3858,7 @@ var mi = /*#__PURE__*/ A(li, [["render", pi]]), hi = {
|
|
|
3804
3858
|
this.fraction !== "" && (this.fraction = this.padFraction(this.fraction), this.whole = this.whole || "0");
|
|
3805
3859
|
},
|
|
3806
3860
|
onWholePaste(e) {
|
|
3807
|
-
let t =
|
|
3861
|
+
let t = ci(e.clipboardData?.getData("text") ?? "", this.resolvedLang, this.digits);
|
|
3808
3862
|
t !== null && (this.applyParts(t.whole, this.padFraction(t.fraction)), this.onWholeFocus());
|
|
3809
3863
|
},
|
|
3810
3864
|
onFractionPaste(e) {
|
|
@@ -3830,17 +3884,17 @@ var mi = /*#__PURE__*/ A(li, [["render", pi]]), hi = {
|
|
|
3830
3884
|
this.isUnmounted || this.isDisabled || this.amount === this.committed || (this.committed = this.amount, this.$emit("changed"));
|
|
3831
3885
|
}
|
|
3832
3886
|
}
|
|
3833
|
-
},
|
|
3887
|
+
}, _i = {
|
|
3834
3888
|
key: 0,
|
|
3835
3889
|
class: "bb:flex bb:flex-none bb:items-center bb:mr-2 bb:text-gray-400 bb:select-none"
|
|
3836
|
-
},
|
|
3890
|
+
}, vi = [
|
|
3837
3891
|
"id",
|
|
3838
3892
|
"value",
|
|
3839
3893
|
"disabled",
|
|
3840
3894
|
"aria-label",
|
|
3841
3895
|
"aria-describedby",
|
|
3842
3896
|
"title"
|
|
3843
|
-
],
|
|
3897
|
+
], yi = [
|
|
3844
3898
|
"value",
|
|
3845
3899
|
"disabled",
|
|
3846
3900
|
"maxlength",
|
|
@@ -3848,7 +3902,7 @@ var mi = /*#__PURE__*/ A(li, [["render", pi]]), hi = {
|
|
|
3848
3902
|
"aria-label",
|
|
3849
3903
|
"aria-describedby"
|
|
3850
3904
|
];
|
|
3851
|
-
function
|
|
3905
|
+
function bi(t, o, s, c, l, u) {
|
|
3852
3906
|
let m = g("cross-button");
|
|
3853
3907
|
return p(), i("div", {
|
|
3854
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 }]),
|
|
@@ -3856,7 +3910,7 @@ function yi(t, o, s, c, l, u) {
|
|
|
3856
3910
|
onFocusin: o[19] ||= (e) => l.hasFocus = !0,
|
|
3857
3911
|
onFocusout: o[20] ||= (...e) => u.onFocusOut && u.onFocusOut(...e)
|
|
3858
3912
|
}, [
|
|
3859
|
-
s.prefix ? (p(), i("span",
|
|
3913
|
+
s.prefix ? (p(), i("span", _i, y(s.prefix), 1)) : r("", !0),
|
|
3860
3914
|
a("input", {
|
|
3861
3915
|
ref: "wholeInput",
|
|
3862
3916
|
id: s.inputId,
|
|
@@ -3872,14 +3926,14 @@ function yi(t, o, s, c, l, u) {
|
|
|
3872
3926
|
onInput: o[0] ||= (...e) => u.onWholeInput && u.onWholeInput(...e),
|
|
3873
3927
|
onFocus: o[1] ||= (...e) => u.onWholeFocus && u.onWholeFocus(...e),
|
|
3874
3928
|
onClick: o[2] ||= (...e) => u.holdCaret && u.holdCaret(...e),
|
|
3875
|
-
onKeydown: [o[3] ||= (...e) => u.onWholeKeydown && u.onWholeKeydown(...e), o[4] ||=
|
|
3929
|
+
onKeydown: [o[3] ||= (...e) => u.onWholeKeydown && u.onWholeKeydown(...e), o[4] ||= T((...e) => u.commit && u.commit(...e), ["enter"])],
|
|
3876
3930
|
onKeyup: o[5] ||= (...e) => u.holdCaret && u.holdCaret(...e),
|
|
3877
3931
|
onSelect: o[6] ||= (...e) => u.holdCaret && u.holdCaret(...e),
|
|
3878
|
-
onPaste: o[7] ||=
|
|
3879
|
-
onDragstart: o[8] ||=
|
|
3880
|
-
onDrop: o[9] ||=
|
|
3881
|
-
}, null, 40,
|
|
3882
|
-
s.digits > 0 ? (p(), i(e, { key: 1 }, [
|
|
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", {
|
|
3883
3937
|
ref: "fractionInput",
|
|
3884
3938
|
type: "text",
|
|
3885
3939
|
inputmode: "numeric",
|
|
@@ -3894,18 +3948,18 @@ function yi(t, o, s, c, l, u) {
|
|
|
3894
3948
|
class: "bb:flex-none bb:bg-transparent bb:tabular-nums bb:placeholder-gray-400 bb:focus:outline-hidden",
|
|
3895
3949
|
onInput: o[10] ||= (...e) => u.onFractionInput && u.onFractionInput(...e),
|
|
3896
3950
|
onBlur: o[11] ||= (...e) => u.completeParts && u.completeParts(...e),
|
|
3897
|
-
onKeydown: [o[12] ||=
|
|
3898
|
-
onPaste: o[14] ||=
|
|
3899
|
-
onDragstart: o[15] ||=
|
|
3900
|
-
onDrop: o[16] ||=
|
|
3901
|
-
}, null, 44,
|
|
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),
|
|
3902
3956
|
s.withEraser ? (p(), n(m, {
|
|
3903
3957
|
key: 2,
|
|
3904
3958
|
ref: "eraser",
|
|
3905
3959
|
size: "small",
|
|
3906
3960
|
lang: t.lang,
|
|
3907
3961
|
class: d(["bb:h-full bb:pr-2 bb:flex-none", { "bb:invisible": u.isEmpty }]),
|
|
3908
|
-
onMousedown: o[17] ||=
|
|
3962
|
+
onMousedown: o[17] ||= E(() => {}, ["prevent"]),
|
|
3909
3963
|
onClicked: u.erase
|
|
3910
3964
|
}, null, 8, [
|
|
3911
3965
|
"lang",
|
|
@@ -3914,14 +3968,14 @@ function yi(t, o, s, c, l, u) {
|
|
|
3914
3968
|
])) : r("", !0)
|
|
3915
3969
|
], 34);
|
|
3916
3970
|
}
|
|
3917
|
-
var
|
|
3971
|
+
var xi = /*#__PURE__*/ M(gi, [["render", bi]]), Si = {
|
|
3918
3972
|
components: {
|
|
3919
|
-
AmountCurrency:
|
|
3920
|
-
AmountInput:
|
|
3921
|
-
Dot:
|
|
3973
|
+
AmountCurrency: hi,
|
|
3974
|
+
AmountInput: xi,
|
|
3975
|
+
Dot: N,
|
|
3922
3976
|
FieldDescription: W
|
|
3923
3977
|
},
|
|
3924
|
-
mixins: [
|
|
3978
|
+
mixins: [li, U],
|
|
3925
3979
|
emits: ["update:modelValue", "changed"],
|
|
3926
3980
|
props: {
|
|
3927
3981
|
modelValue: {
|
|
@@ -3973,19 +4027,19 @@ var bi = /*#__PURE__*/ A(hi, [["render", yi]]), xi = {
|
|
|
3973
4027
|
this.reportCurrency(e), this.passedAmount !== null && this.$emit("changed");
|
|
3974
4028
|
}
|
|
3975
4029
|
}
|
|
3976
|
-
},
|
|
3977
|
-
function
|
|
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) {
|
|
3978
4032
|
let f = g("dot"), m = g("amount-input"), _ = g("amount-currency"), v = g("field-description");
|
|
3979
|
-
return p(), i("div",
|
|
3980
|
-
a("div",
|
|
4033
|
+
return p(), i("div", Ci, [
|
|
4034
|
+
a("div", wi, [a("label", {
|
|
3981
4035
|
for: l.inputId,
|
|
3982
4036
|
class: "bb:block bb:text-sm bb:font-medium bb:leading-5 bb:text-gray-700",
|
|
3983
4037
|
textContent: y(o.label)
|
|
3984
|
-
}, null, 8,
|
|
3985
|
-
color: "red",
|
|
4038
|
+
}, null, 8, Ti), w(c(f, {
|
|
4039
|
+
color: "red-pale",
|
|
3986
4040
|
class: "bb:ml-2"
|
|
3987
|
-
}, null, 512), [[
|
|
3988
|
-
a("div",
|
|
4041
|
+
}, null, 512), [[S, o.isRequired]])]),
|
|
4042
|
+
a("div", Ei, [a("div", Di, [c(m, {
|
|
3989
4043
|
"model-value": d.passedAmount,
|
|
3990
4044
|
digits: e.fractionDigits,
|
|
3991
4045
|
"input-id": l.inputId,
|
|
@@ -4004,7 +4058,7 @@ function Oi(e, t, o, l, u, d) {
|
|
|
4004
4058
|
"is-disabled",
|
|
4005
4059
|
"lang",
|
|
4006
4060
|
"onUpdate:modelValue"
|
|
4007
|
-
])]), a("div",
|
|
4061
|
+
])]), a("div", Oi, [c(_, {
|
|
4008
4062
|
currencies: e.currencyList,
|
|
4009
4063
|
"model-value": e.activeCode,
|
|
4010
4064
|
lang: o.lang,
|
|
@@ -4019,14 +4073,14 @@ function Oi(e, t, o, l, u, d) {
|
|
|
4019
4073
|
key: 0,
|
|
4020
4074
|
id: e.descriptionId(l.inputId)
|
|
4021
4075
|
}, {
|
|
4022
|
-
default:
|
|
4076
|
+
default: C(() => [h(e.$slots, "description", {}, () => [s(y(e.description), 1)])]),
|
|
4023
4077
|
_: 3
|
|
4024
4078
|
}, 8, ["id"])) : r("", !0)
|
|
4025
4079
|
]);
|
|
4026
4080
|
}
|
|
4027
|
-
var
|
|
4081
|
+
var Ai = /*#__PURE__*/ M(Si, [["render", ki]]), ji = {
|
|
4028
4082
|
inheritAttrs: !1,
|
|
4029
|
-
mixins: [
|
|
4083
|
+
mixins: [F, li],
|
|
4030
4084
|
emits: [
|
|
4031
4085
|
"update:amountFrom",
|
|
4032
4086
|
"update:amountTo",
|
|
@@ -4092,19 +4146,19 @@ var ki = /*#__PURE__*/ A(xi, [["render", Oi]]), Ai = {
|
|
|
4092
4146
|
}
|
|
4093
4147
|
}
|
|
4094
4148
|
};
|
|
4095
|
-
function
|
|
4149
|
+
function Mi(e, t, n, r, i, a) {
|
|
4096
4150
|
return h(e.$slots, "default", {
|
|
4097
4151
|
from: a.from,
|
|
4098
4152
|
to: a.to,
|
|
4099
4153
|
currency: a.currencyField
|
|
4100
4154
|
});
|
|
4101
4155
|
}
|
|
4102
|
-
var
|
|
4156
|
+
var Ni = /*#__PURE__*/ M(ji, [["render", Mi]]), Pi = {
|
|
4103
4157
|
components: {
|
|
4104
|
-
AmountCurrency:
|
|
4105
|
-
AmountInput:
|
|
4106
|
-
AmountInterval:
|
|
4107
|
-
ElementHeader:
|
|
4158
|
+
AmountCurrency: hi,
|
|
4159
|
+
AmountInput: xi,
|
|
4160
|
+
AmountInterval: Ni,
|
|
4161
|
+
ElementHeader: P
|
|
4108
4162
|
},
|
|
4109
4163
|
emits: [
|
|
4110
4164
|
"update:amountFrom",
|
|
@@ -4154,13 +4208,13 @@ var Mi = /*#__PURE__*/ A(Ai, [["render", ji]]), Ni = {
|
|
|
4154
4208
|
default: null
|
|
4155
4209
|
}
|
|
4156
4210
|
}
|
|
4157
|
-
},
|
|
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 = {
|
|
4158
4212
|
key: 0,
|
|
4159
4213
|
class: "bb:w-24 bb:flex-none bb:text-sm"
|
|
4160
4214
|
};
|
|
4161
|
-
function
|
|
4215
|
+
function Hi(e, t, n, o, s, l) {
|
|
4162
4216
|
let u = g("element-header"), d = g("amount-input"), f = g("amount-currency"), m = g("amount-interval");
|
|
4163
|
-
return p(), i("div",
|
|
4217
|
+
return p(), i("div", Fi, [a("div", Ii, [a("div", Li, [c(u, {
|
|
4164
4218
|
text: n.header ?? "",
|
|
4165
4219
|
"is-required": n.isRequired,
|
|
4166
4220
|
"is-loading": n.isLoading
|
|
@@ -4179,8 +4233,8 @@ function Vi(e, t, n, o, s, l) {
|
|
|
4179
4233
|
"onUpdate:currency": t[2] ||= (t) => e.$emit("update:currency", t),
|
|
4180
4234
|
onChanged: t[3] ||= (t) => e.$emit("changed")
|
|
4181
4235
|
}, {
|
|
4182
|
-
default:
|
|
4183
|
-
a("div",
|
|
4236
|
+
default: C(({ from: e, to: t, currency: o }) => [a("div", Ri, [
|
|
4237
|
+
a("div", zi, [c(d, {
|
|
4184
4238
|
"model-value": e.value,
|
|
4185
4239
|
digits: o.digits,
|
|
4186
4240
|
prefix: e.prefix,
|
|
@@ -4199,7 +4253,7 @@ function Vi(e, t, n, o, s, l) {
|
|
|
4199
4253
|
"onUpdate:modelValue",
|
|
4200
4254
|
"onChanged"
|
|
4201
4255
|
])]),
|
|
4202
|
-
a("div",
|
|
4256
|
+
a("div", Bi, [c(d, {
|
|
4203
4257
|
"model-value": t.value,
|
|
4204
4258
|
digits: o.digits,
|
|
4205
4259
|
prefix: t.prefix,
|
|
@@ -4218,7 +4272,7 @@ function Vi(e, t, n, o, s, l) {
|
|
|
4218
4272
|
"onUpdate:modelValue",
|
|
4219
4273
|
"onChanged"
|
|
4220
4274
|
])]),
|
|
4221
|
-
n.withCurrency ? (p(), i("div",
|
|
4275
|
+
n.withCurrency ? (p(), i("div", Vi, [c(f, {
|
|
4222
4276
|
currencies: o.list,
|
|
4223
4277
|
"model-value": o.code,
|
|
4224
4278
|
lang: n.lang,
|
|
@@ -4239,12 +4293,12 @@ function Vi(e, t, n, o, s, l) {
|
|
|
4239
4293
|
"lang"
|
|
4240
4294
|
])])])]);
|
|
4241
4295
|
}
|
|
4242
|
-
var
|
|
4296
|
+
var Ui = /*#__PURE__*/ M(Pi, [["render", Hi]]), Wi = {
|
|
4243
4297
|
components: {
|
|
4244
|
-
AmountCurrency:
|
|
4245
|
-
AmountInput:
|
|
4246
|
-
AmountInterval:
|
|
4247
|
-
Dot:
|
|
4298
|
+
AmountCurrency: hi,
|
|
4299
|
+
AmountInput: xi,
|
|
4300
|
+
AmountInterval: Ni,
|
|
4301
|
+
Dot: N,
|
|
4248
4302
|
FieldDescription: W
|
|
4249
4303
|
},
|
|
4250
4304
|
mixins: [U],
|
|
@@ -4291,18 +4345,18 @@ var Hi = /*#__PURE__*/ A(Ni, [["render", Vi]]), Ui = {
|
|
|
4291
4345
|
setup() {
|
|
4292
4346
|
return { labelId: b() };
|
|
4293
4347
|
}
|
|
4294
|
-
},
|
|
4295
|
-
function
|
|
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) {
|
|
4296
4350
|
let f = g("dot"), m = g("amount-input"), _ = g("amount-currency"), v = g("amount-interval"), b = g("field-description");
|
|
4297
|
-
return p(), i("div",
|
|
4298
|
-
a("div",
|
|
4351
|
+
return p(), i("div", Gi, [
|
|
4352
|
+
a("div", Ki, [a("span", {
|
|
4299
4353
|
id: l.labelId,
|
|
4300
4354
|
class: "bb:block bb:text-sm bb:font-medium bb:leading-5 bb:text-gray-700",
|
|
4301
4355
|
textContent: y(o.label ?? "")
|
|
4302
|
-
}, null, 8,
|
|
4303
|
-
color: "red",
|
|
4356
|
+
}, null, 8, qi), w(c(f, {
|
|
4357
|
+
color: "red-pale",
|
|
4304
4358
|
class: "bb:ml-2"
|
|
4305
|
-
}, null, 512), [[
|
|
4359
|
+
}, null, 512), [[S, o.isRequired]])]),
|
|
4306
4360
|
a("div", {
|
|
4307
4361
|
class: "bb:mt-1 bb:grid bb:grid-cols-[1fr_1fr_6rem] bb:gap-3",
|
|
4308
4362
|
role: "group",
|
|
@@ -4319,8 +4373,8 @@ function Zi(e, t, o, l, u, d) {
|
|
|
4319
4373
|
"onUpdate:currency": t[2] ||= (t) => e.$emit("update:currency", t),
|
|
4320
4374
|
onChanged: t[3] ||= (t) => e.$emit("changed")
|
|
4321
4375
|
}, {
|
|
4322
|
-
default:
|
|
4323
|
-
a("div",
|
|
4376
|
+
default: C(({ from: e, to: t, currency: n }) => [
|
|
4377
|
+
a("div", Yi, [c(m, {
|
|
4324
4378
|
"model-value": e.value,
|
|
4325
4379
|
digits: n.digits,
|
|
4326
4380
|
prefix: e.prefix,
|
|
@@ -4339,7 +4393,7 @@ function Zi(e, t, o, l, u, d) {
|
|
|
4339
4393
|
"onUpdate:modelValue",
|
|
4340
4394
|
"onChanged"
|
|
4341
4395
|
])]),
|
|
4342
|
-
a("div",
|
|
4396
|
+
a("div", Xi, [c(m, {
|
|
4343
4397
|
"model-value": t.value,
|
|
4344
4398
|
digits: n.digits,
|
|
4345
4399
|
prefix: t.prefix,
|
|
@@ -4358,7 +4412,7 @@ function Zi(e, t, o, l, u, d) {
|
|
|
4358
4412
|
"onUpdate:modelValue",
|
|
4359
4413
|
"onChanged"
|
|
4360
4414
|
])]),
|
|
4361
|
-
a("div",
|
|
4415
|
+
a("div", Zi, [c(_, {
|
|
4362
4416
|
currencies: n.list,
|
|
4363
4417
|
"model-value": n.code,
|
|
4364
4418
|
lang: o.lang,
|
|
@@ -4377,18 +4431,18 @@ function Zi(e, t, o, l, u, d) {
|
|
|
4377
4431
|
"currency",
|
|
4378
4432
|
"currencies",
|
|
4379
4433
|
"lang"
|
|
4380
|
-
])], 8,
|
|
4434
|
+
])], 8, Ji),
|
|
4381
4435
|
e.hasDescription() ? (p(), n(b, {
|
|
4382
4436
|
key: 0,
|
|
4383
4437
|
id: e.descriptionId(l.labelId)
|
|
4384
4438
|
}, {
|
|
4385
|
-
default:
|
|
4439
|
+
default: C(() => [h(e.$slots, "description", {}, () => [s(y(e.description), 1)])]),
|
|
4386
4440
|
_: 3
|
|
4387
4441
|
}, 8, ["id"])) : r("", !0)
|
|
4388
4442
|
]);
|
|
4389
4443
|
}
|
|
4390
|
-
var
|
|
4391
|
-
mixins: [
|
|
4444
|
+
var $i = /*#__PURE__*/ M(Wi, [["render", Qi]]), ea = {
|
|
4445
|
+
mixins: [j],
|
|
4392
4446
|
props: {
|
|
4393
4447
|
text: {
|
|
4394
4448
|
type: String,
|
|
@@ -4397,17 +4451,17 @@ var Qi = /*#__PURE__*/ A(Ui, [["render", Zi]]), $i = {
|
|
|
4397
4451
|
color: {
|
|
4398
4452
|
type: String,
|
|
4399
4453
|
required: !0,
|
|
4400
|
-
validator:
|
|
4454
|
+
validator: A
|
|
4401
4455
|
}
|
|
4402
4456
|
}
|
|
4403
|
-
},
|
|
4404
|
-
function
|
|
4457
|
+
}, ta = ["textContent"];
|
|
4458
|
+
function na(e, t, n, r, a, o) {
|
|
4405
4459
|
return p(), i("span", {
|
|
4406
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")]),
|
|
4407
4461
|
textContent: y(n.text)
|
|
4408
|
-
}, null, 10,
|
|
4462
|
+
}, null, 10, ta);
|
|
4409
4463
|
}
|
|
4410
|
-
var
|
|
4464
|
+
var ra = /*#__PURE__*/ M(ea, [["render", na]]), ia = {
|
|
4411
4465
|
props: {
|
|
4412
4466
|
messages: {
|
|
4413
4467
|
type: [Object, Array],
|
|
@@ -4427,12 +4481,12 @@ var na = /*#__PURE__*/ A($i, [["render", ta]]), ra = {
|
|
|
4427
4481
|
return this.type === "dangerous";
|
|
4428
4482
|
}
|
|
4429
4483
|
}
|
|
4430
|
-
},
|
|
4431
|
-
function
|
|
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) {
|
|
4432
4486
|
return l.hasErrors ? (p(), i("div", {
|
|
4433
4487
|
key: 0,
|
|
4434
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"])
|
|
4435
|
-
}, [a("div",
|
|
4489
|
+
}, [a("div", aa, [a("div", oa, [(p(), i("svg", {
|
|
4436
4490
|
class: d(["bb:h-5 bb:w-5", l.isDangerous ? "bb:text-red-400" : "bb:text-yellow-400"]),
|
|
4437
4491
|
viewBox: "0 0 20 20",
|
|
4438
4492
|
fill: "currentColor"
|
|
@@ -4440,22 +4494,22 @@ function ca(t, n, o, s, c, l) {
|
|
|
4440
4494
|
"fill-rule": "evenodd",
|
|
4441
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",
|
|
4442
4496
|
"clip-rule": "evenodd"
|
|
4443
|
-
}, null, -1)]], 2))]), a("div",
|
|
4497
|
+
}, null, -1)]], 2))]), a("div", sa, [(p(!0), i(e, null, m(o.messages, (e, t) => (p(), i("p", {
|
|
4444
4498
|
class: d(["bb:text-sm bb:leading-5", l.isDangerous ? "bb:text-red-700" : "bb:text-yellow-700"]),
|
|
4445
4499
|
key: t,
|
|
4446
4500
|
textContent: y(e)
|
|
4447
|
-
}, null, 10,
|
|
4501
|
+
}, null, 10, ca))), 128))])])], 2)) : r("", !0);
|
|
4448
4502
|
}
|
|
4449
|
-
var
|
|
4503
|
+
var ua = /*#__PURE__*/ M(ia, [["render", la]]), da = [
|
|
4450
4504
|
"text",
|
|
4451
4505
|
"email",
|
|
4452
4506
|
"password",
|
|
4453
4507
|
"tel",
|
|
4454
4508
|
"url",
|
|
4455
4509
|
"search"
|
|
4456
|
-
],
|
|
4510
|
+
], fa = {
|
|
4457
4511
|
components: {
|
|
4458
|
-
Dot:
|
|
4512
|
+
Dot: N,
|
|
4459
4513
|
FieldDescription: W
|
|
4460
4514
|
},
|
|
4461
4515
|
mixins: [U],
|
|
@@ -4472,7 +4526,7 @@ var la = /*#__PURE__*/ A(ra, [["render", ca]]), ua = [
|
|
|
4472
4526
|
type: {
|
|
4473
4527
|
type: String,
|
|
4474
4528
|
default: "text",
|
|
4475
|
-
validator: (e) =>
|
|
4529
|
+
validator: (e) => da.includes(e)
|
|
4476
4530
|
},
|
|
4477
4531
|
isRequired: {
|
|
4478
4532
|
type: Boolean,
|
|
@@ -4493,7 +4547,7 @@ var la = /*#__PURE__*/ A(ra, [["render", ca]]), ua = [
|
|
|
4493
4547
|
}
|
|
4494
4548
|
},
|
|
4495
4549
|
inputType() {
|
|
4496
|
-
return
|
|
4550
|
+
return da.includes(this.type) ? this.type : "text";
|
|
4497
4551
|
}
|
|
4498
4552
|
},
|
|
4499
4553
|
methods: {
|
|
@@ -4512,112 +4566,271 @@ var la = /*#__PURE__*/ A(ra, [["render", ca]]), ua = [
|
|
|
4512
4566
|
].includes(e)));
|
|
4513
4567
|
}
|
|
4514
4568
|
}
|
|
4515
|
-
},
|
|
4569
|
+
}, pa = { class: "bb:flex bb:items-center" }, ma = ["for", "textContent"], ha = [
|
|
4516
4570
|
"id",
|
|
4517
4571
|
"aria-describedby",
|
|
4518
4572
|
"type"
|
|
4519
4573
|
];
|
|
4520
|
-
function
|
|
4574
|
+
function ga(e, t, o, l, m, _) {
|
|
4521
4575
|
let v = g("dot"), b = g("field-description");
|
|
4522
4576
|
return p(), i("div", {
|
|
4523
4577
|
class: d(["bb-dashboard-ui", e.$attrs.class]),
|
|
4524
4578
|
style: f(e.$attrs.style)
|
|
4525
4579
|
}, [
|
|
4526
|
-
a("div",
|
|
4580
|
+
a("div", pa, [a("label", {
|
|
4527
4581
|
for: _.inputId(),
|
|
4528
4582
|
class: "bb:block bb:text-sm bb:font-medium bb:leading-5 bb:text-gray-700",
|
|
4529
4583
|
textContent: y(o.label)
|
|
4530
|
-
}, null, 8,
|
|
4531
|
-
color: "red",
|
|
4584
|
+
}, null, 8, ma), w(c(v, {
|
|
4585
|
+
color: "red-pale",
|
|
4532
4586
|
class: "bb:ml-2"
|
|
4533
|
-
}, null, 512), [[
|
|
4534
|
-
|
|
4587
|
+
}, null, 512), [[S, o.isRequired]])]),
|
|
4588
|
+
w(a("input", u({ "onUpdate:modelValue": t[0] ||= (e) => _.value = e }, { ..._.inputAttrs() }, {
|
|
4535
4589
|
id: _.inputId(),
|
|
4536
4590
|
"aria-describedby": _.inputDescribedBy(),
|
|
4537
4591
|
type: _.inputType,
|
|
4538
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"
|
|
4539
|
-
}), null, 16,
|
|
4593
|
+
}), null, 16, ha), [[x, _.value]]),
|
|
4540
4594
|
e.hasDescription() ? (p(), n(b, {
|
|
4541
4595
|
key: 0,
|
|
4542
4596
|
id: e.descriptionId(_.inputId())
|
|
4543
4597
|
}, {
|
|
4544
|
-
default:
|
|
4598
|
+
default: C(() => [h(e.$slots, "description", {}, () => [s(y(e.description), 1)])]),
|
|
4545
4599
|
_: 3
|
|
4546
4600
|
}, 8, ["id"])) : r("", !0)
|
|
4547
4601
|
], 6);
|
|
4548
4602
|
}
|
|
4549
|
-
var
|
|
4550
|
-
class: "bb:w-4 bb:h-4",
|
|
4603
|
+
var _a = /*#__PURE__*/ M(fa, [["render", ga]]), va = {}, ya = {
|
|
4551
4604
|
fill: "none",
|
|
4552
4605
|
stroke: "currentColor",
|
|
4553
|
-
"stroke-width": "2",
|
|
4554
|
-
"stroke-linecap": "round",
|
|
4555
4606
|
viewBox: "0 0 24 24",
|
|
4556
4607
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4557
4608
|
"aria-hidden": "true"
|
|
4558
4609
|
};
|
|
4559
|
-
function
|
|
4560
|
-
return p(), i("svg",
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
a("line", {
|
|
4567
|
-
class: "bb:origin-center bb:animate-[spin_12s_linear_infinite] bb:motion-reduce:animate-none",
|
|
4568
|
-
x1: "12",
|
|
4569
|
-
y1: "12",
|
|
4570
|
-
x2: "15",
|
|
4571
|
-
y2: "12"
|
|
4572
|
-
}, null, -1),
|
|
4573
|
-
a("line", {
|
|
4574
|
-
class: "bb:origin-center bb:animate-spin bb:motion-reduce:animate-none",
|
|
4575
|
-
x1: "12",
|
|
4576
|
-
y1: "12",
|
|
4577
|
-
x2: "12",
|
|
4578
|
-
y2: "6.5"
|
|
4579
|
-
}, null, -1)
|
|
4580
|
-
]]);
|
|
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)]]);
|
|
4581
4617
|
}
|
|
4582
|
-
var
|
|
4583
|
-
class: "bb:w-4 bb:h-4",
|
|
4618
|
+
var xa = /*#__PURE__*/ M(va, [["render", ba]]), Sa = {}, Ca = {
|
|
4584
4619
|
fill: "none",
|
|
4585
4620
|
stroke: "currentColor",
|
|
4586
4621
|
viewBox: "0 0 24 24",
|
|
4587
4622
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4588
4623
|
"aria-hidden": "true"
|
|
4589
4624
|
};
|
|
4590
|
-
function
|
|
4591
|
-
return p(), i("svg",
|
|
4625
|
+
function wa(e, t, n, r, o, s) {
|
|
4626
|
+
return p(), i("svg", Ca, [...t[0] ||= [a("path", {
|
|
4592
4627
|
"stroke-linecap": "round",
|
|
4593
4628
|
"stroke-linejoin": "round",
|
|
4594
4629
|
"stroke-width": "2",
|
|
4595
4630
|
d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
|
|
4596
4631
|
}, null, -1)]]);
|
|
4597
4632
|
}
|
|
4598
|
-
var
|
|
4599
|
-
class: "bb:w-4 bb:h-4",
|
|
4633
|
+
var Ta = /*#__PURE__*/ M(Sa, [["render", wa]]), Ea = {}, Da = {
|
|
4600
4634
|
fill: "none",
|
|
4601
4635
|
stroke: "currentColor",
|
|
4602
4636
|
viewBox: "0 0 24 24",
|
|
4603
4637
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4604
4638
|
"aria-hidden": "true"
|
|
4605
4639
|
};
|
|
4606
|
-
function
|
|
4607
|
-
return p(), i("svg",
|
|
4640
|
+
function Oa(e, t, n, r, o, s) {
|
|
4641
|
+
return p(), i("svg", Da, [...t[0] ||= [a("path", {
|
|
4608
4642
|
"stroke-linecap": "round",
|
|
4609
4643
|
"stroke-linejoin": "round",
|
|
4610
4644
|
"stroke-width": "2",
|
|
4611
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"
|
|
4612
4646
|
}, null, -1)]]);
|
|
4613
4647
|
}
|
|
4614
|
-
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 = {
|
|
4615
4829
|
components: {
|
|
4616
|
-
"clock-icon":
|
|
4617
|
-
"
|
|
4618
|
-
"refresh-icon": Oa
|
|
4830
|
+
"clock-icon": /* @__PURE__ */ M(Ya, [["render", Za]]),
|
|
4831
|
+
"action-icon": Va
|
|
4619
4832
|
},
|
|
4620
|
-
mixins: [
|
|
4833
|
+
mixins: [j],
|
|
4621
4834
|
emits: ["click"],
|
|
4622
4835
|
props: {
|
|
4623
4836
|
title: {
|
|
@@ -4627,12 +4840,12 @@ var Oa = /*#__PURE__*/ A(Ta, [["render", Da]]), ka = ["download", "refresh"], Aa
|
|
|
4627
4840
|
icon: {
|
|
4628
4841
|
type: String,
|
|
4629
4842
|
required: !0,
|
|
4630
|
-
validator:
|
|
4843
|
+
validator: Z
|
|
4631
4844
|
},
|
|
4632
4845
|
color: {
|
|
4633
4846
|
type: String,
|
|
4634
|
-
default: "purple",
|
|
4635
|
-
validator:
|
|
4847
|
+
default: "purple-pale",
|
|
4848
|
+
validator: A
|
|
4636
4849
|
},
|
|
4637
4850
|
isLoading: {
|
|
4638
4851
|
type: Boolean,
|
|
@@ -4643,17 +4856,22 @@ var Oa = /*#__PURE__*/ A(Ta, [["render", Da]]), ka = ["download", "refresh"], Aa
|
|
|
4643
4856
|
default: null
|
|
4644
4857
|
}
|
|
4645
4858
|
},
|
|
4646
|
-
computed: {
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
|
|
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 = [
|
|
4651
4869
|
"title",
|
|
4652
4870
|
"disabled",
|
|
4653
4871
|
"aria-busy"
|
|
4654
|
-
],
|
|
4655
|
-
function
|
|
4656
|
-
let u = g("clock-icon"), f = g("
|
|
4872
|
+
], eo = ["textContent"];
|
|
4873
|
+
function to(e, t, o, s, c, l) {
|
|
4874
|
+
let u = g("clock-icon"), f = g("action-icon");
|
|
4657
4875
|
return p(), i("button", {
|
|
4658
4876
|
type: "button",
|
|
4659
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", [
|
|
@@ -4668,28 +4886,25 @@ function Na(e, t, o, s, c, l) {
|
|
|
4668
4886
|
}, [o.isLoading ? (p(), n(u, {
|
|
4669
4887
|
key: 0,
|
|
4670
4888
|
class: "bb:pointer-events-none bb:cursor-default"
|
|
4671
|
-
})) :
|
|
4889
|
+
})) : l.hasIcon ? (p(), n(f, {
|
|
4672
4890
|
key: 1,
|
|
4673
|
-
|
|
4674
|
-
})) :
|
|
4675
|
-
key: 2,
|
|
4676
|
-
class: "bb:pointer-events-none bb:cursor-default"
|
|
4677
|
-
})) : r("", !0), a("span", {
|
|
4891
|
+
name: o.icon
|
|
4892
|
+
}, null, 8, ["name"])) : r("", !0), a("span", {
|
|
4678
4893
|
class: "bb:ml-1 bb:pointer-events-none bb:cursor-default",
|
|
4679
4894
|
textContent: y(l.label)
|
|
4680
|
-
}, null, 8,
|
|
4895
|
+
}, null, 8, eo)], 10, $a);
|
|
4681
4896
|
}
|
|
4682
|
-
var
|
|
4683
|
-
function
|
|
4897
|
+
var no = /*#__PURE__*/ M(Qa, [["render", to]]), ro = "a[href], button:not(:disabled)";
|
|
4898
|
+
function io(e, t) {
|
|
4684
4899
|
let n = document.activeElement;
|
|
4685
|
-
(e.querySelector("[data-dialog-focus]") ?? e.querySelector(
|
|
4900
|
+
(e.querySelector("[data-dialog-focus]") ?? e.querySelector(ro))?.focus();
|
|
4686
4901
|
let r = (n) => {
|
|
4687
4902
|
if (n.key === "Escape") {
|
|
4688
4903
|
t();
|
|
4689
4904
|
return;
|
|
4690
4905
|
}
|
|
4691
4906
|
if (n.key !== "Tab") return;
|
|
4692
|
-
let r = [...e.querySelectorAll(
|
|
4907
|
+
let r = [...e.querySelectorAll(ro)];
|
|
4693
4908
|
if (r.length === 0) return;
|
|
4694
4909
|
n.preventDefault();
|
|
4695
4910
|
let i = n.shiftKey ? -1 : 1, a = r.indexOf(document.activeElement);
|
|
@@ -4706,7 +4921,7 @@ function Ia(e, t) {
|
|
|
4706
4921
|
}
|
|
4707
4922
|
//#endregion
|
|
4708
4923
|
//#region src/components/Modal.vue
|
|
4709
|
-
var
|
|
4924
|
+
var ao = {
|
|
4710
4925
|
emits: ["escape"],
|
|
4711
4926
|
props: {
|
|
4712
4927
|
isOpen: {
|
|
@@ -4740,16 +4955,16 @@ var La = {
|
|
|
4740
4955
|
methods: {
|
|
4741
4956
|
holdFocus() {
|
|
4742
4957
|
this.focusFrame === null && this.releaseHeldFocus === null && (this.focusFrame = requestAnimationFrame(() => {
|
|
4743
|
-
this.focusFrame = null, this.releaseHeldFocus =
|
|
4958
|
+
this.focusFrame = null, this.releaseHeldFocus = io(this.$refs.panel, () => this.$emit("escape"));
|
|
4744
4959
|
}));
|
|
4745
4960
|
},
|
|
4746
4961
|
releaseFocus() {
|
|
4747
4962
|
this.focusFrame !== null && (cancelAnimationFrame(this.focusFrame), this.focusFrame = null), this.releaseHeldFocus !== null && (this.releaseHeldFocus(), this.releaseHeldFocus = null);
|
|
4748
4963
|
}
|
|
4749
4964
|
}
|
|
4750
|
-
},
|
|
4751
|
-
function
|
|
4752
|
-
return p(), i("div", { class: d(["bb-dashboard-ui bb:fixed bb:inset-0 bb:overflow-y-auto bb:z-20", { "bb:pointer-events-none": !r.isOpen }]) }, [a("div",
|
|
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, [
|
|
4753
4968
|
c(t, {
|
|
4754
4969
|
"enter-active-class": "bb:ease-out bb:duration-300",
|
|
4755
4970
|
"enter-from-class": "bb:opacity-0",
|
|
@@ -4758,7 +4973,7 @@ function Va(e, n, r, o, s, l) {
|
|
|
4758
4973
|
"leave-from-class": "bb:opacity-100",
|
|
4759
4974
|
"leave-to-class": "bb:opacity-0"
|
|
4760
4975
|
}, {
|
|
4761
|
-
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]])]),
|
|
4762
4977
|
_: 1
|
|
4763
4978
|
}),
|
|
4764
4979
|
n[1] ||= a("span", { class: "bb:inline-block bb:align-middle bb:h-screen" }, null, -1),
|
|
@@ -4770,18 +4985,18 @@ function Va(e, n, r, o, s, l) {
|
|
|
4770
4985
|
"leave-from-class": "bb:opacity-100 bb:scale-100",
|
|
4771
4986
|
"leave-to-class": "bb:opacity-0 bb:scale-95"
|
|
4772
4987
|
}, {
|
|
4773
|
-
default:
|
|
4988
|
+
default: C(() => [w(a("div", {
|
|
4774
4989
|
ref: "panel",
|
|
4775
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",
|
|
4776
4991
|
role: "dialog",
|
|
4777
4992
|
"aria-modal": "true",
|
|
4778
4993
|
"aria-labelledby": r.headingId
|
|
4779
|
-
}, [h(e.$slots, "default")], 8,
|
|
4994
|
+
}, [h(e.$slots, "default")], 8, co), [[S, r.isOpen]])]),
|
|
4780
4995
|
_: 3
|
|
4781
4996
|
})
|
|
4782
4997
|
])], 2);
|
|
4783
4998
|
}
|
|
4784
|
-
var
|
|
4999
|
+
var uo = /*#__PURE__*/ M(ao, [["render", lo]]), fo = {}, po = {
|
|
4785
5000
|
class: "bb:h-7 bb:w-7 bb:text-red-600",
|
|
4786
5001
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4787
5002
|
fill: "none",
|
|
@@ -4789,35 +5004,36 @@ var Ha = /*#__PURE__*/ A(La, [["render", Va]]), Ua = {}, Wa = {
|
|
|
4789
5004
|
stroke: "currentColor",
|
|
4790
5005
|
"aria-hidden": "true"
|
|
4791
5006
|
};
|
|
4792
|
-
function
|
|
4793
|
-
return p(), i("svg",
|
|
5007
|
+
function mo(e, t, n, r, o, s) {
|
|
5008
|
+
return p(), i("svg", po, [...t[0] ||= [a("path", {
|
|
4794
5009
|
"stroke-linecap": "round",
|
|
4795
5010
|
"stroke-linejoin": "round",
|
|
4796
5011
|
"stroke-width": "2",
|
|
4797
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"
|
|
4798
5013
|
}, null, -1)]]);
|
|
4799
5014
|
}
|
|
4800
|
-
var
|
|
5015
|
+
var ho = /*#__PURE__*/ M(fo, [["render", mo]]), go = {}, _o = {
|
|
4801
5016
|
class: "bb:h-7 bb:w-7 bb:text-yellow-400",
|
|
4802
5017
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4803
5018
|
viewBox: "0 0 20 20",
|
|
4804
5019
|
fill: "currentColor",
|
|
4805
5020
|
"aria-hidden": "true"
|
|
4806
5021
|
};
|
|
4807
|
-
function
|
|
4808
|
-
return p(), i("svg",
|
|
5022
|
+
function vo(e, t, n, r, o, s) {
|
|
5023
|
+
return p(), i("svg", _o, [...t[0] ||= [a("path", {
|
|
4809
5024
|
"fill-rule": "evenodd",
|
|
4810
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",
|
|
4811
5026
|
"clip-rule": "evenodd"
|
|
4812
5027
|
}, null, -1)]]);
|
|
4813
5028
|
}
|
|
4814
|
-
var
|
|
5029
|
+
var yo = /*#__PURE__*/ M(go, [["render", vo]]), bo = {
|
|
4815
5030
|
components: {
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
|
|
5031
|
+
ActionButton: Ja,
|
|
5032
|
+
Modal: uo,
|
|
5033
|
+
Dangerous: ho,
|
|
5034
|
+
Warning: yo
|
|
4819
5035
|
},
|
|
4820
|
-
mixins: [
|
|
5036
|
+
mixins: [F],
|
|
4821
5037
|
emits: ["actionConfirmed", "actionCanceled"],
|
|
4822
5038
|
props: {
|
|
4823
5039
|
isOpen: {
|
|
@@ -4855,108 +5071,67 @@ var Xa = /*#__PURE__*/ A(qa, [["render", Ya]]), Za = {
|
|
|
4855
5071
|
},
|
|
4856
5072
|
isWarning() {
|
|
4857
5073
|
return this.type === "warning";
|
|
5074
|
+
},
|
|
5075
|
+
actionColor() {
|
|
5076
|
+
return this.isDangerous ? "red-solid" : this.isWarning ? "yellow-solid" : null;
|
|
4858
5077
|
}
|
|
4859
5078
|
}
|
|
4860
|
-
},
|
|
4861
|
-
function
|
|
4862
|
-
let
|
|
4863
|
-
return p(), n(
|
|
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, {
|
|
4864
5083
|
"is-open": i.isOpen,
|
|
4865
5084
|
"heading-id": o.headingId,
|
|
4866
5085
|
onEscape: t[2] ||= (t) => e.$emit("actionCanceled")
|
|
4867
5086
|
}, {
|
|
4868
|
-
default:
|
|
4869
|
-
"bb:bg-red-100":
|
|
4870
|
-
"bb:bg-yellow-100":
|
|
4871
|
-
}]) }, [
|
|
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", {
|
|
4872
5091
|
class: "bb:text-lg bb:leading-6 bb:font-medium bb:text-gray-900",
|
|
4873
5092
|
id: o.headingId
|
|
4874
|
-
}, y(i.confirmationHeading), 9,
|
|
4875
|
-
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
|
|
4881
|
-
|
|
4882
|
-
type: "button",
|
|
4883
|
-
class: "bb:inline-flex bb:justify-center bb:rounded-md bb:border bb:border-gray-300 bb:shadow-xs bb:px-4 bb:py-2 bb:bg-white bb:text-sm bb:font-medium bb:text-gray-700 bb:hover:bg-gray-50 bb:focus:focus-ring bb:ml-3",
|
|
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,
|
|
4884
5101
|
"data-dialog-focus": "",
|
|
4885
|
-
onClick: t[1] ||=
|
|
4886
|
-
},
|
|
5102
|
+
onClick: t[1] ||= E((t) => e.$emit("actionCanceled"), ["prevent"])
|
|
5103
|
+
}, null, 8, ["label"])])]),
|
|
4887
5104
|
_: 1
|
|
4888
5105
|
}, 8, ["is-open", "heading-id"]);
|
|
4889
5106
|
}
|
|
4890
|
-
var
|
|
4891
|
-
fill: "none",
|
|
4892
|
-
stroke: "currentColor",
|
|
4893
|
-
viewBox: "0 0 24 24",
|
|
4894
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
4895
|
-
"aria-hidden": "true"
|
|
4896
|
-
};
|
|
4897
|
-
function lo(e, t, n, r, o, s) {
|
|
4898
|
-
return p(), i("svg", co, [...t[0] ||= [a("path", {
|
|
4899
|
-
"stroke-linecap": "round",
|
|
4900
|
-
"stroke-linejoin": "round",
|
|
4901
|
-
"stroke-width": "2",
|
|
4902
|
-
d: "M12 4v16m8-8H4"
|
|
4903
|
-
}, null, -1)]]);
|
|
4904
|
-
}
|
|
4905
|
-
//#endregion
|
|
4906
|
-
//#region src/actionIcons.js
|
|
4907
|
-
var uo = { plus: /* @__PURE__ */ A(so, [["render", lo]]) };
|
|
4908
|
-
function fo(e) {
|
|
4909
|
-
return typeof e == "string" && Object.hasOwn(uo, e);
|
|
4910
|
-
}
|
|
5107
|
+
var ko = /*#__PURE__*/ M(bo, [["render", Oo]]);
|
|
4911
5108
|
//#endregion
|
|
4912
5109
|
//#region src/menuItems.js
|
|
4913
|
-
function
|
|
4914
|
-
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;
|
|
4915
5112
|
let t = typeof e.href == "string" && e.href !== "" && e.onSelect === void 0, n = typeof e.onSelect == "function" && e.href === void 0;
|
|
4916
5113
|
return t || n;
|
|
4917
5114
|
}
|
|
4918
|
-
function
|
|
5115
|
+
function jo(e) {
|
|
4919
5116
|
return Array.isArray(e) ? e.filter((e) => typeof e == "object" && !!e) : [];
|
|
4920
5117
|
}
|
|
4921
|
-
function
|
|
5118
|
+
function Mo(e) {
|
|
4922
5119
|
return typeof e.href == "string" && e.href !== "";
|
|
4923
5120
|
}
|
|
4924
|
-
function
|
|
4925
|
-
return
|
|
5121
|
+
function No(e) {
|
|
5122
|
+
return A(e.color) ? e.color : null;
|
|
4926
5123
|
}
|
|
4927
|
-
function
|
|
4928
|
-
return
|
|
5124
|
+
function Po(e) {
|
|
5125
|
+
return Z(e.icon) ? e.icon : null;
|
|
4929
5126
|
}
|
|
4930
5127
|
//#endregion
|
|
4931
|
-
//#region src/
|
|
4932
|
-
|
|
4933
|
-
let t = e.currentTarget?.target ?? "";
|
|
4934
|
-
return !(e.defaultPrevented || e.target?.isContentEditable === !0 || e.altKey || e.ctrlKey || e.metaKey || e.shiftKey || t !== "" && t !== "_self" || e.button !== 0);
|
|
4935
|
-
}
|
|
4936
|
-
var Q = {
|
|
4937
|
-
inject: be,
|
|
4938
|
-
methods: { followLink(e, t) {
|
|
4939
|
-
let n = this.uiSettings.navigate;
|
|
4940
|
-
n !== null && vo(e) && (e.preventDefault(), n(t));
|
|
4941
|
-
} }
|
|
4942
|
-
}, yo = {
|
|
4943
|
-
props: { name: {
|
|
4944
|
-
type: String,
|
|
4945
|
-
default: null
|
|
4946
|
-
} },
|
|
4947
|
-
computed: { icon() {
|
|
4948
|
-
return fo(this.name) ? uo[this.name] : "span";
|
|
4949
|
-
} }
|
|
4950
|
-
};
|
|
4951
|
-
function bo(e, t, r, i, a, o) {
|
|
4952
|
-
return p(), n(_(o.icon), { class: "bb:w-4 bb:h-4 bb:shrink-0 bb:pointer-events-none bb:cursor-default" });
|
|
4953
|
-
}
|
|
4954
|
-
var xo = /*#__PURE__*/ A(yo, [["render", bo]]), So = {
|
|
5128
|
+
//#region src/components/PopoverMenu.vue
|
|
5129
|
+
var Fo = {
|
|
4955
5130
|
components: {
|
|
4956
|
-
ActionIcon:
|
|
5131
|
+
ActionIcon: Va,
|
|
4957
5132
|
PopoverPanel: V
|
|
4958
5133
|
},
|
|
4959
|
-
mixins: [Q,
|
|
5134
|
+
mixins: [Q, j],
|
|
4960
5135
|
emits: ["update:modelValue"],
|
|
4961
5136
|
props: {
|
|
4962
5137
|
actions: { default: () => [] },
|
|
@@ -4967,24 +5142,24 @@ var xo = /*#__PURE__*/ A(yo, [["render", bo]]), So = {
|
|
|
4967
5142
|
},
|
|
4968
5143
|
computed: {
|
|
4969
5144
|
actionItems() {
|
|
4970
|
-
return
|
|
5145
|
+
return jo(this.actions);
|
|
4971
5146
|
},
|
|
4972
5147
|
hasActions() {
|
|
4973
5148
|
return this.actionItems.length > 0;
|
|
4974
5149
|
},
|
|
4975
5150
|
hasIcons() {
|
|
4976
|
-
return this.actionItems.some((e) =>
|
|
5151
|
+
return this.actionItems.some((e) => Po(e) !== null);
|
|
4977
5152
|
}
|
|
4978
5153
|
},
|
|
4979
5154
|
methods: {
|
|
4980
5155
|
color(e) {
|
|
4981
|
-
return
|
|
5156
|
+
return No(e);
|
|
4982
5157
|
},
|
|
4983
5158
|
icon(e) {
|
|
4984
|
-
return
|
|
5159
|
+
return Po(e);
|
|
4985
5160
|
},
|
|
4986
5161
|
isLink(e) {
|
|
4987
|
-
return
|
|
5162
|
+
return Mo(e);
|
|
4988
5163
|
},
|
|
4989
5164
|
linkClicked(e, t) {
|
|
4990
5165
|
e.currentTarget.focus({ preventScroll: !0 }), this.followLink(e, t);
|
|
@@ -4993,8 +5168,8 @@ var xo = /*#__PURE__*/ A(yo, [["render", bo]]), So = {
|
|
|
4993
5168
|
if (t.currentTarget.focus({ preventScroll: !0 }), typeof e.onSelect == "function") return e.onSelect();
|
|
4994
5169
|
}
|
|
4995
5170
|
}
|
|
4996
|
-
},
|
|
4997
|
-
function
|
|
5171
|
+
}, Io = ["href", "onClick"], Lo = ["textContent"], Ro = ["onClick"], zo = ["textContent"];
|
|
5172
|
+
function Bo(t, o, s, c, l, u) {
|
|
4998
5173
|
let f = g("action-icon"), _ = g("popover-panel");
|
|
4999
5174
|
return p(), n(_, {
|
|
5000
5175
|
"model-value": s.modelValue,
|
|
@@ -5008,11 +5183,11 @@ function Do(t, o, s, c, l, u) {
|
|
|
5008
5183
|
"panel-role": "menu",
|
|
5009
5184
|
"onUpdate:modelValue": o[0] ||= (e) => t.$emit("update:modelValue", e)
|
|
5010
5185
|
}, {
|
|
5011
|
-
trigger:
|
|
5186
|
+
trigger: C((e) => [h(t.$slots, "trigger", {
|
|
5012
5187
|
id: e.id,
|
|
5013
5188
|
popovertarget: e.popovertarget
|
|
5014
5189
|
})]),
|
|
5015
|
-
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", {
|
|
5016
5191
|
key: 0,
|
|
5017
5192
|
href: o.href,
|
|
5018
5193
|
role: "menuitem",
|
|
@@ -5024,7 +5199,7 @@ function Do(t, o, s, c, l, u) {
|
|
|
5024
5199
|
}, null, 8, ["name"])) : r("", !0), a("span", {
|
|
5025
5200
|
class: "bb:min-w-0 bb:truncate bb:pointer-events-none bb:cursor-default",
|
|
5026
5201
|
textContent: y(o.label)
|
|
5027
|
-
}, null, 8,
|
|
5202
|
+
}, null, 8, Lo)], 10, Io)) : (p(), i("button", {
|
|
5028
5203
|
key: 1,
|
|
5029
5204
|
type: "button",
|
|
5030
5205
|
role: "menuitem",
|
|
@@ -5036,26 +5211,26 @@ function Do(t, o, s, c, l, u) {
|
|
|
5036
5211
|
}, null, 8, ["name"])) : r("", !0), a("span", {
|
|
5037
5212
|
class: "bb:min-w-0 bb:truncate bb:pointer-events-none bb:cursor-default",
|
|
5038
5213
|
textContent: y(o.label)
|
|
5039
|
-
}, null, 8,
|
|
5214
|
+
}, null, 8, zo)], 10, Ro))], 64))), 128))]),
|
|
5040
5215
|
_: 3
|
|
5041
5216
|
}, 8, ["model-value", "has-content"]);
|
|
5042
5217
|
}
|
|
5043
|
-
var
|
|
5218
|
+
var Vo = /*#__PURE__*/ M(Fo, [["render", Bo]]), Ho = {
|
|
5044
5219
|
components: {
|
|
5045
|
-
|
|
5046
|
-
PopoverMenu:
|
|
5220
|
+
ActionButton: Ja,
|
|
5221
|
+
PopoverMenu: Vo
|
|
5047
5222
|
},
|
|
5048
5223
|
mixins: [
|
|
5049
|
-
|
|
5224
|
+
F,
|
|
5050
5225
|
Q,
|
|
5051
|
-
|
|
5226
|
+
j
|
|
5052
5227
|
],
|
|
5053
5228
|
emits: ["update:modelValue"],
|
|
5054
5229
|
props: {
|
|
5055
5230
|
actions: {
|
|
5056
5231
|
type: Array,
|
|
5057
5232
|
default: () => [],
|
|
5058
|
-
validator: (e) => e.every(
|
|
5233
|
+
validator: (e) => e.every(Ao)
|
|
5059
5234
|
},
|
|
5060
5235
|
modelValue: {
|
|
5061
5236
|
type: Boolean,
|
|
@@ -5067,7 +5242,7 @@ var Oo = /*#__PURE__*/ A(So, [["render", Do]]), ko = {
|
|
|
5067
5242
|
},
|
|
5068
5243
|
computed: {
|
|
5069
5244
|
items() {
|
|
5070
|
-
return
|
|
5245
|
+
return jo(this.actions);
|
|
5071
5246
|
},
|
|
5072
5247
|
hasActions() {
|
|
5073
5248
|
return this.items.length > 0;
|
|
@@ -5076,10 +5251,10 @@ var Oo = /*#__PURE__*/ A(So, [["render", Do]]), ko = {
|
|
|
5076
5251
|
return this.items[0];
|
|
5077
5252
|
},
|
|
5078
5253
|
mainColor() {
|
|
5079
|
-
return this.hasActions ?
|
|
5254
|
+
return this.hasActions ? No(this.mainAction) : null;
|
|
5080
5255
|
},
|
|
5081
5256
|
mainIcon() {
|
|
5082
|
-
return this.hasActions ?
|
|
5257
|
+
return this.hasActions ? Po(this.mainAction) : null;
|
|
5083
5258
|
},
|
|
5084
5259
|
menuActions() {
|
|
5085
5260
|
return this.items.slice(1);
|
|
@@ -5101,7 +5276,7 @@ var Oo = /*#__PURE__*/ A(So, [["render", Do]]), ko = {
|
|
|
5101
5276
|
},
|
|
5102
5277
|
methods: {
|
|
5103
5278
|
isLink(e) {
|
|
5104
|
-
return
|
|
5279
|
+
return Mo(e);
|
|
5105
5280
|
},
|
|
5106
5281
|
select(e) {
|
|
5107
5282
|
if (typeof e.onSelect == "function") return e.onSelect();
|
|
@@ -5110,52 +5285,37 @@ var Oo = /*#__PURE__*/ A(So, [["render", Do]]), ko = {
|
|
|
5110
5285
|
this.menuIsOpen = e, this.$emit("update:modelValue", e);
|
|
5111
5286
|
}
|
|
5112
5287
|
}
|
|
5113
|
-
},
|
|
5288
|
+
}, Uo = {
|
|
5114
5289
|
key: 0,
|
|
5115
5290
|
class: "bb-dashboard-ui bb:relative bb:inline-flex bb:shadow-xs bb:rounded-md"
|
|
5116
|
-
},
|
|
5117
|
-
function
|
|
5118
|
-
let
|
|
5119
|
-
return
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
|
|
5126
|
-
|
|
5127
|
-
|
|
5128
|
-
|
|
5129
|
-
|
|
5130
|
-
|
|
5131
|
-
class
|
|
5132
|
-
|
|
5133
|
-
}, null, 8, Mo)], 10, jo)) : (p(), i("button", {
|
|
5134
|
-
key: 1,
|
|
5135
|
-
type: "button",
|
|
5136
|
-
class: d(["bb:relative bb:inline-flex bb:items-center bb:gap-2 bb:px-4 bb:py-2 bb:border bb:text-sm bb:font-medium bb:cursor-pointer bb:focus:z-10 bb:focus:focus-ring", [{
|
|
5137
|
-
"bb:rounded-l-md": u.hasMenu,
|
|
5138
|
-
"bb:rounded-md": !u.hasMenu
|
|
5139
|
-
}, u.mainColor === null ? "bb:bg-white bb:border-gray-300 bb:text-gray-700 bb:hover:bg-gray-50" : e.colorClass(u.mainColor, "button")]]),
|
|
5140
|
-
onClick: t[1] ||= (e) => u.select(u.mainAction)
|
|
5141
|
-
}, [u.mainIcon === null ? r("", !0) : (p(), n(f, {
|
|
5142
|
-
key: 0,
|
|
5143
|
-
name: u.mainIcon
|
|
5144
|
-
}, null, 8, ["name"])), a("span", {
|
|
5145
|
-
class: "bb:pointer-events-none bb:cursor-default",
|
|
5146
|
-
textContent: y(u.mainAction.label)
|
|
5147
|
-
}, null, 8, No)], 2)), c(m, {
|
|
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, {
|
|
5148
5308
|
class: "bb:-ml-px bb:flex",
|
|
5149
|
-
actions:
|
|
5150
|
-
"model-value":
|
|
5151
|
-
"onUpdate:modelValue":
|
|
5309
|
+
actions: l.menuActions,
|
|
5310
|
+
"model-value": n.modelValue,
|
|
5311
|
+
"onUpdate:modelValue": l.onMenuToggle
|
|
5152
5312
|
}, {
|
|
5153
|
-
trigger:
|
|
5313
|
+
trigger: C((n) => [a("button", {
|
|
5154
5314
|
type: "button",
|
|
5155
5315
|
id: n.id,
|
|
5156
5316
|
popovertarget: n.popovertarget,
|
|
5157
|
-
class: d(["bb:relative bb:inline-flex bb:items-center bb:px-2 bb:py-2 bb:rounded-r-md bb:border bb:text-sm bb:font-medium bb:focus:z-10 bb:focus:focus-ring",
|
|
5158
|
-
}, [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", {
|
|
5159
5319
|
class: "bb:h-5 bb:w-5 bb:pointer-events-none bb:cursor-default",
|
|
5160
5320
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5161
5321
|
viewBox: "0 0 20 20",
|
|
@@ -5165,7 +5325,7 @@ function Io(e, t, o, s, l, u) {
|
|
|
5165
5325
|
"fill-rule": "evenodd",
|
|
5166
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",
|
|
5167
5327
|
"clip-rule": "evenodd"
|
|
5168
|
-
})], -1)], 10,
|
|
5328
|
+
})], -1)], 10, Wo)]),
|
|
5169
5329
|
_: 1
|
|
5170
5330
|
}, 8, [
|
|
5171
5331
|
"actions",
|
|
@@ -5173,27 +5333,27 @@ function Io(e, t, o, s, l, u) {
|
|
|
5173
5333
|
"onUpdate:modelValue"
|
|
5174
5334
|
])])) : r("", !0);
|
|
5175
5335
|
}
|
|
5176
|
-
var
|
|
5177
|
-
components: { PopoverMenu:
|
|
5178
|
-
mixins: [
|
|
5336
|
+
var qo = /*#__PURE__*/ M(Ho, [["render", Ko]]), Jo = {
|
|
5337
|
+
components: { PopoverMenu: Vo },
|
|
5338
|
+
mixins: [F],
|
|
5179
5339
|
props: { actions: {
|
|
5180
5340
|
type: Array,
|
|
5181
5341
|
default: () => [],
|
|
5182
|
-
validator: (e) => e.every(
|
|
5342
|
+
validator: (e) => e.every(Ao)
|
|
5183
5343
|
} }
|
|
5184
|
-
},
|
|
5185
|
-
function
|
|
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) {
|
|
5186
5346
|
let c = g("popover-menu");
|
|
5187
5347
|
return p(), n(c, {
|
|
5188
5348
|
class: "bb-dashboard-ui bb:inline-flex",
|
|
5189
5349
|
actions: r.actions
|
|
5190
5350
|
}, {
|
|
5191
|
-
trigger:
|
|
5351
|
+
trigger: C((n) => [a("button", {
|
|
5192
5352
|
type: "button",
|
|
5193
5353
|
id: n.id,
|
|
5194
5354
|
popovertarget: n.popovertarget,
|
|
5195
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"
|
|
5196
|
-
}, [a("span",
|
|
5356
|
+
}, [a("span", Xo, y(e.texts.openMenu), 1), t[0] ||= a("svg", {
|
|
5197
5357
|
class: "bb:h-6 bb:w-6 bb:pointer-events-none bb:cursor-default",
|
|
5198
5358
|
fill: "none",
|
|
5199
5359
|
viewBox: "0 0 24 24",
|
|
@@ -5204,48 +5364,48 @@ function Vo(e, t, r, i, o, s) {
|
|
|
5204
5364
|
"stroke-linejoin": "round",
|
|
5205
5365
|
"stroke-width": "2",
|
|
5206
5366
|
d: "M4 6h16M4 12h16M4 18h16"
|
|
5207
|
-
})], -1)], 8,
|
|
5367
|
+
})], -1)], 8, Yo)]),
|
|
5208
5368
|
_: 1
|
|
5209
5369
|
}, 8, ["actions"]);
|
|
5210
5370
|
}
|
|
5211
|
-
var
|
|
5371
|
+
var Qo = /*#__PURE__*/ M(Jo, [["render", Zo]]), $o = {}, es = {
|
|
5212
5372
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5213
5373
|
viewBox: "0 0 20 20",
|
|
5214
5374
|
fill: "currentColor",
|
|
5215
5375
|
"aria-hidden": "true"
|
|
5216
5376
|
};
|
|
5217
|
-
function
|
|
5218
|
-
return p(), i("svg",
|
|
5377
|
+
function ts(e, t, n, r, o, s) {
|
|
5378
|
+
return p(), i("svg", es, [...t[0] ||= [a("path", {
|
|
5219
5379
|
"fill-rule": "evenodd",
|
|
5220
5380
|
"clip-rule": "evenodd",
|
|
5221
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"
|
|
5222
5382
|
}, null, -1)]]);
|
|
5223
5383
|
}
|
|
5224
|
-
var
|
|
5384
|
+
var ns = /*#__PURE__*/ M($o, [["render", ts]]), rs = {}, is = {
|
|
5225
5385
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5226
5386
|
viewBox: "0 0 20 20",
|
|
5227
5387
|
fill: "currentColor",
|
|
5228
5388
|
"aria-hidden": "true"
|
|
5229
5389
|
};
|
|
5230
|
-
function
|
|
5231
|
-
return p(), i("svg",
|
|
5390
|
+
function as(e, t, n, r, o, s) {
|
|
5391
|
+
return p(), i("svg", is, [...t[0] ||= [a("path", {
|
|
5232
5392
|
"fill-rule": "evenodd",
|
|
5233
5393
|
"clip-rule": "evenodd",
|
|
5234
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"
|
|
5235
5395
|
}, null, -1)]]);
|
|
5236
5396
|
}
|
|
5237
|
-
var
|
|
5397
|
+
var os = /*#__PURE__*/ M(rs, [["render", as]]);
|
|
5238
5398
|
//#endregion
|
|
5239
5399
|
//#region src/components/Pagination.vue
|
|
5240
|
-
function
|
|
5400
|
+
function ss(e) {
|
|
5241
5401
|
return typeof e == "string" && e !== "" ? e : null;
|
|
5242
5402
|
}
|
|
5243
|
-
var
|
|
5403
|
+
var cs = {
|
|
5244
5404
|
components: {
|
|
5245
|
-
ArrowNarrowLeft:
|
|
5246
|
-
ArrowNarrowRight:
|
|
5405
|
+
ArrowNarrowLeft: ns,
|
|
5406
|
+
ArrowNarrowRight: os
|
|
5247
5407
|
},
|
|
5248
|
-
mixins: [
|
|
5408
|
+
mixins: [F, Q],
|
|
5249
5409
|
props: {
|
|
5250
5410
|
links: {
|
|
5251
5411
|
type: Object,
|
|
@@ -5273,49 +5433,49 @@ var Qo = {
|
|
|
5273
5433
|
return typeof this.from == "number" && typeof this.to == "number";
|
|
5274
5434
|
},
|
|
5275
5435
|
previousPageUrl() {
|
|
5276
|
-
return
|
|
5436
|
+
return ss(this.links?.prev);
|
|
5277
5437
|
},
|
|
5278
5438
|
nextPageUrl() {
|
|
5279
|
-
return
|
|
5439
|
+
return ss(this.links?.next);
|
|
5280
5440
|
}
|
|
5281
5441
|
}
|
|
5282
|
-
},
|
|
5442
|
+
}, ls = {
|
|
5283
5443
|
key: 0,
|
|
5284
5444
|
class: "bb-dashboard-ui bb:flex bb:items-center bb:justify-between"
|
|
5285
|
-
},
|
|
5445
|
+
}, us = { class: "bb:-mt-px bb:w-0 bb:flex-1 bb:flex" }, ds = ["href"], fs = {
|
|
5286
5446
|
key: 0,
|
|
5287
5447
|
class: "bb:-mt-px bb:flex bb:text-gray-400 bb:text-sm bb:leading-5"
|
|
5288
|
-
},
|
|
5289
|
-
function
|
|
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) {
|
|
5290
5450
|
let d = g("arrow-narrow-left"), f = g("arrow-narrow-right");
|
|
5291
|
-
return u.hasResults ? (p(), i("nav",
|
|
5292
|
-
a("div",
|
|
5451
|
+
return u.hasResults ? (p(), i("nav", ls, [
|
|
5452
|
+
a("div", us, [u.previousPageUrl === null ? r("", !0) : (p(), i("a", {
|
|
5293
5453
|
key: 0,
|
|
5294
5454
|
href: u.previousPageUrl,
|
|
5295
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",
|
|
5296
5456
|
onClick: t[0] ||= (t) => e.followLink(t, u.previousPageUrl)
|
|
5297
|
-
}, [c(d, { class: "bb:mr-3 bb:h-5 bb:w-5 bb:text-gray-400 bb:pointer-events-none bb:cursor-default" }), s(" " + y(e.texts.previousPage), 1)], 8,
|
|
5298
|
-
u.hasRange ? (p(), i("div",
|
|
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, [
|
|
5299
5459
|
s(y(e.texts.resultsBefore) + " ", 1),
|
|
5300
|
-
a("span",
|
|
5460
|
+
a("span", ps, y(u.from) + " - " + y(u.to), 1),
|
|
5301
5461
|
s(" " + y(e.texts.resultsOf) + " ", 1),
|
|
5302
|
-
a("span",
|
|
5462
|
+
a("span", ms, y(u.total), 1),
|
|
5303
5463
|
s(" " + y(e.texts.resultsAfter), 1)
|
|
5304
5464
|
])) : r("", !0),
|
|
5305
|
-
a("div",
|
|
5465
|
+
a("div", hs, [u.nextPageUrl === null ? r("", !0) : (p(), i("a", {
|
|
5306
5466
|
key: 0,
|
|
5307
5467
|
href: u.nextPageUrl,
|
|
5308
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",
|
|
5309
5469
|
onClick: t[1] ||= (t) => e.followLink(t, u.nextPageUrl)
|
|
5310
|
-
}, [s(y(e.texts.nextPage) + " ", 1), c(f, { class: "bb:ml-3 bb:h-5 bb:w-5 bb:text-gray-400 bb:pointer-events-none bb:cursor-default" })], 8,
|
|
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))])
|
|
5311
5471
|
])) : r("", !0);
|
|
5312
5472
|
}
|
|
5313
|
-
var
|
|
5473
|
+
var vs = /*#__PURE__*/ M(cs, [["render", _s]]), ys = [
|
|
5314
5474
|
"left",
|
|
5315
5475
|
"center",
|
|
5316
5476
|
"right"
|
|
5317
5477
|
];
|
|
5318
|
-
function
|
|
5478
|
+
function bs(e) {
|
|
5319
5479
|
if (typeof e != "object" || !e || typeof e.key != "string" || e.key === "") return null;
|
|
5320
5480
|
let t = e.key;
|
|
5321
5481
|
return {
|
|
@@ -5324,21 +5484,21 @@ function us(e) {
|
|
|
5324
5484
|
value: typeof e.value == "function" ? e.value : (e) => e?.[t],
|
|
5325
5485
|
secondary: typeof e.secondary == "function" ? e.secondary : null,
|
|
5326
5486
|
muted: e.muted === !0,
|
|
5327
|
-
align:
|
|
5487
|
+
align: ys.includes(e.align) ? e.align : "left",
|
|
5328
5488
|
wrap: e.wrap === !0,
|
|
5329
5489
|
narrow: e.narrow === !0,
|
|
5330
5490
|
visible: e.visible !== !1
|
|
5331
5491
|
};
|
|
5332
5492
|
}
|
|
5333
|
-
function
|
|
5493
|
+
function xs(e) {
|
|
5334
5494
|
return typeof e == "string" && e !== "" ? e : null;
|
|
5335
5495
|
}
|
|
5336
|
-
var
|
|
5496
|
+
var Ss = {
|
|
5337
5497
|
components: {
|
|
5338
|
-
Pagination:
|
|
5339
|
-
InfoPill:
|
|
5498
|
+
Pagination: vs,
|
|
5499
|
+
InfoPill: ra
|
|
5340
5500
|
},
|
|
5341
|
-
mixins: [
|
|
5501
|
+
mixins: [F, j],
|
|
5342
5502
|
props: {
|
|
5343
5503
|
rows: {
|
|
5344
5504
|
type: Array,
|
|
@@ -5383,7 +5543,7 @@ var fs = {
|
|
|
5383
5543
|
return Array.isArray(this.rows) ? this.rows : [];
|
|
5384
5544
|
},
|
|
5385
5545
|
visibleColumns() {
|
|
5386
|
-
return (Array.isArray(this.columns) ? this.columns : []).map(
|
|
5546
|
+
return (Array.isArray(this.columns) ? this.columns : []).map(bs).filter((e) => e !== null && e.visible);
|
|
5387
5547
|
},
|
|
5388
5548
|
rowStripes() {
|
|
5389
5549
|
return this.normalizedRows.map((e) => this.stripeOf(e));
|
|
@@ -5402,10 +5562,10 @@ var fs = {
|
|
|
5402
5562
|
},
|
|
5403
5563
|
badgeText() {
|
|
5404
5564
|
if (this.hasRecords) {
|
|
5405
|
-
let e =
|
|
5565
|
+
let e = xs(this.foundText);
|
|
5406
5566
|
return e === null ? null : `${e}: ${this.recordCount}`;
|
|
5407
5567
|
}
|
|
5408
|
-
return
|
|
5568
|
+
return xs(this.emptyText);
|
|
5409
5569
|
}
|
|
5410
5570
|
},
|
|
5411
5571
|
methods: {
|
|
@@ -5425,15 +5585,15 @@ var fs = {
|
|
|
5425
5585
|
stripeOf(e) {
|
|
5426
5586
|
if (typeof this.rowStripe != "function") return null;
|
|
5427
5587
|
let t = this.rowStripe(e);
|
|
5428
|
-
return
|
|
5588
|
+
return A(t) ? t : null;
|
|
5429
5589
|
},
|
|
5430
5590
|
textOf(e, t) {
|
|
5431
5591
|
let n = e(t);
|
|
5432
5592
|
return n == null ? "" : String(n);
|
|
5433
5593
|
}
|
|
5434
5594
|
}
|
|
5435
|
-
},
|
|
5436
|
-
function
|
|
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) {
|
|
5437
5597
|
let f = g("info-pill"), _ = g("pagination");
|
|
5438
5598
|
return p(), i("div", null, [
|
|
5439
5599
|
u.hasBadgeRow() ? (p(), i("div", {
|
|
@@ -5442,12 +5602,12 @@ function ys(t, o, s, c, l, u) {
|
|
|
5442
5602
|
}, [u.badgeText === null ? r("", !0) : (p(), n(f, {
|
|
5443
5603
|
key: 0,
|
|
5444
5604
|
text: u.badgeText,
|
|
5445
|
-
color: "indigo"
|
|
5605
|
+
color: "indigo-pale"
|
|
5446
5606
|
}, null, 8, ["text"])), u.hasRecords ? h(t.$slots, "results-actions", {}, void 0, void 0, 1) : r("", !0)], 2)) : r("", !0),
|
|
5447
5607
|
u.normalizedRows.length > 0 ? (p(), i("div", {
|
|
5448
5608
|
key: 1,
|
|
5449
5609
|
class: d(u.isCard && u.hasBadgeRow() ? "bb:mt-4" : "")
|
|
5450
|
-
}, [a("div", { class: d(["bb:overflow-x-auto", u.isCard ? "bb:border-t bb:border-gray-200" : "bb:shadow-sm bb:border-b bb:border-gray-200 bb:rounded-lg"]) }, [a("table",
|
|
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", {
|
|
5451
5611
|
key: e.key,
|
|
5452
5612
|
scope: "col",
|
|
5453
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", [{
|
|
@@ -5456,7 +5616,7 @@ function ys(t, o, s, c, l, u) {
|
|
|
5456
5616
|
"bb:text-right": e.align === "right"
|
|
5457
5617
|
}, { "bb:w-px": e.narrow }]]),
|
|
5458
5618
|
textContent: y(e.label)
|
|
5459
|
-
}, null, 10,
|
|
5619
|
+
}, null, 10, Ts))), 128))])]), a("tbody", Es, [(p(!0), i(e, null, m(u.normalizedRows, (n, o) => (p(), i("tr", {
|
|
5460
5620
|
key: u.keyOf(n, o),
|
|
5461
5621
|
class: "bb:bg-white bb:even:bg-gray-50"
|
|
5462
5622
|
}, [(p(!0), i(e, null, m(u.visibleColumns, (e, s) => (p(), i("td", {
|
|
@@ -5480,11 +5640,11 @@ function ys(t, o, s, c, l, u) {
|
|
|
5480
5640
|
}, () => [a("div", {
|
|
5481
5641
|
class: d(["bb:font-medium", e.muted ? "bb:text-gray-400" : "bb:text-gray-900"]),
|
|
5482
5642
|
textContent: y(u.textOf(e.value, n))
|
|
5483
|
-
}, null, 10,
|
|
5643
|
+
}, null, 10, Ds), e.secondary !== null && u.textOf(e.secondary, n) !== "" ? (p(), i("div", {
|
|
5484
5644
|
key: 0,
|
|
5485
5645
|
class: "bb:text-gray-400",
|
|
5486
5646
|
textContent: y(u.textOf(e.secondary, n))
|
|
5487
|
-
}, null, 8,
|
|
5647
|
+
}, null, 8, Os)) : r("", !0)])], 2))), 128))]))), 128))])])], 2)], 2)) : r("", !0),
|
|
5488
5648
|
u.hasMeta ? (p(), n(_, {
|
|
5489
5649
|
key: 2,
|
|
5490
5650
|
meta: s.meta,
|
|
@@ -5499,7 +5659,7 @@ function ys(t, o, s, c, l, u) {
|
|
|
5499
5659
|
])) : r("", !0)
|
|
5500
5660
|
]);
|
|
5501
5661
|
}
|
|
5502
|
-
var
|
|
5662
|
+
var As = /*#__PURE__*/ M(Ss, [["render", ks]]), js = {
|
|
5503
5663
|
mixins: [Q],
|
|
5504
5664
|
props: {
|
|
5505
5665
|
url: {
|
|
@@ -5515,17 +5675,17 @@ var bs = /*#__PURE__*/ A(fs, [["render", ys]]), xs = {
|
|
|
5515
5675
|
default: !1
|
|
5516
5676
|
}
|
|
5517
5677
|
}
|
|
5518
|
-
},
|
|
5519
|
-
function
|
|
5678
|
+
}, Ms = ["href", "textContent"];
|
|
5679
|
+
function Ns(e, t, n, r, a, o) {
|
|
5520
5680
|
return p(), i("a", {
|
|
5521
5681
|
href: n.url,
|
|
5522
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"]),
|
|
5523
5683
|
onClick: t[0] ||= (t) => e.followLink(t, n.url),
|
|
5524
5684
|
textContent: y(n.name)
|
|
5525
|
-
}, null, 10,
|
|
5685
|
+
}, null, 10, Ms);
|
|
5526
5686
|
}
|
|
5527
|
-
var
|
|
5528
|
-
mixins: [
|
|
5687
|
+
var Ps = /*#__PURE__*/ M(js, [["render", Ns]]), Fs = {
|
|
5688
|
+
mixins: [F, Q],
|
|
5529
5689
|
props: {
|
|
5530
5690
|
tabs: {
|
|
5531
5691
|
type: Array,
|
|
@@ -5539,13 +5699,13 @@ var ws = /*#__PURE__*/ A(xs, [["render", Cs]]), Ts = {
|
|
|
5539
5699
|
computed: { tabList() {
|
|
5540
5700
|
return Array.isArray(this.tabs) ? this.tabs.filter((e) => typeof e == "object" && !!e) : [];
|
|
5541
5701
|
} }
|
|
5542
|
-
},
|
|
5702
|
+
}, Is = ["aria-label"], Ls = [
|
|
5543
5703
|
"href",
|
|
5544
5704
|
"aria-current",
|
|
5545
5705
|
"onClick",
|
|
5546
5706
|
"textContent"
|
|
5547
5707
|
];
|
|
5548
|
-
function
|
|
5708
|
+
function Rs(t, n, r, a, o, s) {
|
|
5549
5709
|
return p(), i("nav", {
|
|
5550
5710
|
class: "bb-dashboard-ui bb:flex bb:space-x-4",
|
|
5551
5711
|
"aria-label": t.texts.tabs
|
|
@@ -5556,21 +5716,21 @@ function Os(t, n, r, a, o, s) {
|
|
|
5556
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"]),
|
|
5557
5717
|
onClick: (n) => t.followLink(n, e.url),
|
|
5558
5718
|
textContent: y(e.name)
|
|
5559
|
-
}, null, 10,
|
|
5719
|
+
}, null, 10, Ls))), 128))], 8, Is);
|
|
5560
5720
|
}
|
|
5561
|
-
var
|
|
5721
|
+
var zs = /*#__PURE__*/ M(Fs, [["render", Rs]]), Bs = [
|
|
5562
5722
|
"xl",
|
|
5563
5723
|
"4xl",
|
|
5564
5724
|
"7xl"
|
|
5565
|
-
],
|
|
5566
|
-
components: { CrossButton:
|
|
5567
|
-
mixins: [
|
|
5725
|
+
], Vs = {
|
|
5726
|
+
components: { CrossButton: I },
|
|
5727
|
+
mixins: [F],
|
|
5568
5728
|
inheritAttrs: !1,
|
|
5569
5729
|
props: {
|
|
5570
5730
|
width: {
|
|
5571
5731
|
type: String,
|
|
5572
5732
|
default: "xl",
|
|
5573
|
-
validator: (e) =>
|
|
5733
|
+
validator: (e) => Bs.includes(e)
|
|
5574
5734
|
},
|
|
5575
5735
|
fallbackUrl: {
|
|
5576
5736
|
type: String,
|
|
@@ -5586,13 +5746,13 @@ var ks = /*#__PURE__*/ A(Ts, [["render", Os]]), As = [
|
|
|
5586
5746
|
},
|
|
5587
5747
|
computed: {
|
|
5588
5748
|
resolvedWidth() {
|
|
5589
|
-
return
|
|
5749
|
+
return Bs.includes(this.width) ? this.width : "xl";
|
|
5590
5750
|
},
|
|
5591
5751
|
windows() {
|
|
5592
5752
|
return this.uiSettings.windows;
|
|
5593
5753
|
},
|
|
5594
5754
|
resolvedKey() {
|
|
5595
|
-
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);
|
|
5596
5756
|
},
|
|
5597
5757
|
target() {
|
|
5598
5758
|
return this.returnAddress === null ? this.fallbackUrl === null || this.fallbackUrl === "" ? null : this.fallbackUrl : this.returnAddress;
|
|
@@ -5602,23 +5762,23 @@ var ks = /*#__PURE__*/ A(Ts, [["render", Os]]), As = [
|
|
|
5602
5762
|
}
|
|
5603
5763
|
},
|
|
5604
5764
|
watch: { fallbackUrl() {
|
|
5605
|
-
this.windows !== null &&
|
|
5765
|
+
this.windows !== null && he(this.windows.state, this, this.fallbackAddress());
|
|
5606
5766
|
} },
|
|
5607
5767
|
mounted() {
|
|
5608
|
-
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" }));
|
|
5609
5769
|
},
|
|
5610
5770
|
beforeUnmount() {
|
|
5611
|
-
this.windows !== null &&
|
|
5771
|
+
this.windows !== null && me(this.windows.state, this);
|
|
5612
5772
|
},
|
|
5613
5773
|
methods: {
|
|
5614
5774
|
fallbackAddress() {
|
|
5615
|
-
return
|
|
5775
|
+
return ae(this.fallbackUrl, window.location.origin);
|
|
5616
5776
|
},
|
|
5617
5777
|
forwardedAttrs() {
|
|
5618
5778
|
return Object.fromEntries(Object.entries(this.$attrs).filter(([e]) => e.startsWith("data-") || e.startsWith("aria-")));
|
|
5619
5779
|
},
|
|
5620
5780
|
syncWindow() {
|
|
5621
|
-
let e =
|
|
5781
|
+
let e = pe(this.windows.state, this, this.resolvedKey, this.fallbackAddress());
|
|
5622
5782
|
e.rejected && console.warn(`PageCard: ключ окна сменился на «${this.resolvedKey}» без смены страницы — карточка остаётся в окне «${e.key}»`), this.returnAddress = e.window.returnAddress;
|
|
5623
5783
|
},
|
|
5624
5784
|
close() {
|
|
@@ -5633,7 +5793,7 @@ var ks = /*#__PURE__*/ A(Ts, [["render", Os]]), As = [
|
|
|
5633
5793
|
}
|
|
5634
5794
|
}
|
|
5635
5795
|
};
|
|
5636
|
-
function
|
|
5796
|
+
function Hs(e, t, a, o, c, l) {
|
|
5637
5797
|
let f = g("cross-button");
|
|
5638
5798
|
return p(), i("div", u({
|
|
5639
5799
|
class: ["bb:box-border bb:relative bb:my-6 bb:mx-auto bb:bg-white bb:shadow-xl bb:rounded-lg", [
|
|
@@ -5660,25 +5820,25 @@ function Ms(e, t, a, o, c, l) {
|
|
|
5660
5820
|
}]),
|
|
5661
5821
|
onClicked: l.close
|
|
5662
5822
|
}, {
|
|
5663
|
-
default:
|
|
5823
|
+
default: C(() => [s(y(e.texts.back), 1)]),
|
|
5664
5824
|
_: 1
|
|
5665
5825
|
}, 8, ["class", "onClicked"])) : r("", !0)], 16);
|
|
5666
5826
|
}
|
|
5667
|
-
var
|
|
5668
|
-
function
|
|
5669
|
-
return p(), i("dl",
|
|
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")]);
|
|
5670
5830
|
}
|
|
5671
|
-
var
|
|
5831
|
+
var qs = /*#__PURE__*/ M(Ws, [["render", Ks]]), Js = { props: { title: {
|
|
5672
5832
|
type: String,
|
|
5673
5833
|
required: !0
|
|
5674
|
-
} } },
|
|
5675
|
-
function
|
|
5676
|
-
return p(), i("div",
|
|
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", {
|
|
5677
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",
|
|
5678
5838
|
textContent: y(n.title)
|
|
5679
|
-
}, null, 8,
|
|
5839
|
+
}, null, 8, Xs), a("dd", Zs, [h(e.$slots, "default")])]);
|
|
5680
5840
|
}
|
|
5681
|
-
var
|
|
5841
|
+
var $s = /*#__PURE__*/ M(Js, [["render", Qs]]), ec = {}, tc = {
|
|
5682
5842
|
class: "bb:h-7 bb:w-7 bb:text-green-600",
|
|
5683
5843
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5684
5844
|
fill: "none",
|
|
@@ -5687,22 +5847,22 @@ var Us = /*#__PURE__*/ A(Rs, [["render", Hs]]), Ws = {}, Gs = {
|
|
|
5687
5847
|
stroke: "currentColor",
|
|
5688
5848
|
"aria-hidden": "true"
|
|
5689
5849
|
};
|
|
5690
|
-
function
|
|
5691
|
-
return p(), i("svg",
|
|
5850
|
+
function nc(e, t, n, r, o, s) {
|
|
5851
|
+
return p(), i("svg", tc, [...t[0] ||= [a("path", {
|
|
5692
5852
|
"stroke-linecap": "round",
|
|
5693
5853
|
"stroke-linejoin": "round",
|
|
5694
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"
|
|
5695
5855
|
}, null, -1)]]);
|
|
5696
5856
|
}
|
|
5697
|
-
var
|
|
5857
|
+
var rc = /*#__PURE__*/ M(ec, [["render", nc]]), ic = {}, ac = {
|
|
5698
5858
|
class: "bb:h-5 bb:w-5",
|
|
5699
5859
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5700
5860
|
viewBox: "0 0 20 20",
|
|
5701
5861
|
fill: "currentColor",
|
|
5702
5862
|
"aria-hidden": "true"
|
|
5703
5863
|
};
|
|
5704
|
-
function
|
|
5705
|
-
return p(), i("svg",
|
|
5864
|
+
function oc(e, t, n, r, o, s) {
|
|
5865
|
+
return p(), i("svg", ac, [...t[0] ||= [a("path", {
|
|
5706
5866
|
"fill-rule": "evenodd",
|
|
5707
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",
|
|
5708
5868
|
"clip-rule": "evenodd"
|
|
@@ -5710,14 +5870,14 @@ function Xs(e, t, n, r, o, s) {
|
|
|
5710
5870
|
}
|
|
5711
5871
|
//#endregion
|
|
5712
5872
|
//#region src/components/NotificationMessage.vue
|
|
5713
|
-
var
|
|
5873
|
+
var sc = {
|
|
5714
5874
|
components: {
|
|
5715
|
-
Check:
|
|
5716
|
-
Close: /* @__PURE__ */
|
|
5717
|
-
Dangerous:
|
|
5718
|
-
Warning:
|
|
5875
|
+
Check: rc,
|
|
5876
|
+
Close: /* @__PURE__ */ M(ic, [["render", oc]]),
|
|
5877
|
+
Dangerous: ho,
|
|
5878
|
+
Warning: yo
|
|
5719
5879
|
},
|
|
5720
|
-
mixins: [
|
|
5880
|
+
mixins: [F],
|
|
5721
5881
|
emits: ["update:modelValue"],
|
|
5722
5882
|
props: {
|
|
5723
5883
|
modelValue: {
|
|
@@ -5755,8 +5915,8 @@ var Zs = {
|
|
|
5755
5915
|
return this.type === "confirmation";
|
|
5756
5916
|
}
|
|
5757
5917
|
}
|
|
5758
|
-
},
|
|
5759
|
-
function
|
|
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) {
|
|
5760
5920
|
let f = g("warning"), m = g("dangerous"), h = g("check"), _ = g("close");
|
|
5761
5921
|
return p(), i("div", {
|
|
5762
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",
|
|
@@ -5768,25 +5928,25 @@ function sc(e, t, o, s, l, u) {
|
|
|
5768
5928
|
"bb:bg-yellow-50": u.isWarning,
|
|
5769
5929
|
"bb:bg-gray-50": u.isConfirmation
|
|
5770
5930
|
}])
|
|
5771
|
-
}, [a("div",
|
|
5772
|
-
a("div",
|
|
5931
|
+
}, [a("div", lc, [a("div", uc, [
|
|
5932
|
+
a("div", dc, [
|
|
5773
5933
|
u.isWarning ? (p(), n(f, { key: 0 })) : r("", !0),
|
|
5774
5934
|
u.isDangerous ? (p(), n(m, { key: 1 })) : r("", !0),
|
|
5775
5935
|
u.isConfirmation ? (p(), n(h, { key: 2 })) : r("", !0)
|
|
5776
5936
|
]),
|
|
5777
|
-
a("div",
|
|
5778
|
-
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", {
|
|
5779
5939
|
type: "button",
|
|
5780
5940
|
class: d(["bb:rounded-md bb:inline-flex bb:text-gray-400 bb:hover:text-gray-500 bb:focus:focus-ring", {
|
|
5781
5941
|
"bb:bg-red-50": u.isDangerous,
|
|
5782
5942
|
"bb:bg-yellow-50": u.isWarning,
|
|
5783
5943
|
"bb:bg-gray-50": u.isConfirmation
|
|
5784
5944
|
}]),
|
|
5785
|
-
onClick: t[0] ||=
|
|
5786
|
-
}, [a("span",
|
|
5787
|
-
])])], 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);
|
|
5788
5948
|
}
|
|
5789
|
-
var
|
|
5949
|
+
var vc = /*#__PURE__*/ M(sc, [["render", _c]]), yc = {}, bc = {
|
|
5790
5950
|
class: "bb:h-5 bb:w-5",
|
|
5791
5951
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5792
5952
|
fill: "none",
|
|
@@ -5795,8 +5955,8 @@ var cc = /*#__PURE__*/ A(Zs, [["render", sc]]), lc = {}, uc = {
|
|
|
5795
5955
|
"stroke-width": "2",
|
|
5796
5956
|
"aria-hidden": "true"
|
|
5797
5957
|
};
|
|
5798
|
-
function
|
|
5799
|
-
return p(), i("svg",
|
|
5958
|
+
function xc(e, t, n, r, o, s) {
|
|
5959
|
+
return p(), i("svg", bc, [...t[0] ||= [a("path", {
|
|
5800
5960
|
"stroke-linecap": "round",
|
|
5801
5961
|
"stroke-linejoin": "round",
|
|
5802
5962
|
d: "M15 12a3 3 0 11-6 0 3 3 0 016 0z"
|
|
@@ -5806,12 +5966,12 @@ function dc(e, t, n, r, o, s) {
|
|
|
5806
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"
|
|
5807
5967
|
}, null, -1)]]);
|
|
5808
5968
|
}
|
|
5809
|
-
var
|
|
5969
|
+
var Sc = /*#__PURE__*/ M(yc, [["render", xc]]), $ = 0, Cc = null, wc = {
|
|
5810
5970
|
components: {
|
|
5811
5971
|
PopoverPanel: V,
|
|
5812
|
-
Eye:
|
|
5972
|
+
Eye: Sc
|
|
5813
5973
|
},
|
|
5814
|
-
mixins: [
|
|
5974
|
+
mixins: [F],
|
|
5815
5975
|
emits: ["update:modelValue"],
|
|
5816
5976
|
props: {
|
|
5817
5977
|
text: {
|
|
@@ -5844,18 +6004,18 @@ var fc = /*#__PURE__*/ A(lc, [["render", dc]]), $ = 0, pc = null, mc = {
|
|
|
5844
6004
|
lockPageSelection() {
|
|
5845
6005
|
if (!this.holdsPageSelectionLock && (this.holdsPageSelectionLock = !0, $ += 1, $ === 1)) {
|
|
5846
6006
|
let e = document.documentElement.style;
|
|
5847
|
-
|
|
6007
|
+
Cc = {
|
|
5848
6008
|
userSelect: e.userSelect,
|
|
5849
6009
|
webkitUserSelect: e.webkitUserSelect
|
|
5850
6010
|
}, e.userSelect = "none", e.webkitUserSelect = "none";
|
|
5851
6011
|
}
|
|
5852
6012
|
},
|
|
5853
6013
|
unlockPageSelection() {
|
|
5854
|
-
this.holdsPageSelectionLock && (this.holdsPageSelectionLock = !1, --$, $ === 0 && (Object.assign(document.documentElement.style,
|
|
6014
|
+
this.holdsPageSelectionLock && (this.holdsPageSelectionLock = !1, --$, $ === 0 && (Object.assign(document.documentElement.style, Cc), Cc = null));
|
|
5855
6015
|
}
|
|
5856
6016
|
}
|
|
5857
|
-
},
|
|
5858
|
-
function
|
|
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) {
|
|
5859
6019
|
let u = g("eye"), d = g("popover-panel");
|
|
5860
6020
|
return p(), n(d, {
|
|
5861
6021
|
class: "bb-dashboard-ui bb:inline-flex",
|
|
@@ -5870,13 +6030,13 @@ function _c(e, t, r, i, o, l) {
|
|
|
5870
6030
|
"onUpdate:modelValue": t[0] ||= (t) => e.$emit("update:modelValue", t),
|
|
5871
6031
|
onToggle: l.onPanelToggle
|
|
5872
6032
|
}, {
|
|
5873
|
-
trigger:
|
|
6033
|
+
trigger: C((t) => [a("button", {
|
|
5874
6034
|
type: "button",
|
|
5875
6035
|
id: t.id,
|
|
5876
6036
|
popovertarget: t.popovertarget,
|
|
5877
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"
|
|
5878
|
-
}, [a("span",
|
|
5879
|
-
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)]),
|
|
5880
6040
|
_: 1
|
|
5881
6041
|
}, 8, [
|
|
5882
6042
|
"has-content",
|
|
@@ -5885,6 +6045,6 @@ function _c(e, t, r, i, o, l) {
|
|
|
5885
6045
|
"onToggle"
|
|
5886
6046
|
]);
|
|
5887
6047
|
}
|
|
5888
|
-
var
|
|
6048
|
+
var Oc = /*#__PURE__*/ M(wc, [["render", Dc]]);
|
|
5889
6049
|
//#endregion
|
|
5890
|
-
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 };
|