@onereach/ui-components 3.0.4-beta.2486.0 → 3.0.4-beta.2497.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 (112) hide show
  1. package/dist/bundled/v2/{OrCardCollection-ad2240ac.js → OrCardCollection-a10920a3.js} +1 -1
  2. package/dist/bundled/v2/{OrDateTimePicker-60e1a7ee.js → OrDateTimePicker-d6f327ad.js} +308 -176
  3. package/dist/bundled/v2/{OrMenu-cbb0c2c8.js → OrMenu-0c2c348c.js} +6 -1
  4. package/dist/bundled/v2/{OrPagination-cf47d71c.js → OrPagination-00ab6954.js} +1 -1
  5. package/dist/bundled/v2/{OrTabs-10f7e668.js → OrTabs-f7c9f754.js} +1 -1
  6. package/dist/bundled/v2/components/index.js +5 -5
  7. package/dist/bundled/v2/components/or-card-collection-v3/index.js +2 -2
  8. package/dist/bundled/v2/components/or-date-time-picker-v3/OrDateTimePicker.vue.d.ts +11 -1
  9. package/dist/bundled/v2/components/or-date-time-picker-v3/hooks/useDefaultDate.d.ts +1 -0
  10. package/dist/bundled/v2/components/or-date-time-picker-v3/hooks/useDefaultHours.d.ts +1 -0
  11. package/dist/bundled/v2/components/or-date-time-picker-v3/hooks/useDefaultMinutes.d.ts +1 -0
  12. package/dist/bundled/v2/components/or-date-time-picker-v3/hooks/useDefaultMonth.d.ts +1 -0
  13. package/dist/bundled/v2/components/or-date-time-picker-v3/hooks/useDefaultYear.d.ts +1 -0
  14. package/dist/bundled/v2/components/or-date-time-picker-v3/index.js +4 -4
  15. package/dist/bundled/v2/components/or-date-time-picker-v3/partials/{or-date-time-picker-date-select/OrDateTimePickerDateSelect.vue.d.ts → or-date-time-picker-day-select/OrDateTimePickerDaySelect.vue.d.ts} +8 -0
  16. package/dist/bundled/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-day-select/styles.d.ts +3 -0
  17. package/dist/bundled/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/OrDateTimePickerMonthSelect.vue.d.ts +26 -34
  18. package/dist/bundled/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue.d.ts +8 -20
  19. package/dist/bundled/v2/components/or-menu-v3/OrMenu.vue.d.ts +2 -0
  20. package/dist/bundled/v2/components/or-menu-v3/index.js +1 -1
  21. package/dist/bundled/v2/components/or-pagination-v3/index.js +2 -2
  22. package/dist/bundled/v2/components/or-tabs-v3/index.js +2 -2
  23. package/dist/bundled/v2/index.js +6 -6
  24. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-61f92c57.js → OrCardCollection.vue_vue_type_script_lang-93c84377.js} +2 -2
  25. package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-fb197c2f.js → OrDateTimePicker.vue_vue_type_script_lang-ba3ac4fb.js} +281 -165
  26. package/dist/bundled/v3/{OrMenu-89afef68.js → OrMenu-101f1c62.js} +1 -1
  27. package/dist/bundled/v3/{OrMenu.vue_vue_type_script_lang-f6748a99.js → OrMenu.vue_vue_type_script_lang-7ba15d1d.js} +6 -1
  28. package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-7673a00e.js → OrPagination.vue_vue_type_script_lang-d3e6732f.js} +2 -2
  29. package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-ebd2a59d.js → OrTabs.vue_vue_type_script_lang-513b1e98.js} +2 -2
  30. package/dist/bundled/v3/components/index.js +6 -6
  31. package/dist/bundled/v3/components/or-card-collection-v3/index.js +3 -3
  32. package/dist/bundled/v3/components/or-date-time-picker-v3/OrDateTimePicker.vue.d.ts +11 -1
  33. package/dist/bundled/v3/components/or-date-time-picker-v3/hooks/useDefaultDate.d.ts +1 -0
  34. package/dist/bundled/v3/components/or-date-time-picker-v3/hooks/useDefaultHours.d.ts +1 -0
  35. package/dist/bundled/v3/components/or-date-time-picker-v3/hooks/useDefaultMinutes.d.ts +1 -0
  36. package/dist/bundled/v3/components/or-date-time-picker-v3/hooks/useDefaultMonth.d.ts +1 -0
  37. package/dist/bundled/v3/components/or-date-time-picker-v3/hooks/useDefaultYear.d.ts +1 -0
  38. package/dist/bundled/v3/components/or-date-time-picker-v3/index.js +5 -5
  39. package/dist/{esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-date-select/OrDateTimePickerDateSelect.vue.d.ts → bundled/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-day-select/OrDateTimePickerDaySelect.vue.d.ts} +8 -0
  40. package/dist/bundled/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-day-select/styles.d.ts +3 -0
  41. package/dist/bundled/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/OrDateTimePickerMonthSelect.vue.d.ts +26 -34
  42. package/dist/bundled/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue.d.ts +8 -20
  43. package/dist/bundled/v3/components/or-menu-v3/OrMenu.vue.d.ts +2 -0
  44. package/dist/bundled/v3/components/or-menu-v3/index.js +1 -1
  45. package/dist/bundled/v3/components/or-pagination-v3/index.js +3 -3
  46. package/dist/bundled/v3/components/or-tabs-v3/index.js +3 -3
  47. package/dist/bundled/v3/index.js +50 -32
  48. package/dist/esm/v2/{OrCardCollection-662d5727.js → OrCardCollection-54079e79.js} +1 -1
  49. package/dist/esm/v2/{OrDateTimePicker-4b650aca.js → OrDateTimePicker-57094f24.js} +316 -184
  50. package/dist/esm/v2/{OrMenu-47b319a6.js → OrMenu-18a7f179.js} +6 -1
  51. package/dist/esm/v2/{OrPagination-4d330d4f.js → OrPagination-16f6d75b.js} +1 -1
  52. package/dist/esm/v2/{OrTabs-f0e4db08.js → OrTabs-18df1ce9.js} +1 -1
  53. package/dist/esm/v2/components/index.js +5 -5
  54. package/dist/esm/v2/components/or-card-collection-v3/index.js +2 -2
  55. package/dist/esm/v2/components/or-date-time-picker-v3/OrDateTimePicker.vue.d.ts +11 -1
  56. package/dist/esm/v2/components/or-date-time-picker-v3/hooks/useDefaultDate.d.ts +1 -0
  57. package/dist/esm/v2/components/or-date-time-picker-v3/hooks/useDefaultHours.d.ts +1 -0
  58. package/dist/esm/v2/components/or-date-time-picker-v3/hooks/useDefaultMinutes.d.ts +1 -0
  59. package/dist/esm/v2/components/or-date-time-picker-v3/hooks/useDefaultMonth.d.ts +1 -0
  60. package/dist/esm/v2/components/or-date-time-picker-v3/hooks/useDefaultYear.d.ts +1 -0
  61. package/dist/esm/v2/components/or-date-time-picker-v3/index.js +5 -5
  62. package/dist/esm/v2/components/or-date-time-picker-v3/partials/{or-date-time-picker-date-select/OrDateTimePickerDateSelect.vue.d.ts → or-date-time-picker-day-select/OrDateTimePickerDaySelect.vue.d.ts} +8 -0
  63. package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-day-select/styles.d.ts +3 -0
  64. package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/OrDateTimePickerMonthSelect.vue.d.ts +26 -34
  65. package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue.d.ts +8 -20
  66. package/dist/esm/v2/components/or-menu-v3/OrMenu.vue.d.ts +2 -0
  67. package/dist/esm/v2/components/or-menu-v3/index.js +1 -1
  68. package/dist/esm/v2/components/or-pagination-v3/index.js +2 -2
  69. package/dist/esm/v2/components/or-tabs-v3/index.js +2 -2
  70. package/dist/esm/v2/index.js +5 -5
  71. package/dist/esm/v3/{OrCardCollection-aa7f0c81.js → OrCardCollection-b937aa7a.js} +1 -1
  72. package/dist/esm/v3/{OrDateTimePicker-3e2dc067.js → OrDateTimePicker-a8247a84.js} +321 -187
  73. package/dist/esm/v3/{OrMenu-053a9ab7.js → OrMenu-70cee836.js} +6 -1
  74. package/dist/esm/v3/{OrPagination-f2d104d9.js → OrPagination-7f4ed166.js} +1 -1
  75. package/dist/esm/v3/{OrTabs-d9e2a07e.js → OrTabs-0a5c80be.js} +1 -1
  76. package/dist/esm/v3/components/index.js +5 -5
  77. package/dist/esm/v3/components/or-card-collection-v3/index.js +2 -2
  78. package/dist/esm/v3/components/or-date-time-picker-v3/OrDateTimePicker.vue.d.ts +11 -1
  79. package/dist/esm/v3/components/or-date-time-picker-v3/hooks/useDefaultDate.d.ts +1 -0
  80. package/dist/esm/v3/components/or-date-time-picker-v3/hooks/useDefaultHours.d.ts +1 -0
  81. package/dist/esm/v3/components/or-date-time-picker-v3/hooks/useDefaultMinutes.d.ts +1 -0
  82. package/dist/esm/v3/components/or-date-time-picker-v3/hooks/useDefaultMonth.d.ts +1 -0
  83. package/dist/esm/v3/components/or-date-time-picker-v3/hooks/useDefaultYear.d.ts +1 -0
  84. package/dist/esm/v3/components/or-date-time-picker-v3/index.js +4 -4
  85. package/dist/{bundled/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-date-select/OrDateTimePickerDateSelect.vue.d.ts → esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-day-select/OrDateTimePickerDaySelect.vue.d.ts} +8 -0
  86. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-day-select/styles.d.ts +3 -0
  87. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/OrDateTimePickerMonthSelect.vue.d.ts +26 -34
  88. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue.d.ts +8 -20
  89. package/dist/esm/v3/components/or-menu-v3/OrMenu.vue.d.ts +2 -0
  90. package/dist/esm/v3/components/or-menu-v3/index.js +1 -1
  91. package/dist/esm/v3/components/or-pagination-v3/index.js +2 -2
  92. package/dist/esm/v3/components/or-tabs-v3/index.js +2 -2
  93. package/dist/esm/v3/index.js +5 -5
  94. package/package.json +2 -2
  95. package/src/components/or-date-time-picker-v3/OrDateTimePicker.vue +88 -39
  96. package/src/components/or-date-time-picker-v3/hooks/useDefaultDate.ts +3 -0
  97. package/src/components/or-date-time-picker-v3/hooks/useDefaultHours.ts +3 -0
  98. package/src/components/or-date-time-picker-v3/hooks/useDefaultMinutes.ts +3 -0
  99. package/src/components/or-date-time-picker-v3/hooks/useDefaultMonth.ts +3 -0
  100. package/src/components/or-date-time-picker-v3/hooks/useDefaultYear.ts +3 -0
  101. package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-day-select/OrDateTimePickerDaySelect.vue +162 -0
  102. package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-day-select/styles.ts +31 -0
  103. package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/OrDateTimePickerMonthSelect.vue +101 -79
  104. package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue +58 -42
  105. package/src/components/or-date-time-picker-v3/styles.ts +5 -2
  106. package/src/components/or-menu-v3/OrMenu.vue +3 -0
  107. package/dist/bundled/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-date-select/styles.d.ts +0 -1
  108. package/dist/bundled/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-date-select/styles.d.ts +0 -1
  109. package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-date-select/styles.d.ts +0 -1
  110. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-date-select/styles.d.ts +0 -1
  111. package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-date-select/OrDateTimePickerDateSelect.vue +0 -63
  112. package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-date-select/styles.ts +0 -10
@@ -1,11 +1,11 @@
1
1
  import './index-fa6eb4ca.js';
2
- import { defineComponent, ref, computed, reactive } from '@vue/composition-api/dist/vue-composition-api.mjs';
2
+ import { O as OrButton } from './OrButton-28addda1.js';
3
+ import { defineComponent, ref, computed, reactive, watch } from '@vue/composition-api/dist/vue-composition-api.mjs';
3
4
  import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
4
5
  import { O as OrLabel } from './OrLabel-761500d5.js';
5
- import { O as OrButton } from './OrButton-28addda1.js';
6
6
  import { O as OrIcon } from './OrIcon-05d29a78.js';
7
7
  import { O as OrIconButton } from './OrIconButton-50f3e359.js';
8
- import { O as OrMenu } from './OrMenu-cbb0c2c8.js';
8
+ import { O as OrMenu } from './OrMenu-0c2c348c.js';
9
9
  import { O as OrMenuItem } from './OrMenuItem-7eb9d387.js';
10
10
  import { O as OrError } from './OrError-1186b62f.js';
11
11
  import { O as OrHint } from './OrHint-29b31ba4.js';
@@ -17,14 +17,49 @@ import { u as useValidationAttributes } from './useValidationAttributes-6df7bcf9
17
17
  import { I as InputBoxSize } from './props-c966ae5f.js';
18
18
  import { s as styleInject } from './style-inject.es-4c6f2515.js';
19
19
 
20
- const DateTimePickerDateSelect = [
20
+ function useDefaultDate() {
21
+ return new Date().getUTCDate();
22
+ }
23
+
24
+ function useDefaultHours() {
25
+ return 0;
26
+ }
27
+
28
+ function useDefaultMinutes() {
29
+ return 0;
30
+ }
31
+
32
+ function useDefaultMonth() {
33
+ return new Date().getUTCMonth();
34
+ }
35
+
36
+ function useDefaultYear() {
37
+ return new Date().getUTCFullYear();
38
+ }
39
+
40
+ const DateTimePickerDaySelect = [
21
41
  // Layout
22
42
  'layout-column',
23
43
  // Spacing
24
44
  'px-md', 'py-md', 'gap-sm'];
45
+ const DateTimePickerDaySelectButtonGroup = [
46
+ // Layout
47
+ 'grid', 'grid-cols-7',
48
+ // Spacing
49
+ 'gap-xs'];
50
+ const DateTimePickerDaySelectButtonGroupItem = [
51
+ // Box
52
+ 'min-w-fit',
53
+ // Spacing
54
+ '!px-sm', '!py-sm',
55
+ // Typography
56
+ 'typography-caption-regular'];
25
57
 
26
58
  var script$6 = defineComponent({
27
- name: 'OrDateTimePickerDateSelect',
59
+ name: 'OrDateTimePickerDaySelect',
60
+ components: {
61
+ OrButton
62
+ },
28
63
  model: {
29
64
  prop: 'modelValue',
30
65
  event: 'update:modelValue'
@@ -41,18 +76,49 @@ var script$6 = defineComponent({
41
76
  // Refs
42
77
  const root = ref();
43
78
  // Styles
44
- const rootStyles = computed(() => ['or-date-time-picker-date-select', ...DateTimePickerDateSelect]);
79
+ const rootStyles = computed(() => ['or-date-time-picker-day-select', ...DateTimePickerDaySelect]);
80
+ const buttonGroupStyles = computed(() => [...DateTimePickerDaySelectButtonGroup]);
81
+ const buttonGroupItemStyles = computed(() => [...DateTimePickerDaySelectButtonGroupItem]);
45
82
  // State
46
83
  const proxyModelValue = computed({
47
- get: () => props.modelValue,
84
+ get: () => {
85
+ var _a;
86
+ return (_a = props.modelValue) !== null && _a !== void 0 ? _a : new Date(Date.UTC(useDefaultYear(), useDefaultMonth(), useDefaultDate(), useDefaultHours(), useDefaultMinutes()));
87
+ },
48
88
  set: value => {
49
89
  context.emit('update:modelValue', value);
50
90
  }
51
91
  });
92
+ const dayOptions = computed(() => {
93
+ const monthStartDate = new Date(Date.UTC(proxyModelValue.value.getUTCFullYear(), proxyModelValue.value.getUTCMonth(), 1, proxyModelValue.value.getUTCHours(), proxyModelValue.value.getUTCMinutes()));
94
+ const monthEndDate = new Date(Date.UTC(proxyModelValue.value.getUTCFullYear(), proxyModelValue.value.getUTCMonth() + 1, 0, proxyModelValue.value.getUTCHours(), proxyModelValue.value.getUTCMinutes()));
95
+ const calendarStartDate = new Date(Date.UTC(monthStartDate.getUTCFullYear(), monthStartDate.getUTCMonth(), 1 - (monthStartDate.getUTCDay() + 6) % 7, monthStartDate.getUTCHours(), monthStartDate.getUTCMinutes()));
96
+ const calendarEndDate = new Date(Date.UTC(monthEndDate.getUTCFullYear(), monthEndDate.getUTCMonth() + 1, (7 - monthEndDate.getUTCDay()) % 7, monthEndDate.getUTCHours(), monthEndDate.getUTCMinutes()));
97
+ return (() => {
98
+ let options = [],
99
+ value = calendarStartDate;
100
+ while (Number(value) !== Number(calendarEndDate)) {
101
+ options = [...options, value];
102
+ value = new Date(Date.UTC(value.getUTCFullYear(), value.getUTCMonth(), value.getUTCDate() + 1, value.getUTCHours(), value.getUTCMinutes()));
103
+ }
104
+ return options;
105
+ })();
106
+ });
107
+ // Methods
108
+ function formatDay(value) {
109
+ return value.toLocaleString('default', {
110
+ day: 'numeric',
111
+ timeZone: 'UTC'
112
+ });
113
+ }
52
114
  return {
53
115
  root,
54
116
  rootStyles,
55
- proxyModelValue
117
+ buttonGroupStyles,
118
+ buttonGroupItemStyles,
119
+ proxyModelValue,
120
+ dayOptions,
121
+ formatDay
56
122
  };
57
123
  }
58
124
  });
@@ -68,7 +134,24 @@ var __vue_render__$6 = function () {
68
134
  return _c('div', {
69
135
  ref: "root",
70
136
  class: _vm.rootStyles
71
- }, [_vm._v("\n Calendar\n")]);
137
+ }, [_c('div', {
138
+ class: _vm.buttonGroupStyles
139
+ }, _vm._l(_vm.dayOptions, function (value) {
140
+ return _c('OrButton', {
141
+ key: Number(value),
142
+ class: _vm.buttonGroupItemStyles,
143
+ attrs: {
144
+ "variant": Number(value) === Number(_vm.proxyModelValue) ? 'contained' : 'text',
145
+ "color": Number(value) === Number(_vm.proxyModelValue) ? 'primary' : 'inherit'
146
+ },
147
+ on: {
148
+ "click": function ($event) {
149
+ $event.stopPropagation();
150
+ _vm.proxyModelValue = value;
151
+ }
152
+ }
153
+ }, [_vm._v("\n " + _vm._s(_vm.formatDay(value)) + "\n ")]);
154
+ }), 1)]);
72
155
  };
73
156
  var __vue_staticRenderFns__$6 = [];
74
157
 
@@ -90,7 +173,7 @@ const __vue_component__$7 = /*#__PURE__*/normalizeComponent({
90
173
  render: __vue_render__$6,
91
174
  staticRenderFns: __vue_staticRenderFns__$6
92
175
  }, __vue_inject_styles__$6, __vue_script__$6, __vue_scope_id__$6, __vue_is_functional_template__$6, __vue_module_identifier__$6, false, undefined, undefined, undefined);
93
- var OrDateTimePickerDateSelect = __vue_component__$7;
176
+ var OrDateTimePickerDaySelect = __vue_component__$7;
94
177
 
95
178
  const DateTimePickerMobileControl = [
96
179
  // Layout
@@ -196,101 +279,93 @@ var script$4 = defineComponent({
196
279
  setup(props, context) {
197
280
  // Refs
198
281
  const root = ref();
199
- const monthButton = ref();
200
282
  const yearButton = ref();
283
+ const monthButton = ref();
284
+ const yearButtonRoot = computed(() => {
285
+ var _a;
286
+ return (_a = yearButton.value) === null || _a === void 0 ? void 0 : _a.root;
287
+ });
201
288
  const monthButtonRoot = computed(() => {
202
289
  var _a;
203
290
  return (_a = monthButton.value) === null || _a === void 0 ? void 0 : _a.root;
204
291
  });
205
- const yearButtonRoot = computed(() => {
292
+ const yearMenu = ref();
293
+ const monthMenu = ref();
294
+ const yearMenuState = computed(() => {
206
295
  var _a;
207
- return (_a = yearButton.value) === null || _a === void 0 ? void 0 : _a.root;
296
+ return (_a = yearMenu.value) === null || _a === void 0 ? void 0 : _a.state;
297
+ });
298
+ const monthMenuState = computed(() => {
299
+ var _a;
300
+ return (_a = monthMenu.value) === null || _a === void 0 ? void 0 : _a.state;
208
301
  });
209
- const monthMenu = ref();
210
- const yearMenu = ref();
211
- // const monthMenuState = computed(() => monthMenu.value?.state);
212
- // const yearMenuState = computed(() => yearMenu.value?.state);
213
302
  // Styles
214
303
  const rootStyles = computed(() => ['or-date-time-picker-month-select', ...DateTimePickerMonthSelect]);
215
304
  // State
216
305
  const proxyModelValue = computed({
217
- get: () => props.modelValue,
218
- set: value => {
219
- context.emit('update:modelValue', value);
220
- }
221
- });
222
- const yearValue = computed({
223
- get: () => {
224
- var _a, _b;
225
- return (_b = (_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.getUTCFullYear()) !== null && _b !== void 0 ? _b : new Date().getUTCFullYear();
226
- },
227
- set: value => {
228
- var _a, _b, _c, _d, _e, _f, _g, _h;
229
- proxyModelValue.value = new Date(Date.UTC(value, (_b = (_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.getUTCMonth()) !== null && _b !== void 0 ? _b : monthValue.value, (_d = (_c = proxyModelValue.value) === null || _c === void 0 ? void 0 : _c.getUTCDate()) !== null && _d !== void 0 ? _d : 1, (_f = (_e = proxyModelValue.value) === null || _e === void 0 ? void 0 : _e.getUTCHours()) !== null && _f !== void 0 ? _f : 0, (_h = (_g = proxyModelValue.value) === null || _g === void 0 ? void 0 : _g.getUTCMinutes()) !== null && _h !== void 0 ? _h : 0));
230
- }
231
- });
232
- const monthValue = computed({
233
306
  get: () => {
234
- var _a, _b;
235
- return (_b = (_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.getUTCMonth()) !== null && _b !== void 0 ? _b : new Date().getUTCMonth();
307
+ var _a;
308
+ return (_a = props.modelValue) !== null && _a !== void 0 ? _a : new Date(Date.UTC(useDefaultYear(), useDefaultMonth(), useDefaultDate(), useDefaultHours(), useDefaultMinutes()));
236
309
  },
237
310
  set: value => {
238
- var _a, _b, _c, _d, _e, _f, _g, _h;
239
- proxyModelValue.value = new Date(Date.UTC((_b = (_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.getUTCFullYear()) !== null && _b !== void 0 ? _b : yearValue.value, value, (_d = (_c = proxyModelValue.value) === null || _c === void 0 ? void 0 : _c.getUTCDate()) !== null && _d !== void 0 ? _d : 1, (_f = (_e = proxyModelValue.value) === null || _e === void 0 ? void 0 : _e.getUTCHours()) !== null && _f !== void 0 ? _f : 0, (_h = (_g = proxyModelValue.value) === null || _g === void 0 ? void 0 : _g.getUTCMinutes()) !== null && _h !== void 0 ? _h : 0));
311
+ context.emit('update:modelValue', value);
240
312
  }
241
313
  });
242
- const yearLabel = computed(() => {
243
- var _a;
244
- return (_a = yearOptions.find(({
245
- value
246
- }) => value === yearValue.value)) === null || _a === void 0 ? void 0 : _a.label;
247
- });
248
- const monthLabel = computed(() => {
249
- var _a;
250
- return (_a = monthOptions.find(({
251
- value
252
- }) => value === monthValue.value)) === null || _a === void 0 ? void 0 : _a.label;
253
- });
254
- const yearOptions = Array.from({
255
- length: 100
256
- }, (_value, index) => {
257
- const year = new Date().getUTCFullYear() - index;
258
- return {
259
- value: year,
260
- label: new Date(year, monthValue.value).toLocaleString([], {
261
- year: 'numeric'
262
- })
263
- };
314
+ const yearOptions = computed(() => {
315
+ return Array.from({
316
+ length: 11
317
+ }).map((_value, index, {
318
+ length
319
+ }) => {
320
+ const value = proxyModelValue.value.getUTCFullYear() - Math.floor(length / 2) + index;
321
+ return new Date(Date.UTC(value, proxyModelValue.value.getUTCMonth(), proxyModelValue.value.getUTCDate(), proxyModelValue.value.getUTCHours(), proxyModelValue.value.getUTCMinutes()));
322
+ });
264
323
  });
265
- const monthOptions = Array.from({
266
- length: 12
267
- }, (_value, index) => {
268
- const month = index;
269
- return {
270
- value: month,
271
- label: new Date(yearValue.value, month).toLocaleString([], {
272
- month: 'long'
273
- })
274
- };
324
+ const monthOptions = computed(() => {
325
+ return Array.from({
326
+ length: 12
327
+ }, (_value, index) => {
328
+ const value = index;
329
+ return new Date(Date.UTC(proxyModelValue.value.getUTCFullYear(), value, proxyModelValue.value.getUTCDate(), proxyModelValue.value.getUTCHours(), proxyModelValue.value.getUTCMinutes()));
330
+ });
275
331
  });
332
+ // Methods
333
+ function goToNextMonth() {
334
+ proxyModelValue.value = new Date(Date.UTC(proxyModelValue.value.getUTCFullYear(), proxyModelValue.value.getUTCMonth() + 1, proxyModelValue.value.getUTCDate(), proxyModelValue.value.getUTCHours(), proxyModelValue.value.getUTCMinutes()));
335
+ }
336
+ function goToPreviousMonth() {
337
+ proxyModelValue.value = new Date(Date.UTC(proxyModelValue.value.getUTCFullYear(), proxyModelValue.value.getUTCMonth() - 1, proxyModelValue.value.getUTCDate(), proxyModelValue.value.getUTCHours(), proxyModelValue.value.getUTCMinutes()));
338
+ }
339
+ function formatYear(value) {
340
+ return value.toLocaleString('default', {
341
+ year: 'numeric',
342
+ timeZone: 'UTC'
343
+ });
344
+ }
345
+ function formatMonth(value) {
346
+ return value.toLocaleString('default', {
347
+ month: 'long',
348
+ timeZone: 'UTC'
349
+ });
350
+ }
276
351
  return {
277
352
  root,
278
- monthButton,
279
353
  yearButton,
280
- monthButtonRoot,
354
+ monthButton,
281
355
  yearButtonRoot,
282
- monthMenu,
356
+ monthButtonRoot,
283
357
  yearMenu,
284
- // monthMenuState,
285
- // yearMenuState,
358
+ monthMenu,
359
+ yearMenuState,
360
+ monthMenuState,
286
361
  rootStyles,
287
362
  proxyModelValue,
288
- yearValue,
289
- monthValue,
290
- yearLabel,
291
- monthLabel,
292
363
  yearOptions,
293
- monthOptions
364
+ monthOptions,
365
+ goToNextMonth,
366
+ goToPreviousMonth,
367
+ formatYear,
368
+ formatMonth
294
369
  };
295
370
  }
296
371
  });
@@ -313,13 +388,13 @@ var __vue_render__$4 = function () {
313
388
  on: {
314
389
  "click": function ($event) {
315
390
  $event.stopPropagation();
316
- _vm.monthValue = _vm.monthValue - 1;
391
+ return _vm.goToPreviousMonth();
317
392
  }
318
393
  }
319
394
  }), _vm._v(" "), _c('div', {
320
- class: ['layout-row', 'gap-md']
395
+ class: ['layout-row-reverse', 'gap-md']
321
396
  }, [_c('OrButton', {
322
- ref: "monthButton",
397
+ ref: "yearButton",
323
398
  attrs: {
324
399
  "variant": 'link',
325
400
  "color": 'inherit'
@@ -327,15 +402,15 @@ var __vue_render__$4 = function () {
327
402
  on: {
328
403
  "click": function ($event) {
329
404
  $event.stopPropagation();
330
- return _vm.monthMenu.open();
405
+ return _vm.yearMenu.open();
331
406
  }
332
407
  }
333
- }, [_vm._v("\n " + _vm._s(_vm.monthLabel) + " "), _c('OrIcon', {
408
+ }, [_vm._v("\n " + _vm._s(_vm.formatYear(_vm.proxyModelValue)) + " "), _c('OrIcon', {
334
409
  attrs: {
335
- "icon": 'arrow_drop_down'
410
+ "icon": _vm.yearMenuState === 'open' ? 'arrow_drop_up' : 'arrow_drop_down'
336
411
  }
337
412
  })], 1), _vm._v(" "), _c('OrButton', {
338
- ref: "yearButton",
413
+ ref: "monthButton",
339
414
  attrs: {
340
415
  "variant": 'link',
341
416
  "color": 'inherit'
@@ -343,45 +418,51 @@ var __vue_render__$4 = function () {
343
418
  on: {
344
419
  "click": function ($event) {
345
420
  $event.stopPropagation();
346
- return _vm.yearMenu.open();
421
+ return _vm.monthMenu.open();
347
422
  }
348
423
  }
349
- }, [_vm._v("\n " + _vm._s(_vm.yearLabel) + " "), _c('OrIcon', {
424
+ }, [_vm._v("\n " + _vm._s(_vm.formatMonth(_vm.proxyModelValue)) + " "), _c('OrIcon', {
350
425
  attrs: {
351
- "icon": 'arrow_drop_down'
426
+ "icon": _vm.monthMenuState === 'open' ? 'arrow_drop_up' : 'arrow_drop_down'
352
427
  }
353
428
  })], 1), _vm._v(" "), _c('OrMenu', {
354
- ref: "monthMenu",
429
+ ref: "yearMenu",
355
430
  attrs: {
356
- "trigger": _vm.monthButtonRoot
431
+ "trigger": _vm.yearButtonRoot
357
432
  }
358
- }, _vm._l(_vm.monthOptions, function (option) {
433
+ }, _vm._l(_vm.yearOptions, function (value) {
359
434
  return _c('OrMenuItem', {
360
- key: option.value,
435
+ key: Number(value),
436
+ attrs: {
437
+ "selected": Number(value) === Number(_vm.proxyModelValue)
438
+ },
361
439
  on: {
362
440
  "click": function ($event) {
363
441
  $event.stopPropagation();
364
- _vm.monthValue = option.value;
365
- _vm.monthMenu.close();
442
+ _vm.proxyModelValue = value;
443
+ _vm.yearMenu.close();
366
444
  }
367
445
  }
368
- }, [_vm._v("\n " + _vm._s(option.label) + "\n ")]);
446
+ }, [_vm._v("\n " + _vm._s(_vm.formatYear(value)) + "\n ")]);
369
447
  }), 1), _vm._v(" "), _c('OrMenu', {
370
- ref: "yearMenu",
448
+ ref: "monthMenu",
371
449
  attrs: {
372
- "trigger": _vm.yearButtonRoot
450
+ "trigger": _vm.monthButtonRoot
373
451
  }
374
- }, _vm._l(_vm.yearOptions, function (option) {
452
+ }, _vm._l(_vm.monthOptions, function (value) {
375
453
  return _c('OrMenuItem', {
376
- key: option.value,
454
+ key: Number(value),
455
+ attrs: {
456
+ "selected": Number(value) === Number(_vm.proxyModelValue)
457
+ },
377
458
  on: {
378
459
  "click": function ($event) {
379
460
  $event.stopPropagation();
380
- _vm.yearValue = option.value;
381
- _vm.yearMenu.close();
461
+ _vm.proxyModelValue = value;
462
+ _vm.monthMenu.close();
382
463
  }
383
464
  }
384
- }, [_vm._v("\n " + _vm._s(option.label) + "\n ")]);
465
+ }, [_vm._v("\n " + _vm._s(_vm.formatMonth(value)) + "\n ")]);
385
466
  }), 1)], 1), _vm._v(" "), _c('OrIconButton', {
386
467
  attrs: {
387
468
  "icon": 'chevron_right'
@@ -389,7 +470,7 @@ var __vue_render__$4 = function () {
389
470
  on: {
390
471
  "click": function ($event) {
391
472
  $event.stopPropagation();
392
- _vm.monthValue = _vm.monthValue + 1;
473
+ return _vm.goToNextMonth();
393
474
  }
394
475
  }
395
476
  })], 1);
@@ -600,53 +681,53 @@ var script$1 = defineComponent({
600
681
  const buttonGroupItemStyles = computed(() => [...DateTimePickerTimeSelectButtonGroupItem]);
601
682
  // State
602
683
  const proxyModelValue = computed({
603
- get: () => props.modelValue,
604
- set: value => {
605
- context.emit('update:modelValue', value);
606
- }
607
- });
608
- const hoursValue = computed({
609
684
  get: () => {
610
- var _a, _b;
611
- return (_b = (_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.getUTCHours()) !== null && _b !== void 0 ? _b : 0;
685
+ var _a;
686
+ return (_a = props.modelValue) !== null && _a !== void 0 ? _a : new Date(Date.UTC(useDefaultYear(), useDefaultMonth(), useDefaultDate(), useDefaultHours(), useDefaultMinutes()));
612
687
  },
613
688
  set: value => {
614
- var _a, _b, _c, _d, _e, _f, _g, _h;
615
- proxyModelValue.value = new Date(Date.UTC((_b = (_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.getUTCFullYear()) !== null && _b !== void 0 ? _b : 1970, (_d = (_c = proxyModelValue.value) === null || _c === void 0 ? void 0 : _c.getUTCMonth()) !== null && _d !== void 0 ? _d : 0, (_f = (_e = proxyModelValue.value) === null || _e === void 0 ? void 0 : _e.getUTCDate()) !== null && _f !== void 0 ? _f : 1, value, (_h = (_g = proxyModelValue.value) === null || _g === void 0 ? void 0 : _g.getUTCMinutes()) !== null && _h !== void 0 ? _h : minutesValue.value));
689
+ context.emit('update:modelValue', value);
616
690
  }
617
691
  });
618
- const minutesValue = computed({
619
- get: () => {
620
- var _a, _b;
621
- return (_b = (_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.getUTCMinutes()) !== null && _b !== void 0 ? _b : 0;
622
- },
623
- set: value => {
624
- var _a, _b, _c, _d, _e, _f, _g, _h;
625
- proxyModelValue.value = new Date(Date.UTC((_b = (_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.getUTCFullYear()) !== null && _b !== void 0 ? _b : 1970, (_d = (_c = proxyModelValue.value) === null || _c === void 0 ? void 0 : _c.getUTCMonth()) !== null && _d !== void 0 ? _d : 0, (_f = (_e = proxyModelValue.value) === null || _e === void 0 ? void 0 : _e.getUTCDate()) !== null && _f !== void 0 ? _f : 1, (_h = (_g = proxyModelValue.value) === null || _g === void 0 ? void 0 : _g.getUTCHours()) !== null && _h !== void 0 ? _h : hoursValue.value, value));
626
- }
692
+ const hoursOptions = computed(() => {
693
+ return Array.from({
694
+ length: 24
695
+ }, (_value, index) => {
696
+ const value = index;
697
+ return new Date(Date.UTC(proxyModelValue.value.getUTCFullYear(), proxyModelValue.value.getUTCMonth(), proxyModelValue.value.getUTCDate(), value, proxyModelValue.value.getUTCMinutes()));
698
+ });
699
+ });
700
+ const minutesOptions = computed(() => {
701
+ return Array.from({
702
+ length: 60
703
+ }, (_value, index) => {
704
+ const value = index;
705
+ return new Date(Date.UTC(proxyModelValue.value.getUTCFullYear(), proxyModelValue.value.getUTCMonth(), proxyModelValue.value.getUTCDate(), proxyModelValue.value.getUTCHours(), value));
706
+ });
627
707
  });
628
- const hoursOptions = Array.from({
629
- length: 24
630
- }, (_value, index) => ({
631
- value: index,
632
- label: String(index).padStart(2, '0')
633
- }));
634
- const minutesOptions = Array.from({
635
- length: 60
636
- }, (_value, index) => ({
637
- value: index,
638
- label: String(index).padStart(2, '0')
639
- }));
708
+ // Methods
709
+ function formatHours(value) {
710
+ return value.toLocaleString('default', {
711
+ hour: '2-digit',
712
+ timeZone: 'UTC'
713
+ });
714
+ }
715
+ function formatMinutes(value) {
716
+ return value.toLocaleString('default', {
717
+ minute: '2-digit',
718
+ timeZone: 'UTC'
719
+ });
720
+ }
640
721
  return {
641
722
  root,
642
723
  rootStyles,
643
724
  buttonGroupStyles,
644
725
  buttonGroupItemStyles,
645
726
  proxyModelValue,
646
- hoursValue,
647
- minutesValue,
648
727
  hoursOptions,
649
- minutesOptions
728
+ minutesOptions,
729
+ formatHours,
730
+ formatMinutes
650
731
  };
651
732
  }
652
733
  });
@@ -664,38 +745,38 @@ var __vue_render__$1 = function () {
664
745
  class: _vm.rootStyles
665
746
  }, [_c('div', {
666
747
  class: _vm.buttonGroupStyles
667
- }, _vm._l(_vm.hoursOptions, function (option) {
748
+ }, _vm._l(_vm.hoursOptions, function (value) {
668
749
  return _c('OrButton', {
669
- key: option.value,
750
+ key: Number(value),
670
751
  class: _vm.buttonGroupItemStyles,
671
752
  attrs: {
672
- "variant": _vm.hoursValue === option.value ? 'contained' : 'text',
673
- "color": _vm.hoursValue === option.value ? 'primary' : 'inherit'
753
+ "variant": Number(value) === Number(_vm.proxyModelValue) ? 'contained' : 'text',
754
+ "color": Number(value) === Number(_vm.proxyModelValue) ? 'primary' : 'inherit'
674
755
  },
675
756
  on: {
676
757
  "click": function ($event) {
677
758
  $event.stopPropagation();
678
- _vm.hoursValue = option.value;
759
+ _vm.proxyModelValue = value;
679
760
  }
680
761
  }
681
- }, [_vm._v("\n " + _vm._s(option.label) + "\n ")]);
762
+ }, [_vm._v("\n " + _vm._s(_vm.formatHours(value)) + "\n ")]);
682
763
  }), 1), _vm._v("\n\n :\n\n "), _c('div', {
683
764
  class: _vm.buttonGroupStyles
684
- }, _vm._l(_vm.minutesOptions, function (option) {
765
+ }, _vm._l(_vm.minutesOptions, function (value) {
685
766
  return _c('OrButton', {
686
- key: option.value,
767
+ key: Number(value),
687
768
  class: _vm.buttonGroupItemStyles,
688
769
  attrs: {
689
- "variant": _vm.minutesValue === option.value ? 'contained' : 'text',
690
- "color": _vm.minutesValue === option.value ? 'primary' : 'inherit'
770
+ "variant": Number(value) === Number(_vm.proxyModelValue) ? 'contained' : 'text',
771
+ "color": Number(value) === Number(_vm.proxyModelValue) ? 'primary' : 'inherit'
691
772
  },
692
773
  on: {
693
774
  "click": function ($event) {
694
775
  $event.stopPropagation();
695
- _vm.minutesValue = option.value;
776
+ _vm.proxyModelValue = value;
696
777
  }
697
778
  }
698
- }, [_vm._v("\n " + _vm._s(option.label) + "\n ")]);
779
+ }, [_vm._v("\n " + _vm._s(_vm.formatMinutes(value)) + "\n ")]);
699
780
  }), 1)]);
700
781
  };
701
782
  var __vue_staticRenderFns__$1 = [];
@@ -726,13 +807,15 @@ const DateTimePicker = [
726
807
  // Spacing
727
808
  'gap-xs'];
728
809
  const DateTimePickerControl = [
810
+ // Layout
811
+ 'layout-inline-row justify-center',
729
812
  // Theme (focus)
730
- 'focus:theme-border-1-current', 'dark:focus:theme-border-1-current-dark', 'focus:theme-border-underline', 'dark:focus:theme-border-underline'];
813
+ 'focus:theme-border-2-current', 'dark:focus:theme-border-2-current-dark', 'focus:theme-border-underline', 'dark:focus:theme-border-underline'];
731
814
 
732
815
  var script = defineComponent({
733
816
  name: 'OrDateTimePicker',
734
817
  components: {
735
- OrDateTimePickerDateSelect,
818
+ OrDateTimePickerDaySelect,
736
819
  OrDateTimePickerMobileControl,
737
820
  OrDateTimePickerMonthSelect,
738
821
  OrDateTimePickerPopoverFooter,
@@ -823,6 +906,12 @@ var script = defineComponent({
823
906
  context.emit('update:modelValue', value);
824
907
  }
825
908
  });
909
+ const draftModelValue = ref();
910
+ watch(proxyModelValue, value => {
911
+ draftModelValue.value = value;
912
+ }, {
913
+ immediate: true
914
+ });
826
915
  // Methods
827
916
  function toggleDatePopover() {
828
917
  if (!props.readonly && !props.disabled) {
@@ -860,6 +949,34 @@ var script = defineComponent({
860
949
  popoverInstance.close();
861
950
  }
862
951
  }
952
+ function formatDate(value) {
953
+ var _a;
954
+ return (_a = value === null || value === void 0 ? void 0 : value.toLocaleString('default', {
955
+ dateStyle: 'short',
956
+ timeZone: 'UTC'
957
+ })) !== null && _a !== void 0 ? _a : '--';
958
+ }
959
+ function formatTime(value) {
960
+ var _a;
961
+ return (_a = value === null || value === void 0 ? void 0 : value.toLocaleString('default', {
962
+ timeStyle: 'short',
963
+ timeZone: 'UTC'
964
+ })) !== null && _a !== void 0 ? _a : '--';
965
+ }
966
+ function formatDateAlt(value) {
967
+ var _a;
968
+ return (_a = value === null || value === void 0 ? void 0 : value.toLocaleString('default', {
969
+ dateStyle: 'medium',
970
+ timeZone: 'UTC'
971
+ })) !== null && _a !== void 0 ? _a : '--';
972
+ }
973
+ function formatTimeAlt(value) {
974
+ var _a;
975
+ return (_a = value === null || value === void 0 ? void 0 : value.toLocaleString('default', {
976
+ timeStyle: 'short',
977
+ timeZone: 'UTC'
978
+ })) !== null && _a !== void 0 ? _a : '--';
979
+ }
863
980
  return {
864
981
  root,
865
982
  dateControl,
@@ -872,15 +989,20 @@ var script = defineComponent({
872
989
  controlStyles,
873
990
  controlAttributes,
874
991
  proxyModelValue,
992
+ draftModelValue,
875
993
  toggleDatePopover,
876
994
  toggleTimePopover,
877
995
  closeDatePopover,
878
- closeTimePopover
996
+ closeTimePopover,
997
+ formatDate,
998
+ formatTime,
999
+ formatDateAlt,
1000
+ formatTimeAlt
879
1001
  };
880
1002
  }
881
1003
  });
882
1004
 
883
- var css_248z = "input[data-v-84c46328]{min-width:0;background:0 0;outline:0}input[type=date][data-v-84c46328]::-webkit-datetime-edit-day-field,input[type=date][data-v-84c46328]::-webkit-datetime-edit-month-field,input[type=date][data-v-84c46328]::-webkit-datetime-edit-year-field{display:none}input[type=time][data-v-84c46328]::-webkit-datetime-edit-ampm-field,input[type=time][data-v-84c46328]::-webkit-datetime-edit-hour-field,input[type=time][data-v-84c46328]::-webkit-datetime-edit-minute-field{display:none}input[type=date][data-v-84c46328]::-webkit-datetime-edit-text,input[type=time][data-v-84c46328]::-webkit-datetime-edit-text{display:none}input[type=date][data-v-84c46328]::-webkit-calendar-picker-indicator,input[type=time][data-v-84c46328]::-webkit-calendar-picker-indicator{display:none}";
1005
+ var css_248z = "input[data-v-183da045]{min-width:0;background:0 0;outline:0}";
884
1006
  styleInject(css_248z);
885
1007
 
886
1008
  /* script */
@@ -926,7 +1048,7 @@ var __vue_render__ = function () {
926
1048
  "readonly": _vm.readonly,
927
1049
  "disabled": _vm.disabled
928
1050
  }
929
- }, [_c('input', _vm._b({
1051
+ }, [_c('div', _vm._b({
930
1052
  directives: [{
931
1053
  name: "dropdown-open",
932
1054
  rawName: "v-dropdown-open",
@@ -941,12 +1063,12 @@ var __vue_render__ = function () {
941
1063
  ref: "dateControl",
942
1064
  class: _vm.controlStyles,
943
1065
  attrs: {
944
- "type": 'date',
1066
+ "contenteditable": true,
945
1067
  "required": _vm.required,
946
1068
  "readonly": _vm.readonly,
947
1069
  "disabled": _vm.disabled
948
1070
  }
949
- }, 'input', _vm.controlAttributes, false)), _vm._v(" "), _c('input', _vm._b({
1071
+ }, 'div', _vm.controlAttributes, false), [_vm._v("\n " + _vm._s(_vm.formatDate(_vm.proxyModelValue)) + "\n ")]), _vm._v(" "), _c('div', _vm._b({
950
1072
  directives: [{
951
1073
  name: "dropdown-open",
952
1074
  rawName: "v-dropdown-open",
@@ -961,12 +1083,12 @@ var __vue_render__ = function () {
961
1083
  ref: "timeControl",
962
1084
  class: _vm.controlStyles,
963
1085
  attrs: {
964
- "type": 'time',
1086
+ "contenteditable": true,
965
1087
  "required": _vm.required,
966
1088
  "readonly": _vm.readonly,
967
1089
  "disabled": _vm.disabled
968
1090
  }
969
- }, 'input', _vm.controlAttributes, false)), _vm._v(" "), _c('OrPopover', {
1091
+ }, 'div', _vm.controlAttributes, false), [_vm._v("\n " + _vm._s(_vm.formatTime(_vm.proxyModelValue)) + "\n ")]), _vm._v(" "), _c('OrPopover', {
970
1092
  ref: "datePopover",
971
1093
  attrs: {
972
1094
  "variant": 'auto',
@@ -977,30 +1099,35 @@ var __vue_render__ = function () {
977
1099
  attrs: {
978
1100
  "label": "Date"
979
1101
  }
980
- }, [_vm._v("\n Sep 12\n ")]), _vm._v(" "), _c('OrDateTimePickerMobileControl', {
1102
+ }, [_vm._v("\n " + _vm._s(_vm.formatDateAlt(_vm.draftModelValue)) + "\n ")]), _vm._v(" "), _c('OrDateTimePickerMobileControl', {
981
1103
  attrs: {
982
1104
  "label": "Time"
983
1105
  }
984
- }, [_vm._v("\n 9:07\n ")])], 1), _vm._v(" "), _c('OrDateTimePickerMonthSelect', {
1106
+ }, [_vm._v("\n " + _vm._s(_vm.formatTimeAlt(_vm.draftModelValue)) + "\n ")])], 1), _vm._v(" "), _c('OrDateTimePickerMonthSelect', {
985
1107
  model: {
986
- value: _vm.proxyModelValue,
1108
+ value: _vm.draftModelValue,
987
1109
  callback: function ($$v) {
988
- _vm.proxyModelValue = $$v;
1110
+ _vm.draftModelValue = $$v;
989
1111
  },
990
- expression: "proxyModelValue"
1112
+ expression: "draftModelValue"
991
1113
  }
992
- }), _vm._v(" "), _c('OrDateTimePickerDateSelect', {
1114
+ }), _vm._v(" "), _c('OrDateTimePickerDaySelect', {
993
1115
  model: {
994
- value: _vm.proxyModelValue,
1116
+ value: _vm.draftModelValue,
995
1117
  callback: function ($$v) {
996
- _vm.proxyModelValue = $$v;
1118
+ _vm.draftModelValue = $$v;
997
1119
  },
998
- expression: "proxyModelValue"
1120
+ expression: "draftModelValue"
999
1121
  }
1000
1122
  }), _vm._v(" "), _c('OrDateTimePickerPopoverFooter', {
1001
1123
  on: {
1124
+ "resolve": function ($event) {
1125
+ _vm.proxyModelValue = _vm.draftModelValue;
1126
+ _vm.datePopover.close();
1127
+ },
1002
1128
  "reject": function ($event) {
1003
- return _vm.closeDatePopover();
1129
+ _vm.draftModelValue = _vm.proxyModelValue;
1130
+ _vm.datePopover.close();
1004
1131
  }
1005
1132
  }
1006
1133
  })], 1), _vm._v(" "), _c('OrPopover', {
@@ -1014,22 +1141,27 @@ var __vue_render__ = function () {
1014
1141
  attrs: {
1015
1142
  "label": "Date"
1016
1143
  }
1017
- }, [_vm._v("\n Sep 12\n ")]), _vm._v(" "), _c('OrDateTimePickerMobileControl', {
1144
+ }, [_vm._v("\n " + _vm._s(_vm.formatDateAlt(_vm.draftModelValue)) + "\n ")]), _vm._v(" "), _c('OrDateTimePickerMobileControl', {
1018
1145
  attrs: {
1019
1146
  "label": "Time"
1020
1147
  }
1021
- }, [_vm._v("\n 9:07\n ")])], 1), _vm._v(" "), _c('OrDateTimePickerTimeSelect', {
1148
+ }, [_vm._v("\n " + _vm._s(_vm.formatTimeAlt(_vm.draftModelValue)) + "\n ")])], 1), _vm._v(" "), _c('OrDateTimePickerTimeSelect', {
1022
1149
  model: {
1023
- value: _vm.proxyModelValue,
1150
+ value: _vm.draftModelValue,
1024
1151
  callback: function ($$v) {
1025
- _vm.proxyModelValue = $$v;
1152
+ _vm.draftModelValue = $$v;
1026
1153
  },
1027
- expression: "proxyModelValue"
1154
+ expression: "draftModelValue"
1028
1155
  }
1029
1156
  }), _vm._v(" "), _c('OrDateTimePickerPopoverFooter', {
1030
1157
  on: {
1158
+ "resolve": function ($event) {
1159
+ _vm.proxyModelValue = _vm.draftModelValue;
1160
+ _vm.timePopover.close();
1161
+ },
1031
1162
  "reject": function ($event) {
1032
- return _vm.closeTimePopover();
1163
+ _vm.draftModelValue = _vm.proxyModelValue;
1164
+ _vm.timePopover.close();
1033
1165
  }
1034
1166
  }
1035
1167
  })], 1), _vm._v(" "), _c('div', {
@@ -1063,7 +1195,7 @@ var __vue_staticRenderFns__ = [];
1063
1195
  /* style */
1064
1196
  const __vue_inject_styles__ = undefined;
1065
1197
  /* scoped */
1066
- const __vue_scope_id__ = "data-v-84c46328";
1198
+ const __vue_scope_id__ = "data-v-183da045";
1067
1199
  /* module identifier */
1068
1200
  const __vue_module_identifier__ = undefined;
1069
1201
  /* functional template */