@oneb/ui-vue 0.3.30 → 0.3.32
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/dist/InformationCircleIcon-2f6097a0.js +20 -0
- package/dist/InformationCircleIcon-d6b67d5d.cjs +1 -0
- package/dist/{NoSymbolIcon-e58a9aee.js → NoSymbolIcon-b3470a26.js} +8 -25
- package/dist/{NoSymbolIcon-5d326416.cjs → NoSymbolIcon-e84375bb.cjs} +1 -1
- package/dist/OneHelpMenu-73817f8a.js +922 -0
- package/dist/OneHelpMenu-c6e88d8f.cjs +1 -0
- package/dist/dropdown/index.cjs +1 -1
- package/dist/dropdown/index.js +209 -209
- package/dist/dropdown/menu.d.ts +23 -31
- package/dist/i18n/index.cjs +1 -1
- package/dist/i18n/index.js +36 -11
- package/dist/index.cjs +1 -1
- package/dist/index.js +100 -99
- package/dist/infobox/index.cjs +1 -1
- package/dist/infobox/index.js +4 -3
- package/dist/layout/index.cjs +1 -1
- package/dist/layout/index.js +726 -721
- package/dist/layout/layout.d.ts +10 -12
- package/dist/periodPicker/index.cjs +1 -1
- package/dist/periodPicker/index.js +736 -675
- package/dist/periodPicker/periodPicker.d.ts +1 -1
- package/dist/stageBadge/OneStageBadge.vue.d.ts +2 -0
- package/dist/stageBadge/index.cjs +1 -0
- package/dist/stageBadge/index.d.ts +3 -0
- package/dist/stageBadge/index.js +124 -0
- package/dist/stageBadge/stageBadge.d.ts +64 -0
- package/dist/style.css +1 -1
- package/dist/toast/index.cjs +1 -1
- package/dist/toast/index.js +6 -5
- package/package.json +8 -1
- package/dist/OneHelpMenu-79b2d83f.cjs +0 -1
- package/dist/OneHelpMenu-df4e18a9.js +0 -877
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { openBlock as
|
|
2
|
-
import { autoUpdate as
|
|
3
|
-
import { DatePicker as
|
|
4
|
-
import { OneButton as
|
|
5
|
-
import { O as
|
|
6
|
-
import { r as
|
|
7
|
-
import { r as
|
|
8
|
-
import { r as
|
|
9
|
-
import { useOnebI18n as
|
|
10
|
-
import { _ as
|
|
11
|
-
import
|
|
12
|
-
import { default as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
1
|
+
import { openBlock as o, createElementBlock as d, createElementVNode as v, defineComponent as vt, computed as f, createBlock as F, unref as M, withCtx as Wt, normalizeStyle as ue, Fragment as W, renderList as Z, normalizeClass as c, toDisplayString as _, createCommentVNode as k, ref as b, watch as me, nextTick as E, onMounted as Tt, onUnmounted as Ut, withDirectives as Me, withKeys as Oe, vModelText as _e, createVNode as J, Teleport as st, renderSlot as Se } from "vue";
|
|
2
|
+
import { autoUpdate as qt, computePosition as It, offset as Et, flip as Ft, shift as jt } from "@floating-ui/dom";
|
|
3
|
+
import { DatePicker as Be } from "v-calendar";
|
|
4
|
+
import { OneButton as Le } from "../button/index.js";
|
|
5
|
+
import { O as Nt, u as Kt } from "../useModal-7fe9444b.js";
|
|
6
|
+
import { r as it } from "../CheckIcon-f1c94824.js";
|
|
7
|
+
import { r as Qt } from "../XMarkIcon-51ef0691.js";
|
|
8
|
+
import { r as Ht } from "../ChevronDownIcon-6805ce6c.js";
|
|
9
|
+
import { useOnebI18n as ft } from "../i18n/index.js";
|
|
10
|
+
import { _ as mt } from "../_plugin-vue_export-helper-dad06003.js";
|
|
11
|
+
import n from "dayjs";
|
|
12
|
+
import { default as Xa } from "dayjs";
|
|
13
|
+
import Jt from "dayjs/plugin/advancedFormat";
|
|
14
|
+
import Xt from "dayjs/plugin/isoWeek";
|
|
15
|
+
import Zt from "dayjs/plugin/quarterOfYear";
|
|
16
|
+
import ea from "dayjs/plugin/utc";
|
|
17
|
+
import ta from "dayjs/plugin/customParseFormat";
|
|
18
18
|
import "../SpinnerIcon-74648c98.js";
|
|
19
19
|
import "../SpinnerIcon.vue_vue_type_style_index_0_lang-4ed993c7.js";
|
|
20
|
-
function
|
|
21
|
-
return
|
|
20
|
+
function We(a, u) {
|
|
21
|
+
return o(), d("svg", {
|
|
22
22
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23
23
|
fill: "none",
|
|
24
24
|
viewBox: "0 0 24 24",
|
|
@@ -33,8 +33,8 @@ function Ve(a, o) {
|
|
|
33
33
|
})
|
|
34
34
|
]);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
return
|
|
36
|
+
function aa(a, u) {
|
|
37
|
+
return o(), d("svg", {
|
|
38
38
|
xmlns: "http://www.w3.org/2000/svg",
|
|
39
39
|
fill: "none",
|
|
40
40
|
viewBox: "0 0 24 24",
|
|
@@ -49,7 +49,7 @@ function Zt(a, o) {
|
|
|
49
49
|
})
|
|
50
50
|
]);
|
|
51
51
|
}
|
|
52
|
-
const
|
|
52
|
+
const Te = {
|
|
53
53
|
xs: {
|
|
54
54
|
trigger: "h-7 rounded-lg",
|
|
55
55
|
triggerButton: "gap-1.5 px-2 text-[11px]",
|
|
@@ -254,10 +254,10 @@ const $e = {
|
|
|
254
254
|
"--pp-fast-list-max-h": "540px"
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
|
-
},
|
|
257
|
+
}, ze = "manual-date", oe = "manual-range", B = "date", la = "period", $ = "range", na = { class: "fast-picker-group__list" }, ra = ["onClick"], oa = { class: "fast-picker-option__label" }, ua = {
|
|
258
258
|
key: 0,
|
|
259
259
|
class: "fast-picker-option__description"
|
|
260
|
-
},
|
|
260
|
+
}, sa = /* @__PURE__ */ vt({
|
|
261
261
|
__name: "OnePeriodPickerFastModal",
|
|
262
262
|
props: {
|
|
263
263
|
useModal: {},
|
|
@@ -268,315 +268,318 @@ const $e = {
|
|
|
268
268
|
},
|
|
269
269
|
emits: ["select"],
|
|
270
270
|
setup(a) {
|
|
271
|
-
const
|
|
272
|
-
return (
|
|
271
|
+
const u = ft(), m = a, r = f(() => m.t ?? u), s = f(() => Te[m.size ?? "md"]), y = f(() => s.value.vars);
|
|
272
|
+
return (i, z) => a.useModal.isOpened.value ? (o(), F(M(Nt), {
|
|
273
273
|
key: 0,
|
|
274
274
|
useModal: a.useModal,
|
|
275
|
-
size:
|
|
275
|
+
size: s.value.fastModalSize,
|
|
276
276
|
title: r.value("ui.period_select.Fast periods")
|
|
277
277
|
}, {
|
|
278
|
-
default:
|
|
278
|
+
default: Wt(() => [
|
|
279
279
|
v("div", {
|
|
280
280
|
class: "grid gap-4 grid-cols-1 sm:grid-cols-2 md:grid-cols-3",
|
|
281
|
-
style:
|
|
281
|
+
style: ue(y.value)
|
|
282
282
|
}, [
|
|
283
|
-
(
|
|
284
|
-
key:
|
|
283
|
+
(o(!0), d(W, null, Z(a.groups, (T) => (o(), d("section", {
|
|
284
|
+
key: T.id,
|
|
285
285
|
class: "fast-picker-group"
|
|
286
286
|
}, [
|
|
287
|
-
v("div",
|
|
288
|
-
(
|
|
289
|
-
key:
|
|
287
|
+
v("div", na, [
|
|
288
|
+
(o(!0), d(W, null, Z(T.options, (S) => (o(), d("div", {
|
|
289
|
+
key: S.key
|
|
290
290
|
}, [
|
|
291
|
-
|
|
291
|
+
S.type === "label" ? (o(), d("p", {
|
|
292
292
|
key: 0,
|
|
293
|
-
class: c([
|
|
294
|
-
},
|
|
293
|
+
class: c([s.value.presetLabel, "uppercase tracking-wide text-gray-500 mt-3 mb-1 first:mt-0"])
|
|
294
|
+
}, _(S.label), 3)) : (o(), d("button", {
|
|
295
295
|
key: 1,
|
|
296
296
|
type: "button",
|
|
297
|
-
class: c(["fast-picker-option", { "fast-picker-option--active": a.activePresetKey ===
|
|
298
|
-
onClick: (
|
|
297
|
+
class: c(["fast-picker-option", { "fast-picker-option--active": a.activePresetKey === S.key }]),
|
|
298
|
+
onClick: (Q) => i.$emit("select", S)
|
|
299
299
|
}, [
|
|
300
|
-
v("span",
|
|
301
|
-
|
|
302
|
-
], 10,
|
|
300
|
+
v("span", oa, _(S.label), 1),
|
|
301
|
+
S.description ? (o(), d("span", ua, _(S.description), 1)) : k("", !0)
|
|
302
|
+
], 10, ra))
|
|
303
303
|
]))), 128))
|
|
304
304
|
])
|
|
305
305
|
]))), 128))
|
|
306
306
|
], 4)
|
|
307
307
|
]),
|
|
308
308
|
_: 1
|
|
309
|
-
}, 8, ["useModal", "size", "title"])) :
|
|
309
|
+
}, 8, ["useModal", "size", "title"])) : k("", !0);
|
|
310
310
|
}
|
|
311
311
|
});
|
|
312
|
-
const
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
const
|
|
312
|
+
const ia = /* @__PURE__ */ mt(sa, [["__scopeId", "data-v-3fbb25c2"]]);
|
|
313
|
+
n.extend(Jt);
|
|
314
|
+
n.extend(Xt);
|
|
315
|
+
n.extend(Zt);
|
|
316
|
+
n.extend(ea);
|
|
317
|
+
n.extend(ta);
|
|
318
|
+
const Ve = (a, u) => u("ui.period_select.date_short", {
|
|
319
319
|
day: a.format("DD"),
|
|
320
|
-
month:
|
|
320
|
+
month: u("ui.months_short." + a.month()),
|
|
321
321
|
year: a.format("YYYY")
|
|
322
|
-
}),
|
|
322
|
+
}), dt = (a) => {
|
|
323
323
|
if (a == null)
|
|
324
324
|
return null;
|
|
325
|
-
const
|
|
326
|
-
return Number.isFinite(
|
|
327
|
-
},
|
|
325
|
+
const u = Number(a);
|
|
326
|
+
return Number.isFinite(u) && u > 0 ? u : null;
|
|
327
|
+
}, O = ({
|
|
328
328
|
key: a,
|
|
329
|
-
label:
|
|
330
|
-
group:
|
|
329
|
+
label: u,
|
|
330
|
+
group: m,
|
|
331
331
|
description: r = null,
|
|
332
|
-
resolveRange:
|
|
332
|
+
resolveRange: s
|
|
333
333
|
}) => ({
|
|
334
334
|
key: a,
|
|
335
|
-
label:
|
|
336
|
-
group:
|
|
335
|
+
label: u,
|
|
336
|
+
group: m,
|
|
337
337
|
description: r,
|
|
338
338
|
type: "option",
|
|
339
|
-
resolveRange:
|
|
340
|
-
}),
|
|
341
|
-
if (a && a > 0 &&
|
|
342
|
-
const r =
|
|
343
|
-
return r !==
|
|
339
|
+
resolveRange: s
|
|
340
|
+
}), pt = (a, u, m) => {
|
|
341
|
+
if (a && a > 0 && u && u > 0) {
|
|
342
|
+
const r = n.unix(a).format("DD.MM.YYYY"), s = n.unix(u).format("DD.MM.YYYY");
|
|
343
|
+
return r !== s ? `${r} - ${s}` : r;
|
|
344
344
|
}
|
|
345
345
|
if (a && a > 0)
|
|
346
|
-
return `${
|
|
347
|
-
if (
|
|
348
|
-
if (Math.abs(
|
|
349
|
-
return
|
|
350
|
-
const r =
|
|
351
|
-
return r ===
|
|
346
|
+
return `${m("ui.period_select.From")} ${n.unix(a).format("DD.MM.YYYY")}`;
|
|
347
|
+
if (u && u > 0) {
|
|
348
|
+
if (Math.abs(n.unix(u).diff(n().utc(), "minute")) < 15)
|
|
349
|
+
return m("ui.period_select.until current moment");
|
|
350
|
+
const r = n.unix(u).format("DD.MM.YYYY");
|
|
351
|
+
return r === n().endOf("day").format("DD.MM.YYYY") ? m("ui.period_select.until end of today") : r === n().subtract(1, "d").endOf("day").format("DD.MM.YYYY") ? m("ui.period_select.until end of yesterday") : r === n().endOf("month").format("DD.MM.YYYY") ? m("ui.period_select.until end of month") : r === n().subtract(1, "month").endOf("month").format("DD.MM.YYYY") ? m("ui.period_select.until end of last month") : `${m("ui.period_select.Till")} ${n.unix(u).format("DD.MM.YYYY")}`;
|
|
352
352
|
}
|
|
353
353
|
return "";
|
|
354
|
-
},
|
|
354
|
+
}, da = (a, u, m) => m === B ? B : m === la ? $ : a != null && u != null ? n.unix(a).isSame(n.unix(u), "day") ? B : $ : a != null || u != null ? $ : null, ct = (a) => [
|
|
355
355
|
// === Date presets (group: 'date') ===
|
|
356
|
-
|
|
356
|
+
O({
|
|
357
357
|
key: "until-now",
|
|
358
358
|
label: a("ui.period_select.until current moment"),
|
|
359
359
|
group: "date",
|
|
360
|
-
resolveRange: () => [null,
|
|
360
|
+
resolveRange: () => [null, n().unix()]
|
|
361
361
|
}),
|
|
362
|
-
|
|
362
|
+
O({
|
|
363
363
|
key: "until-end-today",
|
|
364
364
|
label: a("ui.period_select.until end of today"),
|
|
365
365
|
group: "date",
|
|
366
|
-
resolveRange: () => [null,
|
|
366
|
+
resolveRange: () => [null, n().endOf("day").unix()]
|
|
367
367
|
}),
|
|
368
|
-
|
|
368
|
+
O({
|
|
369
369
|
key: "until-end-yesterday",
|
|
370
370
|
label: a("ui.period_select.until end of yesterday"),
|
|
371
371
|
group: "date",
|
|
372
|
-
resolveRange: () => [null,
|
|
372
|
+
resolveRange: () => [null, n().subtract(1, "day").endOf("day").unix()]
|
|
373
373
|
}),
|
|
374
|
-
|
|
374
|
+
O({
|
|
375
375
|
key: "until-end-month",
|
|
376
376
|
label: a("ui.period_select.until end of month"),
|
|
377
377
|
group: "date",
|
|
378
|
-
resolveRange: () => [null,
|
|
378
|
+
resolveRange: () => [null, n().endOf("month").unix()]
|
|
379
379
|
}),
|
|
380
|
-
|
|
380
|
+
O({
|
|
381
381
|
key: "until-end-last-month",
|
|
382
382
|
label: a("ui.period_select.until end of last month"),
|
|
383
383
|
group: "date",
|
|
384
|
-
resolveRange: () => [null,
|
|
384
|
+
resolveRange: () => [null, n().subtract(1, "month").endOf("month").unix()]
|
|
385
385
|
}),
|
|
386
|
-
|
|
386
|
+
O({
|
|
387
387
|
key: "today",
|
|
388
388
|
label: a("ui.period_select.Today"),
|
|
389
389
|
group: "date",
|
|
390
|
-
resolveRange: () => [
|
|
390
|
+
resolveRange: () => [n().startOf("day").unix(), n().endOf("day").unix()]
|
|
391
391
|
}),
|
|
392
|
-
|
|
392
|
+
O({
|
|
393
393
|
key: "yesterday",
|
|
394
394
|
label: a("ui.period_select.Yesterday"),
|
|
395
395
|
group: "date",
|
|
396
396
|
resolveRange: () => [
|
|
397
|
-
|
|
398
|
-
|
|
397
|
+
n().subtract(1, "day").startOf("day").unix(),
|
|
398
|
+
n().subtract(1, "day").endOf("day").unix()
|
|
399
399
|
]
|
|
400
400
|
}),
|
|
401
401
|
// === Period presets (group: 'period') ===
|
|
402
|
-
|
|
402
|
+
O({
|
|
403
403
|
key: "this-week",
|
|
404
404
|
label: a("ui.period_select.This week"),
|
|
405
405
|
group: "period",
|
|
406
406
|
resolveRange: () => [
|
|
407
|
-
|
|
408
|
-
|
|
407
|
+
n().startOf("isoWeek").startOf("day").unix(),
|
|
408
|
+
n().endOf("isoWeek").endOf("day").unix()
|
|
409
409
|
]
|
|
410
410
|
}),
|
|
411
|
-
|
|
411
|
+
O({
|
|
412
412
|
key: "this-month",
|
|
413
413
|
label: a("ui.period_select.This month"),
|
|
414
414
|
group: "period",
|
|
415
415
|
resolveRange: () => [
|
|
416
|
-
|
|
417
|
-
|
|
416
|
+
n().startOf("month").startOf("day").unix(),
|
|
417
|
+
n().endOf("month").endOf("day").unix()
|
|
418
418
|
]
|
|
419
419
|
}),
|
|
420
|
-
|
|
420
|
+
O({
|
|
421
421
|
key: "this-quarter",
|
|
422
422
|
label: a("ui.period_select.This quarter"),
|
|
423
423
|
group: "period",
|
|
424
424
|
resolveRange: () => [
|
|
425
|
-
|
|
426
|
-
|
|
425
|
+
n().startOf("quarter").startOf("day").unix(),
|
|
426
|
+
n().endOf("quarter").endOf("day").unix()
|
|
427
427
|
]
|
|
428
428
|
}),
|
|
429
|
-
|
|
429
|
+
O({
|
|
430
430
|
key: "this-year",
|
|
431
431
|
label: a("ui.period_select.This Year"),
|
|
432
432
|
group: "period",
|
|
433
433
|
resolveRange: () => [
|
|
434
|
-
|
|
435
|
-
|
|
434
|
+
n().startOf("year").startOf("day").unix(),
|
|
435
|
+
n().endOf("year").endOf("day").unix()
|
|
436
436
|
]
|
|
437
437
|
}),
|
|
438
|
-
|
|
438
|
+
O({
|
|
439
439
|
key: "last-week",
|
|
440
440
|
label: a("ui.period_select.Last week"),
|
|
441
441
|
group: "period",
|
|
442
442
|
resolveRange: () => [
|
|
443
|
-
|
|
444
|
-
|
|
443
|
+
n().subtract(1, "week").startOf("isoWeek").startOf("day").unix(),
|
|
444
|
+
n().subtract(1, "week").endOf("isoWeek").endOf("day").unix()
|
|
445
445
|
]
|
|
446
446
|
}),
|
|
447
|
-
|
|
447
|
+
O({
|
|
448
448
|
key: "last-month",
|
|
449
449
|
label: a("ui.period_select.Last month"),
|
|
450
450
|
group: "period",
|
|
451
451
|
resolveRange: () => [
|
|
452
|
-
|
|
453
|
-
|
|
452
|
+
n().subtract(1, "month").startOf("month").startOf("day").unix(),
|
|
453
|
+
n().subtract(1, "month").endOf("month").endOf("day").unix()
|
|
454
454
|
]
|
|
455
455
|
}),
|
|
456
|
-
|
|
456
|
+
O({
|
|
457
457
|
key: "last-quarter",
|
|
458
458
|
label: a("ui.period_select.Last quarter"),
|
|
459
459
|
group: "period",
|
|
460
460
|
resolveRange: () => [
|
|
461
|
-
|
|
462
|
-
|
|
461
|
+
n().subtract(1, "quarter").startOf("quarter").startOf("day").unix(),
|
|
462
|
+
n().subtract(1, "quarter").endOf("quarter").endOf("day").unix()
|
|
463
463
|
]
|
|
464
464
|
}),
|
|
465
|
-
|
|
465
|
+
O({
|
|
466
466
|
key: "last-year",
|
|
467
467
|
label: a("ui.period_select.Last year"),
|
|
468
468
|
group: "period",
|
|
469
469
|
resolveRange: () => [
|
|
470
|
-
|
|
471
|
-
|
|
470
|
+
n().subtract(1, "year").startOf("year").startOf("day").unix(),
|
|
471
|
+
n().subtract(1, "year").endOf("year").endOf("day").unix()
|
|
472
472
|
]
|
|
473
473
|
}),
|
|
474
|
-
|
|
474
|
+
O({
|
|
475
475
|
key: "last-two-months",
|
|
476
476
|
label: a("ui.period_select.Last two month"),
|
|
477
477
|
group: "period",
|
|
478
478
|
resolveRange: () => [
|
|
479
|
-
|
|
480
|
-
|
|
479
|
+
n().subtract(1, "month").startOf("month").startOf("day").unix(),
|
|
480
|
+
n().endOf("month").endOf("day").unix()
|
|
481
481
|
]
|
|
482
482
|
}),
|
|
483
|
-
|
|
483
|
+
O({
|
|
484
484
|
key: "last-three-months",
|
|
485
485
|
label: a("ui.period_select.Last three month"),
|
|
486
486
|
group: "period",
|
|
487
487
|
resolveRange: () => [
|
|
488
|
-
|
|
489
|
-
|
|
488
|
+
n().subtract(2, "month").startOf("month").startOf("day").unix(),
|
|
489
|
+
n().endOf("month").endOf("day").unix()
|
|
490
490
|
]
|
|
491
491
|
})
|
|
492
|
-
],
|
|
493
|
-
var
|
|
492
|
+
], ye = (a, u) => {
|
|
493
|
+
var y;
|
|
494
494
|
const r = {
|
|
495
495
|
day: {
|
|
496
496
|
iterations: 30,
|
|
497
497
|
group: "date",
|
|
498
|
-
buildLabel: (
|
|
499
|
-
dayOfWeek:
|
|
500
|
-
day:
|
|
501
|
-
month:
|
|
502
|
-
year:
|
|
498
|
+
buildLabel: (i) => u("ui.period_select.day_label", {
|
|
499
|
+
dayOfWeek: u("ui.days_short." + i.day()),
|
|
500
|
+
day: i.format("D"),
|
|
501
|
+
month: u("ui.months_short." + i.month()),
|
|
502
|
+
year: i.format("YYYY")
|
|
503
503
|
})
|
|
504
504
|
},
|
|
505
505
|
week: {
|
|
506
506
|
iterations: 15,
|
|
507
507
|
group: "period",
|
|
508
|
-
buildLabel: (
|
|
509
|
-
buildDescription: (
|
|
510
|
-
start:
|
|
511
|
-
end:
|
|
508
|
+
buildLabel: (i) => u("ui.period_select.week_label", { weekNumber: i.format("WW") }),
|
|
509
|
+
buildDescription: (i, z) => u("ui.period_select.week_description", {
|
|
510
|
+
start: Ve(i, u),
|
|
511
|
+
end: Ve(z, u)
|
|
512
512
|
}),
|
|
513
513
|
useIsoWeek: !0
|
|
514
514
|
},
|
|
515
515
|
month: {
|
|
516
516
|
iterations: 24,
|
|
517
517
|
group: "period",
|
|
518
|
-
buildLabel: (
|
|
519
|
-
month:
|
|
520
|
-
year:
|
|
518
|
+
buildLabel: (i) => u("ui.period_select.month_label", {
|
|
519
|
+
month: u("ui.months." + i.month()),
|
|
520
|
+
year: i.format("YYYY")
|
|
521
521
|
})
|
|
522
522
|
},
|
|
523
523
|
quarter: {
|
|
524
524
|
iterations: 8,
|
|
525
525
|
group: "period",
|
|
526
|
-
buildLabel: (
|
|
527
|
-
year:
|
|
528
|
-
quarter:
|
|
526
|
+
buildLabel: (i) => u("ui.period_select.quarter_label", {
|
|
527
|
+
year: i.format("YYYY"),
|
|
528
|
+
quarter: i.quarter()
|
|
529
529
|
}),
|
|
530
|
-
buildDescription: (
|
|
531
|
-
start:
|
|
532
|
-
end:
|
|
530
|
+
buildDescription: (i, z) => u("ui.period_select.quarter_description", {
|
|
531
|
+
start: Ve(i, u),
|
|
532
|
+
end: Ve(z, u)
|
|
533
533
|
})
|
|
534
534
|
},
|
|
535
535
|
year: {
|
|
536
536
|
iterations: 7,
|
|
537
537
|
group: "period",
|
|
538
|
-
buildLabel: (
|
|
538
|
+
buildLabel: (i) => i.format("YYYY")
|
|
539
539
|
}
|
|
540
|
-
}[a],
|
|
541
|
-
for (let
|
|
542
|
-
const
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
key: `${a}-${
|
|
546
|
-
label: r.buildLabel(
|
|
547
|
-
description: ((
|
|
540
|
+
}[a], s = [];
|
|
541
|
+
for (let i = 0; i < r.iterations; i++) {
|
|
542
|
+
const z = n().subtract(i, a), T = a === "week" && r.useIsoWeek ? z.startOf("isoWeek") : z.startOf(a), S = a === "week" && r.useIsoWeek ? z.endOf("isoWeek") : z.endOf(a), Q = T.startOf("day").unix(), se = S.endOf("day").unix();
|
|
543
|
+
s.push(
|
|
544
|
+
O({
|
|
545
|
+
key: `${a}-${i}`,
|
|
546
|
+
label: r.buildLabel(T, S),
|
|
547
|
+
description: ((y = r.buildDescription) == null ? void 0 : y.call(r, T, S)) ?? null,
|
|
548
548
|
group: r.group,
|
|
549
|
-
resolveRange: () => [
|
|
549
|
+
resolveRange: () => [Q, se]
|
|
550
550
|
})
|
|
551
551
|
);
|
|
552
552
|
}
|
|
553
|
-
return
|
|
554
|
-
},
|
|
555
|
-
if (!
|
|
553
|
+
return s;
|
|
554
|
+
}, pa = (a) => a ? a.includes("today") || a.includes("yesterday") || a.startsWith("day-") ? "day" : a.includes("week") ? "week" : a.includes("month") || a.startsWith("month-") ? "month" : a.includes("quarter") || a.startsWith("quarter-") ? "quarter" : a.includes("year") || a.startsWith("year-") ? "year" : a.startsWith("until-") ? "day" : null : null, X = (a, u) => {
|
|
555
|
+
if (!u)
|
|
556
556
|
return !0;
|
|
557
|
-
const
|
|
558
|
-
return
|
|
559
|
-
},
|
|
560
|
-
const
|
|
561
|
-
if (
|
|
562
|
-
const
|
|
563
|
-
if (
|
|
564
|
-
return
|
|
557
|
+
const m = ["day", "week", "month", "quarter", "year"], r = m.indexOf(u), s = pa(a);
|
|
558
|
+
return s ? m.indexOf(s) >= r : !0;
|
|
559
|
+
}, xe = (a) => {
|
|
560
|
+
const u = a.replace(/[^0-9]/g, "");
|
|
561
|
+
if (u.length === 8) {
|
|
562
|
+
const m = u.substring(0, 2), r = u.substring(2, 4), s = u.substring(4, 8), y = n(`${s}-${r}-${m}`, "YYYY-MM-DD");
|
|
563
|
+
if (y.isValid())
|
|
564
|
+
return y.format("YYYY-MM-DD");
|
|
565
565
|
}
|
|
566
566
|
return null;
|
|
567
|
-
},
|
|
567
|
+
}, ca = ["placeholder"], va = ["placeholder"], fa = { class: "truncate" }, ma = {
|
|
568
|
+
key: 0,
|
|
569
|
+
class: "flex flex-col gap-3 w-full"
|
|
570
|
+
}, ya = { class: "flex items-center justify-between pb-2 border-b border-gray-200" }, xa = { class: "flex-1 overflow-y-auto pr-1 picker-group__list" }, ga = ["onClick"], ba = { class: "picker-option__label" }, ha = {
|
|
568
571
|
key: 0,
|
|
569
572
|
class: "picker-option__description"
|
|
570
|
-
},
|
|
573
|
+
}, ka = {
|
|
571
574
|
key: 1,
|
|
572
575
|
class: "space-y-2"
|
|
573
|
-
},
|
|
576
|
+
}, Ya = { class: "flex items-center justify-between mb-3" }, wa = ["disabled"], Da = {
|
|
574
577
|
key: 0,
|
|
575
578
|
class: "grid grid-cols-2 gap-4"
|
|
576
|
-
},
|
|
579
|
+
}, Ma = ["onClick", "onMouseenter"], Oa = ["onClick", "onMouseenter"], _a = {
|
|
577
580
|
key: 0,
|
|
578
581
|
class: "grid gap-3 md:grid-cols-2 w-full text-sm"
|
|
579
|
-
},
|
|
582
|
+
}, Sa = { class: "text-gray-500 mb-1" }, Ba = { class: "text-gray-500 mb-1" }, za = /* @__PURE__ */ vt({
|
|
580
583
|
__name: "OnePeriodPicker",
|
|
581
584
|
props: {
|
|
582
585
|
modelValue: {},
|
|
@@ -596,36 +599,36 @@ const De = (a, o) => o("ui.period_select.date_short", {
|
|
|
596
599
|
columns: { default: null }
|
|
597
600
|
},
|
|
598
601
|
emits: ["update:modelValue", "focus"],
|
|
599
|
-
setup(a, { emit:
|
|
600
|
-
const
|
|
602
|
+
setup(a, { emit: u }) {
|
|
603
|
+
const m = ft(), r = a, s = f(() => r.t ?? m), y = f(() => Te[r.size ?? "md"]), i = f(() => Te[r.dropdownSize ?? r.size ?? "md"]), z = f(() => i.value.vars), T = f(() => r.dropdownSize ?? r.size ?? "md"), S = f(() => T.value !== "xs" && T.value !== "sm"), Q = f(() => r.mode === "date"), se = u, ee = b(null), j = b(null), h = b(!1), P = b(!1), Ge = b(!1), w = b(B), A = b(null), N = b(0), R = b(!1), Ue = b(!1), ie = b(""), de = b(""), C = b(n().format("YYYY-MM-DD")), V = b(void 0), pe = b(""), ce = b(""), I = b(0), G = b(null), Ce = b(null), K = b(null);
|
|
601
604
|
let te = null;
|
|
602
|
-
const ae = b(null),
|
|
605
|
+
const ae = b(null), $e = b(!1), qe = b(typeof window < "u" ? window.innerWidth : 1024), ve = f(() => qe.value < 640), ge = Kt(), x = f(() => {
|
|
603
606
|
var e, t;
|
|
604
|
-
return (e = r.modelValue) != null && e.start ?
|
|
605
|
-
}),
|
|
607
|
+
return (e = r.modelValue) != null && e.start ? n(r.modelValue.start).startOf("day").unix() : dt((t = r.modelValue) == null ? void 0 : t.startUnix);
|
|
608
|
+
}), Y = f(() => {
|
|
606
609
|
var e, t;
|
|
607
|
-
return (e = r.modelValue) != null && e.end ?
|
|
608
|
-
}),
|
|
609
|
-
() =>
|
|
610
|
-
),
|
|
610
|
+
return (e = r.modelValue) != null && e.end ? n(r.modelValue.end).endOf("day").unix() : dt((t = r.modelValue) == null ? void 0 : t.endUnix);
|
|
611
|
+
}), Pe = f(() => x.value != null || Y.value != null), yt = f(
|
|
612
|
+
() => pt(x.value, Y.value, s.value) || r.placeholder || s.value("ui.period_select.Select date")
|
|
613
|
+
), be = f(() => r.disableDate ?? void 0), xt = f(() => pt(x.value, Y.value, s.value) || ""), Ae = f(() => `date-${N.value}`), gt = f(() => `range-${N.value}`), Ie = f(() => r.columns != null ? r.columns : ve.value || w.value !== $ || T.value === "xs" || T.value === "sm" ? 1 : 2), he = f(
|
|
611
614
|
() => !r.minGranularity || r.minGranularity === "day" || r.minGranularity === "week"
|
|
612
|
-
),
|
|
615
|
+
), bt = f(() => r.minGranularity === "month" ? s.value("ui.period_select.Months") : r.minGranularity === "quarter" ? s.value("ui.period_select.Quarters") : r.minGranularity === "year" ? s.value("ui.period_select.Years") : s.value("ui.period_select.Period group title")), U = f(() => {
|
|
613
616
|
if (!r.minGranularity || r.minGranularity === "day" || r.minGranularity === "week")
|
|
614
617
|
return null;
|
|
615
618
|
if (r.minGranularity === "month" || r.minGranularity === "quarter") {
|
|
616
619
|
const e = [I.value * 2 + 1, I.value * 2], t = r.minGranularity === "month";
|
|
617
620
|
return {
|
|
618
|
-
titleStart:
|
|
619
|
-
titleEnd:
|
|
621
|
+
titleStart: n().subtract(e[0], "year").format("YYYY"),
|
|
622
|
+
titleEnd: n().subtract(e[1], "year").format("YYYY"),
|
|
620
623
|
gridCols: t ? "grid-cols-3" : "grid-cols-2",
|
|
621
624
|
unit: r.minGranularity,
|
|
622
|
-
yearGroups: e.map((
|
|
623
|
-
yearLabel:
|
|
624
|
-
items: t ? Array.from({ length: 12 }, (
|
|
625
|
-
date:
|
|
626
|
-
label:
|
|
627
|
-
})) : Array.from({ length: 4 }, (
|
|
628
|
-
date:
|
|
625
|
+
yearGroups: e.map((l) => ({
|
|
626
|
+
yearLabel: n().subtract(l, "year").format("YYYY"),
|
|
627
|
+
items: t ? Array.from({ length: 12 }, (p, g) => ({
|
|
628
|
+
date: n().subtract(l, "year").month(g),
|
|
629
|
+
label: s.value("ui.months_short." + g)
|
|
630
|
+
})) : Array.from({ length: 4 }, (p, g) => ({
|
|
631
|
+
date: n().subtract(l, "year").quarter(g + 1).startOf("quarter"),
|
|
629
632
|
label: `Q${g + 1}`
|
|
630
633
|
}))
|
|
631
634
|
})),
|
|
@@ -633,331 +636,343 @@ const De = (a, o) => o("ui.period_select.date_short", {
|
|
|
633
636
|
};
|
|
634
637
|
}
|
|
635
638
|
return {
|
|
636
|
-
titleStart:
|
|
637
|
-
titleEnd:
|
|
639
|
+
titleStart: n().subtract(I.value * 8 + 7, "year").format("YYYY"),
|
|
640
|
+
titleEnd: n().subtract(I.value * 8, "year").format("YYYY"),
|
|
638
641
|
gridCols: "grid-cols-4",
|
|
639
642
|
unit: "year",
|
|
640
643
|
yearGroups: null,
|
|
641
644
|
flatItems: Array.from({ length: 8 }, (e, t) => {
|
|
642
|
-
const
|
|
643
|
-
return { date:
|
|
645
|
+
const l = n().subtract(I.value * 8 + (7 - t), "year");
|
|
646
|
+
return { date: l, label: l.format("YYYY") };
|
|
644
647
|
})
|
|
645
648
|
};
|
|
646
|
-
}),
|
|
649
|
+
}), Ee = f(() => {
|
|
647
650
|
var e, t;
|
|
648
|
-
return !((e =
|
|
649
|
-
}),
|
|
650
|
-
|
|
651
|
-
const e =
|
|
651
|
+
return !((e = V.value) != null && e.start) || !((t = V.value) != null && t.end) ? !1 : !n(V.value.end).isBefore(n(V.value.start));
|
|
652
|
+
}), Fe = f(() => {
|
|
653
|
+
N.value;
|
|
654
|
+
const e = ct(s.value).filter((l) => l.group === "date").filter((l) => X(l.key, r.minGranularity)), t = r.hideDayAndWeek || !X("day-0", r.minGranularity) ? [] : ye("day", s.value);
|
|
652
655
|
return t.length > 0 ? [
|
|
653
656
|
...e,
|
|
654
657
|
{
|
|
655
658
|
key: "date-history",
|
|
656
659
|
type: "label",
|
|
657
|
-
label:
|
|
660
|
+
label: s.value("ui.period_select.Date history label"),
|
|
658
661
|
group: "date"
|
|
659
662
|
},
|
|
660
663
|
...t
|
|
661
664
|
] : e;
|
|
662
|
-
}),
|
|
663
|
-
|
|
664
|
-
const e =
|
|
665
|
-
return { shortcuts: e, rollingWeek: t, rollingMonth:
|
|
666
|
-
}),
|
|
667
|
-
const { shortcuts: e, rollingWeek: t, rollingMonth:
|
|
665
|
+
}), je = f(() => {
|
|
666
|
+
N.value;
|
|
667
|
+
const e = ct(s.value).filter((D) => D.group === "period").filter((D) => X(D.key, r.minGranularity)), t = r.hideDayAndWeek || !X("week-0", r.minGranularity) ? [] : ye("week", s.value), l = X("month-0", r.minGranularity) ? ye("month", s.value) : [], p = X("quarter-0", r.minGranularity) ? ye("quarter", s.value) : [], g = X("year-0", r.minGranularity) ? ye("year", s.value) : [];
|
|
668
|
+
return { shortcuts: e, rollingWeek: t, rollingMonth: l, rollingQuarter: p, rollingYear: g };
|
|
669
|
+
}), Ne = f(() => {
|
|
670
|
+
const { shortcuts: e, rollingWeek: t, rollingMonth: l, rollingQuarter: p, rollingYear: g } = je.value, D = [...e], q = [
|
|
668
671
|
{ items: t, key: "weeks-history", labelKey: "Weeks history label" },
|
|
669
|
-
{ items:
|
|
670
|
-
{ items:
|
|
672
|
+
{ items: l, key: "months-history", labelKey: "Months history label" },
|
|
673
|
+
{ items: p, key: "quarters-history", labelKey: "Quarters history label" },
|
|
671
674
|
{ items: g, key: "years-history", labelKey: "Years history label" }
|
|
672
675
|
];
|
|
673
|
-
for (const H of
|
|
676
|
+
for (const H of q)
|
|
674
677
|
H.items.length > 0 && (D.push({
|
|
675
678
|
key: H.key,
|
|
676
679
|
type: "label",
|
|
677
|
-
label:
|
|
680
|
+
label: s.value(`ui.period_select.${H.labelKey}`),
|
|
678
681
|
group: "period"
|
|
679
682
|
}), D.push(...H.items));
|
|
680
683
|
return D;
|
|
681
|
-
}),
|
|
684
|
+
}), Ke = f(() => [
|
|
682
685
|
{
|
|
683
686
|
id: "date",
|
|
684
|
-
title:
|
|
685
|
-
subtitle:
|
|
686
|
-
ctaLabel:
|
|
687
|
-
options:
|
|
687
|
+
title: s.value("ui.period_select.Date group title"),
|
|
688
|
+
subtitle: s.value("ui.period_select.Date group subtitle"),
|
|
689
|
+
ctaLabel: s.value("ui.period_select.Select date CTA"),
|
|
690
|
+
options: Fe.value
|
|
688
691
|
},
|
|
689
692
|
{
|
|
690
693
|
id: "period",
|
|
691
|
-
title:
|
|
692
|
-
subtitle:
|
|
693
|
-
ctaLabel:
|
|
694
|
-
options:
|
|
694
|
+
title: s.value("ui.period_select.Period group title"),
|
|
695
|
+
subtitle: s.value("ui.period_select.Period group subtitle"),
|
|
696
|
+
ctaLabel: s.value("ui.period_select.Select dates CTA"),
|
|
697
|
+
options: Ne.value
|
|
695
698
|
}
|
|
696
|
-
]),
|
|
697
|
-
() => r.hideDatePresets ?
|
|
698
|
-
),
|
|
699
|
-
const { shortcuts: e, rollingWeek: t, rollingMonth:
|
|
699
|
+
]), le = f(
|
|
700
|
+
() => r.hideDatePresets ? Ke.value.filter((e) => e.id !== "date") : Ke.value
|
|
701
|
+
), ht = f(() => {
|
|
702
|
+
const { shortcuts: e, rollingWeek: t, rollingMonth: l, rollingQuarter: p } = je.value, g = [...e];
|
|
700
703
|
t.length > 0 && (g.push({
|
|
701
704
|
key: "weeks-history",
|
|
702
705
|
type: "label",
|
|
703
|
-
label:
|
|
706
|
+
label: s.value("ui.period_select.Weeks history label"),
|
|
704
707
|
group: "period"
|
|
705
708
|
}), g.push(...t));
|
|
706
|
-
const D = (
|
|
707
|
-
id:
|
|
709
|
+
const D = (q, H, Lt) => H.length === 0 ? null : {
|
|
710
|
+
id: q,
|
|
708
711
|
title: "",
|
|
709
712
|
subtitle: "",
|
|
710
713
|
ctaLabel: "",
|
|
711
714
|
options: [
|
|
712
|
-
{ key: `${
|
|
715
|
+
{ key: `${q}-label`, type: "label", label: s.value(`ui.period_select.${Lt}`), group: "period" },
|
|
713
716
|
...H
|
|
714
717
|
]
|
|
715
718
|
};
|
|
716
719
|
return [
|
|
717
720
|
{ id: "presets-weeks", title: "", subtitle: "", ctaLabel: "", options: g },
|
|
718
|
-
D("months",
|
|
719
|
-
D("quarters",
|
|
720
|
-
].filter((
|
|
721
|
-
}),
|
|
722
|
-
...
|
|
723
|
-
...
|
|
724
|
-
]),
|
|
725
|
-
() =>
|
|
726
|
-
),
|
|
727
|
-
() =>
|
|
728
|
-
),
|
|
729
|
-
|
|
730
|
-
},
|
|
731
|
-
!
|
|
721
|
+
D("months", l, "Months history label"),
|
|
722
|
+
D("quarters", p, "Quarters history label")
|
|
723
|
+
].filter((q) => q != null && q.options.length > 0);
|
|
724
|
+
}), kt = f(() => ht.value), Yt = f(() => [
|
|
725
|
+
...Fe.value.filter((e) => e.type === "option"),
|
|
726
|
+
...Ne.value.filter((e) => e.type === "option")
|
|
727
|
+
]), wt = f(
|
|
728
|
+
() => P.value && w.value === B || A.value === ze
|
|
729
|
+
), Dt = f(
|
|
730
|
+
() => P.value && w.value === $ || A.value === oe
|
|
731
|
+
), Qe = () => {
|
|
732
|
+
N.value++;
|
|
733
|
+
}, Mt = () => {
|
|
734
|
+
!ee.value || !j.value || ve.value || It(ee.value, j.value, {
|
|
732
735
|
placement: "bottom-start",
|
|
733
736
|
strategy: "fixed",
|
|
734
|
-
middleware: [
|
|
737
|
+
middleware: [Et(6), Ft(), jt({ padding: 8 })]
|
|
735
738
|
}).then(({ x: e, y: t }) => {
|
|
736
|
-
|
|
739
|
+
j.value && Object.assign(j.value.style, {
|
|
737
740
|
left: `${e}px`,
|
|
738
741
|
top: `${t}px`
|
|
739
742
|
});
|
|
740
743
|
});
|
|
741
|
-
},
|
|
742
|
-
te && te(),
|
|
743
|
-
},
|
|
744
|
+
}, He = () => {
|
|
745
|
+
te && te(), ee.value && j.value && !ve.value && (te = qt(ee.value, j.value, Mt));
|
|
746
|
+
}, Je = () => {
|
|
744
747
|
te && (te(), te = null);
|
|
745
|
-
},
|
|
746
|
-
r.asDateString ?
|
|
747
|
-
start: e ?
|
|
748
|
-
end: t ?
|
|
749
|
-
}) :
|
|
748
|
+
}, L = (e, t, l = null) => {
|
|
749
|
+
r.asDateString ? se("update:modelValue", {
|
|
750
|
+
start: e ? n.unix(e).format("YYYY-MM-DD") : null,
|
|
751
|
+
end: t ? n.unix(t).format("YYYY-MM-DD") : null
|
|
752
|
+
}) : se("update:modelValue", {
|
|
750
753
|
startUnix: e,
|
|
751
754
|
endUnix: t,
|
|
752
|
-
kind:
|
|
755
|
+
kind: da(e, t, l)
|
|
753
756
|
});
|
|
754
|
-
},
|
|
757
|
+
}, ke = () => {
|
|
755
758
|
var e, t;
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
759
|
+
if (Ge.value = !1, h.value)
|
|
760
|
+
h.value = !1;
|
|
761
|
+
else {
|
|
762
|
+
if (R.value = !1, ae.value = r.modelValue ? { ...r.modelValue } : null, h.value = !0, Q.value) {
|
|
763
|
+
w.value = B, re(), E(() => {
|
|
764
|
+
R.value = !0;
|
|
765
|
+
});
|
|
766
|
+
return;
|
|
767
|
+
}
|
|
768
|
+
((e = r.modelValue) == null ? void 0 : e.kind) === B ? (w.value = B, re()) : ((t = r.modelValue) == null ? void 0 : t.kind) === $ ? (w.value = $, fe()) : r.asDateString || r.editable ? (w.value = B, re()) : (w.value = $, fe()), P.value = !0, E(() => {
|
|
769
|
+
R.value = !0;
|
|
770
|
+
});
|
|
771
|
+
}
|
|
772
|
+
}, Ot = () => {
|
|
773
|
+
se("focus"), h.value || ke();
|
|
774
|
+
}, _t = () => {
|
|
775
|
+
if (le.value.length === 0) {
|
|
776
|
+
ke();
|
|
764
777
|
return;
|
|
765
778
|
}
|
|
766
|
-
|
|
767
|
-
},
|
|
779
|
+
Ge.value = !0, P.value = !1, h.value || (ae.value = r.modelValue ? { ...r.modelValue } : null), h.value = !h.value, h.value && E(He);
|
|
780
|
+
}, ne = () => {
|
|
768
781
|
h.value = !1;
|
|
769
|
-
},
|
|
770
|
-
|
|
771
|
-
},
|
|
782
|
+
}, St = () => {
|
|
783
|
+
L(null, null, null), A.value = null, h.value = !1;
|
|
784
|
+
}, Xe = (e) => {
|
|
772
785
|
if (e.type !== "option" || !e.resolveRange)
|
|
773
786
|
return;
|
|
774
|
-
const [t,
|
|
775
|
-
|
|
776
|
-
},
|
|
777
|
-
|
|
778
|
-
|
|
787
|
+
const [t, l] = e.resolveRange();
|
|
788
|
+
L(t, l, e.group), A.value = e.key, h.value = !1;
|
|
789
|
+
}, Ye = (e, t, l = null) => {
|
|
790
|
+
L(e, t, l), h.value = !1;
|
|
791
|
+
}, Bt = () => {
|
|
792
|
+
h.value = !1, P.value = !1, E(() => {
|
|
793
|
+
ae.value ? L(
|
|
779
794
|
ae.value.startUnix ?? null,
|
|
780
795
|
ae.value.endUnix ?? null,
|
|
781
796
|
ae.value.kind ?? null
|
|
782
|
-
) :
|
|
797
|
+
) : L(null, null, null);
|
|
783
798
|
});
|
|
784
|
-
},
|
|
785
|
-
const e =
|
|
786
|
-
|
|
787
|
-
},
|
|
788
|
-
|
|
789
|
-
start:
|
|
790
|
-
end:
|
|
791
|
-
} :
|
|
792
|
-
},
|
|
793
|
-
w.value !== e && (
|
|
794
|
-
|
|
799
|
+
}, re = () => {
|
|
800
|
+
const e = x.value && Y.value && n.unix(x.value).isSame(n.unix(Y.value), "day") ? x.value : Y.value || x.value || n().unix();
|
|
801
|
+
C.value = e ? n.unix(e).format("YYYY-MM-DD") : n().format("YYYY-MM-DD");
|
|
802
|
+
}, fe = () => {
|
|
803
|
+
x.value || Y.value ? V.value = {
|
|
804
|
+
start: x.value ? n.unix(x.value).format("YYYY-MM-DD") : void 0,
|
|
805
|
+
end: Y.value ? n.unix(Y.value).format("YYYY-MM-DD") : void 0
|
|
806
|
+
} : V.value = void 0, pe.value = x.value ? n.unix(x.value).format("DD.MM.YYYY") : "", ce.value = Y.value ? n.unix(Y.value).format("DD.MM.YYYY") : "";
|
|
807
|
+
}, Ze = (e) => {
|
|
808
|
+
w.value !== e && (R.value = !1, w.value = e, e === B ? re() : fe(), E(() => {
|
|
809
|
+
R.value = !0;
|
|
795
810
|
}));
|
|
796
|
-
},
|
|
797
|
-
|
|
798
|
-
|
|
811
|
+
}, zt = (e) => {
|
|
812
|
+
R.value = !1, w.value = e, e === B ? re() : fe(), P.value = !0, E(() => {
|
|
813
|
+
R.value = !0;
|
|
799
814
|
});
|
|
800
|
-
},
|
|
801
|
-
if (!
|
|
815
|
+
}, Vt = (e = !0) => {
|
|
816
|
+
if (!C.value)
|
|
802
817
|
return;
|
|
803
|
-
const t =
|
|
804
|
-
t.isValid() && (
|
|
805
|
-
},
|
|
806
|
-
var
|
|
807
|
-
(
|
|
808
|
-
},
|
|
809
|
-
e && (
|
|
810
|
-
},
|
|
818
|
+
const t = n(C.value);
|
|
819
|
+
t.isValid() && (L(t.startOf("day").unix(), t.endOf("day").unix(), B), A.value = ze, e && (h.value = !1));
|
|
820
|
+
}, we = (e, t) => {
|
|
821
|
+
var l;
|
|
822
|
+
(l = t.target) == null || l.blur();
|
|
823
|
+
}, et = (e) => {
|
|
824
|
+
e && (C.value = e, !(!P.value && !Q.value) && Vt());
|
|
825
|
+
}, Gt = (e) => {
|
|
811
826
|
if (!e)
|
|
812
827
|
return;
|
|
813
|
-
|
|
814
|
-
const t =
|
|
815
|
-
t.isValid() && (
|
|
816
|
-
},
|
|
817
|
-
const e =
|
|
828
|
+
C.value = e;
|
|
829
|
+
const t = n(e);
|
|
830
|
+
t.isValid() && (ie.value = t.format("DD.MM.YYYY"), L(t.startOf("day").unix(), t.endOf("day").unix(), B));
|
|
831
|
+
}, tt = () => {
|
|
832
|
+
const e = xe(ie.value);
|
|
818
833
|
if (e) {
|
|
819
|
-
|
|
820
|
-
const t =
|
|
821
|
-
t.isValid() &&
|
|
834
|
+
C.value = e, N.value++;
|
|
835
|
+
const t = n(e);
|
|
836
|
+
t.isValid() && L(t.startOf("day").unix(), t.endOf("day").unix(), B);
|
|
822
837
|
}
|
|
823
|
-
},
|
|
824
|
-
|
|
825
|
-
|
|
838
|
+
}, Ct = () => {
|
|
839
|
+
$e.value = !0, setTimeout(() => {
|
|
840
|
+
$e.value = !1;
|
|
826
841
|
}, 0);
|
|
827
|
-
},
|
|
828
|
-
if (
|
|
842
|
+
}, at = () => {
|
|
843
|
+
if ($e.value)
|
|
829
844
|
return;
|
|
830
|
-
const e =
|
|
845
|
+
const e = de.value.trim(), t = e.split(/\s*-\s*/);
|
|
831
846
|
if (t.length === 2) {
|
|
832
|
-
const
|
|
833
|
-
if (
|
|
834
|
-
const D =
|
|
835
|
-
if (D.isValid() &&
|
|
836
|
-
|
|
847
|
+
const p = xe(t[0]), g = xe(t[1]);
|
|
848
|
+
if (p && g) {
|
|
849
|
+
const D = n(p), q = n(g);
|
|
850
|
+
if (D.isValid() && q.isValid() && !q.isBefore(D)) {
|
|
851
|
+
L(D.startOf("day").unix(), q.endOf("day").unix(), $), A.value = oe;
|
|
837
852
|
return;
|
|
838
853
|
}
|
|
839
854
|
}
|
|
840
855
|
}
|
|
841
|
-
const
|
|
842
|
-
if (
|
|
843
|
-
|
|
844
|
-
const
|
|
845
|
-
|
|
856
|
+
const l = xe(e);
|
|
857
|
+
if (l) {
|
|
858
|
+
C.value = l, N.value++, A.value = ze;
|
|
859
|
+
const p = n(l);
|
|
860
|
+
p.isValid() && L(p.startOf("day").unix(), p.endOf("day").unix(), B);
|
|
846
861
|
}
|
|
847
|
-
},
|
|
862
|
+
}, $t = () => {
|
|
848
863
|
var e, t;
|
|
849
|
-
!
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
),
|
|
854
|
-
},
|
|
855
|
-
const
|
|
856
|
-
|
|
857
|
-
},
|
|
858
|
-
if (!
|
|
859
|
-
|
|
864
|
+
!Ee.value || !((e = V.value) != null && e.start) || !((t = V.value) != null && t.end) || (L(
|
|
865
|
+
n(V.value.start).startOf("day").unix(),
|
|
866
|
+
n(V.value.end).endOf("day").unix(),
|
|
867
|
+
$
|
|
868
|
+
), A.value = oe, h.value = !1);
|
|
869
|
+
}, De = (e) => {
|
|
870
|
+
const l = xe((e === "start" ? pe : ce).value);
|
|
871
|
+
l && (V.value = { ...V.value || {}, [e]: l });
|
|
872
|
+
}, lt = (e, t) => {
|
|
873
|
+
if (!G.value)
|
|
874
|
+
G.value = e;
|
|
860
875
|
else {
|
|
861
|
-
const
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
),
|
|
876
|
+
const l = G.value.isBefore(e) ? G.value : e, p = G.value.isBefore(e) ? e : G.value;
|
|
877
|
+
L(
|
|
878
|
+
l.startOf(t).startOf("day").unix(),
|
|
879
|
+
p.endOf(t).endOf("day").unix(),
|
|
880
|
+
$
|
|
881
|
+
), A.value = oe, G.value = null, Ce.value = null, h.value = !1;
|
|
867
882
|
}
|
|
868
|
-
},
|
|
869
|
-
if (
|
|
870
|
-
if (
|
|
871
|
-
const
|
|
872
|
-
return (e.isSame(
|
|
883
|
+
}, nt = (e, t) => {
|
|
884
|
+
if (G.value && !Ce.value) {
|
|
885
|
+
if (K.value) {
|
|
886
|
+
const l = G.value.isBefore(K.value) ? G.value : K.value, p = G.value.isBefore(K.value) ? K.value : G.value;
|
|
887
|
+
return (e.isSame(l, t) || e.isAfter(l, t)) && (e.isSame(p, t) || e.isBefore(p, t));
|
|
873
888
|
}
|
|
874
|
-
return e.isSame(
|
|
889
|
+
return e.isSame(G.value, t);
|
|
875
890
|
}
|
|
876
|
-
if (
|
|
877
|
-
const
|
|
878
|
-
return (e.isSame(
|
|
891
|
+
if (x.value && Y.value) {
|
|
892
|
+
const l = n.unix(x.value), p = n.unix(Y.value);
|
|
893
|
+
return (e.isSame(l, t) || e.isAfter(l, t)) && (e.isSame(p, t) || e.isBefore(p, t));
|
|
879
894
|
}
|
|
880
895
|
return !1;
|
|
881
|
-
},
|
|
882
|
-
|
|
883
|
-
},
|
|
884
|
-
|
|
885
|
-
},
|
|
886
|
-
if (!
|
|
896
|
+
}, rt = (e) => {
|
|
897
|
+
G.value && (K.value = e);
|
|
898
|
+
}, ot = () => {
|
|
899
|
+
K.value = null;
|
|
900
|
+
}, Pt = () => {
|
|
901
|
+
if (!x.value && !Y.value)
|
|
887
902
|
return null;
|
|
888
|
-
const e =
|
|
903
|
+
const e = Yt.value.find((t) => {
|
|
889
904
|
if (!t.resolveRange)
|
|
890
905
|
return !1;
|
|
891
|
-
const [
|
|
906
|
+
const [l, p] = t.resolveRange(), g = l == null && x.value == null || l != null && x.value != null && l === x.value, D = p == null && Y.value == null || p != null && Y.value != null && p === Y.value;
|
|
892
907
|
return g && D;
|
|
893
908
|
});
|
|
894
|
-
return e ? e.key :
|
|
895
|
-
},
|
|
896
|
-
h.value = !1,
|
|
897
|
-
},
|
|
898
|
-
|
|
909
|
+
return e ? e.key : x.value && Y.value && n.unix(x.value).isSame(n.unix(Y.value), "day") ? ze : oe;
|
|
910
|
+
}, At = () => {
|
|
911
|
+
h.value = !1, ge.open();
|
|
912
|
+
}, Rt = (e) => {
|
|
913
|
+
Xe(e), ge.close();
|
|
899
914
|
};
|
|
900
|
-
|
|
901
|
-
r.editable && (
|
|
902
|
-
}, { immediate: !0 }),
|
|
903
|
-
e ? (
|
|
904
|
-
|
|
905
|
-
}))) : (
|
|
906
|
-
}),
|
|
907
|
-
() => [
|
|
915
|
+
me(xt, (e) => {
|
|
916
|
+
r.editable && (de.value = e);
|
|
917
|
+
}, { immediate: !0 }), me(h, (e) => {
|
|
918
|
+
e ? (Qe(), E(He), !Q.value && (!he.value || le.value.length === 0) && !P.value && (R.value = !1, w.value = $, fe(), P.value = !0, E(() => {
|
|
919
|
+
R.value = !0;
|
|
920
|
+
}))) : (Je(), R.value = !1, P.value = !1, Ge.value = !1, I.value = 0, G.value = null, Ce.value = null, K.value = null);
|
|
921
|
+
}), me(
|
|
922
|
+
() => [x.value, Y.value, N.value],
|
|
908
923
|
() => {
|
|
909
|
-
|
|
924
|
+
A.value = Pt();
|
|
910
925
|
},
|
|
911
926
|
{ immediate: !0 }
|
|
912
|
-
),
|
|
927
|
+
), me(
|
|
913
928
|
() => r.minGranularity,
|
|
914
929
|
() => {
|
|
915
|
-
|
|
930
|
+
Qe(), !he.value && w.value === B && (w.value = $);
|
|
916
931
|
}
|
|
917
|
-
),
|
|
918
|
-
e != null && e.start && (
|
|
932
|
+
), me(V, (e) => {
|
|
933
|
+
e != null && e.start && (pe.value = n(e.start).format("DD.MM.YYYY")), e != null && e.end && (ce.value = n(e.end).format("DD.MM.YYYY"));
|
|
919
934
|
});
|
|
920
|
-
const
|
|
921
|
-
|
|
922
|
-
},
|
|
923
|
-
var t,
|
|
924
|
-
h.value && ((t =
|
|
935
|
+
const Re = () => {
|
|
936
|
+
qe.value = window.innerWidth;
|
|
937
|
+
}, ut = (e) => {
|
|
938
|
+
var t, l;
|
|
939
|
+
h.value && ((t = ee.value) != null && t.contains(e.target) || (l = j.value) != null && l.contains(e.target) || ne());
|
|
925
940
|
};
|
|
926
|
-
return
|
|
927
|
-
|
|
928
|
-
|
|
941
|
+
return Tt(() => {
|
|
942
|
+
Re(), window.addEventListener("resize", Re), document.addEventListener("click", ut), r.mode === "inline" && (re(), x.value && (ie.value = n.unix(x.value).format("DD.MM.YYYY")), E(() => {
|
|
943
|
+
Ue.value = !0;
|
|
929
944
|
}));
|
|
930
|
-
}),
|
|
931
|
-
|
|
932
|
-
}), (e, t) => (
|
|
945
|
+
}), Ut(() => {
|
|
946
|
+
Je(), window.removeEventListener("resize", Re), document.removeEventListener("click", ut);
|
|
947
|
+
}), (e, t) => (o(), d("div", {
|
|
933
948
|
class: "relative",
|
|
934
949
|
ref_key: "containerRef",
|
|
935
|
-
ref:
|
|
936
|
-
style:
|
|
950
|
+
ref: ee,
|
|
951
|
+
style: ue(z.value)
|
|
937
952
|
}, [
|
|
938
|
-
a.mode === "inline" ? (
|
|
953
|
+
a.mode === "inline" ? (o(), d("div", {
|
|
939
954
|
key: 0,
|
|
940
955
|
class: "one-pp-panel",
|
|
941
|
-
style:
|
|
956
|
+
style: ue(z.value)
|
|
942
957
|
}, [
|
|
943
|
-
|
|
958
|
+
Me(v("input", {
|
|
944
959
|
type: "text",
|
|
945
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
946
|
-
onBlur:
|
|
947
|
-
onKeyup:
|
|
960
|
+
"onUpdate:modelValue": t[0] || (t[0] = (l) => ie.value = l),
|
|
961
|
+
onBlur: tt,
|
|
962
|
+
onKeyup: Oe(tt, ["enter"]),
|
|
948
963
|
placeholder: a.placeholder || "DD.MM.YYYY",
|
|
949
964
|
class: "manual-input mb-2"
|
|
950
|
-
}, null, 40,
|
|
951
|
-
[
|
|
965
|
+
}, null, 40, ca), [
|
|
966
|
+
[_e, ie.value]
|
|
952
967
|
]),
|
|
953
|
-
|
|
954
|
-
key:
|
|
955
|
-
modelValue:
|
|
968
|
+
Ue.value ? (o(), F(M(Be), {
|
|
969
|
+
key: Ae.value,
|
|
970
|
+
modelValue: C.value,
|
|
956
971
|
"onUpdate:modelValue": [
|
|
957
|
-
t[1] || (t[1] = (
|
|
958
|
-
|
|
972
|
+
t[1] || (t[1] = (l) => C.value = l),
|
|
973
|
+
Gt
|
|
959
974
|
],
|
|
960
|
-
onDayclick:
|
|
975
|
+
onDayclick: we,
|
|
961
976
|
"is-inline": "",
|
|
962
977
|
color: "gray",
|
|
963
978
|
"trim-weeks": "",
|
|
@@ -965,359 +980,405 @@ const De = (a, o) => o("ui.period_select.date_short", {
|
|
|
965
980
|
rows: 1,
|
|
966
981
|
mode: "date",
|
|
967
982
|
masks: { title: "MMMM YYYY" },
|
|
968
|
-
"disabled-dates":
|
|
969
|
-
}, null, 8, ["modelValue", "disabled-dates"])) :
|
|
970
|
-
], 4)) : (
|
|
983
|
+
"disabled-dates": be.value
|
|
984
|
+
}, null, 8, ["modelValue", "disabled-dates"])) : k("", !0)
|
|
985
|
+
], 4)) : (o(), d("div", {
|
|
971
986
|
key: 1,
|
|
972
987
|
class: c(["flex items-center overflow-hidden", [
|
|
973
|
-
|
|
988
|
+
y.value.trigger,
|
|
974
989
|
a.editable ? ["border transition-colors", a.noBorder ? "border-transparent focus-within:border-blue-500" : "border-gray-200 focus-within:border-blue-500"] : [{ border: !a.noBorder }, "border-gray-200"]
|
|
975
990
|
]])
|
|
976
991
|
}, [
|
|
977
|
-
a.editable ? (
|
|
992
|
+
a.editable ? (o(), d("div", {
|
|
978
993
|
key: 0,
|
|
979
|
-
class: c(["flex items-center h-full bg-white flex-1", [
|
|
994
|
+
class: c(["flex items-center h-full bg-white flex-1", [y.value.triggerButton]])
|
|
980
995
|
}, [
|
|
981
996
|
v("button", {
|
|
982
|
-
onClick:
|
|
997
|
+
onClick: ke,
|
|
983
998
|
type: "button",
|
|
984
999
|
class: "flex-shrink-0 hover:text-blue-600 transition-colors"
|
|
985
1000
|
}, [
|
|
986
|
-
J(
|
|
987
|
-
class: c([
|
|
1001
|
+
J(M(We), {
|
|
1002
|
+
class: c([y.value.triggerIcon])
|
|
988
1003
|
}, null, 8, ["class"])
|
|
989
1004
|
]),
|
|
990
|
-
|
|
1005
|
+
Me(v("input", {
|
|
991
1006
|
type: "text",
|
|
992
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
993
|
-
onFocus:
|
|
994
|
-
onBlur:
|
|
995
|
-
onKeyup:
|
|
1007
|
+
"onUpdate:modelValue": t[2] || (t[2] = (l) => de.value = l),
|
|
1008
|
+
onFocus: Ot,
|
|
1009
|
+
onBlur: at,
|
|
1010
|
+
onKeyup: Oe(at, ["enter"]),
|
|
996
1011
|
placeholder: a.placeholder || "DD.MM.YYYY",
|
|
997
|
-
class: c(["w-full bg-transparent outline-none truncate !border-0 !shadow-none !ring-0 !p-0", [
|
|
998
|
-
}, null, 42,
|
|
999
|
-
[
|
|
1012
|
+
class: c(["w-full bg-transparent outline-none truncate !border-0 !shadow-none !ring-0 !p-0", [Pe.value || de.value ? "text-gray-900 font-medium" : "text-gray-600 font-normal"]])
|
|
1013
|
+
}, null, 42, va), [
|
|
1014
|
+
[_e, de.value]
|
|
1000
1015
|
])
|
|
1001
|
-
], 2)) : (
|
|
1016
|
+
], 2)) : (o(), d("button", {
|
|
1002
1017
|
key: 1,
|
|
1003
|
-
onClick:
|
|
1018
|
+
onClick: ke,
|
|
1004
1019
|
type: "button",
|
|
1005
|
-
class: c(["flex items-center h-full bg-white hover:bg-gray-50 transition-colors flex-1", [
|
|
1020
|
+
class: c(["flex items-center h-full bg-white hover:bg-gray-50 transition-colors flex-1", [y.value.triggerButton, Pe.value ? "text-gray-900 font-medium" : "text-gray-600 font-normal"]])
|
|
1006
1021
|
}, [
|
|
1007
|
-
J(
|
|
1008
|
-
class: c([
|
|
1022
|
+
J(M(We), {
|
|
1023
|
+
class: c([y.value.triggerIcon, "flex-shrink-0"])
|
|
1009
1024
|
}, null, 8, ["class"]),
|
|
1010
|
-
v("span",
|
|
1025
|
+
v("span", fa, _(yt.value), 1)
|
|
1011
1026
|
], 2)),
|
|
1012
|
-
a.mode === "short" ? (
|
|
1027
|
+
a.mode === "short" ? (o(), d(W, { key: 2 }, [
|
|
1013
1028
|
v("div", {
|
|
1014
|
-
class: c(["w-px bg-gray-200",
|
|
1029
|
+
class: c(["w-px bg-gray-200", y.value.triggerDivider])
|
|
1015
1030
|
}, null, 2),
|
|
1016
1031
|
v("button", {
|
|
1017
|
-
onClick:
|
|
1032
|
+
onClick: _t,
|
|
1018
1033
|
type: "button",
|
|
1019
|
-
class: c(["flex items-center justify-center h-full bg-white hover:bg-gray-50 transition-colors",
|
|
1034
|
+
class: c(["flex items-center justify-center h-full bg-white hover:bg-gray-50 transition-colors", y.value.triggerAction])
|
|
1020
1035
|
}, [
|
|
1021
|
-
J(
|
|
1022
|
-
class: c([
|
|
1036
|
+
J(M(Ht), {
|
|
1037
|
+
class: c([y.value.triggerIcon, "text-gray-600"])
|
|
1023
1038
|
}, null, 8, ["class"])
|
|
1024
1039
|
], 2)
|
|
1025
|
-
], 64)) :
|
|
1026
|
-
a.mode === "full" ? (
|
|
1040
|
+
], 64)) : k("", !0),
|
|
1041
|
+
a.mode === "full" ? (o(), d(W, { key: 3 }, [
|
|
1027
1042
|
v("div", {
|
|
1028
|
-
class: c(["w-px bg-gray-200",
|
|
1043
|
+
class: c(["w-px bg-gray-200", y.value.triggerDivider])
|
|
1029
1044
|
}, null, 2),
|
|
1030
1045
|
v("button", {
|
|
1031
|
-
onClick:
|
|
1046
|
+
onClick: At,
|
|
1032
1047
|
type: "button",
|
|
1033
|
-
class: c(["flex items-center justify-center h-full bg-white hover:bg-gray-50 transition-colors",
|
|
1048
|
+
class: c(["flex items-center justify-center h-full bg-white hover:bg-gray-50 transition-colors", y.value.triggerAction])
|
|
1034
1049
|
}, [
|
|
1035
|
-
J(
|
|
1036
|
-
class: c([
|
|
1050
|
+
J(M(aa), {
|
|
1051
|
+
class: c([y.value.triggerIcon, "text-gray-600"])
|
|
1037
1052
|
}, null, 8, ["class"])
|
|
1038
1053
|
], 2)
|
|
1039
|
-
], 64)) :
|
|
1040
|
-
|
|
1054
|
+
], 64)) : k("", !0),
|
|
1055
|
+
Pe.value && !a.noClear ? (o(), d(W, { key: 4 }, [
|
|
1041
1056
|
v("div", {
|
|
1042
|
-
class: c(["w-px bg-gray-200",
|
|
1057
|
+
class: c(["w-px bg-gray-200", y.value.triggerDivider])
|
|
1043
1058
|
}, null, 2),
|
|
1044
1059
|
v("button", {
|
|
1045
|
-
onClick:
|
|
1060
|
+
onClick: St,
|
|
1046
1061
|
type: "button",
|
|
1047
|
-
class: c(["flex items-center justify-center h-full bg-white hover:bg-gray-50 transition-colors",
|
|
1062
|
+
class: c(["flex items-center justify-center h-full bg-white hover:bg-gray-50 transition-colors", y.value.triggerAction])
|
|
1048
1063
|
}, [
|
|
1049
|
-
J(
|
|
1050
|
-
class: c([
|
|
1064
|
+
J(M(Qt), {
|
|
1065
|
+
class: c([y.value.clearIcon, "text-gray-600"])
|
|
1051
1066
|
}, null, 8, ["class"])
|
|
1052
1067
|
], 2)
|
|
1053
|
-
], 64)) :
|
|
1068
|
+
], 64)) : k("", !0)
|
|
1054
1069
|
], 2)),
|
|
1055
|
-
(
|
|
1056
|
-
h.value &&
|
|
1070
|
+
(o(), F(st, { to: "body" }, [
|
|
1071
|
+
h.value && ve.value ? (o(), d("div", {
|
|
1057
1072
|
key: 0,
|
|
1058
1073
|
class: "fixed inset-0 z-40 bg-black/20",
|
|
1059
|
-
onClick:
|
|
1060
|
-
})) :
|
|
1074
|
+
onClick: ne
|
|
1075
|
+
})) : k("", !0)
|
|
1061
1076
|
])),
|
|
1062
|
-
(
|
|
1063
|
-
h.value ? (
|
|
1077
|
+
(o(), F(st, { to: "body" }, [
|
|
1078
|
+
h.value ? (o(), d("div", {
|
|
1064
1079
|
key: 0,
|
|
1065
1080
|
ref_key: "dropdownRef",
|
|
1066
|
-
ref:
|
|
1081
|
+
ref: j,
|
|
1067
1082
|
class: c(["dropdown-menu bg-white shadow-xl border border-gray-200 z-[9999] overflow-y-auto rounded-t-2xl sm:rounded-lg", [
|
|
1068
|
-
|
|
1069
|
-
|
|
1083
|
+
i.value.dropdown,
|
|
1084
|
+
ve.value ? "fixed inset-x-0 bottom-0 max-h-[93vh]" : "fixed max-h-[85vh]"
|
|
1070
1085
|
]]),
|
|
1071
|
-
style:
|
|
1072
|
-
onMousedown:
|
|
1086
|
+
style: ue(z.value),
|
|
1087
|
+
onMousedown: Ct
|
|
1073
1088
|
}, [
|
|
1074
|
-
t[
|
|
1089
|
+
t[16] || (t[16] = v("div", { class: "sm:hidden flex justify-center pb-2" }, [
|
|
1075
1090
|
v("div", { class: "w-10 h-1 bg-gray-300 rounded-full" })
|
|
1076
1091
|
], -1)),
|
|
1077
|
-
|
|
1092
|
+
Q.value ? (o(), d("div", {
|
|
1078
1093
|
key: 0,
|
|
1079
|
-
class: c(["
|
|
1094
|
+
class: c(["picker-panel one-pp-panel", i.value.panelGap]),
|
|
1095
|
+
style: ue(z.value)
|
|
1080
1096
|
}, [
|
|
1081
|
-
(
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1097
|
+
Se(e.$slots, "presets-top", {
|
|
1098
|
+
select: Ye,
|
|
1099
|
+
close: ne,
|
|
1100
|
+
value: a.modelValue
|
|
1101
|
+
}, void 0, !0),
|
|
1102
|
+
Se(e.$slots, "presets-bottom", {
|
|
1103
|
+
select: Ye,
|
|
1104
|
+
close: ne,
|
|
1105
|
+
value: a.modelValue
|
|
1106
|
+
}, void 0, !0),
|
|
1107
|
+
R.value ? (o(), F(M(Be), {
|
|
1108
|
+
key: Ae.value,
|
|
1109
|
+
modelValue: C.value,
|
|
1110
|
+
"onUpdate:modelValue": [
|
|
1111
|
+
t[3] || (t[3] = (l) => C.value = l),
|
|
1112
|
+
et
|
|
1113
|
+
],
|
|
1114
|
+
onDayclick: we,
|
|
1115
|
+
"is-inline": "",
|
|
1116
|
+
color: "gray",
|
|
1117
|
+
"trim-weeks": "",
|
|
1118
|
+
columns: 1,
|
|
1119
|
+
rows: 1,
|
|
1120
|
+
mode: "date",
|
|
1121
|
+
masks: { title: "MMMM YYYY" },
|
|
1122
|
+
"disabled-dates": be.value
|
|
1123
|
+
}, null, 8, ["modelValue", "disabled-dates"])) : k("", !0)
|
|
1124
|
+
], 6)) : (o(), d(W, { key: 1 }, [
|
|
1125
|
+
!P.value && (le.value.length > 0 || e.$slots["presets-top"] || e.$slots["presets-bottom"]) ? (o(), d("div", ma, [
|
|
1126
|
+
Se(e.$slots, "presets-top", {
|
|
1127
|
+
select: Ye,
|
|
1128
|
+
close: ne,
|
|
1129
|
+
value: a.modelValue
|
|
1130
|
+
}, void 0, !0),
|
|
1131
|
+
le.value.length > 0 ? (o(), d("div", {
|
|
1132
|
+
key: 0,
|
|
1133
|
+
class: c(["flex flex-col gap-4 w-full", S.value && le.value.length > 1 ? "sm:grid sm:gap-3 sm:grid-cols-2" : ""])
|
|
1134
|
+
}, [
|
|
1135
|
+
(o(!0), d(W, null, Z(le.value, (l) => (o(), d("section", {
|
|
1136
|
+
key: l.id,
|
|
1137
|
+
class: "flex flex-col picker-group"
|
|
1096
1138
|
}, [
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1139
|
+
v("div", ya, [
|
|
1140
|
+
v("p", {
|
|
1141
|
+
class: c([i.value.groupTitle, "text-gray-700"])
|
|
1142
|
+
}, _(l.title), 3),
|
|
1143
|
+
v("span", {
|
|
1144
|
+
class: c([i.value.groupSubtitle, "text-gray-500"])
|
|
1145
|
+
}, _(l.subtitle), 3)
|
|
1146
|
+
]),
|
|
1147
|
+
v("div", xa, [
|
|
1148
|
+
(o(!0), d(W, null, Z(l.options, (p) => (o(), d("div", {
|
|
1149
|
+
key: p.key
|
|
1150
|
+
}, [
|
|
1151
|
+
p.type === "label" ? (o(), d("p", {
|
|
1152
|
+
key: 0,
|
|
1153
|
+
class: c([i.value.presetLabel, "uppercase tracking-wide text-gray-500 mt-4 mb-1"])
|
|
1154
|
+
}, _(p.label), 3)) : (o(), d("button", {
|
|
1155
|
+
key: 1,
|
|
1156
|
+
class: c(["picker-option", { "picker-option--active": A.value === p.key }]),
|
|
1157
|
+
onClick: (g) => Xe(p),
|
|
1158
|
+
type: "button"
|
|
1159
|
+
}, [
|
|
1160
|
+
v("span", ba, _(p.label), 1),
|
|
1161
|
+
p.description ? (o(), d("span", ha, _(p.description), 1)) : k("", !0)
|
|
1162
|
+
], 10, ga))
|
|
1163
|
+
]))), 128))
|
|
1164
|
+
]),
|
|
1165
|
+
J(M(Le), {
|
|
1166
|
+
class: c(["mt-3 w-full", [i.value.ctaButton, {
|
|
1167
|
+
"picker-cta--active": l.id === "date" ? wt.value : Dt.value
|
|
1168
|
+
}]]),
|
|
1169
|
+
size: i.value.ctaButtonSize,
|
|
1170
|
+
variant: l.id === "date" ? "primary" : "secondary",
|
|
1171
|
+
icon: l.id === "date" ? M(We) : M(it),
|
|
1172
|
+
label: l.ctaLabel,
|
|
1173
|
+
onClick: (p) => zt(l.id === "date" ? "date" : "range")
|
|
1174
|
+
}, null, 8, ["class", "size", "variant", "icon", "label", "onClick"])
|
|
1109
1175
|
]))), 128))
|
|
1110
|
-
]),
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
]))), 128))
|
|
1122
|
-
], 2)) : Y("", !0),
|
|
1123
|
-
V.value ? (u(), p("div", {
|
|
1124
|
-
key: 1,
|
|
1125
|
-
class: c(["picker-panel one-pp-panel", s.value.panelGap]),
|
|
1126
|
-
style: xe(C.value)
|
|
1127
|
-
}, [
|
|
1128
|
-
v("div", {
|
|
1129
|
-
class: c(["grid gap-2", ye.value ? "grid-cols-2" : "grid-cols-1"])
|
|
1176
|
+
], 2)) : k("", !0),
|
|
1177
|
+
Se(e.$slots, "presets-bottom", {
|
|
1178
|
+
select: Ye,
|
|
1179
|
+
close: ne,
|
|
1180
|
+
value: a.modelValue
|
|
1181
|
+
}, void 0, !0)
|
|
1182
|
+
])) : k("", !0),
|
|
1183
|
+
P.value ? (o(), d("div", {
|
|
1184
|
+
key: 1,
|
|
1185
|
+
class: c(["picker-panel one-pp-panel", i.value.panelGap]),
|
|
1186
|
+
style: ue(z.value)
|
|
1130
1187
|
}, [
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
w.value === "date" ? "border-blue-500 bg-blue-50 text-blue-700" : "border-gray-200 text-gray-700 hover:border-blue-200 hover:text-blue-700"
|
|
1137
|
-
]]),
|
|
1138
|
-
onClick: t[3] || (t[3] = (n) => He("date"))
|
|
1139
|
-
}, O(i.value("ui.period_select.Date group title")), 3)) : Y("", !0),
|
|
1140
|
-
v("button", {
|
|
1141
|
-
type: "button",
|
|
1142
|
-
class: c(["border font-medium transition-colors", [
|
|
1143
|
-
s.value.tabButton,
|
|
1144
|
-
w.value === "range" ? "border-blue-500 bg-blue-50 text-blue-700" : "border-gray-200 text-gray-700 hover:border-blue-200 hover:text-blue-700"
|
|
1145
|
-
]]),
|
|
1146
|
-
onClick: t[4] || (t[4] = (n) => He("range"))
|
|
1147
|
-
}, O(xt.value), 3)
|
|
1148
|
-
], 2),
|
|
1149
|
-
U.value && (!a.minGranularity || a.minGranularity === "day" || a.minGranularity === "week") ? (u(), p(q, { key: 0 }, [
|
|
1150
|
-
w.value === "date" ? (u(), Q(S(Ce), {
|
|
1151
|
-
key: Le.value,
|
|
1152
|
-
modelValue: R.value,
|
|
1153
|
-
"onUpdate:modelValue": [
|
|
1154
|
-
t[5] || (t[5] = (n) => R.value = n),
|
|
1155
|
-
St
|
|
1156
|
-
],
|
|
1157
|
-
onDayclick: ze,
|
|
1158
|
-
"is-inline": "",
|
|
1159
|
-
color: "gray",
|
|
1160
|
-
"trim-weeks": "",
|
|
1161
|
-
columns: 1,
|
|
1162
|
-
rows: 1,
|
|
1163
|
-
mode: "date",
|
|
1164
|
-
masks: { title: "MMMM YYYY" },
|
|
1165
|
-
"disabled-dates": Be.value
|
|
1166
|
-
}, null, 8, ["modelValue", "disabled-dates"])) : w.value === "range" ? (u(), Q(S(Ce), {
|
|
1167
|
-
key: ft.value,
|
|
1168
|
-
modelValue: B.value,
|
|
1169
|
-
"onUpdate:modelValue": t[6] || (t[6] = (n) => B.value = n),
|
|
1170
|
-
onDayclick: ze,
|
|
1171
|
-
"is-inline": "",
|
|
1172
|
-
"is-range": "",
|
|
1173
|
-
color: "gray",
|
|
1174
|
-
"trim-weeks": "",
|
|
1175
|
-
mode: "date",
|
|
1176
|
-
columns: We.value,
|
|
1177
|
-
rows: 1,
|
|
1178
|
-
masks: { title: "MMMM YYYY" },
|
|
1179
|
-
"disabled-dates": Be.value
|
|
1180
|
-
}, null, 8, ["modelValue", "columns", "disabled-dates"])) : Y("", !0)
|
|
1181
|
-
], 64)) : L.value ? (u(), p("div", ya, [
|
|
1182
|
-
v("div", ga, [
|
|
1183
|
-
v("button", {
|
|
1184
|
-
onClick: t[7] || (t[7] = (n) => I.value++),
|
|
1188
|
+
v("div", {
|
|
1189
|
+
class: c(["grid gap-2", he.value ? "grid-cols-2" : "grid-cols-1"])
|
|
1190
|
+
}, [
|
|
1191
|
+
he.value ? (o(), d("button", {
|
|
1192
|
+
key: 0,
|
|
1185
1193
|
type: "button",
|
|
1186
|
-
class: "
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1194
|
+
class: c(["border font-medium transition-colors", [
|
|
1195
|
+
i.value.tabButton,
|
|
1196
|
+
w.value === "date" ? "border-blue-500 bg-blue-50 text-blue-700" : "border-gray-200 text-gray-700 hover:border-blue-200 hover:text-blue-700"
|
|
1197
|
+
]]),
|
|
1198
|
+
onClick: t[4] || (t[4] = (l) => Ze("date"))
|
|
1199
|
+
}, _(s.value("ui.period_select.Date group title")), 3)) : k("", !0),
|
|
1191
1200
|
v("button", {
|
|
1192
|
-
onClick: t[8] || (t[8] = (n) => I.value--),
|
|
1193
|
-
disabled: I.value === 0,
|
|
1194
1201
|
type: "button",
|
|
1195
|
-
class: "
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1202
|
+
class: c(["border font-medium transition-colors", [
|
|
1203
|
+
i.value.tabButton,
|
|
1204
|
+
w.value === "range" ? "border-blue-500 bg-blue-50 text-blue-700" : "border-gray-200 text-gray-700 hover:border-blue-200 hover:text-blue-700"
|
|
1205
|
+
]]),
|
|
1206
|
+
onClick: t[5] || (t[5] = (l) => Ze("range"))
|
|
1207
|
+
}, _(bt.value), 3)
|
|
1208
|
+
], 2),
|
|
1209
|
+
R.value && (!a.minGranularity || a.minGranularity === "day" || a.minGranularity === "week") ? (o(), d(W, { key: 0 }, [
|
|
1210
|
+
w.value === "date" ? (o(), F(M(Be), {
|
|
1211
|
+
key: Ae.value,
|
|
1212
|
+
modelValue: C.value,
|
|
1213
|
+
"onUpdate:modelValue": [
|
|
1214
|
+
t[6] || (t[6] = (l) => C.value = l),
|
|
1215
|
+
et
|
|
1216
|
+
],
|
|
1217
|
+
onDayclick: we,
|
|
1218
|
+
"is-inline": "",
|
|
1219
|
+
color: "gray",
|
|
1220
|
+
"trim-weeks": "",
|
|
1221
|
+
columns: 1,
|
|
1222
|
+
rows: 1,
|
|
1223
|
+
mode: "date",
|
|
1224
|
+
masks: { title: "MMMM YYYY" },
|
|
1225
|
+
"disabled-dates": be.value
|
|
1226
|
+
}, null, 8, ["modelValue", "disabled-dates"])) : w.value === "range" ? (o(), F(M(Be), {
|
|
1227
|
+
key: gt.value,
|
|
1228
|
+
modelValue: V.value,
|
|
1229
|
+
"onUpdate:modelValue": t[7] || (t[7] = (l) => V.value = l),
|
|
1230
|
+
onDayclick: we,
|
|
1231
|
+
"is-inline": "",
|
|
1232
|
+
"is-range": "",
|
|
1233
|
+
color: "gray",
|
|
1234
|
+
"trim-weeks": "",
|
|
1235
|
+
mode: "date",
|
|
1236
|
+
columns: Ie.value,
|
|
1237
|
+
rows: 1,
|
|
1238
|
+
masks: { title: "MMMM YYYY" },
|
|
1239
|
+
"disabled-dates": be.value
|
|
1240
|
+
}, null, 8, ["modelValue", "columns", "disabled-dates"])) : k("", !0)
|
|
1241
|
+
], 64)) : U.value ? (o(), d("div", ka, [
|
|
1242
|
+
v("div", Ya, [
|
|
1243
|
+
v("button", {
|
|
1244
|
+
onClick: t[8] || (t[8] = (l) => I.value++),
|
|
1245
|
+
type: "button",
|
|
1246
|
+
class: "nav-btn"
|
|
1247
|
+
}, "«"),
|
|
1248
|
+
v("span", {
|
|
1249
|
+
class: c([i.value.navTitle, "text-gray-700"])
|
|
1250
|
+
}, _(U.value.titleStart) + " - " + _(U.value.titleEnd), 3),
|
|
1251
|
+
v("button", {
|
|
1252
|
+
onClick: t[9] || (t[9] = (l) => I.value--),
|
|
1253
|
+
disabled: I.value === 0,
|
|
1254
|
+
type: "button",
|
|
1255
|
+
class: "nav-btn"
|
|
1256
|
+
}, " » ", 8, wa)
|
|
1257
|
+
]),
|
|
1258
|
+
U.value.yearGroups ? (o(), d("div", Da, [
|
|
1259
|
+
(o(!0), d(W, null, Z(U.value.yearGroups, (l) => (o(), d("div", {
|
|
1260
|
+
key: l.yearLabel,
|
|
1261
|
+
class: "space-y-2"
|
|
1208
1262
|
}, [
|
|
1209
|
-
(
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1263
|
+
v("div", {
|
|
1264
|
+
class: c([i.value.navTitle, "text-center text-gray-700 py-2"])
|
|
1265
|
+
}, _(l.yearLabel), 3),
|
|
1266
|
+
v("div", {
|
|
1267
|
+
class: c(["grid gap-2", U.value.gridCols])
|
|
1268
|
+
}, [
|
|
1269
|
+
(o(!0), d(W, null, Z(l.items, (p, g) => (o(), d("button", {
|
|
1270
|
+
key: g,
|
|
1271
|
+
type: "button",
|
|
1272
|
+
class: c(["month-btn", nt(p.date, U.value.unit) ? "month-btn--active" : ""]),
|
|
1273
|
+
onClick: (D) => lt(p.date, U.value.unit),
|
|
1274
|
+
onMouseenter: (D) => rt(p.date),
|
|
1275
|
+
onMouseleave: ot
|
|
1276
|
+
}, _(p.label), 43, Ma))), 128))
|
|
1277
|
+
], 2)
|
|
1278
|
+
]))), 128))
|
|
1279
|
+
])) : U.value.flatItems ? (o(), d("div", {
|
|
1280
|
+
key: 1,
|
|
1281
|
+
class: c(["grid gap-2", U.value.gridCols])
|
|
1282
|
+
}, [
|
|
1283
|
+
(o(!0), d(W, null, Z(U.value.flatItems, (l, p) => (o(), d("button", {
|
|
1284
|
+
key: p,
|
|
1285
|
+
type: "button",
|
|
1286
|
+
class: c(["month-btn", nt(l.date, "year") ? "month-btn--active" : ""]),
|
|
1287
|
+
onClick: (g) => lt(l.date, "year"),
|
|
1288
|
+
onMouseenter: (g) => rt(l.date),
|
|
1289
|
+
onMouseleave: ot
|
|
1290
|
+
}, _(l.label), 43, Oa))), 128))
|
|
1291
|
+
], 2)) : k("", !0)
|
|
1292
|
+
])) : k("", !0),
|
|
1293
|
+
w.value === "range" && (!a.minGranularity || a.minGranularity === "day" || a.minGranularity === "week") ? (o(), d("div", {
|
|
1294
|
+
key: 2,
|
|
1295
|
+
class: c(["border-t border-gray-200", S.value ? "gap-3 pt-3" : "gap-1.5 pt-1.5"])
|
|
1222
1296
|
}, [
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
])
|
|
1250
|
-
]),
|
|
1251
|
-
v("div", null, [
|
|
1252
|
-
v("p", Ma, O(i.value("ui.period_select.End date")), 1),
|
|
1253
|
-
he(v("input", {
|
|
1254
|
-
type: "text",
|
|
1255
|
-
"onUpdate:modelValue": t[12] || (t[12] = (n) => ue.value = n),
|
|
1256
|
-
onBlur: t[13] || (t[13] = (n) => be("end")),
|
|
1257
|
-
onKeyup: t[14] || (t[14] = ke((n) => be("end"), ["enter"])),
|
|
1258
|
-
placeholder: "DD.MM.YYYY",
|
|
1259
|
-
class: "manual-input"
|
|
1260
|
-
}, null, 544), [
|
|
1261
|
-
[Ye, ue.value]
|
|
1297
|
+
Ie.value > 1 ? (o(), d("div", _a, [
|
|
1298
|
+
v("div", null, [
|
|
1299
|
+
v("p", Sa, _(s.value("ui.period_select.From date")), 1),
|
|
1300
|
+
Me(v("input", {
|
|
1301
|
+
type: "text",
|
|
1302
|
+
"onUpdate:modelValue": t[10] || (t[10] = (l) => pe.value = l),
|
|
1303
|
+
onBlur: t[11] || (t[11] = (l) => De("start")),
|
|
1304
|
+
onKeyup: t[12] || (t[12] = Oe((l) => De("start"), ["enter"])),
|
|
1305
|
+
placeholder: "DD.MM.YYYY",
|
|
1306
|
+
class: "manual-input"
|
|
1307
|
+
}, null, 544), [
|
|
1308
|
+
[_e, pe.value]
|
|
1309
|
+
])
|
|
1310
|
+
]),
|
|
1311
|
+
v("div", null, [
|
|
1312
|
+
v("p", Ba, _(s.value("ui.period_select.End date")), 1),
|
|
1313
|
+
Me(v("input", {
|
|
1314
|
+
type: "text",
|
|
1315
|
+
"onUpdate:modelValue": t[13] || (t[13] = (l) => ce.value = l),
|
|
1316
|
+
onBlur: t[14] || (t[14] = (l) => De("end")),
|
|
1317
|
+
onKeyup: t[15] || (t[15] = Oe((l) => De("end"), ["enter"])),
|
|
1318
|
+
placeholder: "DD.MM.YYYY",
|
|
1319
|
+
class: "manual-input"
|
|
1320
|
+
}, null, 544), [
|
|
1321
|
+
[_e, ce.value]
|
|
1322
|
+
])
|
|
1262
1323
|
])
|
|
1263
|
-
])
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
size:
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
size
|
|
1284
|
-
|
|
1285
|
-
], 2)
|
|
1286
|
-
],
|
|
1287
|
-
],
|
|
1288
|
-
], 38)) :
|
|
1324
|
+
])) : k("", !0),
|
|
1325
|
+
v("div", {
|
|
1326
|
+
class: c(["flex", i.value.actionGap, S.value ? "justify-end" : ""])
|
|
1327
|
+
}, [
|
|
1328
|
+
S.value ? (o(), F(M(Le), {
|
|
1329
|
+
key: 0,
|
|
1330
|
+
variant: "secondary",
|
|
1331
|
+
label: s.value("ui.period_select.Cancel"),
|
|
1332
|
+
onClick: Bt,
|
|
1333
|
+
class: c(i.value.actionButton),
|
|
1334
|
+
size: i.value.actionButtonSize
|
|
1335
|
+
}, null, 8, ["label", "class", "size"])) : k("", !0),
|
|
1336
|
+
J(M(Le), {
|
|
1337
|
+
variant: "primary",
|
|
1338
|
+
icon: M(it),
|
|
1339
|
+
label: s.value("ui.period_select.Apply"),
|
|
1340
|
+
onClick: $t,
|
|
1341
|
+
disabled: !Ee.value,
|
|
1342
|
+
class: c(i.value.actionButton),
|
|
1343
|
+
size: i.value.actionButtonSize
|
|
1344
|
+
}, null, 8, ["icon", "label", "disabled", "class", "size"])
|
|
1345
|
+
], 2)
|
|
1346
|
+
], 2)) : k("", !0)
|
|
1347
|
+
], 6)) : k("", !0)
|
|
1348
|
+
], 64))
|
|
1349
|
+
], 38)) : k("", !0)
|
|
1289
1350
|
])),
|
|
1290
|
-
|
|
1351
|
+
M(ge).isOpened.value ? (o(), F(ia, {
|
|
1291
1352
|
key: 2,
|
|
1292
|
-
useModal:
|
|
1293
|
-
groups:
|
|
1294
|
-
activePresetKey:
|
|
1295
|
-
t:
|
|
1353
|
+
useModal: M(ge),
|
|
1354
|
+
groups: kt.value,
|
|
1355
|
+
activePresetKey: A.value,
|
|
1356
|
+
t: s.value,
|
|
1296
1357
|
size: a.size,
|
|
1297
|
-
onSelect:
|
|
1298
|
-
}, null, 8, ["useModal", "groups", "activePresetKey", "t", "size"])) :
|
|
1358
|
+
onSelect: Rt
|
|
1359
|
+
}, null, 8, ["useModal", "groups", "activePresetKey", "t", "size"])) : k("", !0)
|
|
1299
1360
|
], 4));
|
|
1300
1361
|
}
|
|
1301
1362
|
});
|
|
1302
|
-
const
|
|
1363
|
+
const Qa = /* @__PURE__ */ mt(za, [["__scopeId", "data-v-7a5e5043"]]);
|
|
1303
1364
|
export {
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1365
|
+
B as DATE_KIND,
|
|
1366
|
+
ze as MANUAL_DATE_KEY,
|
|
1367
|
+
oe as MANUAL_RANGE_KEY,
|
|
1368
|
+
Qa as OnePeriodPicker,
|
|
1369
|
+
ia as OnePeriodPickerFastModal,
|
|
1370
|
+
la as PERIOD_KIND,
|
|
1371
|
+
$ as RANGE_KIND,
|
|
1372
|
+
O as buildPreset,
|
|
1373
|
+
ye as buildRollingOptions,
|
|
1374
|
+
ct as createShortcutPresets,
|
|
1375
|
+
Xa as dayjs,
|
|
1376
|
+
da as determineKind,
|
|
1377
|
+
Ve as formatDateShort,
|
|
1378
|
+
pt as formatPeriod,
|
|
1379
|
+
pa as getOptionGranularity,
|
|
1319
1380
|
X as isOptionAllowed,
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1381
|
+
xe as parseManualDate,
|
|
1382
|
+
Te as periodPickerSizeConfig,
|
|
1383
|
+
dt as toUnixOrNull
|
|
1323
1384
|
};
|