@onereach/ui-components 3.0.4-beta.2500.0 → 3.0.4-beta.2504.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundled/v2/OrDatePicker-19e467e2.js +330 -0
- package/dist/bundled/v2/OrDateTimePicker-1011dc69.js +440 -0
- package/dist/bundled/v2/OrDateTimePickerMonthSelect-9e64d257.js +408 -0
- package/dist/bundled/v2/OrDateTimePickerPopoverHeader-c8672c0d.js +239 -0
- package/dist/bundled/v2/OrDateTimePickerTimeSelect-158d717b.js +179 -0
- package/dist/bundled/v2/OrTimePicker-1b3a758a.js +318 -0
- package/dist/bundled/v2/components/index.d.ts +2 -0
- package/dist/bundled/v2/components/index.js +7 -2
- package/dist/bundled/v2/components/or-date-picker-v3/OrDatePicker.vue.d.ts +183 -0
- package/dist/bundled/v2/components/or-date-picker-v3/index.d.ts +2 -0
- package/dist/bundled/v2/components/or-date-picker-v3/index.js +31 -0
- package/dist/bundled/v2/components/or-date-picker-v3/props.d.ts +1 -0
- package/dist/bundled/v2/components/or-date-picker-v3/styles.d.ts +2 -0
- package/dist/bundled/v2/components/or-date-time-picker-v3/index.js +7 -5
- package/dist/bundled/v2/components/or-time-picker-v3/OrTimePicker.vue.d.ts +183 -0
- package/dist/bundled/v2/components/or-time-picker-v3/index.d.ts +2 -0
- package/dist/bundled/v2/components/or-time-picker-v3/index.js +29 -0
- package/dist/bundled/v2/components/or-time-picker-v3/props.d.ts +1 -0
- package/dist/bundled/v2/components/or-time-picker-v3/styles.d.ts +2 -0
- package/dist/bundled/v2/index.js +7 -2
- package/dist/bundled/v3/OrDatePicker.vue_vue_type_script_lang-8eafbe6b.js +177 -0
- package/dist/bundled/v3/OrDateTimePicker.vue_vue_type_script_lang-b2a9ef8d.js +226 -0
- package/dist/bundled/v3/OrDateTimePickerMonthSelect-8989be5a.js +341 -0
- package/dist/bundled/v3/OrDateTimePickerPopoverHeader-caffcc00.js +162 -0
- package/dist/bundled/v3/OrDateTimePickerTimeSelect-e3a89bed.js +148 -0
- package/dist/bundled/v3/OrTimePicker.vue_vue_type_script_lang-f46eb37f.js +176 -0
- package/dist/bundled/v3/components/index.d.ts +2 -0
- package/dist/bundled/v3/components/index.js +8 -3
- package/dist/bundled/v3/components/or-date-picker-v3/OrDatePicker.vue.d.ts +183 -0
- package/dist/bundled/v3/components/or-date-picker-v3/index.d.ts +2 -0
- package/dist/bundled/v3/components/or-date-picker-v3/index.js +37 -0
- package/dist/bundled/v3/components/or-date-picker-v3/props.d.ts +1 -0
- package/dist/bundled/v3/components/or-date-picker-v3/styles.d.ts +2 -0
- package/dist/bundled/v3/components/or-date-time-picker-v3/index.js +7 -4
- package/dist/bundled/v3/components/or-time-picker-v3/OrTimePicker.vue.d.ts +183 -0
- package/dist/bundled/v3/components/or-time-picker-v3/index.d.ts +2 -0
- package/dist/bundled/v3/components/or-time-picker-v3/index.js +33 -0
- package/dist/bundled/v3/components/or-time-picker-v3/props.d.ts +1 -0
- package/dist/bundled/v3/components/or-time-picker-v3/styles.d.ts +2 -0
- package/dist/bundled/v3/index.js +629 -402
- package/dist/esm/v2/OrDatePicker-454f5267.js +329 -0
- package/dist/esm/v2/OrDateTimePicker-3f533d0c.js +439 -0
- package/dist/esm/v2/OrDateTimePickerMonthSelect-380d9c90.js +406 -0
- package/dist/esm/v2/OrDateTimePickerPopoverHeader-e11d3222.js +235 -0
- package/dist/esm/v2/OrDateTimePickerTimeSelect-83dd1e81.js +177 -0
- package/dist/esm/v2/OrTimePicker-f23c8577.js +317 -0
- package/dist/esm/v2/components/index.d.ts +2 -0
- package/dist/esm/v2/components/index.js +8 -3
- package/dist/esm/v2/components/or-date-picker-v3/OrDatePicker.vue.d.ts +183 -0
- package/dist/esm/v2/components/or-date-picker-v3/index.d.ts +2 -0
- package/dist/esm/v2/components/or-date-picker-v3/index.js +29 -0
- package/dist/esm/v2/components/or-date-picker-v3/props.d.ts +1 -0
- package/dist/esm/v2/components/or-date-picker-v3/styles.d.ts +2 -0
- package/dist/esm/v2/components/or-date-time-picker-v3/index.js +4 -2
- package/dist/esm/v2/components/or-time-picker-v3/OrTimePicker.vue.d.ts +183 -0
- package/dist/esm/v2/components/or-time-picker-v3/index.d.ts +2 -0
- package/dist/esm/v2/components/or-time-picker-v3/index.js +27 -0
- package/dist/esm/v2/components/or-time-picker-v3/props.d.ts +1 -0
- package/dist/esm/v2/components/or-time-picker-v3/styles.d.ts +2 -0
- package/dist/esm/v2/index.js +8 -3
- package/dist/esm/v3/OrDatePicker-390f7f11.js +288 -0
- package/dist/esm/v3/OrDateTimePicker-54db4170.js +390 -0
- package/dist/esm/v3/OrDateTimePickerMonthSelect-709b673d.js +338 -0
- package/dist/esm/v3/OrDateTimePickerPopoverHeader-c771a251.js +161 -0
- package/dist/esm/v3/OrDateTimePickerTimeSelect-2c8a7f9c.js +148 -0
- package/dist/esm/v3/OrTimePicker-362ca566.js +282 -0
- package/dist/esm/v3/components/index.d.ts +2 -0
- package/dist/esm/v3/components/index.js +7 -2
- package/dist/esm/v3/components/or-date-picker-v3/OrDatePicker.vue.d.ts +183 -0
- package/dist/esm/v3/components/or-date-picker-v3/index.d.ts +2 -0
- package/dist/esm/v3/components/or-date-picker-v3/index.js +27 -0
- package/dist/esm/v3/components/or-date-picker-v3/props.d.ts +1 -0
- package/dist/esm/v3/components/or-date-picker-v3/styles.d.ts +2 -0
- package/dist/esm/v3/components/or-date-time-picker-v3/index.js +4 -2
- package/dist/esm/v3/components/or-time-picker-v3/OrTimePicker.vue.d.ts +183 -0
- package/dist/esm/v3/components/or-time-picker-v3/index.d.ts +2 -0
- package/dist/esm/v3/components/or-time-picker-v3/index.js +25 -0
- package/dist/esm/v3/components/or-time-picker-v3/props.d.ts +1 -0
- package/dist/esm/v3/components/or-time-picker-v3/styles.d.ts +2 -0
- package/dist/esm/v3/index.js +7 -2
- package/package.json +2 -2
- package/src/components/index.ts +2 -0
- package/src/components/or-checkbox-v3/OrCheckbox.stories3.ts +1 -1
- package/src/components/or-combined-input-v3/OrCombinedInput.stories3.ts +1 -1
- package/src/components/{or-error-v3/OrError.docs.mdx → or-date-picker-v3/OrDatePicker.docs.mdx} +1 -1
- package/src/components/or-date-picker-v3/OrDatePicker.stories3.ts +160 -0
- package/src/components/or-date-picker-v3/OrDatePicker.vue +308 -0
- package/src/components/or-date-picker-v3/index.ts +2 -0
- package/src/components/or-date-picker-v3/props.ts +1 -0
- package/src/components/or-date-picker-v3/styles.ts +12 -0
- package/src/components/or-date-time-picker-v3/OrDateTimePicker.stories3.ts +1 -1
- package/src/components/or-date-time-picker-v3/OrDateTimePicker.vue +0 -34
- package/src/components/or-inline-input-v3/OrInlineInput.stories3.ts +1 -1
- package/src/components/or-inline-textarea-v3/OrInlineTextarea.stories3.ts +1 -1
- package/src/components/or-input-v3/OrInput.stories3.ts +2 -2
- package/src/components/or-radio-v3/OrRadio.stories3.ts +1 -1
- package/src/components/or-segmented-control-v3/OrSegmentedControl.stories3.ts +1 -1
- package/src/components/or-select-v3/OrSelect.stories3.ts +1 -1
- package/src/components/or-switch-v3/OrSwitch.stories3.ts +1 -1
- package/src/components/or-textarea-v3/OrTextarea.stories3.ts +1 -1
- package/src/components/{or-hint-v3/OrHint.docs.mdx → or-time-picker-v3/OrTimePicker.docs.mdx} +1 -1
- package/src/components/or-time-picker-v3/OrTimePicker.stories3.ts +160 -0
- package/src/components/or-time-picker-v3/OrTimePicker.vue +302 -0
- package/src/components/or-time-picker-v3/index.ts +2 -0
- package/src/components/or-time-picker-v3/props.ts +1 -0
- package/src/components/or-time-picker-v3/styles.ts +12 -0
- package/dist/bundled/v2/OrDateTimePicker-5a379f88.js +0 -1245
- package/dist/bundled/v3/OrDateTimePicker.vue_vue_type_script_lang-77c42110.js +0 -855
- package/dist/esm/v2/OrDateTimePicker-9b277e74.js +0 -1238
- package/dist/esm/v3/OrDateTimePicker-46b452b3.js +0 -1021
- package/src/components/or-error-v3/OrError.stories3.ts +0 -77
- package/src/components/or-hint-v3/OrHint.stories3.ts +0 -77
- package/src/components/or-inline-input-box-v3/OrInlineInputBox.docs.mdx +0 -3
- package/src/components/or-inline-input-box-v3/OrInlineInputBox.stories3.ts +0 -67
- package/src/components/or-input-box-v3/OrInputBox.docs.mdx +0 -3
- package/src/components/or-input-box-v3/OrInputBox.stories3.ts +0 -80
- package/src/components/or-label-v3/OrLabel.docs.mdx +0 -11
- package/src/components/or-label-v3/OrLabel.stories3.ts +0 -91
|
@@ -1,1238 +0,0 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, reactive, watch } from 'vue-demi';
|
|
2
|
-
import { D as DropdownClose, a as DropdownOpen } from './dropdown-open-e1f90e0a.js';
|
|
3
|
-
import { a as useIdAttribute, u as useControlAttributes } from './useIdAttribute-859439f0.js';
|
|
4
|
-
import '@vueuse/core';
|
|
5
|
-
import { u as useValidationAttributes } from './useValidationAttributes-d1abbe34.js';
|
|
6
|
-
import { _ as __vue_component__$d } from './OrError-4ffc1c39.js';
|
|
7
|
-
import { _ as __vue_component__$e } from './OrHint-aa221198.js';
|
|
8
|
-
import { _ as __vue_component__$a } from './OrIconButton-ec2e21aa.js';
|
|
9
|
-
import { _ as __vue_component__$f } from './OrInputBox-0f4e8500.js';
|
|
10
|
-
import { I as InputBoxSize } from './OrInputBox.vue_rollup-plugin-vue_script-b2d0c353.js';
|
|
11
|
-
import { _ as __vue_component__$8 } from './OrLabel-63380256.js';
|
|
12
|
-
import { _ as __vue_component__$g } from './OrPopover-83c885d0.js';
|
|
13
|
-
import { _ as __vue_component__$7 } from './OrButton-2283df1c.js';
|
|
14
|
-
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
15
|
-
import { _ as __vue_component__$9 } from './OrIcon-d35a84d8.js';
|
|
16
|
-
import { _ as __vue_component__$c } from './OrMenuItem-6f9b8a93.js';
|
|
17
|
-
import { _ as __vue_component__$b } from './OrMenu-18a7f179.js';
|
|
18
|
-
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
19
|
-
|
|
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 = [
|
|
41
|
-
// Layout
|
|
42
|
-
'layout-column',
|
|
43
|
-
// Spacing
|
|
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'];
|
|
57
|
-
|
|
58
|
-
var script$6 = defineComponent({
|
|
59
|
-
name: 'OrDateTimePickerDaySelect',
|
|
60
|
-
components: {
|
|
61
|
-
OrButton: __vue_component__$7
|
|
62
|
-
},
|
|
63
|
-
model: {
|
|
64
|
-
prop: 'modelValue',
|
|
65
|
-
event: 'update:modelValue'
|
|
66
|
-
},
|
|
67
|
-
props: {
|
|
68
|
-
modelValue: {
|
|
69
|
-
type: Date,
|
|
70
|
-
default: undefined
|
|
71
|
-
},
|
|
72
|
-
filter: {
|
|
73
|
-
type: Function,
|
|
74
|
-
default: undefined
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
emits: ['update:modelValue'],
|
|
78
|
-
expose: ['root'],
|
|
79
|
-
setup(props, context) {
|
|
80
|
-
// Refs
|
|
81
|
-
const root = ref();
|
|
82
|
-
// Styles
|
|
83
|
-
const rootStyles = computed(() => ['or-date-time-picker-day-select', ...DateTimePickerDaySelect]);
|
|
84
|
-
const buttonGroupStyles = computed(() => [...DateTimePickerDaySelectButtonGroup]);
|
|
85
|
-
const buttonGroupItemStyles = computed(() => [...DateTimePickerDaySelectButtonGroupItem]);
|
|
86
|
-
// State
|
|
87
|
-
const proxyModelValue = computed({
|
|
88
|
-
get: () => {
|
|
89
|
-
var _a;
|
|
90
|
-
return (_a = props.modelValue) !== null && _a !== void 0 ? _a : new Date(Date.UTC(useDefaultYear(), useDefaultMonth(), useDefaultDate(), useDefaultHours(), useDefaultMinutes()));
|
|
91
|
-
},
|
|
92
|
-
set: value => {
|
|
93
|
-
context.emit('update:modelValue', value);
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
const dayOptions = computed(() => {
|
|
97
|
-
const monthStartDate = new Date(Date.UTC(proxyModelValue.value.getUTCFullYear(), proxyModelValue.value.getUTCMonth(), 1, proxyModelValue.value.getUTCHours(), proxyModelValue.value.getUTCMinutes()));
|
|
98
|
-
const monthEndDate = new Date(Date.UTC(proxyModelValue.value.getUTCFullYear(), proxyModelValue.value.getUTCMonth() + 1, 0, proxyModelValue.value.getUTCHours(), proxyModelValue.value.getUTCMinutes()));
|
|
99
|
-
const calendarStartDate = new Date(Date.UTC(monthStartDate.getUTCFullYear(), monthStartDate.getUTCMonth(), 1 - (monthStartDate.getUTCDay() + 6) % 7, monthStartDate.getUTCHours(), monthStartDate.getUTCMinutes()));
|
|
100
|
-
const calendarEndDate = new Date(Date.UTC(monthEndDate.getUTCFullYear(), monthEndDate.getUTCMonth() + 1, (7 - monthEndDate.getUTCDay()) % 7, monthEndDate.getUTCHours(), monthEndDate.getUTCMinutes()));
|
|
101
|
-
return (() => {
|
|
102
|
-
let options = [],
|
|
103
|
-
value = calendarStartDate;
|
|
104
|
-
while (Number(value) !== Number(calendarEndDate)) {
|
|
105
|
-
options = [...options, value];
|
|
106
|
-
value = new Date(Date.UTC(value.getUTCFullYear(), value.getUTCMonth(), value.getUTCDate() + 1, value.getUTCHours(), value.getUTCMinutes()));
|
|
107
|
-
}
|
|
108
|
-
return options;
|
|
109
|
-
})();
|
|
110
|
-
});
|
|
111
|
-
// Methods
|
|
112
|
-
function formatDay(value) {
|
|
113
|
-
return value.toLocaleString('default', {
|
|
114
|
-
day: 'numeric',
|
|
115
|
-
timeZone: 'UTC'
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
return {
|
|
119
|
-
root,
|
|
120
|
-
rootStyles,
|
|
121
|
-
buttonGroupStyles,
|
|
122
|
-
buttonGroupItemStyles,
|
|
123
|
-
proxyModelValue,
|
|
124
|
-
dayOptions,
|
|
125
|
-
formatDay
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
});
|
|
129
|
-
|
|
130
|
-
/* script */
|
|
131
|
-
const __vue_script__$6 = script$6;
|
|
132
|
-
|
|
133
|
-
/* template */
|
|
134
|
-
var __vue_render__$6 = function () {
|
|
135
|
-
var _vm = this;
|
|
136
|
-
var _h = _vm.$createElement;
|
|
137
|
-
var _c = _vm._self._c || _h;
|
|
138
|
-
return _c('div', {
|
|
139
|
-
ref: "root",
|
|
140
|
-
class: _vm.rootStyles
|
|
141
|
-
}, [_c('div', {
|
|
142
|
-
class: _vm.buttonGroupStyles
|
|
143
|
-
}, _vm._l(_vm.dayOptions, function (value) {
|
|
144
|
-
return _c('OrButton', {
|
|
145
|
-
key: Number(value),
|
|
146
|
-
class: _vm.buttonGroupItemStyles,
|
|
147
|
-
attrs: {
|
|
148
|
-
"variant": Number(value) === Number(_vm.proxyModelValue) ? 'contained' : 'text',
|
|
149
|
-
"color": Number(value) === Number(_vm.proxyModelValue) ? 'primary' : 'inherit',
|
|
150
|
-
"disabled": _vm.filter && !_vm.filter(value)
|
|
151
|
-
},
|
|
152
|
-
on: {
|
|
153
|
-
"click": function ($event) {
|
|
154
|
-
$event.stopPropagation();
|
|
155
|
-
_vm.proxyModelValue = value;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
}, [_vm._v("\n " + _vm._s(_vm.formatDay(value)) + "\n ")]);
|
|
159
|
-
}), 1)]);
|
|
160
|
-
};
|
|
161
|
-
var __vue_staticRenderFns__$6 = [];
|
|
162
|
-
|
|
163
|
-
/* style */
|
|
164
|
-
const __vue_inject_styles__$6 = undefined;
|
|
165
|
-
/* scoped */
|
|
166
|
-
const __vue_scope_id__$6 = undefined;
|
|
167
|
-
/* module identifier */
|
|
168
|
-
const __vue_module_identifier__$6 = undefined;
|
|
169
|
-
/* functional template */
|
|
170
|
-
const __vue_is_functional_template__$6 = false;
|
|
171
|
-
/* style inject */
|
|
172
|
-
|
|
173
|
-
/* style inject SSR */
|
|
174
|
-
|
|
175
|
-
/* style inject shadow dom */
|
|
176
|
-
|
|
177
|
-
const __vue_component__$6 = /*#__PURE__*/normalizeComponent({
|
|
178
|
-
render: __vue_render__$6,
|
|
179
|
-
staticRenderFns: __vue_staticRenderFns__$6
|
|
180
|
-
}, __vue_inject_styles__$6, __vue_script__$6, __vue_scope_id__$6, __vue_is_functional_template__$6, __vue_module_identifier__$6, false, undefined, undefined, undefined);
|
|
181
|
-
|
|
182
|
-
const DateTimePickerMobileControl = [
|
|
183
|
-
// Layout
|
|
184
|
-
'layout-column',
|
|
185
|
-
// Spacing
|
|
186
|
-
'gap-xs'];
|
|
187
|
-
const DateTimePickerMobileControlContent = [
|
|
188
|
-
// Typography
|
|
189
|
-
'typography-headline-1',
|
|
190
|
-
// Theme
|
|
191
|
-
'theme-foreground-outline', 'dark:theme-foreground-outline-dark'];
|
|
192
|
-
|
|
193
|
-
var script$5 = defineComponent({
|
|
194
|
-
name: 'OrDateTimePickerMobileControl',
|
|
195
|
-
components: {
|
|
196
|
-
OrLabel: __vue_component__$8
|
|
197
|
-
},
|
|
198
|
-
props: {
|
|
199
|
-
label: {
|
|
200
|
-
type: String,
|
|
201
|
-
required: true
|
|
202
|
-
}
|
|
203
|
-
},
|
|
204
|
-
expose: ['root'],
|
|
205
|
-
setup() {
|
|
206
|
-
// Refs
|
|
207
|
-
const root = ref();
|
|
208
|
-
// Styles
|
|
209
|
-
const rootStyles = computed(() => ['or-date-time-picker-mobile-control', ...DateTimePickerMobileControl]);
|
|
210
|
-
const contentStyles = computed(() => [...DateTimePickerMobileControlContent]);
|
|
211
|
-
return {
|
|
212
|
-
root,
|
|
213
|
-
rootStyles,
|
|
214
|
-
contentStyles
|
|
215
|
-
};
|
|
216
|
-
}
|
|
217
|
-
});
|
|
218
|
-
|
|
219
|
-
/* script */
|
|
220
|
-
const __vue_script__$5 = script$5;
|
|
221
|
-
|
|
222
|
-
/* template */
|
|
223
|
-
var __vue_render__$5 = function () {
|
|
224
|
-
var _vm = this;
|
|
225
|
-
var _h = _vm.$createElement;
|
|
226
|
-
var _c = _vm._self._c || _h;
|
|
227
|
-
return _c('div', {
|
|
228
|
-
ref: "root",
|
|
229
|
-
class: _vm.rootStyles
|
|
230
|
-
}, [_c('OrLabel', [_vm._v(_vm._s(_vm.label))]), _vm._v(" "), _c('div', {
|
|
231
|
-
class: _vm.contentStyles
|
|
232
|
-
}, [_vm._t("default")], 2)], 1);
|
|
233
|
-
};
|
|
234
|
-
var __vue_staticRenderFns__$5 = [];
|
|
235
|
-
|
|
236
|
-
/* style */
|
|
237
|
-
const __vue_inject_styles__$5 = undefined;
|
|
238
|
-
/* scoped */
|
|
239
|
-
const __vue_scope_id__$5 = undefined;
|
|
240
|
-
/* module identifier */
|
|
241
|
-
const __vue_module_identifier__$5 = undefined;
|
|
242
|
-
/* functional template */
|
|
243
|
-
const __vue_is_functional_template__$5 = false;
|
|
244
|
-
/* style inject */
|
|
245
|
-
|
|
246
|
-
/* style inject SSR */
|
|
247
|
-
|
|
248
|
-
/* style inject shadow dom */
|
|
249
|
-
|
|
250
|
-
const __vue_component__$5 = /*#__PURE__*/normalizeComponent({
|
|
251
|
-
render: __vue_render__$5,
|
|
252
|
-
staticRenderFns: __vue_staticRenderFns__$5
|
|
253
|
-
}, __vue_inject_styles__$5, __vue_script__$5, __vue_scope_id__$5, __vue_is_functional_template__$5, __vue_module_identifier__$5, false, undefined, undefined, undefined);
|
|
254
|
-
|
|
255
|
-
const DateTimePickerMonthSelect = [
|
|
256
|
-
// Layout
|
|
257
|
-
'layout-row justify-between',
|
|
258
|
-
// Spacing
|
|
259
|
-
'px-md', 'py-md', 'gap-md'];
|
|
260
|
-
|
|
261
|
-
var script$4 = defineComponent({
|
|
262
|
-
name: 'OrDateTimePickerMonthSelect',
|
|
263
|
-
components: {
|
|
264
|
-
OrButton: __vue_component__$7,
|
|
265
|
-
OrIcon: __vue_component__$9,
|
|
266
|
-
OrIconButton: __vue_component__$a,
|
|
267
|
-
OrMenu: __vue_component__$b,
|
|
268
|
-
OrMenuItem: __vue_component__$c
|
|
269
|
-
},
|
|
270
|
-
model: {
|
|
271
|
-
prop: 'modelValue',
|
|
272
|
-
event: 'update:modelValue'
|
|
273
|
-
},
|
|
274
|
-
props: {
|
|
275
|
-
modelValue: {
|
|
276
|
-
type: Date,
|
|
277
|
-
default: undefined
|
|
278
|
-
},
|
|
279
|
-
filter: {
|
|
280
|
-
type: Function,
|
|
281
|
-
default: undefined
|
|
282
|
-
}
|
|
283
|
-
},
|
|
284
|
-
emits: ['update:modelValue'],
|
|
285
|
-
expose: ['root'],
|
|
286
|
-
setup(props, context) {
|
|
287
|
-
// Refs
|
|
288
|
-
const root = ref();
|
|
289
|
-
const yearButton = ref();
|
|
290
|
-
const monthButton = ref();
|
|
291
|
-
const yearButtonRoot = computed(() => {
|
|
292
|
-
var _a;
|
|
293
|
-
return (_a = yearButton.value) === null || _a === void 0 ? void 0 : _a.root;
|
|
294
|
-
});
|
|
295
|
-
const monthButtonRoot = computed(() => {
|
|
296
|
-
var _a;
|
|
297
|
-
return (_a = monthButton.value) === null || _a === void 0 ? void 0 : _a.root;
|
|
298
|
-
});
|
|
299
|
-
const yearMenu = ref();
|
|
300
|
-
const monthMenu = ref();
|
|
301
|
-
const yearMenuState = computed(() => {
|
|
302
|
-
var _a;
|
|
303
|
-
return (_a = yearMenu.value) === null || _a === void 0 ? void 0 : _a.state;
|
|
304
|
-
});
|
|
305
|
-
const monthMenuState = computed(() => {
|
|
306
|
-
var _a;
|
|
307
|
-
return (_a = monthMenu.value) === null || _a === void 0 ? void 0 : _a.state;
|
|
308
|
-
});
|
|
309
|
-
// Styles
|
|
310
|
-
const rootStyles = computed(() => ['or-date-time-picker-month-select', ...DateTimePickerMonthSelect]);
|
|
311
|
-
// State
|
|
312
|
-
const proxyModelValue = computed({
|
|
313
|
-
get: () => {
|
|
314
|
-
var _a;
|
|
315
|
-
return (_a = props.modelValue) !== null && _a !== void 0 ? _a : new Date(Date.UTC(useDefaultYear(), useDefaultMonth(), useDefaultDate(), useDefaultHours(), useDefaultMinutes()));
|
|
316
|
-
},
|
|
317
|
-
set: value => {
|
|
318
|
-
context.emit('update:modelValue', value);
|
|
319
|
-
}
|
|
320
|
-
});
|
|
321
|
-
const yearOptions = computed(() => {
|
|
322
|
-
return Array.from({
|
|
323
|
-
length: 11
|
|
324
|
-
}).map((_value, index, {
|
|
325
|
-
length
|
|
326
|
-
}) => {
|
|
327
|
-
const value = proxyModelValue.value.getUTCFullYear() - Math.floor(length / 2) + index;
|
|
328
|
-
return new Date(Date.UTC(value, proxyModelValue.value.getUTCMonth(), proxyModelValue.value.getUTCDate(), proxyModelValue.value.getUTCHours(), proxyModelValue.value.getUTCMinutes()));
|
|
329
|
-
});
|
|
330
|
-
});
|
|
331
|
-
const monthOptions = computed(() => {
|
|
332
|
-
return Array.from({
|
|
333
|
-
length: 12
|
|
334
|
-
}, (_value, index) => {
|
|
335
|
-
const value = index;
|
|
336
|
-
return new Date(Date.UTC(proxyModelValue.value.getUTCFullYear(), value, proxyModelValue.value.getUTCDate(), proxyModelValue.value.getUTCHours(), proxyModelValue.value.getUTCMinutes()));
|
|
337
|
-
});
|
|
338
|
-
});
|
|
339
|
-
// Methods
|
|
340
|
-
function goToNextMonth() {
|
|
341
|
-
proxyModelValue.value = new Date(Date.UTC(proxyModelValue.value.getUTCFullYear(), proxyModelValue.value.getUTCMonth() + 1, proxyModelValue.value.getUTCDate(), proxyModelValue.value.getUTCHours(), proxyModelValue.value.getUTCMinutes()));
|
|
342
|
-
}
|
|
343
|
-
function goToPreviousMonth() {
|
|
344
|
-
proxyModelValue.value = new Date(Date.UTC(proxyModelValue.value.getUTCFullYear(), proxyModelValue.value.getUTCMonth() - 1, proxyModelValue.value.getUTCDate(), proxyModelValue.value.getUTCHours(), proxyModelValue.value.getUTCMinutes()));
|
|
345
|
-
}
|
|
346
|
-
function formatYear(value) {
|
|
347
|
-
return value.toLocaleString('default', {
|
|
348
|
-
year: 'numeric',
|
|
349
|
-
timeZone: 'UTC'
|
|
350
|
-
});
|
|
351
|
-
}
|
|
352
|
-
function formatMonth(value) {
|
|
353
|
-
return value.toLocaleString('default', {
|
|
354
|
-
month: 'long',
|
|
355
|
-
timeZone: 'UTC'
|
|
356
|
-
});
|
|
357
|
-
}
|
|
358
|
-
return {
|
|
359
|
-
root,
|
|
360
|
-
yearButton,
|
|
361
|
-
monthButton,
|
|
362
|
-
yearButtonRoot,
|
|
363
|
-
monthButtonRoot,
|
|
364
|
-
yearMenu,
|
|
365
|
-
monthMenu,
|
|
366
|
-
yearMenuState,
|
|
367
|
-
monthMenuState,
|
|
368
|
-
rootStyles,
|
|
369
|
-
proxyModelValue,
|
|
370
|
-
yearOptions,
|
|
371
|
-
monthOptions,
|
|
372
|
-
goToNextMonth,
|
|
373
|
-
goToPreviousMonth,
|
|
374
|
-
formatYear,
|
|
375
|
-
formatMonth
|
|
376
|
-
};
|
|
377
|
-
}
|
|
378
|
-
});
|
|
379
|
-
|
|
380
|
-
/* script */
|
|
381
|
-
const __vue_script__$4 = script$4;
|
|
382
|
-
|
|
383
|
-
/* template */
|
|
384
|
-
var __vue_render__$4 = function () {
|
|
385
|
-
var _vm = this;
|
|
386
|
-
var _h = _vm.$createElement;
|
|
387
|
-
var _c = _vm._self._c || _h;
|
|
388
|
-
return _c('div', {
|
|
389
|
-
ref: "root",
|
|
390
|
-
class: _vm.rootStyles
|
|
391
|
-
}, [_c('OrIconButton', {
|
|
392
|
-
attrs: {
|
|
393
|
-
"icon": 'chevron_left'
|
|
394
|
-
},
|
|
395
|
-
on: {
|
|
396
|
-
"click": function ($event) {
|
|
397
|
-
$event.stopPropagation();
|
|
398
|
-
return _vm.goToPreviousMonth();
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
}), _vm._v(" "), _c('div', {
|
|
402
|
-
class: ['layout-row-reverse', 'gap-md']
|
|
403
|
-
}, [_c('OrButton', {
|
|
404
|
-
ref: "yearButton",
|
|
405
|
-
attrs: {
|
|
406
|
-
"variant": 'link',
|
|
407
|
-
"color": 'inherit'
|
|
408
|
-
},
|
|
409
|
-
on: {
|
|
410
|
-
"click": function ($event) {
|
|
411
|
-
$event.stopPropagation();
|
|
412
|
-
return _vm.yearMenu.open();
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
}, [_vm._v("\n " + _vm._s(_vm.formatYear(_vm.proxyModelValue)) + " "), _c('OrIcon', {
|
|
416
|
-
attrs: {
|
|
417
|
-
"icon": _vm.yearMenuState === 'open' ? 'arrow_drop_up' : 'arrow_drop_down'
|
|
418
|
-
}
|
|
419
|
-
})], 1), _vm._v(" "), _c('OrButton', {
|
|
420
|
-
ref: "monthButton",
|
|
421
|
-
attrs: {
|
|
422
|
-
"variant": 'link',
|
|
423
|
-
"color": 'inherit'
|
|
424
|
-
},
|
|
425
|
-
on: {
|
|
426
|
-
"click": function ($event) {
|
|
427
|
-
$event.stopPropagation();
|
|
428
|
-
return _vm.monthMenu.open();
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
}, [_vm._v("\n " + _vm._s(_vm.formatMonth(_vm.proxyModelValue)) + " "), _c('OrIcon', {
|
|
432
|
-
attrs: {
|
|
433
|
-
"icon": _vm.monthMenuState === 'open' ? 'arrow_drop_up' : 'arrow_drop_down'
|
|
434
|
-
}
|
|
435
|
-
})], 1), _vm._v(" "), _c('OrMenu', {
|
|
436
|
-
ref: "yearMenu",
|
|
437
|
-
attrs: {
|
|
438
|
-
"trigger": _vm.yearButtonRoot
|
|
439
|
-
}
|
|
440
|
-
}, _vm._l(_vm.yearOptions, function (value) {
|
|
441
|
-
return _c('OrMenuItem', {
|
|
442
|
-
key: Number(value),
|
|
443
|
-
attrs: {
|
|
444
|
-
"selected": Number(value) === Number(_vm.proxyModelValue),
|
|
445
|
-
"disabled": _vm.filter && !_vm.filter(value)
|
|
446
|
-
},
|
|
447
|
-
on: {
|
|
448
|
-
"click": function ($event) {
|
|
449
|
-
$event.stopPropagation();
|
|
450
|
-
_vm.proxyModelValue = value;
|
|
451
|
-
_vm.yearMenu.close();
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
}, [_vm._v("\n " + _vm._s(_vm.formatYear(value)) + "\n ")]);
|
|
455
|
-
}), 1), _vm._v(" "), _c('OrMenu', {
|
|
456
|
-
ref: "monthMenu",
|
|
457
|
-
attrs: {
|
|
458
|
-
"trigger": _vm.monthButtonRoot
|
|
459
|
-
}
|
|
460
|
-
}, _vm._l(_vm.monthOptions, function (value) {
|
|
461
|
-
return _c('OrMenuItem', {
|
|
462
|
-
key: Number(value),
|
|
463
|
-
attrs: {
|
|
464
|
-
"selected": Number(value) === Number(_vm.proxyModelValue),
|
|
465
|
-
"disabled": _vm.filter && !_vm.filter(value)
|
|
466
|
-
},
|
|
467
|
-
on: {
|
|
468
|
-
"click": function ($event) {
|
|
469
|
-
$event.stopPropagation();
|
|
470
|
-
_vm.proxyModelValue = value;
|
|
471
|
-
_vm.monthMenu.close();
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
}, [_vm._v("\n " + _vm._s(_vm.formatMonth(value)) + "\n ")]);
|
|
475
|
-
}), 1)], 1), _vm._v(" "), _c('OrIconButton', {
|
|
476
|
-
attrs: {
|
|
477
|
-
"icon": 'chevron_right'
|
|
478
|
-
},
|
|
479
|
-
on: {
|
|
480
|
-
"click": function ($event) {
|
|
481
|
-
$event.stopPropagation();
|
|
482
|
-
return _vm.goToNextMonth();
|
|
483
|
-
}
|
|
484
|
-
}
|
|
485
|
-
})], 1);
|
|
486
|
-
};
|
|
487
|
-
var __vue_staticRenderFns__$4 = [];
|
|
488
|
-
|
|
489
|
-
/* style */
|
|
490
|
-
const __vue_inject_styles__$4 = undefined;
|
|
491
|
-
/* scoped */
|
|
492
|
-
const __vue_scope_id__$4 = undefined;
|
|
493
|
-
/* module identifier */
|
|
494
|
-
const __vue_module_identifier__$4 = undefined;
|
|
495
|
-
/* functional template */
|
|
496
|
-
const __vue_is_functional_template__$4 = false;
|
|
497
|
-
/* style inject */
|
|
498
|
-
|
|
499
|
-
/* style inject SSR */
|
|
500
|
-
|
|
501
|
-
/* style inject shadow dom */
|
|
502
|
-
|
|
503
|
-
const __vue_component__$4 = /*#__PURE__*/normalizeComponent({
|
|
504
|
-
render: __vue_render__$4,
|
|
505
|
-
staticRenderFns: __vue_staticRenderFns__$4
|
|
506
|
-
}, __vue_inject_styles__$4, __vue_script__$4, __vue_scope_id__$4, __vue_is_functional_template__$4, __vue_module_identifier__$4, false, undefined, undefined, undefined);
|
|
507
|
-
|
|
508
|
-
const DateTimePickerPopoverFooter = [
|
|
509
|
-
// Layout
|
|
510
|
-
'layout-row-reverse',
|
|
511
|
-
// Layout (children)
|
|
512
|
-
'children:grow',
|
|
513
|
-
// Spacing
|
|
514
|
-
'px-md md:px-sm', 'py-md md:py-sm', 'gap-md md:gap-sm'];
|
|
515
|
-
|
|
516
|
-
var script$3 = defineComponent({
|
|
517
|
-
name: 'OrDateTimePickerPopoverFooter',
|
|
518
|
-
components: {
|
|
519
|
-
OrButton: __vue_component__$7
|
|
520
|
-
},
|
|
521
|
-
emits: ['resolve', 'reject'],
|
|
522
|
-
expose: ['root'],
|
|
523
|
-
setup() {
|
|
524
|
-
// Refs
|
|
525
|
-
const root = ref();
|
|
526
|
-
// Styles
|
|
527
|
-
const rootStyles = computed(() => ['or-date-time-picker-popover-footer', ...DateTimePickerPopoverFooter]);
|
|
528
|
-
return {
|
|
529
|
-
root,
|
|
530
|
-
rootStyles
|
|
531
|
-
};
|
|
532
|
-
}
|
|
533
|
-
});
|
|
534
|
-
|
|
535
|
-
/* script */
|
|
536
|
-
const __vue_script__$3 = script$3;
|
|
537
|
-
|
|
538
|
-
/* template */
|
|
539
|
-
var __vue_render__$3 = function () {
|
|
540
|
-
var _vm = this;
|
|
541
|
-
var _h = _vm.$createElement;
|
|
542
|
-
var _c = _vm._self._c || _h;
|
|
543
|
-
return _c('footer', {
|
|
544
|
-
ref: "root",
|
|
545
|
-
class: _vm.rootStyles
|
|
546
|
-
}, [_c('OrButton', {
|
|
547
|
-
attrs: {
|
|
548
|
-
"variant": 'outlined'
|
|
549
|
-
},
|
|
550
|
-
on: {
|
|
551
|
-
"click": function ($event) {
|
|
552
|
-
$event.stopPropagation();
|
|
553
|
-
return _vm.$emit('resolve');
|
|
554
|
-
}
|
|
555
|
-
}
|
|
556
|
-
}, [_vm._v("\n Done\n ")]), _vm._v(" "), _c('OrButton', {
|
|
557
|
-
attrs: {
|
|
558
|
-
"variant": 'text'
|
|
559
|
-
},
|
|
560
|
-
on: {
|
|
561
|
-
"click": function ($event) {
|
|
562
|
-
$event.stopPropagation();
|
|
563
|
-
return _vm.$emit('reject');
|
|
564
|
-
}
|
|
565
|
-
}
|
|
566
|
-
}, [_vm._v("\n Cancel\n ")])], 1);
|
|
567
|
-
};
|
|
568
|
-
var __vue_staticRenderFns__$3 = [];
|
|
569
|
-
|
|
570
|
-
/* style */
|
|
571
|
-
const __vue_inject_styles__$3 = undefined;
|
|
572
|
-
/* scoped */
|
|
573
|
-
const __vue_scope_id__$3 = undefined;
|
|
574
|
-
/* module identifier */
|
|
575
|
-
const __vue_module_identifier__$3 = undefined;
|
|
576
|
-
/* functional template */
|
|
577
|
-
const __vue_is_functional_template__$3 = false;
|
|
578
|
-
/* style inject */
|
|
579
|
-
|
|
580
|
-
/* style inject SSR */
|
|
581
|
-
|
|
582
|
-
/* style inject shadow dom */
|
|
583
|
-
|
|
584
|
-
const __vue_component__$3 = /*#__PURE__*/normalizeComponent({
|
|
585
|
-
render: __vue_render__$3,
|
|
586
|
-
staticRenderFns: __vue_staticRenderFns__$3
|
|
587
|
-
}, __vue_inject_styles__$3, __vue_script__$3, __vue_scope_id__$3, __vue_is_functional_template__$3, __vue_module_identifier__$3, false, undefined, undefined, undefined);
|
|
588
|
-
|
|
589
|
-
const DateTimePickerPopoverHeader = [
|
|
590
|
-
// Layout
|
|
591
|
-
'layout-row md:hidden',
|
|
592
|
-
// Spacing
|
|
593
|
-
'px-md', 'py-md', 'gap-xl'];
|
|
594
|
-
|
|
595
|
-
var script$2 = defineComponent({
|
|
596
|
-
name: 'OrDateTimePickerPopoverHeader',
|
|
597
|
-
expose: ['root'],
|
|
598
|
-
setup() {
|
|
599
|
-
// Refs
|
|
600
|
-
const root = ref();
|
|
601
|
-
// Styles
|
|
602
|
-
const rootStyles = computed(() => ['or-date-time-picker-popover-header', ...DateTimePickerPopoverHeader]);
|
|
603
|
-
return {
|
|
604
|
-
root,
|
|
605
|
-
rootStyles
|
|
606
|
-
};
|
|
607
|
-
}
|
|
608
|
-
});
|
|
609
|
-
|
|
610
|
-
/* script */
|
|
611
|
-
const __vue_script__$2 = script$2;
|
|
612
|
-
|
|
613
|
-
/* template */
|
|
614
|
-
var __vue_render__$2 = function () {
|
|
615
|
-
var _vm = this;
|
|
616
|
-
var _h = _vm.$createElement;
|
|
617
|
-
var _c = _vm._self._c || _h;
|
|
618
|
-
return _c('header', {
|
|
619
|
-
ref: "root",
|
|
620
|
-
class: _vm.rootStyles
|
|
621
|
-
}, [_vm._t("default")], 2);
|
|
622
|
-
};
|
|
623
|
-
var __vue_staticRenderFns__$2 = [];
|
|
624
|
-
|
|
625
|
-
/* style */
|
|
626
|
-
const __vue_inject_styles__$2 = undefined;
|
|
627
|
-
/* scoped */
|
|
628
|
-
const __vue_scope_id__$2 = undefined;
|
|
629
|
-
/* module identifier */
|
|
630
|
-
const __vue_module_identifier__$2 = undefined;
|
|
631
|
-
/* functional template */
|
|
632
|
-
const __vue_is_functional_template__$2 = false;
|
|
633
|
-
/* style inject */
|
|
634
|
-
|
|
635
|
-
/* style inject SSR */
|
|
636
|
-
|
|
637
|
-
/* style inject shadow dom */
|
|
638
|
-
|
|
639
|
-
const __vue_component__$2 = /*#__PURE__*/normalizeComponent({
|
|
640
|
-
render: __vue_render__$2,
|
|
641
|
-
staticRenderFns: __vue_staticRenderFns__$2
|
|
642
|
-
}, __vue_inject_styles__$2, __vue_script__$2, __vue_scope_id__$2, __vue_is_functional_template__$2, __vue_module_identifier__$2, false, undefined, undefined, undefined);
|
|
643
|
-
|
|
644
|
-
const DateTimePickerTimeSelect = [
|
|
645
|
-
// Layout
|
|
646
|
-
'layout-row justify-center',
|
|
647
|
-
// Spacing
|
|
648
|
-
'px-md', 'py-md', 'gap-sm',
|
|
649
|
-
// Typography
|
|
650
|
-
'typography-body-2-regular',
|
|
651
|
-
// Theme
|
|
652
|
-
'theme-foreground-default', 'dark:theme-foreground-default-dark'];
|
|
653
|
-
const DateTimePickerTimeSelectButtonGroup = [
|
|
654
|
-
// Layout
|
|
655
|
-
'layout-column',
|
|
656
|
-
// Box
|
|
657
|
-
'max-h-[224px]',
|
|
658
|
-
// Overflow
|
|
659
|
-
'overflow-x-hidden', 'overflow-y-auto'];
|
|
660
|
-
const DateTimePickerTimeSelectButtonGroupItem = [
|
|
661
|
-
// Typography
|
|
662
|
-
'typography-caption-regular'];
|
|
663
|
-
|
|
664
|
-
var script$1 = defineComponent({
|
|
665
|
-
name: 'OrDateTimePickerTimeSelect',
|
|
666
|
-
components: {
|
|
667
|
-
OrButton: __vue_component__$7
|
|
668
|
-
},
|
|
669
|
-
model: {
|
|
670
|
-
prop: 'modelValue',
|
|
671
|
-
event: 'update:modelValue'
|
|
672
|
-
},
|
|
673
|
-
props: {
|
|
674
|
-
modelValue: {
|
|
675
|
-
type: Date,
|
|
676
|
-
default: undefined
|
|
677
|
-
},
|
|
678
|
-
filter: {
|
|
679
|
-
type: Function,
|
|
680
|
-
default: undefined
|
|
681
|
-
}
|
|
682
|
-
},
|
|
683
|
-
emits: ['update:modelValue'],
|
|
684
|
-
expose: ['root'],
|
|
685
|
-
setup(props, context) {
|
|
686
|
-
// Refs
|
|
687
|
-
const root = ref();
|
|
688
|
-
// Styles
|
|
689
|
-
const rootStyles = computed(() => ['or-date-time-picker-time-select', ...DateTimePickerTimeSelect]);
|
|
690
|
-
const buttonGroupStyles = computed(() => [...DateTimePickerTimeSelectButtonGroup]);
|
|
691
|
-
const buttonGroupItemStyles = computed(() => [...DateTimePickerTimeSelectButtonGroupItem]);
|
|
692
|
-
// State
|
|
693
|
-
const proxyModelValue = computed({
|
|
694
|
-
get: () => {
|
|
695
|
-
var _a;
|
|
696
|
-
return (_a = props.modelValue) !== null && _a !== void 0 ? _a : new Date(Date.UTC(useDefaultYear(), useDefaultMonth(), useDefaultDate(), useDefaultHours(), useDefaultMinutes()));
|
|
697
|
-
},
|
|
698
|
-
set: value => {
|
|
699
|
-
context.emit('update:modelValue', value);
|
|
700
|
-
}
|
|
701
|
-
});
|
|
702
|
-
const hoursOptions = computed(() => {
|
|
703
|
-
return Array.from({
|
|
704
|
-
length: 24
|
|
705
|
-
}, (_value, index) => {
|
|
706
|
-
const value = index;
|
|
707
|
-
return new Date(Date.UTC(proxyModelValue.value.getUTCFullYear(), proxyModelValue.value.getUTCMonth(), proxyModelValue.value.getUTCDate(), value, proxyModelValue.value.getUTCMinutes()));
|
|
708
|
-
});
|
|
709
|
-
});
|
|
710
|
-
const minutesOptions = computed(() => {
|
|
711
|
-
return Array.from({
|
|
712
|
-
length: 60
|
|
713
|
-
}, (_value, index) => {
|
|
714
|
-
const value = index;
|
|
715
|
-
return new Date(Date.UTC(proxyModelValue.value.getUTCFullYear(), proxyModelValue.value.getUTCMonth(), proxyModelValue.value.getUTCDate(), proxyModelValue.value.getUTCHours(), value));
|
|
716
|
-
});
|
|
717
|
-
});
|
|
718
|
-
// Methods
|
|
719
|
-
function formatHours(value) {
|
|
720
|
-
return value.toLocaleString('default', {
|
|
721
|
-
hour: '2-digit',
|
|
722
|
-
timeZone: 'UTC'
|
|
723
|
-
});
|
|
724
|
-
}
|
|
725
|
-
function formatMinutes(value) {
|
|
726
|
-
return value.toLocaleString('default', {
|
|
727
|
-
minute: '2-digit',
|
|
728
|
-
timeZone: 'UTC'
|
|
729
|
-
});
|
|
730
|
-
}
|
|
731
|
-
return {
|
|
732
|
-
root,
|
|
733
|
-
rootStyles,
|
|
734
|
-
buttonGroupStyles,
|
|
735
|
-
buttonGroupItemStyles,
|
|
736
|
-
proxyModelValue,
|
|
737
|
-
hoursOptions,
|
|
738
|
-
minutesOptions,
|
|
739
|
-
formatHours,
|
|
740
|
-
formatMinutes
|
|
741
|
-
};
|
|
742
|
-
}
|
|
743
|
-
});
|
|
744
|
-
|
|
745
|
-
/* script */
|
|
746
|
-
const __vue_script__$1 = script$1;
|
|
747
|
-
|
|
748
|
-
/* template */
|
|
749
|
-
var __vue_render__$1 = function () {
|
|
750
|
-
var _vm = this;
|
|
751
|
-
var _h = _vm.$createElement;
|
|
752
|
-
var _c = _vm._self._c || _h;
|
|
753
|
-
return _c('div', {
|
|
754
|
-
ref: "root",
|
|
755
|
-
class: _vm.rootStyles
|
|
756
|
-
}, [_c('div', {
|
|
757
|
-
class: _vm.buttonGroupStyles
|
|
758
|
-
}, _vm._l(_vm.hoursOptions, function (value) {
|
|
759
|
-
return _c('OrButton', {
|
|
760
|
-
key: Number(value),
|
|
761
|
-
class: _vm.buttonGroupItemStyles,
|
|
762
|
-
attrs: {
|
|
763
|
-
"variant": Number(value) === Number(_vm.proxyModelValue) ? 'contained' : 'text',
|
|
764
|
-
"color": Number(value) === Number(_vm.proxyModelValue) ? 'primary' : 'inherit',
|
|
765
|
-
"disabled": _vm.filter && !_vm.filter(value)
|
|
766
|
-
},
|
|
767
|
-
on: {
|
|
768
|
-
"click": function ($event) {
|
|
769
|
-
$event.stopPropagation();
|
|
770
|
-
_vm.proxyModelValue = value;
|
|
771
|
-
}
|
|
772
|
-
}
|
|
773
|
-
}, [_vm._v("\n " + _vm._s(_vm.formatHours(value)) + "\n ")]);
|
|
774
|
-
}), 1), _vm._v("\n\n :\n\n "), _c('div', {
|
|
775
|
-
class: _vm.buttonGroupStyles
|
|
776
|
-
}, _vm._l(_vm.minutesOptions, function (value) {
|
|
777
|
-
return _c('OrButton', {
|
|
778
|
-
key: Number(value),
|
|
779
|
-
class: _vm.buttonGroupItemStyles,
|
|
780
|
-
attrs: {
|
|
781
|
-
"variant": Number(value) === Number(_vm.proxyModelValue) ? 'contained' : 'text',
|
|
782
|
-
"color": Number(value) === Number(_vm.proxyModelValue) ? 'primary' : 'inherit',
|
|
783
|
-
"disabled": _vm.filter && !_vm.filter(value)
|
|
784
|
-
},
|
|
785
|
-
on: {
|
|
786
|
-
"click": function ($event) {
|
|
787
|
-
$event.stopPropagation();
|
|
788
|
-
_vm.proxyModelValue = value;
|
|
789
|
-
}
|
|
790
|
-
}
|
|
791
|
-
}, [_vm._v("\n " + _vm._s(_vm.formatMinutes(value)) + "\n ")]);
|
|
792
|
-
}), 1)]);
|
|
793
|
-
};
|
|
794
|
-
var __vue_staticRenderFns__$1 = [];
|
|
795
|
-
|
|
796
|
-
/* style */
|
|
797
|
-
const __vue_inject_styles__$1 = undefined;
|
|
798
|
-
/* scoped */
|
|
799
|
-
const __vue_scope_id__$1 = undefined;
|
|
800
|
-
/* module identifier */
|
|
801
|
-
const __vue_module_identifier__$1 = undefined;
|
|
802
|
-
/* functional template */
|
|
803
|
-
const __vue_is_functional_template__$1 = false;
|
|
804
|
-
/* style inject */
|
|
805
|
-
|
|
806
|
-
/* style inject SSR */
|
|
807
|
-
|
|
808
|
-
/* style inject shadow dom */
|
|
809
|
-
|
|
810
|
-
const __vue_component__$1 = /*#__PURE__*/normalizeComponent({
|
|
811
|
-
render: __vue_render__$1,
|
|
812
|
-
staticRenderFns: __vue_staticRenderFns__$1
|
|
813
|
-
}, __vue_inject_styles__$1, __vue_script__$1, __vue_scope_id__$1, __vue_is_functional_template__$1, __vue_module_identifier__$1, false, undefined, undefined, undefined);
|
|
814
|
-
|
|
815
|
-
const DateTimePicker = [
|
|
816
|
-
// Layout
|
|
817
|
-
'layout-column',
|
|
818
|
-
// Spacing
|
|
819
|
-
'gap-xs'];
|
|
820
|
-
const DateTimePickerControl = [
|
|
821
|
-
// Layout
|
|
822
|
-
'layout-inline-row justify-center',
|
|
823
|
-
// Theme (focus)
|
|
824
|
-
'focus:theme-border-2-current', 'dark:focus:theme-border-2-current-dark', 'focus:theme-border-underline', 'dark:focus:theme-border-underline'];
|
|
825
|
-
|
|
826
|
-
var script = defineComponent({
|
|
827
|
-
name: 'OrDateTimePicker',
|
|
828
|
-
components: {
|
|
829
|
-
OrDateTimePickerDaySelect: __vue_component__$6,
|
|
830
|
-
OrDateTimePickerMobileControl: __vue_component__$5,
|
|
831
|
-
OrDateTimePickerMonthSelect: __vue_component__$4,
|
|
832
|
-
OrDateTimePickerPopoverFooter: __vue_component__$3,
|
|
833
|
-
OrDateTimePickerPopoverHeader: __vue_component__$2,
|
|
834
|
-
OrDateTimePickerTimeSelect: __vue_component__$1,
|
|
835
|
-
OrError: __vue_component__$d,
|
|
836
|
-
OrHint: __vue_component__$e,
|
|
837
|
-
OrIconButton: __vue_component__$a,
|
|
838
|
-
OrInputBox: __vue_component__$f,
|
|
839
|
-
OrLabel: __vue_component__$8,
|
|
840
|
-
OrPopover: __vue_component__$g
|
|
841
|
-
},
|
|
842
|
-
directives: {
|
|
843
|
-
DropdownClose,
|
|
844
|
-
DropdownOpen
|
|
845
|
-
},
|
|
846
|
-
model: {
|
|
847
|
-
prop: 'modelValue',
|
|
848
|
-
event: 'update:modelValue'
|
|
849
|
-
},
|
|
850
|
-
props: {
|
|
851
|
-
modelValue: {
|
|
852
|
-
type: Date,
|
|
853
|
-
default: undefined
|
|
854
|
-
},
|
|
855
|
-
filter: {
|
|
856
|
-
type: Function,
|
|
857
|
-
default: undefined
|
|
858
|
-
},
|
|
859
|
-
size: {
|
|
860
|
-
type: String,
|
|
861
|
-
default: InputBoxSize.M
|
|
862
|
-
},
|
|
863
|
-
label: {
|
|
864
|
-
type: String,
|
|
865
|
-
default: undefined
|
|
866
|
-
},
|
|
867
|
-
hint: {
|
|
868
|
-
type: String,
|
|
869
|
-
default: undefined
|
|
870
|
-
},
|
|
871
|
-
error: {
|
|
872
|
-
type: [String, Boolean],
|
|
873
|
-
default: undefined
|
|
874
|
-
},
|
|
875
|
-
required: {
|
|
876
|
-
type: Boolean,
|
|
877
|
-
default: false
|
|
878
|
-
},
|
|
879
|
-
readonly: {
|
|
880
|
-
type: Boolean,
|
|
881
|
-
default: false
|
|
882
|
-
},
|
|
883
|
-
disabled: {
|
|
884
|
-
type: Boolean,
|
|
885
|
-
default: false
|
|
886
|
-
},
|
|
887
|
-
disableDefaultStyles: {
|
|
888
|
-
type: Boolean,
|
|
889
|
-
default: false
|
|
890
|
-
}
|
|
891
|
-
},
|
|
892
|
-
emits: ['update:modelValue', 'keydown', 'keyup', 'focus', 'blur'],
|
|
893
|
-
expose: ['root', 'focus', 'blur'],
|
|
894
|
-
setup(props, context) {
|
|
895
|
-
// Refs
|
|
896
|
-
const root = ref();
|
|
897
|
-
const dateControl = ref();
|
|
898
|
-
const timeControl = ref();
|
|
899
|
-
const datePopover = ref();
|
|
900
|
-
const timePopover = ref();
|
|
901
|
-
const datePopoverState = computed(() => {
|
|
902
|
-
var _a;
|
|
903
|
-
return (_a = datePopover.value) === null || _a === void 0 ? void 0 : _a.state;
|
|
904
|
-
});
|
|
905
|
-
const timePopoverState = computed(() => {
|
|
906
|
-
var _a;
|
|
907
|
-
return (_a = timePopover.value) === null || _a === void 0 ? void 0 : _a.state;
|
|
908
|
-
});
|
|
909
|
-
// Styles
|
|
910
|
-
const rootStyles = computed(() => ['or-date-time-picker', ...DateTimePicker]);
|
|
911
|
-
const controlStyles = computed(() => [...DateTimePickerControl]);
|
|
912
|
-
// State
|
|
913
|
-
const controlAttributes = reactive({
|
|
914
|
-
id: useIdAttribute(),
|
|
915
|
-
...useControlAttributes(),
|
|
916
|
-
...useValidationAttributes()
|
|
917
|
-
});
|
|
918
|
-
const proxyModelValue = computed({
|
|
919
|
-
get: () => props.modelValue,
|
|
920
|
-
set: value => {
|
|
921
|
-
context.emit('update:modelValue', value);
|
|
922
|
-
}
|
|
923
|
-
});
|
|
924
|
-
const draftModelValue = ref();
|
|
925
|
-
watch(proxyModelValue, value => {
|
|
926
|
-
draftModelValue.value = value;
|
|
927
|
-
}, {
|
|
928
|
-
immediate: true
|
|
929
|
-
});
|
|
930
|
-
// Methods
|
|
931
|
-
function toggleDatePopover() {
|
|
932
|
-
if (!props.readonly && !props.disabled) {
|
|
933
|
-
const popoverInstance = datePopover.value;
|
|
934
|
-
if (popoverInstance) {
|
|
935
|
-
if (datePopoverState.value === 'open') {
|
|
936
|
-
popoverInstance.close();
|
|
937
|
-
} else {
|
|
938
|
-
popoverInstance.open();
|
|
939
|
-
}
|
|
940
|
-
}
|
|
941
|
-
}
|
|
942
|
-
}
|
|
943
|
-
function toggleTimePopover() {
|
|
944
|
-
if (!props.readonly && !props.disabled) {
|
|
945
|
-
const popoverInstance = timePopover.value;
|
|
946
|
-
if (popoverInstance) {
|
|
947
|
-
if (timePopoverState.value === 'open') {
|
|
948
|
-
popoverInstance.close();
|
|
949
|
-
} else {
|
|
950
|
-
popoverInstance.open();
|
|
951
|
-
}
|
|
952
|
-
}
|
|
953
|
-
}
|
|
954
|
-
}
|
|
955
|
-
function closeDatePopover() {
|
|
956
|
-
const popoverInstance = datePopover.value;
|
|
957
|
-
if (popoverInstance) {
|
|
958
|
-
popoverInstance.close();
|
|
959
|
-
}
|
|
960
|
-
}
|
|
961
|
-
function closeTimePopover() {
|
|
962
|
-
const popoverInstance = timePopover.value;
|
|
963
|
-
if (popoverInstance) {
|
|
964
|
-
popoverInstance.close();
|
|
965
|
-
}
|
|
966
|
-
}
|
|
967
|
-
function formatDate(value) {
|
|
968
|
-
var _a;
|
|
969
|
-
return (_a = value === null || value === void 0 ? void 0 : value.toLocaleString('default', {
|
|
970
|
-
dateStyle: 'short',
|
|
971
|
-
timeZone: 'UTC'
|
|
972
|
-
})) !== null && _a !== void 0 ? _a : '--';
|
|
973
|
-
}
|
|
974
|
-
function formatTime(value) {
|
|
975
|
-
var _a;
|
|
976
|
-
return (_a = value === null || value === void 0 ? void 0 : value.toLocaleString('default', {
|
|
977
|
-
timeStyle: 'short',
|
|
978
|
-
timeZone: 'UTC'
|
|
979
|
-
})) !== null && _a !== void 0 ? _a : '--';
|
|
980
|
-
}
|
|
981
|
-
function formatDateAlt(value) {
|
|
982
|
-
var _a;
|
|
983
|
-
return (_a = value === null || value === void 0 ? void 0 : value.toLocaleString('default', {
|
|
984
|
-
dateStyle: 'medium',
|
|
985
|
-
timeZone: 'UTC'
|
|
986
|
-
})) !== null && _a !== void 0 ? _a : '--';
|
|
987
|
-
}
|
|
988
|
-
function formatTimeAlt(value) {
|
|
989
|
-
var _a;
|
|
990
|
-
return (_a = value === null || value === void 0 ? void 0 : value.toLocaleString('default', {
|
|
991
|
-
timeStyle: 'short',
|
|
992
|
-
timeZone: 'UTC'
|
|
993
|
-
})) !== null && _a !== void 0 ? _a : '--';
|
|
994
|
-
}
|
|
995
|
-
return {
|
|
996
|
-
root,
|
|
997
|
-
dateControl,
|
|
998
|
-
timeControl,
|
|
999
|
-
datePopover,
|
|
1000
|
-
timePopover,
|
|
1001
|
-
datePopoverState,
|
|
1002
|
-
timePopoverState,
|
|
1003
|
-
rootStyles,
|
|
1004
|
-
controlStyles,
|
|
1005
|
-
controlAttributes,
|
|
1006
|
-
proxyModelValue,
|
|
1007
|
-
draftModelValue,
|
|
1008
|
-
toggleDatePopover,
|
|
1009
|
-
toggleTimePopover,
|
|
1010
|
-
closeDatePopover,
|
|
1011
|
-
closeTimePopover,
|
|
1012
|
-
formatDate,
|
|
1013
|
-
formatTime,
|
|
1014
|
-
formatDateAlt,
|
|
1015
|
-
formatTimeAlt
|
|
1016
|
-
};
|
|
1017
|
-
}
|
|
1018
|
-
});
|
|
1019
|
-
|
|
1020
|
-
var css_248z = "input[data-v-4d939067]{min-width:0;background:0 0;outline:0}";
|
|
1021
|
-
styleInject(css_248z);
|
|
1022
|
-
|
|
1023
|
-
/* script */
|
|
1024
|
-
const __vue_script__ = script;
|
|
1025
|
-
/* template */
|
|
1026
|
-
var __vue_render__ = function () {
|
|
1027
|
-
var _vm = this;
|
|
1028
|
-
var _h = _vm.$createElement;
|
|
1029
|
-
var _c = _vm._self._c || _h;
|
|
1030
|
-
return _c('div', {
|
|
1031
|
-
ref: "root",
|
|
1032
|
-
class: _vm.rootStyles
|
|
1033
|
-
}, [_vm.label ? [_c('OrLabel', {
|
|
1034
|
-
attrs: {
|
|
1035
|
-
"control-id": _vm.controlAttributes.id,
|
|
1036
|
-
"variant": 'input',
|
|
1037
|
-
"required": _vm.required,
|
|
1038
|
-
"disabled": _vm.disabled
|
|
1039
|
-
},
|
|
1040
|
-
scopedSlots: _vm._u([{
|
|
1041
|
-
key: "addon",
|
|
1042
|
-
fn: function () {
|
|
1043
|
-
return [_vm._t("addon")];
|
|
1044
|
-
},
|
|
1045
|
-
proxy: true
|
|
1046
|
-
}], null, true)
|
|
1047
|
-
}, [_vm._v("\n " + _vm._s(_vm.label) + "\n\n ")])] : _vm._e(), _vm._v(" "), _c('OrInputBox', {
|
|
1048
|
-
directives: [{
|
|
1049
|
-
name: "dropdown-open",
|
|
1050
|
-
rawName: "v-dropdown-open",
|
|
1051
|
-
value: _vm.toggleDatePopover,
|
|
1052
|
-
expression: "toggleDatePopover"
|
|
1053
|
-
}, {
|
|
1054
|
-
name: "dropdown-close",
|
|
1055
|
-
rawName: "v-dropdown-close",
|
|
1056
|
-
value: _vm.closeDatePopover,
|
|
1057
|
-
expression: "closeDatePopover"
|
|
1058
|
-
}],
|
|
1059
|
-
attrs: {
|
|
1060
|
-
"variant": _vm.disableDefaultStyles ? 'unstyled' : 'styled',
|
|
1061
|
-
"size": _vm.size,
|
|
1062
|
-
"invalid": !!_vm.error,
|
|
1063
|
-
"readonly": _vm.readonly,
|
|
1064
|
-
"disabled": _vm.disabled
|
|
1065
|
-
}
|
|
1066
|
-
}, [_c('div', _vm._b({
|
|
1067
|
-
directives: [{
|
|
1068
|
-
name: "dropdown-open",
|
|
1069
|
-
rawName: "v-dropdown-open",
|
|
1070
|
-
value: _vm.toggleDatePopover,
|
|
1071
|
-
expression: "toggleDatePopover"
|
|
1072
|
-
}, {
|
|
1073
|
-
name: "dropdown-close",
|
|
1074
|
-
rawName: "v-dropdown-close",
|
|
1075
|
-
value: _vm.closeDatePopover,
|
|
1076
|
-
expression: "closeDatePopover"
|
|
1077
|
-
}],
|
|
1078
|
-
ref: "dateControl",
|
|
1079
|
-
class: _vm.controlStyles,
|
|
1080
|
-
attrs: {
|
|
1081
|
-
"contenteditable": true,
|
|
1082
|
-
"required": _vm.required,
|
|
1083
|
-
"readonly": _vm.readonly,
|
|
1084
|
-
"disabled": _vm.disabled
|
|
1085
|
-
}
|
|
1086
|
-
}, 'div', _vm.controlAttributes, false), [_vm._v("\n " + _vm._s(_vm.formatDate(_vm.proxyModelValue)) + "\n ")]), _vm._v(" "), _c('div', _vm._b({
|
|
1087
|
-
directives: [{
|
|
1088
|
-
name: "dropdown-open",
|
|
1089
|
-
rawName: "v-dropdown-open",
|
|
1090
|
-
value: _vm.toggleTimePopover,
|
|
1091
|
-
expression: "toggleTimePopover"
|
|
1092
|
-
}, {
|
|
1093
|
-
name: "dropdown-close",
|
|
1094
|
-
rawName: "v-dropdown-close",
|
|
1095
|
-
value: _vm.closeTimePopover,
|
|
1096
|
-
expression: "closeTimePopover"
|
|
1097
|
-
}],
|
|
1098
|
-
ref: "timeControl",
|
|
1099
|
-
class: _vm.controlStyles,
|
|
1100
|
-
attrs: {
|
|
1101
|
-
"contenteditable": true,
|
|
1102
|
-
"required": _vm.required,
|
|
1103
|
-
"readonly": _vm.readonly,
|
|
1104
|
-
"disabled": _vm.disabled
|
|
1105
|
-
}
|
|
1106
|
-
}, 'div', _vm.controlAttributes, false), [_vm._v("\n " + _vm._s(_vm.formatTime(_vm.proxyModelValue)) + "\n ")]), _vm._v(" "), _c('OrPopover', {
|
|
1107
|
-
ref: "datePopover",
|
|
1108
|
-
attrs: {
|
|
1109
|
-
"variant": 'auto',
|
|
1110
|
-
"trigger": _vm.dateControl,
|
|
1111
|
-
"placement": 'bottom'
|
|
1112
|
-
}
|
|
1113
|
-
}, [_c('OrDateTimePickerPopoverHeader', [_c('OrDateTimePickerMobileControl', {
|
|
1114
|
-
attrs: {
|
|
1115
|
-
"label": "Date"
|
|
1116
|
-
}
|
|
1117
|
-
}, [_vm._v("\n " + _vm._s(_vm.formatDateAlt(_vm.draftModelValue)) + "\n ")]), _vm._v(" "), _c('OrDateTimePickerMobileControl', {
|
|
1118
|
-
attrs: {
|
|
1119
|
-
"label": "Time"
|
|
1120
|
-
}
|
|
1121
|
-
}, [_vm._v("\n " + _vm._s(_vm.formatTimeAlt(_vm.draftModelValue)) + "\n ")])], 1), _vm._v(" "), _c('OrDateTimePickerMonthSelect', {
|
|
1122
|
-
attrs: {
|
|
1123
|
-
"filter": _vm.filter
|
|
1124
|
-
},
|
|
1125
|
-
model: {
|
|
1126
|
-
value: _vm.draftModelValue,
|
|
1127
|
-
callback: function ($$v) {
|
|
1128
|
-
_vm.draftModelValue = $$v;
|
|
1129
|
-
},
|
|
1130
|
-
expression: "draftModelValue"
|
|
1131
|
-
}
|
|
1132
|
-
}), _vm._v(" "), _c('OrDateTimePickerDaySelect', {
|
|
1133
|
-
attrs: {
|
|
1134
|
-
"filter": _vm.filter
|
|
1135
|
-
},
|
|
1136
|
-
model: {
|
|
1137
|
-
value: _vm.draftModelValue,
|
|
1138
|
-
callback: function ($$v) {
|
|
1139
|
-
_vm.draftModelValue = $$v;
|
|
1140
|
-
},
|
|
1141
|
-
expression: "draftModelValue"
|
|
1142
|
-
}
|
|
1143
|
-
}), _vm._v(" "), _c('OrDateTimePickerPopoverFooter', {
|
|
1144
|
-
on: {
|
|
1145
|
-
"resolve": function ($event) {
|
|
1146
|
-
_vm.proxyModelValue = _vm.draftModelValue;
|
|
1147
|
-
_vm.datePopover.close();
|
|
1148
|
-
},
|
|
1149
|
-
"reject": function ($event) {
|
|
1150
|
-
_vm.draftModelValue = _vm.proxyModelValue;
|
|
1151
|
-
_vm.datePopover.close();
|
|
1152
|
-
}
|
|
1153
|
-
}
|
|
1154
|
-
})], 1), _vm._v(" "), _c('OrPopover', {
|
|
1155
|
-
ref: "timePopover",
|
|
1156
|
-
attrs: {
|
|
1157
|
-
"variant": 'auto',
|
|
1158
|
-
"trigger": _vm.timeControl,
|
|
1159
|
-
"placement": 'bottom'
|
|
1160
|
-
}
|
|
1161
|
-
}, [_c('OrDateTimePickerPopoverHeader', [_c('OrDateTimePickerMobileControl', {
|
|
1162
|
-
attrs: {
|
|
1163
|
-
"label": "Date"
|
|
1164
|
-
}
|
|
1165
|
-
}, [_vm._v("\n " + _vm._s(_vm.formatDateAlt(_vm.draftModelValue)) + "\n ")]), _vm._v(" "), _c('OrDateTimePickerMobileControl', {
|
|
1166
|
-
attrs: {
|
|
1167
|
-
"label": "Time"
|
|
1168
|
-
}
|
|
1169
|
-
}, [_vm._v("\n " + _vm._s(_vm.formatTimeAlt(_vm.draftModelValue)) + "\n ")])], 1), _vm._v(" "), _c('OrDateTimePickerTimeSelect', {
|
|
1170
|
-
attrs: {
|
|
1171
|
-
"filter": _vm.filter
|
|
1172
|
-
},
|
|
1173
|
-
model: {
|
|
1174
|
-
value: _vm.draftModelValue,
|
|
1175
|
-
callback: function ($$v) {
|
|
1176
|
-
_vm.draftModelValue = $$v;
|
|
1177
|
-
},
|
|
1178
|
-
expression: "draftModelValue"
|
|
1179
|
-
}
|
|
1180
|
-
}), _vm._v(" "), _c('OrDateTimePickerPopoverFooter', {
|
|
1181
|
-
on: {
|
|
1182
|
-
"resolve": function ($event) {
|
|
1183
|
-
_vm.proxyModelValue = _vm.draftModelValue;
|
|
1184
|
-
_vm.timePopover.close();
|
|
1185
|
-
},
|
|
1186
|
-
"reject": function ($event) {
|
|
1187
|
-
_vm.draftModelValue = _vm.proxyModelValue;
|
|
1188
|
-
_vm.timePopover.close();
|
|
1189
|
-
}
|
|
1190
|
-
}
|
|
1191
|
-
})], 1), _vm._v(" "), _c('div', {
|
|
1192
|
-
class: ['grow']
|
|
1193
|
-
}), _vm._v(" "), _c('div', {
|
|
1194
|
-
class: ['layout-inline-row']
|
|
1195
|
-
}, [_vm.modelValue ? [_c('OrIconButton', {
|
|
1196
|
-
attrs: {
|
|
1197
|
-
"icon": 'close',
|
|
1198
|
-
"color": 'inherit',
|
|
1199
|
-
"disabled": _vm.readonly || _vm.disabled
|
|
1200
|
-
},
|
|
1201
|
-
on: {
|
|
1202
|
-
"click": function ($event) {
|
|
1203
|
-
$event.stopPropagation();
|
|
1204
|
-
return _vm.$emit('update:modelValue', undefined);
|
|
1205
|
-
}
|
|
1206
|
-
}
|
|
1207
|
-
})] : _vm._e()], 2)], 1), _vm._v(" "), !_vm.error ? [_vm.hint ? [_c('OrHint', {
|
|
1208
|
-
attrs: {
|
|
1209
|
-
"disabled": _vm.disabled
|
|
1210
|
-
}
|
|
1211
|
-
}, [_vm._v("\n " + _vm._s(_vm.hint) + "\n ")])] : _vm._e()] : _vm._e(), _vm._v(" "), typeof _vm.error === 'string' ? [_c('OrError', {
|
|
1212
|
-
attrs: {
|
|
1213
|
-
"disabled": _vm.disabled
|
|
1214
|
-
}
|
|
1215
|
-
}, [_vm._v("\n " + _vm._s(_vm.error) + "\n ")])] : _vm._e()], 2);
|
|
1216
|
-
};
|
|
1217
|
-
var __vue_staticRenderFns__ = [];
|
|
1218
|
-
|
|
1219
|
-
/* style */
|
|
1220
|
-
const __vue_inject_styles__ = undefined;
|
|
1221
|
-
/* scoped */
|
|
1222
|
-
const __vue_scope_id__ = "data-v-4d939067";
|
|
1223
|
-
/* module identifier */
|
|
1224
|
-
const __vue_module_identifier__ = undefined;
|
|
1225
|
-
/* functional template */
|
|
1226
|
-
const __vue_is_functional_template__ = false;
|
|
1227
|
-
/* style inject */
|
|
1228
|
-
|
|
1229
|
-
/* style inject SSR */
|
|
1230
|
-
|
|
1231
|
-
/* style inject shadow dom */
|
|
1232
|
-
|
|
1233
|
-
const __vue_component__ = /*#__PURE__*/normalizeComponent({
|
|
1234
|
-
render: __vue_render__,
|
|
1235
|
-
staticRenderFns: __vue_staticRenderFns__
|
|
1236
|
-
}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
|
|
1237
|
-
|
|
1238
|
-
export { __vue_component__ as _ };
|