@onereach/ui-components 7.0.2-beta.3545.0 → 7.0.2-beta.3549.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/{OrDateTimePickerTimeSelect-3e985657.js → OrDateTimePickerTimeSelect-15d98f89.js} +9 -5
- package/dist/bundled/v2/components/OrDatePickerV3/OrDatePicker.js +3 -3
- package/dist/bundled/v2/components/OrDateRangePickerV3/OrDateRangePicker.js +9 -36
- package/dist/bundled/v2/components/OrDateRangePickerV3/OrDateRangePicker.vue.d.ts +0 -7
- package/dist/bundled/v2/components/OrDateTimePickerV3/OrDateTimePicker.js +4 -4
- package/dist/bundled/v2/components/OrDateTimePickerV3/index.js +1 -1
- package/dist/bundled/v2/components/OrTimePickerV3/OrTimePicker.js +4 -4
- package/dist/bundled/v2/components/OrTimeRangePickerV3/OrTimeRangePicker.js +14 -33
- package/dist/bundled/v2/components/OrTimeRangePickerV3/OrTimeRangePicker.vue.d.ts +2 -7
- package/dist/bundled/v2/components/index.js +1 -1
- package/dist/bundled/v2/index.js +1 -1
- package/dist/bundled/v3/{OrDatePicker.vue_vue_type_script_lang-601e5de8.js → OrDatePicker.vue_vue_type_script_lang-20db0276.js} +3 -3
- package/dist/bundled/v3/{OrDateRangePicker.vue_vue_type_script_lang-9c29e365.js → OrDateRangePicker.vue_vue_type_script_lang-1b6bf5eb.js} +9 -26
- package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-14f108e3.js → OrDateTimePicker.vue_vue_type_script_lang-aaf59961.js} +5 -5
- package/dist/bundled/v3/{OrDateTimePickerTimeSelect-b76a45eb.js → OrDateTimePickerTimeSelect-74090bf1.js} +1 -1
- package/dist/bundled/v3/{OrDateTimePickerTimeSelect.vue_vue_type_script_lang-7fc4faea.js → OrDateTimePickerTimeSelect.vue_vue_type_script_lang-02b2edc3.js} +9 -5
- package/dist/bundled/v3/{OrTimePicker.vue_vue_type_script_lang-8469cb93.js → OrTimePicker.vue_vue_type_script_lang-5e4c1f4c.js} +5 -5
- package/dist/bundled/v3/{OrTimeRangePicker.vue_vue_type_script_lang-6db1142d.js → OrTimeRangePicker.vue_vue_type_script_lang-c7b95591.js} +12 -27
- package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.js +2 -2
- package/dist/bundled/v3/components/OrDatePickerV3/index.js +1 -1
- package/dist/bundled/v3/components/OrDateRangePickerV3/OrDateRangePicker.js +8 -14
- package/dist/bundled/v3/components/OrDateRangePickerV3/OrDateRangePicker.vue.d.ts +0 -4
- package/dist/bundled/v3/components/OrDateRangePickerV3/index.js +1 -1
- package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.js +2 -2
- package/dist/bundled/v3/components/OrDateTimePickerV3/index.js +2 -2
- package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.js +2 -2
- package/dist/bundled/v3/components/OrTimePickerV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTimeRangePickerV3/OrTimeRangePicker.js +6 -10
- package/dist/bundled/v3/components/OrTimeRangePickerV3/OrTimeRangePicker.vue.d.ts +187 -4
- package/dist/bundled/v3/components/OrTimeRangePickerV3/index.js +1 -1
- package/dist/bundled/v3/components/index.js +6 -6
- package/dist/bundled/v3/index.js +6 -6
- package/dist/esm/v2/{OrDateFormat-74939837.js → OrDateFormat-ac1f8dc3.js} +2 -2
- package/dist/esm/v2/{OrDatePicker-45ec0d4f.js → OrDatePicker-59a8f58c.js} +5 -5
- package/dist/esm/v2/{OrDateRangePicker-adf6650b.js → OrDateRangePicker-9108aee2.js} +11 -38
- package/dist/esm/v2/{OrDateTimeFormat-adde8ec2.js → OrDateTimeFormat-885a7346.js} +2 -2
- package/dist/esm/v2/{OrDateTimePicker-9708a840.js → OrDateTimePicker-cf54de16.js} +1 -1
- package/dist/esm/v2/{OrDateTimePicker.vue_rollup-plugin-vue_script-0658f779.js → OrDateTimePicker.vue_rollup-plugin-vue_script-e665138c.js} +4 -4
- package/dist/esm/v2/{OrDateTimePickerTimeSelect-ab870b6a.js → OrDateTimePickerTimeSelect-36902656.js} +9 -5
- package/dist/esm/v2/{OrTimeFormat-73a2e956.js → OrTimeFormat-9e1d6313.js} +2 -2
- package/dist/esm/v2/{OrTimePicker-4462cd1f.js → OrTimePicker-d188956c.js} +5 -5
- package/dist/esm/v2/{OrTimeRangePicker-77607776.js → OrTimeRangePicker-b12fadc1.js} +15 -34
- package/dist/esm/v2/components/index.js +10 -10
- package/dist/esm/v2/components/or-date-format-v3/index.js +3 -3
- package/dist/esm/v2/components/or-date-picker-v3/index.js +3 -3
- package/dist/esm/v2/components/or-date-range-picker-v3/OrDateRangePicker.vue.d.ts +0 -7
- package/dist/esm/v2/components/or-date-range-picker-v3/index.js +3 -3
- package/dist/esm/v2/components/or-date-time-format-v3/index.js +3 -3
- package/dist/esm/v2/components/or-date-time-picker-v3/index.js +3 -3
- package/dist/esm/v2/components/or-date-time-picker-v3/partials/index.js +1 -1
- package/dist/esm/v2/components/or-time-format-v3/index.js +3 -3
- package/dist/esm/v2/components/or-time-picker-v3/index.js +3 -3
- package/dist/esm/v2/components/or-time-range-picker-v3/OrTimeRangePicker.vue.d.ts +2 -7
- package/dist/esm/v2/components/or-time-range-picker-v3/index.js +3 -3
- package/dist/esm/v2/index.js +10 -10
- package/dist/esm/v3/{OrDateFormat-38e74ea4.js → OrDateFormat-887b4b9d.js} +2 -2
- package/dist/esm/v3/{OrDatePicker-b5c8c947.js → OrDatePicker-d1eccf52.js} +5 -5
- package/dist/esm/v3/{OrDateRangePicker-afa19ccd.js → OrDateRangePicker-1a5011b3.js} +17 -40
- package/dist/esm/v3/{OrDateTimeFormat-1d36bcb1.js → OrDateTimeFormat-55b31a45.js} +2 -2
- package/dist/esm/v3/{OrDateTimePicker-d29875b4.js → OrDateTimePicker-46bcebab.js} +4 -4
- package/dist/esm/v3/{OrDateTimePickerTimeSelect-7d18eee6.js → OrDateTimePickerTimeSelect-d9330bf4.js} +9 -5
- package/dist/esm/v3/{OrTimeFormat-cf35388e.js → OrTimeFormat-db9bab3f.js} +2 -2
- package/dist/esm/v3/{OrTimePicker-2e321cf1.js → OrTimePicker-e7daa0fb.js} +5 -5
- package/dist/esm/v3/{OrTimeRangePicker-463c2d37.js → OrTimeRangePicker-8ebe2a0b.js} +17 -36
- package/dist/esm/v3/components/index.js +9 -9
- package/dist/esm/v3/components/or-date-format-v3/index.js +3 -3
- package/dist/esm/v3/components/or-date-picker-v3/index.js +3 -3
- package/dist/esm/v3/components/or-date-range-picker-v3/OrDateRangePicker.vue.d.ts +0 -4
- package/dist/esm/v3/components/or-date-range-picker-v3/index.js +3 -3
- package/dist/esm/v3/components/or-date-time-format-v3/index.js +3 -3
- package/dist/esm/v3/components/or-date-time-picker-v3/index.js +2 -2
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/index.js +1 -1
- package/dist/esm/v3/components/or-time-format-v3/index.js +3 -3
- package/dist/esm/v3/components/or-time-picker-v3/index.js +3 -3
- package/dist/esm/v3/components/or-time-range-picker-v3/OrTimeRangePicker.vue.d.ts +187 -4
- package/dist/esm/v3/components/or-time-range-picker-v3/index.js +3 -3
- package/dist/esm/v3/index.js +9 -9
- package/package.json +2 -2
- package/src/components/or-date-picker-v3/OrDatePicker.vue +4 -2
- package/src/components/or-date-range-picker-v3/OrDateRangePicker.vue +11 -41
- package/src/components/or-date-time-picker-v3/OrDateTimePicker.vue +4 -2
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue +19 -19
- package/src/components/or-time-picker-v3/OrTimePicker.vue +4 -2
- package/src/components/or-time-range-picker-v3/OrTimeRangePicker.vue +10 -35
|
@@ -5,8 +5,8 @@ import './dom-aecadd9a.js';
|
|
|
5
5
|
import { u as useProxyModelValue } from './useProxyModelValue-940010d2.js';
|
|
6
6
|
import { u as useResponsive } from './useResponsive-5c8291da.js';
|
|
7
7
|
import '@onereach/styles/tailwind.config.json';
|
|
8
|
-
import './OrDateTimePicker.vue_rollup-plugin-vue_script-
|
|
9
|
-
import { _ as __vue_component__$1, a as __vue_component__$2, b as __vue_component__$3, c as __vue_component__$4, d as __vue_component__$5, e as __vue_component__$6 } from './OrDateTimePickerTimeSelect-
|
|
8
|
+
import './OrDateTimePicker.vue_rollup-plugin-vue_script-e665138c.js';
|
|
9
|
+
import { _ as __vue_component__$1, a as __vue_component__$2, b as __vue_component__$3, c as __vue_component__$4, d as __vue_component__$5, e as __vue_component__$6 } from './OrDateTimePickerTimeSelect-36902656.js';
|
|
10
10
|
import './getTimePlaceholder-8f786f44.js';
|
|
11
11
|
import { g as getCurrentDate } from './getCurrentDate-046a888d.js';
|
|
12
12
|
import { g as getNextMonthDate } from './getNextMonthDate-00c47169.js';
|
|
@@ -123,6 +123,11 @@ var script = defineComponent({
|
|
|
123
123
|
watch(proxyModelValue, value => {
|
|
124
124
|
draftModelValue.value = value !== null && value !== void 0 ? value : [undefined, undefined];
|
|
125
125
|
});
|
|
126
|
+
watch(draftModelValue, value => {
|
|
127
|
+
if (value[0] && value[1]) {
|
|
128
|
+
draftModelValue.value = Number(value[0]) > Number(value[1]) ? [value[1], value[0]] : value;
|
|
129
|
+
}
|
|
130
|
+
});
|
|
126
131
|
const draftModelValueFrom = computed({
|
|
127
132
|
get: () => draftModelValue.value[0],
|
|
128
133
|
set: value => {
|
|
@@ -148,37 +153,18 @@ var script = defineComponent({
|
|
|
148
153
|
}
|
|
149
154
|
});
|
|
150
155
|
const selectedControl = ref('from');
|
|
151
|
-
const filterFrom = value => {
|
|
152
|
-
if (draftModelValueTo.value) {
|
|
153
|
-
return Number(value) <= Number(draftModelValueTo.value);
|
|
154
|
-
}
|
|
155
|
-
return true;
|
|
156
|
-
};
|
|
157
|
-
const filterTo = value => {
|
|
158
|
-
if (draftModelValueFrom.value) {
|
|
159
|
-
return Number(value) >= Number(draftModelValueFrom.value);
|
|
160
|
-
}
|
|
161
|
-
return true;
|
|
162
|
-
};
|
|
163
|
-
const genericFilter = value => {
|
|
164
|
-
return selectedControl.value === 'from' ? filterFrom(value) : filterTo(value);
|
|
165
|
-
};
|
|
166
156
|
const isInvalidDraftModelValue = computed(() => {
|
|
167
|
-
if (draftModelValueFrom.value) {
|
|
168
|
-
return
|
|
169
|
-
}
|
|
170
|
-
if (draftModelValueTo.value) {
|
|
171
|
-
return !filterTo(draftModelValueTo.value);
|
|
157
|
+
if (draftModelValueFrom.value && draftModelValueTo.value) {
|
|
158
|
+
return false;
|
|
172
159
|
}
|
|
173
|
-
return
|
|
160
|
+
return true;
|
|
174
161
|
});
|
|
175
162
|
// Methods
|
|
176
163
|
function switchSelectedControl() {
|
|
177
164
|
selectedControl.value = selectedControl.value === 'from' ? 'to' : 'from';
|
|
178
165
|
}
|
|
179
166
|
function apply() {
|
|
180
|
-
|
|
181
|
-
proxyModelValue.value = [(_a = draftModelValue.value[0]) !== null && _a !== void 0 ? _a : initialValueFrom.value, (_b = draftModelValue.value[1]) !== null && _b !== void 0 ? _b : initialValueTo.value];
|
|
167
|
+
proxyModelValue.value = draftModelValue.value;
|
|
182
168
|
}
|
|
183
169
|
function reset() {
|
|
184
170
|
var _a;
|
|
@@ -227,9 +213,6 @@ var script = defineComponent({
|
|
|
227
213
|
draftModelValueTo,
|
|
228
214
|
genericDraftModelValue,
|
|
229
215
|
selectedControl,
|
|
230
|
-
filterFrom,
|
|
231
|
-
filterTo,
|
|
232
|
-
genericFilter,
|
|
233
216
|
isInvalidDraftModelValue,
|
|
234
217
|
switchSelectedControl,
|
|
235
218
|
apply,
|
|
@@ -406,10 +389,6 @@ var __vue_render__ = function () {
|
|
|
406
389
|
}, [_vm.isDesktop || _vm.isMobile && _vm.selectedControl === 'from' ? [_c('div', {
|
|
407
390
|
class: ['layout-column', 'grow']
|
|
408
391
|
}, [_c('OrDateTimePickerMonthSelect', {
|
|
409
|
-
attrs: {
|
|
410
|
-
"year-filter": _vm.filterFrom,
|
|
411
|
-
"month-filter": _vm.filterFrom
|
|
412
|
-
},
|
|
413
392
|
model: {
|
|
414
393
|
value: _vm.initialValueFrom,
|
|
415
394
|
callback: function ($$v) {
|
|
@@ -420,7 +399,6 @@ var __vue_render__ = function () {
|
|
|
420
399
|
}), _vm._v(" "), _c('OrDateTimePickerDateSelect', {
|
|
421
400
|
attrs: {
|
|
422
401
|
"initial-value": _vm.initialValueFrom,
|
|
423
|
-
"date-filter": _vm.genericFilter,
|
|
424
402
|
"range-start": _vm.draftModelValueFrom || _vm.initialValueFrom,
|
|
425
403
|
"range-end": _vm.draftModelValueTo || _vm.initialValueTo
|
|
426
404
|
},
|
|
@@ -439,10 +417,6 @@ var __vue_render__ = function () {
|
|
|
439
417
|
})], 1)] : _vm._e(), _vm._v(" "), _vm.isDesktop || _vm.isMobile && _vm.selectedControl === 'to' ? [_c('div', {
|
|
440
418
|
class: ['layout-column', 'grow']
|
|
441
419
|
}, [_c('OrDateTimePickerMonthSelect', {
|
|
442
|
-
attrs: {
|
|
443
|
-
"year-filter": _vm.filterTo,
|
|
444
|
-
"month-filter": _vm.filterTo
|
|
445
|
-
},
|
|
446
420
|
model: {
|
|
447
421
|
value: _vm.initialValueTo,
|
|
448
422
|
callback: function ($$v) {
|
|
@@ -453,7 +427,6 @@ var __vue_render__ = function () {
|
|
|
453
427
|
}), _vm._v(" "), _c('OrDateTimePickerDateSelect', {
|
|
454
428
|
attrs: {
|
|
455
429
|
"initial-value": _vm.initialValueTo,
|
|
456
|
-
"date-filter": _vm.genericFilter,
|
|
457
430
|
"range-start": _vm.draftModelValueFrom || _vm.initialValueFrom,
|
|
458
431
|
"range-end": _vm.draftModelValueTo || _vm.initialValueTo
|
|
459
432
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, computed } from 'vue-demi';
|
|
2
|
-
import './OrDateTimePicker.vue_rollup-plugin-vue_script-
|
|
3
|
-
import './OrDateTimePickerTimeSelect-
|
|
2
|
+
import './OrDateTimePicker.vue_rollup-plugin-vue_script-e665138c.js';
|
|
3
|
+
import './OrDateTimePickerTimeSelect-36902656.js';
|
|
4
4
|
import { D as DateTimePickerTimeFormat, f as formatDate, a as formatTime } from './getTimePlaceholder-8f786f44.js';
|
|
5
5
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
6
6
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as script } from './OrDateTimePicker.vue_rollup-plugin-vue_script-
|
|
1
|
+
import { s as script } from './OrDateTimePicker.vue_rollup-plugin-vue_script-e665138c.js';
|
|
2
2
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
3
3
|
|
|
4
4
|
/* script */
|
|
@@ -13,7 +13,7 @@ import { _ as __vue_component__$c } from './OrInputBox-2ba5d5de.js';
|
|
|
13
13
|
import { I as InputBoxSize } from './OrInputBox.vue_rollup-plugin-vue_script-bebba826.js';
|
|
14
14
|
import { _ as __vue_component__$d } from './OrLabel-b465bc0b.js';
|
|
15
15
|
import { _ as __vue_component__$e } from './OrPopover-2ced765c.js';
|
|
16
|
-
import { _ as __vue_component__, a as __vue_component__$1, b as __vue_component__$2, c as __vue_component__$3, d as __vue_component__$4, e as __vue_component__$5, f as __vue_component__$6, g as __vue_component__$7 } from './OrDateTimePickerTimeSelect-
|
|
16
|
+
import { _ as __vue_component__, a as __vue_component__$1, b as __vue_component__$2, c as __vue_component__$3, d as __vue_component__$4, e as __vue_component__$5, f as __vue_component__$6, g as __vue_component__$7 } from './OrDateTimePickerTimeSelect-36902656.js';
|
|
17
17
|
import { D as DateTimePickerTimeFormat } from './getTimePlaceholder-8f786f44.js';
|
|
18
18
|
import { g as getCurrentDate } from './getCurrentDate-046a888d.js';
|
|
19
19
|
|
|
@@ -167,13 +167,13 @@ var script = defineComponent({
|
|
|
167
167
|
if (props.minutesFilter && !props.minutesFilter(draftModelValue.value)) {
|
|
168
168
|
return true;
|
|
169
169
|
}
|
|
170
|
+
return false;
|
|
170
171
|
}
|
|
171
|
-
return
|
|
172
|
+
return true;
|
|
172
173
|
});
|
|
173
174
|
// Methods
|
|
174
175
|
function apply() {
|
|
175
|
-
|
|
176
|
-
proxyModelValue.value = (_a = draftModelValue.value) !== null && _a !== void 0 ? _a : initialValue.value;
|
|
176
|
+
proxyModelValue.value = draftModelValue.value;
|
|
177
177
|
}
|
|
178
178
|
function reset() {
|
|
179
179
|
draftModelValue.value = proxyModelValue.value;
|
|
@@ -946,6 +946,7 @@ var script = defineComponent({
|
|
|
946
946
|
emits: ['update:modelValue'],
|
|
947
947
|
expose: ['root'],
|
|
948
948
|
setup(props, context) {
|
|
949
|
+
var _a;
|
|
949
950
|
// Refs
|
|
950
951
|
const root = ref();
|
|
951
952
|
// Styles
|
|
@@ -964,14 +965,15 @@ var script = defineComponent({
|
|
|
964
965
|
}
|
|
965
966
|
return props.format;
|
|
966
967
|
});
|
|
967
|
-
const hoursRange = ref(props.initialValue.getUTCHours() < 12 ? 'am' : 'pm');
|
|
968
|
+
const hoursRange = ref(((_a = proxyModelValue.value) !== null && _a !== void 0 ? _a : props.initialValue).getUTCHours() < 12 ? 'am' : 'pm');
|
|
968
969
|
watch(hoursRange, value => {
|
|
970
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
969
971
|
switch (value) {
|
|
970
972
|
case 'am':
|
|
971
|
-
proxyModelValue.value = new Date(Date.UTC(props.initialValue.getUTCFullYear(), props.initialValue.getUTCMonth(), props.initialValue.getUTCDate(), props.initialValue.getUTCHours() - 12, props.initialValue.getUTCMinutes()));
|
|
973
|
+
proxyModelValue.value = new Date(Date.UTC(((_a = proxyModelValue.value) !== null && _a !== void 0 ? _a : props.initialValue).getUTCFullYear(), ((_b = proxyModelValue.value) !== null && _b !== void 0 ? _b : props.initialValue).getUTCMonth(), ((_c = proxyModelValue.value) !== null && _c !== void 0 ? _c : props.initialValue).getUTCDate(), ((_d = proxyModelValue.value) !== null && _d !== void 0 ? _d : props.initialValue).getUTCHours() - 12, ((_e = proxyModelValue.value) !== null && _e !== void 0 ? _e : props.initialValue).getUTCMinutes()));
|
|
972
974
|
break;
|
|
973
975
|
case 'pm':
|
|
974
|
-
proxyModelValue.value = new Date(Date.UTC(props.initialValue.getUTCFullYear(), props.initialValue.getUTCMonth(), props.initialValue.getUTCDate(), props.initialValue.getUTCHours() + 12, props.initialValue.getUTCMinutes()));
|
|
976
|
+
proxyModelValue.value = new Date(Date.UTC(((_f = proxyModelValue.value) !== null && _f !== void 0 ? _f : props.initialValue).getUTCFullYear(), ((_g = proxyModelValue.value) !== null && _g !== void 0 ? _g : props.initialValue).getUTCMonth(), ((_h = proxyModelValue.value) !== null && _h !== void 0 ? _h : props.initialValue).getUTCDate(), ((_j = proxyModelValue.value) !== null && _j !== void 0 ? _j : props.initialValue).getUTCHours() + 12, ((_k = proxyModelValue.value) !== null && _k !== void 0 ? _k : props.initialValue).getUTCMinutes()));
|
|
975
977
|
break;
|
|
976
978
|
}
|
|
977
979
|
});
|
|
@@ -979,8 +981,9 @@ var script = defineComponent({
|
|
|
979
981
|
return Array.from({
|
|
980
982
|
length: 24
|
|
981
983
|
}, (_value, index) => {
|
|
984
|
+
var _a, _b, _c, _d;
|
|
982
985
|
const value = index;
|
|
983
|
-
return new Date(Date.UTC(props.initialValue.getUTCFullYear(), props.initialValue.getUTCMonth(), props.initialValue.getUTCDate(), value, props.initialValue.getUTCMinutes()));
|
|
986
|
+
return new Date(Date.UTC(((_a = proxyModelValue.value) !== null && _a !== void 0 ? _a : props.initialValue).getUTCFullYear(), ((_b = proxyModelValue.value) !== null && _b !== void 0 ? _b : props.initialValue).getUTCMonth(), ((_c = proxyModelValue.value) !== null && _c !== void 0 ? _c : props.initialValue).getUTCDate(), value, ((_d = proxyModelValue.value) !== null && _d !== void 0 ? _d : props.initialValue).getUTCMinutes()));
|
|
984
987
|
}).filter(value => {
|
|
985
988
|
if (proxyTimeFormat.value === DateTimePickerTimeFormat.H23) {
|
|
986
989
|
return true;
|
|
@@ -997,8 +1000,9 @@ var script = defineComponent({
|
|
|
997
1000
|
return Array.from({
|
|
998
1001
|
length: 60
|
|
999
1002
|
}, (_value, index) => {
|
|
1003
|
+
var _a, _b, _c, _d;
|
|
1000
1004
|
const value = index;
|
|
1001
|
-
return new Date(Date.UTC(props.initialValue.getUTCFullYear(), props.initialValue.getUTCMonth(), props.initialValue.getUTCDate(), props.initialValue.getUTCHours(), value));
|
|
1005
|
+
return new Date(Date.UTC(((_a = proxyModelValue.value) !== null && _a !== void 0 ? _a : props.initialValue).getUTCFullYear(), ((_b = proxyModelValue.value) !== null && _b !== void 0 ? _b : props.initialValue).getUTCMonth(), ((_c = proxyModelValue.value) !== null && _c !== void 0 ? _c : props.initialValue).getUTCDate(), ((_d = proxyModelValue.value) !== null && _d !== void 0 ? _d : props.initialValue).getUTCHours(), value));
|
|
1002
1006
|
});
|
|
1003
1007
|
});
|
|
1004
1008
|
// Methods
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, computed } from 'vue-demi';
|
|
2
|
-
import './OrDateTimePicker.vue_rollup-plugin-vue_script-
|
|
3
|
-
import './OrDateTimePickerTimeSelect-
|
|
2
|
+
import './OrDateTimePicker.vue_rollup-plugin-vue_script-e665138c.js';
|
|
3
|
+
import './OrDateTimePickerTimeSelect-36902656.js';
|
|
4
4
|
import { D as DateTimePickerTimeFormat, a as formatTime } from './getTimePlaceholder-8f786f44.js';
|
|
5
5
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
6
6
|
|
|
@@ -5,8 +5,8 @@ import './dom-aecadd9a.js';
|
|
|
5
5
|
import { u as useProxyModelValue } from './useProxyModelValue-940010d2.js';
|
|
6
6
|
import '@onereach/styles/tailwind/plugins/core';
|
|
7
7
|
import '@onereach/styles/tailwind.config.json';
|
|
8
|
-
import './OrDateTimePicker.vue_rollup-plugin-vue_script-
|
|
9
|
-
import { b as __vue_component__$1, d as __vue_component__$2, e as __vue_component__$3, f as __vue_component__$4, g as __vue_component__$5 } from './OrDateTimePickerTimeSelect-
|
|
8
|
+
import './OrDateTimePicker.vue_rollup-plugin-vue_script-e665138c.js';
|
|
9
|
+
import { b as __vue_component__$1, d as __vue_component__$2, e as __vue_component__$3, f as __vue_component__$4, g as __vue_component__$5 } from './OrDateTimePickerTimeSelect-36902656.js';
|
|
10
10
|
import { D as DateTimePickerTimeFormat } from './getTimePlaceholder-8f786f44.js';
|
|
11
11
|
import { g as getCurrentDate } from './getCurrentDate-046a888d.js';
|
|
12
12
|
import { _ as __vue_component__$6 } from './OrError-916e928e.js';
|
|
@@ -136,13 +136,13 @@ var script = defineComponent({
|
|
|
136
136
|
if (props.minutesFilter && !props.minutesFilter(draftModelValue.value)) {
|
|
137
137
|
return true;
|
|
138
138
|
}
|
|
139
|
+
return false;
|
|
139
140
|
}
|
|
140
|
-
return
|
|
141
|
+
return true;
|
|
141
142
|
});
|
|
142
143
|
// Methods
|
|
143
144
|
function apply() {
|
|
144
|
-
|
|
145
|
-
proxyModelValue.value = (_a = draftModelValue.value) !== null && _a !== void 0 ? _a : initialValue.value;
|
|
145
|
+
proxyModelValue.value = draftModelValue.value;
|
|
146
146
|
}
|
|
147
147
|
function reset() {
|
|
148
148
|
draftModelValue.value = proxyModelValue.value;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent, ref, computed,
|
|
1
|
+
import { defineComponent, ref, computed, watch, toRef } from 'vue-demi';
|
|
2
2
|
import { D as DropdownClose, a as DropdownOpen } from './dropdown-open-06d651cf.js';
|
|
3
3
|
import '@vueuse/core';
|
|
4
4
|
import './dom-aecadd9a.js';
|
|
5
5
|
import { u as useProxyModelValue } from './useProxyModelValue-940010d2.js';
|
|
6
6
|
import { u as useResponsive } from './useResponsive-5c8291da.js';
|
|
7
7
|
import '@onereach/styles/tailwind.config.json';
|
|
8
|
-
import './OrDateTimePicker.vue_rollup-plugin-vue_script-
|
|
9
|
-
import { b as __vue_component__$1, d as __vue_component__$2, e as __vue_component__$3, f as __vue_component__$4, g as __vue_component__$5 } from './OrDateTimePickerTimeSelect-
|
|
8
|
+
import './OrDateTimePicker.vue_rollup-plugin-vue_script-e665138c.js';
|
|
9
|
+
import { b as __vue_component__$1, d as __vue_component__$2, e as __vue_component__$3, f as __vue_component__$4, g as __vue_component__$5 } from './OrDateTimePickerTimeSelect-36902656.js';
|
|
10
10
|
import { D as DateTimePickerTimeFormat } from './getTimePlaceholder-8f786f44.js';
|
|
11
11
|
import { g as getCurrentDate } from './getCurrentDate-046a888d.js';
|
|
12
12
|
import { _ as __vue_component__$6 } from './OrError-916e928e.js';
|
|
@@ -94,7 +94,7 @@ var script = defineComponent({
|
|
|
94
94
|
emits: ['update:modelValue', 'keydown', 'keyup', 'focus', 'blur'],
|
|
95
95
|
expose: ['root', 'focus', 'blur'],
|
|
96
96
|
setup(props, context) {
|
|
97
|
-
var _a;
|
|
97
|
+
var _a, _b;
|
|
98
98
|
// Refs
|
|
99
99
|
const root = ref();
|
|
100
100
|
const inputBox = ref();
|
|
@@ -111,9 +111,12 @@ var script = defineComponent({
|
|
|
111
111
|
const rootStyles = computed(() => ['or-time-range-picker-v3', ...TimeRangePicker]);
|
|
112
112
|
const popoverStyles = computed(() => [...TimeRangePickerPopover]);
|
|
113
113
|
// State
|
|
114
|
-
const initialValue = getCurrentDate();
|
|
114
|
+
const initialValue = ref((_a = props.modelValue) !== null && _a !== void 0 ? _a : getCurrentDate());
|
|
115
|
+
watch(() => props.modelValue, value => {
|
|
116
|
+
initialValue.value = value !== null && value !== void 0 ? value : getCurrentDate();
|
|
117
|
+
});
|
|
115
118
|
const proxyModelValue = useProxyModelValue(toRef(props, 'modelValue'), context.emit);
|
|
116
|
-
const draftModelValue = ref((
|
|
119
|
+
const draftModelValue = ref((_b = proxyModelValue.value) !== null && _b !== void 0 ? _b : [undefined, undefined]);
|
|
117
120
|
watch(proxyModelValue, value => {
|
|
118
121
|
draftModelValue.value = value !== null && value !== void 0 ? value : [undefined, undefined];
|
|
119
122
|
});
|
|
@@ -130,31 +133,15 @@ var script = defineComponent({
|
|
|
130
133
|
}
|
|
131
134
|
});
|
|
132
135
|
const selectedControl = ref('from');
|
|
133
|
-
const filterFrom = value => {
|
|
134
|
-
if (draftModelValueTo.value) {
|
|
135
|
-
return Number(value) <= Number(draftModelValueTo.value);
|
|
136
|
-
}
|
|
137
|
-
return true;
|
|
138
|
-
};
|
|
139
|
-
const filterTo = value => {
|
|
140
|
-
if (draftModelValueFrom.value) {
|
|
141
|
-
return Number(value) >= Number(draftModelValueFrom.value);
|
|
142
|
-
}
|
|
143
|
-
return true;
|
|
144
|
-
};
|
|
145
136
|
const isInvalidDraftModelValue = computed(() => {
|
|
146
|
-
if (draftModelValueFrom.value) {
|
|
147
|
-
return
|
|
148
|
-
}
|
|
149
|
-
if (draftModelValueTo.value) {
|
|
150
|
-
return !filterTo(draftModelValueTo.value);
|
|
137
|
+
if (draftModelValueFrom.value && draftModelValueTo.value && draftModelValueFrom.value < draftModelValueTo.value) {
|
|
138
|
+
return false;
|
|
151
139
|
}
|
|
152
|
-
return
|
|
140
|
+
return true;
|
|
153
141
|
});
|
|
154
142
|
// Methods
|
|
155
143
|
function apply() {
|
|
156
|
-
|
|
157
|
-
proxyModelValue.value = [(_a = draftModelValue.value[0]) !== null && _a !== void 0 ? _a : initialValue, (_b = draftModelValue.value[1]) !== null && _b !== void 0 ? _b : initialValue];
|
|
144
|
+
proxyModelValue.value = draftModelValue.value;
|
|
158
145
|
}
|
|
159
146
|
function reset() {
|
|
160
147
|
var _a;
|
|
@@ -202,8 +189,6 @@ var script = defineComponent({
|
|
|
202
189
|
draftModelValueFrom,
|
|
203
190
|
draftModelValueTo,
|
|
204
191
|
selectedControl,
|
|
205
|
-
filterFrom,
|
|
206
|
-
filterTo,
|
|
207
192
|
isInvalidDraftModelValue,
|
|
208
193
|
apply,
|
|
209
194
|
reset,
|
|
@@ -382,9 +367,7 @@ var __vue_render__ = function () {
|
|
|
382
367
|
class: ['grow'],
|
|
383
368
|
attrs: {
|
|
384
369
|
"initial-value": _vm.initialValue,
|
|
385
|
-
"format": _vm.format
|
|
386
|
-
"hours-filter": _vm.filterFrom,
|
|
387
|
-
"minutes-filter": _vm.filterFrom
|
|
370
|
+
"format": _vm.format
|
|
388
371
|
},
|
|
389
372
|
model: {
|
|
390
373
|
value: _vm.draftModelValueFrom,
|
|
@@ -397,9 +380,7 @@ var __vue_render__ = function () {
|
|
|
397
380
|
class: ['grow'],
|
|
398
381
|
attrs: {
|
|
399
382
|
"initial-value": _vm.initialValue,
|
|
400
|
-
"format": _vm.format
|
|
401
|
-
"hours-filter": _vm.filterTo,
|
|
402
|
-
"minutes-filter": _vm.filterTo
|
|
383
|
+
"format": _vm.format
|
|
403
384
|
},
|
|
404
385
|
model: {
|
|
405
386
|
value: _vm.draftModelValueTo,
|
|
@@ -35,13 +35,13 @@ export { C as ConfirmType, _ as OrConfirmV3 } from '../OrConfirm-56b56388.js';
|
|
|
35
35
|
export { _ as OrContextMenuV3 } from '../OrContextMenu-38869527.js';
|
|
36
36
|
export { _ as OrMenuV3 } from '../OrMenu-3d8e70c1.js';
|
|
37
37
|
export { P as ContextMenuPlacement, P as MenuPlacement, _ as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from '../OrPopover-2ced765c.js';
|
|
38
|
-
export { _ as OrDateFormatV3 } from '../OrDateFormat-
|
|
39
|
-
export { _ as OrDatePickerV3 } from '../OrDatePicker-
|
|
40
|
-
export { _ as OrDateRangePickerV3 } from '../OrDateRangePicker-
|
|
41
|
-
export { _ as OrDateTimeFormatV3 } from '../OrDateTimeFormat-
|
|
38
|
+
export { _ as OrDateFormatV3 } from '../OrDateFormat-ac1f8dc3.js';
|
|
39
|
+
export { _ as OrDatePickerV3 } from '../OrDatePicker-59a8f58c.js';
|
|
40
|
+
export { _ as OrDateRangePickerV3 } from '../OrDateRangePicker-9108aee2.js';
|
|
41
|
+
export { _ as OrDateTimeFormatV3 } from '../OrDateTimeFormat-885a7346.js';
|
|
42
42
|
export { D as DEFAULT_TEXT, _ as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from '../OrDateTimePicker-7d39afc2.js';
|
|
43
|
-
export { _ as OrDateTimePickerV3 } from '../OrDateTimePicker-
|
|
44
|
-
export { _ as OrDateTimePickerDateControl, a as OrDateTimePickerDateSelect, b as OrDateTimePickerMobileControl, c as OrDateTimePickerMonthSelect, d as OrDateTimePickerPopoverFooter, e as OrDateTimePickerPopoverHeader, f as OrDateTimePickerTimeControl, g as OrDateTimePickerTimeSelect } from '../OrDateTimePickerTimeSelect-
|
|
43
|
+
export { _ as OrDateTimePickerV3 } from '../OrDateTimePicker-cf54de16.js';
|
|
44
|
+
export { _ as OrDateTimePickerDateControl, a as OrDateTimePickerDateSelect, b as OrDateTimePickerMobileControl, c as OrDateTimePickerMonthSelect, d as OrDateTimePickerPopoverFooter, e as OrDateTimePickerPopoverHeader, f as OrDateTimePickerTimeControl, g as OrDateTimePickerTimeSelect } from '../OrDateTimePickerTimeSelect-36902656.js';
|
|
45
45
|
export { D as DateTimePickerTimeFormat, D as TimePickerFormat, D as TimeRangePickerFormat, f as formatDate, a as formatTime, g as getDatePlaceholder, b as getTimePlaceholder } from '../getTimePlaceholder-8f786f44.js';
|
|
46
46
|
export { g as getCurrentDate } from '../getCurrentDate-046a888d.js';
|
|
47
47
|
export { g as getNextMonthDate } from '../getNextMonthDate-00c47169.js';
|
|
@@ -126,9 +126,9 @@ export { _ as OrTextV3 } from '../OrText-44449e7b.js';
|
|
|
126
126
|
export { _ as OrTextarea } from '../OrTextarea-9febab19.js';
|
|
127
127
|
export { _ as OrTextareaV3 } from '../OrTextarea-88db4c34.js';
|
|
128
128
|
export { _ as OrTextbox, T as TextboxTypes } from '../OrTextbox-866f0a9a.js';
|
|
129
|
-
export { _ as OrTimeFormatV3 } from '../OrTimeFormat-
|
|
130
|
-
export { _ as OrTimePickerV3 } from '../OrTimePicker-
|
|
131
|
-
export { _ as OrTimeRangePickerV3 } from '../OrTimeRangePicker-
|
|
129
|
+
export { _ as OrTimeFormatV3 } from '../OrTimeFormat-9e1d6313.js';
|
|
130
|
+
export { _ as OrTimePickerV3 } from '../OrTimePicker-d188956c.js';
|
|
131
|
+
export { _ as OrTimeRangePickerV3 } from '../OrTimeRangePicker-b12fadc1.js';
|
|
132
132
|
export { _ as OrToast, a as OrToastContainer } from '../OrToastContainer-ecffc69f.js';
|
|
133
133
|
export { P as PositionsX, b as PositionsY, c as ToastType, T as TransitionType, a as useQueue, u as useToast } from '../useToast-05a9c81b.js';
|
|
134
134
|
export { a as OrToastContainerV3, _ as OrToastV3, t as TypesV3 } from '../types-786e1747.js';
|
|
@@ -165,7 +165,7 @@ import '@vueuse/math';
|
|
|
165
165
|
import '@floating-ui/dom';
|
|
166
166
|
import '../useElevation-a50ec347.js';
|
|
167
167
|
import '../useResponsive-5c8291da.js';
|
|
168
|
-
import '../OrDateTimePicker.vue_rollup-plugin-vue_script-
|
|
168
|
+
import '../OrDateTimePicker.vue_rollup-plugin-vue_script-e665138c.js';
|
|
169
169
|
import '../dropdown-open-06d651cf.js';
|
|
170
170
|
import 'lodash/padStart';
|
|
171
171
|
import '../OrTooltip.vue_rollup-plugin-vue_styles.0-0aca0c11.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { _ as OrDateFormatV3 } from '../../OrDateFormat-
|
|
1
|
+
export { _ as OrDateFormatV3 } from '../../OrDateFormat-ac1f8dc3.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
|
-
import '../../OrDateTimePicker.vue_rollup-plugin-vue_script-
|
|
3
|
+
import '../../OrDateTimePicker.vue_rollup-plugin-vue_script-e665138c.js';
|
|
4
4
|
import '../../dropdown-open-06d651cf.js';
|
|
5
5
|
import '@vueuse/core';
|
|
6
6
|
import '../../dom-aecadd9a.js';
|
|
@@ -28,7 +28,7 @@ import '../../useTheme-0ef25778.js';
|
|
|
28
28
|
import '../../OrInputBox-2ba5d5de.js';
|
|
29
29
|
import '../../OrInputBox.vue_rollup-plugin-vue_script-bebba826.js';
|
|
30
30
|
import '../../OrLabel-b465bc0b.js';
|
|
31
|
-
import '../../OrDateTimePickerTimeSelect-
|
|
31
|
+
import '../../OrDateTimePickerTimeSelect-36902656.js';
|
|
32
32
|
import '../../getTimePlaceholder-8f786f44.js';
|
|
33
33
|
import '../../OrButton-78336f88.js';
|
|
34
34
|
import '../../OrLoader-b0c381f9.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { _ as OrDatePickerV3 } from '../../OrDatePicker-
|
|
1
|
+
export { _ as OrDatePickerV3 } from '../../OrDatePicker-59a8f58c.js';
|
|
2
2
|
export { I as DatePickerSize } from '../../OrInputBox.vue_rollup-plugin-vue_script-bebba826.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import '../../dropdown-open-06d651cf.js';
|
|
@@ -9,7 +9,7 @@ import 'lodash/get';
|
|
|
9
9
|
import '../../useProxyModelValue-940010d2.js';
|
|
10
10
|
import '@onereach/styles/tailwind/plugins/core';
|
|
11
11
|
import '@onereach/styles/tailwind.config.json';
|
|
12
|
-
import '../../OrDateTimePicker.vue_rollup-plugin-vue_script-
|
|
12
|
+
import '../../OrDateTimePicker.vue_rollup-plugin-vue_script-e665138c.js';
|
|
13
13
|
import '../../OrError-916e928e.js';
|
|
14
14
|
import '../../normalize-component-6e8e3d80.js';
|
|
15
15
|
import '../../OrHint-1220face.js';
|
|
@@ -28,7 +28,7 @@ import 'portal-vue';
|
|
|
28
28
|
import '../../useTheme-0ef25778.js';
|
|
29
29
|
import '../../OrInputBox-2ba5d5de.js';
|
|
30
30
|
import '../../OrLabel-b465bc0b.js';
|
|
31
|
-
import '../../OrDateTimePickerTimeSelect-
|
|
31
|
+
import '../../OrDateTimePickerTimeSelect-36902656.js';
|
|
32
32
|
import '../../getTimePlaceholder-8f786f44.js';
|
|
33
33
|
import '../../OrButton-78336f88.js';
|
|
34
34
|
import '../../OrLoader-b0c381f9.js';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PropType } from 'vue-demi';
|
|
2
|
-
import { FilterFunction } from '../or-date-time-picker-v3';
|
|
3
2
|
import { DateRangePickerSize } from './props';
|
|
4
3
|
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
5
4
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
@@ -25,9 +24,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
25
24
|
draftModelValueTo: import("@vue/composition-api").WritableComputedRef<Date | undefined>;
|
|
26
25
|
genericDraftModelValue: import("@vue/composition-api").WritableComputedRef<Date | undefined>;
|
|
27
26
|
selectedControl: import("@vue/composition-api").Ref<"from" | "to">;
|
|
28
|
-
filterFrom: FilterFunction;
|
|
29
|
-
filterTo: FilterFunction;
|
|
30
|
-
genericFilter: FilterFunction;
|
|
31
27
|
isInvalidDraftModelValue: import("@vue/composition-api").ComputedRef<boolean>;
|
|
32
28
|
switchSelectedControl: () => void;
|
|
33
29
|
apply: () => void;
|
|
@@ -147,9 +143,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
147
143
|
draftModelValueTo: import("@vue/composition-api").WritableComputedRef<Date | undefined>;
|
|
148
144
|
genericDraftModelValue: import("@vue/composition-api").WritableComputedRef<Date | undefined>;
|
|
149
145
|
selectedControl: import("@vue/composition-api").Ref<"from" | "to">;
|
|
150
|
-
filterFrom: FilterFunction;
|
|
151
|
-
filterTo: FilterFunction;
|
|
152
|
-
genericFilter: FilterFunction;
|
|
153
146
|
isInvalidDraftModelValue: import("@vue/composition-api").ComputedRef<boolean>;
|
|
154
147
|
switchSelectedControl: () => void;
|
|
155
148
|
apply: () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { _ as OrDateRangePickerV3 } from '../../OrDateRangePicker-
|
|
1
|
+
export { _ as OrDateRangePickerV3 } from '../../OrDateRangePicker-9108aee2.js';
|
|
2
2
|
export { I as DateRangePickerSize } from '../../OrInputBox.vue_rollup-plugin-vue_script-bebba826.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import '../../dropdown-open-06d651cf.js';
|
|
@@ -10,7 +10,7 @@ import '../../useProxyModelValue-940010d2.js';
|
|
|
10
10
|
import '../../useResponsive-5c8291da.js';
|
|
11
11
|
import '@onereach/styles/tailwind/plugins/core';
|
|
12
12
|
import '@onereach/styles/tailwind.config.json';
|
|
13
|
-
import '../../OrDateTimePicker.vue_rollup-plugin-vue_script-
|
|
13
|
+
import '../../OrDateTimePicker.vue_rollup-plugin-vue_script-e665138c.js';
|
|
14
14
|
import '../../OrError-916e928e.js';
|
|
15
15
|
import '../../normalize-component-6e8e3d80.js';
|
|
16
16
|
import '../../OrHint-1220face.js';
|
|
@@ -28,7 +28,7 @@ import 'portal-vue';
|
|
|
28
28
|
import '../../useTheme-0ef25778.js';
|
|
29
29
|
import '../../OrInputBox-2ba5d5de.js';
|
|
30
30
|
import '../../OrLabel-b465bc0b.js';
|
|
31
|
-
import '../../OrDateTimePickerTimeSelect-
|
|
31
|
+
import '../../OrDateTimePickerTimeSelect-36902656.js';
|
|
32
32
|
import '../../getTimePlaceholder-8f786f44.js';
|
|
33
33
|
import '../../OrButton-78336f88.js';
|
|
34
34
|
import '../../OrLoader-b0c381f9.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { _ as OrDateTimeFormatV3 } from '../../OrDateTimeFormat-
|
|
1
|
+
export { _ as OrDateTimeFormatV3 } from '../../OrDateTimeFormat-885a7346.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
|
-
import '../../OrDateTimePicker.vue_rollup-plugin-vue_script-
|
|
3
|
+
import '../../OrDateTimePicker.vue_rollup-plugin-vue_script-e665138c.js';
|
|
4
4
|
import '../../dropdown-open-06d651cf.js';
|
|
5
5
|
import '@vueuse/core';
|
|
6
6
|
import '../../dom-aecadd9a.js';
|
|
@@ -28,7 +28,7 @@ import '../../useTheme-0ef25778.js';
|
|
|
28
28
|
import '../../OrInputBox-2ba5d5de.js';
|
|
29
29
|
import '../../OrInputBox.vue_rollup-plugin-vue_script-bebba826.js';
|
|
30
30
|
import '../../OrLabel-b465bc0b.js';
|
|
31
|
-
import '../../OrDateTimePickerTimeSelect-
|
|
31
|
+
import '../../OrDateTimePickerTimeSelect-36902656.js';
|
|
32
32
|
import '../../getTimePlaceholder-8f786f44.js';
|
|
33
33
|
import '../../OrButton-78336f88.js';
|
|
34
34
|
import '../../OrLoader-b0c381f9.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { _ as OrDateTimePickerV3 } from '../../OrDateTimePicker-
|
|
2
|
-
export { _ as OrDateTimePickerDateControl, a as OrDateTimePickerDateSelect, b as OrDateTimePickerMobileControl, c as OrDateTimePickerMonthSelect, d as OrDateTimePickerPopoverFooter, e as OrDateTimePickerPopoverHeader, f as OrDateTimePickerTimeControl, g as OrDateTimePickerTimeSelect } from '../../OrDateTimePickerTimeSelect-
|
|
1
|
+
export { _ as OrDateTimePickerV3 } from '../../OrDateTimePicker-cf54de16.js';
|
|
2
|
+
export { _ as OrDateTimePickerDateControl, a as OrDateTimePickerDateSelect, b as OrDateTimePickerMobileControl, c as OrDateTimePickerMonthSelect, d as OrDateTimePickerPopoverFooter, e as OrDateTimePickerPopoverHeader, f as OrDateTimePickerTimeControl, g as OrDateTimePickerTimeSelect } from '../../OrDateTimePickerTimeSelect-36902656.js';
|
|
3
3
|
export { D as DateTimePickerTimeFormat, f as formatDate, a as formatTime, g as getDatePlaceholder, b as getTimePlaceholder } from '../../getTimePlaceholder-8f786f44.js';
|
|
4
4
|
export { g as getCurrentDate } from '../../getCurrentDate-046a888d.js';
|
|
5
5
|
export { g as getNextMonthDate } from '../../getNextMonthDate-00c47169.js';
|
|
6
6
|
export { I as DateTimePickerSize } from '../../OrInputBox.vue_rollup-plugin-vue_script-bebba826.js';
|
|
7
|
-
import '../../OrDateTimePicker.vue_rollup-plugin-vue_script-
|
|
7
|
+
import '../../OrDateTimePicker.vue_rollup-plugin-vue_script-e665138c.js';
|
|
8
8
|
import 'vue-demi';
|
|
9
9
|
import '../../dropdown-open-06d651cf.js';
|
|
10
10
|
import '@vueuse/core';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { _ as OrDateTimePickerDateControl, a as OrDateTimePickerDateSelect, b as OrDateTimePickerMobileControl, c as OrDateTimePickerMonthSelect, d as OrDateTimePickerPopoverFooter, e as OrDateTimePickerPopoverHeader, f as OrDateTimePickerTimeControl, g as OrDateTimePickerTimeSelect } from '../../../OrDateTimePickerTimeSelect-
|
|
1
|
+
export { _ as OrDateTimePickerDateControl, a as OrDateTimePickerDateSelect, b as OrDateTimePickerMobileControl, c as OrDateTimePickerMonthSelect, d as OrDateTimePickerPopoverFooter, e as OrDateTimePickerPopoverHeader, f as OrDateTimePickerTimeControl, g as OrDateTimePickerTimeSelect } from '../../../OrDateTimePickerTimeSelect-36902656.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
3
|
import '@vueuse/core';
|
|
4
4
|
import '../../../dom-aecadd9a.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { _ as OrTimeFormatV3 } from '../../OrTimeFormat-
|
|
1
|
+
export { _ as OrTimeFormatV3 } from '../../OrTimeFormat-9e1d6313.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
|
-
import '../../OrDateTimePicker.vue_rollup-plugin-vue_script-
|
|
3
|
+
import '../../OrDateTimePicker.vue_rollup-plugin-vue_script-e665138c.js';
|
|
4
4
|
import '../../dropdown-open-06d651cf.js';
|
|
5
5
|
import '@vueuse/core';
|
|
6
6
|
import '../../dom-aecadd9a.js';
|
|
@@ -28,7 +28,7 @@ import '../../useTheme-0ef25778.js';
|
|
|
28
28
|
import '../../OrInputBox-2ba5d5de.js';
|
|
29
29
|
import '../../OrInputBox.vue_rollup-plugin-vue_script-bebba826.js';
|
|
30
30
|
import '../../OrLabel-b465bc0b.js';
|
|
31
|
-
import '../../OrDateTimePickerTimeSelect-
|
|
31
|
+
import '../../OrDateTimePickerTimeSelect-36902656.js';
|
|
32
32
|
import '../../getTimePlaceholder-8f786f44.js';
|
|
33
33
|
import '../../OrButton-78336f88.js';
|
|
34
34
|
import '../../OrLoader-b0c381f9.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { _ as OrTimePickerV3 } from '../../OrTimePicker-
|
|
2
|
-
import '../../OrDateTimePicker.vue_rollup-plugin-vue_script-
|
|
3
|
-
import '../../OrDateTimePickerTimeSelect-
|
|
1
|
+
export { _ as OrTimePickerV3 } from '../../OrTimePicker-d188956c.js';
|
|
2
|
+
import '../../OrDateTimePicker.vue_rollup-plugin-vue_script-e665138c.js';
|
|
3
|
+
import '../../OrDateTimePickerTimeSelect-36902656.js';
|
|
4
4
|
export { D as TimePickerFormat } from '../../getTimePlaceholder-8f786f44.js';
|
|
5
5
|
export { I as TimePickerSize } from '../../OrInputBox.vue_rollup-plugin-vue_script-bebba826.js';
|
|
6
6
|
import 'vue-demi';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PropType } from 'vue-demi';
|
|
2
|
-
import { FilterFunction } from '../or-date-time-picker-v3';
|
|
3
2
|
import { TimeRangePickerFormat, TimeRangePickerSize } from './props';
|
|
4
3
|
declare const _default: import("vue2").ComponentOptions<import("vue2").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
5
4
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
@@ -17,14 +16,12 @@ declare const _default: import("vue2").ComponentOptions<import("vue2").default,
|
|
|
17
16
|
popoverState: import("@vue/composition-api").ComputedRef<undefined>;
|
|
18
17
|
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
19
18
|
popoverStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
20
|
-
initialValue: Date
|
|
19
|
+
initialValue: import("@vue/composition-api").Ref<[Date, Date]>;
|
|
21
20
|
proxyModelValue: import("../../hooks").UseProxyModelValueReturn<[Date, Date]>;
|
|
22
21
|
draftModelValue: import("@vue/composition-api").Ref<[Date | undefined, Date | undefined]>;
|
|
23
22
|
draftModelValueFrom: import("@vue/composition-api").WritableComputedRef<Date | undefined>;
|
|
24
23
|
draftModelValueTo: import("@vue/composition-api").WritableComputedRef<Date | undefined>;
|
|
25
24
|
selectedControl: import("@vue/composition-api").Ref<"from" | "to">;
|
|
26
|
-
filterFrom: FilterFunction;
|
|
27
|
-
filterTo: FilterFunction;
|
|
28
25
|
isInvalidDraftModelValue: import("@vue/composition-api").ComputedRef<boolean>;
|
|
29
26
|
apply: () => void;
|
|
30
27
|
reset: () => void;
|
|
@@ -144,14 +141,12 @@ declare const _default: import("vue2").ComponentOptions<import("vue2").default,
|
|
|
144
141
|
popoverState: import("@vue/composition-api").ComputedRef<undefined>;
|
|
145
142
|
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
146
143
|
popoverStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
147
|
-
initialValue: Date
|
|
144
|
+
initialValue: import("@vue/composition-api").Ref<[Date, Date]>;
|
|
148
145
|
proxyModelValue: import("../../hooks").UseProxyModelValueReturn<[Date, Date]>;
|
|
149
146
|
draftModelValue: import("@vue/composition-api").Ref<[Date | undefined, Date | undefined]>;
|
|
150
147
|
draftModelValueFrom: import("@vue/composition-api").WritableComputedRef<Date | undefined>;
|
|
151
148
|
draftModelValueTo: import("@vue/composition-api").WritableComputedRef<Date | undefined>;
|
|
152
149
|
selectedControl: import("@vue/composition-api").Ref<"from" | "to">;
|
|
153
|
-
filterFrom: FilterFunction;
|
|
154
|
-
filterTo: FilterFunction;
|
|
155
150
|
isInvalidDraftModelValue: import("@vue/composition-api").ComputedRef<boolean>;
|
|
156
151
|
apply: () => void;
|
|
157
152
|
reset: () => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { _ as OrTimeRangePickerV3 } from '../../OrTimeRangePicker-
|
|
2
|
-
import '../../OrDateTimePicker.vue_rollup-plugin-vue_script-
|
|
3
|
-
import '../../OrDateTimePickerTimeSelect-
|
|
1
|
+
export { _ as OrTimeRangePickerV3 } from '../../OrTimeRangePicker-b12fadc1.js';
|
|
2
|
+
import '../../OrDateTimePicker.vue_rollup-plugin-vue_script-e665138c.js';
|
|
3
|
+
import '../../OrDateTimePickerTimeSelect-36902656.js';
|
|
4
4
|
export { D as TimeRangePickerFormat } from '../../getTimePlaceholder-8f786f44.js';
|
|
5
5
|
export { I as TimeRangePickerSize } from '../../OrInputBox.vue_rollup-plugin-vue_script-bebba826.js';
|
|
6
6
|
import 'vue-demi';
|