@nhtio/lucid-resourceful-vue-components 0.1.0-master-36a05f8e → 0.1.0-master-2b799e79

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.
Files changed (117) hide show
  1. package/{VRadioGroup-4EZRfNoO.mjs → VRadioGroup-lC_c6Ath.mjs} +2 -2
  2. package/{VRadioGroup-4EZRfNoO.mjs.map → VRadioGroup-lC_c6Ath.mjs.map} +1 -1
  3. package/{actions-Cl683OMq.mjs → actions-CXhEUJp6.mjs} +6 -6
  4. package/{actions-Cl683OMq.mjs.map → actions-CXhEUJp6.mjs.map} +1 -1
  5. package/{alert-BX9BkYd9.mjs → alert-B0j6GH3V.mjs} +6 -6
  6. package/{alert-BX9BkYd9.mjs.map → alert-B0j6GH3V.mjs.map} +1 -1
  7. package/{bigint-Cutiv42Q.mjs → bigint-DXS_rVbG.mjs} +5 -5
  8. package/{bigint-Cutiv42Q.mjs.map → bigint-DXS_rVbG.mjs.map} +1 -1
  9. package/{boolean-D6WyXCcY.mjs → boolean-BTu-4Ihs.mjs} +8 -8
  10. package/{boolean-D6WyXCcY.mjs.map → boolean-BTu-4Ihs.mjs.map} +1 -1
  11. package/{clipboard-C0t7KXsZ.mjs → clipboard-C6YTX8YB.mjs} +4 -4
  12. package/{clipboard-C0t7KXsZ.mjs.map → clipboard-C6YTX8YB.mjs.map} +1 -1
  13. package/{common-CCR70s0E.mjs → common-a_cd4SQg.mjs} +9 -9
  14. package/{common-CCR70s0E.mjs.map → common-a_cd4SQg.mjs.map} +1 -1
  15. package/components/autorefresh_controller.mjs +1 -1
  16. package/components/control_button.mjs +1 -1
  17. package/components/control_button_bar.mjs +2 -2
  18. package/components/control_menu.mjs +1 -1
  19. package/components/custom_field.mjs +1 -1
  20. package/components/exporter.mjs +1 -1
  21. package/components/fields/bigint.mjs +1 -1
  22. package/components/fields/boolean.mjs +1 -1
  23. package/components/fields/date.mjs +1 -1
  24. package/components/fields/date_time.mjs +1 -1
  25. package/components/fields/enum.mjs +1 -1
  26. package/components/fields/integer.mjs +1 -1
  27. package/components/fields/number.mjs +1 -1
  28. package/components/fields/string.mjs +1 -1
  29. package/components/fields/unsigned_integer.mjs +1 -1
  30. package/components/fields.mjs +9 -9
  31. package/components/form_with_validation.mjs +1 -1
  32. package/components/resourceful_alerter.mjs +1 -1
  33. package/components/resourceful_index.mjs +1 -1
  34. package/components/resourceful_record.mjs +2 -2
  35. package/components/resourceful_record_default_form.mjs +1 -1
  36. package/components/resourceful_record_form.mjs +1 -1
  37. package/components/sortable.mjs +1 -1
  38. package/components/svg_icon.mjs +1 -1
  39. package/components/timezone_picker.mjs +1 -1
  40. package/components.mjs +23 -23
  41. package/composables.mjs +11 -11
  42. package/{custom-B9c_7nfV.mjs → custom-CgyU3A_B.mjs} +4 -4
  43. package/{custom-B9c_7nfV.mjs.map → custom-CgyU3A_B.mjs.map} +1 -1
  44. package/{date-B2SWnGCI.mjs → date-B8edF8kU.mjs} +119 -72
  45. package/date-B8edF8kU.mjs.map +1 -0
  46. package/{date_time-CDwBSOoF.mjs → date_time-BNsYnH-e.mjs} +272 -187
  47. package/date_time-BNsYnH-e.mjs.map +1 -0
  48. package/{display-C5mRsn7Z.mjs → display-pfXaBUr6.mjs} +3 -3
  49. package/{display-C5mRsn7Z.mjs.map → display-pfXaBUr6.mjs.map} +1 -1
  50. package/{enum-DWYdxtym.mjs → enum-DoxJn16e.mjs} +6 -6
  51. package/{enum-DWYdxtym.mjs.map → enum-DoxJn16e.mjs.map} +1 -1
  52. package/{exceptions-Cc9ucZ7k.mjs → exceptions-BeFuVcrH.mjs} +2 -2
  53. package/{exceptions-Cc9ucZ7k.mjs.map → exceptions-BeFuVcrH.mjs.map} +1 -1
  54. package/exceptions.mjs +2 -2
  55. package/factories.mjs +1 -1
  56. package/{field_composer-BKt9bYLY.mjs → field_composer-CPqM1aSV.mjs} +3 -3
  57. package/{field_composer-BKt9bYLY.mjs.map → field_composer-CPqM1aSV.mjs.map} +1 -1
  58. package/{form-UkVPEtmH.mjs → form-BkQlevYR.mjs} +13 -13
  59. package/{form-UkVPEtmH.mjs.map → form-BkQlevYR.mjs.map} +1 -1
  60. package/{guards-DH0cjg4V.mjs → guards-D0G8CU2m.mjs} +2 -2
  61. package/{guards-DH0cjg4V.mjs.map → guards-D0G8CU2m.mjs.map} +1 -1
  62. package/guards.mjs +4 -4
  63. package/helpers.mjs +12 -12
  64. package/{http-DF04z-RO.mjs → http-C15bx-Gn.mjs} +2 -2
  65. package/{http-DF04z-RO.mjs.map → http-C15bx-Gn.mjs.map} +1 -1
  66. package/{http-I0AHP1E0.mjs → http-ChBUYgv8.mjs} +2 -2
  67. package/{http-I0AHP1E0.mjs.map → http-ChBUYgv8.mjs.map} +1 -1
  68. package/http.mjs +1 -1
  69. package/{index-qrLo5NeU.mjs → index-BEXQjukb.mjs} +2 -1
  70. package/{index-qrLo5NeU.mjs.map → index-BEXQjukb.mjs.map} +1 -1
  71. package/{index-CdM957SL.mjs → index-BcDX9w4T.mjs} +6 -6
  72. package/{index-CdM957SL.mjs.map → index-BcDX9w4T.mjs.map} +1 -1
  73. package/{index-DrnPA6Ix.mjs → index-CHELe70a.mjs} +5 -5
  74. package/{index-DrnPA6Ix.mjs.map → index-CHELe70a.mjs.map} +1 -1
  75. package/{index-CQL3B-1I.mjs → index-Cb3Fmo7E.mjs} +31 -31
  76. package/{index-CQL3B-1I.mjs.map → index-Cb3Fmo7E.mjs.map} +1 -1
  77. package/{index-BDy60Kot.mjs → index-CdaTAyzs.mjs} +10 -10
  78. package/{index-BDy60Kot.mjs.map → index-CdaTAyzs.mjs.map} +1 -1
  79. package/{index-CPEwoqSn.mjs → index-CduefDwU.mjs} +3 -3
  80. package/{index-CPEwoqSn.mjs.map → index-CduefDwU.mjs.map} +1 -1
  81. package/{index-BYW_4VLZ.mjs → index-CvhhGjZn.mjs} +3 -3
  82. package/{index-BYW_4VLZ.mjs.map → index-CvhhGjZn.mjs.map} +1 -1
  83. package/{index-BLHeTLWJ.mjs → index-DHoLuRuJ.mjs} +3 -3
  84. package/{index-BLHeTLWJ.mjs.map → index-DHoLuRuJ.mjs.map} +1 -1
  85. package/{index-Bv_WlNae.mjs → index-DLzoBhUb.mjs} +3 -3
  86. package/{index-Bv_WlNae.mjs.map → index-DLzoBhUb.mjs.map} +1 -1
  87. package/{index-DocX_tDZ.mjs → index-De0W4KPF.mjs} +6 -6
  88. package/{index-DocX_tDZ.mjs.map → index-De0W4KPF.mjs.map} +1 -1
  89. package/{index-CHv5OSeQ.mjs → index-M6jQfE3a.mjs} +2 -2
  90. package/{index-CHv5OSeQ.mjs.map → index-M6jQfE3a.mjs.map} +1 -1
  91. package/index.mjs +37 -37
  92. package/{integer-Bt_AlHXh.mjs → integer-BWdmDp7S.mjs} +2 -2
  93. package/{integer-Bt_AlHXh.mjs.map → integer-BWdmDp7S.mjs.map} +1 -1
  94. package/{ioc-kp39kvzE.mjs → ioc-Q-KAX6x1.mjs} +2 -2
  95. package/{ioc-kp39kvzE.mjs.map → ioc-Q-KAX6x1.mjs.map} +1 -1
  96. package/ioc.mjs +1 -1
  97. package/{number-Dm-VOsTt.mjs → number-Chf-qQs7.mjs} +6 -6
  98. package/number-Chf-qQs7.mjs.map +1 -0
  99. package/package.json +25 -25
  100. package/private/fields/date_time.d.ts +46 -46
  101. package/{props-BD6dI7C6.mjs → props-eYGYq1uo.mjs} +3 -3
  102. package/{props-BD6dI7C6.mjs.map → props-eYGYq1uo.mjs.map} +1 -1
  103. package/{props-CLREBMsk.mjs → props-fFnbtBgH.mjs} +3 -3
  104. package/{props-CLREBMsk.mjs.map → props-fFnbtBgH.mjs.map} +1 -1
  105. package/{renderers-52Fmk2vb.mjs → renderers-DLsO8zG-.mjs} +13 -13
  106. package/{renderers-52Fmk2vb.mjs.map → renderers-DLsO8zG-.mjs.map} +1 -1
  107. package/{string-CLObNFFq.mjs → string-D-UsgMTx.mjs} +5 -5
  108. package/{string-CLObNFFq.mjs.map → string-D-UsgMTx.mjs.map} +1 -1
  109. package/{unsigned_integer-BE8JsE5A.mjs → unsigned_integer-7R2vw_Qn.mjs} +3 -3
  110. package/{unsigned_integer-BE8JsE5A.mjs.map → unsigned_integer-7R2vw_Qn.mjs.map} +1 -1
  111. package/{utils-CtD3mjq0.mjs → utils-DehfJ8pT.mjs} +2 -2
  112. package/{utils-CtD3mjq0.mjs.map → utils-DehfJ8pT.mjs.map} +1 -1
  113. package/{validation-AYuAZgi0.mjs → validation-41gHTtyY.mjs} +6 -6
  114. package/{validation-AYuAZgi0.mjs.map → validation-41gHTtyY.mjs.map} +1 -1
  115. package/date-B2SWnGCI.mjs.map +0 -1
  116. package/date_time-CDwBSOoF.mjs.map +0 -1
  117. package/number-Dm-VOsTt.mjs.map +0 -1
@@ -1,17 +1,19 @@
1
1
  import { useDisplay } from "vuetify";
2
- import { S as SvgIcon } from "./index-CPEwoqSn.mjs";
3
- import { R as RCustomField } from "./custom-B9c_7nfV.mjs";
2
+ import { S as SvgIcon } from "./index-CduefDwU.mjs";
3
+ import { R as RCustomField } from "./custom-CgyU3A_B.mjs";
4
4
  import { d as deepmerge } from "./index-DGAy0amb.mjs";
5
- import { p as propsAndEmitsFactory, o as mergeClasses, i as isObject$1, t as toUnreactive, a as useSlot, s as stripUndefinedValuesFromObject } from "./utils-CtD3mjq0.mjs";
5
+ import { p as propsAndEmitsFactory, o as mergeClasses, i as isObject$1, t as toUnreactive, a as useSlot, s as stripUndefinedValuesFromObject } from "./utils-DehfJ8pT.mjs";
6
6
  import { D as DateTime, F as FixedOffsetZone } from "./vendor-nhtio-millicron-mvANrUKZ.mjs";
7
- import { u as useFieldComposer } from "./field_composer-BKt9bYLY.mjs";
8
- import { T as TimezonePicker } from "./index-Bv_WlNae.mjs";
7
+ import { u as useFieldComposer } from "./field_composer-CPqM1aSV.mjs";
8
+ import { T as TimezonePicker } from "./index-DLzoBhUb.mjs";
9
9
  import { a as pick$1, b as IconValue, o as omit$1, e as makeVDatePickerProps, c as makeVTextFieldProps$1 } from "./vendor-nhtio-vuetifiable-CS-KbH1h.mjs";
10
+ import { i as isLuxonDateTime } from "./index-BEXQjukb.mjs";
10
11
  import { w as warningSvg } from "./warning-CwVFcGgs.mjs";
11
- import { y as useSsrBoot, z as useItems, A as useInputIcon, q as useForm, B as transformItem, C as useFilter, E as useMenuActivator, F as useScrolling, V as VTextField, G as VList, H as VVirtualScroll, a as VDivider, I as VListSubheader, J as highlightResult, t as VCheckboxBtn, K as makeSelectProps, L as makeFilterProps, r as makeVTextFieldProps, c as commonEmitsValidators, m as makeCommonResourcefulFieldProps, b as VToolbar, d as VToolbarItems, e as VBottomSheet } from "./common-CCR70s0E.mjs";
12
- import { a as useI18n, j as useTimezoneOptions, h as useTimezoneZones, i as useCurrentTimezone } from "./ioc-kp39kvzE.mjs";
12
+ import { y as useSsrBoot, z as useItems, A as useInputIcon, q as useForm, B as transformItem, C as useFilter, E as useMenuActivator, F as useScrolling, V as VTextField, G as VList, H as VVirtualScroll, a as VDivider, I as VListSubheader, J as highlightResult, t as VCheckboxBtn, K as makeSelectProps, L as makeFilterProps, r as makeVTextFieldProps, c as commonEmitsValidators, m as makeCommonResourcefulFieldProps, b as VBottomSheet, d as VToolbar, e as VToolbarItems } from "./common-a_cd4SQg.mjs";
13
+ import { a as useI18n, j as useTimezoneOptions, h as useTimezoneZones, i as useCurrentTimezone } from "./ioc-Q-KAX6x1.mjs";
13
14
  import { ref, computed, createVNode, mergeProps, createElementVNode, Fragment, normalizeStyle, normalizeClass, shallowRef, watch, nextTick, provide, toRef, withDirectives, inject, vShow, createTextVNode, onScopeDispose, onMounted, h, defineComponent, toRefs, onUnmounted } from "vue";
14
15
  import { p as forwardRefs, P as animate, Q as getScrollParent, R as useLazy, S as makeLazyProps, o as useScopeId, c as mdiChevronDown, d as mdiChevronRight, e as mdiChevronLeft, T as mdiMapClock, U as mdiClock, f as mdiCalendar, a as mdiClose, V as VCard, g as mdiMenuDown } from "./mdi-jw9Ee7p6.mjs";
16
+ import { V as VDialog } from "./VDialog-BVRDhoD7.mjs";
15
17
  import { g as genericComponent, p as propsFactory, a2 as useTextColor, i as useBackgroundColor, e as useRender, c as VBtn, o as omit, aQ as makeVBtnProps, aR as standardEasing, aS as keys, h as provideTheme, F as useRtl, P as useLocale, ab as useGroup, ad as IN_BROWSER, l as convertToUnit, a8 as PREFERS_REDUCED_MOTION, m as makeThemeProps, z as makeTagProps, r as makeComponentProps, u as useProxiedModel, am as useGroupItem, a5 as MaybeTransition, ar as makeGroupItemProps, ak as useDensity, ai as provideDefaults, as as makeDensityProps, aP as pick, aT as isObject, au as wrapInArray, ah as deepEqual, d as VIcon, aU as noop, ap as VAvatar, aV as ensureValidVNode, f as VDefaultsProvider, S as escapeForRegex, aW as isComposingIgnoreKey, aX as checkPrintable, aY as debounce, Q as clamp, ax as createRange, a as VImg } from "./display-CHspVOz6.mjs";
16
18
  import { a as VSlideGroup, m as makeVSlideGroupProps, V as VChip } from "./VChip-DWwcL8cL.mjs";
17
19
  import { V as VDatePicker } from "./VDatePicker-C7_ULYfO.mjs";
@@ -19,7 +21,6 @@ import { a as VPicker, m as makeVPickerProps } from "./VPicker-dxKS1KK4.mjs";
19
21
  import { V as VSheet } from "./VSheet-B4SA9_dv.mjs";
20
22
  import { V as VMenu } from "./VMenu-D2biKkpd.mjs";
21
23
  import { V as VListItem } from "./VListItem-DojRgtpe.mjs";
22
- import { V as VDialog } from "./VDialog-BVRDhoD7.mjs";
23
24
  const VTabsSymbol = /* @__PURE__ */ Symbol.for("vuetify:v-tabs");
24
25
  const makeVTabProps = propsFactory({
25
26
  fixed: Boolean,
@@ -2323,6 +2324,172 @@ const getAsNormalizedDateTime = (value) => {
2323
2324
  }
2324
2325
  return void 0;
2325
2326
  };
2327
+ const renderDateTimePicker = (dialogTab, normalizedDateTerm, normalizedTimeTerm, normalizedTimezoneTerm, datePickerIcon, timePickerIcon, timezonePickerIcon, alertIcon, nextIcon, prevIcon, modeIcon, clearIcon, localDateValue, localTimeValue, localTimezoneValue, disabled, firstDayOfWeek, showWeek, timePickerFormat, computedMinDate, computedMaxDate, computedMinTime, computedMaxTime, timezoneOptions, onClickClose, onUpdateTab, onDatePickerUpdateModelValue, onTimePickerUpdateModelValue, onTimezonePickerUpdateModelValue) => h(VCard, { class: ["d-flex", "flex-column"] }, () => [
2328
+ h(
2329
+ VToolbar,
2330
+ {
2331
+ color: "transparent",
2332
+ flat: true,
2333
+ class: ["flex-grow-0"],
2334
+ density: "compact"
2335
+ },
2336
+ () => [
2337
+ h(VTabs, {
2338
+ grow: true,
2339
+ showArrows: true,
2340
+ items: [
2341
+ {
2342
+ value: "date",
2343
+ text: normalizedDateTerm,
2344
+ prependIcon: datePickerIcon,
2345
+ appendIcon: "string" !== typeof localDateValue ? alertIcon : void 0,
2346
+ color: "string" !== typeof localDateValue ? "warning" : void 0
2347
+ },
2348
+ {
2349
+ value: "time",
2350
+ text: normalizedTimeTerm,
2351
+ prependIcon: timePickerIcon,
2352
+ appendIcon: "string" !== typeof localTimeValue ? alertIcon : void 0,
2353
+ color: "string" !== typeof localTimeValue ? "warning" : void 0
2354
+ },
2355
+ {
2356
+ value: "timezone",
2357
+ text: normalizedTimezoneTerm,
2358
+ prependIcon: timezonePickerIcon,
2359
+ appendIcon: "string" !== typeof localTimezoneValue ? alertIcon : void 0,
2360
+ color: "string" !== typeof localTimezoneValue ? "warning" : void 0
2361
+ }
2362
+ ],
2363
+ mandatory: true,
2364
+ modelValue: dialogTab,
2365
+ nextIcon,
2366
+ prevIcon,
2367
+ ...{
2368
+ "onUpdate:modelValue": (val) => {
2369
+ if ("string" === typeof val && ["date", "time", "timezone"].includes(val)) {
2370
+ onUpdateTab(val);
2371
+ }
2372
+ }
2373
+ }
2374
+ }),
2375
+ h(VToolbarItems, {}, () => [
2376
+ h(
2377
+ VBtn,
2378
+ {
2379
+ icon: true,
2380
+ onClick: () => {
2381
+ onClickClose();
2382
+ }
2383
+ },
2384
+ () => [
2385
+ h(VIcon, {
2386
+ icon: () => h(SvgIcon, { d: mdiClose })
2387
+ })
2388
+ ]
2389
+ )
2390
+ ])
2391
+ ]
2392
+ ),
2393
+ h(VDivider, { class: ["flex-grow-0"] }),
2394
+ "date" !== dialogTab ? null : h(VDatePicker, {
2395
+ bgColor: "transparent",
2396
+ disabled,
2397
+ divided: false,
2398
+ elevation: 0,
2399
+ firstDayOfWeek,
2400
+ showAdjacentMonths: true,
2401
+ showWeek,
2402
+ width: "100%",
2403
+ hideHeader: false,
2404
+ prevIcon,
2405
+ nextIcon,
2406
+ modeIcon,
2407
+ modelValue: localDateValue,
2408
+ min: computedMinDate,
2409
+ max: computedMaxDate,
2410
+ ...{
2411
+ "onUpdate:model-value": (v) => {
2412
+ onDatePickerUpdateModelValue(v);
2413
+ },
2414
+ "onUpdate:modelValue": (v) => {
2415
+ onDatePickerUpdateModelValue(v);
2416
+ }
2417
+ }
2418
+ }),
2419
+ "time" !== dialogTab ? null : h(VTimePicker, {
2420
+ bgColor: "transparent",
2421
+ disabled,
2422
+ divided: false,
2423
+ elevation: 0,
2424
+ width: "100%",
2425
+ hideHeader: false,
2426
+ useSeconds: true,
2427
+ prevIcon,
2428
+ nextIcon,
2429
+ modelValue: localTimeValue,
2430
+ format: timePickerFormat,
2431
+ min: computedMinTime,
2432
+ max: computedMaxTime,
2433
+ ...{
2434
+ "onUpdate:model-value": (v) => onTimePickerUpdateModelValue(v),
2435
+ "onUpdate:modelValue": (v) => onTimePickerUpdateModelValue(v)
2436
+ }
2437
+ }),
2438
+ "timezone" !== dialogTab ? null : h(
2439
+ VSheet,
2440
+ {
2441
+ bgColor: "transparent",
2442
+ divided: false,
2443
+ elevation: 0,
2444
+ width: "100%",
2445
+ class: ["d-flex", "flex-column", "pa-4"]
2446
+ },
2447
+ () => [
2448
+ h(
2449
+ VToolbar,
2450
+ {
2451
+ flat: true,
2452
+ color: "transparent",
2453
+ density: "compact",
2454
+ class: ["flex-grow-0"]
2455
+ },
2456
+ () => [
2457
+ h(
2458
+ "div",
2459
+ { class: ["py-1", "w-100"] },
2460
+ h(VCombobox, {
2461
+ hideDetails: true,
2462
+ variant: "outlined",
2463
+ density: "compact",
2464
+ disabled,
2465
+ clearable: !disabled,
2466
+ clearIcon,
2467
+ menuIcon: () => h(SvgIcon, { d: mdiMenuDown }),
2468
+ label: normalizedTimezoneTerm,
2469
+ items: timezoneOptions,
2470
+ itemTitle: "label",
2471
+ itemValue: "value",
2472
+ modelValue: localTimezoneValue ?? null,
2473
+ ...{
2474
+ "onUpdate:modelValue": (v) => onTimezonePickerUpdateModelValue(v)
2475
+ }
2476
+ })
2477
+ )
2478
+ ]
2479
+ ),
2480
+ h(VDivider, { class: ["flex-grow-0", "my-2"] }),
2481
+ h(TimezonePicker, {
2482
+ class: ["flex-grow-1"],
2483
+ modelValue: localTimezoneValue ?? null,
2484
+ disabled,
2485
+ bgColor: "surface-light",
2486
+ ...{
2487
+ "onUpdate:modelValue": (v) => onTimezonePickerUpdateModelValue(v)
2488
+ }
2489
+ })
2490
+ ]
2491
+ )
2492
+ ]);
2326
2493
  const RDateTimeField = defineComponent({
2327
2494
  name: "RDateTimeField",
2328
2495
  props: makeRDateTimeFieldProps(),
@@ -2726,7 +2893,9 @@ const RDateTimeField = defineComponent({
2726
2893
  );
2727
2894
  const onDatePickerUpdateModelValue = (value) => {
2728
2895
  let emitable = null;
2729
- if (value instanceof Date) {
2896
+ if (isLuxonDateTime(value)) {
2897
+ emitable = value.toISODate();
2898
+ } else if (value instanceof Date) {
2730
2899
  emitable = DateTime.fromJSDate(value).toLocal().toISODate();
2731
2900
  } else if ("string" === typeof value) {
2732
2901
  emitable = value;
@@ -2739,182 +2908,6 @@ const RDateTimeField = defineComponent({
2739
2908
  }
2740
2909
  };
2741
2910
  const alertIcon = () => h(VImg, { src: warningSvg });
2742
- const datetimePicker = computed(
2743
- () => h(VCard, { class: ["d-flex", "flex-column"] }, () => [
2744
- h(
2745
- VToolbar,
2746
- {
2747
- color: "transparent",
2748
- flat: true,
2749
- class: ["flex-grow-0"],
2750
- density: "compact"
2751
- },
2752
- () => [
2753
- h(VTabs, {
2754
- grow: true,
2755
- showArrows: true,
2756
- items: [
2757
- {
2758
- value: "date",
2759
- text: normalizedDateTerm.value,
2760
- prependIcon: datePickerIcon.value,
2761
- appendIcon: "string" !== typeof localDateValue.value ? alertIcon : void 0,
2762
- color: "string" !== typeof localDateValue.value ? "warning" : void 0
2763
- },
2764
- {
2765
- value: "time",
2766
- text: normalizedTimeTerm.value,
2767
- prependIcon: timePickerIcon.value,
2768
- appendIcon: "string" !== typeof localTimeValue.value ? alertIcon : void 0,
2769
- color: "string" !== typeof localTimeValue.value ? "warning" : void 0
2770
- },
2771
- {
2772
- value: "timezone",
2773
- text: normalizedTimezoneTerm.value,
2774
- prependIcon: timezonePickerIcon.value,
2775
- appendIcon: "string" !== typeof localTimezoneValue.value ? alertIcon : void 0,
2776
- color: "string" !== typeof localTimezoneValue.value ? "warning" : void 0
2777
- }
2778
- ],
2779
- mandatory: true,
2780
- modelValue: dialogTab.value,
2781
- nextIcon: nextIcon.value,
2782
- prevIcon: prevIcon.value,
2783
- ...{
2784
- "onUpdate:modelValue": (val) => {
2785
- if ("string" === typeof val && ["date", "time", "timezone"].includes(val)) {
2786
- dialogTab.value = val;
2787
- }
2788
- }
2789
- }
2790
- }),
2791
- h(VToolbarItems, {}, () => [
2792
- h(
2793
- VBtn,
2794
- {
2795
- icon: true,
2796
- onClick: () => {
2797
- datePickerOpen.value = false;
2798
- }
2799
- },
2800
- () => [
2801
- h(VIcon, {
2802
- icon: () => h(SvgIcon, { d: mdiClose })
2803
- })
2804
- ]
2805
- )
2806
- ])
2807
- ]
2808
- ),
2809
- h(VDivider, { class: ["flex-grow-0"] }),
2810
- "date" !== dialogTab.value ? null : h(VDatePicker, {
2811
- bgColor: "transparent",
2812
- disabled: disabled.value,
2813
- divided: false,
2814
- elevation: 0,
2815
- firstDayOfWeek: firstDayOfWeek.value,
2816
- showAdjacentMonths: true,
2817
- showWeek: showWeek.value,
2818
- width: "100%",
2819
- hideHeader: false,
2820
- prevIcon: prevIcon.value,
2821
- nextIcon: nextIcon.value,
2822
- modeIcon: modeIcon.value,
2823
- modelValue: localDateValue.value,
2824
- min: computedMinDate.value,
2825
- max: computedMaxDate.value,
2826
- ...{
2827
- "onUpdate:model-value": (v) => onDatePickerUpdateModelValue(v),
2828
- "onUpdate:modelValue": (v) => onDatePickerUpdateModelValue(v)
2829
- }
2830
- }),
2831
- "time" !== dialogTab.value ? null : h(VTimePicker, {
2832
- bgColor: "transparent",
2833
- disabled: disabled.value,
2834
- divided: false,
2835
- elevation: 0,
2836
- width: "100%",
2837
- hideHeader: false,
2838
- useSeconds: true,
2839
- prevIcon: prevIcon.value,
2840
- nextIcon: nextIcon.value,
2841
- modelValue: localTimeValue.value,
2842
- format: timePickerFormat.value,
2843
- min: computedMinTime.value,
2844
- max: computedMaxTime.value,
2845
- ...{
2846
- "onUpdate:model-value": (v) => {
2847
- localTimeValue.value = v;
2848
- },
2849
- "onUpdate:modelValue": (v) => {
2850
- localTimeValue.value = v;
2851
- }
2852
- }
2853
- }),
2854
- "timezone" !== dialogTab.value ? null : h(
2855
- VSheet,
2856
- {
2857
- bgColor: "transparent",
2858
- divided: false,
2859
- elevation: 0,
2860
- width: "100%",
2861
- class: ["d-flex", "flex-column", "pa-4"]
2862
- },
2863
- () => [
2864
- h(
2865
- VToolbar,
2866
- {
2867
- flat: true,
2868
- color: "transparent",
2869
- density: "compact",
2870
- class: ["flex-grow-0"]
2871
- },
2872
- () => [
2873
- h(
2874
- "div",
2875
- { class: ["py-1", "w-100"] },
2876
- h(VCombobox, {
2877
- hideDetails: true,
2878
- variant: "outlined",
2879
- density: "compact",
2880
- disabled: disabled.value,
2881
- clearable: !disabled.value,
2882
- clearIcon: clearIcon.value,
2883
- menuIcon: () => h(SvgIcon, { d: mdiMenuDown }),
2884
- label: normalizedTimezoneTerm.value,
2885
- items: timezoneOptions,
2886
- itemTitle: "label",
2887
- itemValue: "value",
2888
- modelValue: localTimezoneValue.value ?? null,
2889
- ...{
2890
- "onUpdate:modelValue": (v) => {
2891
- if (isObject$1(v) && "value" in v) {
2892
- localTimezoneValue.value = v.value;
2893
- } else {
2894
- localTimezoneValue.value = v;
2895
- }
2896
- }
2897
- }
2898
- })
2899
- )
2900
- ]
2901
- ),
2902
- h(VDivider, { class: ["flex-grow-0", "my-2"] }),
2903
- h(TimezonePicker, {
2904
- class: ["flex-grow-1"],
2905
- modelValue: localTimezoneValue.value ?? null,
2906
- disabled: disabled.value,
2907
- bgColor: "surface-light",
2908
- ...{
2909
- "onUpdate:modelValue": (v) => {
2910
- localTimezoneValue.value = v;
2911
- }
2912
- }
2913
- })
2914
- ]
2915
- )
2916
- ])
2917
- );
2918
2911
  const appendInnerSlot = useSlot("append-inner", slots);
2919
2912
  return h(
2920
2913
  RCustomField,
@@ -3216,7 +3209,99 @@ const RDateTimeField = defineComponent({
3216
3209
  },
3217
3210
  ...{
3218
3211
  "append-inner": (...args) => [
3219
- mobile.value ? h(VBottomSheet, dialogBottomSheetBindings.value, () => datetimePicker.value) : h(VDialog, dialogWindowBindings.value, () => datetimePicker.value),
3212
+ mobile.value ? h(
3213
+ VBottomSheet,
3214
+ dialogBottomSheetBindings.value,
3215
+ () => renderDateTimePicker(
3216
+ dialogTab.value,
3217
+ normalizedDateTerm.value,
3218
+ normalizedTimeTerm.value,
3219
+ normalizedTimezoneTerm.value,
3220
+ datePickerIcon.value,
3221
+ timePickerIcon.value,
3222
+ timezonePickerIcon.value,
3223
+ alertIcon,
3224
+ nextIcon.value,
3225
+ prevIcon.value,
3226
+ modeIcon.value,
3227
+ clearIcon.value,
3228
+ localDateValue.value,
3229
+ localTimeValue.value,
3230
+ localTimezoneValue.value,
3231
+ disabled.value,
3232
+ firstDayOfWeek.value,
3233
+ showWeek.value,
3234
+ timePickerFormat.value,
3235
+ computedMinDate.value,
3236
+ computedMaxDate.value,
3237
+ computedMinTime.value,
3238
+ computedMaxTime.value,
3239
+ timezoneOptions,
3240
+ () => {
3241
+ datePickerOpen.value = false;
3242
+ },
3243
+ (val) => {
3244
+ dialogTab.value = val;
3245
+ },
3246
+ onDatePickerUpdateModelValue,
3247
+ (v) => {
3248
+ localTimeValue.value = v;
3249
+ },
3250
+ (v) => {
3251
+ if (isObject$1(v) && "value" in v) {
3252
+ localTimezoneValue.value = v.value;
3253
+ } else {
3254
+ localTimezoneValue.value = v;
3255
+ }
3256
+ }
3257
+ )
3258
+ ) : h(
3259
+ VDialog,
3260
+ dialogWindowBindings.value,
3261
+ () => renderDateTimePicker(
3262
+ dialogTab.value,
3263
+ normalizedDateTerm.value,
3264
+ normalizedTimeTerm.value,
3265
+ normalizedTimezoneTerm.value,
3266
+ datePickerIcon.value,
3267
+ timePickerIcon.value,
3268
+ timezonePickerIcon.value,
3269
+ alertIcon,
3270
+ nextIcon.value,
3271
+ prevIcon.value,
3272
+ modeIcon.value,
3273
+ clearIcon.value,
3274
+ localDateValue.value,
3275
+ localTimeValue.value,
3276
+ localTimezoneValue.value,
3277
+ disabled.value,
3278
+ firstDayOfWeek.value,
3279
+ showWeek.value,
3280
+ timePickerFormat.value,
3281
+ computedMinDate.value,
3282
+ computedMaxDate.value,
3283
+ computedMinTime.value,
3284
+ computedMaxTime.value,
3285
+ timezoneOptions,
3286
+ () => {
3287
+ datePickerOpen.value = false;
3288
+ },
3289
+ (val) => {
3290
+ dialogTab.value = val;
3291
+ },
3292
+ onDatePickerUpdateModelValue,
3293
+ (v) => {
3294
+ localTimeValue.value = v;
3295
+ },
3296
+ (v) => {
3297
+ if (isObject$1(v) && "value" in v) {
3298
+ localTimezoneValue.value = v.value;
3299
+ } else {
3300
+ localTimezoneValue.value = v;
3301
+ }
3302
+ }
3303
+ )
3304
+ ),
3220
3305
  // @ts-expect-error
3221
3306
  appendInnerSlot ? appendInnerSlot(...args) : null
3222
3307
  ]
@@ -3255,4 +3340,4 @@ export {
3255
3340
  RDateTimeField as R,
3256
3341
  RDateTimeFieldDisplayFormat as a
3257
3342
  };
3258
- //# sourceMappingURL=date_time-CDwBSOoF.mjs.map
3343
+ //# sourceMappingURL=date_time-BNsYnH-e.mjs.map