@onereach/ui-components 4.9.1-beta.2907.0 → 4.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/dist/bundled/v2/{OrDateTimePickerPopoverHeader-6f78e8e7.js → OrDateTimePickerPopoverHeader-28995b95.js} +8 -1
  2. package/dist/bundled/v2/{OrDateTimePickerTimeSelect-78f775d8.js → OrDateTimePickerTimeSelect-c52ee823.js} +74 -4
  3. package/dist/bundled/v2/components/OrDatePickerV3/OrDatePicker.js +19 -1
  4. package/dist/bundled/v2/components/OrDatePickerV3/OrDatePicker.vue.d.ts +2 -0
  5. package/dist/bundled/v2/components/OrDatePickerV3/index.js +1 -1
  6. package/dist/bundled/v2/components/OrDateTimePickerV3/OrDateTimePicker.js +37 -2
  7. package/dist/bundled/v2/components/OrDateTimePickerV3/OrDateTimePicker.vue.d.ts +14 -1
  8. package/dist/bundled/v2/components/OrDateTimePickerV3/hooks/useTimePlaceholder.d.ts +1 -1
  9. package/dist/bundled/v2/components/OrDateTimePickerV3/hooks/useTimePlaceholder.js +2 -1
  10. package/dist/bundled/v2/components/OrDateTimePickerV3/index.js +3 -2
  11. package/dist/bundled/v2/components/OrDateTimePickerV3/props.d.ts +5 -0
  12. package/dist/bundled/v2/components/OrDateTimePickerV3/props.js +9 -0
  13. package/dist/bundled/v2/components/OrDateTimePickerV3/styles.js +1 -3
  14. package/dist/bundled/v2/components/OrTimePickerV3/OrTimePicker.js +25 -2
  15. package/dist/bundled/v2/components/OrTimePickerV3/OrTimePicker.vue.d.ts +14 -1
  16. package/dist/bundled/v2/components/OrTimePickerV3/index.js +3 -2
  17. package/dist/bundled/v2/components/OrTimePickerV3/props.d.ts +1 -0
  18. package/dist/bundled/v2/components/OrTimePickerV3/props.js +1 -0
  19. package/dist/bundled/v2/components/OrTimePickerV3/styles.js +1 -3
  20. package/dist/bundled/v2/components/index.d.ts +0 -1
  21. package/dist/bundled/v2/components/index.js +3 -3
  22. package/dist/bundled/v2/index.js +4 -4
  23. package/dist/bundled/v3/{OrDatePicker.vue_vue_type_script_lang-8ec017e2.js → OrDatePicker.vue_vue_type_script_lang-0e648149.js} +16 -1
  24. package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-fec947db.js → OrDateTimePicker.vue_vue_type_script_lang-69d65518.js} +29 -2
  25. package/dist/bundled/v3/{OrDateTimePickerPopoverHeader-bb988d7c.js → OrDateTimePickerPopoverHeader-ec90761f.js} +8 -1
  26. package/dist/bundled/v3/{OrDateTimePickerTimeSelect-01a39297.js → OrDateTimePickerTimeSelect-683ab20d.js} +68 -5
  27. package/dist/bundled/v3/{OrTimePicker.vue_vue_type_script_lang-c737eaa8.js → OrTimePicker.vue_vue_type_script_lang-a300ab1b.js} +20 -2
  28. package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.js +5 -4
  29. package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.vue.d.ts +1 -0
  30. package/dist/bundled/v3/components/OrDatePickerV3/index.js +2 -2
  31. package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.js +14 -9
  32. package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.vue.d.ts +11 -1
  33. package/dist/bundled/v3/components/OrDateTimePickerV3/hooks/useTimePlaceholder.d.ts +1 -1
  34. package/dist/bundled/v3/components/OrDateTimePickerV3/hooks/useTimePlaceholder.js +2 -1
  35. package/dist/bundled/v3/components/OrDateTimePickerV3/index.js +4 -3
  36. package/dist/bundled/v3/components/OrDateTimePickerV3/props.d.ts +5 -0
  37. package/dist/bundled/v3/components/OrDateTimePickerV3/props.js +9 -0
  38. package/dist/bundled/v3/components/OrDateTimePickerV3/styles.js +1 -3
  39. package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.js +12 -8
  40. package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.vue.d.ts +11 -1
  41. package/dist/bundled/v3/components/OrTimePickerV3/index.js +4 -3
  42. package/dist/bundled/v3/components/OrTimePickerV3/props.d.ts +1 -0
  43. package/dist/bundled/v3/components/OrTimePickerV3/props.js +1 -0
  44. package/dist/bundled/v3/components/OrTimePickerV3/styles.js +1 -3
  45. package/dist/bundled/v3/components/index.d.ts +0 -1
  46. package/dist/bundled/v3/components/index.js +6 -6
  47. package/dist/bundled/v3/index.js +7 -8
  48. package/dist/esm/v2/{OrDatePicker-0989a40c.js → OrDatePicker-328189a2.js} +19 -2
  49. package/dist/esm/v2/{OrDateTimePicker-ac766f04.js → OrDateTimePicker-8bcc71c3.js} +9 -234
  50. package/dist/esm/v2/OrDateTimePicker.vue_rollup-plugin-vue_script-399a44b5.js +636 -0
  51. package/dist/esm/v2/{OrDateTimePickerMonthSelect-4eb8bfb6.js → OrDateTimePickerPopoverHeader-fa88e970.js} +263 -39
  52. package/dist/esm/v2/{OrTimePicker-5fd08ad2.js → OrTimePicker-a9c5547b.js} +25 -5
  53. package/dist/esm/v2/components/index.d.ts +0 -1
  54. package/dist/esm/v2/components/index.js +5 -7
  55. package/dist/esm/v2/components/or-date-picker-v3/OrDatePicker.vue.d.ts +2 -0
  56. package/dist/esm/v2/components/or-date-picker-v3/index.js +3 -4
  57. package/dist/esm/v2/components/or-date-time-picker-v3/OrDateTimePicker.vue.d.ts +14 -1
  58. package/dist/esm/v2/components/or-date-time-picker-v3/hooks/useTimePlaceholder.d.ts +1 -1
  59. package/dist/esm/v2/components/or-date-time-picker-v3/index.js +4 -5
  60. package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-footer/OrDateTimePickerPopoverFooter.vue.d.ts +19 -3
  61. package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-time-control/OrDateTimePickerTimeControl.vue.d.ts +13 -0
  62. package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue.d.ts +16 -0
  63. package/dist/esm/v2/components/or-date-time-picker-v3/props.d.ts +5 -0
  64. package/dist/esm/v2/components/or-time-picker-v3/OrTimePicker.vue.d.ts +14 -1
  65. package/dist/esm/v2/components/or-time-picker-v3/index.js +8 -6
  66. package/dist/esm/v2/components/or-time-picker-v3/props.d.ts +1 -0
  67. package/dist/esm/v2/index.js +5 -7
  68. package/dist/esm/v3/{OrDatePicker-6ac8578a.js → OrDatePicker-4c4fd5dc.js} +18 -3
  69. package/dist/esm/v3/OrDateTimePicker-0a4d194e.js +763 -0
  70. package/dist/esm/v3/{OrDateTimePickerMonthSelect-f807e6d5.js → OrDateTimePickerPopoverHeader-bc8e0bcf.js} +174 -24
  71. package/dist/esm/v3/{OrTimePicker-d66edf77.js → OrTimePicker-67f75e85.js} +26 -8
  72. package/dist/esm/v3/components/index.d.ts +0 -1
  73. package/dist/esm/v3/components/index.js +4 -7
  74. package/dist/esm/v3/components/or-date-picker-v3/OrDatePicker.vue.d.ts +1 -0
  75. package/dist/esm/v3/components/or-date-picker-v3/index.js +3 -4
  76. package/dist/esm/v3/components/or-date-time-picker-v3/OrDateTimePicker.vue.d.ts +11 -1
  77. package/dist/esm/v3/components/or-date-time-picker-v3/hooks/useTimePlaceholder.d.ts +1 -1
  78. package/dist/esm/v3/components/or-date-time-picker-v3/index.js +2 -4
  79. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-footer/OrDateTimePickerPopoverFooter.vue.d.ts +15 -3
  80. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-time-control/OrDateTimePickerTimeControl.vue.d.ts +11 -0
  81. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue.d.ts +12 -0
  82. package/dist/esm/v3/components/or-date-time-picker-v3/props.d.ts +5 -0
  83. package/dist/esm/v3/components/or-time-picker-v3/OrTimePicker.vue.d.ts +11 -1
  84. package/dist/esm/v3/components/or-time-picker-v3/index.js +8 -6
  85. package/dist/esm/v3/components/or-time-picker-v3/props.d.ts +1 -0
  86. package/dist/esm/v3/index.js +4 -7
  87. package/package.json +3 -2
  88. package/src/components/index.ts +0 -1
  89. package/src/components/or-date-picker-v3/OrDatePicker.vue +20 -0
  90. package/src/components/or-date-time-picker-v3/OrDateTimePicker.vue +38 -1
  91. package/src/components/or-date-time-picker-v3/hooks/useTimePlaceholder.ts +2 -1
  92. package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-footer/OrDateTimePickerPopoverFooter.vue +8 -0
  93. package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-time-control/OrDateTimePickerTimeControl.vue +9 -2
  94. package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue +87 -2
  95. package/src/components/or-date-time-picker-v3/props.ts +6 -0
  96. package/src/components/or-date-time-picker-v3/styles.ts +1 -4
  97. package/src/components/or-time-picker-v3/OrTimePicker.vue +25 -1
  98. package/src/components/or-time-picker-v3/props.ts +1 -0
  99. package/src/components/or-time-picker-v3/styles.ts +1 -4
  100. package/dist/bundled/v2/components/OrTreeV3/OrTree.js +0 -277
  101. package/dist/bundled/v2/components/OrTreeV3/OrTree.vue.d.ts +0 -68
  102. package/dist/bundled/v2/components/OrTreeV3/index.d.ts +0 -1
  103. package/dist/bundled/v2/components/OrTreeV3/index.js +0 -17
  104. package/dist/bundled/v2/components/OrTreeV3/types.d.ts +0 -7
  105. package/dist/bundled/v2/components/OrTreeV3/types.js +0 -1
  106. package/dist/bundled/v3/OrTree.vue_vue_type_script_lang-60234ac6.js +0 -179
  107. package/dist/bundled/v3/components/OrTreeV3/OrTree.js +0 -50
  108. package/dist/bundled/v3/components/OrTreeV3/OrTree.vue.d.ts +0 -54
  109. package/dist/bundled/v3/components/OrTreeV3/index.d.ts +0 -1
  110. package/dist/bundled/v3/components/OrTreeV3/index.js +0 -21
  111. package/dist/bundled/v3/components/OrTreeV3/types.d.ts +0 -7
  112. package/dist/bundled/v3/components/OrTreeV3/types.js +0 -1
  113. package/dist/esm/v2/OrDateTimePickerPopoverHeader-a84af34e.js +0 -222
  114. package/dist/esm/v2/OrDateTimePickerTimeSelect-eecdd8ab.js +0 -304
  115. package/dist/esm/v2/OrTree-ee993927.js +0 -266
  116. package/dist/esm/v2/components/or-tree-v3/OrTree.vue.d.ts +0 -68
  117. package/dist/esm/v2/components/or-tree-v3/index.d.ts +0 -1
  118. package/dist/esm/v2/components/or-tree-v3/index.js +0 -8
  119. package/dist/esm/v2/components/or-tree-v3/partials/or-tree-node/OrTreeNode.vue.d.ts +0 -85
  120. package/dist/esm/v2/components/or-tree-v3/types.d.ts +0 -7
  121. package/dist/esm/v3/OrDateTimePicker-b15d4198.js +0 -419
  122. package/dist/esm/v3/OrDateTimePickerPopoverHeader-3ae517f8.js +0 -148
  123. package/dist/esm/v3/OrDateTimePickerTimeSelect-14503fde.js +0 -252
  124. package/dist/esm/v3/OrTree-b4276dfb.js +0 -204
  125. package/dist/esm/v3/components/or-tree-v3/OrTree.vue.d.ts +0 -54
  126. package/dist/esm/v3/components/or-tree-v3/index.d.ts +0 -1
  127. package/dist/esm/v3/components/or-tree-v3/index.js +0 -8
  128. package/dist/esm/v3/components/or-tree-v3/partials/or-tree-node/OrTreeNode.vue.d.ts +0 -62
  129. package/dist/esm/v3/components/or-tree-v3/types.d.ts +0 -7
  130. package/src/components/or-tree-v3/OrTree.vue +0 -63
  131. package/src/components/or-tree-v3/index.ts +0 -1
  132. package/src/components/or-tree-v3/partials/or-tree-node/OrTreeNode.vue +0 -158
  133. package/src/components/or-tree-v3/types.ts +0 -7
@@ -0,0 +1,763 @@
1
+ import { defineComponent, ref, computed, watch } from 'vue-demi';
2
+ import { D as DropdownClose, a as DropdownOpen } from './dropdown-open-e1f90e0a.js';
3
+ import { s as script$a } from './OrError-c01d0c29.js';
4
+ import { s as script$b } from './OrHint-06ab89d7.js';
5
+ import { s as script$d } from './OrIconButton-0aaadc68.js';
6
+ import { s as script$c } from './OrIcon-62793572.js';
7
+ import { s as script$e, I as InputBoxSize } from './OrInputBox-32b37b17.js';
8
+ import { s as script$f } from './OrLabel-4da56db0.js';
9
+ import { s as script$g } from './OrPopover-337df396.js';
10
+ import { s as script$4, a as script$5, b as script$6, c as script$7, d as script$8, e as script$9, u as useCurrentDate } from './OrDateTimePickerPopoverHeader-bc8e0bcf.js';
11
+ import { openBlock, createElementBlock, normalizeClass, Fragment, createTextVNode, toDisplayString, resolveComponent, createElementVNode, renderList, createBlock, withModifiers, withCtx, createVNode, createCommentVNode, resolveDirective, renderSlot, withDirectives } from 'vue';
12
+ import { s as script$3 } from './OrButton-c2b6aa9e.js';
13
+
14
+ function useTimePlaceholder(hourCycle) {
15
+ const sample = new Date(Date.UTC(1, 1, 3, 4, 5)).toLocaleString(navigator.language, {
16
+ timeStyle: 'short',
17
+ hourCycle,
18
+ timeZone: 'UTC'
19
+ });
20
+ return sample.replace(/04/, 'HH').replace(/4/, 'H').replace(/05/, 'MM').replace(/5/, 'M').replace(/AM|PM/, 'A');
21
+ }
22
+
23
+ var DateTimePickerTimeFormat;
24
+ (function (DateTimePickerTimeFormat) {
25
+ DateTimePickerTimeFormat["Auto"] = "auto";
26
+ DateTimePickerTimeFormat["H12"] = "h12";
27
+ DateTimePickerTimeFormat["H23"] = "h23";
28
+ })(DateTimePickerTimeFormat || (DateTimePickerTimeFormat = {}));
29
+
30
+ const DateTimePickerTimeControl = [
31
+ // Layout
32
+ 'layout-inline-row',
33
+ // Interactivity
34
+ 'interactivity-auto',
35
+ // Theme (focus)
36
+ 'focus:theme-border-2-inherit', 'dark:focus:theme-border-2-inherit-dark', 'focus:theme-border-underline'];
37
+ const DateTimePickerTimeControlPlaceholder = [
38
+ // Theme
39
+ 'theme-foreground-outline', 'dark:theme-foreground-outline-dark'];
40
+
41
+ var script$2 = defineComponent({
42
+ name: 'OrDateTimePickerTimeControl',
43
+ model: {
44
+ prop: 'modelValue',
45
+ event: 'update:modelValue'
46
+ },
47
+ props: {
48
+ modelValue: {
49
+ type: Date,
50
+ default: undefined
51
+ },
52
+ format: {
53
+ type: String,
54
+ default: DateTimePickerTimeFormat.Auto
55
+ },
56
+ required: {
57
+ type: Boolean,
58
+ default: false
59
+ },
60
+ readonly: {
61
+ type: Boolean,
62
+ default: false
63
+ },
64
+ disabled: {
65
+ type: Boolean,
66
+ default: false
67
+ }
68
+ },
69
+ expose: ['root'],
70
+ setup(props, context) {
71
+ // Refs
72
+ const root = ref();
73
+ // Styles
74
+ const rootStyles = computed(() => ['or-date-time-picker-time-control-v3', ...DateTimePickerTimeControl]);
75
+ const placeholderStyles = computed(() => [...DateTimePickerTimeControlPlaceholder]);
76
+ // State
77
+ const proxyModelValue = computed({
78
+ get: () => props.modelValue,
79
+ set: value => {
80
+ context.emit('update:modelValue', value);
81
+ }
82
+ });
83
+ const placeholder = useTimePlaceholder(props.format !== DateTimePickerTimeFormat.Auto ? props.format : undefined);
84
+ // Methods
85
+ function formatModelValue(value) {
86
+ return value.toLocaleString(navigator.language, {
87
+ timeStyle: 'short',
88
+ hourCycle: props.format !== DateTimePickerTimeFormat.Auto ? props.format : undefined,
89
+ timeZone: 'UTC'
90
+ });
91
+ }
92
+ return {
93
+ root,
94
+ rootStyles,
95
+ placeholderStyles,
96
+ proxyModelValue,
97
+ placeholder,
98
+ formatModelValue
99
+ };
100
+ }
101
+ });
102
+
103
+ const _hoisted_1$1 = ["contenteditable", "required", "readonly", "disabled"];
104
+ const _hoisted_2 = ["disabled"];
105
+ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
106
+ return openBlock(), createElementBlock("div", {
107
+ ref: "root",
108
+ class: normalizeClass(_ctx.rootStyles),
109
+ contenteditable: !_ctx.disabled ? '' : null,
110
+ required: _ctx.required ? '' : null,
111
+ readonly: _ctx.readonly ? '' : null,
112
+ disabled: _ctx.disabled ? '' : null
113
+ }, [_ctx.proxyModelValue ? (openBlock(), createElementBlock(Fragment, {
114
+ key: 0
115
+ }, [createTextVNode(toDisplayString(_ctx.formatModelValue(_ctx.proxyModelValue)), 1 /* TEXT */)], 64 /* STABLE_FRAGMENT */)) : (openBlock(), createElementBlock("span", {
116
+ key: 1,
117
+ class: normalizeClass(_ctx.placeholderStyles),
118
+ disabled: _ctx.disabled ? '' : null
119
+ }, toDisplayString(_ctx.placeholder), 11 /* TEXT, CLASS, PROPS */, _hoisted_2))], 10 /* CLASS, PROPS */, _hoisted_1$1);
120
+ }
121
+
122
+ script$2.render = render$2;
123
+ script$2.__file = "src/components/or-date-time-picker-v3/partials/or-date-time-picker-time-control/OrDateTimePickerTimeControl.vue";
124
+
125
+ const DateTimePickerTimeSelect = [
126
+ // Layout
127
+ 'layout-row justify-center',
128
+ // Spacing
129
+ 'px-md', 'py-md', 'gap-sm',
130
+ // Typography
131
+ 'typography-body-2-regular',
132
+ // Theme
133
+ 'theme-foreground-default', 'dark:theme-foreground-default-dark'];
134
+ const DateTimePickerTimeSelectButtonGroup = [
135
+ // Layout
136
+ 'layout-column',
137
+ // Box
138
+ 'h-[294px] md:h-[238px]',
139
+ // Overflow
140
+ 'overflow-x-hidden', 'overflow-y-auto'];
141
+ const DateTimePickerTimeSelectButtonGroupItem = [
142
+ // Box
143
+ '!min-w-fit',
144
+ // Typography
145
+ 'typography-caption-regular'];
146
+
147
+ var script$1 = defineComponent({
148
+ name: 'OrDateTimePickerTimeSelect',
149
+ components: {
150
+ OrButton: script$3
151
+ },
152
+ model: {
153
+ prop: 'modelValue',
154
+ event: 'update:modelValue'
155
+ },
156
+ props: {
157
+ modelValue: {
158
+ type: Date,
159
+ default: undefined
160
+ },
161
+ initialValue: {
162
+ type: Date,
163
+ required: true
164
+ },
165
+ format: {
166
+ type: String,
167
+ default: DateTimePickerTimeFormat.Auto
168
+ },
169
+ hoursFilter: {
170
+ type: Function,
171
+ default: undefined
172
+ },
173
+ minutesFilter: {
174
+ type: Function,
175
+ default: undefined
176
+ }
177
+ },
178
+ emits: ['update:modelValue'],
179
+ expose: ['root'],
180
+ setup(props, context) {
181
+ // Refs
182
+ const root = ref();
183
+ // Styles
184
+ const rootStyles = computed(() => ['or-date-time-picker-time-select-v3', ...DateTimePickerTimeSelect]);
185
+ const buttonGroupStyles = computed(() => [...DateTimePickerTimeSelectButtonGroup]);
186
+ const buttonGroupItemStyles = computed(() => [...DateTimePickerTimeSelectButtonGroupItem]);
187
+ // State
188
+ const proxyModelValue = computed({
189
+ get: () => {
190
+ var _a;
191
+ return (_a = props.modelValue) !== null && _a !== void 0 ? _a : props.initialValue;
192
+ },
193
+ set: value => {
194
+ context.emit('update:modelValue', value);
195
+ }
196
+ });
197
+ const proxyTimeFormat = computed(() => {
198
+ if (props.format === DateTimePickerTimeFormat.Auto) {
199
+ const timeSample = new Date(1970, 0);
200
+ if (timeSample.toLocaleTimeString(navigator.language).includes('12')) {
201
+ return DateTimePickerTimeFormat.H12;
202
+ }
203
+ return DateTimePickerTimeFormat.H23;
204
+ }
205
+ return props.format;
206
+ });
207
+ const hoursRange = ref(proxyModelValue.value.getUTCHours() < 12 ? 'am' : 'pm');
208
+ watch(hoursRange, value => {
209
+ switch (value) {
210
+ case 'am':
211
+ proxyModelValue.value = new Date(Date.UTC(proxyModelValue.value.getUTCFullYear(), proxyModelValue.value.getUTCMonth(), proxyModelValue.value.getUTCDate(), proxyModelValue.value.getUTCHours() - 12, proxyModelValue.value.getUTCMinutes()));
212
+ break;
213
+ case 'pm':
214
+ proxyModelValue.value = new Date(Date.UTC(proxyModelValue.value.getUTCFullYear(), proxyModelValue.value.getUTCMonth(), proxyModelValue.value.getUTCDate(), proxyModelValue.value.getUTCHours() + 12, proxyModelValue.value.getUTCMinutes()));
215
+ break;
216
+ }
217
+ });
218
+ const hoursOptions = computed(() => {
219
+ return Array.from({
220
+ length: 24
221
+ }, (_value, index) => {
222
+ const value = index;
223
+ return new Date(Date.UTC(proxyModelValue.value.getUTCFullYear(), proxyModelValue.value.getUTCMonth(), proxyModelValue.value.getUTCDate(), value, proxyModelValue.value.getUTCMinutes()));
224
+ }).filter(value => {
225
+ if (proxyTimeFormat.value === DateTimePickerTimeFormat.H23) {
226
+ return true;
227
+ }
228
+ switch (hoursRange.value) {
229
+ case 'am':
230
+ return value.getUTCHours() < 12;
231
+ case 'pm':
232
+ return value.getUTCHours() >= 12;
233
+ }
234
+ });
235
+ });
236
+ const minutesOptions = computed(() => {
237
+ return Array.from({
238
+ length: 60
239
+ }, (_value, index) => {
240
+ const value = index;
241
+ return new Date(Date.UTC(proxyModelValue.value.getUTCFullYear(), proxyModelValue.value.getUTCMonth(), proxyModelValue.value.getUTCDate(), proxyModelValue.value.getUTCHours(), value));
242
+ });
243
+ });
244
+ // Methods
245
+ function formatHours(value) {
246
+ return value.toLocaleString(navigator.language, {
247
+ hour: 'numeric',
248
+ hourCycle: props.format !== DateTimePickerTimeFormat.Auto ? props.format : undefined,
249
+ timeZone: 'UTC'
250
+ }).replace(/\s(am|pm)/i, '');
251
+ }
252
+ function formatMinutes(value) {
253
+ return String(value.getUTCMinutes()).padStart(2, '0');
254
+ }
255
+ return {
256
+ root,
257
+ rootStyles,
258
+ buttonGroupStyles,
259
+ buttonGroupItemStyles,
260
+ proxyModelValue,
261
+ proxyTimeFormat,
262
+ hoursRange,
263
+ hoursOptions,
264
+ minutesOptions,
265
+ formatHours,
266
+ formatMinutes
267
+ };
268
+ }
269
+ });
270
+
271
+ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
272
+ const _component_OrButton = resolveComponent("OrButton");
273
+ return openBlock(), createElementBlock("div", {
274
+ ref: "root",
275
+ class: normalizeClass(_ctx.rootStyles)
276
+ }, [createElementVNode("div", {
277
+ class: normalizeClass(_ctx.buttonGroupStyles)
278
+ }, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.hoursOptions, value => {
279
+ return openBlock(), createBlock(_component_OrButton, {
280
+ key: Number(value),
281
+ class: normalizeClass(_ctx.buttonGroupItemStyles),
282
+ variant: Number(value) === Number(_ctx.proxyModelValue) ? 'contained' : 'text',
283
+ color: Number(value) === Number(_ctx.proxyModelValue) ? 'primary' : 'inherit',
284
+ disabled: _ctx.hoursFilter && !_ctx.hoursFilter(value),
285
+ onClick: withModifiers($event => _ctx.proxyModelValue = value, ["stop"])
286
+ }, {
287
+ default: withCtx(() => [createTextVNode(toDisplayString(_ctx.formatHours(value)), 1 /* TEXT */)]),
288
+
289
+ _: 2 /* DYNAMIC */
290
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["class", "variant", "color", "disabled", "onClick"]);
291
+ }), 128 /* KEYED_FRAGMENT */))], 2 /* CLASS */), createTextVNode(" : "), createElementVNode("div", {
292
+ class: normalizeClass(_ctx.buttonGroupStyles)
293
+ }, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.minutesOptions, value => {
294
+ return openBlock(), createBlock(_component_OrButton, {
295
+ key: Number(value),
296
+ class: normalizeClass(_ctx.buttonGroupItemStyles),
297
+ variant: Number(value) === Number(_ctx.proxyModelValue) ? 'contained' : 'text',
298
+ color: Number(value) === Number(_ctx.proxyModelValue) ? 'primary' : 'inherit',
299
+ disabled: _ctx.minutesFilter && !_ctx.minutesFilter(value),
300
+ onClick: withModifiers($event => _ctx.proxyModelValue = value, ["stop"])
301
+ }, {
302
+ default: withCtx(() => [createTextVNode(toDisplayString(_ctx.formatMinutes(value)), 1 /* TEXT */)]),
303
+
304
+ _: 2 /* DYNAMIC */
305
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["class", "variant", "color", "disabled", "onClick"]);
306
+ }), 128 /* KEYED_FRAGMENT */))], 2 /* CLASS */), _ctx.proxyTimeFormat === 'h12' ? (openBlock(), createElementBlock("div", {
307
+ key: 0,
308
+ class: normalizeClass(_ctx.buttonGroupStyles)
309
+ }, [createVNode(_component_OrButton, {
310
+ class: normalizeClass(_ctx.buttonGroupItemStyles),
311
+ variant: _ctx.hoursRange === 'am' ? 'contained' : 'text',
312
+ color: _ctx.hoursRange === 'am' ? 'primary' : 'inherit',
313
+ onClick: _cache[0] || (_cache[0] = withModifiers($event => _ctx.hoursRange = 'am', ["stop"]))
314
+ }, {
315
+ default: withCtx(() => [createTextVNode(" AM ")]),
316
+ _: 1 /* STABLE */
317
+ }, 8 /* PROPS */, ["class", "variant", "color"]), createVNode(_component_OrButton, {
318
+ class: normalizeClass(_ctx.buttonGroupItemStyles),
319
+ variant: _ctx.hoursRange === 'pm' ? 'contained' : 'text',
320
+ color: _ctx.hoursRange === 'pm' ? 'primary' : 'inherit',
321
+ onClick: _cache[1] || (_cache[1] = withModifiers($event => _ctx.hoursRange = 'pm', ["stop"]))
322
+ }, {
323
+ default: withCtx(() => [createTextVNode(" PM ")]),
324
+ _: 1 /* STABLE */
325
+ }, 8 /* PROPS */, ["class", "variant", "color"])], 2 /* CLASS */)) : createCommentVNode("v-if", true)], 2 /* CLASS */);
326
+ }
327
+
328
+ script$1.render = render$1;
329
+ script$1.__file = "src/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue";
330
+
331
+ const DateTimePicker = [
332
+ // Layout
333
+ 'layout-column',
334
+ // Spacing
335
+ 'gap-xs'];
336
+ const DateTimePickerDatePopover = [
337
+ // Box
338
+ 'w-[298px]'];
339
+ const DateTimePickerTimePopover = [];
340
+
341
+ var script = defineComponent({
342
+ name: 'OrDateTimePicker',
343
+ components: {
344
+ OrDateTimePickerDateControl: script$4,
345
+ OrDateTimePickerDateSelect: script$5,
346
+ OrDateTimePickerMobileControl: script$6,
347
+ OrDateTimePickerMonthSelect: script$7,
348
+ OrDateTimePickerPopoverFooter: script$8,
349
+ OrDateTimePickerPopoverHeader: script$9,
350
+ OrDateTimePickerTimeControl: script$2,
351
+ OrDateTimePickerTimeSelect: script$1,
352
+ OrError: script$a,
353
+ OrHint: script$b,
354
+ OrIcon: script$c,
355
+ OrIconButton: script$d,
356
+ OrInputBox: script$e,
357
+ OrLabel: script$f,
358
+ OrPopover: script$g
359
+ },
360
+ directives: {
361
+ DropdownClose,
362
+ DropdownOpen
363
+ },
364
+ model: {
365
+ prop: 'modelValue',
366
+ event: 'update:modelValue'
367
+ },
368
+ props: {
369
+ modelValue: {
370
+ type: Date,
371
+ default: undefined
372
+ },
373
+ timeFormat: {
374
+ type: String,
375
+ default: DateTimePickerTimeFormat.Auto
376
+ },
377
+ yearFilter: {
378
+ type: Function,
379
+ default: undefined
380
+ },
381
+ monthFilter: {
382
+ type: Function,
383
+ default: undefined
384
+ },
385
+ dateFilter: {
386
+ type: Function,
387
+ default: undefined
388
+ },
389
+ hoursFilter: {
390
+ type: Function,
391
+ default: undefined
392
+ },
393
+ minutesFilter: {
394
+ type: Function,
395
+ default: undefined
396
+ },
397
+ size: {
398
+ type: String,
399
+ default: InputBoxSize.M
400
+ },
401
+ label: {
402
+ type: String,
403
+ default: undefined
404
+ },
405
+ hint: {
406
+ type: String,
407
+ default: undefined
408
+ },
409
+ error: {
410
+ type: [String, Boolean],
411
+ default: undefined
412
+ },
413
+ required: {
414
+ type: Boolean,
415
+ default: false
416
+ },
417
+ readonly: {
418
+ type: Boolean,
419
+ default: false
420
+ },
421
+ disabled: {
422
+ type: Boolean,
423
+ default: false
424
+ },
425
+ disableDefaultStyles: {
426
+ type: Boolean,
427
+ default: false
428
+ }
429
+ },
430
+ emits: ['update:modelValue', 'keydown', 'keyup', 'focus', 'blur'],
431
+ expose: ['root', 'focus', 'blur'],
432
+ setup(props, context) {
433
+ // Refs
434
+ const root = ref();
435
+ const inputBox = ref();
436
+ const inputBoxRoot = computed(() => {
437
+ var _a;
438
+ return (_a = inputBox.value) === null || _a === void 0 ? void 0 : _a.root;
439
+ });
440
+ const datePopover = ref();
441
+ const datePopoverState = computed(() => {
442
+ var _a;
443
+ return (_a = datePopover.value) === null || _a === void 0 ? void 0 : _a.state;
444
+ });
445
+ const timePopover = ref();
446
+ const timePopoverState = computed(() => {
447
+ var _a;
448
+ return (_a = timePopover.value) === null || _a === void 0 ? void 0 : _a.state;
449
+ });
450
+ // Styles
451
+ const rootStyles = computed(() => ['or-date-time-picker-v3', ...DateTimePicker]);
452
+ const datePopoverStyles = computed(() => [...DateTimePickerDatePopover]);
453
+ const timePopoverStyles = computed(() => [...DateTimePickerTimePopover]);
454
+ // State
455
+ const initialModelValue = useCurrentDate();
456
+ const proxyModelValue = computed({
457
+ get: () => props.modelValue,
458
+ set: value => {
459
+ context.emit('update:modelValue', value);
460
+ }
461
+ });
462
+ const draftModelValue = ref();
463
+ watch(proxyModelValue, value => {
464
+ draftModelValue.value = value;
465
+ }, {
466
+ immediate: true
467
+ });
468
+ const isInvalidDraftModelValue = computed(() => {
469
+ if (draftModelValue.value) {
470
+ if (props.yearFilter && !props.yearFilter(draftModelValue.value)) {
471
+ return true;
472
+ }
473
+ if (props.monthFilter && !props.monthFilter(draftModelValue.value)) {
474
+ return true;
475
+ }
476
+ if (props.dateFilter && !props.dateFilter(draftModelValue.value)) {
477
+ return true;
478
+ }
479
+ if (props.hoursFilter && !props.hoursFilter(draftModelValue.value)) {
480
+ return true;
481
+ }
482
+ if (props.minutesFilter && !props.minutesFilter(draftModelValue.value)) {
483
+ return true;
484
+ }
485
+ }
486
+ return false;
487
+ });
488
+ // Methods
489
+ function apply() {
490
+ var _a;
491
+ proxyModelValue.value = (_a = draftModelValue.value) !== null && _a !== void 0 ? _a : initialModelValue;
492
+ }
493
+ function reset() {
494
+ draftModelValue.value = proxyModelValue.value;
495
+ }
496
+ function toggleDatePopover() {
497
+ if (!props.readonly && !props.disabled) {
498
+ const popoverInstance = datePopover.value;
499
+ if (popoverInstance) {
500
+ if (datePopoverState.value === 'open') {
501
+ popoverInstance.close();
502
+ } else {
503
+ popoverInstance.open();
504
+ }
505
+ }
506
+ closeTimePopover();
507
+ }
508
+ }
509
+ function toggleTimePopover() {
510
+ if (!props.readonly && !props.disabled) {
511
+ const popoverInstance = timePopover.value;
512
+ if (popoverInstance) {
513
+ if (timePopoverState.value === 'open') {
514
+ popoverInstance.close();
515
+ } else {
516
+ popoverInstance.open();
517
+ }
518
+ }
519
+ closeDatePopover();
520
+ }
521
+ }
522
+ function closeDatePopover() {
523
+ const popoverInstance = datePopover.value;
524
+ if (popoverInstance) {
525
+ popoverInstance.close();
526
+ }
527
+ }
528
+ function closeTimePopover() {
529
+ const popoverInstance = timePopover.value;
530
+ if (popoverInstance) {
531
+ popoverInstance.close();
532
+ }
533
+ }
534
+ function formatDateAlt(value) {
535
+ var _a;
536
+ return (_a = value === null || value === void 0 ? void 0 : value.toLocaleString(navigator.language, {
537
+ dateStyle: 'medium',
538
+ timeZone: 'UTC'
539
+ })) !== null && _a !== void 0 ? _a : '--';
540
+ }
541
+ function formatTimeAlt(value) {
542
+ var _a;
543
+ return (_a = value === null || value === void 0 ? void 0 : value.toLocaleString(navigator.language, {
544
+ timeStyle: 'short',
545
+ hourCycle: props.timeFormat !== DateTimePickerTimeFormat.Auto ? props.timeFormat : undefined,
546
+ timeZone: 'UTC'
547
+ })) !== null && _a !== void 0 ? _a : '--';
548
+ }
549
+ return {
550
+ root,
551
+ inputBox,
552
+ inputBoxRoot,
553
+ datePopover,
554
+ datePopoverState,
555
+ timePopover,
556
+ timePopoverState,
557
+ rootStyles,
558
+ datePopoverStyles,
559
+ timePopoverStyles,
560
+ initialModelValue,
561
+ proxyModelValue,
562
+ draftModelValue,
563
+ isInvalidDraftModelValue,
564
+ apply,
565
+ reset,
566
+ toggleDatePopover,
567
+ toggleTimePopover,
568
+ closeDatePopover,
569
+ closeTimePopover,
570
+ formatDateAlt,
571
+ formatTimeAlt
572
+ };
573
+ }
574
+ });
575
+
576
+ const _hoisted_1 = /*#__PURE__*/createElementVNode("div", {
577
+ class: /*#__PURE__*/normalizeClass(['grow'])
578
+ }, null, -1 /* HOISTED */);
579
+
580
+ function render(_ctx, _cache, $props, $setup, $data, $options) {
581
+ const _component_OrLabel = resolveComponent("OrLabel");
582
+ const _component_OrDateTimePickerDateControl = resolveComponent("OrDateTimePickerDateControl");
583
+ const _component_OrDateTimePickerTimeControl = resolveComponent("OrDateTimePickerTimeControl");
584
+ const _component_OrDateTimePickerMobileControl = resolveComponent("OrDateTimePickerMobileControl");
585
+ const _component_OrDateTimePickerPopoverHeader = resolveComponent("OrDateTimePickerPopoverHeader");
586
+ const _component_OrDateTimePickerMonthSelect = resolveComponent("OrDateTimePickerMonthSelect");
587
+ const _component_OrDateTimePickerDateSelect = resolveComponent("OrDateTimePickerDateSelect");
588
+ const _component_OrDateTimePickerPopoverFooter = resolveComponent("OrDateTimePickerPopoverFooter");
589
+ const _component_OrPopover = resolveComponent("OrPopover");
590
+ const _component_OrDateTimePickerTimeSelect = resolveComponent("OrDateTimePickerTimeSelect");
591
+ const _component_OrIconButton = resolveComponent("OrIconButton");
592
+ const _component_OrIcon = resolveComponent("OrIcon");
593
+ const _component_OrInputBox = resolveComponent("OrInputBox");
594
+ const _component_OrHint = resolveComponent("OrHint");
595
+ const _component_OrError = resolveComponent("OrError");
596
+ const _directive_dropdown_open = resolveDirective("dropdown-open");
597
+ const _directive_dropdown_close = resolveDirective("dropdown-close");
598
+ return openBlock(), createElementBlock("div", {
599
+ ref: "root",
600
+ class: normalizeClass(_ctx.rootStyles)
601
+ }, [_ctx.label ? (openBlock(), createBlock(_component_OrLabel, {
602
+ key: 0,
603
+ variant: 'input',
604
+ required: _ctx.required,
605
+ disabled: _ctx.disabled
606
+ }, {
607
+ addon: withCtx(() => [renderSlot(_ctx.$slots, "addon")]),
608
+ default: withCtx(() => [createTextVNode(toDisplayString(_ctx.label) + " ", 1 /* TEXT */)]),
609
+
610
+ _: 3 /* FORWARDED */
611
+ }, 8 /* PROPS */, ["required", "disabled"])) : createCommentVNode("v-if", true), withDirectives((openBlock(), createBlock(_component_OrInputBox, {
612
+ ref: "inputBox",
613
+ variant: _ctx.disableDefaultStyles ? 'unstyled' : 'styled',
614
+ size: _ctx.size,
615
+ invalid: !!_ctx.error,
616
+ readonly: _ctx.readonly,
617
+ disabled: _ctx.disabled
618
+ }, {
619
+ addon: withCtx(() => [_ctx.modelValue ? (openBlock(), createBlock(_component_OrIconButton, {
620
+ key: 0,
621
+ icon: 'close',
622
+ color: 'inherit',
623
+ disabled: _ctx.readonly || _ctx.disabled,
624
+ onClick: _cache[11] || (_cache[11] = withModifiers($event => _ctx.$emit('update:modelValue', undefined), ["stop"]))
625
+ }, null, 8 /* PROPS */, ["disabled"])) : (openBlock(), createBlock(_component_OrIcon, {
626
+ key: 1,
627
+ icon: 'calendar_month',
628
+ variant: 'outlined'
629
+ }))]),
630
+ default: withCtx(() => [withDirectives(createVNode(_component_OrDateTimePickerDateControl, {
631
+ modelValue: _ctx.draftModelValue,
632
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.draftModelValue = $event),
633
+ required: _ctx.required,
634
+ readonly: _ctx.readonly,
635
+ disabled: _ctx.disabled
636
+ }, null, 8 /* PROPS */, ["modelValue", "required", "readonly", "disabled"]), [[_directive_dropdown_open, _ctx.toggleDatePopover], [_directive_dropdown_close, _ctx.closeDatePopover]]), withDirectives(createVNode(_component_OrDateTimePickerTimeControl, {
637
+ modelValue: _ctx.draftModelValue,
638
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => _ctx.draftModelValue = $event),
639
+ format: _ctx.timeFormat,
640
+ required: _ctx.required,
641
+ readonly: _ctx.readonly,
642
+ disabled: _ctx.disabled
643
+ }, null, 8 /* PROPS */, ["modelValue", "format", "required", "readonly", "disabled"]), [[_directive_dropdown_open, _ctx.toggleTimePopover], [_directive_dropdown_close, _ctx.closeTimePopover]]), createVNode(_component_OrPopover, {
644
+ ref: "datePopover",
645
+ class: normalizeClass(_ctx.datePopoverStyles),
646
+ variant: 'auto',
647
+ "bottom-sheet-props": {
648
+ variant: 'basic'
649
+ },
650
+ trigger: _ctx.inputBoxRoot,
651
+ placement: 'bottom-start',
652
+ onClose: _cache[6] || (_cache[6] = $event => _ctx.reset())
653
+ }, {
654
+ default: withCtx(() => [createVNode(_component_OrDateTimePickerPopoverHeader, null, {
655
+ default: withCtx(() => [createVNode(_component_OrDateTimePickerMobileControl, {
656
+ label: "Date"
657
+ }, {
658
+ default: withCtx(() => [createTextVNode(toDisplayString(_ctx.formatDateAlt(_ctx.draftModelValue)), 1 /* TEXT */)]),
659
+
660
+ _: 1 /* STABLE */
661
+ }), createVNode(_component_OrDateTimePickerMobileControl, {
662
+ label: "Time"
663
+ }, {
664
+ default: withCtx(() => [createTextVNode(toDisplayString(_ctx.formatTimeAlt(_ctx.draftModelValue)), 1 /* TEXT */)]),
665
+
666
+ _: 1 /* STABLE */
667
+ })]),
668
+
669
+ _: 1 /* STABLE */
670
+ }), createVNode(_component_OrDateTimePickerMonthSelect, {
671
+ modelValue: _ctx.draftModelValue,
672
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => _ctx.draftModelValue = $event),
673
+ "initial-value": _ctx.initialModelValue,
674
+ "year-filter": _ctx.yearFilter,
675
+ "month-filter": _ctx.monthFilter
676
+ }, null, 8 /* PROPS */, ["modelValue", "initial-value", "year-filter", "month-filter"]), createVNode(_component_OrDateTimePickerDateSelect, {
677
+ modelValue: _ctx.draftModelValue,
678
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = $event => _ctx.draftModelValue = $event),
679
+ "initial-value": _ctx.initialModelValue,
680
+ "date-filter": _ctx.dateFilter
681
+ }, null, 8 /* PROPS */, ["modelValue", "initial-value", "date-filter"]), createVNode(_component_OrDateTimePickerPopoverFooter, {
682
+ disabled: _ctx.isInvalidDraftModelValue,
683
+ onApply: _cache[4] || (_cache[4] = $event => {
684
+ _ctx.apply();
685
+ _ctx.datePopover.close();
686
+ }),
687
+ onReset: _cache[5] || (_cache[5] = $event => {
688
+ _ctx.reset();
689
+ _ctx.datePopover.close();
690
+ })
691
+ }, null, 8 /* PROPS */, ["disabled"])]),
692
+ _: 1 /* STABLE */
693
+ }, 8 /* PROPS */, ["class", "trigger"]), createVNode(_component_OrPopover, {
694
+ ref: "timePopover",
695
+ class: normalizeClass(_ctx.timePopoverStyles),
696
+ variant: 'auto',
697
+ "bottom-sheet-props": {
698
+ variant: 'basic'
699
+ },
700
+ trigger: _ctx.inputBoxRoot,
701
+ placement: 'bottom-start',
702
+ onClose: _cache[10] || (_cache[10] = $event => _ctx.reset())
703
+ }, {
704
+ default: withCtx(() => [createVNode(_component_OrDateTimePickerPopoverHeader, null, {
705
+ default: withCtx(() => [createVNode(_component_OrDateTimePickerMobileControl, {
706
+ label: "Date"
707
+ }, {
708
+ default: withCtx(() => [createTextVNode(toDisplayString(_ctx.formatDateAlt(_ctx.draftModelValue)), 1 /* TEXT */)]),
709
+
710
+ _: 1 /* STABLE */
711
+ }), createVNode(_component_OrDateTimePickerMobileControl, {
712
+ label: "Time"
713
+ }, {
714
+ default: withCtx(() => [createTextVNode(toDisplayString(_ctx.formatTimeAlt(_ctx.draftModelValue)), 1 /* TEXT */)]),
715
+
716
+ _: 1 /* STABLE */
717
+ })]),
718
+
719
+ _: 1 /* STABLE */
720
+ }), createVNode(_component_OrDateTimePickerTimeSelect, {
721
+ modelValue: _ctx.draftModelValue,
722
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = $event => _ctx.draftModelValue = $event),
723
+ "initial-value": _ctx.initialModelValue,
724
+ format: _ctx.timeFormat,
725
+ "hours-filter": _ctx.hoursFilter,
726
+ "minutes-filter": _ctx.minutesFilter
727
+ }, null, 8 /* PROPS */, ["modelValue", "initial-value", "format", "hours-filter", "minutes-filter"]), createVNode(_component_OrDateTimePickerPopoverFooter, {
728
+ disabled: _ctx.isInvalidDraftModelValue,
729
+ onApply: _cache[8] || (_cache[8] = $event => {
730
+ _ctx.apply();
731
+ _ctx.timePopover.close();
732
+ }),
733
+ onReset: _cache[9] || (_cache[9] = $event => {
734
+ _ctx.reset();
735
+ _ctx.timePopover.close();
736
+ })
737
+ }, null, 8 /* PROPS */, ["disabled"])]),
738
+ _: 1 /* STABLE */
739
+ }, 8 /* PROPS */, ["class", "trigger"]), _hoisted_1]),
740
+ _: 1 /* STABLE */
741
+ }, 8 /* PROPS */, ["variant", "size", "invalid", "readonly", "disabled"])), [[_directive_dropdown_open, _ctx.toggleDatePopover], [_directive_dropdown_close, _ctx.closeDatePopover]]), !_ctx.error ? (openBlock(), createElementBlock(Fragment, {
742
+ key: 1
743
+ }, [_ctx.hint ? (openBlock(), createBlock(_component_OrHint, {
744
+ key: 0,
745
+ disabled: _ctx.disabled
746
+ }, {
747
+ default: withCtx(() => [createTextVNode(toDisplayString(_ctx.hint), 1 /* TEXT */)]),
748
+
749
+ _: 1 /* STABLE */
750
+ }, 8 /* PROPS */, ["disabled"])) : createCommentVNode("v-if", true)], 64 /* STABLE_FRAGMENT */)) : createCommentVNode("v-if", true), typeof _ctx.error === 'string' ? (openBlock(), createBlock(_component_OrError, {
751
+ key: 2,
752
+ disabled: _ctx.disabled
753
+ }, {
754
+ default: withCtx(() => [createTextVNode(toDisplayString(_ctx.error), 1 /* TEXT */)]),
755
+
756
+ _: 1 /* STABLE */
757
+ }, 8 /* PROPS */, ["disabled"])) : createCommentVNode("v-if", true)], 2 /* CLASS */);
758
+ }
759
+
760
+ script.render = render;
761
+ script.__file = "src/components/or-date-time-picker-v3/OrDateTimePicker.vue";
762
+
763
+ export { DateTimePickerTimeFormat as D, script$2 as a, script$1 as b, script as s };