@boobooking/dashboard-ui-components 0.23.0 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +337 -49
- package/dist/index.js +1262 -891
- 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: "Открыть меню",
|
|
@@ -56,13 +56,16 @@ var oe = {
|
|
|
56
56
|
showText: "Показать текст",
|
|
57
57
|
fullText: "Полный текст",
|
|
58
58
|
tabs: "Закладки",
|
|
59
|
+
sections: "Разделы",
|
|
59
60
|
selected: "Выбрано",
|
|
60
61
|
search: "Поиск",
|
|
61
62
|
nothingFound: "Ничего не найдено",
|
|
62
63
|
amountFrom: "от",
|
|
63
64
|
amountTo: "до",
|
|
64
65
|
amountFraction: "Копейки",
|
|
65
|
-
currency: "Валюта"
|
|
66
|
+
currency: "Валюта",
|
|
67
|
+
characterCount: "Символов",
|
|
68
|
+
characterCountOf: "из"
|
|
66
69
|
},
|
|
67
70
|
en: {
|
|
68
71
|
cancel: "Cancel",
|
|
@@ -114,26 +117,29 @@ var oe = {
|
|
|
114
117
|
showText: "Show text",
|
|
115
118
|
fullText: "Full text",
|
|
116
119
|
tabs: "Tabs",
|
|
120
|
+
sections: "Sections",
|
|
117
121
|
selected: "Selected",
|
|
118
122
|
search: "Search",
|
|
119
123
|
nothingFound: "Nothing found",
|
|
120
124
|
amountFrom: "from",
|
|
121
125
|
amountTo: "to",
|
|
122
126
|
amountFraction: "Fractional part",
|
|
123
|
-
currency: "Currency"
|
|
127
|
+
currency: "Currency",
|
|
128
|
+
characterCount: "Characters",
|
|
129
|
+
characterCountOf: "of"
|
|
124
130
|
}
|
|
125
131
|
};
|
|
126
132
|
//#endregion
|
|
127
133
|
//#region src/windows.js
|
|
128
|
-
function
|
|
134
|
+
function ae(e, t) {
|
|
129
135
|
if (e == null || e === "") return null;
|
|
130
136
|
let n = new URL(String(e), t);
|
|
131
137
|
return n.pathname + n.search;
|
|
132
138
|
}
|
|
133
|
-
function
|
|
139
|
+
function oe(e) {
|
|
134
140
|
return e === null ? null : e.split("?")[0];
|
|
135
141
|
}
|
|
136
|
-
function
|
|
142
|
+
function se() {
|
|
137
143
|
return {
|
|
138
144
|
windows: [],
|
|
139
145
|
cards: /* @__PURE__ */ new Map(),
|
|
@@ -147,36 +153,36 @@ function le() {
|
|
|
147
153
|
nextId: 1
|
|
148
154
|
};
|
|
149
155
|
}
|
|
150
|
-
function
|
|
156
|
+
function O(e, t) {
|
|
151
157
|
return e.windows.includes(t);
|
|
152
158
|
}
|
|
153
|
-
function
|
|
159
|
+
function ce(e) {
|
|
154
160
|
return e.returnAddress ?? e.fallbackAddress;
|
|
155
161
|
}
|
|
156
|
-
function
|
|
162
|
+
function le(e) {
|
|
157
163
|
let t = null;
|
|
158
164
|
for (let n of e.cards.values()) t = n.window;
|
|
159
165
|
return t;
|
|
160
166
|
}
|
|
161
|
-
function
|
|
167
|
+
function ue(e, t) {
|
|
162
168
|
let n = t;
|
|
163
|
-
for (; n !== null && !
|
|
169
|
+
for (; n !== null && !O(e, n);) n = n.parent;
|
|
164
170
|
return n;
|
|
165
171
|
}
|
|
166
|
-
function
|
|
172
|
+
function de(e, t) {
|
|
167
173
|
return e.transition = {
|
|
168
174
|
number: e.transition.number + 1,
|
|
169
175
|
fromAddress: e.shown,
|
|
170
|
-
fromWindow:
|
|
176
|
+
fromWindow: le(e),
|
|
171
177
|
assigned: /* @__PURE__ */ new Map()
|
|
172
178
|
}, e.shown = t, e.transition.number;
|
|
173
179
|
}
|
|
174
|
-
function
|
|
180
|
+
function fe(e, t, n) {
|
|
175
181
|
let r = e.transition, i = r.assigned.get(t);
|
|
176
|
-
if (i !== void 0 &&
|
|
182
|
+
if (i !== void 0 && O(e, i)) return i;
|
|
177
183
|
let a = r.fromWindow, o = r.fromAddress;
|
|
178
|
-
a !== null && !
|
|
179
|
-
for (let n = a; n !== null; n = n.parent) if (n.key === t &&
|
|
184
|
+
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);
|
|
185
|
+
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
186
|
a === null ? e.windows = [] : e.windows.splice(e.windows.indexOf(a) + 1);
|
|
181
187
|
let s = {
|
|
182
188
|
id: e.nextId,
|
|
@@ -187,18 +193,18 @@ function me(e, t, n) {
|
|
|
187
193
|
};
|
|
188
194
|
return e.nextId += 1, e.windows.push(s), s;
|
|
189
195
|
}
|
|
190
|
-
function
|
|
191
|
-
let i =
|
|
196
|
+
function pe(e, t, n, r) {
|
|
197
|
+
let i = fe(e, n, r);
|
|
192
198
|
return i.fallbackAddress = r, e.transition.assigned.set(n, i), e.cards.delete(t), e.cards.set(t, {
|
|
193
199
|
key: n,
|
|
194
200
|
window: i,
|
|
195
201
|
processed: e.transition.number
|
|
196
202
|
}), i;
|
|
197
203
|
}
|
|
198
|
-
function
|
|
204
|
+
function me(e, t, n, r) {
|
|
199
205
|
let i = e.cards.get(t);
|
|
200
206
|
return i === void 0 ? {
|
|
201
|
-
window:
|
|
207
|
+
window: pe(e, t, n, r),
|
|
202
208
|
rejected: !1,
|
|
203
209
|
key: n
|
|
204
210
|
} : i.key === n ? (i.processed = e.transition.number, {
|
|
@@ -210,37 +216,37 @@ function he(e, t, n, r) {
|
|
|
210
216
|
rejected: !0,
|
|
211
217
|
key: i.key
|
|
212
218
|
} : (e.cards.delete(t), {
|
|
213
|
-
window:
|
|
219
|
+
window: pe(e, t, n, r),
|
|
214
220
|
rejected: !1,
|
|
215
221
|
key: n
|
|
216
222
|
});
|
|
217
223
|
}
|
|
218
|
-
function
|
|
224
|
+
function he(e, t) {
|
|
219
225
|
e.cards.delete(t);
|
|
220
226
|
}
|
|
221
|
-
function
|
|
227
|
+
function ge(e, t, n) {
|
|
222
228
|
let r = e.cards.get(t);
|
|
223
229
|
r !== void 0 && (r.window.fallbackAddress = n);
|
|
224
230
|
}
|
|
225
231
|
//#endregion
|
|
226
232
|
//#region src/plugin.js
|
|
227
|
-
var
|
|
233
|
+
var _e = Symbol("dashboardUi"), ve = Object.freeze({
|
|
228
234
|
lang: "ru",
|
|
229
235
|
navigate: null,
|
|
230
236
|
windows: null
|
|
231
|
-
}),
|
|
232
|
-
from:
|
|
233
|
-
default: () =>
|
|
237
|
+
}), ye = { uiSettings: {
|
|
238
|
+
from: _e,
|
|
239
|
+
default: () => ve
|
|
234
240
|
} };
|
|
235
|
-
function
|
|
236
|
-
let n =
|
|
241
|
+
function be(e, t) {
|
|
242
|
+
let n = se(), r = v({
|
|
237
243
|
number: 0,
|
|
238
244
|
address: null
|
|
239
245
|
}), i = l(!0);
|
|
240
246
|
return i.run(() => {
|
|
241
|
-
|
|
242
|
-
let t =
|
|
243
|
-
t !== null && t !== r.address && (r.number =
|
|
247
|
+
te(t, (e) => {
|
|
248
|
+
let t = ae(e, window.location.origin);
|
|
249
|
+
t !== null && t !== r.address && (r.number = de(n, t), r.address = t);
|
|
244
250
|
}, {
|
|
245
251
|
flush: "sync",
|
|
246
252
|
immediate: !0
|
|
@@ -250,21 +256,21 @@ function xe(e, t) {
|
|
|
250
256
|
page: r
|
|
251
257
|
};
|
|
252
258
|
}
|
|
253
|
-
var
|
|
259
|
+
var xe = { install(e, t) {
|
|
254
260
|
let n = t ?? {}, r = Object.hasOwn(n, "lang") ? n.lang : "ru";
|
|
255
|
-
if (!
|
|
261
|
+
if (!D(r)) throw Error(`dashboardUi: неизвестный lang «${r}», допустимы: ${re.join(", ")}`);
|
|
256
262
|
let i = Object.hasOwn(n, "navigate"), a = i ? n.navigate : null;
|
|
257
263
|
if (i && typeof a != "function") throw Error("dashboardUi: navigate должен быть функцией (href) => …");
|
|
258
264
|
let o = Object.hasOwn(n, "currentUrl"), s = o ? n.currentUrl : null;
|
|
259
265
|
if (o && typeof s != "function") throw Error("dashboardUi: currentUrl должен быть функцией () => адрес страницы");
|
|
260
|
-
let c = s !== null && typeof window < "u" ?
|
|
261
|
-
e.provide(
|
|
266
|
+
let c = s !== null && typeof window < "u" ? be(e, s) : null;
|
|
267
|
+
e.provide(_e, Object.freeze({
|
|
262
268
|
lang: r,
|
|
263
269
|
navigate: a,
|
|
264
270
|
windows: c
|
|
265
271
|
}));
|
|
266
|
-
} },
|
|
267
|
-
function
|
|
272
|
+
} }, Se = 4e4;
|
|
273
|
+
function Ce(e) {
|
|
268
274
|
if (typeof e != "string") return null;
|
|
269
275
|
let t = /filename\*\s*=\s*UTF-8''([^;]+)/i.exec(e);
|
|
270
276
|
if (t !== null) try {
|
|
@@ -275,7 +281,7 @@ function we(e) {
|
|
|
275
281
|
let r = /filename\s*=\s*([^;"\s]+)/i.exec(e);
|
|
276
282
|
return r === null ? null : r[1];
|
|
277
283
|
}
|
|
278
|
-
function
|
|
284
|
+
function we(e) {
|
|
279
285
|
try {
|
|
280
286
|
let t = new URL(e, window.location.href).pathname.split("/").filter((e) => e !== "");
|
|
281
287
|
return t.length === 0 ? null : decodeURIComponent(t[t.length - 1]);
|
|
@@ -283,7 +289,7 @@ function Te(e) {
|
|
|
283
289
|
return null;
|
|
284
290
|
}
|
|
285
291
|
}
|
|
286
|
-
async function
|
|
292
|
+
async function Te(e) {
|
|
287
293
|
let t = await fetch(e, { credentials: "same-origin" });
|
|
288
294
|
if (t.redirected) throw Object.assign(/* @__PURE__ */ Error(`downloadFile: сервер перенаправил запрос ${e}`), {
|
|
289
295
|
redirectUrl: t.url,
|
|
@@ -293,67 +299,121 @@ async function Ee(e) {
|
|
|
293
299
|
redirectUrl: null,
|
|
294
300
|
status: t.status
|
|
295
301
|
});
|
|
296
|
-
let n =
|
|
297
|
-
i.href = r, i.download = n, i.style.display = "none", document.body.appendChild(i), i.click(), i.remove(), setTimeout(() => URL.revokeObjectURL(r),
|
|
302
|
+
let n = Ce(t.headers.get("Content-Disposition")) ?? we(e) ?? "download", r = URL.createObjectURL(await t.blob()), i = document.createElement("a");
|
|
303
|
+
i.href = r, i.download = n, i.style.display = "none", document.body.appendChild(i), i.click(), i.remove(), setTimeout(() => URL.revokeObjectURL(r), Se);
|
|
298
304
|
}
|
|
299
305
|
//#endregion
|
|
300
306
|
//#region src/colors.js
|
|
301
|
-
var
|
|
302
|
-
gray: {
|
|
307
|
+
var Ee = {
|
|
308
|
+
"gray-solid": {
|
|
309
|
+
pill: "bb:bg-gray-500 bb:text-white",
|
|
310
|
+
pillHover: "bb:hover:bg-gray-600",
|
|
311
|
+
button: "bb:bg-gray-500 bb:border-gray-600 bb:text-white",
|
|
312
|
+
buttonHover: "bb:hover:bg-gray-600",
|
|
313
|
+
menuItem: "bb:bg-gray-500 bb:text-white bb:hover:bg-gray-600 bb:focus:bg-gray-600",
|
|
314
|
+
mark: "bb:text-gray-500"
|
|
315
|
+
},
|
|
316
|
+
"gray-pale": {
|
|
303
317
|
pill: "bb:bg-gray-100 bb:text-gray-800",
|
|
304
318
|
pillHover: "bb:hover:text-gray-600",
|
|
305
|
-
button: "bb:bg-gray-100 bb:border-gray-300 bb:text-gray-800
|
|
319
|
+
button: "bb:bg-gray-100 bb:border-gray-300 bb:text-gray-800",
|
|
320
|
+
buttonHover: "bb:hover:bg-gray-200",
|
|
306
321
|
menuItem: "bb:bg-gray-100 bb:text-gray-800 bb:hover:bg-gray-200 bb:focus:bg-gray-200",
|
|
307
322
|
mark: "bb:text-gray-500"
|
|
308
323
|
},
|
|
309
|
-
green: {
|
|
324
|
+
"green-solid": {
|
|
325
|
+
pill: "bb:bg-green-600 bb:text-white",
|
|
326
|
+
pillHover: "bb:hover:bg-green-700",
|
|
327
|
+
button: "bb:bg-green-600 bb:border-green-700 bb:text-white",
|
|
328
|
+
buttonHover: "bb:hover:bg-green-700",
|
|
329
|
+
menuItem: "bb:bg-green-600 bb:text-white bb:hover:bg-green-700 bb:focus:bg-green-700",
|
|
330
|
+
mark: "bb:text-green-500"
|
|
331
|
+
},
|
|
332
|
+
"green-pale": {
|
|
310
333
|
pill: "bb:bg-green-100 bb:text-green-800",
|
|
311
334
|
pillHover: "bb:hover:text-green-600",
|
|
312
|
-
button: "bb:bg-green-100 bb:border-green-300 bb:text-green-800
|
|
335
|
+
button: "bb:bg-green-100 bb:border-green-300 bb:text-green-800",
|
|
336
|
+
buttonHover: "bb:hover:bg-green-200",
|
|
313
337
|
menuItem: "bb:bg-green-100 bb:text-green-800 bb:hover:bg-green-200 bb:focus:bg-green-200",
|
|
314
338
|
mark: "bb:text-green-500"
|
|
315
339
|
},
|
|
316
|
-
yellow: {
|
|
340
|
+
"yellow-solid": {
|
|
341
|
+
pill: "bb:bg-yellow-300 bb:text-yellow-950",
|
|
342
|
+
pillHover: "bb:hover:bg-yellow-400",
|
|
343
|
+
button: "bb:bg-yellow-300 bb:border-yellow-400 bb:text-yellow-950",
|
|
344
|
+
buttonHover: "bb:hover:bg-yellow-400",
|
|
345
|
+
menuItem: "bb:bg-yellow-300 bb:text-yellow-950 bb:hover:bg-yellow-400 bb:focus:bg-yellow-400",
|
|
346
|
+
mark: "bb:text-yellow-500"
|
|
347
|
+
},
|
|
348
|
+
"yellow-pale": {
|
|
317
349
|
pill: "bb:bg-yellow-100 bb:text-yellow-800",
|
|
318
350
|
pillHover: "bb:hover:text-yellow-600",
|
|
319
|
-
button: "bb:bg-yellow-100 bb:border-yellow-300 bb:text-yellow-800
|
|
351
|
+
button: "bb:bg-yellow-100 bb:border-yellow-300 bb:text-yellow-800",
|
|
352
|
+
buttonHover: "bb:hover:bg-yellow-200",
|
|
320
353
|
menuItem: "bb:bg-yellow-100 bb:text-yellow-800 bb:hover:bg-yellow-200 bb:focus:bg-yellow-200",
|
|
321
354
|
mark: "bb:text-yellow-500"
|
|
322
355
|
},
|
|
323
|
-
red: {
|
|
356
|
+
"red-solid": {
|
|
357
|
+
pill: "bb:bg-red-600 bb:text-white",
|
|
358
|
+
pillHover: "bb:hover:bg-red-700",
|
|
359
|
+
button: "bb:bg-red-600 bb:border-red-700 bb:text-white",
|
|
360
|
+
buttonHover: "bb:hover:bg-red-700",
|
|
361
|
+
menuItem: "bb:bg-red-600 bb:text-white bb:hover:bg-red-700 bb:focus:bg-red-700",
|
|
362
|
+
mark: "bb:text-red-500"
|
|
363
|
+
},
|
|
364
|
+
"red-pale": {
|
|
324
365
|
pill: "bb:bg-red-100 bb:text-red-800",
|
|
325
366
|
pillHover: "bb:hover:text-red-600",
|
|
326
|
-
button: "bb:bg-red-100 bb:border-red-300 bb:text-red-800
|
|
367
|
+
button: "bb:bg-red-100 bb:border-red-300 bb:text-red-800",
|
|
368
|
+
buttonHover: "bb:hover:bg-red-200",
|
|
327
369
|
menuItem: "bb:bg-red-100 bb:text-red-800 bb:hover:bg-red-200 bb:focus:bg-red-200",
|
|
328
370
|
mark: "bb:text-red-500"
|
|
329
371
|
},
|
|
330
|
-
indigo: {
|
|
372
|
+
"indigo-solid": {
|
|
373
|
+
pill: "bb:bg-indigo-500 bb:text-white",
|
|
374
|
+
pillHover: "bb:hover:bg-indigo-600",
|
|
375
|
+
button: "bb:bg-indigo-500 bb:border-indigo-600 bb:text-white",
|
|
376
|
+
buttonHover: "bb:hover:bg-indigo-600",
|
|
377
|
+
menuItem: "bb:bg-indigo-500 bb:text-white bb:hover:bg-indigo-600 bb:focus:bg-indigo-600",
|
|
378
|
+
mark: "bb:text-indigo-500"
|
|
379
|
+
},
|
|
380
|
+
"indigo-pale": {
|
|
331
381
|
pill: "bb:bg-indigo-100 bb:text-indigo-800",
|
|
332
382
|
pillHover: "bb:hover:text-indigo-600",
|
|
333
|
-
button: "bb:bg-indigo-100 bb:border-indigo-300 bb:text-indigo-800
|
|
383
|
+
button: "bb:bg-indigo-100 bb:border-indigo-300 bb:text-indigo-800",
|
|
384
|
+
buttonHover: "bb:hover:bg-indigo-200",
|
|
334
385
|
menuItem: "bb:bg-indigo-100 bb:text-indigo-800 bb:hover:bg-indigo-200 bb:focus:bg-indigo-200",
|
|
335
386
|
mark: "bb:text-indigo-500"
|
|
336
387
|
},
|
|
337
|
-
purple: {
|
|
388
|
+
"purple-solid": {
|
|
389
|
+
pill: "bb:bg-purple-500 bb:text-white",
|
|
390
|
+
pillHover: "bb:hover:bg-purple-600",
|
|
391
|
+
button: "bb:bg-purple-500 bb:border-purple-600 bb:text-white",
|
|
392
|
+
buttonHover: "bb:hover:bg-purple-600",
|
|
393
|
+
menuItem: "bb:bg-purple-500 bb:text-white bb:hover:bg-purple-600 bb:focus:bg-purple-600",
|
|
394
|
+
mark: "bb:text-purple-500"
|
|
395
|
+
},
|
|
396
|
+
"purple-pale": {
|
|
338
397
|
pill: "bb:bg-purple-100 bb:text-purple-800",
|
|
339
398
|
pillHover: "bb:hover:text-purple-600",
|
|
340
|
-
button: "bb:bg-purple-100 bb:border-purple-300 bb:text-purple-800
|
|
399
|
+
button: "bb:bg-purple-100 bb:border-purple-300 bb:text-purple-800",
|
|
400
|
+
buttonHover: "bb:hover:bg-purple-200",
|
|
341
401
|
menuItem: "bb:bg-purple-100 bb:text-purple-800 bb:hover:bg-purple-200 bb:focus:bg-purple-200",
|
|
342
402
|
mark: "bb:text-purple-500"
|
|
343
403
|
}
|
|
344
|
-
},
|
|
345
|
-
function
|
|
346
|
-
return
|
|
404
|
+
}, De = Object.keys(Ee);
|
|
405
|
+
function k(e) {
|
|
406
|
+
return De.includes(e);
|
|
347
407
|
}
|
|
348
|
-
function
|
|
349
|
-
return
|
|
408
|
+
function Oe(e, t) {
|
|
409
|
+
return k(e) ? Ee[e][t] ?? "" : "";
|
|
350
410
|
}
|
|
351
|
-
var
|
|
411
|
+
var A = { methods: { colorClass: Oe } }, j = (e, t) => {
|
|
352
412
|
let n = e.__vccOpts || e;
|
|
353
413
|
for (let [e, r] of t) n[e] = r;
|
|
354
414
|
return n;
|
|
355
|
-
},
|
|
356
|
-
mixins: [
|
|
415
|
+
}, ke = {
|
|
416
|
+
mixins: [A],
|
|
357
417
|
props: {
|
|
358
418
|
withPulse: {
|
|
359
419
|
type: Boolean,
|
|
@@ -362,11 +422,11 @@ var k = { methods: { colorClass: ke } }, A = (e, t) => {
|
|
|
362
422
|
color: {
|
|
363
423
|
type: String,
|
|
364
424
|
required: !0,
|
|
365
|
-
validator:
|
|
425
|
+
validator: k
|
|
366
426
|
}
|
|
367
427
|
}
|
|
368
428
|
};
|
|
369
|
-
function
|
|
429
|
+
function Ae(e, t, n, r, o, s) {
|
|
370
430
|
return p(), i("div", { class: d(["bb-dashboard-ui bb:flex bb:h-full bb:items-center bb:leading-none bb:text-4xl", [e.colorClass(n.color, "mark"), { "bb:animate-pulse": n.withPulse }]]) }, [...t[0] ||= [a("svg", {
|
|
371
431
|
class: "bb:fill-current bb:w-2 bb:h-2",
|
|
372
432
|
viewBox: "0 0 120 120"
|
|
@@ -376,8 +436,8 @@ function je(e, t, n, r, o, s) {
|
|
|
376
436
|
r: "45"
|
|
377
437
|
})], -1)]], 2);
|
|
378
438
|
}
|
|
379
|
-
var
|
|
380
|
-
components: { Dot:
|
|
439
|
+
var M = /*#__PURE__*/ j(ke, [["render", Ae]]), je = {
|
|
440
|
+
components: { Dot: M },
|
|
381
441
|
props: {
|
|
382
442
|
text: {
|
|
383
443
|
type: String,
|
|
@@ -392,45 +452,45 @@ var j = /*#__PURE__*/ A(Ae, [["render", je]]), Me = {
|
|
|
392
452
|
default: !1
|
|
393
453
|
}
|
|
394
454
|
}
|
|
395
|
-
},
|
|
396
|
-
function
|
|
455
|
+
}, Me = { class: "bb:flex bb:h-6 bb:px-3 bb:bg-white bb:items-center bb:justify-between" }, Ne = ["textContent"];
|
|
456
|
+
function Pe(e, t, n, r, o, s) {
|
|
397
457
|
let l = g("dot");
|
|
398
|
-
return p(), i("div",
|
|
458
|
+
return p(), i("div", Me, [
|
|
399
459
|
a("div", {
|
|
400
460
|
class: "bb:flex bb:flex-1 bb:h-full bb:items-center bb:text-xs bb:text-gray-500 bb:whitespace-nowrap bb:truncate bb:leading-tight bb:select-none",
|
|
401
461
|
textContent: y(n.text)
|
|
402
|
-
}, null, 8,
|
|
403
|
-
|
|
404
|
-
color: "red",
|
|
462
|
+
}, null, 8, Ne),
|
|
463
|
+
w(c(l, {
|
|
464
|
+
color: "red-pale",
|
|
405
465
|
"with-pulse": !0,
|
|
406
466
|
class: "bb:ml-3"
|
|
407
|
-
}, null, 512), [[
|
|
408
|
-
|
|
409
|
-
color: "red",
|
|
467
|
+
}, null, 512), [[S, n.isLoading]]),
|
|
468
|
+
w(c(l, {
|
|
469
|
+
color: "red-pale",
|
|
410
470
|
class: "bb:ml-3"
|
|
411
|
-
}, null, 512), [[
|
|
471
|
+
}, null, 512), [[S, n.isRequired]])
|
|
412
472
|
]);
|
|
413
473
|
}
|
|
414
|
-
var
|
|
415
|
-
inject:
|
|
474
|
+
var N = /*#__PURE__*/ j(je, [["render", Pe]]), P = {
|
|
475
|
+
inject: ye,
|
|
416
476
|
props: { lang: {
|
|
417
477
|
type: String,
|
|
418
478
|
default: null,
|
|
419
|
-
validator: (e) => e === null ||
|
|
479
|
+
validator: (e) => e === null || D(e)
|
|
420
480
|
} },
|
|
421
481
|
computed: {
|
|
422
482
|
resolvedLang() {
|
|
423
|
-
return
|
|
483
|
+
return D(this.lang) ? this.lang : this.uiSettings.lang;
|
|
424
484
|
},
|
|
425
485
|
texts() {
|
|
426
|
-
return
|
|
486
|
+
return ie[this.resolvedLang];
|
|
427
487
|
}
|
|
428
488
|
}
|
|
429
|
-
},
|
|
489
|
+
}, Fe = [
|
|
430
490
|
{ transform: "scale(1)" },
|
|
431
491
|
{ transform: "scale(0.8)" },
|
|
432
492
|
{ transform: "scale(1)" }
|
|
433
|
-
],
|
|
493
|
+
], Ie = 150, Le = {
|
|
434
494
|
created() {
|
|
435
495
|
this.isPressing = !1, this.isUnmounted = !1;
|
|
436
496
|
},
|
|
@@ -438,39 +498,39 @@ var M = /*#__PURE__*/ A(Me, [["render", Fe]]), N = {
|
|
|
438
498
|
this.isUnmounted = !0;
|
|
439
499
|
},
|
|
440
500
|
methods: { press() {
|
|
441
|
-
this.isPressing || (this.isPressing = !0,
|
|
501
|
+
this.isPressing || (this.isPressing = !0, Re(this.$el).then(() => {
|
|
442
502
|
this.isPressing = !1, this.isUnmounted || this.$emit("clicked");
|
|
443
503
|
}));
|
|
444
504
|
} }
|
|
445
505
|
};
|
|
446
|
-
function
|
|
447
|
-
if (typeof e.animate != "function" ||
|
|
506
|
+
function Re(e) {
|
|
507
|
+
if (typeof e.animate != "function" || ze()) return Promise.resolve();
|
|
448
508
|
let t = () => {};
|
|
449
|
-
return e.animate(
|
|
450
|
-
duration:
|
|
509
|
+
return e.animate(Fe, {
|
|
510
|
+
duration: Ie,
|
|
451
511
|
easing: "ease-out"
|
|
452
512
|
}).finished.then(t, t);
|
|
453
513
|
}
|
|
454
|
-
function
|
|
514
|
+
function ze() {
|
|
455
515
|
return typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
456
516
|
}
|
|
457
517
|
//#endregion
|
|
458
518
|
//#region src/components/CrossButton.vue
|
|
459
|
-
var
|
|
460
|
-
mixins: [
|
|
519
|
+
var Be = {
|
|
520
|
+
mixins: [P, Le],
|
|
461
521
|
props: { size: {
|
|
462
522
|
type: String,
|
|
463
523
|
required: !0,
|
|
464
524
|
validator: (e) => ["small", "large"].includes(e)
|
|
465
525
|
} },
|
|
466
526
|
emits: ["clicked"]
|
|
467
|
-
},
|
|
468
|
-
function
|
|
527
|
+
}, Ve = { class: "bb:sr-only bb:pointer-events-none bb:cursor-default" }, He = { class: "bb:flex bb:rounded-md bb:group-focus-visible:focus-ring bb:pointer-events-none bb:cursor-default" };
|
|
528
|
+
function Ue(e, t, n, r, o, c) {
|
|
469
529
|
return p(), i("button", {
|
|
470
530
|
type: "button",
|
|
471
531
|
class: "bb-dashboard-ui bb:group bb:flex bb:items-center bb:justify-center bb:bg-transparent bb:cursor-pointer bb:text-gray-400 bb:focus:outline-hidden bb:hover:text-gray-500",
|
|
472
|
-
onClick: t[0] ||=
|
|
473
|
-
}, [a("span",
|
|
532
|
+
onClick: t[0] ||= E((...t) => e.press && e.press(...t), ["prevent"])
|
|
533
|
+
}, [a("span", Ve, [h(e.$slots, "default", {}, () => [s(y(e.texts.clear), 1)])]), a("span", He, [(p(), i("svg", {
|
|
474
534
|
class: d(["bb:stroke-current bb:pointer-events-none bb:cursor-default", {
|
|
475
535
|
"bb:w-6 bb:h-6": n.size === "small",
|
|
476
536
|
"bb:w-8 bb:h-8": n.size === "large"
|
|
@@ -485,24 +545,24 @@ function We(e, t, n, r, o, c) {
|
|
|
485
545
|
d: "M6 18L18 6M6 6l12 12"
|
|
486
546
|
}, null, -1)]], 2))])]);
|
|
487
547
|
}
|
|
488
|
-
var
|
|
489
|
-
function
|
|
548
|
+
var F = /*#__PURE__*/ j(Be, [["render", Ue]]), We = 10;
|
|
549
|
+
function Ge(e) {
|
|
490
550
|
let t = e.replace(/\D/g, "");
|
|
491
|
-
return (t.startsWith("7") || t.startsWith("8")) && t[1] === "9" && (t = t.slice(1)), t.slice(0,
|
|
551
|
+
return (t.startsWith("7") || t.startsWith("8")) && t[1] === "9" && (t = t.slice(1)), t.slice(0, We);
|
|
492
552
|
}
|
|
493
|
-
function
|
|
553
|
+
function Ke(e) {
|
|
494
554
|
return e === "" ? "" : `7${e}`;
|
|
495
555
|
}
|
|
496
|
-
function
|
|
556
|
+
function qe(e) {
|
|
497
557
|
let t = e ?? "", n = t.startsWith("+") ? t.slice(1) : t;
|
|
498
558
|
return n.startsWith("7") ? n.slice(1) : n;
|
|
499
559
|
}
|
|
500
560
|
//#endregion
|
|
501
561
|
//#region src/components/RussianMobileFilter.vue
|
|
502
|
-
var
|
|
562
|
+
var Je = 400, Ye = 3, Xe = {
|
|
503
563
|
components: {
|
|
504
|
-
ElementHeader:
|
|
505
|
-
CrossButton:
|
|
564
|
+
ElementHeader: N,
|
|
565
|
+
CrossButton: F
|
|
506
566
|
},
|
|
507
567
|
emits: ["update:modelValue", "changed"],
|
|
508
568
|
props: {
|
|
@@ -524,32 +584,32 @@ var qe = 400, Je = 3, Ye = {
|
|
|
524
584
|
}
|
|
525
585
|
},
|
|
526
586
|
data() {
|
|
527
|
-
return { digits:
|
|
587
|
+
return { digits: qe(this.modelValue) };
|
|
528
588
|
},
|
|
529
589
|
created() {
|
|
530
|
-
this.mask = null, this.debounceTimer = null, this.isWritingProgrammatically = !1, this.lastCommitted =
|
|
590
|
+
this.mask = null, this.debounceTimer = null, this.isWritingProgrammatically = !1, this.lastCommitted = qe(this.modelValue), this.isUnmounted = !1;
|
|
531
591
|
},
|
|
532
592
|
mounted() {
|
|
533
|
-
this.mask =
|
|
593
|
+
this.mask = ne(this.$refs.input, {
|
|
534
594
|
mask: "+7 (000) 000 00 00",
|
|
535
595
|
lazy: !0,
|
|
536
596
|
prepare: (e, t) => t.unmaskedValue === "" && (e === "7" || e === "8") ? "" : e
|
|
537
597
|
}), this.mask.on("accept", () => {
|
|
538
|
-
this.isWritingProgrammatically || (this.digits = this.mask.unmaskedValue, this.$emit("update:modelValue",
|
|
598
|
+
this.isWritingProgrammatically || (this.digits = this.mask.unmaskedValue, this.$emit("update:modelValue", Ke(this.digits)), this.scheduleCommit());
|
|
539
599
|
}), this.syncFromModelValue(this.modelValue);
|
|
540
600
|
},
|
|
541
601
|
beforeUnmount() {
|
|
542
602
|
this.isUnmounted = !0, clearTimeout(this.debounceTimer), this.mask?.destroy();
|
|
543
603
|
},
|
|
544
604
|
watch: { modelValue(e) {
|
|
545
|
-
e !==
|
|
605
|
+
e !== Ke(this.digits) && this.syncFromModelValue(e);
|
|
546
606
|
} },
|
|
547
607
|
methods: {
|
|
548
608
|
syncFromModelValue(e) {
|
|
549
|
-
this.writeToMask(
|
|
609
|
+
this.writeToMask(qe(e)), this.digits = this.mask.unmaskedValue, this.lastCommitted = this.digits;
|
|
550
610
|
},
|
|
551
611
|
applyUserDigits(e) {
|
|
552
|
-
this.writeToMask(e), this.digits = this.mask.unmaskedValue, this.$emit("update:modelValue",
|
|
612
|
+
this.writeToMask(e), this.digits = this.mask.unmaskedValue, this.$emit("update:modelValue", Ke(this.digits));
|
|
553
613
|
},
|
|
554
614
|
writeToMask(e) {
|
|
555
615
|
if (this.isWritingProgrammatically = !0, e === "") this.mask.value = "";
|
|
@@ -572,7 +632,7 @@ var qe = 400, Je = 3, Ye = {
|
|
|
572
632
|
this.isUnmounted || (this.setLazy(!0), this.digits === "" && this.writeToMask(""), this.commit());
|
|
573
633
|
},
|
|
574
634
|
onPaste(e) {
|
|
575
|
-
this.applyUserDigits(
|
|
635
|
+
this.applyUserDigits(Ge(e.clipboardData?.getData("text") ?? "")), this.scheduleCommit();
|
|
576
636
|
},
|
|
577
637
|
moveFocusFromEraser() {
|
|
578
638
|
let e = this.$refs.eraser.$el;
|
|
@@ -586,16 +646,16 @@ var qe = 400, Je = 3, Ye = {
|
|
|
586
646
|
this.commit();
|
|
587
647
|
return;
|
|
588
648
|
}
|
|
589
|
-
this.digits.length <
|
|
649
|
+
this.digits.length < Ye || (this.debounceTimer = setTimeout(() => this.commit(), Je));
|
|
590
650
|
},
|
|
591
651
|
commit() {
|
|
592
652
|
clearTimeout(this.debounceTimer), this.digits !== this.lastCommitted && (this.lastCommitted = this.digits, this.$emit("changed"));
|
|
593
653
|
}
|
|
594
654
|
}
|
|
595
|
-
},
|
|
596
|
-
function
|
|
655
|
+
}, Ze = { class: "bb-dashboard-ui bb:flex bb:flex-none" }, Qe = { class: "bb:flex bb:w-full bb:flex-col bb:border bb:border-white bb:bg-white" }, $e = { class: "bb:relative bb:flex bb:h-full bb:w-full" }, et = { class: "bb:flex bb:w-full bb:h-full bb:items-center bb:justify-center" };
|
|
656
|
+
function tt(e, t, n, r, o, s) {
|
|
597
657
|
let l = g("element-header"), u = g("cross-button");
|
|
598
|
-
return p(), i("div",
|
|
658
|
+
return p(), i("div", Ze, [a("div", Qe, [c(l, {
|
|
599
659
|
text: n.header,
|
|
600
660
|
"is-required": n.isRequired,
|
|
601
661
|
"is-loading": n.isLoading
|
|
@@ -603,7 +663,7 @@ function et(e, t, n, r, o, s) {
|
|
|
603
663
|
"text",
|
|
604
664
|
"is-required",
|
|
605
665
|
"is-loading"
|
|
606
|
-
]), a("div",
|
|
666
|
+
]), a("div", $e, [a("label", et, [a("input", {
|
|
607
667
|
ref: "input",
|
|
608
668
|
type: "tel",
|
|
609
669
|
inputmode: "tel",
|
|
@@ -611,20 +671,20 @@ function et(e, t, n, r, o, s) {
|
|
|
611
671
|
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
672
|
onFocus: t[0] ||= (...e) => s.onFocus && s.onFocus(...e),
|
|
613
673
|
onBlur: t[1] ||= (...e) => s.onBlur && s.onBlur(...e),
|
|
614
|
-
onKeydown: t[2] ||=
|
|
615
|
-
onPaste: t[3] ||=
|
|
616
|
-
}, null, 544)]),
|
|
674
|
+
onKeydown: t[2] ||= T((...e) => s.commit && s.commit(...e), ["enter"]),
|
|
675
|
+
onPaste: t[3] ||= E((...e) => s.onPaste && s.onPaste(...e), ["prevent"])
|
|
676
|
+
}, null, 544)]), w(c(u, {
|
|
617
677
|
ref: "eraser",
|
|
618
678
|
size: "small",
|
|
619
|
-
onMousedown: t[4] ||=
|
|
679
|
+
onMousedown: t[4] ||= E(() => {}, ["prevent"]),
|
|
620
680
|
onClicked: s.clear,
|
|
621
681
|
class: "bb:absolute bb:right-0 bb:top-0 bb:pr-2 bb:h-full"
|
|
622
|
-
}, null, 8, ["onClicked"]), [[
|
|
682
|
+
}, null, 8, ["onClicked"]), [[S, o.digits.length > 0]])])])]);
|
|
623
683
|
}
|
|
624
|
-
var
|
|
684
|
+
var nt = /*#__PURE__*/ j(Xe, [["render", tt]]), rt = {
|
|
625
685
|
components: {
|
|
626
|
-
ElementHeader:
|
|
627
|
-
CrossButton:
|
|
686
|
+
ElementHeader: N,
|
|
687
|
+
CrossButton: F
|
|
628
688
|
},
|
|
629
689
|
emits: ["update:modelValue", "changed"],
|
|
630
690
|
props: {
|
|
@@ -666,10 +726,10 @@ var tt = /*#__PURE__*/ A(Ye, [["render", et]]), nt = {
|
|
|
666
726
|
this.$emit("update:modelValue", this.search), this.$emit("changed");
|
|
667
727
|
}
|
|
668
728
|
}
|
|
669
|
-
},
|
|
670
|
-
function
|
|
729
|
+
}, it = { class: "bb-dashboard-ui bb:flex bb:flex-none" }, at = { class: "bb:flex bb:w-full bb:flex-col bb:border bb:border-white bb:bg-white" }, ot = { class: "bb:relative bb:flex bb:h-full bb:w-full" }, st = { class: "bb:flex bb:w-full bb:h-full bb:items-center bb:justify-center" };
|
|
730
|
+
function ct(e, t, n, r, o, s) {
|
|
671
731
|
let l = g("element-header"), u = g("cross-button");
|
|
672
|
-
return p(), i("div",
|
|
732
|
+
return p(), i("div", it, [a("div", at, [c(l, {
|
|
673
733
|
text: n.header,
|
|
674
734
|
"is-required": n.isRequired,
|
|
675
735
|
"is-loading": n.isLoading
|
|
@@ -677,60 +737,60 @@ function st(e, t, n, r, o, s) {
|
|
|
677
737
|
"text",
|
|
678
738
|
"is-required",
|
|
679
739
|
"is-loading"
|
|
680
|
-
]), a("div",
|
|
740
|
+
]), a("div", ot, [a("label", st, [w(a("input", {
|
|
681
741
|
ref: "input",
|
|
682
742
|
class: "bb:flex bb:w-full bb:h-full bb:px-3 bb:py-2 bb:cursor-pointer bb:truncate bb:focus:focus-ring bb:border-none",
|
|
683
743
|
"onUpdate:modelValue": t[0] ||= (e) => o.search = e,
|
|
684
744
|
onInput: t[1] ||= (...e) => s.startSearch && s.startSearch(...e)
|
|
685
745
|
}, null, 544), [[
|
|
686
|
-
|
|
746
|
+
ee,
|
|
687
747
|
o.search,
|
|
688
748
|
void 0,
|
|
689
749
|
{ trim: !0 }
|
|
690
|
-
]])]),
|
|
750
|
+
]])]), w(c(u, {
|
|
691
751
|
ref: "eraser",
|
|
692
752
|
size: "small",
|
|
693
753
|
onClicked: s.clearInput,
|
|
694
754
|
class: "bb:absolute bb:right-0 bb:top-0 bb:pr-2 bb:h-full"
|
|
695
|
-
}, null, 8, ["onClicked"]), [[
|
|
755
|
+
}, null, 8, ["onClicked"]), [[S, s.inputNeedsEraser]])])])]);
|
|
696
756
|
}
|
|
697
|
-
var
|
|
698
|
-
function
|
|
757
|
+
var lt = /*#__PURE__*/ j(rt, [["render", ct]]), I = 4, L = 8;
|
|
758
|
+
function ut(e) {
|
|
699
759
|
return typeof e?.showPopover == "function";
|
|
700
760
|
}
|
|
701
|
-
function
|
|
702
|
-
return
|
|
761
|
+
function R(e) {
|
|
762
|
+
return ut(e) && e.matches(":popover-open");
|
|
703
763
|
}
|
|
704
|
-
function
|
|
705
|
-
let c = e.getBoundingClientRect(), l = document.documentElement.clientWidth, u = document.documentElement.clientHeight, d = Math.max(
|
|
764
|
+
function dt(e, t, { maxWidth: n = null, align: r = "end", fitsBelow: i = !0, fitsRight: a = !0, shift: o = !1, popoverWidth: s = 0 } = {}) {
|
|
765
|
+
let c = e.getBoundingClientRect(), l = document.documentElement.clientWidth, u = document.documentElement.clientHeight, d = Math.max(L, c.left), f = Math.max(L, l - c.right), p = Math.max(0, l - d - L), m = Math.max(0, l - f - L), h = r === "start" && (a || p >= m), g = Math.max(0, u - c.bottom - I - L), _ = Math.max(0, c.top - I - L), v = i || g >= _, y = "";
|
|
706
766
|
if (r === "start") {
|
|
707
767
|
let e = h ? p : m;
|
|
708
768
|
y = `${n === null ? e : Math.min(n, e)}px`;
|
|
709
769
|
} else o ? y = `${Math.max(0, l - 16)}px` : n !== null && (y = `${Math.min(n, m)}px`);
|
|
710
|
-
let b = o ? Math.max(
|
|
770
|
+
let b = o ? Math.max(L, Math.min(f, l - L - s)) : f;
|
|
711
771
|
Object.assign(t.style, {
|
|
712
|
-
top: v ? `${c.bottom +
|
|
713
|
-
bottom: v ? "auto" : `${u - c.top +
|
|
772
|
+
top: v ? `${c.bottom + I}px` : "auto",
|
|
773
|
+
bottom: v ? "auto" : `${u - c.top + I}px`,
|
|
714
774
|
right: h ? "auto" : `${b}px`,
|
|
715
775
|
left: h ? `${d}px` : "auto",
|
|
716
776
|
maxHeight: `${v ? g : _}px`,
|
|
717
777
|
maxWidth: y
|
|
718
778
|
});
|
|
719
779
|
}
|
|
720
|
-
function
|
|
780
|
+
function ft(e, t, n = {}) {
|
|
721
781
|
let r = t.scrollHeight <= t.clientHeight + 1, i = t.scrollWidth <= t.clientWidth + 1;
|
|
722
|
-
(!r || !i) &&
|
|
782
|
+
(!r || !i) && dt(e, t, {
|
|
723
783
|
...n,
|
|
724
784
|
fitsBelow: r,
|
|
725
785
|
fitsRight: i
|
|
726
|
-
}), n.shift &&
|
|
786
|
+
}), n.shift && dt(e, t, {
|
|
727
787
|
...n,
|
|
728
788
|
fitsBelow: r,
|
|
729
789
|
fitsRight: i,
|
|
730
790
|
popoverWidth: t.getBoundingClientRect().width
|
|
731
791
|
});
|
|
732
792
|
}
|
|
733
|
-
function
|
|
793
|
+
function pt(e, t) {
|
|
734
794
|
let n = (n) => {
|
|
735
795
|
e.contains(n.target) || t();
|
|
736
796
|
};
|
|
@@ -743,11 +803,11 @@ function dt(e, t) {
|
|
|
743
803
|
}
|
|
744
804
|
//#endregion
|
|
745
805
|
//#region src/menuFocus.js
|
|
746
|
-
var
|
|
747
|
-
function
|
|
806
|
+
var mt = "a[href], button";
|
|
807
|
+
function ht(e, t = () => null, n = null) {
|
|
748
808
|
let r = (r) => {
|
|
749
809
|
if (r.key !== "ArrowDown" && r.key !== "ArrowUp") return;
|
|
750
|
-
let i = n === null ? [...e.querySelectorAll(
|
|
810
|
+
let i = n === null ? [...e.querySelectorAll(mt)] : n();
|
|
751
811
|
if (i.length === 0) return;
|
|
752
812
|
r.preventDefault();
|
|
753
813
|
let a = r.key === "ArrowDown" ? 1 : -1, o = i.indexOf(document.activeElement);
|
|
@@ -757,7 +817,7 @@ function pt(e, t = () => null, n = null) {
|
|
|
757
817
|
document.removeEventListener("keydown", r, !0);
|
|
758
818
|
};
|
|
759
819
|
}
|
|
760
|
-
function
|
|
820
|
+
function gt(e) {
|
|
761
821
|
let t = (t) => {
|
|
762
822
|
if (t.key !== "Tab" || t.ctrlKey || t.altKey || t.metaKey) return;
|
|
763
823
|
let n = e();
|
|
@@ -772,7 +832,7 @@ function mt(e) {
|
|
|
772
832
|
}
|
|
773
833
|
//#endregion
|
|
774
834
|
//#region src/components/PopoverPanel.vue
|
|
775
|
-
var
|
|
835
|
+
var _t = {
|
|
776
836
|
emits: ["update:modelValue", "toggle"],
|
|
777
837
|
props: {
|
|
778
838
|
modelValue: {
|
|
@@ -877,11 +937,11 @@ var ht = {
|
|
|
877
937
|
methods: {
|
|
878
938
|
applyPanelState() {
|
|
879
939
|
let e = this.$refs.panel;
|
|
880
|
-
|
|
940
|
+
ut(e) && e.isConnected && (this.panelIsOpen && !R(e) && e.showPopover(), !this.panelIsOpen && R(e) && e.hidePopover());
|
|
881
941
|
},
|
|
882
942
|
close() {
|
|
883
943
|
let e = this.$refs.panel;
|
|
884
|
-
|
|
944
|
+
R(e) && e.hidePopover();
|
|
885
945
|
},
|
|
886
946
|
reportPanelShown(e) {
|
|
887
947
|
this.panelShown !== e && (this.panelShown = e, this.$emit("toggle", e));
|
|
@@ -896,9 +956,9 @@ var ht = {
|
|
|
896
956
|
align: this.align,
|
|
897
957
|
shift: this.shift
|
|
898
958
|
};
|
|
899
|
-
this.$refs.panel.style.minWidth = "", this.$refs.panel.style.minHeight = "", this.$refs.panel.style.scrollbarGutter = "",
|
|
959
|
+
this.$refs.panel.style.minWidth = "", this.$refs.panel.style.minHeight = "", this.$refs.panel.style.scrollbarGutter = "", dt(e, this.$refs.panel, t), requestAnimationFrame(() => {
|
|
900
960
|
let n = this.$refs.panel;
|
|
901
|
-
if (
|
|
961
|
+
if (R(n) && (ft(e, n, t), this.keepSize)) {
|
|
902
962
|
n.scrollHeight > n.clientHeight + 1 && (n.style.scrollbarGutter = "stable");
|
|
903
963
|
let e = n.getBoundingClientRect();
|
|
904
964
|
n.style.minWidth = `${e.width}px`, n.style.top === "auto" && (n.style.minHeight = `${e.height}px`);
|
|
@@ -911,8 +971,8 @@ var ht = {
|
|
|
911
971
|
},
|
|
912
972
|
onToggle() {
|
|
913
973
|
this.stopListening();
|
|
914
|
-
let e = this.$refs.panel, t =
|
|
915
|
-
t && (this.stopClosing =
|
|
974
|
+
let e = this.$refs.panel, t = R(e);
|
|
975
|
+
t && (this.stopClosing = pt(e, this.close), this.arrows && (this.stopArrows = ht(e, this.findSelected, this.findStops)), this.findTabStops !== null && (this.stopTab = gt(this.findTabStops))), t || this.restoreFocus(e), this.reportPanelShown(t), t !== this.panelIsOpen && (this.panelIsOpen = t, this.$emit("update:modelValue", t));
|
|
916
976
|
},
|
|
917
977
|
restoreFocus(e) {
|
|
918
978
|
let t = this.focusWasInside;
|
|
@@ -924,10 +984,10 @@ var ht = {
|
|
|
924
984
|
this.stopClosing !== null && (this.stopClosing(), this.stopClosing = null), this.stopArrows !== null && (this.stopArrows(), this.stopArrows = null), this.stopTab !== null && (this.stopTab(), this.stopTab = null);
|
|
925
985
|
}
|
|
926
986
|
}
|
|
927
|
-
},
|
|
987
|
+
}, vt = {
|
|
928
988
|
key: 0,
|
|
929
989
|
class: "bb:relative"
|
|
930
|
-
},
|
|
990
|
+
}, yt = [
|
|
931
991
|
"id",
|
|
932
992
|
"role",
|
|
933
993
|
"aria-orientation",
|
|
@@ -935,8 +995,8 @@ var ht = {
|
|
|
935
995
|
"aria-label",
|
|
936
996
|
"tabindex"
|
|
937
997
|
];
|
|
938
|
-
function
|
|
939
|
-
return n.hasContent ? (p(), i("span",
|
|
998
|
+
function bt(e, t, n, o, s, c) {
|
|
999
|
+
return n.hasContent ? (p(), i("span", vt, [h(e.$slots, "trigger", {
|
|
940
1000
|
id: o.buttonId,
|
|
941
1001
|
popovertarget: o.panelId
|
|
942
1002
|
}), a("div", {
|
|
@@ -952,15 +1012,15 @@ function vt(e, t, n, o, s, c) {
|
|
|
952
1012
|
onBeforetoggle: t[0] ||= (...e) => c.onBeforeToggle && c.onBeforeToggle(...e),
|
|
953
1013
|
onToggle: t[1] ||= (...e) => c.onToggle && c.onToggle(...e),
|
|
954
1014
|
onClick: t[2] ||= (...e) => c.onClick && c.onClick(...e)
|
|
955
|
-
}, [h(e.$slots, "default")], 42,
|
|
1015
|
+
}, [h(e.$slots, "default")], 42, yt)])) : r("", !0);
|
|
956
1016
|
}
|
|
957
|
-
var
|
|
1017
|
+
var z = /*#__PURE__*/ j(_t, [["render", bt]]);
|
|
958
1018
|
//#endregion
|
|
959
1019
|
//#region src/date.js
|
|
960
|
-
function
|
|
1020
|
+
function xt(e) {
|
|
961
1021
|
return `${String(e.getDate()).padStart(2, "0")}.${String(e.getMonth() + 1).padStart(2, "0")}.${String(e.getFullYear()).padStart(4, "0")}`;
|
|
962
1022
|
}
|
|
963
|
-
function
|
|
1023
|
+
function St(e) {
|
|
964
1024
|
let t = /^(\d{1,2})\.(\d{1,2})\.(\d{4})$/.exec(e);
|
|
965
1025
|
if (t === null) return null;
|
|
966
1026
|
let [, n, r, i] = t.map(Number), a = /* @__PURE__ */ new Date(0);
|
|
@@ -968,11 +1028,11 @@ function bt(e) {
|
|
|
968
1028
|
}
|
|
969
1029
|
//#endregion
|
|
970
1030
|
//#region src/dayFocus.js
|
|
971
|
-
var
|
|
972
|
-
function
|
|
1031
|
+
var Ct = ".pika-button.pika-day", wt = ".pika-button, .pika-prev, .pika-next";
|
|
1032
|
+
function Tt(e, t = () => null) {
|
|
973
1033
|
let n = (n) => {
|
|
974
1034
|
if (n.detail !== 0) return;
|
|
975
|
-
let r = n.target.closest(
|
|
1035
|
+
let r = n.target.closest(wt);
|
|
976
1036
|
r !== null && e.contains(r) && setTimeout(() => {
|
|
977
1037
|
let n = document.activeElement === r;
|
|
978
1038
|
if (r.dispatchEvent(new MouseEvent("mousedown", {
|
|
@@ -985,46 +1045,46 @@ function Ct(e, t = () => null) {
|
|
|
985
1045
|
};
|
|
986
1046
|
return e.addEventListener("click", n), () => e.removeEventListener("click", n);
|
|
987
1047
|
}
|
|
988
|
-
var
|
|
1048
|
+
var Et = {
|
|
989
1049
|
ArrowLeft: -1,
|
|
990
1050
|
ArrowRight: 1,
|
|
991
1051
|
ArrowUp: -7,
|
|
992
1052
|
ArrowDown: 7
|
|
993
1053
|
};
|
|
994
|
-
function
|
|
1054
|
+
function Dt(e, t) {
|
|
995
1055
|
let n = (n) => {
|
|
996
|
-
let r =
|
|
997
|
-
if (r === void 0 ||
|
|
1056
|
+
let r = Et[n.key];
|
|
1057
|
+
if (r === void 0 || Ot(document.activeElement)) return;
|
|
998
1058
|
n.preventDefault();
|
|
999
|
-
let i = document.activeElement?.closest(
|
|
1000
|
-
|
|
1059
|
+
let i = document.activeElement?.closest(Ct) ?? null, a = i !== null && e.contains(i) ? At(kt(i), r) : t.getDate() ?? jt();
|
|
1060
|
+
Mt(e, a) === null && t.gotoDate(a), Mt(e, a)?.focus();
|
|
1001
1061
|
};
|
|
1002
1062
|
return document.addEventListener("keydown", n, !0), () => document.removeEventListener("keydown", n, !0);
|
|
1003
1063
|
}
|
|
1004
|
-
function
|
|
1064
|
+
function Ot(e) {
|
|
1005
1065
|
return e !== null && e.matches("input, select, textarea, [contenteditable]");
|
|
1006
1066
|
}
|
|
1007
|
-
function
|
|
1067
|
+
function kt(e) {
|
|
1008
1068
|
return new Date(e.dataset.pikaYear, e.dataset.pikaMonth, e.dataset.pikaDay);
|
|
1009
1069
|
}
|
|
1010
|
-
function
|
|
1070
|
+
function At(e, t) {
|
|
1011
1071
|
return new Date(e.getFullYear(), e.getMonth(), e.getDate() + t);
|
|
1012
1072
|
}
|
|
1013
|
-
function
|
|
1073
|
+
function jt() {
|
|
1014
1074
|
let e = /* @__PURE__ */ new Date();
|
|
1015
1075
|
return new Date(e.getFullYear(), e.getMonth(), e.getDate());
|
|
1016
1076
|
}
|
|
1017
|
-
function
|
|
1018
|
-
return e.querySelector(`${
|
|
1077
|
+
function Mt(e, t) {
|
|
1078
|
+
return e.querySelector(`${Ct}[data-pika-year="${t.getFullYear()}"][data-pika-month="${t.getMonth()}"][data-pika-day="${t.getDate()}"]`);
|
|
1019
1079
|
}
|
|
1020
1080
|
//#endregion
|
|
1021
1081
|
//#region src/components/SelectDate.vue
|
|
1022
|
-
var
|
|
1082
|
+
var Nt = {
|
|
1023
1083
|
components: {
|
|
1024
|
-
PopoverPanel:
|
|
1025
|
-
CrossButton:
|
|
1084
|
+
PopoverPanel: z,
|
|
1085
|
+
CrossButton: F
|
|
1026
1086
|
},
|
|
1027
|
-
mixins: [
|
|
1087
|
+
mixins: [P],
|
|
1028
1088
|
emits: ["update:modelValue", "changed"],
|
|
1029
1089
|
props: {
|
|
1030
1090
|
modelValue: {
|
|
@@ -1059,8 +1119,8 @@ var jt = {
|
|
|
1059
1119
|
keyboardInput: !1,
|
|
1060
1120
|
bound: !1,
|
|
1061
1121
|
firstDay: 1,
|
|
1062
|
-
parse: (e) =>
|
|
1063
|
-
toString: (e) =>
|
|
1122
|
+
parse: (e) => St(e),
|
|
1123
|
+
toString: (e) => xt(e),
|
|
1064
1124
|
i18n: {
|
|
1065
1125
|
previousMonth: this.texts.previousMonth,
|
|
1066
1126
|
nextMonth: this.texts.nextMonth,
|
|
@@ -1069,9 +1129,9 @@ var jt = {
|
|
|
1069
1129
|
weekdaysShort: this.texts.weekdaysShort
|
|
1070
1130
|
},
|
|
1071
1131
|
onSelect: (e) => {
|
|
1072
|
-
this.popupIsOpen = !1, this.$emit("update:modelValue",
|
|
1132
|
+
this.popupIsOpen = !1, this.$emit("update:modelValue", xt(e)), this.$emit("changed");
|
|
1073
1133
|
}
|
|
1074
|
-
}), this.stopPickOnClick =
|
|
1134
|
+
}), this.stopPickOnClick = Tt(this.$refs.container, () => this.$refs.trigger), this.syncDayFocus());
|
|
1075
1135
|
},
|
|
1076
1136
|
beforeUnmount() {
|
|
1077
1137
|
this.isUnmounted = !0, this.stopPickOnClick?.(), this.stopDayFocus?.(), this.picker?.destroy();
|
|
@@ -1100,11 +1160,11 @@ var jt = {
|
|
|
1100
1160
|
].includes(e.key) && (e.preventDefault(), this.$refs.trigger.focus({ preventScroll: !0 }), this.popupIsOpen = !0);
|
|
1101
1161
|
},
|
|
1102
1162
|
syncDayFocus() {
|
|
1103
|
-
this.stopDayFocus?.(), this.stopDayFocus = null, this.popupIsOpen && this.picker !== null && (this.stopDayFocus =
|
|
1163
|
+
this.stopDayFocus?.(), this.stopDayFocus = null, this.popupIsOpen && this.picker !== null && (this.stopDayFocus = Dt(this.$refs.container, this.picker));
|
|
1104
1164
|
},
|
|
1105
1165
|
syncPicker(e) {
|
|
1106
1166
|
if (this.picker === null) return;
|
|
1107
|
-
let t =
|
|
1167
|
+
let t = St(e);
|
|
1108
1168
|
if (t === null) {
|
|
1109
1169
|
this.picker.clear();
|
|
1110
1170
|
return;
|
|
@@ -1130,24 +1190,24 @@ var jt = {
|
|
|
1130
1190
|
return !this.withEraser || this.popupIsOpen ? !1 : this.hasValue;
|
|
1131
1191
|
}
|
|
1132
1192
|
}
|
|
1133
|
-
},
|
|
1193
|
+
}, Pt = { class: "bb-dashboard-ui bb:flex bb:flex-col" }, Ft = { class: "bb:relative bb:flex bb:h-full" }, It = [
|
|
1134
1194
|
"id",
|
|
1135
1195
|
"popovertarget",
|
|
1136
1196
|
"aria-labelledby",
|
|
1137
1197
|
"aria-describedby"
|
|
1138
|
-
],
|
|
1198
|
+
], Lt = ["textContent"], Rt = { class: "bb:flex bb:w-full bb:items-center bb:leading-none bb:min-w-24 bb:pointer-events-none" }, zt = [
|
|
1139
1199
|
"disabled",
|
|
1140
1200
|
"value",
|
|
1141
1201
|
"placeholder",
|
|
1142
1202
|
"aria-labelledby",
|
|
1143
1203
|
"aria-describedby"
|
|
1144
|
-
],
|
|
1204
|
+
], Bt = {
|
|
1145
1205
|
ref: "container",
|
|
1146
1206
|
class: "bb:flex"
|
|
1147
1207
|
};
|
|
1148
|
-
function
|
|
1208
|
+
function Vt(e, t, o, s, l, u) {
|
|
1149
1209
|
let d = g("popover-panel"), f = g("cross-button");
|
|
1150
|
-
return p(), i("div",
|
|
1210
|
+
return p(), i("div", Pt, [a("div", Ft, [c(d, {
|
|
1151
1211
|
class: "bb:flex bb:w-full",
|
|
1152
1212
|
modelValue: l.popupIsOpen,
|
|
1153
1213
|
"onUpdate:modelValue": t[1] ||= (e) => l.popupIsOpen = e,
|
|
@@ -1155,7 +1215,7 @@ function zt(e, t, o, s, l, u) {
|
|
|
1155
1215
|
"return-focus": "",
|
|
1156
1216
|
"panel-class": "bb:bg-white bb:border bb:border-gray-200 bb:rounded-md bb:shadow-lg"
|
|
1157
1217
|
}, {
|
|
1158
|
-
trigger:
|
|
1218
|
+
trigger: C((e) => [a("button", {
|
|
1159
1219
|
ref: "trigger",
|
|
1160
1220
|
type: "button",
|
|
1161
1221
|
id: e.id,
|
|
@@ -1166,7 +1226,7 @@ function zt(e, t, o, s, l, u) {
|
|
|
1166
1226
|
}, [a("span", {
|
|
1167
1227
|
class: "bb:sr-only bb:pointer-events-none bb:cursor-default",
|
|
1168
1228
|
textContent: y(u.triggerLabel)
|
|
1169
|
-
}, null, 8,
|
|
1229
|
+
}, null, 8, Lt)], 8, It), a("label", Rt, [a("input", {
|
|
1170
1230
|
disabled: l.popupIsOpen,
|
|
1171
1231
|
ref: "field",
|
|
1172
1232
|
onKeydown: t[0] ||= (...e) => u.openOnKey && u.openOnKey(...e),
|
|
@@ -1176,8 +1236,8 @@ function zt(e, t, o, s, l, u) {
|
|
|
1176
1236
|
"aria-labelledby": o.labelledBy || null,
|
|
1177
1237
|
"aria-describedby": o.describedBy,
|
|
1178
1238
|
class: "bb:w-full bb:h-full bb:py-2 bb:pl-3 bb:pr-3 bb:leading-none bb:border bb:border-transparent bb:whitespace-nowrap bb:bg-transparent bb:placeholder:text-sm bb:placeholder-gray-300 bb:cursor-pointer bb:focus:focus-ring bb:rounded-[var(--bb-field-radius,0)]"
|
|
1179
|
-
}, null, 40,
|
|
1180
|
-
default:
|
|
1239
|
+
}, null, 40, zt)])]),
|
|
1240
|
+
default: C(() => [a("div", Bt, null, 512)]),
|
|
1181
1241
|
_: 1
|
|
1182
1242
|
}, 8, ["modelValue"]), u.needsEraser ? (p(), n(f, {
|
|
1183
1243
|
key: 0,
|
|
@@ -1188,10 +1248,10 @@ function zt(e, t, o, s, l, u) {
|
|
|
1188
1248
|
lang: e.resolvedLang
|
|
1189
1249
|
}, null, 8, ["onClicked", "lang"])) : r("", !0)])]);
|
|
1190
1250
|
}
|
|
1191
|
-
var
|
|
1251
|
+
var B = /*#__PURE__*/ j(Nt, [["render", Vt]]), Ht = {
|
|
1192
1252
|
components: {
|
|
1193
|
-
ElementHeader:
|
|
1194
|
-
SelectDate:
|
|
1253
|
+
ElementHeader: N,
|
|
1254
|
+
SelectDate: B
|
|
1195
1255
|
},
|
|
1196
1256
|
emits: ["update:modelValue", "changed"],
|
|
1197
1257
|
props: {
|
|
@@ -1216,10 +1276,10 @@ var H = /*#__PURE__*/ A(jt, [["render", zt]]), Bt = {
|
|
|
1216
1276
|
default: null
|
|
1217
1277
|
}
|
|
1218
1278
|
}
|
|
1219
|
-
},
|
|
1220
|
-
function
|
|
1279
|
+
}, Ut = { class: "bb-dashboard-ui bb:flex bb:w-fit bb:h-18 bb:border bb:border-gray-200" }, Wt = { class: "bb:flex bb:border bb:border-white" }, Gt = { class: "bb:flex bb:flex-col bb:w-36 bb:bg-white bb:h-full" };
|
|
1280
|
+
function Kt(e, t, n, r, o, s) {
|
|
1221
1281
|
let l = g("element-header"), u = g("select-date");
|
|
1222
|
-
return p(), i("div",
|
|
1282
|
+
return p(), i("div", Ut, [a("div", Wt, [a("div", Gt, [c(l, {
|
|
1223
1283
|
text: n.header ?? "",
|
|
1224
1284
|
"is-required": n.isRequired,
|
|
1225
1285
|
"is-loading": n.isLoading
|
|
@@ -1235,7 +1295,7 @@ function Wt(e, t, n, r, o, s) {
|
|
|
1235
1295
|
onChanged: t[1] ||= (t) => e.$emit("changed")
|
|
1236
1296
|
}, null, 8, ["model-value", "lang"])])])]);
|
|
1237
1297
|
}
|
|
1238
|
-
var
|
|
1298
|
+
var qt = /*#__PURE__*/ j(Ht, [["render", Kt]]), V = {
|
|
1239
1299
|
props: { description: {
|
|
1240
1300
|
type: String,
|
|
1241
1301
|
default: null
|
|
@@ -1248,17 +1308,17 @@ var Gt = /*#__PURE__*/ A(Bt, [["render", Wt]]), U = {
|
|
|
1248
1308
|
return this.hasDescription() ? `${e}-description` : null;
|
|
1249
1309
|
}
|
|
1250
1310
|
}
|
|
1251
|
-
},
|
|
1252
|
-
function
|
|
1253
|
-
return p(), i("div",
|
|
1311
|
+
}, Jt = {}, Yt = { class: "bb:mt-1 bb:w-0 bb:min-w-full bb:text-xs bb:leading-4 bb:font-normal bb:text-gray-500 bb:wrap-anywhere" };
|
|
1312
|
+
function Xt(e, t, n, r, a, o) {
|
|
1313
|
+
return p(), i("div", Yt, [h(e.$slots, "default")]);
|
|
1254
1314
|
}
|
|
1255
|
-
var
|
|
1315
|
+
var H = /*#__PURE__*/ j(Jt, [["render", Xt]]), Zt = {
|
|
1256
1316
|
components: {
|
|
1257
|
-
Dot:
|
|
1258
|
-
FieldDescription:
|
|
1259
|
-
SelectDate:
|
|
1317
|
+
Dot: M,
|
|
1318
|
+
FieldDescription: H,
|
|
1319
|
+
SelectDate: B
|
|
1260
1320
|
},
|
|
1261
|
-
mixins: [
|
|
1321
|
+
mixins: [V],
|
|
1262
1322
|
emits: ["update:modelValue", "changed"],
|
|
1263
1323
|
props: {
|
|
1264
1324
|
modelValue: {
|
|
@@ -1281,19 +1341,19 @@ var W = /*#__PURE__*/ A(Kt, [["render", Jt]]), Yt = {
|
|
|
1281
1341
|
setup() {
|
|
1282
1342
|
return { labelId: b() };
|
|
1283
1343
|
}
|
|
1284
|
-
},
|
|
1285
|
-
function
|
|
1344
|
+
}, Qt = { class: "bb-dashboard-ui" }, $t = { class: "bb:flex bb:items-center" }, en = ["id", "textContent"], tn = { class: "bb:mt-1 bb:flex bb:h-9.5 bb:w-full bb:field-frame bb:text-sm" };
|
|
1345
|
+
function nn(e, t, o, l, u, d) {
|
|
1286
1346
|
let f = g("dot"), m = g("select-date"), _ = g("field-description");
|
|
1287
|
-
return p(), i("div",
|
|
1288
|
-
a("div",
|
|
1347
|
+
return p(), i("div", Qt, [
|
|
1348
|
+
a("div", $t, [a("span", {
|
|
1289
1349
|
id: l.labelId,
|
|
1290
1350
|
class: "bb:block bb:text-sm bb:font-medium bb:leading-5 bb:text-gray-700",
|
|
1291
1351
|
textContent: y(o.label ?? "")
|
|
1292
|
-
}, null, 8,
|
|
1293
|
-
color: "red",
|
|
1352
|
+
}, null, 8, en), w(c(f, {
|
|
1353
|
+
color: "red-pale",
|
|
1294
1354
|
class: "bb:ml-2"
|
|
1295
|
-
}, null, 512), [[
|
|
1296
|
-
a("div",
|
|
1355
|
+
}, null, 512), [[S, o.isRequired]])]),
|
|
1356
|
+
a("div", tn, [c(m, {
|
|
1297
1357
|
class: "bb:flex-1",
|
|
1298
1358
|
"model-value": o.modelValue,
|
|
1299
1359
|
"labelled-by": l.labelId,
|
|
@@ -1311,14 +1371,14 @@ function en(e, t, o, l, u, d) {
|
|
|
1311
1371
|
key: 0,
|
|
1312
1372
|
id: e.descriptionId(l.labelId)
|
|
1313
1373
|
}, {
|
|
1314
|
-
default:
|
|
1374
|
+
default: C(() => [h(e.$slots, "description", {}, () => [s(y(e.description), 1)])]),
|
|
1315
1375
|
_: 3
|
|
1316
1376
|
}, 8, ["id"])) : r("", !0)
|
|
1317
1377
|
]);
|
|
1318
1378
|
}
|
|
1319
|
-
var
|
|
1379
|
+
var rn = /*#__PURE__*/ j(Zt, [["render", nn]]), an = {
|
|
1320
1380
|
inheritAttrs: !1,
|
|
1321
|
-
mixins: [
|
|
1381
|
+
mixins: [P],
|
|
1322
1382
|
emits: [
|
|
1323
1383
|
"update:dateFrom",
|
|
1324
1384
|
"update:dateTo",
|
|
@@ -1375,17 +1435,17 @@ var tn = /*#__PURE__*/ A(Yt, [["render", en]]), nn = {
|
|
|
1375
1435
|
}
|
|
1376
1436
|
}
|
|
1377
1437
|
};
|
|
1378
|
-
function
|
|
1438
|
+
function on(e, t, n, r, i, a) {
|
|
1379
1439
|
return h(e.$slots, "default", {
|
|
1380
1440
|
from: a.from,
|
|
1381
1441
|
to: a.to
|
|
1382
1442
|
});
|
|
1383
1443
|
}
|
|
1384
|
-
var
|
|
1444
|
+
var sn = /*#__PURE__*/ j(an, [["render", on]]), cn = {
|
|
1385
1445
|
components: {
|
|
1386
|
-
ElementHeader:
|
|
1387
|
-
SelectDate:
|
|
1388
|
-
SelectDateInterval:
|
|
1446
|
+
ElementHeader: N,
|
|
1447
|
+
SelectDate: B,
|
|
1448
|
+
SelectDateInterval: sn
|
|
1389
1449
|
},
|
|
1390
1450
|
emits: [
|
|
1391
1451
|
"update:dateFrom",
|
|
@@ -1418,10 +1478,10 @@ var an = /*#__PURE__*/ A(nn, [["render", rn]]), on = {
|
|
|
1418
1478
|
default: null
|
|
1419
1479
|
}
|
|
1420
1480
|
}
|
|
1421
|
-
},
|
|
1422
|
-
function
|
|
1481
|
+
}, ln = { class: "bb-dashboard-ui bb:flex bb:w-fit bb:h-18 bb:border bb:border-gray-200" }, un = { class: "bb:flex bb:border bb:border-white" }, dn = { class: "bb:flex bb:flex-col bb:min-w-72 bb:w-72 bb:bg-white bb:h-full" }, fn = { class: "bb:flex bb:h-full bb:divide-x bb:divide-gray-200" };
|
|
1482
|
+
function pn(e, t, n, r, o, s) {
|
|
1423
1483
|
let l = g("element-header"), u = g("select-date"), d = g("select-date-interval");
|
|
1424
|
-
return p(), i("div",
|
|
1484
|
+
return p(), i("div", ln, [a("div", un, [a("div", dn, [c(l, {
|
|
1425
1485
|
text: n.header ?? "",
|
|
1426
1486
|
"is-required": n.isRequired,
|
|
1427
1487
|
"is-loading": n.isLoading
|
|
@@ -1437,7 +1497,7 @@ function dn(e, t, n, r, o, s) {
|
|
|
1437
1497
|
"onUpdate:dateTo": t[1] ||= (t) => e.$emit("update:dateTo", t),
|
|
1438
1498
|
onChanged: t[2] ||= (t) => e.$emit("changed")
|
|
1439
1499
|
}, {
|
|
1440
|
-
default:
|
|
1500
|
+
default: C(({ from: e, to: t }) => [a("div", fn, [c(u, {
|
|
1441
1501
|
class: "bb:flex-1 bb:min-w-36",
|
|
1442
1502
|
"model-value": e.value,
|
|
1443
1503
|
"placeholder-text": e.placeholder,
|
|
@@ -1467,14 +1527,14 @@ function dn(e, t, n, r, o, s) {
|
|
|
1467
1527
|
"lang"
|
|
1468
1528
|
])])])]);
|
|
1469
1529
|
}
|
|
1470
|
-
var
|
|
1530
|
+
var mn = /*#__PURE__*/ j(cn, [["render", pn]]), hn = {
|
|
1471
1531
|
components: {
|
|
1472
|
-
Dot:
|
|
1473
|
-
FieldDescription:
|
|
1474
|
-
SelectDate:
|
|
1475
|
-
SelectDateInterval:
|
|
1532
|
+
Dot: M,
|
|
1533
|
+
FieldDescription: H,
|
|
1534
|
+
SelectDate: B,
|
|
1535
|
+
SelectDateInterval: sn
|
|
1476
1536
|
},
|
|
1477
|
-
mixins: [
|
|
1537
|
+
mixins: [V],
|
|
1478
1538
|
emits: [
|
|
1479
1539
|
"update:dateFrom",
|
|
1480
1540
|
"update:dateTo",
|
|
@@ -1505,18 +1565,18 @@ var fn = /*#__PURE__*/ A(on, [["render", dn]]), pn = {
|
|
|
1505
1565
|
setup() {
|
|
1506
1566
|
return { labelId: b() };
|
|
1507
1567
|
}
|
|
1508
|
-
},
|
|
1509
|
-
function
|
|
1568
|
+
}, gn = { class: "bb-dashboard-ui" }, _n = { class: "bb:flex bb:items-center" }, vn = ["id", "textContent"], yn = ["aria-labelledby", "aria-describedby"], bn = { class: "bb:flex bb:h-9.5 bb:w-full bb:field-frame bb:text-sm" }, xn = { class: "bb:flex bb:h-9.5 bb:w-full bb:field-frame bb:text-sm" };
|
|
1569
|
+
function Sn(e, t, o, l, u, d) {
|
|
1510
1570
|
let f = g("dot"), m = g("select-date"), _ = g("select-date-interval"), v = g("field-description");
|
|
1511
|
-
return p(), i("div",
|
|
1512
|
-
a("div",
|
|
1571
|
+
return p(), i("div", gn, [
|
|
1572
|
+
a("div", _n, [a("span", {
|
|
1513
1573
|
id: l.labelId,
|
|
1514
1574
|
class: "bb:block bb:text-sm bb:font-medium bb:leading-5 bb:text-gray-700",
|
|
1515
1575
|
textContent: y(o.label ?? "")
|
|
1516
|
-
}, null, 8,
|
|
1517
|
-
color: "red",
|
|
1576
|
+
}, null, 8, vn), w(c(f, {
|
|
1577
|
+
color: "red-pale",
|
|
1518
1578
|
class: "bb:ml-2"
|
|
1519
|
-
}, null, 512), [[
|
|
1579
|
+
}, null, 512), [[S, o.isRequired]])]),
|
|
1520
1580
|
a("div", {
|
|
1521
1581
|
class: "bb:mt-1 bb:grid bb:grid-cols-2 bb:gap-3",
|
|
1522
1582
|
role: "group",
|
|
@@ -1530,7 +1590,7 @@ function bn(e, t, o, l, u, d) {
|
|
|
1530
1590
|
"onUpdate:dateTo": t[1] ||= (t) => e.$emit("update:dateTo", t),
|
|
1531
1591
|
onChanged: t[2] ||= (t) => e.$emit("changed")
|
|
1532
1592
|
}, {
|
|
1533
|
-
default:
|
|
1593
|
+
default: C(({ from: e, to: t }) => [a("div", bn, [c(m, {
|
|
1534
1594
|
class: "bb:flex-1",
|
|
1535
1595
|
"model-value": e.value,
|
|
1536
1596
|
"placeholder-text": e.placeholder,
|
|
@@ -1541,7 +1601,7 @@ function bn(e, t, o, l, u, d) {
|
|
|
1541
1601
|
"placeholder-text",
|
|
1542
1602
|
"lang",
|
|
1543
1603
|
"onUpdate:modelValue"
|
|
1544
|
-
])]), a("div",
|
|
1604
|
+
])]), a("div", xn, [c(m, {
|
|
1545
1605
|
class: "bb:flex-1",
|
|
1546
1606
|
"model-value": t.value,
|
|
1547
1607
|
"placeholder-text": t.placeholder,
|
|
@@ -1558,17 +1618,17 @@ function bn(e, t, o, l, u, d) {
|
|
|
1558
1618
|
"date-from",
|
|
1559
1619
|
"date-to",
|
|
1560
1620
|
"lang"
|
|
1561
|
-
])], 8,
|
|
1621
|
+
])], 8, yn),
|
|
1562
1622
|
e.hasDescription() ? (p(), n(v, {
|
|
1563
1623
|
key: 0,
|
|
1564
1624
|
id: e.descriptionId(l.labelId)
|
|
1565
1625
|
}, {
|
|
1566
|
-
default:
|
|
1626
|
+
default: C(() => [h(e.$slots, "description", {}, () => [s(y(e.description), 1)])]),
|
|
1567
1627
|
_: 3
|
|
1568
1628
|
}, 8, ["id"])) : r("", !0)
|
|
1569
1629
|
]);
|
|
1570
1630
|
}
|
|
1571
|
-
var
|
|
1631
|
+
var Cn = /*#__PURE__*/ j(hn, [["render", Sn]]), wn = {
|
|
1572
1632
|
props: { withSearch: {
|
|
1573
1633
|
type: Boolean,
|
|
1574
1634
|
default: !1
|
|
@@ -1618,10 +1678,10 @@ var xn = /*#__PURE__*/ A(pn, [["render", bn]]), Sn = {
|
|
|
1618
1678
|
}
|
|
1619
1679
|
}
|
|
1620
1680
|
}
|
|
1621
|
-
},
|
|
1681
|
+
}, Tn = {
|
|
1622
1682
|
components: {
|
|
1623
|
-
PopoverPanel:
|
|
1624
|
-
CrossButton:
|
|
1683
|
+
PopoverPanel: z,
|
|
1684
|
+
CrossButton: F
|
|
1625
1685
|
},
|
|
1626
1686
|
emits: [
|
|
1627
1687
|
"update:isOpen",
|
|
@@ -1681,23 +1741,23 @@ var xn = /*#__PURE__*/ A(pn, [["render", bn]]), Sn = {
|
|
|
1681
1741
|
let e = this.$refs.eraser.$el;
|
|
1682
1742
|
document.activeElement === e && e.matches(":focus-visible") && this.$refs.trigger.focus({ preventScroll: !0 }), this.$emit("erased");
|
|
1683
1743
|
} }
|
|
1684
|
-
},
|
|
1744
|
+
}, En = { class: "bb:flex bb:flex-col bb:grow" }, Dn = { class: "bb:relative bb:flex bb:w-full bb:h-full" }, On = [
|
|
1685
1745
|
"id",
|
|
1686
1746
|
"popovertarget",
|
|
1687
1747
|
"aria-labelledby",
|
|
1688
1748
|
"aria-describedby"
|
|
1689
|
-
],
|
|
1749
|
+
], kn = {
|
|
1690
1750
|
key: 0,
|
|
1691
1751
|
class: "bb:flex bb:w-full bb:min-w-0 bb:h-full bb:pl-3 bb:pr-7 bb:py-2 bb:items-center bb:whitespace-nowrap bb:leading-none bb:pointer-events-none bb:cursor-default"
|
|
1692
|
-
},
|
|
1752
|
+
}, An = ["textContent"], jn = ["textContent"], Mn = {
|
|
1693
1753
|
key: 2,
|
|
1694
1754
|
class: "bb:absolute bb:right-3 bb:top-1/2 bb:-translate-y-1/2 bb:w-2 bb:h-1.5 bb:fill-current bb:text-gray-500 bb:pointer-events-none bb:cursor-default",
|
|
1695
1755
|
viewBox: "0 0 8 6",
|
|
1696
1756
|
"aria-hidden": "true"
|
|
1697
1757
|
};
|
|
1698
|
-
function
|
|
1758
|
+
function Nn(e, t, o, s, l, u) {
|
|
1699
1759
|
let d = g("popover-panel"), f = g("cross-button");
|
|
1700
|
-
return p(), i("div",
|
|
1760
|
+
return p(), i("div", En, [a("div", Dn, [c(d, {
|
|
1701
1761
|
class: "bb:flex bb:w-full bb:h-full",
|
|
1702
1762
|
"model-value": o.isOpen,
|
|
1703
1763
|
align: "start",
|
|
@@ -1711,7 +1771,7 @@ function jn(e, t, o, s, l, u) {
|
|
|
1711
1771
|
"onUpdate:modelValue": t[0] ||= (t) => e.$emit("update:isOpen", t),
|
|
1712
1772
|
onToggle: t[1] ||= (t) => e.$emit("toggle", t)
|
|
1713
1773
|
}, {
|
|
1714
|
-
trigger:
|
|
1774
|
+
trigger: C((e) => [a("button", {
|
|
1715
1775
|
ref: "trigger",
|
|
1716
1776
|
type: "button",
|
|
1717
1777
|
id: e.id,
|
|
@@ -1719,15 +1779,15 @@ function jn(e, t, o, s, l, u) {
|
|
|
1719
1779
|
"aria-labelledby": o.labelledBy ? o.labelledBy + " " + e.id : null,
|
|
1720
1780
|
"aria-describedby": o.describedBy,
|
|
1721
1781
|
class: "bb:flex bb:w-full bb:h-full bb:items-center bb:focus-visible:focus-ring bb:cursor-pointer bb:rounded-[var(--bb-field-radius,0)]"
|
|
1722
|
-
}, [o.withArrow ? (p(), i("span",
|
|
1782
|
+
}, [o.withArrow ? (p(), i("span", kn, [a("span", {
|
|
1723
1783
|
class: "bb:truncate",
|
|
1724
1784
|
textContent: y(o.title)
|
|
1725
|
-
}, null, 8,
|
|
1785
|
+
}, null, 8, An)])) : (p(), i("span", {
|
|
1726
1786
|
key: 1,
|
|
1727
1787
|
class: "bb:flex bb:w-full bb:h-full bb:pl-3 bb:pr-12 bb:py-2 bb:items-center bb:whitespace-nowrap bb:leading-none bb:pointer-events-none bb:cursor-default",
|
|
1728
1788
|
textContent: y(o.title)
|
|
1729
|
-
}, null, 8,
|
|
1730
|
-
default:
|
|
1789
|
+
}, null, 8, jn)), o.withArrow ? (p(), i("svg", Mn, [...t[2] ||= [a("path", { d: "M0 0h8L4 6z" }, null, -1)]])) : r("", !0)], 8, On)]),
|
|
1790
|
+
default: C(() => [h(e.$slots, "default")]),
|
|
1731
1791
|
_: 3
|
|
1732
1792
|
}, 8, [
|
|
1733
1793
|
"model-value",
|
|
@@ -1744,7 +1804,7 @@ function jn(e, t, o, s, l, u) {
|
|
|
1744
1804
|
class: "bb:absolute bb:right-0 bb:top-0 bb:pr-2 bb:h-full"
|
|
1745
1805
|
}, null, 8, ["lang", "onClicked"])) : r("", !0)])]);
|
|
1746
1806
|
}
|
|
1747
|
-
var
|
|
1807
|
+
var Pn = /*#__PURE__*/ j(Tn, [["render", Nn]]), Fn = {
|
|
1748
1808
|
props: {
|
|
1749
1809
|
isChecked: {
|
|
1750
1810
|
type: Boolean,
|
|
@@ -1756,28 +1816,28 @@ var Mn = /*#__PURE__*/ A(Cn, [["render", jn]]), Nn = {
|
|
|
1756
1816
|
methods: { toggle() {
|
|
1757
1817
|
this.$emit("clicked");
|
|
1758
1818
|
} }
|
|
1759
|
-
},
|
|
1819
|
+
}, In = { class: "bb:flex bb:w-9 bb:h-9 bb:items-center bb:justify-center bb:pointer-events-none bb:cursor-default" }, Ln = {
|
|
1760
1820
|
class: "bb:w-5 bb:h-5 bb:fill-current bb:text-green-300",
|
|
1761
1821
|
viewBox: "0 0 20 20",
|
|
1762
1822
|
"aria-hidden": "true"
|
|
1763
|
-
},
|
|
1764
|
-
function
|
|
1823
|
+
}, Rn = ["textContent"];
|
|
1824
|
+
function zn(e, t, n, r, o, s) {
|
|
1765
1825
|
return p(), i("button", {
|
|
1766
1826
|
type: "button",
|
|
1767
|
-
onClick: t[0] ||=
|
|
1827
|
+
onClick: t[0] ||= E((...e) => s.toggle && s.toggle(...e), ["prevent"]),
|
|
1768
1828
|
class: "bb:flex bb:w-full bb:bg-white bb:cursor-pointer bb:focus:outline-hidden bb:hover:bg-indigo-100 bb:focus:bg-indigo-100"
|
|
1769
|
-
}, [a("span",
|
|
1829
|
+
}, [a("span", In, [w((p(), i("svg", Ln, [...t[1] ||= [a("path", {
|
|
1770
1830
|
d: "M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",
|
|
1771
1831
|
"clip-rule": "evenodd",
|
|
1772
1832
|
"fill-rule": "evenodd"
|
|
1773
|
-
}, null, -1)]], 512)), [[
|
|
1833
|
+
}, null, -1)]], 512)), [[S, n.isChecked]])]), a("span", {
|
|
1774
1834
|
class: "bb:flex bb:h-9 bb:justify-center bb:items-center bb:pr-6 bb:whitespace-nowrap bb:select-none bb:pointer-events-none bb:cursor-default",
|
|
1775
1835
|
textContent: y(n.name)
|
|
1776
|
-
}, null, 8,
|
|
1836
|
+
}, null, 8, Rn)]);
|
|
1777
1837
|
}
|
|
1778
|
-
var
|
|
1779
|
-
components: { CrossButton:
|
|
1780
|
-
mixins: [
|
|
1838
|
+
var Bn = /*#__PURE__*/ j(Fn, [["render", zn]]), Vn = {
|
|
1839
|
+
components: { CrossButton: F },
|
|
1840
|
+
mixins: [P],
|
|
1781
1841
|
emits: ["update:modelValue"],
|
|
1782
1842
|
props: { modelValue: {
|
|
1783
1843
|
type: String,
|
|
@@ -1809,33 +1869,33 @@ var Rn = /*#__PURE__*/ A(Nn, [["render", Ln]]), zn = {
|
|
|
1809
1869
|
this.query = "", this.$refs.input.focus();
|
|
1810
1870
|
}
|
|
1811
1871
|
}
|
|
1812
|
-
},
|
|
1813
|
-
function
|
|
1872
|
+
}, Hn = { class: "bb:sticky bb:top-0 bb:min-w-56 bb:px-2 bb:py-2 bb:bg-white bb:border-b bb:border-gray-200" }, Un = { class: "bb:relative" }, Wn = ["placeholder", "aria-label"];
|
|
1873
|
+
function Gn(e, t, n, r, o, s) {
|
|
1814
1874
|
let l = g("cross-button");
|
|
1815
|
-
return p(), i("div",
|
|
1875
|
+
return p(), i("div", Hn, [a("div", Un, [w(a("input", {
|
|
1816
1876
|
ref: "input",
|
|
1817
1877
|
type: "text",
|
|
1818
1878
|
autocomplete: "off",
|
|
1819
1879
|
"onUpdate:modelValue": t[0] ||= (e) => s.query = e,
|
|
1820
1880
|
placeholder: e.texts.search,
|
|
1821
1881
|
"aria-label": e.texts.search,
|
|
1822
|
-
class: "bb:w-full bb:pl-3 bb:pr-9 bb:py-2 bb:text-sm bb:
|
|
1823
|
-
onKeydown: t[1] ||=
|
|
1824
|
-
}, null, 40,
|
|
1882
|
+
class: "bb:w-full bb:pl-3 bb:pr-9 bb:py-2 bb:text-sm bb:field-frame bb:focus:focus-ring",
|
|
1883
|
+
onKeydown: t[1] ||= T(E(() => {}, ["prevent"]), ["enter"])
|
|
1884
|
+
}, null, 40, Wn), [[ee, s.query]]), w(c(l, {
|
|
1825
1885
|
ref: "eraser",
|
|
1826
1886
|
size: "small",
|
|
1827
1887
|
lang: e.lang,
|
|
1828
1888
|
onClicked: s.clearQuery,
|
|
1829
1889
|
class: "bb:absolute bb:right-0 bb:top-0 bb:pr-2 bb:h-full"
|
|
1830
|
-
}, null, 8, ["lang", "onClicked"]), [[
|
|
1890
|
+
}, null, 8, ["lang", "onClicked"]), [[S, s.query !== ""]])])]);
|
|
1831
1891
|
}
|
|
1832
|
-
var
|
|
1892
|
+
var Kn = /*#__PURE__*/ j(Vn, [["render", Gn]]), qn = {
|
|
1833
1893
|
components: {
|
|
1834
|
-
DropdownButton:
|
|
1835
|
-
ListElement:
|
|
1836
|
-
ListSearchField:
|
|
1894
|
+
DropdownButton: Pn,
|
|
1895
|
+
ListElement: Bn,
|
|
1896
|
+
ListSearchField: Kn
|
|
1837
1897
|
},
|
|
1838
|
-
mixins: [
|
|
1898
|
+
mixins: [P, wn],
|
|
1839
1899
|
emits: ["update:modelValue", "changed"],
|
|
1840
1900
|
props: {
|
|
1841
1901
|
items: {
|
|
@@ -1893,10 +1953,10 @@ var Wn = /*#__PURE__*/ A(zn, [["render", Un]]), Gn = {
|
|
|
1893
1953
|
return this.firstSelectedElement() ?? this.searchInput();
|
|
1894
1954
|
}
|
|
1895
1955
|
}
|
|
1896
|
-
},
|
|
1897
|
-
function
|
|
1956
|
+
}, Jn = { class: "bb-dashboard-ui bb:flex bb:flex-col bb:grow" }, Yn = ["textContent"];
|
|
1957
|
+
function Xn(t, a, o, s, c, l) {
|
|
1898
1958
|
let u = g("list-search-field"), d = g("list-element"), f = g("dropdown-button");
|
|
1899
|
-
return p(), i("div",
|
|
1959
|
+
return p(), i("div", Jn, [l.hasItems ? (p(), n(f, {
|
|
1900
1960
|
key: 0,
|
|
1901
1961
|
title: l.title,
|
|
1902
1962
|
"is-open": c.isOpen,
|
|
@@ -1912,7 +1972,7 @@ function Jn(t, a, o, s, c, l) {
|
|
|
1912
1972
|
onErased: l.clear,
|
|
1913
1973
|
onToggle: t.onSearchToggle
|
|
1914
1974
|
}, {
|
|
1915
|
-
default:
|
|
1975
|
+
default: C(() => [t.withSearch ? (p(), n(u, {
|
|
1916
1976
|
key: 0,
|
|
1917
1977
|
ref: "search",
|
|
1918
1978
|
modelValue: t.query,
|
|
@@ -1938,7 +1998,7 @@ function Jn(t, a, o, s, c, l) {
|
|
|
1938
1998
|
key: 2,
|
|
1939
1999
|
class: "bb:px-3 bb:py-2 bb:text-sm bb:text-gray-500 bb:text-center",
|
|
1940
2000
|
textContent: y(t.texts.nothingFound)
|
|
1941
|
-
}, null, 8,
|
|
2001
|
+
}, null, 8, Yn))]),
|
|
1942
2002
|
_: 1
|
|
1943
2003
|
}, 8, [
|
|
1944
2004
|
"title",
|
|
@@ -1955,10 +2015,10 @@ function Jn(t, a, o, s, c, l) {
|
|
|
1955
2015
|
"onToggle"
|
|
1956
2016
|
])) : r("", !0)]);
|
|
1957
2017
|
}
|
|
1958
|
-
var
|
|
2018
|
+
var Zn = /*#__PURE__*/ j(qn, [["render", Xn]]), Qn = {
|
|
1959
2019
|
components: {
|
|
1960
|
-
ElementHeader:
|
|
1961
|
-
SelectMultiple:
|
|
2020
|
+
ElementHeader: N,
|
|
2021
|
+
SelectMultiple: Zn
|
|
1962
2022
|
},
|
|
1963
2023
|
emits: ["update:modelValue", "changed"],
|
|
1964
2024
|
props: {
|
|
@@ -1991,10 +2051,10 @@ var Yn = /*#__PURE__*/ A(Gn, [["render", Jn]]), Xn = {
|
|
|
1991
2051
|
default: null
|
|
1992
2052
|
}
|
|
1993
2053
|
}
|
|
1994
|
-
},
|
|
1995
|
-
function
|
|
2054
|
+
}, $n = { class: "bb-dashboard-ui bb:flex bb:flex-none bb:w-fit bb:h-18 bb:border bb:border-gray-200" }, er = { class: "bb:flex bb:w-full bb:flex-col bb:border bb:border-white bb:bg-white" };
|
|
2055
|
+
function tr(e, t, n, r, o, s) {
|
|
1996
2056
|
let l = g("element-header"), u = g("select-multiple");
|
|
1997
|
-
return p(), i("div",
|
|
2057
|
+
return p(), i("div", $n, [a("div", er, [c(l, {
|
|
1998
2058
|
text: n.header ?? "",
|
|
1999
2059
|
"is-required": n.isRequired,
|
|
2000
2060
|
"is-loading": n.isLoading
|
|
@@ -2016,13 +2076,13 @@ function $n(e, t, n, r, o, s) {
|
|
|
2016
2076
|
"lang"
|
|
2017
2077
|
])])]);
|
|
2018
2078
|
}
|
|
2019
|
-
var
|
|
2079
|
+
var nr = /*#__PURE__*/ j(Qn, [["render", tr]]), rr = {
|
|
2020
2080
|
components: {
|
|
2021
|
-
Dot:
|
|
2022
|
-
FieldDescription:
|
|
2023
|
-
SelectMultiple:
|
|
2081
|
+
Dot: M,
|
|
2082
|
+
FieldDescription: H,
|
|
2083
|
+
SelectMultiple: Zn
|
|
2024
2084
|
},
|
|
2025
|
-
mixins: [
|
|
2085
|
+
mixins: [V],
|
|
2026
2086
|
emits: ["update:modelValue", "changed"],
|
|
2027
2087
|
props: {
|
|
2028
2088
|
items: {
|
|
@@ -2053,19 +2113,19 @@ var er = /*#__PURE__*/ A(Xn, [["render", $n]]), tr = {
|
|
|
2053
2113
|
setup() {
|
|
2054
2114
|
return { labelId: b() };
|
|
2055
2115
|
}
|
|
2056
|
-
},
|
|
2057
|
-
function
|
|
2116
|
+
}, ir = { class: "bb-dashboard-ui" }, ar = { class: "bb:flex bb:items-center" }, or = ["id", "textContent"], sr = { class: "bb:mt-1 bb:h-9.5 bb:w-full bb:field-frame bb:text-sm bb:flex bb:flex-col" };
|
|
2117
|
+
function cr(e, t, o, l, u, d) {
|
|
2058
2118
|
let f = g("dot"), m = g("select-multiple"), _ = g("field-description");
|
|
2059
|
-
return p(), i("div",
|
|
2060
|
-
a("div",
|
|
2119
|
+
return p(), i("div", ir, [
|
|
2120
|
+
a("div", ar, [a("span", {
|
|
2061
2121
|
id: l.labelId,
|
|
2062
2122
|
class: "bb:block bb:text-sm bb:font-medium bb:leading-5 bb:text-gray-700",
|
|
2063
2123
|
textContent: y(o.label ?? "")
|
|
2064
|
-
}, null, 8,
|
|
2065
|
-
color: "red",
|
|
2124
|
+
}, null, 8, or), w(c(f, {
|
|
2125
|
+
color: "red-pale",
|
|
2066
2126
|
class: "bb:ml-2"
|
|
2067
|
-
}, null, 512), [[
|
|
2068
|
-
a("div",
|
|
2127
|
+
}, null, 512), [[S, o.isRequired]])]),
|
|
2128
|
+
a("div", sr, [c(m, {
|
|
2069
2129
|
items: o.items,
|
|
2070
2130
|
"model-value": o.modelValue,
|
|
2071
2131
|
"with-search": o.withSearch,
|
|
@@ -2086,22 +2146,22 @@ function or(e, t, o, l, u, d) {
|
|
|
2086
2146
|
key: 0,
|
|
2087
2147
|
id: e.descriptionId(l.labelId)
|
|
2088
2148
|
}, {
|
|
2089
|
-
default:
|
|
2149
|
+
default: C(() => [h(e.$slots, "description", {}, () => [s(y(e.description), 1)])]),
|
|
2090
2150
|
_: 3
|
|
2091
2151
|
}, 8, ["id"])) : r("", !0)
|
|
2092
2152
|
]);
|
|
2093
2153
|
}
|
|
2094
|
-
var
|
|
2095
|
-
function
|
|
2154
|
+
var lr = /*#__PURE__*/ j(rr, [["render", cr]]);
|
|
2155
|
+
function ur(e) {
|
|
2096
2156
|
return Number.isInteger(e) && e >= 1;
|
|
2097
2157
|
}
|
|
2098
|
-
function
|
|
2099
|
-
return
|
|
2158
|
+
function U(e) {
|
|
2159
|
+
return ur(e) ? e : 2;
|
|
2100
2160
|
}
|
|
2101
|
-
function
|
|
2161
|
+
function dr(e) {
|
|
2102
2162
|
return { gridTemplateColumns: `repeat(${e}, minmax(0, 1fr))` };
|
|
2103
2163
|
}
|
|
2104
|
-
function
|
|
2164
|
+
function fr(e, t) {
|
|
2105
2165
|
let n = Math.floor(e / t), r = e % t, i = [];
|
|
2106
2166
|
for (let e = 0; e < t; e++) {
|
|
2107
2167
|
let t = e < r ? n + 1 : n;
|
|
@@ -2114,12 +2174,12 @@ function lr(e, t) {
|
|
|
2114
2174
|
}
|
|
2115
2175
|
//#endregion
|
|
2116
2176
|
//#region src/components/SelectMultipleList.vue
|
|
2117
|
-
var
|
|
2177
|
+
var pr = {
|
|
2118
2178
|
components: {
|
|
2119
|
-
Dot:
|
|
2120
|
-
FieldDescription:
|
|
2179
|
+
Dot: M,
|
|
2180
|
+
FieldDescription: H
|
|
2121
2181
|
},
|
|
2122
|
-
mixins: [
|
|
2182
|
+
mixins: [V],
|
|
2123
2183
|
emits: ["update:modelValue", "changed"],
|
|
2124
2184
|
props: {
|
|
2125
2185
|
items: {
|
|
@@ -2141,7 +2201,7 @@ var ur = {
|
|
|
2141
2201
|
columns: {
|
|
2142
2202
|
type: Number,
|
|
2143
2203
|
default: 2,
|
|
2144
|
-
validator:
|
|
2204
|
+
validator: ur
|
|
2145
2205
|
}
|
|
2146
2206
|
},
|
|
2147
2207
|
setup() {
|
|
@@ -2155,10 +2215,10 @@ var ur = {
|
|
|
2155
2215
|
return Array.isArray(this.modelValue) ? this.modelValue : [];
|
|
2156
2216
|
},
|
|
2157
2217
|
gridStyle() {
|
|
2158
|
-
return
|
|
2218
|
+
return dr(U(this.columns));
|
|
2159
2219
|
},
|
|
2160
2220
|
itemStyles() {
|
|
2161
|
-
return
|
|
2221
|
+
return fr(this.itemList.length, U(this.columns));
|
|
2162
2222
|
}
|
|
2163
2223
|
},
|
|
2164
2224
|
methods: {
|
|
@@ -2177,23 +2237,23 @@ var ur = {
|
|
|
2177
2237
|
});
|
|
2178
2238
|
}
|
|
2179
2239
|
}
|
|
2180
|
-
},
|
|
2240
|
+
}, mr = { class: "bb-dashboard-ui" }, hr = { class: "bb:flex bb:items-center" }, gr = ["id", "textContent"], _r = ["aria-labelledby", "aria-describedby"], vr = { class: "bb:relative bb:flex bb:shrink-0" }, yr = ["checked", "onChange"], br = {
|
|
2181
2241
|
key: 0,
|
|
2182
2242
|
class: "bb:pointer-events-none bb:absolute bb:inset-0 bb:size-4 bb:fill-white bb:forced-colors:hidden",
|
|
2183
2243
|
viewBox: "0 0 16 16",
|
|
2184
2244
|
"aria-hidden": "true"
|
|
2185
|
-
},
|
|
2186
|
-
function
|
|
2187
|
-
let b = g("dot"),
|
|
2188
|
-
return p(), i("div",
|
|
2189
|
-
a("div",
|
|
2245
|
+
}, xr = ["textContent"];
|
|
2246
|
+
function Sr(t, o, l, u, _, v) {
|
|
2247
|
+
let b = g("dot"), x = g("field-description");
|
|
2248
|
+
return p(), i("div", mr, [
|
|
2249
|
+
a("div", hr, [a("span", {
|
|
2190
2250
|
id: u.labelId,
|
|
2191
2251
|
class: "bb:block bb:text-sm bb:font-medium bb:leading-5 bb:text-gray-700",
|
|
2192
2252
|
textContent: y(l.label ?? "")
|
|
2193
|
-
}, null, 8,
|
|
2194
|
-
color: "red",
|
|
2253
|
+
}, null, 8, gr), w(c(b, {
|
|
2254
|
+
color: "red-pale",
|
|
2195
2255
|
class: "bb:ml-2"
|
|
2196
|
-
}, null, 512), [[
|
|
2256
|
+
}, null, 512), [[S, l.isRequired]])]),
|
|
2197
2257
|
v.itemList.length > 0 ? (p(), i("div", {
|
|
2198
2258
|
key: 0,
|
|
2199
2259
|
role: "group",
|
|
@@ -2205,31 +2265,31 @@ function yr(t, o, l, u, _, v) {
|
|
|
2205
2265
|
key: t,
|
|
2206
2266
|
style: f(v.itemStyles[t]),
|
|
2207
2267
|
class: "bb:flex bb:items-center"
|
|
2208
|
-
}, [a("span",
|
|
2268
|
+
}, [a("span", vr, [a("input", {
|
|
2209
2269
|
type: "checkbox",
|
|
2210
2270
|
checked: v.isChecked(e),
|
|
2211
2271
|
class: d(["bb:size-4 bb:rounded bb:choice-border bb:bg-none bb:focus-visible:focus-ring bb:forced-colors:appearance-auto", v.isChecked(e) ? "bb:border-indigo-600 bb:bg-indigo-600" : "bb:border-gray-300 bb:bg-white"]),
|
|
2212
2272
|
onChange: (t) => v.toggle(e)
|
|
2213
|
-
}, null, 42,
|
|
2273
|
+
}, null, 42, yr), v.isChecked(e) ? (p(), i("svg", br, [...o[0] ||= [a("path", { d: "M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z" }, null, -1)]])) : r("", !0)]), a("span", {
|
|
2214
2274
|
class: "bb:ml-3 bb:text-sm bb:font-medium bb:text-gray-700",
|
|
2215
2275
|
textContent: y(v.itemName(e))
|
|
2216
|
-
}, null, 8,
|
|
2217
|
-
t.hasDescription() ? (p(), n(
|
|
2276
|
+
}, null, 8, xr)], 4))), 128))], 12, _r)) : r("", !0),
|
|
2277
|
+
t.hasDescription() ? (p(), n(x, {
|
|
2218
2278
|
key: 1,
|
|
2219
2279
|
id: t.descriptionId(u.labelId)
|
|
2220
2280
|
}, {
|
|
2221
|
-
default:
|
|
2281
|
+
default: C(() => [h(t.$slots, "description", {}, () => [s(y(t.description), 1)])]),
|
|
2222
2282
|
_: 3
|
|
2223
2283
|
}, 8, ["id"])) : r("", !0)
|
|
2224
2284
|
]);
|
|
2225
2285
|
}
|
|
2226
|
-
var
|
|
2286
|
+
var Cr = /*#__PURE__*/ j(pr, [["render", Sr]]), wr = {
|
|
2227
2287
|
components: {
|
|
2228
|
-
DropdownButton:
|
|
2229
|
-
ListElement:
|
|
2230
|
-
ListSearchField:
|
|
2288
|
+
DropdownButton: Pn,
|
|
2289
|
+
ListElement: Bn,
|
|
2290
|
+
ListSearchField: Kn
|
|
2231
2291
|
},
|
|
2232
|
-
mixins: [
|
|
2292
|
+
mixins: [P, wn],
|
|
2233
2293
|
emits: ["update:modelValue", "changed"],
|
|
2234
2294
|
props: {
|
|
2235
2295
|
items: {
|
|
@@ -2295,10 +2355,10 @@ var br = /*#__PURE__*/ A(ur, [["render", yr]]), xr = {
|
|
|
2295
2355
|
return this.activeItemElement() ?? this.searchInput();
|
|
2296
2356
|
}
|
|
2297
2357
|
}
|
|
2298
|
-
},
|
|
2299
|
-
function
|
|
2358
|
+
}, Tr = { class: "bb-dashboard-ui bb:flex bb:flex-col bb:grow" }, Er = ["textContent"];
|
|
2359
|
+
function Dr(t, a, o, s, c, l) {
|
|
2300
2360
|
let u = g("list-search-field"), d = g("list-element"), f = g("dropdown-button");
|
|
2301
|
-
return p(), i("div",
|
|
2361
|
+
return p(), i("div", Tr, [l.hasItems ? (p(), n(f, {
|
|
2302
2362
|
key: 0,
|
|
2303
2363
|
title: l.activeItemName,
|
|
2304
2364
|
"is-open": c.isOpen,
|
|
@@ -2315,7 +2375,7 @@ function wr(t, a, o, s, c, l) {
|
|
|
2315
2375
|
onErased: l.clear,
|
|
2316
2376
|
onToggle: t.onSearchToggle
|
|
2317
2377
|
}, {
|
|
2318
|
-
default:
|
|
2378
|
+
default: C(() => [t.withSearch ? (p(), n(u, {
|
|
2319
2379
|
key: 0,
|
|
2320
2380
|
ref: "search",
|
|
2321
2381
|
modelValue: t.query,
|
|
@@ -2339,7 +2399,7 @@ function wr(t, a, o, s, c, l) {
|
|
|
2339
2399
|
key: 2,
|
|
2340
2400
|
class: "bb:px-3 bb:py-2 bb:text-sm bb:text-gray-500 bb:text-center",
|
|
2341
2401
|
textContent: y(t.texts.nothingFound)
|
|
2342
|
-
}, null, 8,
|
|
2402
|
+
}, null, 8, Er))]),
|
|
2343
2403
|
_: 1
|
|
2344
2404
|
}, 8, [
|
|
2345
2405
|
"title",
|
|
@@ -2357,10 +2417,10 @@ function wr(t, a, o, s, c, l) {
|
|
|
2357
2417
|
"onToggle"
|
|
2358
2418
|
])) : r("", !0)]);
|
|
2359
2419
|
}
|
|
2360
|
-
var
|
|
2420
|
+
var W = /*#__PURE__*/ j(wr, [["render", Dr]]), Or = {
|
|
2361
2421
|
components: {
|
|
2362
|
-
ElementHeader:
|
|
2363
|
-
SelectSingle:
|
|
2422
|
+
ElementHeader: N,
|
|
2423
|
+
SelectSingle: W
|
|
2364
2424
|
},
|
|
2365
2425
|
emits: ["update:modelValue", "changed"],
|
|
2366
2426
|
props: {
|
|
@@ -2393,10 +2453,10 @@ var q = /*#__PURE__*/ A(xr, [["render", wr]]), Tr = {
|
|
|
2393
2453
|
default: null
|
|
2394
2454
|
}
|
|
2395
2455
|
}
|
|
2396
|
-
},
|
|
2397
|
-
function
|
|
2456
|
+
}, kr = { class: "bb-dashboard-ui bb:flex bb:flex-none bb:w-fit bb:h-18 bb:border bb:border-gray-200" }, Ar = { class: "bb:flex bb:w-full bb:flex-col bb:border bb:border-white bb:bg-white" };
|
|
2457
|
+
function jr(e, t, n, r, o, s) {
|
|
2398
2458
|
let l = g("element-header"), u = g("select-single");
|
|
2399
|
-
return p(), i("div",
|
|
2459
|
+
return p(), i("div", kr, [a("div", Ar, [c(l, {
|
|
2400
2460
|
text: n.header ?? "",
|
|
2401
2461
|
"is-required": n.isRequired,
|
|
2402
2462
|
"is-loading": n.isLoading
|
|
@@ -2418,13 +2478,13 @@ function Or(e, t, n, r, o, s) {
|
|
|
2418
2478
|
"lang"
|
|
2419
2479
|
])])]);
|
|
2420
2480
|
}
|
|
2421
|
-
var
|
|
2481
|
+
var Mr = /*#__PURE__*/ j(Or, [["render", jr]]), Nr = {
|
|
2422
2482
|
components: {
|
|
2423
|
-
Dot:
|
|
2424
|
-
FieldDescription:
|
|
2425
|
-
SelectSingle:
|
|
2483
|
+
Dot: M,
|
|
2484
|
+
FieldDescription: H,
|
|
2485
|
+
SelectSingle: W
|
|
2426
2486
|
},
|
|
2427
|
-
mixins: [
|
|
2487
|
+
mixins: [V],
|
|
2428
2488
|
emits: ["update:modelValue", "changed"],
|
|
2429
2489
|
props: {
|
|
2430
2490
|
items: {
|
|
@@ -2455,19 +2515,19 @@ var kr = /*#__PURE__*/ A(Tr, [["render", Or]]), Ar = {
|
|
|
2455
2515
|
setup() {
|
|
2456
2516
|
return { labelId: b() };
|
|
2457
2517
|
}
|
|
2458
|
-
},
|
|
2459
|
-
function
|
|
2518
|
+
}, Pr = { class: "bb-dashboard-ui" }, Fr = { class: "bb:flex bb:items-center" }, Ir = ["id", "textContent"], Lr = { class: "bb:mt-1 bb:h-9.5 bb:w-full bb:field-frame bb:text-sm bb:flex bb:flex-col" };
|
|
2519
|
+
function Rr(e, t, o, l, u, d) {
|
|
2460
2520
|
let f = g("dot"), m = g("select-single"), _ = g("field-description");
|
|
2461
|
-
return p(), i("div",
|
|
2462
|
-
a("div",
|
|
2521
|
+
return p(), i("div", Pr, [
|
|
2522
|
+
a("div", Fr, [a("span", {
|
|
2463
2523
|
id: l.labelId,
|
|
2464
2524
|
class: "bb:block bb:text-sm bb:font-medium bb:leading-5 bb:text-gray-700",
|
|
2465
2525
|
textContent: y(o.label ?? "")
|
|
2466
|
-
}, null, 8,
|
|
2467
|
-
color: "red",
|
|
2526
|
+
}, null, 8, Ir), w(c(f, {
|
|
2527
|
+
color: "red-pale",
|
|
2468
2528
|
class: "bb:ml-2"
|
|
2469
|
-
}, null, 512), [[
|
|
2470
|
-
a("div",
|
|
2529
|
+
}, null, 512), [[S, o.isRequired]])]),
|
|
2530
|
+
a("div", Lr, [c(m, {
|
|
2471
2531
|
items: o.items,
|
|
2472
2532
|
"model-value": o.modelValue,
|
|
2473
2533
|
"with-search": o.withSearch,
|
|
@@ -2488,17 +2548,17 @@ function Fr(e, t, o, l, u, d) {
|
|
|
2488
2548
|
key: 0,
|
|
2489
2549
|
id: e.descriptionId(l.labelId)
|
|
2490
2550
|
}, {
|
|
2491
|
-
default:
|
|
2551
|
+
default: C(() => [h(e.$slots, "description", {}, () => [s(y(e.description), 1)])]),
|
|
2492
2552
|
_: 3
|
|
2493
2553
|
}, 8, ["id"])) : r("", !0)
|
|
2494
2554
|
]);
|
|
2495
2555
|
}
|
|
2496
|
-
var
|
|
2556
|
+
var zr = /*#__PURE__*/ j(Nr, [["render", Rr]]), Br = {
|
|
2497
2557
|
components: {
|
|
2498
|
-
Dot:
|
|
2499
|
-
FieldDescription:
|
|
2558
|
+
Dot: M,
|
|
2559
|
+
FieldDescription: H
|
|
2500
2560
|
},
|
|
2501
|
-
mixins: [
|
|
2561
|
+
mixins: [V],
|
|
2502
2562
|
emits: ["update:modelValue", "changed"],
|
|
2503
2563
|
props: {
|
|
2504
2564
|
items: {
|
|
@@ -2524,7 +2584,7 @@ var Ir = /*#__PURE__*/ A(Ar, [["render", Fr]]), Lr = {
|
|
|
2524
2584
|
columns: {
|
|
2525
2585
|
type: Number,
|
|
2526
2586
|
default: 2,
|
|
2527
|
-
validator:
|
|
2587
|
+
validator: ur
|
|
2528
2588
|
}
|
|
2529
2589
|
},
|
|
2530
2590
|
setup() {
|
|
@@ -2538,10 +2598,10 @@ var Ir = /*#__PURE__*/ A(Ar, [["render", Fr]]), Lr = {
|
|
|
2538
2598
|
return Array.isArray(this.items) ? this.items.filter((e) => typeof e == "object" && !!e) : [];
|
|
2539
2599
|
},
|
|
2540
2600
|
gridStyle() {
|
|
2541
|
-
return
|
|
2601
|
+
return dr(U(this.columns));
|
|
2542
2602
|
},
|
|
2543
2603
|
itemStyles() {
|
|
2544
|
-
return
|
|
2604
|
+
return fr(this.itemList.length, U(this.columns));
|
|
2545
2605
|
}
|
|
2546
2606
|
},
|
|
2547
2607
|
methods: {
|
|
@@ -2560,25 +2620,25 @@ var Ir = /*#__PURE__*/ A(Ar, [["render", Fr]]), Lr = {
|
|
|
2560
2620
|
});
|
|
2561
2621
|
}
|
|
2562
2622
|
}
|
|
2563
|
-
},
|
|
2623
|
+
}, Vr = { class: "bb-dashboard-ui" }, Hr = { class: "bb:flex bb:items-center" }, Ur = ["id", "textContent"], Wr = ["aria-labelledby", "aria-describedby"], Gr = [
|
|
2564
2624
|
"name",
|
|
2565
2625
|
"checked",
|
|
2566
2626
|
"onChange"
|
|
2567
|
-
],
|
|
2627
|
+
], Kr = {
|
|
2568
2628
|
key: 0,
|
|
2569
2629
|
class: "bb:size-2 bb:rounded-full bb:bg-indigo-600 bb:forced-colors:bg-[CanvasText]"
|
|
2570
|
-
},
|
|
2571
|
-
function
|
|
2572
|
-
let b = g("dot"),
|
|
2573
|
-
return p(), i("div",
|
|
2574
|
-
a("div",
|
|
2630
|
+
}, qr = ["textContent"];
|
|
2631
|
+
function Jr(t, o, l, u, _, v) {
|
|
2632
|
+
let b = g("dot"), x = g("field-description");
|
|
2633
|
+
return p(), i("div", Vr, [
|
|
2634
|
+
a("div", Hr, [a("span", {
|
|
2575
2635
|
id: u.labelId,
|
|
2576
2636
|
class: "bb:block bb:text-sm bb:font-medium bb:leading-5 bb:text-gray-700",
|
|
2577
2637
|
textContent: y(l.label ?? "")
|
|
2578
|
-
}, null, 8,
|
|
2579
|
-
color: "red",
|
|
2638
|
+
}, null, 8, Ur), w(c(b, {
|
|
2639
|
+
color: "red-pale",
|
|
2580
2640
|
class: "bb:ml-2"
|
|
2581
|
-
}, null, 512), [[
|
|
2641
|
+
}, null, 512), [[S, l.isRequired]])]),
|
|
2582
2642
|
v.itemList.length > 0 ? (p(), i("div", {
|
|
2583
2643
|
key: 0,
|
|
2584
2644
|
role: "radiogroup",
|
|
@@ -2597,23 +2657,23 @@ function Gr(t, o, l, u, _, v) {
|
|
|
2597
2657
|
checked: v.isSelected(e),
|
|
2598
2658
|
class: "bb:absolute bb:inset-0 bb:size-full bb:cursor-pointer bb:bg-none bb:opacity-0",
|
|
2599
2659
|
onChange: (t) => v.select(e)
|
|
2600
|
-
}, null, 40,
|
|
2601
|
-
a("span", { class: d(["bb:pointer-events-none bb:cursor-default bb:shrink-0 bb:mt-0.5 bb:size-4 bb:rounded-full bb:choice-border bb:flex bb:items-center bb:justify-center", v.isSelected(e) ? "bb:border-indigo-600 bb:forced-colors:border-[Highlight]" : "bb:border-gray-300"]) }, [v.isSelected(e) ? (p(), i("span",
|
|
2660
|
+
}, null, 40, Gr),
|
|
2661
|
+
a("span", { class: d(["bb:pointer-events-none bb:cursor-default bb:shrink-0 bb:mt-0.5 bb:size-4 bb:rounded-full bb:choice-border bb:flex bb:items-center bb:justify-center", v.isSelected(e) ? "bb:border-indigo-600 bb:forced-colors:border-[Highlight]" : "bb:border-gray-300"]) }, [v.isSelected(e) ? (p(), i("span", Kr)) : r("", !0)], 2),
|
|
2602
2662
|
a("span", {
|
|
2603
2663
|
class: "bb:pointer-events-none bb:cursor-default bb:ml-3 bb:text-sm bb:font-medium bb:text-gray-700",
|
|
2604
2664
|
textContent: y(v.itemName(e))
|
|
2605
|
-
}, null, 8,
|
|
2606
|
-
], 6))), 128))], 12,
|
|
2607
|
-
t.hasDescription() ? (p(), n(
|
|
2665
|
+
}, null, 8, qr)
|
|
2666
|
+
], 6))), 128))], 12, Wr)) : r("", !0),
|
|
2667
|
+
t.hasDescription() ? (p(), n(x, {
|
|
2608
2668
|
key: 1,
|
|
2609
2669
|
id: t.descriptionId(u.labelId)
|
|
2610
2670
|
}, {
|
|
2611
|
-
default:
|
|
2671
|
+
default: C(() => [h(t.$slots, "description", {}, () => [s(y(t.description), 1)])]),
|
|
2612
2672
|
_: 3
|
|
2613
2673
|
}, 8, ["id"])) : r("", !0)
|
|
2614
2674
|
]);
|
|
2615
2675
|
}
|
|
2616
|
-
var
|
|
2676
|
+
var Yr = /*#__PURE__*/ j(Br, [["render", Jr]]), Xr = [
|
|
2617
2677
|
{
|
|
2618
2678
|
code: "AED",
|
|
2619
2679
|
digits: 2,
|
|
@@ -3395,29 +3455,29 @@ var Kr = /*#__PURE__*/ A(Lr, [["render", Gr]]), qr = [
|
|
|
3395
3455
|
symbol: null
|
|
3396
3456
|
}
|
|
3397
3457
|
];
|
|
3398
|
-
function
|
|
3399
|
-
if (e == null) return
|
|
3458
|
+
function G(e) {
|
|
3459
|
+
if (e == null) return Xr;
|
|
3400
3460
|
if (!Array.isArray(e)) return [];
|
|
3401
3461
|
let t = [];
|
|
3402
3462
|
for (let n of e) {
|
|
3403
|
-
let e =
|
|
3463
|
+
let e = Xr.find((e) => e.code === n);
|
|
3404
3464
|
e && !t.includes(e) && t.push(e);
|
|
3405
3465
|
}
|
|
3406
3466
|
return t;
|
|
3407
3467
|
}
|
|
3408
|
-
function
|
|
3468
|
+
function Zr(e) {
|
|
3409
3469
|
return e.symbol === null ? e.code : `${e.code} ${e.symbol}`;
|
|
3410
3470
|
}
|
|
3411
|
-
function
|
|
3471
|
+
function K(e) {
|
|
3412
3472
|
return e.map((e) => ({
|
|
3413
3473
|
id: e.code,
|
|
3414
|
-
name:
|
|
3474
|
+
name: Zr(e)
|
|
3415
3475
|
}));
|
|
3416
3476
|
}
|
|
3417
3477
|
//#endregion
|
|
3418
3478
|
//#region src/components/SelectCurrencyFilter.vue
|
|
3419
|
-
var
|
|
3420
|
-
components: { SelectSingleFilter:
|
|
3479
|
+
var Qr = {
|
|
3480
|
+
components: { SelectSingleFilter: Mr },
|
|
3421
3481
|
emits: ["update:modelValue", "changed"],
|
|
3422
3482
|
props: {
|
|
3423
3483
|
modelValue: {
|
|
@@ -3450,10 +3510,10 @@ var Yr = {
|
|
|
3450
3510
|
}
|
|
3451
3511
|
},
|
|
3452
3512
|
computed: { items() {
|
|
3453
|
-
return
|
|
3513
|
+
return K(G(this.currencies));
|
|
3454
3514
|
} }
|
|
3455
3515
|
};
|
|
3456
|
-
function
|
|
3516
|
+
function $r(e, t, r, i, a, o) {
|
|
3457
3517
|
let s = g("select-single-filter");
|
|
3458
3518
|
return p(), n(s, {
|
|
3459
3519
|
items: o.items,
|
|
@@ -3475,9 +3535,9 @@ function Xr(e, t, r, i, a, o) {
|
|
|
3475
3535
|
"lang"
|
|
3476
3536
|
]);
|
|
3477
3537
|
}
|
|
3478
|
-
var
|
|
3479
|
-
components: { SelectSingleForm:
|
|
3480
|
-
mixins: [
|
|
3538
|
+
var ei = /*#__PURE__*/ j(Qr, [["render", $r]]), ti = {
|
|
3539
|
+
components: { SelectSingleForm: zr },
|
|
3540
|
+
mixins: [V],
|
|
3481
3541
|
emits: ["update:modelValue", "changed"],
|
|
3482
3542
|
props: {
|
|
3483
3543
|
modelValue: {
|
|
@@ -3506,10 +3566,10 @@ var Zr = /*#__PURE__*/ A(Yr, [["render", Xr]]), Qr = {
|
|
|
3506
3566
|
}
|
|
3507
3567
|
},
|
|
3508
3568
|
computed: { items() {
|
|
3509
|
-
return
|
|
3569
|
+
return K(G(this.currencies));
|
|
3510
3570
|
} }
|
|
3511
3571
|
};
|
|
3512
|
-
function
|
|
3572
|
+
function ni(e, t, r, i, a, s) {
|
|
3513
3573
|
let c = g("select-single-form");
|
|
3514
3574
|
return p(), n(c, {
|
|
3515
3575
|
items: s.items,
|
|
@@ -3523,7 +3583,7 @@ function $r(e, t, r, i, a, s) {
|
|
|
3523
3583
|
onChanged: t[1] ||= (t) => e.$emit("changed")
|
|
3524
3584
|
}, o({ _: 2 }, [e.$slots.description ? {
|
|
3525
3585
|
name: "description",
|
|
3526
|
-
fn:
|
|
3586
|
+
fn: C(() => [h(e.$slots, "description")]),
|
|
3527
3587
|
key: "0"
|
|
3528
3588
|
} : void 0]), 1032, [
|
|
3529
3589
|
"items",
|
|
@@ -3535,11 +3595,11 @@ function $r(e, t, r, i, a, s) {
|
|
|
3535
3595
|
"description"
|
|
3536
3596
|
]);
|
|
3537
3597
|
}
|
|
3538
|
-
var
|
|
3539
|
-
function
|
|
3598
|
+
var ri = /*#__PURE__*/ j(ti, [["render", ni]]);
|
|
3599
|
+
function q(e) {
|
|
3540
3600
|
return !Number.isInteger(e) || e < 0 || e >= 10 ** 15 ? null : e;
|
|
3541
3601
|
}
|
|
3542
|
-
function
|
|
3602
|
+
function J(e, t) {
|
|
3543
3603
|
if (e === null) return {
|
|
3544
3604
|
whole: "",
|
|
3545
3605
|
fraction: ""
|
|
@@ -3550,25 +3610,25 @@ function Z(e, t) {
|
|
|
3550
3610
|
fraction: n.slice(r)
|
|
3551
3611
|
};
|
|
3552
3612
|
}
|
|
3553
|
-
function
|
|
3613
|
+
function ii(e, t, n) {
|
|
3554
3614
|
return e === "" && t === "" ? null : Number((e || "0") + t.padEnd(n, "0"));
|
|
3555
3615
|
}
|
|
3556
|
-
function
|
|
3616
|
+
function ai(e) {
|
|
3557
3617
|
return e.replace(/\D/g, "");
|
|
3558
3618
|
}
|
|
3559
|
-
function
|
|
3560
|
-
return
|
|
3619
|
+
function oi(e, t) {
|
|
3620
|
+
return ai(e).replace(/^0+(?=\d)/, "").slice(0, 15 - t);
|
|
3561
3621
|
}
|
|
3562
|
-
function
|
|
3622
|
+
function si(e, t) {
|
|
3563
3623
|
return e.replace(/\B(?=(\d{3})+$)/g, t === "en" ? "," : " ");
|
|
3564
3624
|
}
|
|
3565
|
-
function
|
|
3625
|
+
function ci(e) {
|
|
3566
3626
|
return e === "en" ? "." : ",";
|
|
3567
3627
|
}
|
|
3568
|
-
function
|
|
3628
|
+
function li(e, t) {
|
|
3569
3629
|
return e === "." || e === "," && t !== "en";
|
|
3570
3630
|
}
|
|
3571
|
-
function
|
|
3631
|
+
function ui(e, t, n) {
|
|
3572
3632
|
let r = e.trim();
|
|
3573
3633
|
if (!/^\d+([ \u00a0\u202f.,]\d+)*$/.test(r)) return null;
|
|
3574
3634
|
let i = r.match(/[.,]/g) ?? [], a = new Set(i), o = null;
|
|
@@ -3590,14 +3650,14 @@ function si(e, t, n) {
|
|
|
3590
3650
|
}
|
|
3591
3651
|
//#endregion
|
|
3592
3652
|
//#region src/amountCurrency.js
|
|
3593
|
-
var
|
|
3653
|
+
var di = {
|
|
3594
3654
|
props: { currencies: {
|
|
3595
3655
|
type: Array,
|
|
3596
3656
|
default: null
|
|
3597
3657
|
} },
|
|
3598
3658
|
computed: {
|
|
3599
3659
|
currencyList() {
|
|
3600
|
-
return
|
|
3660
|
+
return G(this.currencies);
|
|
3601
3661
|
},
|
|
3602
3662
|
activeCurrency() {
|
|
3603
3663
|
return this.currencyList.find((e) => e.code === this.passedCurrency) ?? this.currencyList[0] ?? null;
|
|
@@ -3624,9 +3684,9 @@ var ci = {
|
|
|
3624
3684
|
methods: { syncCurrency() {
|
|
3625
3685
|
!this.isBlocked && this.activeCode !== this.passedCurrency && this.reportCurrency(this.activeCode);
|
|
3626
3686
|
} }
|
|
3627
|
-
},
|
|
3628
|
-
components: { SelectSingle:
|
|
3629
|
-
mixins: [
|
|
3687
|
+
}, fi = {
|
|
3688
|
+
components: { SelectSingle: W },
|
|
3689
|
+
mixins: [P],
|
|
3630
3690
|
emits: ["update:modelValue"],
|
|
3631
3691
|
props: {
|
|
3632
3692
|
currencies: {
|
|
@@ -3642,20 +3702,20 @@ var ci = {
|
|
|
3642
3702
|
return { labelId: b() };
|
|
3643
3703
|
},
|
|
3644
3704
|
computed: { items() {
|
|
3645
|
-
return
|
|
3705
|
+
return K(this.currencies);
|
|
3646
3706
|
} }
|
|
3647
|
-
},
|
|
3648
|
-
function
|
|
3707
|
+
}, pi = { class: "bb:relative bb:flex bb:flex-col bb:justify-center bb:h-full bb:w-full bb:min-w-0" }, mi = ["textContent"], hi = ["id", "textContent"];
|
|
3708
|
+
function gi(t, n, o, s, l, u) {
|
|
3649
3709
|
let d = g("select-single");
|
|
3650
|
-
return p(), i("div",
|
|
3710
|
+
return p(), i("div", pi, [u.items.length === 1 ? (p(), i("span", {
|
|
3651
3711
|
key: 0,
|
|
3652
3712
|
class: "bb:truncate bb:px-3",
|
|
3653
3713
|
textContent: y(u.items[0].name)
|
|
3654
|
-
}, null, 8,
|
|
3714
|
+
}, null, 8, mi)) : u.items.length > 1 ? (p(), i(e, { key: 1 }, [a("span", {
|
|
3655
3715
|
id: s.labelId,
|
|
3656
3716
|
class: "bb:sr-only",
|
|
3657
3717
|
textContent: y(t.texts.currency)
|
|
3658
|
-
}, null, 8,
|
|
3718
|
+
}, null, 8, hi), c(d, {
|
|
3659
3719
|
items: u.items,
|
|
3660
3720
|
"model-value": o.modelValue,
|
|
3661
3721
|
"labelled-by": s.labelId,
|
|
@@ -3671,9 +3731,9 @@ function pi(t, n, o, s, l, u) {
|
|
|
3671
3731
|
"lang"
|
|
3672
3732
|
])], 64)) : r("", !0)]);
|
|
3673
3733
|
}
|
|
3674
|
-
var
|
|
3675
|
-
components: { CrossButton:
|
|
3676
|
-
mixins: [
|
|
3734
|
+
var Y = /*#__PURE__*/ j(fi, [["render", gi]]), _i = {
|
|
3735
|
+
components: { CrossButton: F },
|
|
3736
|
+
mixins: [P],
|
|
3677
3737
|
emits: ["update:modelValue", "changed"],
|
|
3678
3738
|
props: {
|
|
3679
3739
|
modelValue: {
|
|
@@ -3707,13 +3767,13 @@ var mi = /*#__PURE__*/ A(li, [["render", pi]]), hi = {
|
|
|
3707
3767
|
},
|
|
3708
3768
|
data() {
|
|
3709
3769
|
return {
|
|
3710
|
-
...
|
|
3770
|
+
...J(this.isDisabled ? null : q(this.modelValue), this.digits),
|
|
3711
3771
|
hasFocus: !1
|
|
3712
3772
|
};
|
|
3713
3773
|
},
|
|
3714
3774
|
computed: {
|
|
3715
3775
|
amount() {
|
|
3716
|
-
return
|
|
3776
|
+
return ii(this.whole, this.fraction, this.digits);
|
|
3717
3777
|
},
|
|
3718
3778
|
isEmpty() {
|
|
3719
3779
|
return this.amount === null;
|
|
@@ -3722,14 +3782,14 @@ var mi = /*#__PURE__*/ A(li, [["render", pi]]), hi = {
|
|
|
3722
3782
|
return this.isEmpty && !this.hasFocus;
|
|
3723
3783
|
},
|
|
3724
3784
|
groupedWhole() {
|
|
3725
|
-
return
|
|
3785
|
+
return si(this.whole, this.resolvedLang);
|
|
3726
3786
|
},
|
|
3727
3787
|
separator() {
|
|
3728
|
-
return
|
|
3788
|
+
return ci(this.resolvedLang);
|
|
3729
3789
|
},
|
|
3730
3790
|
fullAmount() {
|
|
3731
3791
|
if (this.isEmpty) return null;
|
|
3732
|
-
let { whole: e, fraction: t } =
|
|
3792
|
+
let { whole: e, fraction: t } = J(this.amount, this.digits), n = si(e, this.resolvedLang);
|
|
3733
3793
|
return t === "" ? n : `${n}${this.separator}${t}`;
|
|
3734
3794
|
}
|
|
3735
3795
|
},
|
|
@@ -3749,12 +3809,12 @@ var mi = /*#__PURE__*/ A(li, [["render", pi]]), hi = {
|
|
|
3749
3809
|
this.writeAmount(null, t), this.hasFocus = !1;
|
|
3750
3810
|
return;
|
|
3751
3811
|
}
|
|
3752
|
-
let o =
|
|
3812
|
+
let o = q(e);
|
|
3753
3813
|
if (a) {
|
|
3754
3814
|
this.writeAmount(o, t), this.committed = o;
|
|
3755
3815
|
return;
|
|
3756
3816
|
}
|
|
3757
|
-
let s =
|
|
3817
|
+
let s = ii(this.whole, this.fraction, i);
|
|
3758
3818
|
if (e === r || o === s) {
|
|
3759
3819
|
t !== i && this.writeAmount(s, t);
|
|
3760
3820
|
return;
|
|
@@ -3762,7 +3822,7 @@ var mi = /*#__PURE__*/ A(li, [["render", pi]]), hi = {
|
|
|
3762
3822
|
this.writeAmount(o, t), this.committed = o;
|
|
3763
3823
|
},
|
|
3764
3824
|
writeAmount(e, t) {
|
|
3765
|
-
let { whole: n, fraction: r } =
|
|
3825
|
+
let { whole: n, fraction: r } = J(e, t);
|
|
3766
3826
|
this.whole = n, this.fraction = r;
|
|
3767
3827
|
},
|
|
3768
3828
|
applyParts(e, t) {
|
|
@@ -3770,10 +3830,10 @@ var mi = /*#__PURE__*/ A(li, [["render", pi]]), hi = {
|
|
|
3770
3830
|
this.whole = e, this.fraction = t, this.amount !== n && this.$emit("update:modelValue", this.amount);
|
|
3771
3831
|
},
|
|
3772
3832
|
onWholeInput(e) {
|
|
3773
|
-
this.applyParts(
|
|
3833
|
+
this.applyParts(oi(e.target.value, this.digits), this.fraction), e.target.value = this.groupedWhole;
|
|
3774
3834
|
},
|
|
3775
3835
|
onFractionInput(e) {
|
|
3776
|
-
let t = e.target, n = t.value, r = t.selectionStart, i =
|
|
3836
|
+
let t = e.target, n = t.value, r = t.selectionStart, i = ai(n).slice(0, this.digits);
|
|
3777
3837
|
if (this.applyParts(this.whole, i), t.value = i, i !== n) {
|
|
3778
3838
|
let e = Math.max(r - (n.length - i.length), 0);
|
|
3779
3839
|
t.setSelectionRange(e, e);
|
|
@@ -3792,7 +3852,7 @@ var mi = /*#__PURE__*/ A(li, [["render", pi]]), hi = {
|
|
|
3792
3852
|
onWholeKeydown(e) {
|
|
3793
3853
|
this.holdCaret();
|
|
3794
3854
|
let t = e.metaKey || e.ctrlKey || e.altKey;
|
|
3795
|
-
this.digits > 0 && !t &&
|
|
3855
|
+
this.digits > 0 && !t && li(e.key, this.resolvedLang) && (e.preventDefault(), this.$refs.fractionInput.focus());
|
|
3796
3856
|
},
|
|
3797
3857
|
onFractionBackspace(e) {
|
|
3798
3858
|
this.fraction === "" && (e.preventDefault(), this.$refs.wholeInput.focus());
|
|
@@ -3804,7 +3864,7 @@ var mi = /*#__PURE__*/ A(li, [["render", pi]]), hi = {
|
|
|
3804
3864
|
this.fraction !== "" && (this.fraction = this.padFraction(this.fraction), this.whole = this.whole || "0");
|
|
3805
3865
|
},
|
|
3806
3866
|
onWholePaste(e) {
|
|
3807
|
-
let t =
|
|
3867
|
+
let t = ui(e.clipboardData?.getData("text") ?? "", this.resolvedLang, this.digits);
|
|
3808
3868
|
t !== null && (this.applyParts(t.whole, this.padFraction(t.fraction)), this.onWholeFocus());
|
|
3809
3869
|
},
|
|
3810
3870
|
onFractionPaste(e) {
|
|
@@ -3830,17 +3890,17 @@ var mi = /*#__PURE__*/ A(li, [["render", pi]]), hi = {
|
|
|
3830
3890
|
this.isUnmounted || this.isDisabled || this.amount === this.committed || (this.committed = this.amount, this.$emit("changed"));
|
|
3831
3891
|
}
|
|
3832
3892
|
}
|
|
3833
|
-
},
|
|
3893
|
+
}, vi = {
|
|
3834
3894
|
key: 0,
|
|
3835
3895
|
class: "bb:flex bb:flex-none bb:items-center bb:mr-2 bb:text-gray-400 bb:select-none"
|
|
3836
|
-
},
|
|
3896
|
+
}, yi = [
|
|
3837
3897
|
"id",
|
|
3838
3898
|
"value",
|
|
3839
3899
|
"disabled",
|
|
3840
3900
|
"aria-label",
|
|
3841
3901
|
"aria-describedby",
|
|
3842
3902
|
"title"
|
|
3843
|
-
],
|
|
3903
|
+
], bi = [
|
|
3844
3904
|
"value",
|
|
3845
3905
|
"disabled",
|
|
3846
3906
|
"maxlength",
|
|
@@ -3848,7 +3908,7 @@ var mi = /*#__PURE__*/ A(li, [["render", pi]]), hi = {
|
|
|
3848
3908
|
"aria-label",
|
|
3849
3909
|
"aria-describedby"
|
|
3850
3910
|
];
|
|
3851
|
-
function
|
|
3911
|
+
function xi(t, o, s, c, l, u) {
|
|
3852
3912
|
let m = g("cross-button");
|
|
3853
3913
|
return p(), i("div", {
|
|
3854
3914
|
class: d(["bb:flex bb:items-stretch bb:h-full bb:w-full bb:min-w-0 bb:pl-3 bb:rounded-[var(--bb-field-radius,0)] bb:has-focus-visible:focus-ring", { "bb:pr-3": !s.withEraser }]),
|
|
@@ -3856,7 +3916,7 @@ function yi(t, o, s, c, l, u) {
|
|
|
3856
3916
|
onFocusin: o[19] ||= (e) => l.hasFocus = !0,
|
|
3857
3917
|
onFocusout: o[20] ||= (...e) => u.onFocusOut && u.onFocusOut(...e)
|
|
3858
3918
|
}, [
|
|
3859
|
-
s.prefix ? (p(), i("span",
|
|
3919
|
+
s.prefix ? (p(), i("span", vi, y(s.prefix), 1)) : r("", !0),
|
|
3860
3920
|
a("input", {
|
|
3861
3921
|
ref: "wholeInput",
|
|
3862
3922
|
id: s.inputId,
|
|
@@ -3872,14 +3932,14 @@ function yi(t, o, s, c, l, u) {
|
|
|
3872
3932
|
onInput: o[0] ||= (...e) => u.onWholeInput && u.onWholeInput(...e),
|
|
3873
3933
|
onFocus: o[1] ||= (...e) => u.onWholeFocus && u.onWholeFocus(...e),
|
|
3874
3934
|
onClick: o[2] ||= (...e) => u.holdCaret && u.holdCaret(...e),
|
|
3875
|
-
onKeydown: [o[3] ||= (...e) => u.onWholeKeydown && u.onWholeKeydown(...e), o[4] ||=
|
|
3935
|
+
onKeydown: [o[3] ||= (...e) => u.onWholeKeydown && u.onWholeKeydown(...e), o[4] ||= T((...e) => u.commit && u.commit(...e), ["enter"])],
|
|
3876
3936
|
onKeyup: o[5] ||= (...e) => u.holdCaret && u.holdCaret(...e),
|
|
3877
3937
|
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 }, [
|
|
3938
|
+
onPaste: o[7] ||= E((...e) => u.onWholePaste && u.onWholePaste(...e), ["prevent"]),
|
|
3939
|
+
onDragstart: o[8] ||= E(() => {}, ["prevent"]),
|
|
3940
|
+
onDrop: o[9] ||= E(() => {}, ["prevent"])
|
|
3941
|
+
}, null, 40, yi),
|
|
3942
|
+
s.digits > 0 ? (p(), i(e, { key: 1 }, [w(a("span", { class: "bb:flex bb:items-center bb:text-gray-500" }, y(u.separator), 513), [[S, !u.isCollapsed]]), w(a("input", {
|
|
3883
3943
|
ref: "fractionInput",
|
|
3884
3944
|
type: "text",
|
|
3885
3945
|
inputmode: "numeric",
|
|
@@ -3894,18 +3954,18 @@ function yi(t, o, s, c, l, u) {
|
|
|
3894
3954
|
class: "bb:flex-none bb:bg-transparent bb:tabular-nums bb:placeholder-gray-400 bb:focus:outline-hidden",
|
|
3895
3955
|
onInput: o[10] ||= (...e) => u.onFractionInput && u.onFractionInput(...e),
|
|
3896
3956
|
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,
|
|
3957
|
+
onKeydown: [o[12] ||= T((...e) => u.commit && u.commit(...e), ["enter"]), o[13] ||= T((...e) => u.onFractionBackspace && u.onFractionBackspace(...e), ["backspace"])],
|
|
3958
|
+
onPaste: o[14] ||= E((...e) => u.onFractionPaste && u.onFractionPaste(...e), ["prevent"]),
|
|
3959
|
+
onDragstart: o[15] ||= E(() => {}, ["prevent"]),
|
|
3960
|
+
onDrop: o[16] ||= E(() => {}, ["prevent"])
|
|
3961
|
+
}, null, 44, bi), [[S, !u.isCollapsed]])], 64)) : r("", !0),
|
|
3902
3962
|
s.withEraser ? (p(), n(m, {
|
|
3903
3963
|
key: 2,
|
|
3904
3964
|
ref: "eraser",
|
|
3905
3965
|
size: "small",
|
|
3906
3966
|
lang: t.lang,
|
|
3907
3967
|
class: d(["bb:h-full bb:pr-2 bb:flex-none", { "bb:invisible": u.isEmpty }]),
|
|
3908
|
-
onMousedown: o[17] ||=
|
|
3968
|
+
onMousedown: o[17] ||= E(() => {}, ["prevent"]),
|
|
3909
3969
|
onClicked: u.erase
|
|
3910
3970
|
}, null, 8, [
|
|
3911
3971
|
"lang",
|
|
@@ -3914,14 +3974,14 @@ function yi(t, o, s, c, l, u) {
|
|
|
3914
3974
|
])) : r("", !0)
|
|
3915
3975
|
], 34);
|
|
3916
3976
|
}
|
|
3917
|
-
var
|
|
3977
|
+
var Si = /*#__PURE__*/ j(_i, [["render", xi]]), Ci = {
|
|
3918
3978
|
components: {
|
|
3919
|
-
AmountCurrency:
|
|
3920
|
-
AmountInput:
|
|
3921
|
-
Dot:
|
|
3922
|
-
FieldDescription:
|
|
3979
|
+
AmountCurrency: Y,
|
|
3980
|
+
AmountInput: Si,
|
|
3981
|
+
Dot: M,
|
|
3982
|
+
FieldDescription: H
|
|
3923
3983
|
},
|
|
3924
|
-
mixins: [
|
|
3984
|
+
mixins: [di, V],
|
|
3925
3985
|
emits: ["update:modelValue", "changed"],
|
|
3926
3986
|
props: {
|
|
3927
3987
|
modelValue: {
|
|
@@ -3950,7 +4010,7 @@ var bi = /*#__PURE__*/ A(hi, [["render", yi]]), xi = {
|
|
|
3950
4010
|
},
|
|
3951
4011
|
computed: {
|
|
3952
4012
|
passedAmount() {
|
|
3953
|
-
return
|
|
4013
|
+
return q(this.modelValue?.amount);
|
|
3954
4014
|
},
|
|
3955
4015
|
passedCurrency() {
|
|
3956
4016
|
return this.modelValue?.currency ?? null;
|
|
@@ -3973,19 +4033,19 @@ var bi = /*#__PURE__*/ A(hi, [["render", yi]]), xi = {
|
|
|
3973
4033
|
this.reportCurrency(e), this.passedAmount !== null && this.$emit("changed");
|
|
3974
4034
|
}
|
|
3975
4035
|
}
|
|
3976
|
-
},
|
|
3977
|
-
function
|
|
4036
|
+
}, wi = { class: "bb-dashboard-ui" }, Ti = { class: "bb:flex bb:items-center" }, Ei = ["for", "textContent"], Di = { class: "bb:mt-1 bb:flex bb:gap-3" }, Oi = { class: "bb:flex-1 bb:min-w-0 bb:h-9.5 bb:field-frame bb:text-sm" }, ki = { class: "bb:w-24 bb:flex-none bb:h-9.5 bb:field-frame bb:text-sm" };
|
|
4037
|
+
function Ai(e, t, o, l, u, d) {
|
|
3978
4038
|
let f = g("dot"), m = g("amount-input"), _ = g("amount-currency"), v = g("field-description");
|
|
3979
|
-
return p(), i("div",
|
|
3980
|
-
a("div",
|
|
4039
|
+
return p(), i("div", wi, [
|
|
4040
|
+
a("div", Ti, [a("label", {
|
|
3981
4041
|
for: l.inputId,
|
|
3982
4042
|
class: "bb:block bb:text-sm bb:font-medium bb:leading-5 bb:text-gray-700",
|
|
3983
4043
|
textContent: y(o.label)
|
|
3984
|
-
}, null, 8,
|
|
3985
|
-
color: "red",
|
|
4044
|
+
}, null, 8, Ei), w(c(f, {
|
|
4045
|
+
color: "red-pale",
|
|
3986
4046
|
class: "bb:ml-2"
|
|
3987
|
-
}, null, 512), [[
|
|
3988
|
-
a("div",
|
|
4047
|
+
}, null, 512), [[S, o.isRequired]])]),
|
|
4048
|
+
a("div", Di, [a("div", Oi, [c(m, {
|
|
3989
4049
|
"model-value": d.passedAmount,
|
|
3990
4050
|
digits: e.fractionDigits,
|
|
3991
4051
|
"input-id": l.inputId,
|
|
@@ -4004,7 +4064,7 @@ function Oi(e, t, o, l, u, d) {
|
|
|
4004
4064
|
"is-disabled",
|
|
4005
4065
|
"lang",
|
|
4006
4066
|
"onUpdate:modelValue"
|
|
4007
|
-
])]), a("div",
|
|
4067
|
+
])]), a("div", ki, [c(_, {
|
|
4008
4068
|
currencies: e.currencyList,
|
|
4009
4069
|
"model-value": e.activeCode,
|
|
4010
4070
|
lang: o.lang,
|
|
@@ -4019,14 +4079,14 @@ function Oi(e, t, o, l, u, d) {
|
|
|
4019
4079
|
key: 0,
|
|
4020
4080
|
id: e.descriptionId(l.inputId)
|
|
4021
4081
|
}, {
|
|
4022
|
-
default:
|
|
4082
|
+
default: C(() => [h(e.$slots, "description", {}, () => [s(y(e.description), 1)])]),
|
|
4023
4083
|
_: 3
|
|
4024
4084
|
}, 8, ["id"])) : r("", !0)
|
|
4025
4085
|
]);
|
|
4026
4086
|
}
|
|
4027
|
-
var
|
|
4087
|
+
var ji = /*#__PURE__*/ j(Ci, [["render", Ai]]), Mi = {
|
|
4028
4088
|
inheritAttrs: !1,
|
|
4029
|
-
mixins: [
|
|
4089
|
+
mixins: [P, di],
|
|
4030
4090
|
emits: [
|
|
4031
4091
|
"update:amountFrom",
|
|
4032
4092
|
"update:amountTo",
|
|
@@ -4052,10 +4112,10 @@ var ki = /*#__PURE__*/ A(xi, [["render", Oi]]), Ai = {
|
|
|
4052
4112
|
return this.currency;
|
|
4053
4113
|
},
|
|
4054
4114
|
passedFrom() {
|
|
4055
|
-
return
|
|
4115
|
+
return q(this.amountFrom);
|
|
4056
4116
|
},
|
|
4057
4117
|
passedTo() {
|
|
4058
|
-
return
|
|
4118
|
+
return q(this.amountTo);
|
|
4059
4119
|
},
|
|
4060
4120
|
from() {
|
|
4061
4121
|
return {
|
|
@@ -4092,19 +4152,19 @@ var ki = /*#__PURE__*/ A(xi, [["render", Oi]]), Ai = {
|
|
|
4092
4152
|
}
|
|
4093
4153
|
}
|
|
4094
4154
|
};
|
|
4095
|
-
function
|
|
4155
|
+
function Ni(e, t, n, r, i, a) {
|
|
4096
4156
|
return h(e.$slots, "default", {
|
|
4097
4157
|
from: a.from,
|
|
4098
4158
|
to: a.to,
|
|
4099
4159
|
currency: a.currencyField
|
|
4100
4160
|
});
|
|
4101
4161
|
}
|
|
4102
|
-
var
|
|
4162
|
+
var Pi = /*#__PURE__*/ j(Mi, [["render", Ni]]), Fi = {
|
|
4103
4163
|
components: {
|
|
4104
|
-
AmountCurrency:
|
|
4105
|
-
AmountInput:
|
|
4106
|
-
AmountInterval:
|
|
4107
|
-
ElementHeader:
|
|
4164
|
+
AmountCurrency: Y,
|
|
4165
|
+
AmountInput: Si,
|
|
4166
|
+
AmountInterval: Pi,
|
|
4167
|
+
ElementHeader: N
|
|
4108
4168
|
},
|
|
4109
4169
|
emits: [
|
|
4110
4170
|
"update:amountFrom",
|
|
@@ -4154,13 +4214,13 @@ var Mi = /*#__PURE__*/ A(Ai, [["render", ji]]), Ni = {
|
|
|
4154
4214
|
default: null
|
|
4155
4215
|
}
|
|
4156
4216
|
}
|
|
4157
|
-
},
|
|
4217
|
+
}, Ii = { class: "bb-dashboard-ui bb:flex bb:w-fit bb:h-18 bb:border bb:border-gray-200" }, Li = { class: "bb:flex bb:border bb:border-white" }, Ri = { class: "bb:flex bb:flex-col bb:bg-white bb:h-full" }, zi = { class: "bb:flex bb:h-full bb:divide-x bb:divide-gray-200" }, Bi = { class: "bb:w-46 bb:flex-none bb:text-sm" }, Vi = { class: "bb:w-46 bb:flex-none bb:text-sm" }, Hi = {
|
|
4158
4218
|
key: 0,
|
|
4159
4219
|
class: "bb:w-24 bb:flex-none bb:text-sm"
|
|
4160
4220
|
};
|
|
4161
|
-
function
|
|
4221
|
+
function Ui(e, t, n, o, s, l) {
|
|
4162
4222
|
let u = g("element-header"), d = g("amount-input"), f = g("amount-currency"), m = g("amount-interval");
|
|
4163
|
-
return p(), i("div",
|
|
4223
|
+
return p(), i("div", Ii, [a("div", Li, [a("div", Ri, [c(u, {
|
|
4164
4224
|
text: n.header ?? "",
|
|
4165
4225
|
"is-required": n.isRequired,
|
|
4166
4226
|
"is-loading": n.isLoading
|
|
@@ -4179,8 +4239,8 @@ function Vi(e, t, n, o, s, l) {
|
|
|
4179
4239
|
"onUpdate:currency": t[2] ||= (t) => e.$emit("update:currency", t),
|
|
4180
4240
|
onChanged: t[3] ||= (t) => e.$emit("changed")
|
|
4181
4241
|
}, {
|
|
4182
|
-
default:
|
|
4183
|
-
a("div",
|
|
4242
|
+
default: C(({ from: e, to: t, currency: o }) => [a("div", zi, [
|
|
4243
|
+
a("div", Bi, [c(d, {
|
|
4184
4244
|
"model-value": e.value,
|
|
4185
4245
|
digits: o.digits,
|
|
4186
4246
|
prefix: e.prefix,
|
|
@@ -4199,7 +4259,7 @@ function Vi(e, t, n, o, s, l) {
|
|
|
4199
4259
|
"onUpdate:modelValue",
|
|
4200
4260
|
"onChanged"
|
|
4201
4261
|
])]),
|
|
4202
|
-
a("div",
|
|
4262
|
+
a("div", Vi, [c(d, {
|
|
4203
4263
|
"model-value": t.value,
|
|
4204
4264
|
digits: o.digits,
|
|
4205
4265
|
prefix: t.prefix,
|
|
@@ -4218,7 +4278,7 @@ function Vi(e, t, n, o, s, l) {
|
|
|
4218
4278
|
"onUpdate:modelValue",
|
|
4219
4279
|
"onChanged"
|
|
4220
4280
|
])]),
|
|
4221
|
-
n.withCurrency ? (p(), i("div",
|
|
4281
|
+
n.withCurrency ? (p(), i("div", Hi, [c(f, {
|
|
4222
4282
|
currencies: o.list,
|
|
4223
4283
|
"model-value": o.code,
|
|
4224
4284
|
lang: n.lang,
|
|
@@ -4239,15 +4299,15 @@ function Vi(e, t, n, o, s, l) {
|
|
|
4239
4299
|
"lang"
|
|
4240
4300
|
])])])]);
|
|
4241
4301
|
}
|
|
4242
|
-
var
|
|
4302
|
+
var Wi = /*#__PURE__*/ j(Fi, [["render", Ui]]), Gi = {
|
|
4243
4303
|
components: {
|
|
4244
|
-
AmountCurrency:
|
|
4245
|
-
AmountInput:
|
|
4246
|
-
AmountInterval:
|
|
4247
|
-
Dot:
|
|
4248
|
-
FieldDescription:
|
|
4304
|
+
AmountCurrency: Y,
|
|
4305
|
+
AmountInput: Si,
|
|
4306
|
+
AmountInterval: Pi,
|
|
4307
|
+
Dot: M,
|
|
4308
|
+
FieldDescription: H
|
|
4249
4309
|
},
|
|
4250
|
-
mixins: [
|
|
4310
|
+
mixins: [V],
|
|
4251
4311
|
emits: [
|
|
4252
4312
|
"update:amountFrom",
|
|
4253
4313
|
"update:amountTo",
|
|
@@ -4291,18 +4351,18 @@ var Hi = /*#__PURE__*/ A(Ni, [["render", Vi]]), Ui = {
|
|
|
4291
4351
|
setup() {
|
|
4292
4352
|
return { labelId: b() };
|
|
4293
4353
|
}
|
|
4294
|
-
},
|
|
4295
|
-
function
|
|
4354
|
+
}, Ki = { class: "bb-dashboard-ui" }, qi = { class: "bb:flex bb:items-center" }, Ji = ["id", "textContent"], Yi = ["aria-labelledby", "aria-describedby"], Xi = { class: "bb:min-w-0 bb:h-9.5 bb:field-frame bb:text-sm" }, Zi = { class: "bb:min-w-0 bb:h-9.5 bb:field-frame bb:text-sm" }, Qi = { class: "bb:h-9.5 bb:field-frame bb:text-sm" };
|
|
4355
|
+
function $i(e, t, o, l, u, d) {
|
|
4296
4356
|
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",
|
|
4357
|
+
return p(), i("div", Ki, [
|
|
4358
|
+
a("div", qi, [a("span", {
|
|
4299
4359
|
id: l.labelId,
|
|
4300
4360
|
class: "bb:block bb:text-sm bb:font-medium bb:leading-5 bb:text-gray-700",
|
|
4301
4361
|
textContent: y(o.label ?? "")
|
|
4302
|
-
}, null, 8,
|
|
4303
|
-
color: "red",
|
|
4362
|
+
}, null, 8, Ji), w(c(f, {
|
|
4363
|
+
color: "red-pale",
|
|
4304
4364
|
class: "bb:ml-2"
|
|
4305
|
-
}, null, 512), [[
|
|
4365
|
+
}, null, 512), [[S, o.isRequired]])]),
|
|
4306
4366
|
a("div", {
|
|
4307
4367
|
class: "bb:mt-1 bb:grid bb:grid-cols-[1fr_1fr_6rem] bb:gap-3",
|
|
4308
4368
|
role: "group",
|
|
@@ -4319,8 +4379,8 @@ function Zi(e, t, o, l, u, d) {
|
|
|
4319
4379
|
"onUpdate:currency": t[2] ||= (t) => e.$emit("update:currency", t),
|
|
4320
4380
|
onChanged: t[3] ||= (t) => e.$emit("changed")
|
|
4321
4381
|
}, {
|
|
4322
|
-
default:
|
|
4323
|
-
a("div",
|
|
4382
|
+
default: C(({ from: e, to: t, currency: n }) => [
|
|
4383
|
+
a("div", Xi, [c(m, {
|
|
4324
4384
|
"model-value": e.value,
|
|
4325
4385
|
digits: n.digits,
|
|
4326
4386
|
prefix: e.prefix,
|
|
@@ -4339,7 +4399,7 @@ function Zi(e, t, o, l, u, d) {
|
|
|
4339
4399
|
"onUpdate:modelValue",
|
|
4340
4400
|
"onChanged"
|
|
4341
4401
|
])]),
|
|
4342
|
-
a("div",
|
|
4402
|
+
a("div", Zi, [c(m, {
|
|
4343
4403
|
"model-value": t.value,
|
|
4344
4404
|
digits: n.digits,
|
|
4345
4405
|
prefix: t.prefix,
|
|
@@ -4358,7 +4418,7 @@ function Zi(e, t, o, l, u, d) {
|
|
|
4358
4418
|
"onUpdate:modelValue",
|
|
4359
4419
|
"onChanged"
|
|
4360
4420
|
])]),
|
|
4361
|
-
a("div",
|
|
4421
|
+
a("div", Qi, [c(_, {
|
|
4362
4422
|
currencies: n.list,
|
|
4363
4423
|
"model-value": n.code,
|
|
4364
4424
|
lang: o.lang,
|
|
@@ -4377,18 +4437,18 @@ function Zi(e, t, o, l, u, d) {
|
|
|
4377
4437
|
"currency",
|
|
4378
4438
|
"currencies",
|
|
4379
4439
|
"lang"
|
|
4380
|
-
])], 8,
|
|
4440
|
+
])], 8, Yi),
|
|
4381
4441
|
e.hasDescription() ? (p(), n(b, {
|
|
4382
4442
|
key: 0,
|
|
4383
4443
|
id: e.descriptionId(l.labelId)
|
|
4384
4444
|
}, {
|
|
4385
|
-
default:
|
|
4445
|
+
default: C(() => [h(e.$slots, "description", {}, () => [s(y(e.description), 1)])]),
|
|
4386
4446
|
_: 3
|
|
4387
4447
|
}, 8, ["id"])) : r("", !0)
|
|
4388
4448
|
]);
|
|
4389
4449
|
}
|
|
4390
|
-
var
|
|
4391
|
-
mixins: [
|
|
4450
|
+
var ea = /*#__PURE__*/ j(Gi, [["render", $i]]), ta = {
|
|
4451
|
+
mixins: [A],
|
|
4392
4452
|
props: {
|
|
4393
4453
|
text: {
|
|
4394
4454
|
type: String,
|
|
@@ -4397,17 +4457,17 @@ var Qi = /*#__PURE__*/ A(Ui, [["render", Zi]]), $i = {
|
|
|
4397
4457
|
color: {
|
|
4398
4458
|
type: String,
|
|
4399
4459
|
required: !0,
|
|
4400
|
-
validator:
|
|
4460
|
+
validator: k
|
|
4401
4461
|
}
|
|
4402
4462
|
}
|
|
4403
|
-
},
|
|
4404
|
-
function
|
|
4463
|
+
}, na = ["textContent"];
|
|
4464
|
+
function ra(e, t, n, r, a, o) {
|
|
4405
4465
|
return p(), i("span", {
|
|
4406
4466
|
class: d(["bb-dashboard-ui bb:inline-flex bb:items-center bb:px-3 bb:py-2 bb:rounded-full bb:text-xs bb:font-medium bb:leading-none bb:select-none bb:whitespace-nowrap", e.colorClass(n.color, "pill")]),
|
|
4407
4467
|
textContent: y(n.text)
|
|
4408
|
-
}, null, 10,
|
|
4468
|
+
}, null, 10, na);
|
|
4409
4469
|
}
|
|
4410
|
-
var
|
|
4470
|
+
var ia = /*#__PURE__*/ j(ta, [["render", ra]]), aa = {
|
|
4411
4471
|
props: {
|
|
4412
4472
|
messages: {
|
|
4413
4473
|
type: [Object, Array],
|
|
@@ -4427,12 +4487,12 @@ var na = /*#__PURE__*/ A($i, [["render", ta]]), ra = {
|
|
|
4427
4487
|
return this.type === "dangerous";
|
|
4428
4488
|
}
|
|
4429
4489
|
}
|
|
4430
|
-
},
|
|
4431
|
-
function
|
|
4490
|
+
}, oa = { class: "bb:flex" }, sa = { class: "bb:shrink-0" }, ca = { class: "bb:ml-3" }, la = ["textContent"];
|
|
4491
|
+
function ua(t, n, o, s, c, l) {
|
|
4432
4492
|
return l.hasErrors ? (p(), i("div", {
|
|
4433
4493
|
key: 0,
|
|
4434
4494
|
class: d(["bb-dashboard-ui bb:border-l-4 bb:p-4", l.isDangerous ? "bb:bg-red-50 bb:border-red-400" : "bb:bg-yellow-50 bb:border-yellow-400"])
|
|
4435
|
-
}, [a("div",
|
|
4495
|
+
}, [a("div", oa, [a("div", sa, [(p(), i("svg", {
|
|
4436
4496
|
class: d(["bb:h-5 bb:w-5", l.isDangerous ? "bb:text-red-400" : "bb:text-yellow-400"]),
|
|
4437
4497
|
viewBox: "0 0 20 20",
|
|
4438
4498
|
fill: "currentColor"
|
|
@@ -4440,25 +4500,25 @@ function ca(t, n, o, s, c, l) {
|
|
|
4440
4500
|
"fill-rule": "evenodd",
|
|
4441
4501
|
d: "M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",
|
|
4442
4502
|
"clip-rule": "evenodd"
|
|
4443
|
-
}, null, -1)]], 2))]), a("div",
|
|
4503
|
+
}, null, -1)]], 2))]), a("div", ca, [(p(!0), i(e, null, m(o.messages, (e, t) => (p(), i("p", {
|
|
4444
4504
|
class: d(["bb:text-sm bb:leading-5", l.isDangerous ? "bb:text-red-700" : "bb:text-yellow-700"]),
|
|
4445
4505
|
key: t,
|
|
4446
4506
|
textContent: y(e)
|
|
4447
|
-
}, null, 10,
|
|
4507
|
+
}, null, 10, la))), 128))])])], 2)) : r("", !0);
|
|
4448
4508
|
}
|
|
4449
|
-
var
|
|
4509
|
+
var da = /*#__PURE__*/ j(aa, [["render", ua]]), fa = [
|
|
4450
4510
|
"text",
|
|
4451
4511
|
"email",
|
|
4452
4512
|
"password",
|
|
4453
4513
|
"tel",
|
|
4454
4514
|
"url",
|
|
4455
4515
|
"search"
|
|
4456
|
-
],
|
|
4516
|
+
], pa = {
|
|
4457
4517
|
components: {
|
|
4458
|
-
Dot:
|
|
4459
|
-
FieldDescription:
|
|
4518
|
+
Dot: M,
|
|
4519
|
+
FieldDescription: H
|
|
4460
4520
|
},
|
|
4461
|
-
mixins: [
|
|
4521
|
+
mixins: [V],
|
|
4462
4522
|
inheritAttrs: !1,
|
|
4463
4523
|
props: {
|
|
4464
4524
|
modelValue: {
|
|
@@ -4472,7 +4532,7 @@ var la = /*#__PURE__*/ A(ra, [["render", ca]]), ua = [
|
|
|
4472
4532
|
type: {
|
|
4473
4533
|
type: String,
|
|
4474
4534
|
default: "text",
|
|
4475
|
-
validator: (e) =>
|
|
4535
|
+
validator: (e) => fa.includes(e)
|
|
4476
4536
|
},
|
|
4477
4537
|
isRequired: {
|
|
4478
4538
|
type: Boolean,
|
|
@@ -4493,7 +4553,7 @@ var la = /*#__PURE__*/ A(ra, [["render", ca]]), ua = [
|
|
|
4493
4553
|
}
|
|
4494
4554
|
},
|
|
4495
4555
|
inputType() {
|
|
4496
|
-
return
|
|
4556
|
+
return fa.includes(this.type) ? this.type : "text";
|
|
4497
4557
|
}
|
|
4498
4558
|
},
|
|
4499
4559
|
methods: {
|
|
@@ -4512,112 +4572,428 @@ var la = /*#__PURE__*/ A(ra, [["render", ca]]), ua = [
|
|
|
4512
4572
|
].includes(e)));
|
|
4513
4573
|
}
|
|
4514
4574
|
}
|
|
4515
|
-
},
|
|
4575
|
+
}, ma = { class: "bb:flex bb:items-center" }, ha = ["for", "textContent"], ga = [
|
|
4516
4576
|
"id",
|
|
4517
4577
|
"aria-describedby",
|
|
4518
4578
|
"type"
|
|
4519
4579
|
];
|
|
4520
|
-
function
|
|
4580
|
+
function _a(e, t, o, l, m, _) {
|
|
4521
4581
|
let v = g("dot"), b = g("field-description");
|
|
4522
4582
|
return p(), i("div", {
|
|
4523
4583
|
class: d(["bb-dashboard-ui", e.$attrs.class]),
|
|
4524
4584
|
style: f(e.$attrs.style)
|
|
4525
4585
|
}, [
|
|
4526
|
-
a("div",
|
|
4586
|
+
a("div", ma, [a("label", {
|
|
4527
4587
|
for: _.inputId(),
|
|
4528
4588
|
class: "bb:block bb:text-sm bb:font-medium bb:leading-5 bb:text-gray-700",
|
|
4529
4589
|
textContent: y(o.label)
|
|
4530
|
-
}, null, 8,
|
|
4531
|
-
color: "red",
|
|
4590
|
+
}, null, 8, ha), w(c(v, {
|
|
4591
|
+
color: "red-pale",
|
|
4532
4592
|
class: "bb:ml-2"
|
|
4533
|
-
}, null, 512), [[
|
|
4534
|
-
|
|
4593
|
+
}, null, 512), [[S, o.isRequired]])]),
|
|
4594
|
+
w(a("input", u({ "onUpdate:modelValue": t[0] ||= (e) => _.value = e }, { ..._.inputAttrs() }, {
|
|
4535
4595
|
id: _.inputId(),
|
|
4536
4596
|
"aria-describedby": _.inputDescribedBy(),
|
|
4537
4597
|
type: _.inputType,
|
|
4538
|
-
class: "bb:mt-1 bb:block bb:w-full bb:
|
|
4539
|
-
}), null, 16,
|
|
4598
|
+
class: "bb:mt-1 bb:block bb:w-full bb:field-frame bb:px-3 bb:py-2 bb:text-sm bb:focus:focus-ring"
|
|
4599
|
+
}), null, 16, ga), [[x, _.value]]),
|
|
4540
4600
|
e.hasDescription() ? (p(), n(b, {
|
|
4541
4601
|
key: 0,
|
|
4542
4602
|
id: e.descriptionId(_.inputId())
|
|
4543
4603
|
}, {
|
|
4544
|
-
default:
|
|
4604
|
+
default: C(() => [h(e.$slots, "description", {}, () => [s(y(e.description), 1)])]),
|
|
4545
4605
|
_: 3
|
|
4546
4606
|
}, 8, ["id"])) : r("", !0)
|
|
4547
4607
|
], 6);
|
|
4548
4608
|
}
|
|
4549
|
-
var
|
|
4550
|
-
|
|
4609
|
+
var va = /*#__PURE__*/ j(pa, [["render", _a]]), ya = {
|
|
4610
|
+
mixins: [P],
|
|
4611
|
+
props: {
|
|
4612
|
+
text: {
|
|
4613
|
+
type: String,
|
|
4614
|
+
default: ""
|
|
4615
|
+
},
|
|
4616
|
+
limit: {
|
|
4617
|
+
type: Number,
|
|
4618
|
+
required: !0
|
|
4619
|
+
},
|
|
4620
|
+
id: {
|
|
4621
|
+
type: String,
|
|
4622
|
+
default: null
|
|
4623
|
+
}
|
|
4624
|
+
},
|
|
4625
|
+
computed: {
|
|
4626
|
+
count() {
|
|
4627
|
+
return Array.from(this.text ?? "").length;
|
|
4628
|
+
},
|
|
4629
|
+
isOverLimit() {
|
|
4630
|
+
return this.count > this.limit;
|
|
4631
|
+
}
|
|
4632
|
+
}
|
|
4633
|
+
}, ba = { class: "bb:text-xs bb:leading-4 bb:font-normal bb:text-gray-500 bb:tabular-nums bb:whitespace-nowrap" }, xa = { "aria-hidden": "true" }, Sa = ["id"];
|
|
4634
|
+
function Ca(e, t, n, r, o, c) {
|
|
4635
|
+
return p(), i("span", ba, [a("span", xa, [a("span", { class: d({ "bb:text-red-600": c.isOverLimit }) }, y(c.count), 3), s(" / " + y(n.limit), 1)]), a("span", {
|
|
4636
|
+
id: n.id,
|
|
4637
|
+
class: "bb:sr-only"
|
|
4638
|
+
}, y(`${e.texts.characterCount}: ${c.count} ${e.texts.characterCountOf} ${n.limit}`), 9, Sa)]);
|
|
4639
|
+
}
|
|
4640
|
+
var wa = /*#__PURE__*/ j(ya, [["render", Ca]]), Ta = 6, X = (e) => Number.isInteger(e) && e > 0, Ea = (e) => typeof e == "string" ? e.replace(/\r\n?/g, "\n") : "", Da = {
|
|
4641
|
+
components: {
|
|
4642
|
+
CharacterCounter: wa,
|
|
4643
|
+
Dot: M,
|
|
4644
|
+
FieldDescription: H
|
|
4645
|
+
},
|
|
4646
|
+
mixins: [V, P],
|
|
4647
|
+
inheritAttrs: !1,
|
|
4648
|
+
props: {
|
|
4649
|
+
modelValue: {
|
|
4650
|
+
type: String,
|
|
4651
|
+
default: ""
|
|
4652
|
+
},
|
|
4653
|
+
label: {
|
|
4654
|
+
type: String,
|
|
4655
|
+
required: !0
|
|
4656
|
+
},
|
|
4657
|
+
isRequired: {
|
|
4658
|
+
type: Boolean,
|
|
4659
|
+
default: !1
|
|
4660
|
+
},
|
|
4661
|
+
rows: {
|
|
4662
|
+
type: Number,
|
|
4663
|
+
default: Ta,
|
|
4664
|
+
validator: X
|
|
4665
|
+
},
|
|
4666
|
+
characterLimit: {
|
|
4667
|
+
type: Number,
|
|
4668
|
+
default: null,
|
|
4669
|
+
validator: X
|
|
4670
|
+
}
|
|
4671
|
+
},
|
|
4672
|
+
emits: ["update:modelValue"],
|
|
4673
|
+
setup() {
|
|
4674
|
+
return { generatedId: b() };
|
|
4675
|
+
},
|
|
4676
|
+
data() {
|
|
4677
|
+
return { text: Ea(this.modelValue) };
|
|
4678
|
+
},
|
|
4679
|
+
computed: {
|
|
4680
|
+
value: {
|
|
4681
|
+
get() {
|
|
4682
|
+
return this.text;
|
|
4683
|
+
},
|
|
4684
|
+
set(e) {
|
|
4685
|
+
this.$emit("update:modelValue", e);
|
|
4686
|
+
}
|
|
4687
|
+
},
|
|
4688
|
+
textareaRows() {
|
|
4689
|
+
return X(this.rows) ? this.rows : Ta;
|
|
4690
|
+
},
|
|
4691
|
+
hasCounter() {
|
|
4692
|
+
return X(this.characterLimit);
|
|
4693
|
+
}
|
|
4694
|
+
},
|
|
4695
|
+
watch: { modelValue(e) {
|
|
4696
|
+
this.text = Ea(e);
|
|
4697
|
+
} },
|
|
4698
|
+
methods: {
|
|
4699
|
+
textareaId() {
|
|
4700
|
+
return this.$attrs.id ?? this.generatedId;
|
|
4701
|
+
},
|
|
4702
|
+
textareaDescribedBy() {
|
|
4703
|
+
let e = [
|
|
4704
|
+
this.$attrs["aria-describedby"],
|
|
4705
|
+
this.descriptionId(this.textareaId()),
|
|
4706
|
+
this.hasCounter ? `${this.textareaId()}-counter` : null
|
|
4707
|
+
].filter(Boolean);
|
|
4708
|
+
return e.length > 0 ? e.join(" ") : null;
|
|
4709
|
+
},
|
|
4710
|
+
textareaAttrs() {
|
|
4711
|
+
return Object.fromEntries(Object.entries(this.$attrs).filter(([e]) => ![
|
|
4712
|
+
"class",
|
|
4713
|
+
"style",
|
|
4714
|
+
"id"
|
|
4715
|
+
].includes(e)));
|
|
4716
|
+
}
|
|
4717
|
+
}
|
|
4718
|
+
}, Oa = { class: "bb:flex bb:items-start bb:justify-between bb:gap-3" }, ka = { class: "bb:flex bb:items-center" }, Aa = ["for", "textContent"], ja = {
|
|
4719
|
+
key: 0,
|
|
4720
|
+
class: "bb:flex bb:h-5 bb:shrink-0 bb:items-center"
|
|
4721
|
+
}, Ma = [
|
|
4722
|
+
"id",
|
|
4723
|
+
"aria-describedby",
|
|
4724
|
+
"rows"
|
|
4725
|
+
];
|
|
4726
|
+
function Na(e, t, o, l, m, _) {
|
|
4727
|
+
let v = g("dot"), b = g("character-counter"), x = g("field-description");
|
|
4728
|
+
return p(), i("div", {
|
|
4729
|
+
class: d(["bb-dashboard-ui", e.$attrs.class]),
|
|
4730
|
+
style: f(e.$attrs.style)
|
|
4731
|
+
}, [
|
|
4732
|
+
a("div", Oa, [a("div", ka, [a("label", {
|
|
4733
|
+
for: _.textareaId(),
|
|
4734
|
+
class: "bb:block bb:text-sm bb:font-medium bb:leading-5 bb:text-gray-700",
|
|
4735
|
+
textContent: y(o.label)
|
|
4736
|
+
}, null, 8, Aa), w(c(v, {
|
|
4737
|
+
color: "red-pale",
|
|
4738
|
+
class: "bb:ml-2"
|
|
4739
|
+
}, null, 512), [[S, o.isRequired]])]), _.hasCounter ? (p(), i("div", ja, [c(b, {
|
|
4740
|
+
id: `${_.textareaId()}-counter`,
|
|
4741
|
+
text: m.text,
|
|
4742
|
+
limit: o.characterLimit,
|
|
4743
|
+
lang: e.lang
|
|
4744
|
+
}, null, 8, [
|
|
4745
|
+
"id",
|
|
4746
|
+
"text",
|
|
4747
|
+
"limit",
|
|
4748
|
+
"lang"
|
|
4749
|
+
])])) : r("", !0)]),
|
|
4750
|
+
w(a("textarea", u({ "onUpdate:modelValue": t[0] ||= (e) => _.value = e }, { ..._.textareaAttrs() }, {
|
|
4751
|
+
id: _.textareaId(),
|
|
4752
|
+
"aria-describedby": _.textareaDescribedBy(),
|
|
4753
|
+
rows: _.textareaRows,
|
|
4754
|
+
class: "bb:mt-1 bb:block bb:w-full bb:field-frame bb:px-3 bb:py-2 bb:text-sm bb:focus:focus-ring bb:resize-y",
|
|
4755
|
+
onInput: t[1] ||= (e) => m.text = e.target.value
|
|
4756
|
+
}), null, 16, Ma), [[ee, _.value]]),
|
|
4757
|
+
e.hasDescription() ? (p(), n(x, {
|
|
4758
|
+
key: 0,
|
|
4759
|
+
id: e.descriptionId(_.textareaId())
|
|
4760
|
+
}, {
|
|
4761
|
+
default: C(() => [h(e.$slots, "description", {}, () => [s(y(e.description), 1)])]),
|
|
4762
|
+
_: 3
|
|
4763
|
+
}, 8, ["id"])) : r("", !0)
|
|
4764
|
+
], 6);
|
|
4765
|
+
}
|
|
4766
|
+
var Pa = /*#__PURE__*/ j(Da, [["render", Na]]), Fa = {}, Ia = {
|
|
4551
4767
|
fill: "none",
|
|
4552
4768
|
stroke: "currentColor",
|
|
4553
|
-
"stroke-width": "2",
|
|
4554
|
-
"stroke-linecap": "round",
|
|
4555
4769
|
viewBox: "0 0 24 24",
|
|
4556
4770
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4557
4771
|
"aria-hidden": "true"
|
|
4558
4772
|
};
|
|
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
|
-
]]);
|
|
4773
|
+
function La(e, t, n, r, o, s) {
|
|
4774
|
+
return p(), i("svg", Ia, [...t[0] ||= [a("path", {
|
|
4775
|
+
"stroke-linecap": "round",
|
|
4776
|
+
"stroke-linejoin": "round",
|
|
4777
|
+
"stroke-width": "2",
|
|
4778
|
+
d: "M12 4v16m8-8H4"
|
|
4779
|
+
}, null, -1)]]);
|
|
4581
4780
|
}
|
|
4582
|
-
var
|
|
4583
|
-
class: "bb:w-4 bb:h-4",
|
|
4781
|
+
var Ra = /*#__PURE__*/ j(Fa, [["render", La]]), za = {}, Ba = {
|
|
4584
4782
|
fill: "none",
|
|
4585
4783
|
stroke: "currentColor",
|
|
4586
4784
|
viewBox: "0 0 24 24",
|
|
4587
4785
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4588
4786
|
"aria-hidden": "true"
|
|
4589
4787
|
};
|
|
4590
|
-
function
|
|
4591
|
-
return p(), i("svg",
|
|
4788
|
+
function Va(e, t, n, r, o, s) {
|
|
4789
|
+
return p(), i("svg", Ba, [...t[0] ||= [a("path", {
|
|
4592
4790
|
"stroke-linecap": "round",
|
|
4593
4791
|
"stroke-linejoin": "round",
|
|
4594
4792
|
"stroke-width": "2",
|
|
4595
4793
|
d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
|
|
4596
4794
|
}, null, -1)]]);
|
|
4597
4795
|
}
|
|
4598
|
-
var
|
|
4599
|
-
class: "bb:w-4 bb:h-4",
|
|
4796
|
+
var Ha = /*#__PURE__*/ j(za, [["render", Va]]), Ua = {}, Wa = {
|
|
4600
4797
|
fill: "none",
|
|
4601
4798
|
stroke: "currentColor",
|
|
4602
4799
|
viewBox: "0 0 24 24",
|
|
4603
4800
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4604
4801
|
"aria-hidden": "true"
|
|
4605
4802
|
};
|
|
4606
|
-
function
|
|
4607
|
-
return p(), i("svg",
|
|
4803
|
+
function Ga(e, t, n, r, o, s) {
|
|
4804
|
+
return p(), i("svg", Wa, [...t[0] ||= [a("path", {
|
|
4608
4805
|
"stroke-linecap": "round",
|
|
4609
4806
|
"stroke-linejoin": "round",
|
|
4610
4807
|
"stroke-width": "2",
|
|
4611
4808
|
d: "M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"
|
|
4612
4809
|
}, null, -1)]]);
|
|
4613
4810
|
}
|
|
4614
|
-
var
|
|
4811
|
+
var Ka = /*#__PURE__*/ j(Ua, [["render", Ga]]), qa = {}, Ja = {
|
|
4812
|
+
fill: "none",
|
|
4813
|
+
stroke: "currentColor",
|
|
4814
|
+
viewBox: "0 0 24 24",
|
|
4815
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4816
|
+
"aria-hidden": "true"
|
|
4817
|
+
};
|
|
4818
|
+
function Ya(e, t, n, r, o, s) {
|
|
4819
|
+
return p(), i("svg", Ja, [...t[0] ||= [a("path", {
|
|
4820
|
+
"stroke-linecap": "round",
|
|
4821
|
+
"stroke-linejoin": "round",
|
|
4822
|
+
"stroke-width": "2",
|
|
4823
|
+
d: "M2 9l10-7 10 7H2zM4.5 12v6M9.5 12v6M14.5 12v6M19.5 12v6M3.5 18h17M2 22h20"
|
|
4824
|
+
}, null, -1)]]);
|
|
4825
|
+
}
|
|
4826
|
+
var Xa = /*#__PURE__*/ j(qa, [["render", Ya]]), Za = {}, Qa = {
|
|
4827
|
+
fill: "none",
|
|
4828
|
+
stroke: "currentColor",
|
|
4829
|
+
viewBox: "0 0 24 24",
|
|
4830
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4831
|
+
"aria-hidden": "true"
|
|
4832
|
+
};
|
|
4833
|
+
function $a(e, t, n, r, o, s) {
|
|
4834
|
+
return p(), i("svg", Qa, [...t[0] ||= [a("path", {
|
|
4835
|
+
"stroke-linecap": "round",
|
|
4836
|
+
"stroke-linejoin": "round",
|
|
4837
|
+
"stroke-width": "2",
|
|
4838
|
+
d: "M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"
|
|
4839
|
+
}, null, -1)]]);
|
|
4840
|
+
}
|
|
4841
|
+
//#endregion
|
|
4842
|
+
//#region src/actionIcons.js
|
|
4843
|
+
var eo = {
|
|
4844
|
+
plus: Ra,
|
|
4845
|
+
download: Ha,
|
|
4846
|
+
refresh: Ka,
|
|
4847
|
+
"bank-transfer": Xa,
|
|
4848
|
+
"currency-exchange": /* @__PURE__ */ j(Za, [["render", $a]])
|
|
4849
|
+
};
|
|
4850
|
+
function Z(e) {
|
|
4851
|
+
return typeof e == "string" && Object.hasOwn(eo, e);
|
|
4852
|
+
}
|
|
4853
|
+
//#endregion
|
|
4854
|
+
//#region src/navigation.js
|
|
4855
|
+
function to(e) {
|
|
4856
|
+
let t = e.currentTarget?.target ?? "";
|
|
4857
|
+
return !(e.defaultPrevented || e.target?.isContentEditable === !0 || e.altKey || e.ctrlKey || e.metaKey || e.shiftKey || t !== "" && t !== "_self" || e.button !== 0);
|
|
4858
|
+
}
|
|
4859
|
+
var Q = {
|
|
4860
|
+
inject: ye,
|
|
4861
|
+
methods: { followLink(e, t) {
|
|
4862
|
+
let n = this.uiSettings.navigate;
|
|
4863
|
+
n !== null && to(e) && (e.preventDefault(), n(t));
|
|
4864
|
+
} }
|
|
4865
|
+
}, no = {
|
|
4866
|
+
props: { name: {
|
|
4867
|
+
type: String,
|
|
4868
|
+
default: null
|
|
4869
|
+
} },
|
|
4870
|
+
computed: { icon() {
|
|
4871
|
+
return Z(this.name) ? eo[this.name] : "span";
|
|
4872
|
+
} }
|
|
4873
|
+
};
|
|
4874
|
+
function ro(e, t, r, i, a, o) {
|
|
4875
|
+
return p(), n(_(o.icon), { class: "bb:w-4 bb:h-4 bb:shrink-0 bb:pointer-events-none bb:cursor-default" });
|
|
4876
|
+
}
|
|
4877
|
+
var io = /*#__PURE__*/ j(no, [["render", ro]]), ao = {
|
|
4878
|
+
components: { ActionIcon: io },
|
|
4879
|
+
mixins: [A, Q],
|
|
4880
|
+
emits: ["click"],
|
|
4881
|
+
props: {
|
|
4882
|
+
label: {
|
|
4883
|
+
type: String,
|
|
4884
|
+
required: !0
|
|
4885
|
+
},
|
|
4886
|
+
color: {
|
|
4887
|
+
type: String,
|
|
4888
|
+
default: null,
|
|
4889
|
+
validator: (e) => e === "" || k(e)
|
|
4890
|
+
},
|
|
4891
|
+
icon: {
|
|
4892
|
+
type: String,
|
|
4893
|
+
default: null,
|
|
4894
|
+
validator: (e) => e === "" || Z(e)
|
|
4895
|
+
},
|
|
4896
|
+
href: {
|
|
4897
|
+
type: String,
|
|
4898
|
+
default: null
|
|
4899
|
+
},
|
|
4900
|
+
type: {
|
|
4901
|
+
type: String,
|
|
4902
|
+
default: "button",
|
|
4903
|
+
validator: (e) => ["button", "submit"].includes(e)
|
|
4904
|
+
},
|
|
4905
|
+
isDisabled: {
|
|
4906
|
+
type: Boolean,
|
|
4907
|
+
default: !1
|
|
4908
|
+
}
|
|
4909
|
+
},
|
|
4910
|
+
computed: {
|
|
4911
|
+
hasColor() {
|
|
4912
|
+
return k(this.color);
|
|
4913
|
+
},
|
|
4914
|
+
hasIcon() {
|
|
4915
|
+
return Z(this.icon);
|
|
4916
|
+
},
|
|
4917
|
+
isLink() {
|
|
4918
|
+
return typeof this.href == "string" && this.href !== "" && !this.isDisabled;
|
|
4919
|
+
},
|
|
4920
|
+
buttonType() {
|
|
4921
|
+
return this.type === "submit" ? "submit" : "button";
|
|
4922
|
+
}
|
|
4923
|
+
}
|
|
4924
|
+
}, oo = ["href"], so = ["textContent"], co = ["type", "disabled"], lo = ["textContent"];
|
|
4925
|
+
function uo(e, t, o, s, c, l) {
|
|
4926
|
+
let u = g("action-icon");
|
|
4927
|
+
return l.isLink ? (p(), i("a", {
|
|
4928
|
+
key: 0,
|
|
4929
|
+
href: o.href,
|
|
4930
|
+
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"]),
|
|
4931
|
+
onClick: t[0] ||= (t) => e.followLink(t, o.href)
|
|
4932
|
+
}, [l.hasIcon ? (p(), n(u, {
|
|
4933
|
+
key: 0,
|
|
4934
|
+
name: o.icon
|
|
4935
|
+
}, null, 8, ["name"])) : r("", !0), a("span", {
|
|
4936
|
+
class: "bb:pointer-events-none bb:cursor-default",
|
|
4937
|
+
textContent: y(o.label)
|
|
4938
|
+
}, null, 8, so)], 10, oo)) : (p(), i("button", {
|
|
4939
|
+
key: 1,
|
|
4940
|
+
type: l.buttonType,
|
|
4941
|
+
disabled: o.isDisabled,
|
|
4942
|
+
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", [
|
|
4943
|
+
l.hasColor ? e.colorClass(o.color, "button") : "bb:bg-white bb:border-gray-300 bb:text-gray-700",
|
|
4944
|
+
o.isDisabled ? "bb:opacity-50 bb:cursor-not-allowed" : "bb:cursor-pointer",
|
|
4945
|
+
o.isDisabled ? "" : l.hasColor ? e.colorClass(o.color, "buttonHover") : "bb:hover:bg-gray-50"
|
|
4946
|
+
]]),
|
|
4947
|
+
onClick: t[1] ||= (t) => e.$emit("click", t)
|
|
4948
|
+
}, [l.hasIcon ? (p(), n(u, {
|
|
4949
|
+
key: 0,
|
|
4950
|
+
name: o.icon
|
|
4951
|
+
}, null, 8, ["name"])) : r("", !0), a("span", {
|
|
4952
|
+
class: "bb:pointer-events-none bb:cursor-default",
|
|
4953
|
+
textContent: y(o.label)
|
|
4954
|
+
}, null, 8, lo)], 10, co));
|
|
4955
|
+
}
|
|
4956
|
+
var fo = /*#__PURE__*/ j(ao, [["render", uo]]), po = {}, mo = {
|
|
4957
|
+
class: "bb:w-4 bb:h-4",
|
|
4958
|
+
fill: "none",
|
|
4959
|
+
stroke: "currentColor",
|
|
4960
|
+
"stroke-width": "2",
|
|
4961
|
+
"stroke-linecap": "round",
|
|
4962
|
+
viewBox: "0 0 24 24",
|
|
4963
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4964
|
+
"aria-hidden": "true"
|
|
4965
|
+
};
|
|
4966
|
+
function ho(e, t, n, r, o, s) {
|
|
4967
|
+
return p(), i("svg", mo, [...t[0] ||= [
|
|
4968
|
+
a("circle", {
|
|
4969
|
+
cx: "12",
|
|
4970
|
+
cy: "12",
|
|
4971
|
+
r: "9"
|
|
4972
|
+
}, null, -1),
|
|
4973
|
+
a("line", {
|
|
4974
|
+
class: "bb:origin-center bb:animate-[spin_12s_linear_infinite] bb:motion-reduce:animate-none",
|
|
4975
|
+
x1: "12",
|
|
4976
|
+
y1: "12",
|
|
4977
|
+
x2: "15",
|
|
4978
|
+
y2: "12"
|
|
4979
|
+
}, null, -1),
|
|
4980
|
+
a("line", {
|
|
4981
|
+
class: "bb:origin-center bb:animate-spin bb:motion-reduce:animate-none",
|
|
4982
|
+
x1: "12",
|
|
4983
|
+
y1: "12",
|
|
4984
|
+
x2: "12",
|
|
4985
|
+
y2: "6.5"
|
|
4986
|
+
}, null, -1)
|
|
4987
|
+
]]);
|
|
4988
|
+
}
|
|
4989
|
+
//#endregion
|
|
4990
|
+
//#region src/components/ActionPill.vue
|
|
4991
|
+
var go = {
|
|
4615
4992
|
components: {
|
|
4616
|
-
"clock-icon":
|
|
4617
|
-
"
|
|
4618
|
-
"refresh-icon": Oa
|
|
4993
|
+
"clock-icon": /* @__PURE__ */ j(po, [["render", ho]]),
|
|
4994
|
+
"action-icon": io
|
|
4619
4995
|
},
|
|
4620
|
-
mixins: [
|
|
4996
|
+
mixins: [A],
|
|
4621
4997
|
emits: ["click"],
|
|
4622
4998
|
props: {
|
|
4623
4999
|
title: {
|
|
@@ -4627,12 +5003,12 @@ var Oa = /*#__PURE__*/ A(Ta, [["render", Da]]), ka = ["download", "refresh"], Aa
|
|
|
4627
5003
|
icon: {
|
|
4628
5004
|
type: String,
|
|
4629
5005
|
required: !0,
|
|
4630
|
-
validator:
|
|
5006
|
+
validator: Z
|
|
4631
5007
|
},
|
|
4632
5008
|
color: {
|
|
4633
5009
|
type: String,
|
|
4634
|
-
default: "purple",
|
|
4635
|
-
validator:
|
|
5010
|
+
default: "purple-pale",
|
|
5011
|
+
validator: k
|
|
4636
5012
|
},
|
|
4637
5013
|
isLoading: {
|
|
4638
5014
|
type: Boolean,
|
|
@@ -4643,17 +5019,22 @@ var Oa = /*#__PURE__*/ A(Ta, [["render", Da]]), ka = ["download", "refresh"], Aa
|
|
|
4643
5019
|
default: null
|
|
4644
5020
|
}
|
|
4645
5021
|
},
|
|
4646
|
-
computed: {
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
|
|
5022
|
+
computed: {
|
|
5023
|
+
hasIcon() {
|
|
5024
|
+
return Z(this.icon);
|
|
5025
|
+
},
|
|
5026
|
+
label() {
|
|
5027
|
+
let e = this.isLoading && typeof this.loadingText == "string" && this.loadingText !== "" ? this.loadingText : this.title;
|
|
5028
|
+
return typeof e == "string" ? e : "";
|
|
5029
|
+
}
|
|
5030
|
+
}
|
|
5031
|
+
}, _o = [
|
|
4651
5032
|
"title",
|
|
4652
5033
|
"disabled",
|
|
4653
5034
|
"aria-busy"
|
|
4654
|
-
],
|
|
4655
|
-
function
|
|
4656
|
-
let u = g("clock-icon"), f = g("
|
|
5035
|
+
], vo = ["textContent"];
|
|
5036
|
+
function yo(e, t, o, s, c, l) {
|
|
5037
|
+
let u = g("clock-icon"), f = g("action-icon");
|
|
4657
5038
|
return p(), i("button", {
|
|
4658
5039
|
type: "button",
|
|
4659
5040
|
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 +5049,25 @@ function Na(e, t, o, s, c, l) {
|
|
|
4668
5049
|
}, [o.isLoading ? (p(), n(u, {
|
|
4669
5050
|
key: 0,
|
|
4670
5051
|
class: "bb:pointer-events-none bb:cursor-default"
|
|
4671
|
-
})) :
|
|
5052
|
+
})) : l.hasIcon ? (p(), n(f, {
|
|
4672
5053
|
key: 1,
|
|
4673
|
-
|
|
4674
|
-
})) :
|
|
4675
|
-
key: 2,
|
|
4676
|
-
class: "bb:pointer-events-none bb:cursor-default"
|
|
4677
|
-
})) : r("", !0), a("span", {
|
|
5054
|
+
name: o.icon
|
|
5055
|
+
}, null, 8, ["name"])) : r("", !0), a("span", {
|
|
4678
5056
|
class: "bb:ml-1 bb:pointer-events-none bb:cursor-default",
|
|
4679
5057
|
textContent: y(l.label)
|
|
4680
|
-
}, null, 8,
|
|
5058
|
+
}, null, 8, vo)], 10, _o);
|
|
4681
5059
|
}
|
|
4682
|
-
var
|
|
4683
|
-
function
|
|
5060
|
+
var bo = /*#__PURE__*/ j(go, [["render", yo]]), xo = "a[href], button:not(:disabled)";
|
|
5061
|
+
function So(e, t) {
|
|
4684
5062
|
let n = document.activeElement;
|
|
4685
|
-
(e.querySelector("[data-dialog-focus]") ?? e.querySelector(
|
|
5063
|
+
(e.querySelector("[data-dialog-focus]") ?? e.querySelector(xo))?.focus();
|
|
4686
5064
|
let r = (n) => {
|
|
4687
5065
|
if (n.key === "Escape") {
|
|
4688
5066
|
t();
|
|
4689
5067
|
return;
|
|
4690
5068
|
}
|
|
4691
5069
|
if (n.key !== "Tab") return;
|
|
4692
|
-
let r = [...e.querySelectorAll(
|
|
5070
|
+
let r = [...e.querySelectorAll(xo)];
|
|
4693
5071
|
if (r.length === 0) return;
|
|
4694
5072
|
n.preventDefault();
|
|
4695
5073
|
let i = n.shiftKey ? -1 : 1, a = r.indexOf(document.activeElement);
|
|
@@ -4706,7 +5084,7 @@ function Ia(e, t) {
|
|
|
4706
5084
|
}
|
|
4707
5085
|
//#endregion
|
|
4708
5086
|
//#region src/components/Modal.vue
|
|
4709
|
-
var
|
|
5087
|
+
var Co = {
|
|
4710
5088
|
emits: ["escape"],
|
|
4711
5089
|
props: {
|
|
4712
5090
|
isOpen: {
|
|
@@ -4740,16 +5118,16 @@ var La = {
|
|
|
4740
5118
|
methods: {
|
|
4741
5119
|
holdFocus() {
|
|
4742
5120
|
this.focusFrame === null && this.releaseHeldFocus === null && (this.focusFrame = requestAnimationFrame(() => {
|
|
4743
|
-
this.focusFrame = null, this.releaseHeldFocus =
|
|
5121
|
+
this.focusFrame = null, this.releaseHeldFocus = So(this.$refs.panel, () => this.$emit("escape"));
|
|
4744
5122
|
}));
|
|
4745
5123
|
},
|
|
4746
5124
|
releaseFocus() {
|
|
4747
5125
|
this.focusFrame !== null && (cancelAnimationFrame(this.focusFrame), this.focusFrame = null), this.releaseHeldFocus !== null && (this.releaseHeldFocus(), this.releaseHeldFocus = null);
|
|
4748
5126
|
}
|
|
4749
5127
|
}
|
|
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",
|
|
5128
|
+
}, wo = { class: "bb:min-h-screen bb:text-center" }, To = { class: "bb:fixed bb:inset-0 bb:transition-opacity" }, Eo = ["aria-labelledby"];
|
|
5129
|
+
function Do(e, n, r, o, s, l) {
|
|
5130
|
+
return p(), i("div", { class: d(["bb-dashboard-ui bb:fixed bb:inset-0 bb:overflow-y-auto bb:z-20", { "bb:pointer-events-none": !r.isOpen }]) }, [a("div", wo, [
|
|
4753
5131
|
c(t, {
|
|
4754
5132
|
"enter-active-class": "bb:ease-out bb:duration-300",
|
|
4755
5133
|
"enter-from-class": "bb:opacity-0",
|
|
@@ -4758,7 +5136,7 @@ function Va(e, n, r, o, s, l) {
|
|
|
4758
5136
|
"leave-from-class": "bb:opacity-100",
|
|
4759
5137
|
"leave-to-class": "bb:opacity-0"
|
|
4760
5138
|
}, {
|
|
4761
|
-
default:
|
|
5139
|
+
default: C(() => [w(a("div", To, [...n[0] ||= [a("div", { class: "bb:absolute bb:inset-0 bb:bg-gray-500 bb:opacity-75" }, null, -1)]], 512), [[S, r.isOpen]])]),
|
|
4762
5140
|
_: 1
|
|
4763
5141
|
}),
|
|
4764
5142
|
n[1] ||= a("span", { class: "bb:inline-block bb:align-middle bb:h-screen" }, null, -1),
|
|
@@ -4770,18 +5148,18 @@ function Va(e, n, r, o, s, l) {
|
|
|
4770
5148
|
"leave-from-class": "bb:opacity-100 bb:scale-100",
|
|
4771
5149
|
"leave-to-class": "bb:opacity-0 bb:scale-95"
|
|
4772
5150
|
}, {
|
|
4773
|
-
default:
|
|
5151
|
+
default: C(() => [w(a("div", {
|
|
4774
5152
|
ref: "panel",
|
|
4775
5153
|
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
5154
|
role: "dialog",
|
|
4777
5155
|
"aria-modal": "true",
|
|
4778
5156
|
"aria-labelledby": r.headingId
|
|
4779
|
-
}, [h(e.$slots, "default")], 8,
|
|
5157
|
+
}, [h(e.$slots, "default")], 8, Eo), [[S, r.isOpen]])]),
|
|
4780
5158
|
_: 3
|
|
4781
5159
|
})
|
|
4782
5160
|
])], 2);
|
|
4783
5161
|
}
|
|
4784
|
-
var
|
|
5162
|
+
var Oo = /*#__PURE__*/ j(Co, [["render", Do]]), ko = {}, Ao = {
|
|
4785
5163
|
class: "bb:h-7 bb:w-7 bb:text-red-600",
|
|
4786
5164
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4787
5165
|
fill: "none",
|
|
@@ -4789,35 +5167,36 @@ var Ha = /*#__PURE__*/ A(La, [["render", Va]]), Ua = {}, Wa = {
|
|
|
4789
5167
|
stroke: "currentColor",
|
|
4790
5168
|
"aria-hidden": "true"
|
|
4791
5169
|
};
|
|
4792
|
-
function
|
|
4793
|
-
return p(), i("svg",
|
|
5170
|
+
function jo(e, t, n, r, o, s) {
|
|
5171
|
+
return p(), i("svg", Ao, [...t[0] ||= [a("path", {
|
|
4794
5172
|
"stroke-linecap": "round",
|
|
4795
5173
|
"stroke-linejoin": "round",
|
|
4796
5174
|
"stroke-width": "2",
|
|
4797
5175
|
d: "M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"
|
|
4798
5176
|
}, null, -1)]]);
|
|
4799
5177
|
}
|
|
4800
|
-
var
|
|
5178
|
+
var Mo = /*#__PURE__*/ j(ko, [["render", jo]]), No = {}, Po = {
|
|
4801
5179
|
class: "bb:h-7 bb:w-7 bb:text-yellow-400",
|
|
4802
5180
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4803
5181
|
viewBox: "0 0 20 20",
|
|
4804
5182
|
fill: "currentColor",
|
|
4805
5183
|
"aria-hidden": "true"
|
|
4806
5184
|
};
|
|
4807
|
-
function
|
|
4808
|
-
return p(), i("svg",
|
|
5185
|
+
function Fo(e, t, n, r, o, s) {
|
|
5186
|
+
return p(), i("svg", Po, [...t[0] ||= [a("path", {
|
|
4809
5187
|
"fill-rule": "evenodd",
|
|
4810
5188
|
d: "M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",
|
|
4811
5189
|
"clip-rule": "evenodd"
|
|
4812
5190
|
}, null, -1)]]);
|
|
4813
5191
|
}
|
|
4814
|
-
var
|
|
5192
|
+
var Io = /*#__PURE__*/ j(No, [["render", Fo]]), Lo = {
|
|
4815
5193
|
components: {
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
|
|
5194
|
+
ActionButton: fo,
|
|
5195
|
+
Modal: Oo,
|
|
5196
|
+
Dangerous: Mo,
|
|
5197
|
+
Warning: Io
|
|
4819
5198
|
},
|
|
4820
|
-
mixins: [
|
|
5199
|
+
mixins: [P],
|
|
4821
5200
|
emits: ["actionConfirmed", "actionCanceled"],
|
|
4822
5201
|
props: {
|
|
4823
5202
|
isOpen: {
|
|
@@ -4855,108 +5234,67 @@ var Xa = /*#__PURE__*/ A(qa, [["render", Ya]]), Za = {
|
|
|
4855
5234
|
},
|
|
4856
5235
|
isWarning() {
|
|
4857
5236
|
return this.type === "warning";
|
|
5237
|
+
},
|
|
5238
|
+
actionColor() {
|
|
5239
|
+
return this.isDangerous ? "red-solid" : this.isWarning ? "yellow-solid" : null;
|
|
4858
5240
|
}
|
|
4859
5241
|
}
|
|
4860
|
-
},
|
|
4861
|
-
function
|
|
4862
|
-
let
|
|
4863
|
-
return p(), n(
|
|
5242
|
+
}, Ro = { class: "bb:flex bb:bg-white bb:rounded-t-lg bb:p-6 bb:pb-4" }, zo = { class: "bb:flex bb:items-start" }, Bo = { class: "bb:ml-4 bb:text-left" }, Vo = ["id"], Ho = { class: "bb:mt-2" }, Uo = { class: "bb:text-sm bb:text-gray-500" }, Wo = { class: "bb:bg-gray-50 bb:rounded-b-lg bb:px-6 bb:py-3 bb:flex bb:flex-row-reverse" };
|
|
5243
|
+
function Go(e, t, i, o, s, l) {
|
|
5244
|
+
let u = g("warning"), f = g("dangerous"), m = g("action-button"), h = g("modal");
|
|
5245
|
+
return p(), n(h, {
|
|
4864
5246
|
"is-open": i.isOpen,
|
|
4865
5247
|
"heading-id": o.headingId,
|
|
4866
5248
|
onEscape: t[2] ||= (t) => e.$emit("actionCanceled")
|
|
4867
5249
|
}, {
|
|
4868
|
-
default:
|
|
4869
|
-
"bb:bg-red-100":
|
|
4870
|
-
"bb:bg-yellow-100":
|
|
4871
|
-
}]) }, [
|
|
5250
|
+
default: C(() => [a("div", Ro, [a("div", zo, [a("div", { class: d(["bb:shrink-0 bb:flex bb:items-center bb:justify-center bb:h-10 bb:w-10 bb:rounded-full", {
|
|
5251
|
+
"bb:bg-red-100": l.isDangerous,
|
|
5252
|
+
"bb:bg-yellow-100": l.isWarning
|
|
5253
|
+
}]) }, [l.isWarning ? (p(), n(u, { key: 0 })) : r("", !0), l.isDangerous ? (p(), n(f, { key: 1 })) : r("", !0)], 2), a("div", Bo, [a("h3", {
|
|
4872
5254
|
class: "bb:text-lg bb:leading-6 bb:font-medium bb:text-gray-900",
|
|
4873
5255
|
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",
|
|
5256
|
+
}, y(i.confirmationHeading), 9, Vo), a("div", Ho, [a("p", Uo, y(i.confirmationText), 1)])])])]), a("div", Wo, [c(m, {
|
|
5257
|
+
class: "bb:ml-3",
|
|
5258
|
+
label: i.actionButtonText,
|
|
5259
|
+
color: l.actionColor,
|
|
5260
|
+
onClick: t[0] ||= E((t) => e.$emit("actionConfirmed"), ["prevent"])
|
|
5261
|
+
}, null, 8, ["label", "color"]), c(m, {
|
|
5262
|
+
class: "bb:ml-3",
|
|
5263
|
+
label: i.cancelButtonText ?? e.texts.cancel,
|
|
4884
5264
|
"data-dialog-focus": "",
|
|
4885
|
-
onClick: t[1] ||=
|
|
4886
|
-
},
|
|
5265
|
+
onClick: t[1] ||= E((t) => e.$emit("actionCanceled"), ["prevent"])
|
|
5266
|
+
}, null, 8, ["label"])])]),
|
|
4887
5267
|
_: 1
|
|
4888
5268
|
}, 8, ["is-open", "heading-id"]);
|
|
4889
5269
|
}
|
|
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
|
-
}
|
|
5270
|
+
var Ko = /*#__PURE__*/ j(Lo, [["render", Go]]);
|
|
4911
5271
|
//#endregion
|
|
4912
5272
|
//#region src/menuItems.js
|
|
4913
|
-
function
|
|
4914
|
-
if (typeof e != "object" || !e || typeof e.label != "string" || e.label === "" || e.color !== void 0 && !
|
|
5273
|
+
function qo(e) {
|
|
5274
|
+
if (typeof e != "object" || !e || typeof e.label != "string" || e.label === "" || e.color !== void 0 && !k(e.color) || e.icon !== void 0 && !Z(e.icon)) return !1;
|
|
4915
5275
|
let t = typeof e.href == "string" && e.href !== "" && e.onSelect === void 0, n = typeof e.onSelect == "function" && e.href === void 0;
|
|
4916
5276
|
return t || n;
|
|
4917
5277
|
}
|
|
4918
|
-
function
|
|
5278
|
+
function Jo(e) {
|
|
4919
5279
|
return Array.isArray(e) ? e.filter((e) => typeof e == "object" && !!e) : [];
|
|
4920
5280
|
}
|
|
4921
|
-
function
|
|
5281
|
+
function Yo(e) {
|
|
4922
5282
|
return typeof e.href == "string" && e.href !== "";
|
|
4923
5283
|
}
|
|
4924
|
-
function
|
|
4925
|
-
return
|
|
5284
|
+
function Xo(e) {
|
|
5285
|
+
return k(e.color) ? e.color : null;
|
|
4926
5286
|
}
|
|
4927
|
-
function
|
|
4928
|
-
return
|
|
5287
|
+
function Zo(e) {
|
|
5288
|
+
return Z(e.icon) ? e.icon : null;
|
|
4929
5289
|
}
|
|
4930
5290
|
//#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 = {
|
|
5291
|
+
//#region src/components/PopoverMenu.vue
|
|
5292
|
+
var Qo = {
|
|
4955
5293
|
components: {
|
|
4956
|
-
ActionIcon:
|
|
4957
|
-
PopoverPanel:
|
|
5294
|
+
ActionIcon: io,
|
|
5295
|
+
PopoverPanel: z
|
|
4958
5296
|
},
|
|
4959
|
-
mixins: [Q,
|
|
5297
|
+
mixins: [Q, A],
|
|
4960
5298
|
emits: ["update:modelValue"],
|
|
4961
5299
|
props: {
|
|
4962
5300
|
actions: { default: () => [] },
|
|
@@ -4967,24 +5305,24 @@ var xo = /*#__PURE__*/ A(yo, [["render", bo]]), So = {
|
|
|
4967
5305
|
},
|
|
4968
5306
|
computed: {
|
|
4969
5307
|
actionItems() {
|
|
4970
|
-
return
|
|
5308
|
+
return Jo(this.actions);
|
|
4971
5309
|
},
|
|
4972
5310
|
hasActions() {
|
|
4973
5311
|
return this.actionItems.length > 0;
|
|
4974
5312
|
},
|
|
4975
5313
|
hasIcons() {
|
|
4976
|
-
return this.actionItems.some((e) =>
|
|
5314
|
+
return this.actionItems.some((e) => Zo(e) !== null);
|
|
4977
5315
|
}
|
|
4978
5316
|
},
|
|
4979
5317
|
methods: {
|
|
4980
5318
|
color(e) {
|
|
4981
|
-
return
|
|
5319
|
+
return Xo(e);
|
|
4982
5320
|
},
|
|
4983
5321
|
icon(e) {
|
|
4984
|
-
return
|
|
5322
|
+
return Zo(e);
|
|
4985
5323
|
},
|
|
4986
5324
|
isLink(e) {
|
|
4987
|
-
return
|
|
5325
|
+
return Yo(e);
|
|
4988
5326
|
},
|
|
4989
5327
|
linkClicked(e, t) {
|
|
4990
5328
|
e.currentTarget.focus({ preventScroll: !0 }), this.followLink(e, t);
|
|
@@ -4993,8 +5331,8 @@ var xo = /*#__PURE__*/ A(yo, [["render", bo]]), So = {
|
|
|
4993
5331
|
if (t.currentTarget.focus({ preventScroll: !0 }), typeof e.onSelect == "function") return e.onSelect();
|
|
4994
5332
|
}
|
|
4995
5333
|
}
|
|
4996
|
-
},
|
|
4997
|
-
function
|
|
5334
|
+
}, $o = ["href", "onClick"], es = ["textContent"], ts = ["onClick"], ns = ["textContent"];
|
|
5335
|
+
function rs(t, o, s, c, l, u) {
|
|
4998
5336
|
let f = g("action-icon"), _ = g("popover-panel");
|
|
4999
5337
|
return p(), n(_, {
|
|
5000
5338
|
"model-value": s.modelValue,
|
|
@@ -5008,11 +5346,11 @@ function Do(t, o, s, c, l, u) {
|
|
|
5008
5346
|
"panel-role": "menu",
|
|
5009
5347
|
"onUpdate:modelValue": o[0] ||= (e) => t.$emit("update:modelValue", e)
|
|
5010
5348
|
}, {
|
|
5011
|
-
trigger:
|
|
5349
|
+
trigger: C((e) => [h(t.$slots, "trigger", {
|
|
5012
5350
|
id: e.id,
|
|
5013
5351
|
popovertarget: e.popovertarget
|
|
5014
5352
|
})]),
|
|
5015
|
-
default:
|
|
5353
|
+
default: C(() => [(p(!0), i(e, null, m(u.actionItems, (o, s) => (p(), i(e, { key: s }, [u.isLink(o) ? (p(), i("a", {
|
|
5016
5354
|
key: 0,
|
|
5017
5355
|
href: o.href,
|
|
5018
5356
|
role: "menuitem",
|
|
@@ -5024,7 +5362,7 @@ function Do(t, o, s, c, l, u) {
|
|
|
5024
5362
|
}, null, 8, ["name"])) : r("", !0), a("span", {
|
|
5025
5363
|
class: "bb:min-w-0 bb:truncate bb:pointer-events-none bb:cursor-default",
|
|
5026
5364
|
textContent: y(o.label)
|
|
5027
|
-
}, null, 8,
|
|
5365
|
+
}, null, 8, es)], 10, $o)) : (p(), i("button", {
|
|
5028
5366
|
key: 1,
|
|
5029
5367
|
type: "button",
|
|
5030
5368
|
role: "menuitem",
|
|
@@ -5036,26 +5374,26 @@ function Do(t, o, s, c, l, u) {
|
|
|
5036
5374
|
}, null, 8, ["name"])) : r("", !0), a("span", {
|
|
5037
5375
|
class: "bb:min-w-0 bb:truncate bb:pointer-events-none bb:cursor-default",
|
|
5038
5376
|
textContent: y(o.label)
|
|
5039
|
-
}, null, 8,
|
|
5377
|
+
}, null, 8, ns)], 10, ts))], 64))), 128))]),
|
|
5040
5378
|
_: 3
|
|
5041
5379
|
}, 8, ["model-value", "has-content"]);
|
|
5042
5380
|
}
|
|
5043
|
-
var
|
|
5381
|
+
var is = /*#__PURE__*/ j(Qo, [["render", rs]]), as = {
|
|
5044
5382
|
components: {
|
|
5045
|
-
|
|
5046
|
-
PopoverMenu:
|
|
5383
|
+
ActionButton: fo,
|
|
5384
|
+
PopoverMenu: is
|
|
5047
5385
|
},
|
|
5048
5386
|
mixins: [
|
|
5049
|
-
|
|
5387
|
+
P,
|
|
5050
5388
|
Q,
|
|
5051
|
-
|
|
5389
|
+
A
|
|
5052
5390
|
],
|
|
5053
5391
|
emits: ["update:modelValue"],
|
|
5054
5392
|
props: {
|
|
5055
5393
|
actions: {
|
|
5056
5394
|
type: Array,
|
|
5057
5395
|
default: () => [],
|
|
5058
|
-
validator: (e) => e.every(
|
|
5396
|
+
validator: (e) => e.every(qo)
|
|
5059
5397
|
},
|
|
5060
5398
|
modelValue: {
|
|
5061
5399
|
type: Boolean,
|
|
@@ -5067,7 +5405,7 @@ var Oo = /*#__PURE__*/ A(So, [["render", Do]]), ko = {
|
|
|
5067
5405
|
},
|
|
5068
5406
|
computed: {
|
|
5069
5407
|
items() {
|
|
5070
|
-
return
|
|
5408
|
+
return Jo(this.actions);
|
|
5071
5409
|
},
|
|
5072
5410
|
hasActions() {
|
|
5073
5411
|
return this.items.length > 0;
|
|
@@ -5076,10 +5414,10 @@ var Oo = /*#__PURE__*/ A(So, [["render", Do]]), ko = {
|
|
|
5076
5414
|
return this.items[0];
|
|
5077
5415
|
},
|
|
5078
5416
|
mainColor() {
|
|
5079
|
-
return this.hasActions ?
|
|
5417
|
+
return this.hasActions ? Xo(this.mainAction) : null;
|
|
5080
5418
|
},
|
|
5081
5419
|
mainIcon() {
|
|
5082
|
-
return this.hasActions ?
|
|
5420
|
+
return this.hasActions ? Zo(this.mainAction) : null;
|
|
5083
5421
|
},
|
|
5084
5422
|
menuActions() {
|
|
5085
5423
|
return this.items.slice(1);
|
|
@@ -5101,7 +5439,7 @@ var Oo = /*#__PURE__*/ A(So, [["render", Do]]), ko = {
|
|
|
5101
5439
|
},
|
|
5102
5440
|
methods: {
|
|
5103
5441
|
isLink(e) {
|
|
5104
|
-
return
|
|
5442
|
+
return Yo(e);
|
|
5105
5443
|
},
|
|
5106
5444
|
select(e) {
|
|
5107
5445
|
if (typeof e.onSelect == "function") return e.onSelect();
|
|
@@ -5110,52 +5448,37 @@ var Oo = /*#__PURE__*/ A(So, [["render", Do]]), ko = {
|
|
|
5110
5448
|
this.menuIsOpen = e, this.$emit("update:modelValue", e);
|
|
5111
5449
|
}
|
|
5112
5450
|
}
|
|
5113
|
-
},
|
|
5451
|
+
}, os = {
|
|
5114
5452
|
key: 0,
|
|
5115
5453
|
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, {
|
|
5454
|
+
}, ss = ["id", "popovertarget"], cs = { class: "bb:sr-only bb:pointer-events-none bb:cursor-default" };
|
|
5455
|
+
function ls(e, t, n, o, s, l) {
|
|
5456
|
+
let u = g("action-button"), f = g("popover-menu");
|
|
5457
|
+
return l.hasActions ? (p(), i("span", os, [c(u, {
|
|
5458
|
+
label: l.mainAction.label,
|
|
5459
|
+
color: l.mainColor,
|
|
5460
|
+
icon: l.mainIcon,
|
|
5461
|
+
href: l.isLink(l.mainAction) ? l.mainAction.href : null,
|
|
5462
|
+
class: d(["bb:shadow-none! bb:focus:z-10", { "bb:rounded-r-none!": l.hasMenu }]),
|
|
5463
|
+
onClick: t[0] ||= (e) => l.select(l.mainAction)
|
|
5464
|
+
}, null, 8, [
|
|
5465
|
+
"label",
|
|
5466
|
+
"color",
|
|
5467
|
+
"icon",
|
|
5468
|
+
"href",
|
|
5469
|
+
"class"
|
|
5470
|
+
]), c(f, {
|
|
5148
5471
|
class: "bb:-ml-px bb:flex",
|
|
5149
|
-
actions:
|
|
5150
|
-
"model-value":
|
|
5151
|
-
"onUpdate:modelValue":
|
|
5472
|
+
actions: l.menuActions,
|
|
5473
|
+
"model-value": n.modelValue,
|
|
5474
|
+
"onUpdate:modelValue": l.onMenuToggle
|
|
5152
5475
|
}, {
|
|
5153
|
-
trigger:
|
|
5476
|
+
trigger: C((n) => [a("button", {
|
|
5154
5477
|
type: "button",
|
|
5155
5478
|
id: n.id,
|
|
5156
5479
|
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",
|
|
5480
|
+
class: d(["bb:relative bb:inline-flex bb:items-center bb:px-2 bb:py-2 bb:rounded-r-md bb:border bb:text-sm bb:font-medium bb:focus:z-10 bb:focus:focus-ring", l.mainColor === null ? "bb:bg-white bb:border-gray-300 bb:text-gray-500 bb:hover:bg-gray-50" : [e.colorClass(l.mainColor, "button"), e.colorClass(l.mainColor, "buttonHover")]])
|
|
5481
|
+
}, [a("span", cs, y(e.texts.openMenu), 1), t[1] ||= a("svg", {
|
|
5159
5482
|
class: "bb:h-5 bb:w-5 bb:pointer-events-none bb:cursor-default",
|
|
5160
5483
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5161
5484
|
viewBox: "0 0 20 20",
|
|
@@ -5165,7 +5488,7 @@ function Io(e, t, o, s, l, u) {
|
|
|
5165
5488
|
"fill-rule": "evenodd",
|
|
5166
5489
|
d: "M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",
|
|
5167
5490
|
"clip-rule": "evenodd"
|
|
5168
|
-
})], -1)], 10,
|
|
5491
|
+
})], -1)], 10, ss)]),
|
|
5169
5492
|
_: 1
|
|
5170
5493
|
}, 8, [
|
|
5171
5494
|
"actions",
|
|
@@ -5173,27 +5496,27 @@ function Io(e, t, o, s, l, u) {
|
|
|
5173
5496
|
"onUpdate:modelValue"
|
|
5174
5497
|
])])) : r("", !0);
|
|
5175
5498
|
}
|
|
5176
|
-
var
|
|
5177
|
-
components: { PopoverMenu:
|
|
5178
|
-
mixins: [
|
|
5499
|
+
var us = /*#__PURE__*/ j(as, [["render", ls]]), ds = {
|
|
5500
|
+
components: { PopoverMenu: is },
|
|
5501
|
+
mixins: [P],
|
|
5179
5502
|
props: { actions: {
|
|
5180
5503
|
type: Array,
|
|
5181
5504
|
default: () => [],
|
|
5182
|
-
validator: (e) => e.every(
|
|
5505
|
+
validator: (e) => e.every(qo)
|
|
5183
5506
|
} }
|
|
5184
|
-
},
|
|
5185
|
-
function
|
|
5507
|
+
}, fs = ["id", "popovertarget"], ps = { class: "bb:sr-only bb:pointer-events-none bb:cursor-default" };
|
|
5508
|
+
function ms(e, t, r, i, o, s) {
|
|
5186
5509
|
let c = g("popover-menu");
|
|
5187
5510
|
return p(), n(c, {
|
|
5188
5511
|
class: "bb-dashboard-ui bb:inline-flex",
|
|
5189
5512
|
actions: r.actions
|
|
5190
5513
|
}, {
|
|
5191
|
-
trigger:
|
|
5514
|
+
trigger: C((n) => [a("button", {
|
|
5192
5515
|
type: "button",
|
|
5193
5516
|
id: n.id,
|
|
5194
5517
|
popovertarget: n.popovertarget,
|
|
5195
5518
|
class: "bb:relative bb:inline-flex bb:items-center bb:justify-center bb:p-2 bb:rounded-md bb:text-gray-400 bb:hover:text-gray-500 bb:hover:bg-gray-100 bb:focus:outline-hidden bb:focus:bg-gray-100 bb:focus:text-gray-500 bb:transition bb:duration-150 bb:ease-in-out"
|
|
5196
|
-
}, [a("span",
|
|
5519
|
+
}, [a("span", ps, y(e.texts.openMenu), 1), t[0] ||= a("svg", {
|
|
5197
5520
|
class: "bb:h-6 bb:w-6 bb:pointer-events-none bb:cursor-default",
|
|
5198
5521
|
fill: "none",
|
|
5199
5522
|
viewBox: "0 0 24 24",
|
|
@@ -5204,48 +5527,48 @@ function Vo(e, t, r, i, o, s) {
|
|
|
5204
5527
|
"stroke-linejoin": "round",
|
|
5205
5528
|
"stroke-width": "2",
|
|
5206
5529
|
d: "M4 6h16M4 12h16M4 18h16"
|
|
5207
|
-
})], -1)], 8,
|
|
5530
|
+
})], -1)], 8, fs)]),
|
|
5208
5531
|
_: 1
|
|
5209
5532
|
}, 8, ["actions"]);
|
|
5210
5533
|
}
|
|
5211
|
-
var
|
|
5534
|
+
var hs = /*#__PURE__*/ j(ds, [["render", ms]]), gs = {}, _s = {
|
|
5212
5535
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5213
5536
|
viewBox: "0 0 20 20",
|
|
5214
5537
|
fill: "currentColor",
|
|
5215
5538
|
"aria-hidden": "true"
|
|
5216
5539
|
};
|
|
5217
|
-
function
|
|
5218
|
-
return p(), i("svg",
|
|
5540
|
+
function vs(e, t, n, r, o, s) {
|
|
5541
|
+
return p(), i("svg", _s, [...t[0] ||= [a("path", {
|
|
5219
5542
|
"fill-rule": "evenodd",
|
|
5220
5543
|
"clip-rule": "evenodd",
|
|
5221
5544
|
d: "M7.707 14.707a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l2.293 2.293a1 1 0 010 1.414z"
|
|
5222
5545
|
}, null, -1)]]);
|
|
5223
5546
|
}
|
|
5224
|
-
var
|
|
5547
|
+
var ys = /*#__PURE__*/ j(gs, [["render", vs]]), bs = {}, xs = {
|
|
5225
5548
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5226
5549
|
viewBox: "0 0 20 20",
|
|
5227
5550
|
fill: "currentColor",
|
|
5228
5551
|
"aria-hidden": "true"
|
|
5229
5552
|
};
|
|
5230
|
-
function
|
|
5231
|
-
return p(), i("svg",
|
|
5553
|
+
function Ss(e, t, n, r, o, s) {
|
|
5554
|
+
return p(), i("svg", xs, [...t[0] ||= [a("path", {
|
|
5232
5555
|
"fill-rule": "evenodd",
|
|
5233
5556
|
"clip-rule": "evenodd",
|
|
5234
5557
|
d: "M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z"
|
|
5235
5558
|
}, null, -1)]]);
|
|
5236
5559
|
}
|
|
5237
|
-
var
|
|
5560
|
+
var Cs = /*#__PURE__*/ j(bs, [["render", Ss]]);
|
|
5238
5561
|
//#endregion
|
|
5239
5562
|
//#region src/components/Pagination.vue
|
|
5240
|
-
function
|
|
5563
|
+
function ws(e) {
|
|
5241
5564
|
return typeof e == "string" && e !== "" ? e : null;
|
|
5242
5565
|
}
|
|
5243
|
-
var
|
|
5566
|
+
var Ts = {
|
|
5244
5567
|
components: {
|
|
5245
|
-
ArrowNarrowLeft:
|
|
5246
|
-
ArrowNarrowRight:
|
|
5568
|
+
ArrowNarrowLeft: ys,
|
|
5569
|
+
ArrowNarrowRight: Cs
|
|
5247
5570
|
},
|
|
5248
|
-
mixins: [
|
|
5571
|
+
mixins: [P, Q],
|
|
5249
5572
|
props: {
|
|
5250
5573
|
links: {
|
|
5251
5574
|
type: Object,
|
|
@@ -5273,49 +5596,49 @@ var Qo = {
|
|
|
5273
5596
|
return typeof this.from == "number" && typeof this.to == "number";
|
|
5274
5597
|
},
|
|
5275
5598
|
previousPageUrl() {
|
|
5276
|
-
return
|
|
5599
|
+
return ws(this.links?.prev);
|
|
5277
5600
|
},
|
|
5278
5601
|
nextPageUrl() {
|
|
5279
|
-
return
|
|
5602
|
+
return ws(this.links?.next);
|
|
5280
5603
|
}
|
|
5281
5604
|
}
|
|
5282
|
-
},
|
|
5605
|
+
}, Es = {
|
|
5283
5606
|
key: 0,
|
|
5284
5607
|
class: "bb-dashboard-ui bb:flex bb:items-center bb:justify-between"
|
|
5285
|
-
},
|
|
5608
|
+
}, Ds = { class: "bb:-mt-px bb:w-0 bb:flex-1 bb:flex" }, Os = ["href"], ks = {
|
|
5286
5609
|
key: 0,
|
|
5287
5610
|
class: "bb:-mt-px bb:flex bb:text-gray-400 bb:text-sm bb:leading-5"
|
|
5288
|
-
},
|
|
5289
|
-
function
|
|
5611
|
+
}, As = { class: "bb:font-medium bb:text-gray-900 bb:mx-1" }, js = { class: "bb:font-medium bb:text-gray-900 bb:mx-1" }, Ms = { class: "bb:-mt-px bb:w-0 bb:flex-1 bb:flex bb:justify-end" }, Ns = ["href"];
|
|
5612
|
+
function Ps(e, t, n, o, l, u) {
|
|
5290
5613
|
let d = g("arrow-narrow-left"), f = g("arrow-narrow-right");
|
|
5291
|
-
return u.hasResults ? (p(), i("nav",
|
|
5292
|
-
a("div",
|
|
5614
|
+
return u.hasResults ? (p(), i("nav", Es, [
|
|
5615
|
+
a("div", Ds, [u.previousPageUrl === null ? r("", !0) : (p(), i("a", {
|
|
5293
5616
|
key: 0,
|
|
5294
5617
|
href: u.previousPageUrl,
|
|
5295
5618
|
class: "bb:border-t-2 bb:border-transparent bb:pt-4 bb:pr-1 bb:inline-flex bb:items-center bb:text-sm bb:font-medium bb:text-gray-500 bb:hover:text-gray-700 bb:hover:border-indigo-700 bb:focus-visible:focus-ring",
|
|
5296
5619
|
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",
|
|
5620
|
+
}, [c(d, { class: "bb:mr-3 bb:h-5 bb:w-5 bb:text-gray-400 bb:pointer-events-none bb:cursor-default" }), s(" " + y(e.texts.previousPage), 1)], 8, Os))]),
|
|
5621
|
+
u.hasRange ? (p(), i("div", ks, [
|
|
5299
5622
|
s(y(e.texts.resultsBefore) + " ", 1),
|
|
5300
|
-
a("span",
|
|
5623
|
+
a("span", As, y(u.from) + " - " + y(u.to), 1),
|
|
5301
5624
|
s(" " + y(e.texts.resultsOf) + " ", 1),
|
|
5302
|
-
a("span",
|
|
5625
|
+
a("span", js, y(u.total), 1),
|
|
5303
5626
|
s(" " + y(e.texts.resultsAfter), 1)
|
|
5304
5627
|
])) : r("", !0),
|
|
5305
|
-
a("div",
|
|
5628
|
+
a("div", Ms, [u.nextPageUrl === null ? r("", !0) : (p(), i("a", {
|
|
5306
5629
|
key: 0,
|
|
5307
5630
|
href: u.nextPageUrl,
|
|
5308
5631
|
class: "bb:border-t-2 bb:border-transparent bb:pt-4 bb:pl-1 bb:inline-flex bb:items-center bb:text-sm bb:font-medium bb:text-gray-500 bb:hover:text-gray-700 bb:hover:border-indigo-700 bb:focus-visible:focus-ring",
|
|
5309
5632
|
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,
|
|
5633
|
+
}, [s(y(e.texts.nextPage) + " ", 1), c(f, { class: "bb:ml-3 bb:h-5 bb:w-5 bb:text-gray-400 bb:pointer-events-none bb:cursor-default" })], 8, Ns))])
|
|
5311
5634
|
])) : r("", !0);
|
|
5312
5635
|
}
|
|
5313
|
-
var
|
|
5636
|
+
var Fs = /*#__PURE__*/ j(Ts, [["render", Ps]]), Is = [
|
|
5314
5637
|
"left",
|
|
5315
5638
|
"center",
|
|
5316
5639
|
"right"
|
|
5317
5640
|
];
|
|
5318
|
-
function
|
|
5641
|
+
function Ls(e) {
|
|
5319
5642
|
if (typeof e != "object" || !e || typeof e.key != "string" || e.key === "") return null;
|
|
5320
5643
|
let t = e.key;
|
|
5321
5644
|
return {
|
|
@@ -5324,21 +5647,21 @@ function us(e) {
|
|
|
5324
5647
|
value: typeof e.value == "function" ? e.value : (e) => e?.[t],
|
|
5325
5648
|
secondary: typeof e.secondary == "function" ? e.secondary : null,
|
|
5326
5649
|
muted: e.muted === !0,
|
|
5327
|
-
align:
|
|
5650
|
+
align: Is.includes(e.align) ? e.align : "left",
|
|
5328
5651
|
wrap: e.wrap === !0,
|
|
5329
5652
|
narrow: e.narrow === !0,
|
|
5330
5653
|
visible: e.visible !== !1
|
|
5331
5654
|
};
|
|
5332
5655
|
}
|
|
5333
|
-
function
|
|
5656
|
+
function Rs(e) {
|
|
5334
5657
|
return typeof e == "string" && e !== "" ? e : null;
|
|
5335
5658
|
}
|
|
5336
|
-
var
|
|
5659
|
+
var zs = {
|
|
5337
5660
|
components: {
|
|
5338
|
-
Pagination:
|
|
5339
|
-
InfoPill:
|
|
5661
|
+
Pagination: Fs,
|
|
5662
|
+
InfoPill: ia
|
|
5340
5663
|
},
|
|
5341
|
-
mixins: [
|
|
5664
|
+
mixins: [P, A],
|
|
5342
5665
|
props: {
|
|
5343
5666
|
rows: {
|
|
5344
5667
|
type: Array,
|
|
@@ -5383,7 +5706,7 @@ var fs = {
|
|
|
5383
5706
|
return Array.isArray(this.rows) ? this.rows : [];
|
|
5384
5707
|
},
|
|
5385
5708
|
visibleColumns() {
|
|
5386
|
-
return (Array.isArray(this.columns) ? this.columns : []).map(
|
|
5709
|
+
return (Array.isArray(this.columns) ? this.columns : []).map(Ls).filter((e) => e !== null && e.visible);
|
|
5387
5710
|
},
|
|
5388
5711
|
rowStripes() {
|
|
5389
5712
|
return this.normalizedRows.map((e) => this.stripeOf(e));
|
|
@@ -5402,10 +5725,10 @@ var fs = {
|
|
|
5402
5725
|
},
|
|
5403
5726
|
badgeText() {
|
|
5404
5727
|
if (this.hasRecords) {
|
|
5405
|
-
let e =
|
|
5728
|
+
let e = Rs(this.foundText);
|
|
5406
5729
|
return e === null ? null : `${e}: ${this.recordCount}`;
|
|
5407
5730
|
}
|
|
5408
|
-
return
|
|
5731
|
+
return Rs(this.emptyText);
|
|
5409
5732
|
}
|
|
5410
5733
|
},
|
|
5411
5734
|
methods: {
|
|
@@ -5425,15 +5748,15 @@ var fs = {
|
|
|
5425
5748
|
stripeOf(e) {
|
|
5426
5749
|
if (typeof this.rowStripe != "function") return null;
|
|
5427
5750
|
let t = this.rowStripe(e);
|
|
5428
|
-
return
|
|
5751
|
+
return k(t) ? t : null;
|
|
5429
5752
|
},
|
|
5430
5753
|
textOf(e, t) {
|
|
5431
5754
|
let n = e(t);
|
|
5432
5755
|
return n == null ? "" : String(n);
|
|
5433
5756
|
}
|
|
5434
5757
|
}
|
|
5435
|
-
},
|
|
5436
|
-
function
|
|
5758
|
+
}, Bs = { class: "bb:min-w-full bb:divide-y bb:divide-gray-200 bb:border-collapse" }, Vs = { class: "bb:bg-gray-50" }, Hs = ["textContent"], Us = { class: "bb:divide-y bb:divide-gray-200" }, Ws = ["textContent"], Gs = ["textContent"];
|
|
5759
|
+
function Ks(t, o, s, c, l, u) {
|
|
5437
5760
|
let f = g("info-pill"), _ = g("pagination");
|
|
5438
5761
|
return p(), i("div", null, [
|
|
5439
5762
|
u.hasBadgeRow() ? (p(), i("div", {
|
|
@@ -5442,12 +5765,12 @@ function ys(t, o, s, c, l, u) {
|
|
|
5442
5765
|
}, [u.badgeText === null ? r("", !0) : (p(), n(f, {
|
|
5443
5766
|
key: 0,
|
|
5444
5767
|
text: u.badgeText,
|
|
5445
|
-
color: "indigo"
|
|
5768
|
+
color: "indigo-pale"
|
|
5446
5769
|
}, null, 8, ["text"])), u.hasRecords ? h(t.$slots, "results-actions", {}, void 0, void 0, 1) : r("", !0)], 2)) : r("", !0),
|
|
5447
5770
|
u.normalizedRows.length > 0 ? (p(), i("div", {
|
|
5448
5771
|
key: 1,
|
|
5449
5772
|
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",
|
|
5773
|
+
}, [a("div", { class: d(["bb:overflow-x-auto", u.isCard ? "bb:border-t bb:border-gray-200" : "bb:shadow-sm bb:border-b bb:border-gray-200 bb:rounded-lg"]) }, [a("table", Bs, [a("thead", null, [a("tr", Vs, [(p(!0), i(e, null, m(u.visibleColumns, (e) => (p(), i("th", {
|
|
5451
5774
|
key: e.key,
|
|
5452
5775
|
scope: "col",
|
|
5453
5776
|
class: d(["bb:px-6 bb:py-3 bb:text-xs bb:leading-4 bb:font-medium bb:text-gray-500 bb:uppercase bb:tracking-wider bb:whitespace-nowrap", [{
|
|
@@ -5456,7 +5779,7 @@ function ys(t, o, s, c, l, u) {
|
|
|
5456
5779
|
"bb:text-right": e.align === "right"
|
|
5457
5780
|
}, { "bb:w-px": e.narrow }]]),
|
|
5458
5781
|
textContent: y(e.label)
|
|
5459
|
-
}, null, 10,
|
|
5782
|
+
}, null, 10, Hs))), 128))])]), a("tbody", Us, [(p(!0), i(e, null, m(u.normalizedRows, (n, o) => (p(), i("tr", {
|
|
5460
5783
|
key: u.keyOf(n, o),
|
|
5461
5784
|
class: "bb:bg-white bb:even:bg-gray-50"
|
|
5462
5785
|
}, [(p(!0), i(e, null, m(u.visibleColumns, (e, s) => (p(), i("td", {
|
|
@@ -5480,11 +5803,11 @@ function ys(t, o, s, c, l, u) {
|
|
|
5480
5803
|
}, () => [a("div", {
|
|
5481
5804
|
class: d(["bb:font-medium", e.muted ? "bb:text-gray-400" : "bb:text-gray-900"]),
|
|
5482
5805
|
textContent: y(u.textOf(e.value, n))
|
|
5483
|
-
}, null, 10,
|
|
5806
|
+
}, null, 10, Ws), e.secondary !== null && u.textOf(e.secondary, n) !== "" ? (p(), i("div", {
|
|
5484
5807
|
key: 0,
|
|
5485
5808
|
class: "bb:text-gray-400",
|
|
5486
5809
|
textContent: y(u.textOf(e.secondary, n))
|
|
5487
|
-
}, null, 8,
|
|
5810
|
+
}, null, 8, Gs)) : r("", !0)])], 2))), 128))]))), 128))])])], 2)], 2)) : r("", !0),
|
|
5488
5811
|
u.hasMeta ? (p(), n(_, {
|
|
5489
5812
|
key: 2,
|
|
5490
5813
|
meta: s.meta,
|
|
@@ -5499,7 +5822,7 @@ function ys(t, o, s, c, l, u) {
|
|
|
5499
5822
|
])) : r("", !0)
|
|
5500
5823
|
]);
|
|
5501
5824
|
}
|
|
5502
|
-
var
|
|
5825
|
+
var qs = /*#__PURE__*/ j(zs, [["render", Ks]]), Js = {
|
|
5503
5826
|
mixins: [Q],
|
|
5504
5827
|
props: {
|
|
5505
5828
|
url: {
|
|
@@ -5515,17 +5838,65 @@ var bs = /*#__PURE__*/ A(fs, [["render", ys]]), xs = {
|
|
|
5515
5838
|
default: !1
|
|
5516
5839
|
}
|
|
5517
5840
|
}
|
|
5518
|
-
},
|
|
5519
|
-
function
|
|
5841
|
+
}, Ys = ["href", "textContent"];
|
|
5842
|
+
function Xs(e, t, n, r, a, o) {
|
|
5520
5843
|
return p(), i("a", {
|
|
5521
5844
|
href: n.url,
|
|
5522
5845
|
class: d([n.isActive ? "bb:border-indigo-400 bb:text-gray-600 bb:focus:border-indigo-700" : "bb:border-transparent bb:text-gray-500 bb:hover:text-gray-600 bb:hover:border-gray-300 bb:focus:text-gray-700 bb:focus:border-gray-300", "bb-dashboard-ui bb:inline-flex bb:items-center bb:px-1 bb:pt-1 bb:border-b-2 bb:text-sm bb:font-medium bb:leading-5 bb:focus:outline-hidden bb:transition bb:duration-150 bb:ease-in-out"]),
|
|
5523
5846
|
onClick: t[0] ||= (t) => e.followLink(t, n.url),
|
|
5524
5847
|
textContent: y(n.name)
|
|
5525
|
-
}, null, 10,
|
|
5848
|
+
}, null, 10, Ys);
|
|
5526
5849
|
}
|
|
5527
|
-
var
|
|
5528
|
-
|
|
5850
|
+
var Zs = /*#__PURE__*/ j(Js, [["render", Xs]]), Qs = {
|
|
5851
|
+
components: {
|
|
5852
|
+
HamburgerMenu: hs,
|
|
5853
|
+
NavigationMenuElement: Zs
|
|
5854
|
+
},
|
|
5855
|
+
mixins: [P],
|
|
5856
|
+
props: {
|
|
5857
|
+
items: {
|
|
5858
|
+
type: Array,
|
|
5859
|
+
default: () => []
|
|
5860
|
+
},
|
|
5861
|
+
activeKey: {
|
|
5862
|
+
type: String,
|
|
5863
|
+
default: null
|
|
5864
|
+
},
|
|
5865
|
+
actions: {
|
|
5866
|
+
type: Array,
|
|
5867
|
+
default: () => []
|
|
5868
|
+
}
|
|
5869
|
+
},
|
|
5870
|
+
computed: { itemList() {
|
|
5871
|
+
return Array.isArray(this.items) ? this.items.filter((e) => typeof e == "object" && !!e) : [];
|
|
5872
|
+
} }
|
|
5873
|
+
}, $s = ["aria-label"], ec = { class: "bb:flex bb:h-16 bb:justify-between bb:px-8" }, tc = { class: "bb:flex" }, nc = {
|
|
5874
|
+
key: 0,
|
|
5875
|
+
class: "bb:flex bb:shrink-0 bb:items-center bb:mr-8"
|
|
5876
|
+
}, rc = { class: "bb:flex bb:gap-8 bb:whitespace-nowrap" }, ic = { class: "bb:flex bb:items-center bb:ml-6" };
|
|
5877
|
+
function ac(t, o, s, l, u, d) {
|
|
5878
|
+
let f = g("navigation-menu-element"), _ = g("hamburger-menu");
|
|
5879
|
+
return p(), i("nav", {
|
|
5880
|
+
class: "bb-dashboard-ui bb:bg-white bb:shadow-sm",
|
|
5881
|
+
"aria-label": t.texts.sections
|
|
5882
|
+
}, [a("div", ec, [a("div", tc, [t.$slots.logo ? (p(), i("div", nc, [h(t.$slots, "logo")])) : r("", !0), a("div", rc, [(p(!0), i(e, null, m(d.itemList, (e) => (p(), n(f, {
|
|
5883
|
+
key: e.key,
|
|
5884
|
+
name: e.name,
|
|
5885
|
+
url: e.url,
|
|
5886
|
+
"is-active": e.key === s.activeKey,
|
|
5887
|
+
"aria-current": e.key === s.activeKey ? "page" : null
|
|
5888
|
+
}, null, 8, [
|
|
5889
|
+
"name",
|
|
5890
|
+
"url",
|
|
5891
|
+
"is-active",
|
|
5892
|
+
"aria-current"
|
|
5893
|
+
]))), 128))])]), a("div", ic, [c(_, {
|
|
5894
|
+
actions: s.actions,
|
|
5895
|
+
lang: t.lang
|
|
5896
|
+
}, null, 8, ["actions", "lang"])])])], 8, $s);
|
|
5897
|
+
}
|
|
5898
|
+
var oc = /*#__PURE__*/ j(Qs, [["render", ac]]), sc = {
|
|
5899
|
+
mixins: [P, Q],
|
|
5529
5900
|
props: {
|
|
5530
5901
|
tabs: {
|
|
5531
5902
|
type: Array,
|
|
@@ -5539,13 +5910,13 @@ var ws = /*#__PURE__*/ A(xs, [["render", Cs]]), Ts = {
|
|
|
5539
5910
|
computed: { tabList() {
|
|
5540
5911
|
return Array.isArray(this.tabs) ? this.tabs.filter((e) => typeof e == "object" && !!e) : [];
|
|
5541
5912
|
} }
|
|
5542
|
-
},
|
|
5913
|
+
}, cc = ["aria-label"], lc = [
|
|
5543
5914
|
"href",
|
|
5544
5915
|
"aria-current",
|
|
5545
5916
|
"onClick",
|
|
5546
5917
|
"textContent"
|
|
5547
5918
|
];
|
|
5548
|
-
function
|
|
5919
|
+
function uc(t, n, r, a, o, s) {
|
|
5549
5920
|
return p(), i("nav", {
|
|
5550
5921
|
class: "bb-dashboard-ui bb:flex bb:space-x-4",
|
|
5551
5922
|
"aria-label": t.texts.tabs
|
|
@@ -5556,21 +5927,21 @@ function Os(t, n, r, a, o, s) {
|
|
|
5556
5927
|
class: d(["bb:px-3 bb:py-2 bb:font-medium bb:text-sm bb:rounded-md bb:focus-visible:focus-ring", e.key === r.activeKey ? "bb:bg-indigo-100 bb:text-gray-700" : "bb:text-gray-500 bb:hover:text-gray-700"]),
|
|
5557
5928
|
onClick: (n) => t.followLink(n, e.url),
|
|
5558
5929
|
textContent: y(e.name)
|
|
5559
|
-
}, null, 10,
|
|
5930
|
+
}, null, 10, lc))), 128))], 8, cc);
|
|
5560
5931
|
}
|
|
5561
|
-
var
|
|
5932
|
+
var dc = /*#__PURE__*/ j(sc, [["render", uc]]), fc = [
|
|
5562
5933
|
"xl",
|
|
5563
5934
|
"4xl",
|
|
5564
5935
|
"7xl"
|
|
5565
|
-
],
|
|
5566
|
-
components: { CrossButton:
|
|
5567
|
-
mixins: [
|
|
5936
|
+
], pc = {
|
|
5937
|
+
components: { CrossButton: F },
|
|
5938
|
+
mixins: [P],
|
|
5568
5939
|
inheritAttrs: !1,
|
|
5569
5940
|
props: {
|
|
5570
5941
|
width: {
|
|
5571
5942
|
type: String,
|
|
5572
5943
|
default: "xl",
|
|
5573
|
-
validator: (e) =>
|
|
5944
|
+
validator: (e) => fc.includes(e)
|
|
5574
5945
|
},
|
|
5575
5946
|
fallbackUrl: {
|
|
5576
5947
|
type: String,
|
|
@@ -5586,13 +5957,13 @@ var ks = /*#__PURE__*/ A(Ts, [["render", Os]]), As = [
|
|
|
5586
5957
|
},
|
|
5587
5958
|
computed: {
|
|
5588
5959
|
resolvedWidth() {
|
|
5589
|
-
return
|
|
5960
|
+
return fc.includes(this.width) ? this.width : "xl";
|
|
5590
5961
|
},
|
|
5591
5962
|
windows() {
|
|
5592
5963
|
return this.uiSettings.windows;
|
|
5593
5964
|
},
|
|
5594
5965
|
resolvedKey() {
|
|
5595
|
-
return this.windowKey !== null && this.windowKey !== "" ? this.windowKey : this.windows === null ? null :
|
|
5966
|
+
return this.windowKey !== null && this.windowKey !== "" ? this.windowKey : this.windows === null ? null : oe(this.windows.page.address);
|
|
5596
5967
|
},
|
|
5597
5968
|
target() {
|
|
5598
5969
|
return this.returnAddress === null ? this.fallbackUrl === null || this.fallbackUrl === "" ? null : this.fallbackUrl : this.returnAddress;
|
|
@@ -5602,23 +5973,23 @@ var ks = /*#__PURE__*/ A(Ts, [["render", Os]]), As = [
|
|
|
5602
5973
|
}
|
|
5603
5974
|
},
|
|
5604
5975
|
watch: { fallbackUrl() {
|
|
5605
|
-
this.windows !== null &&
|
|
5976
|
+
this.windows !== null && ge(this.windows.state, this, this.fallbackAddress());
|
|
5606
5977
|
} },
|
|
5607
5978
|
mounted() {
|
|
5608
|
-
this.windows !== null && (this.returnAddress =
|
|
5979
|
+
this.windows !== null && (this.returnAddress = pe(this.windows.state, this, this.resolvedKey, this.fallbackAddress()).returnAddress, this.$watch(() => [this.windows.page.number, this.resolvedKey], () => this.syncWindow(), { flush: "post" }));
|
|
5609
5980
|
},
|
|
5610
5981
|
beforeUnmount() {
|
|
5611
|
-
this.windows !== null &&
|
|
5982
|
+
this.windows !== null && he(this.windows.state, this);
|
|
5612
5983
|
},
|
|
5613
5984
|
methods: {
|
|
5614
5985
|
fallbackAddress() {
|
|
5615
|
-
return
|
|
5986
|
+
return ae(this.fallbackUrl, window.location.origin);
|
|
5616
5987
|
},
|
|
5617
5988
|
forwardedAttrs() {
|
|
5618
5989
|
return Object.fromEntries(Object.entries(this.$attrs).filter(([e]) => e.startsWith("data-") || e.startsWith("aria-")));
|
|
5619
5990
|
},
|
|
5620
5991
|
syncWindow() {
|
|
5621
|
-
let e =
|
|
5992
|
+
let e = me(this.windows.state, this, this.resolvedKey, this.fallbackAddress());
|
|
5622
5993
|
e.rejected && console.warn(`PageCard: ключ окна сменился на «${this.resolvedKey}» без смены страницы — карточка остаётся в окне «${e.key}»`), this.returnAddress = e.window.returnAddress;
|
|
5623
5994
|
},
|
|
5624
5995
|
close() {
|
|
@@ -5633,7 +6004,7 @@ var ks = /*#__PURE__*/ A(Ts, [["render", Os]]), As = [
|
|
|
5633
6004
|
}
|
|
5634
6005
|
}
|
|
5635
6006
|
};
|
|
5636
|
-
function
|
|
6007
|
+
function mc(e, t, a, o, c, l) {
|
|
5637
6008
|
let f = g("cross-button");
|
|
5638
6009
|
return p(), i("div", u({
|
|
5639
6010
|
class: ["bb:box-border bb:relative bb:my-6 bb:mx-auto bb:bg-white bb:shadow-xl bb:rounded-lg", [
|
|
@@ -5660,25 +6031,25 @@ function Ms(e, t, a, o, c, l) {
|
|
|
5660
6031
|
}]),
|
|
5661
6032
|
onClicked: l.close
|
|
5662
6033
|
}, {
|
|
5663
|
-
default:
|
|
6034
|
+
default: C(() => [s(y(e.texts.back), 1)]),
|
|
5664
6035
|
_: 1
|
|
5665
6036
|
}, 8, ["class", "onClicked"])) : r("", !0)], 16);
|
|
5666
6037
|
}
|
|
5667
|
-
var
|
|
5668
|
-
function
|
|
5669
|
-
return p(), i("dl",
|
|
6038
|
+
var hc = /*#__PURE__*/ j(pc, [["render", mc]]), gc = {}, _c = { class: "bb:m-0 bb:p-0 bb:overflow-hidden bb:rounded-b-lg" };
|
|
6039
|
+
function vc(e, t, n, r, a, o) {
|
|
6040
|
+
return p(), i("dl", _c, [h(e.$slots, "default")]);
|
|
5670
6041
|
}
|
|
5671
|
-
var
|
|
6042
|
+
var yc = /*#__PURE__*/ j(gc, [["render", vc]]), bc = { props: { title: {
|
|
5672
6043
|
type: String,
|
|
5673
6044
|
required: !0
|
|
5674
|
-
} } },
|
|
5675
|
-
function
|
|
5676
|
-
return p(), i("div",
|
|
6045
|
+
} } }, xc = { class: "bb:grid bb:grid-cols-3 bb:gap-4 bb:px-6 bb:py-5 bb:bg-white bb:odd:bg-gray-50" }, Sc = ["textContent"], Cc = { class: "bb:col-span-2 bb:m-0 bb:p-0 bb:text-sm bb:leading-5 bb:font-medium bb:text-gray-900 bb:wrap-break-word" };
|
|
6046
|
+
function wc(e, t, n, r, o, s) {
|
|
6047
|
+
return p(), i("div", xc, [a("dt", {
|
|
5677
6048
|
class: "bb:m-0 bb:p-0 bb:text-sm bb:leading-5 bb:font-normal bb:text-gray-500 bb:wrap-break-word",
|
|
5678
6049
|
textContent: y(n.title)
|
|
5679
|
-
}, null, 8,
|
|
6050
|
+
}, null, 8, Sc), a("dd", Cc, [h(e.$slots, "default")])]);
|
|
5680
6051
|
}
|
|
5681
|
-
var
|
|
6052
|
+
var Tc = /*#__PURE__*/ j(bc, [["render", wc]]), Ec = {}, Dc = {
|
|
5682
6053
|
class: "bb:h-7 bb:w-7 bb:text-green-600",
|
|
5683
6054
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5684
6055
|
fill: "none",
|
|
@@ -5687,22 +6058,22 @@ var Us = /*#__PURE__*/ A(Rs, [["render", Hs]]), Ws = {}, Gs = {
|
|
|
5687
6058
|
stroke: "currentColor",
|
|
5688
6059
|
"aria-hidden": "true"
|
|
5689
6060
|
};
|
|
5690
|
-
function
|
|
5691
|
-
return p(), i("svg",
|
|
6061
|
+
function Oc(e, t, n, r, o, s) {
|
|
6062
|
+
return p(), i("svg", Dc, [...t[0] ||= [a("path", {
|
|
5692
6063
|
"stroke-linecap": "round",
|
|
5693
6064
|
"stroke-linejoin": "round",
|
|
5694
6065
|
d: "M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"
|
|
5695
6066
|
}, null, -1)]]);
|
|
5696
6067
|
}
|
|
5697
|
-
var
|
|
6068
|
+
var kc = /*#__PURE__*/ j(Ec, [["render", Oc]]), Ac = {}, jc = {
|
|
5698
6069
|
class: "bb:h-5 bb:w-5",
|
|
5699
6070
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5700
6071
|
viewBox: "0 0 20 20",
|
|
5701
6072
|
fill: "currentColor",
|
|
5702
6073
|
"aria-hidden": "true"
|
|
5703
6074
|
};
|
|
5704
|
-
function
|
|
5705
|
-
return p(), i("svg",
|
|
6075
|
+
function Mc(e, t, n, r, o, s) {
|
|
6076
|
+
return p(), i("svg", jc, [...t[0] ||= [a("path", {
|
|
5706
6077
|
"fill-rule": "evenodd",
|
|
5707
6078
|
d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
|
|
5708
6079
|
"clip-rule": "evenodd"
|
|
@@ -5710,14 +6081,14 @@ function Xs(e, t, n, r, o, s) {
|
|
|
5710
6081
|
}
|
|
5711
6082
|
//#endregion
|
|
5712
6083
|
//#region src/components/NotificationMessage.vue
|
|
5713
|
-
var
|
|
6084
|
+
var Nc = {
|
|
5714
6085
|
components: {
|
|
5715
|
-
Check:
|
|
5716
|
-
Close: /* @__PURE__ */
|
|
5717
|
-
Dangerous:
|
|
5718
|
-
Warning:
|
|
6086
|
+
Check: kc,
|
|
6087
|
+
Close: /* @__PURE__ */ j(Ac, [["render", Mc]]),
|
|
6088
|
+
Dangerous: Mo,
|
|
6089
|
+
Warning: Io
|
|
5719
6090
|
},
|
|
5720
|
-
mixins: [
|
|
6091
|
+
mixins: [P],
|
|
5721
6092
|
emits: ["update:modelValue"],
|
|
5722
6093
|
props: {
|
|
5723
6094
|
modelValue: {
|
|
@@ -5755,8 +6126,8 @@ var Zs = {
|
|
|
5755
6126
|
return this.type === "confirmation";
|
|
5756
6127
|
}
|
|
5757
6128
|
}
|
|
5758
|
-
},
|
|
5759
|
-
function
|
|
6129
|
+
}, Pc = ["role"], Fc = { class: "bb:p-4" }, Ic = { class: "bb:flex bb:items-start" }, Lc = { class: "bb:shrink-0" }, Rc = { class: "bb:ml-3 bb:w-0 bb:flex-1 bb:pt-0.5" }, zc = { class: "bb:text-sm bb:font-medium bb:text-gray-900" }, Bc = { class: "bb:mt-1 bb:text-sm bb:text-gray-500" }, Vc = { class: "bb:ml-4 bb:shrink-0 bb:flex" }, Hc = { class: "bb:sr-only bb:pointer-events-none bb:cursor-default" };
|
|
6130
|
+
function Uc(e, t, o, s, l, u) {
|
|
5760
6131
|
let f = g("warning"), m = g("dangerous"), h = g("check"), _ = g("close");
|
|
5761
6132
|
return p(), i("div", {
|
|
5762
6133
|
class: "bb-dashboard-ui bb:fixed bb:inset-0 bb:flex bb:items-start bb:justify-end bb:p-6 bb:pointer-events-none",
|
|
@@ -5768,25 +6139,25 @@ function sc(e, t, o, s, l, u) {
|
|
|
5768
6139
|
"bb:bg-yellow-50": u.isWarning,
|
|
5769
6140
|
"bb:bg-gray-50": u.isConfirmation
|
|
5770
6141
|
}])
|
|
5771
|
-
}, [a("div",
|
|
5772
|
-
a("div",
|
|
6142
|
+
}, [a("div", Fc, [a("div", Ic, [
|
|
6143
|
+
a("div", Lc, [
|
|
5773
6144
|
u.isWarning ? (p(), n(f, { key: 0 })) : r("", !0),
|
|
5774
6145
|
u.isDangerous ? (p(), n(m, { key: 1 })) : r("", !0),
|
|
5775
6146
|
u.isConfirmation ? (p(), n(h, { key: 2 })) : r("", !0)
|
|
5776
6147
|
]),
|
|
5777
|
-
a("div",
|
|
5778
|
-
a("div",
|
|
6148
|
+
a("div", Rc, [a("p", zc, y(o.notificationHeading), 1), a("p", Bc, y(u.text), 1)]),
|
|
6149
|
+
a("div", Vc, [a("button", {
|
|
5779
6150
|
type: "button",
|
|
5780
6151
|
class: d(["bb:rounded-md bb:inline-flex bb:text-gray-400 bb:hover:text-gray-500 bb:focus:focus-ring", {
|
|
5781
6152
|
"bb:bg-red-50": u.isDangerous,
|
|
5782
6153
|
"bb:bg-yellow-50": u.isWarning,
|
|
5783
6154
|
"bb:bg-gray-50": u.isConfirmation
|
|
5784
6155
|
}]),
|
|
5785
|
-
onClick: t[0] ||=
|
|
5786
|
-
}, [a("span",
|
|
5787
|
-
])])], 2)) : r("", !0)], 8,
|
|
6156
|
+
onClick: t[0] ||= E((t) => e.$emit("update:modelValue", ""), ["prevent"])
|
|
6157
|
+
}, [a("span", Hc, y(e.texts.close), 1), c(_, { class: "bb:pointer-events-none bb:cursor-default" })], 2)])
|
|
6158
|
+
])])], 2)) : r("", !0)], 8, Pc);
|
|
5788
6159
|
}
|
|
5789
|
-
var
|
|
6160
|
+
var Wc = /*#__PURE__*/ j(Nc, [["render", Uc]]), Gc = {}, Kc = {
|
|
5790
6161
|
class: "bb:h-5 bb:w-5",
|
|
5791
6162
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5792
6163
|
fill: "none",
|
|
@@ -5795,8 +6166,8 @@ var cc = /*#__PURE__*/ A(Zs, [["render", sc]]), lc = {}, uc = {
|
|
|
5795
6166
|
"stroke-width": "2",
|
|
5796
6167
|
"aria-hidden": "true"
|
|
5797
6168
|
};
|
|
5798
|
-
function
|
|
5799
|
-
return p(), i("svg",
|
|
6169
|
+
function qc(e, t, n, r, o, s) {
|
|
6170
|
+
return p(), i("svg", Kc, [...t[0] ||= [a("path", {
|
|
5800
6171
|
"stroke-linecap": "round",
|
|
5801
6172
|
"stroke-linejoin": "round",
|
|
5802
6173
|
d: "M15 12a3 3 0 11-6 0 3 3 0 016 0z"
|
|
@@ -5806,12 +6177,12 @@ function dc(e, t, n, r, o, s) {
|
|
|
5806
6177
|
d: "M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"
|
|
5807
6178
|
}, null, -1)]]);
|
|
5808
6179
|
}
|
|
5809
|
-
var
|
|
6180
|
+
var Jc = /*#__PURE__*/ j(Gc, [["render", qc]]), $ = 0, Yc = null, Xc = {
|
|
5810
6181
|
components: {
|
|
5811
|
-
PopoverPanel:
|
|
5812
|
-
Eye:
|
|
6182
|
+
PopoverPanel: z,
|
|
6183
|
+
Eye: Jc
|
|
5813
6184
|
},
|
|
5814
|
-
mixins: [
|
|
6185
|
+
mixins: [P],
|
|
5815
6186
|
emits: ["update:modelValue"],
|
|
5816
6187
|
props: {
|
|
5817
6188
|
text: {
|
|
@@ -5844,18 +6215,18 @@ var fc = /*#__PURE__*/ A(lc, [["render", dc]]), $ = 0, pc = null, mc = {
|
|
|
5844
6215
|
lockPageSelection() {
|
|
5845
6216
|
if (!this.holdsPageSelectionLock && (this.holdsPageSelectionLock = !0, $ += 1, $ === 1)) {
|
|
5846
6217
|
let e = document.documentElement.style;
|
|
5847
|
-
|
|
6218
|
+
Yc = {
|
|
5848
6219
|
userSelect: e.userSelect,
|
|
5849
6220
|
webkitUserSelect: e.webkitUserSelect
|
|
5850
6221
|
}, e.userSelect = "none", e.webkitUserSelect = "none";
|
|
5851
6222
|
}
|
|
5852
6223
|
},
|
|
5853
6224
|
unlockPageSelection() {
|
|
5854
|
-
this.holdsPageSelectionLock && (this.holdsPageSelectionLock = !1, --$, $ === 0 && (Object.assign(document.documentElement.style,
|
|
6225
|
+
this.holdsPageSelectionLock && (this.holdsPageSelectionLock = !1, --$, $ === 0 && (Object.assign(document.documentElement.style, Yc), Yc = null));
|
|
5855
6226
|
}
|
|
5856
6227
|
}
|
|
5857
|
-
},
|
|
5858
|
-
function
|
|
6228
|
+
}, Zc = ["id", "popovertarget"], Qc = { class: "bb:sr-only bb:pointer-events-none bb:cursor-default" };
|
|
6229
|
+
function $c(e, t, r, i, o, l) {
|
|
5859
6230
|
let u = g("eye"), d = g("popover-panel");
|
|
5860
6231
|
return p(), n(d, {
|
|
5861
6232
|
class: "bb-dashboard-ui bb:inline-flex",
|
|
@@ -5870,13 +6241,13 @@ function _c(e, t, r, i, o, l) {
|
|
|
5870
6241
|
"onUpdate:modelValue": t[0] ||= (t) => e.$emit("update:modelValue", t),
|
|
5871
6242
|
onToggle: l.onPanelToggle
|
|
5872
6243
|
}, {
|
|
5873
|
-
trigger:
|
|
6244
|
+
trigger: C((t) => [a("button", {
|
|
5874
6245
|
type: "button",
|
|
5875
6246
|
id: t.id,
|
|
5876
6247
|
popovertarget: t.popovertarget,
|
|
5877
6248
|
class: "bb:relative bb:inline-flex bb:items-center bb:justify-center bb:self-center bb:text-gray-400 bb:hover:text-gray-600 bb:rounded-md bb:focus-visible:focus-ring"
|
|
5878
|
-
}, [a("span",
|
|
5879
|
-
default:
|
|
6249
|
+
}, [a("span", Qc, y(e.texts.showText), 1), c(u, { class: "bb:pointer-events-none bb:cursor-default" })], 8, Zc)]),
|
|
6250
|
+
default: C(() => [s(y(l.normalizedText), 1)]),
|
|
5880
6251
|
_: 1
|
|
5881
6252
|
}, 8, [
|
|
5882
6253
|
"has-content",
|
|
@@ -5885,6 +6256,6 @@ function _c(e, t, r, i, o, l) {
|
|
|
5885
6256
|
"onToggle"
|
|
5886
6257
|
]);
|
|
5887
6258
|
}
|
|
5888
|
-
var
|
|
6259
|
+
var el = /*#__PURE__*/ j(Xc, [["render", $c]]);
|
|
5889
6260
|
//#endregion
|
|
5890
|
-
export {
|
|
6261
|
+
export { fo as ActionButton, bo as ActionPill, ji as AmountForm, Wi as AmountIntervalFilter, ea as AmountIntervalForm, Ko as ConfirmationModal, qs as DataTable, yc as DetailList, Tc as DetailRow, M as Dot, us as DropdownButtonWithAction, da as ErrorMessages, va as FormInput, Pa as FormTextarea, hs as HamburgerMenu, ia as InfoPill, oc as NavigationHeader, Zs as NavigationMenuElement, Wc as NotificationMessage, hc as PageCard, dc as PageTabs, nt as RussianMobileFilter, lt as Search, ei as SelectCurrencyFilter, ri as SelectCurrencyForm, qt as SelectDateFilter, rn as SelectDateForm, mn as SelectDateIntervalFilter, Cn as SelectDateIntervalForm, nr as SelectMultipleFilter, lr as SelectMultipleForm, Cr as SelectMultipleList, Yr as SelectSingleCards, Mr as SelectSingleFilter, zr as SelectSingleForm, el as TextPopover, xe as dashboardUi, Te as downloadFile };
|