@onereach/ui-components-vue2 21.5.0 → 21.5.1
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/esm/{OrDateTimePicker-694dcd3e.js → OrDateTimePicker-77357215.js} +9 -9
- package/dist/esm/{OrDateTimePickerMonthSelect-e139a00a.js → OrDateTimePickerMonthSelect-432edd73.js} +5 -5
- package/dist/esm/{OrDateTimePickerTimeSelect-13163e60.js → OrDateTimePickerTimeSelect-cc819da2.js} +5 -5
- package/dist/esm/components/index.js +6 -6
- package/dist/esm/components/or-autocomplete-v3/index.js +9 -9
- package/dist/esm/components/or-bottom-sheet-v3/index.js +3 -3
- package/dist/esm/components/or-card-collection-v3/index.js +1 -1
- package/dist/esm/components/or-checkbox-group-v3/index.js +3 -3
- package/dist/esm/components/or-checkbox-tree-v3/index.js +2 -2
- package/dist/esm/components/or-checkbox-v3/index.js +4 -4
- package/dist/esm/components/or-code-v3/index.js +6 -6
- package/dist/esm/components/or-confirm-v3/index.js +2 -2
- package/dist/esm/components/or-context-menu-v3/index.js +2 -2
- package/dist/esm/components/or-data-grid-v3/index.js +6 -6
- package/dist/esm/components/or-date-format-v3/index.js +3 -3
- package/dist/esm/components/or-date-picker-v3/index.js +7 -7
- package/dist/esm/components/or-date-range-picker-v3/index.js +8 -8
- package/dist/esm/components/or-date-time-format-v3/index.js +5 -5
- package/dist/esm/components/or-date-time-picker-v3/index.js +6 -6
- package/dist/esm/components/or-drawer-v3/index.js +2 -2
- package/dist/esm/components/or-drop-area-v3/index.js +3 -3
- package/dist/esm/components/or-editor-tabs-v3/index.js +3 -3
- package/dist/esm/components/or-expansion-panel-v3/index.js +2 -2
- package/dist/esm/components/or-filter-popover-v3/index.js +3 -3
- package/dist/esm/components/or-filter-trigger-v3/index.js +1 -1
- package/dist/esm/components/or-filter-v3/index.js +2 -2
- package/dist/esm/components/or-icon-button-v3/index.js +1 -1
- package/dist/esm/components/or-inline-input-v3/index.js +5 -5
- package/dist/esm/components/or-inline-textarea-v3/index.js +5 -5
- package/dist/esm/components/or-input-v3/index.js +6 -6
- package/dist/esm/components/or-list-v3/index.js +2 -2
- package/dist/esm/components/or-menu-item-v3/index.js +1 -1
- package/dist/esm/components/or-menu-v3/index.js +2 -2
- package/dist/esm/components/or-modal-v3/index.js +3 -3
- package/dist/esm/components/or-notification-v3/index.js +1 -1
- package/dist/esm/components/or-overlay-v3/index.js +2 -2
- package/dist/esm/components/or-pagination-v3/index.js +3 -3
- package/dist/esm/components/or-popover-v3/index.js +4 -4
- package/dist/esm/components/or-progress-v3/index.js +2 -2
- package/dist/esm/components/or-radio-group-v3/index.js +3 -3
- package/dist/esm/components/or-radio-v3/index.js +4 -4
- package/dist/esm/components/or-range-slider-v3/index.js +2 -2
- package/dist/esm/components/or-rating-v3/index.js +3 -3
- package/dist/esm/components/or-resizeable-panel-v3/index.js +2 -2
- package/dist/esm/components/or-rich-text-editor-v3/index.js +3 -3
- package/dist/esm/components/or-rich-tooltip-v3/index.js +2 -2
- package/dist/esm/components/or-search-v3/index.js +5 -5
- package/dist/esm/components/or-segmented-control-v3/index.js +2 -2
- package/dist/esm/components/or-select-v3/index.js +8 -8
- package/dist/esm/components/or-sidebar-v3/index.js +2 -2
- package/dist/esm/components/or-slider-v3/index.js +2 -2
- package/dist/esm/components/or-sorting-v3/index.js +2 -2
- package/dist/esm/components/or-switch-v3/index.js +4 -4
- package/dist/esm/components/or-tabs-v3/index.js +2 -2
- package/dist/esm/components/or-tag-input-v3/index.js +6 -6
- package/dist/esm/components/or-tag-v3/index.js +1 -1
- package/dist/esm/components/or-tags-v3/index.js +2 -2
- package/dist/esm/components/or-textarea-v3/index.js +5 -5
- package/dist/esm/components/or-time-format-v3/index.js +4 -4
- package/dist/esm/components/or-time-picker-v3/index.js +8 -8
- package/dist/esm/components/or-time-range-picker-v3/index.js +9 -9
- package/dist/esm/components/or-toast-v3/index.js +2 -2
- package/dist/esm/components/or-tooltip-v3/index.js +2 -2
- package/dist/esm/directives-0869d2a4.js +19 -0
- package/dist/esm/{formatTime-8b7e3477.js → formatTime-df463e40.js} +1 -1
- package/dist/esm/index.js +6 -6
- package/dist/esm/{useValidationAttributes-BpeWsfb0-24439d6f.js → useValidationAttributes-C9_kxaDj-ee1d63dd.js} +49 -49
- package/package.json +4 -4
- package/dist/esm/components/or-autocomplete-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-avatar-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-bottom-sheet-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-button-group-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-card-collection-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-card-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-checkbox-group-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-checkbox-tree-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-checkbox-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-code-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-combined-input-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-confirm-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-context-menu-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-data-grid-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-date-format-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-date-picker-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-date-range-picker-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-date-time-format-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-date-time-picker-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-drawer-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-drop-area-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-empty-state-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-error-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-expansion-panel-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-filter-popover-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-filter-trigger-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-filter-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-form-group-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-hint-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-icon-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-indicator-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-inline-input-box-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-inline-input-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-inline-textarea-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-input-box-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-input-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-label-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-link-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-list-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-loader-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-menu-item-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-menu-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-modal-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-notification-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-pagination-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-popover-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-progress-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-radio-group-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-radio-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-range-slider-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-rating-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-resizeable-panel-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-rich-text-editor-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-rich-tooltip-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-search-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-select-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-sidebar-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-skeleton-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-slider-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-sorting-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-status-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-switch-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-tab-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-tabs-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-tag-input-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-tag-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-tags-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-teleport-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-text-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-textarea-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-time-format-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-time-picker-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-time-range-picker-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-toast-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-tooltip-v3/constants.d.ts +0 -2
- package/dist/esm/components/or-tree-v3/constants.d.ts +0 -2
- package/dist/esm/dropdown-open-k6cFnrqA-5245a281.js +0 -17
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, toRef, watch } from 'vue-demi';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { O as OrDateTimePickerDateControl, a as OrDateTimePickerDateSelect, b as OrDateTimePickerMonthSelect, f as formatMobileDate } from './OrDateTimePickerMonthSelect-
|
|
2
|
+
import { a, c } from './directives-0869d2a4.js';
|
|
3
|
+
import { _, n as ne, K, e as ee } from './useValidationAttributes-C9_kxaDj-ee1d63dd.js';
|
|
4
|
+
import { O as OrDateTimePickerDateControl, a as OrDateTimePickerDateSelect, b as OrDateTimePickerMonthSelect, f as formatMobileDate } from './OrDateTimePickerMonthSelect-432edd73.js';
|
|
5
5
|
import { O as OrDateTimePickerMobileControl, a as OrDateTimePickerPopoverFooter, b as OrDateTimePickerPopoverHeader, g as getCurrentDate } from './OrDateTimePickerPopoverHeader-e2b3f8f2.js';
|
|
6
|
-
import { O as OrDateTimePickerTimeControl, a as OrDateTimePickerTimeSelect, f as formatMobileTime } from './OrDateTimePickerTimeSelect-
|
|
6
|
+
import { O as OrDateTimePickerTimeControl, a as OrDateTimePickerTimeSelect, f as formatMobileTime } from './OrDateTimePickerTimeSelect-cc819da2.js';
|
|
7
7
|
import { OrErrorV3 as OrError } from './components/or-error-v3/index.js';
|
|
8
8
|
import { OrHintV3 as OrHint } from './components/or-hint-v3/index.js';
|
|
9
9
|
import { OrIconV3 as OrIcon } from './components/or-icon-v3/index.js';
|
|
@@ -44,7 +44,7 @@ var script = defineComponent({
|
|
|
44
44
|
OrPopover
|
|
45
45
|
},
|
|
46
46
|
directives: {
|
|
47
|
-
DropdownClose:
|
|
47
|
+
DropdownClose: a,
|
|
48
48
|
DropdownOpen: c
|
|
49
49
|
},
|
|
50
50
|
model: {
|
|
@@ -158,15 +158,15 @@ var script = defineComponent({
|
|
|
158
158
|
});
|
|
159
159
|
const timePopoverStyles = computed(() => ['or-date-time-picker-time-popover-v3', ...DateTimePickerTimePopover]);
|
|
160
160
|
// Options
|
|
161
|
-
const resolvedDateFormat =
|
|
162
|
-
const resolvedTimeFormat =
|
|
163
|
-
const resolvedLocale =
|
|
161
|
+
const resolvedDateFormat = _(toRef(props, 'dateFormat'));
|
|
162
|
+
const resolvedTimeFormat = ne(toRef(props, 'timeFormat'));
|
|
163
|
+
const resolvedLocale = K(toRef(props, 'locale'));
|
|
164
164
|
// State
|
|
165
165
|
const initialValue = ref((_a = props.modelValue) !== null && _a !== void 0 ? _a : getCurrentDate());
|
|
166
166
|
watch(() => props.modelValue, value => {
|
|
167
167
|
initialValue.value = value !== null && value !== void 0 ? value : getCurrentDate();
|
|
168
168
|
});
|
|
169
|
-
const model =
|
|
169
|
+
const model = ee(toRef(props, 'modelValue'), context.emit);
|
|
170
170
|
const draft = ref(model.value);
|
|
171
171
|
watch(model, value => {
|
|
172
172
|
draft.value = value;
|
package/dist/esm/{OrDateTimePickerMonthSelect-e139a00a.js → OrDateTimePickerMonthSelect-432edd73.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, toRef } from 'vue-demi';
|
|
2
|
-
import {
|
|
2
|
+
import { e as ee, k } from './useValidationAttributes-C9_kxaDj-ee1d63dd.js';
|
|
3
3
|
import { f as formatDate } from './formatDate-0536a8d5.js';
|
|
4
4
|
import { n as normalizeComponent } from './normalize-component-cf2db48b.js';
|
|
5
5
|
import { OrButtonV3 as OrButton } from './components/or-button-v3/index.js';
|
|
@@ -71,8 +71,8 @@ var script$2 = defineComponent({
|
|
|
71
71
|
const rootStyles = computed(() => ['or-date-time-picker-date-control-v3', ...DateTimePickerDateControl]);
|
|
72
72
|
const placeholderStyles = computed(() => [...DateTimePickerDateControlPlaceholder]);
|
|
73
73
|
// State
|
|
74
|
-
const model =
|
|
75
|
-
const placeholder =
|
|
74
|
+
const model = ee(toRef(props, 'modelValue'), context.emit);
|
|
75
|
+
const placeholder = k(toRef(props, 'format'), toRef(props, 'locale'));
|
|
76
76
|
return {
|
|
77
77
|
root,
|
|
78
78
|
rootStyles,
|
|
@@ -228,7 +228,7 @@ var script$1 = defineComponent({
|
|
|
228
228
|
const buttonGroupCurrentDateItemStyles = computed(() => [...DateTimePickerDateSelectButtonGroupCurrentDateItem]);
|
|
229
229
|
const buttonGroupInRangeDateItemStyles = computed(() => [...DateTimePickerDateSelectButtonGroupInRangeDateItem]);
|
|
230
230
|
// State
|
|
231
|
-
const model =
|
|
231
|
+
const model = ee(toRef(props, 'modelValue'), context.emit);
|
|
232
232
|
const dayOptions = computed(() => {
|
|
233
233
|
const monthStartDate = new Date(Date.UTC(props.initialValue.getUTCFullYear(), props.initialValue.getUTCMonth(), 1, props.initialValue.getUTCHours(), props.initialValue.getUTCMinutes()));
|
|
234
234
|
const monthEndDate = new Date(Date.UTC(props.initialValue.getUTCFullYear(), props.initialValue.getUTCMonth() + 1, 0, props.initialValue.getUTCHours(), props.initialValue.getUTCMinutes()));
|
|
@@ -405,7 +405,7 @@ var script = defineComponent({
|
|
|
405
405
|
return (_a = monthMenu.value) === null || _a === void 0 ? void 0 : _a.state;
|
|
406
406
|
});
|
|
407
407
|
// State
|
|
408
|
-
const model =
|
|
408
|
+
const model = ee(toRef(props, 'modelValue'), context.emit);
|
|
409
409
|
const yearOptions = computed(() => {
|
|
410
410
|
return Array.from({
|
|
411
411
|
length: 11
|
package/dist/esm/{OrDateTimePickerTimeSelect-13163e60.js → OrDateTimePickerTimeSelect-cc819da2.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { h,
|
|
1
|
+
import { h, e as ee, u as ue } from './useValidationAttributes-C9_kxaDj-ee1d63dd.js';
|
|
2
2
|
import { defineComponent, ref, computed, toRef, watch, nextTick } from 'vue-demi';
|
|
3
|
-
import { f as formatTime } from './formatTime-
|
|
3
|
+
import { f as formatTime } from './formatTime-df463e40.js';
|
|
4
4
|
import { n as normalizeComponent } from './normalize-component-cf2db48b.js';
|
|
5
5
|
import { OrButtonV3 as OrButton } from './components/or-button-v3/index.js';
|
|
6
6
|
|
|
@@ -80,8 +80,8 @@ var script$1 = defineComponent({
|
|
|
80
80
|
const rootStyles = computed(() => ['or-date-time-picker-time-control-v3', ...DateTimePickerTimeControl]);
|
|
81
81
|
const placeholderStyles = computed(() => [...DateTimePickerTimeControlPlaceholder]);
|
|
82
82
|
// State
|
|
83
|
-
const model =
|
|
84
|
-
const placeholder =
|
|
83
|
+
const model = ee(toRef(props, 'modelValue'), context.emit);
|
|
84
|
+
const placeholder = ue(toRef(props, 'format'), toRef(props, 'locale'));
|
|
85
85
|
return {
|
|
86
86
|
root,
|
|
87
87
|
rootStyles,
|
|
@@ -228,7 +228,7 @@ var script = defineComponent({
|
|
|
228
228
|
const buttonGroupStyles = computed(() => [...DateTimePickerTimeSelectButtonGroup]);
|
|
229
229
|
const buttonGroupItemStyles = computed(() => [...DateTimePickerTimeSelectButtonGroupItem]);
|
|
230
230
|
// State
|
|
231
|
-
const model =
|
|
231
|
+
const model = ee(toRef(props, 'modelValue'), context.emit);
|
|
232
232
|
const dayPeriod = ref(((_a = model.value) !== null && _a !== void 0 ? _a : props.initialValue).getUTCHours() < 12 ? 'am' : 'pm');
|
|
233
233
|
// Effects
|
|
234
234
|
watch(dayPeriod, value => {
|
|
@@ -24,12 +24,12 @@ export { OrDateFormatV3 } from './or-date-format-v3/index.js';
|
|
|
24
24
|
export { OrDatePickerV3 } from './or-date-picker-v3/index.js';
|
|
25
25
|
export { OrDateRangePickerV3 } from './or-date-range-picker-v3/index.js';
|
|
26
26
|
export { OrDateTimeFormatV3 } from './or-date-time-format-v3/index.js';
|
|
27
|
-
export { O as OrDateTimePickerV3 } from '../OrDateTimePicker-
|
|
28
|
-
export { O as OrDateTimePickerDateControl, a as OrDateTimePickerDateSelect, b as OrDateTimePickerMonthSelect, f as formatMobileDate } from '../OrDateTimePickerMonthSelect-
|
|
27
|
+
export { O as OrDateTimePickerV3 } from '../OrDateTimePicker-77357215.js';
|
|
28
|
+
export { O as OrDateTimePickerDateControl, a as OrDateTimePickerDateSelect, b as OrDateTimePickerMonthSelect, f as formatMobileDate } from '../OrDateTimePickerMonthSelect-432edd73.js';
|
|
29
29
|
export { O as OrDateTimePickerMobileControl, a as OrDateTimePickerPopoverFooter, b as OrDateTimePickerPopoverHeader, g as getCurrentDate } from '../OrDateTimePickerPopoverHeader-e2b3f8f2.js';
|
|
30
|
-
export { O as OrDateTimePickerTimeControl, a as OrDateTimePickerTimeSelect, f as formatMobileTime, s as scrollToElementWithinContainer } from '../OrDateTimePickerTimeSelect-
|
|
30
|
+
export { O as OrDateTimePickerTimeControl, a as OrDateTimePickerTimeSelect, f as formatMobileTime, s as scrollToElementWithinContainer } from '../OrDateTimePickerTimeSelect-cc819da2.js';
|
|
31
31
|
export { f as formatDate } from '../formatDate-0536a8d5.js';
|
|
32
|
-
export { f as formatTime } from '../formatTime-
|
|
32
|
+
export { f as formatTime } from '../formatTime-df463e40.js';
|
|
33
33
|
export { g as getNextMonthDate } from '../getNextMonthDate-25fe3c1a.js';
|
|
34
34
|
export { DrawerPlacement, OrDrawerV3 } from './or-drawer-v3/index.js';
|
|
35
35
|
export { DropAreaSize, OrDropAreaV3, approximateFileSize } from './or-drop-area-v3/index.js';
|
|
@@ -99,11 +99,11 @@ export { OrTooltipV3 } from './or-tooltip-v3/index.js';
|
|
|
99
99
|
export { OrTreeV3, TreeNodeDropPosition } from './or-tree-v3/index.js';
|
|
100
100
|
import '@vueuse/core';
|
|
101
101
|
import 'vue-demi';
|
|
102
|
-
import '../useValidationAttributes-
|
|
102
|
+
import '../useValidationAttributes-C9_kxaDj-ee1d63dd.js';
|
|
103
103
|
import '../dom-qGGG2YCX-4d4cca6e.js';
|
|
104
104
|
import '@onereach/styles/screens.json';
|
|
105
105
|
import '@onereach/styles/tailwind.config.json';
|
|
106
|
-
import '../
|
|
106
|
+
import '../directives-0869d2a4.js';
|
|
107
107
|
import '../utils-72d9c2bb.js';
|
|
108
108
|
import '../normalize-component-cf2db48b.js';
|
|
109
109
|
import '../constants-2e3ea701.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { computedAsync, watchTriggerable } from '@vueuse/core';
|
|
2
2
|
import { defineComponent, reactive, ref, computed, toRef, nextTick } from 'vue-demi';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { J, Z, o as oe, t as te, e as ee } from '../../useValidationAttributes-C9_kxaDj-ee1d63dd.js';
|
|
4
|
+
import { a, c } from '../../directives-0869d2a4.js';
|
|
5
5
|
import { a8 as Ht, ae as u, an as Ft, P as Pt } from '../../utils-72d9c2bb.js';
|
|
6
6
|
import { OrErrorV3 as OrError } from '../or-error-v3/index.js';
|
|
7
7
|
import { OrHintV3 as OrHint } from '../or-hint-v3/index.js';
|
|
@@ -22,12 +22,12 @@ import '@onereach/styles/tailwind.config.json';
|
|
|
22
22
|
import '../../constants-2e3ea701.js';
|
|
23
23
|
import '../or-icon-v3/index.js';
|
|
24
24
|
import '../or-tooltip-v3/index.js';
|
|
25
|
+
import '../../style-inject.es-87955792.js';
|
|
25
26
|
import '@floating-ui/dom';
|
|
26
27
|
import '../or-bottom-sheet-v3/index.js';
|
|
27
28
|
import '../or-overlay-v3/index.js';
|
|
28
29
|
import '../or-teleport-v3/index.js';
|
|
29
30
|
import 'portal-vue';
|
|
30
|
-
import '../../style-inject.es-87955792.js';
|
|
31
31
|
import '../or-tag-v3/index.js';
|
|
32
32
|
import '../or-button-v3/index.js';
|
|
33
33
|
import '../../props-bba3dca8.js';
|
|
@@ -101,7 +101,7 @@ var script = defineComponent({
|
|
|
101
101
|
OrTagInput
|
|
102
102
|
},
|
|
103
103
|
directives: {
|
|
104
|
-
DropdownClose:
|
|
104
|
+
DropdownClose: a,
|
|
105
105
|
DropdownOpen: c
|
|
106
106
|
},
|
|
107
107
|
model: {
|
|
@@ -184,9 +184,9 @@ var script = defineComponent({
|
|
|
184
184
|
expose: ['root', 'popover', 'popoverState', 'reset', 'clear', 'focus', 'blur'],
|
|
185
185
|
setup(props, context) {
|
|
186
186
|
const attributes = reactive({
|
|
187
|
-
id:
|
|
188
|
-
...
|
|
189
|
-
...
|
|
187
|
+
id: J(),
|
|
188
|
+
...Z(),
|
|
189
|
+
...oe()
|
|
190
190
|
});
|
|
191
191
|
// Refs
|
|
192
192
|
const root = ref();
|
|
@@ -220,7 +220,7 @@ var script = defineComponent({
|
|
|
220
220
|
// Helpers
|
|
221
221
|
const {
|
|
222
222
|
isMobile
|
|
223
|
-
} =
|
|
223
|
+
} = te();
|
|
224
224
|
// Styles
|
|
225
225
|
const rootStyles = computed(() => ['or-autocomplete-v3', ...Autocomplete, ...(props.variant === InputBoxVariant.Embedded ? ['grow'] : [])]);
|
|
226
226
|
const controlStyles = computed(() => [...AutocompleteControl]);
|
|
@@ -233,7 +233,7 @@ var script = defineComponent({
|
|
|
233
233
|
const loaderContainerStyles = computed(() => [...AutocompleteLoaderContainer]);
|
|
234
234
|
const boxOpenStyles = computed(() => [...(popoverState.value === 'open' && !isMobile.value ? popoverFlipped.value ? AutocompleteInputBoxOpenFlipped : AutocompleteInputBoxOpen : [])]);
|
|
235
235
|
// State
|
|
236
|
-
const model =
|
|
236
|
+
const model = ee(toRef(props, 'modelValue'), context.emit);
|
|
237
237
|
const searchText = ref();
|
|
238
238
|
const filteredItems = computedAsync(async () => {
|
|
239
239
|
return searchText.value ? (await props.searchFunction(searchText.value, props.items)).filter(item => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { usePointerSwipe, onClickOutside } from '@vueuse/core';
|
|
2
2
|
import { ref, unref, computed, defineComponent, toRefs, watch } from 'vue-demi';
|
|
3
|
-
import {
|
|
3
|
+
import { a as re, X } from '../../useValidationAttributes-C9_kxaDj-ee1d63dd.js';
|
|
4
4
|
import { OrOverlayV3 as OrOverlay } from '../or-overlay-v3/index.js';
|
|
5
5
|
import { n as normalizeComponent } from '../../normalize-component-cf2db48b.js';
|
|
6
6
|
import '../../dom-qGGG2YCX-4d4cca6e.js';
|
|
@@ -18,7 +18,7 @@ var BottomSheetVariant;
|
|
|
18
18
|
function useBottomSheetSwipeState(root, content, fullscreen, variant, close) {
|
|
19
19
|
const inlineSwipingStyles = ref({});
|
|
20
20
|
const skipSwipe = ref(false);
|
|
21
|
-
const theme =
|
|
21
|
+
const theme = re();
|
|
22
22
|
const isEventSkipped = event => {
|
|
23
23
|
return variant.value === BottomSheetVariant.Basic || event.composedPath().includes(content.value) && fullscreen.value;
|
|
24
24
|
};
|
|
@@ -164,7 +164,7 @@ var script = defineComponent({
|
|
|
164
164
|
open,
|
|
165
165
|
close,
|
|
166
166
|
toggle
|
|
167
|
-
} =
|
|
167
|
+
} = X(isOpen, context.emit);
|
|
168
168
|
const fullscreen = ref(props.isFullscreen);
|
|
169
169
|
// Styles
|
|
170
170
|
const rootStyles = computed(() => ['or-bottom-sheet-v3', ...BottomSheet, ...BottomSheetVariants[props.variant]]);
|
|
@@ -7,7 +7,7 @@ import { OrLoaderV3 as OrLoader } from '../or-loader-v3/index.js';
|
|
|
7
7
|
import '../../constants-2e3ea701.js';
|
|
8
8
|
import '../or-icon-v3/index.js';
|
|
9
9
|
import '../or-tooltip-v3/index.js';
|
|
10
|
-
import '../../useValidationAttributes-
|
|
10
|
+
import '../../useValidationAttributes-C9_kxaDj-ee1d63dd.js';
|
|
11
11
|
import '../../dom-qGGG2YCX-4d4cca6e.js';
|
|
12
12
|
import '@vueuse/core';
|
|
13
13
|
import '@onereach/styles/screens.json';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, toRef, computed } from 'vue-demi';
|
|
2
|
-
import {
|
|
2
|
+
import { e as ee, t as te } from '../../useValidationAttributes-C9_kxaDj-ee1d63dd.js';
|
|
3
3
|
import { OrCheckboxTreeV3 as OrCheckboxTree } from '../or-checkbox-tree-v3/index.js';
|
|
4
4
|
import { OrFormGroupV3 as OrFormGroup, FormGroupDirection, FormGroupSpacing } from '../or-form-group-v3/index.js';
|
|
5
5
|
import { n as normalizeComponent } from '../../normalize-component-cf2db48b.js';
|
|
@@ -67,10 +67,10 @@ var script = defineComponent({
|
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
69
|
setup(props, context) {
|
|
70
|
-
const proxyModelValue =
|
|
70
|
+
const proxyModelValue = ee(toRef(props, 'modelValue'), context.emit);
|
|
71
71
|
const {
|
|
72
72
|
isMobile
|
|
73
|
-
} =
|
|
73
|
+
} = te();
|
|
74
74
|
const localSpacing = computed(() => isMobile.value ? FormGroupSpacing.NONE : props.spacing);
|
|
75
75
|
return {
|
|
76
76
|
proxyModelValue,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useToggle } from '@vueuse/core';
|
|
2
2
|
import { defineComponent, toRefs, computed, watch } from 'vue-demi';
|
|
3
|
-
import {
|
|
3
|
+
import { e as ee } from '../../useValidationAttributes-C9_kxaDj-ee1d63dd.js';
|
|
4
4
|
import { a1 as X } from '../../utils-72d9c2bb.js';
|
|
5
5
|
import { OrIconV3 as OrIcon } from '../or-icon-v3/index.js';
|
|
6
6
|
import { OrCheckboxV3 as OrCheckbox } from '../or-checkbox-v3/index.js';
|
|
@@ -89,7 +89,7 @@ var script = defineComponent({
|
|
|
89
89
|
const childrenValues = computed(() => {
|
|
90
90
|
return hasChildren.value ? extractChildrenValues(children.value) : [];
|
|
91
91
|
});
|
|
92
|
-
const proxyModelValue =
|
|
92
|
+
const proxyModelValue = ee(modelValue, context.emit);
|
|
93
93
|
const isAnyChildrenSelected = computed(() => {
|
|
94
94
|
var _a;
|
|
95
95
|
return (_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.some(value => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, reactive, ref, computed, toRef } from 'vue-demi';
|
|
2
|
-
import {
|
|
2
|
+
import { J, Z, e as ee } from '../../useValidationAttributes-C9_kxaDj-ee1d63dd.js';
|
|
3
3
|
import { aa as c, aj as i, a8 as Ht, P as Pt } from '../../utils-72d9c2bb.js';
|
|
4
4
|
import { OrLabelV3 as OrLabel, LabelVariant } from '../or-label-v3/index.js';
|
|
5
5
|
import { n as normalizeComponent } from '../../normalize-component-cf2db48b.js';
|
|
@@ -91,8 +91,8 @@ var script = defineComponent({
|
|
|
91
91
|
expose: ['root', 'focus', 'blur'],
|
|
92
92
|
setup(props, context) {
|
|
93
93
|
const attributes = reactive({
|
|
94
|
-
id:
|
|
95
|
-
...
|
|
94
|
+
id: J(),
|
|
95
|
+
...Z()
|
|
96
96
|
});
|
|
97
97
|
// Refs & Styles
|
|
98
98
|
const root = ref();
|
|
@@ -100,7 +100,7 @@ var script = defineComponent({
|
|
|
100
100
|
const control = ref();
|
|
101
101
|
const controlStyles = computed(() => [...CheckboxControl, ...CheckboxControlHandle]);
|
|
102
102
|
// State
|
|
103
|
-
const model =
|
|
103
|
+
const model = ee(toRef(props, 'modelValue'), context.emit);
|
|
104
104
|
const checked = computed(() => {
|
|
105
105
|
if (c(model.value)) {
|
|
106
106
|
if (i(props.value)) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, reactive, toRef, watch, onMounted, onUnmounted } from 'vue-demi';
|
|
2
|
-
import {
|
|
2
|
+
import { J, Z, o as oe, e as ee, a as re } from '../../useValidationAttributes-C9_kxaDj-ee1d63dd.js';
|
|
3
3
|
import { basicSetup } from 'codemirror';
|
|
4
4
|
import { indentWithTab } from '@codemirror/commands';
|
|
5
5
|
import { Compartment, EditorState } from '@codemirror/state';
|
|
@@ -294,11 +294,11 @@ var script = defineComponent({
|
|
|
294
294
|
const disabledExtensionCompartment = new Compartment();
|
|
295
295
|
// State
|
|
296
296
|
const controlAttributes = reactive({
|
|
297
|
-
id:
|
|
298
|
-
...
|
|
299
|
-
...
|
|
297
|
+
id: J(),
|
|
298
|
+
...Z(),
|
|
299
|
+
...oe()
|
|
300
300
|
});
|
|
301
|
-
const proxyModelValue =
|
|
301
|
+
const proxyModelValue = ee(toRef(props, 'modelValue'), context.emit);
|
|
302
302
|
const getLanguageExtension = async language => {
|
|
303
303
|
switch (language) {
|
|
304
304
|
case CodeLanguage.HTML:
|
|
@@ -331,7 +331,7 @@ var script = defineComponent({
|
|
|
331
331
|
(_b = (_a = modal.value) === null || _a === void 0 ? void 0 : _a.open) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
332
332
|
}
|
|
333
333
|
// #region Codemirror
|
|
334
|
-
const theme =
|
|
334
|
+
const theme = re();
|
|
335
335
|
const defaultExtensions = [basicSetup, keymap.of([indentWithTab]), EditorView.domEventHandlers({
|
|
336
336
|
input: event => {
|
|
337
337
|
context.emit('input', event);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useMagicKeys, whenever, onClickOutside } from '@vueuse/core';
|
|
2
2
|
import { logicAnd } from '@vueuse/math';
|
|
3
3
|
import { defineComponent, ref, computed, toRef, watch } from 'vue-demi';
|
|
4
|
-
import {
|
|
4
|
+
import { X } from '../../useValidationAttributes-C9_kxaDj-ee1d63dd.js';
|
|
5
5
|
import { OrOverlayV3 as OrOverlay } from '../or-overlay-v3/index.js';
|
|
6
6
|
import { OrButtonV3 as OrButton } from '../or-button-v3/index.js';
|
|
7
7
|
import { OrInputV3 as OrInput } from '../or-input-v3/index.js';
|
|
@@ -152,7 +152,7 @@ var script = defineComponent({
|
|
|
152
152
|
state,
|
|
153
153
|
open,
|
|
154
154
|
close
|
|
155
|
-
} =
|
|
155
|
+
} = X(toRef(props, 'isOpen'), context.emit);
|
|
156
156
|
const isInputActive = ref(false);
|
|
157
157
|
const confirmationValue = ref('');
|
|
158
158
|
watch(state, () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, toRefs, watch, ref } from 'vue-demi';
|
|
2
|
-
import {
|
|
2
|
+
import { X } from '../../useValidationAttributes-C9_kxaDj-ee1d63dd.js';
|
|
3
3
|
import { OrMenuV3 as OrMenu } from '../or-menu-v3/index.js';
|
|
4
4
|
import { PopoverPlacement } from '../or-popover-v3/index.js';
|
|
5
5
|
import { n as normalizeComponent } from '../../normalize-component-cf2db48b.js';
|
|
@@ -60,7 +60,7 @@ var script = defineComponent({
|
|
|
60
60
|
open,
|
|
61
61
|
close,
|
|
62
62
|
toggle
|
|
63
|
-
} =
|
|
63
|
+
} = X(ref(false), context.emit);
|
|
64
64
|
const reference = ref();
|
|
65
65
|
const triggerPoint = ref();
|
|
66
66
|
// Handlers
|
|
@@ -2,7 +2,7 @@ import { defineComponent, ref, computed, watch } from 'vue-demi';
|
|
|
2
2
|
import { n as normalizeComponent } from '../../normalize-component-cf2db48b.js';
|
|
3
3
|
import { OrCheckboxV3 as OrCheckbox } from '../or-checkbox-v3/index.js';
|
|
4
4
|
import { OrDatePickerV3 as OrDatePicker } from '../or-date-picker-v3/index.js';
|
|
5
|
-
import { O as OrDateTimePicker } from '../../OrDateTimePicker-
|
|
5
|
+
import { O as OrDateTimePicker } from '../../OrDateTimePicker-77357215.js';
|
|
6
6
|
import { OrInputV3 as OrInput } from '../or-input-v3/index.js';
|
|
7
7
|
import { OrRatingV3 as OrRating } from '../or-rating-v3/index.js';
|
|
8
8
|
import { OrSelectV3 as OrSelect } from '../or-select-v3/index.js';
|
|
@@ -15,14 +15,14 @@ import { OrNotificationV3 as OrNotification } from '../or-notification-v3/index.
|
|
|
15
15
|
import { OrPaginationV3 as OrPagination } from '../or-pagination-v3/index.js';
|
|
16
16
|
import { OrSearchV3 as OrSearch } from '../or-search-v3/index.js';
|
|
17
17
|
import { O as OrSkeletonText } from '../../OrSkeletonText-3a67a7dd.js';
|
|
18
|
-
import '../../useValidationAttributes-
|
|
18
|
+
import '../../useValidationAttributes-C9_kxaDj-ee1d63dd.js';
|
|
19
19
|
import '../../dom-qGGG2YCX-4d4cca6e.js';
|
|
20
20
|
import '@onereach/styles/screens.json';
|
|
21
21
|
import '@onereach/styles/tailwind.config.json';
|
|
22
22
|
import '../../utils-72d9c2bb.js';
|
|
23
23
|
import '../or-label-v3/index.js';
|
|
24
|
-
import '../../
|
|
25
|
-
import '../../OrDateTimePickerMonthSelect-
|
|
24
|
+
import '../../directives-0869d2a4.js';
|
|
25
|
+
import '../../OrDateTimePickerMonthSelect-432edd73.js';
|
|
26
26
|
import '../../formatDate-0536a8d5.js';
|
|
27
27
|
import '../or-button-v3/index.js';
|
|
28
28
|
import '../../constants-2e3ea701.js';
|
|
@@ -43,8 +43,8 @@ import '../or-error-v3/index.js';
|
|
|
43
43
|
import '../or-hint-v3/index.js';
|
|
44
44
|
import '../or-input-box-v3/index.js';
|
|
45
45
|
import '../../types-98e9a758.js';
|
|
46
|
-
import '../../OrDateTimePickerTimeSelect-
|
|
47
|
-
import '../../formatTime-
|
|
46
|
+
import '../../OrDateTimePickerTimeSelect-cc819da2.js';
|
|
47
|
+
import '../../formatTime-df463e40.js';
|
|
48
48
|
import '../../style-inject.es-87955792.js';
|
|
49
49
|
import '../../helpers-368c7a99.js';
|
|
50
50
|
import '../or-tags-v3/index.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, toRef } from 'vue-demi';
|
|
2
|
-
import {
|
|
2
|
+
import { _, K } from '../../useValidationAttributes-C9_kxaDj-ee1d63dd.js';
|
|
3
3
|
import { f as formatDate } from '../../formatDate-0536a8d5.js';
|
|
4
4
|
import { n as normalizeComponent } from '../../normalize-component-cf2db48b.js';
|
|
5
5
|
import '../../dom-qGGG2YCX-4d4cca6e.js';
|
|
@@ -41,8 +41,8 @@ var script = defineComponent({
|
|
|
41
41
|
const root = ref();
|
|
42
42
|
const rootStyles = computed(() => ['or-date-format-v3', ...DateFormat]);
|
|
43
43
|
// Options
|
|
44
|
-
const resolvedFormat =
|
|
45
|
-
const resolvedLocale =
|
|
44
|
+
const resolvedFormat = _(toRef(props, 'format'));
|
|
45
|
+
const resolvedLocale = K(toRef(props, 'locale'));
|
|
46
46
|
return {
|
|
47
47
|
root,
|
|
48
48
|
rootStyles,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, toRef, watch } from 'vue-demi';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { O as OrDateTimePickerDateControl, a as OrDateTimePickerDateSelect, b as OrDateTimePickerMonthSelect, f as formatMobileDate } from '../../OrDateTimePickerMonthSelect-
|
|
2
|
+
import { a, c } from '../../directives-0869d2a4.js';
|
|
3
|
+
import { _, K, e as ee } from '../../useValidationAttributes-C9_kxaDj-ee1d63dd.js';
|
|
4
|
+
import { O as OrDateTimePickerDateControl, a as OrDateTimePickerDateSelect, b as OrDateTimePickerMonthSelect, f as formatMobileDate } from '../../OrDateTimePickerMonthSelect-432edd73.js';
|
|
5
5
|
import { O as OrDateTimePickerMobileControl, a as OrDateTimePickerPopoverFooter, b as OrDateTimePickerPopoverHeader, g as getCurrentDate } from '../../OrDateTimePickerPopoverHeader-e2b3f8f2.js';
|
|
6
6
|
import { OrErrorV3 as OrError } from '../or-error-v3/index.js';
|
|
7
7
|
import { OrHintV3 as OrHint } from '../or-hint-v3/index.js';
|
|
@@ -58,7 +58,7 @@ var script = defineComponent({
|
|
|
58
58
|
OrPopover
|
|
59
59
|
},
|
|
60
60
|
directives: {
|
|
61
|
-
DropdownClose:
|
|
61
|
+
DropdownClose: a,
|
|
62
62
|
DropdownOpen: c
|
|
63
63
|
},
|
|
64
64
|
model: {
|
|
@@ -146,14 +146,14 @@ var script = defineComponent({
|
|
|
146
146
|
});
|
|
147
147
|
const popoverStyles = computed(() => ['or-date-picker-popover-v3', ...DatePickerPopover]);
|
|
148
148
|
// Options
|
|
149
|
-
const resolvedFormat =
|
|
150
|
-
const resolvedLocale =
|
|
149
|
+
const resolvedFormat = _(toRef(props, 'format'));
|
|
150
|
+
const resolvedLocale = K(toRef(props, 'locale'));
|
|
151
151
|
// State
|
|
152
152
|
const initialValue = ref((_a = props.modelValue) !== null && _a !== void 0 ? _a : getCurrentDate());
|
|
153
153
|
watch(() => props.modelValue, value => {
|
|
154
154
|
initialValue.value = value !== null && value !== void 0 ? value : getCurrentDate();
|
|
155
155
|
});
|
|
156
|
-
const model =
|
|
156
|
+
const model = ee(toRef(props, 'modelValue'), context.emit);
|
|
157
157
|
const draft = ref(model.value);
|
|
158
158
|
watch(model, value => {
|
|
159
159
|
draft.value = value;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, toRef, watch } from 'vue-demi';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { a, c } from '../../directives-0869d2a4.js';
|
|
3
|
+
import { _, K, e as ee, t as te } from '../../useValidationAttributes-C9_kxaDj-ee1d63dd.js';
|
|
4
4
|
import { OrErrorV3 as OrError } from '../or-error-v3/index.js';
|
|
5
5
|
import { OrHintV3 as OrHint } from '../or-hint-v3/index.js';
|
|
6
6
|
import { OrIconV3 as OrIcon } from '../or-icon-v3/index.js';
|
|
@@ -9,7 +9,7 @@ import { OrInputBoxV3 as OrInputBox } from '../or-input-box-v3/index.js';
|
|
|
9
9
|
import { OrLabelV3 as OrLabel } from '../or-label-v3/index.js';
|
|
10
10
|
import { OrPopoverV3 as OrPopover } from '../or-popover-v3/index.js';
|
|
11
11
|
import { g as getNextMonthDate } from '../../getNextMonthDate-25fe3c1a.js';
|
|
12
|
-
import { O as OrDateTimePickerDateControl, a as OrDateTimePickerDateSelect, b as OrDateTimePickerMonthSelect, f as formatMobileDate } from '../../OrDateTimePickerMonthSelect-
|
|
12
|
+
import { O as OrDateTimePickerDateControl, a as OrDateTimePickerDateSelect, b as OrDateTimePickerMonthSelect, f as formatMobileDate } from '../../OrDateTimePickerMonthSelect-432edd73.js';
|
|
13
13
|
import { O as OrDateTimePickerMobileControl, a as OrDateTimePickerPopoverFooter, b as OrDateTimePickerPopoverHeader, g as getCurrentDate } from '../../OrDateTimePickerPopoverHeader-e2b3f8f2.js';
|
|
14
14
|
import { a as InputBoxVariant } from '../../types-98e9a758.js';
|
|
15
15
|
import { n as normalizeComponent } from '../../normalize-component-cf2db48b.js';
|
|
@@ -59,7 +59,7 @@ var script = defineComponent({
|
|
|
59
59
|
OrPopover
|
|
60
60
|
},
|
|
61
61
|
directives: {
|
|
62
|
-
DropdownClose:
|
|
62
|
+
DropdownClose: a,
|
|
63
63
|
DropdownOpen: c
|
|
64
64
|
},
|
|
65
65
|
model: {
|
|
@@ -143,8 +143,8 @@ var script = defineComponent({
|
|
|
143
143
|
});
|
|
144
144
|
const popoverStyles = computed(() => ['or-date-range-picker-popover-v3', ...DateRangePickerPopover]);
|
|
145
145
|
// Options
|
|
146
|
-
const resolvedFormat =
|
|
147
|
-
const resolvedLocale =
|
|
146
|
+
const resolvedFormat = _(toRef(props, 'format'));
|
|
147
|
+
const resolvedLocale = K(toRef(props, 'locale'));
|
|
148
148
|
// State
|
|
149
149
|
const initialValueFrom = ref((_b = (_a = props.modelValue) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : getCurrentDate());
|
|
150
150
|
const initialValueTo = ref((_d = (_c = props.modelValue) === null || _c === void 0 ? void 0 : _c[1]) !== null && _d !== void 0 ? _d : getNextMonthDate());
|
|
@@ -153,7 +153,7 @@ var script = defineComponent({
|
|
|
153
153
|
initialValueFrom.value = (_a = value === null || value === void 0 ? void 0 : value[0]) !== null && _a !== void 0 ? _a : getCurrentDate();
|
|
154
154
|
initialValueTo.value = (_b = value === null || value === void 0 ? void 0 : value[1]) !== null && _b !== void 0 ? _b : getNextMonthDate();
|
|
155
155
|
});
|
|
156
|
-
const model =
|
|
156
|
+
const model = ee(toRef(props, 'modelValue'), context.emit);
|
|
157
157
|
const draft = ref(model.value);
|
|
158
158
|
watch(model, value => {
|
|
159
159
|
draft.value = value;
|
|
@@ -231,7 +231,7 @@ var script = defineComponent({
|
|
|
231
231
|
const {
|
|
232
232
|
isDesktop,
|
|
233
233
|
isMobile
|
|
234
|
-
} =
|
|
234
|
+
} = te();
|
|
235
235
|
return {
|
|
236
236
|
root,
|
|
237
237
|
rootStyles,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, toRef } from 'vue-demi';
|
|
2
|
-
import {
|
|
2
|
+
import { _, n as ne, K } from '../../useValidationAttributes-C9_kxaDj-ee1d63dd.js';
|
|
3
3
|
import { f as formatDate } from '../../formatDate-0536a8d5.js';
|
|
4
|
-
import { f as formatTime } from '../../formatTime-
|
|
4
|
+
import { f as formatTime } from '../../formatTime-df463e40.js';
|
|
5
5
|
import { n as normalizeComponent } from '../../normalize-component-cf2db48b.js';
|
|
6
6
|
import '../../dom-qGGG2YCX-4d4cca6e.js';
|
|
7
7
|
import '@vueuse/core';
|
|
@@ -46,9 +46,9 @@ var script = defineComponent({
|
|
|
46
46
|
const root = ref();
|
|
47
47
|
const rootStyles = computed(() => ['or-date-time-format-v3', ...DateTimeFormat]);
|
|
48
48
|
// Options
|
|
49
|
-
const resolvedDateFormat =
|
|
50
|
-
const resolvedTimeFormat =
|
|
51
|
-
const resolvedLocale =
|
|
49
|
+
const resolvedDateFormat = _(toRef(props, 'dateFormat'));
|
|
50
|
+
const resolvedTimeFormat = ne(toRef(props, 'timeFormat'));
|
|
51
|
+
const resolvedLocale = K(toRef(props, 'locale'));
|
|
52
52
|
return {
|
|
53
53
|
root,
|
|
54
54
|
rootStyles,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { O as OrDateTimePickerV3 } from '../../OrDateTimePicker-
|
|
2
|
-
export { O as OrDateTimePickerDateControl, a as OrDateTimePickerDateSelect, b as OrDateTimePickerMonthSelect, f as formatMobileDate } from '../../OrDateTimePickerMonthSelect-
|
|
1
|
+
export { O as OrDateTimePickerV3 } from '../../OrDateTimePicker-77357215.js';
|
|
2
|
+
export { O as OrDateTimePickerDateControl, a as OrDateTimePickerDateSelect, b as OrDateTimePickerMonthSelect, f as formatMobileDate } from '../../OrDateTimePickerMonthSelect-432edd73.js';
|
|
3
3
|
export { O as OrDateTimePickerMobileControl, a as OrDateTimePickerPopoverFooter, b as OrDateTimePickerPopoverHeader, g as getCurrentDate } from '../../OrDateTimePickerPopoverHeader-e2b3f8f2.js';
|
|
4
|
-
export { O as OrDateTimePickerTimeControl, a as OrDateTimePickerTimeSelect, f as formatMobileTime, s as scrollToElementWithinContainer } from '../../OrDateTimePickerTimeSelect-
|
|
4
|
+
export { O as OrDateTimePickerTimeControl, a as OrDateTimePickerTimeSelect, f as formatMobileTime, s as scrollToElementWithinContainer } from '../../OrDateTimePickerTimeSelect-cc819da2.js';
|
|
5
5
|
export { f as formatDate } from '../../formatDate-0536a8d5.js';
|
|
6
|
-
export { f as formatTime } from '../../formatTime-
|
|
6
|
+
export { f as formatTime } from '../../formatTime-df463e40.js';
|
|
7
7
|
export { g as getNextMonthDate } from '../../getNextMonthDate-25fe3c1a.js';
|
|
8
8
|
import 'vue-demi';
|
|
9
|
-
import '../../
|
|
10
|
-
import '../../useValidationAttributes-
|
|
9
|
+
import '../../directives-0869d2a4.js';
|
|
10
|
+
import '../../useValidationAttributes-C9_kxaDj-ee1d63dd.js';
|
|
11
11
|
import '../../dom-qGGG2YCX-4d4cca6e.js';
|
|
12
12
|
import '@vueuse/core';
|
|
13
13
|
import '@onereach/styles/screens.json';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { onClickOutside, useSwipe, SwipeDirection } from '@vueuse/core';
|
|
2
2
|
import { defineComponent, ref, computed, toRef } from 'vue-demi';
|
|
3
|
-
import {
|
|
3
|
+
import { X } from '../../useValidationAttributes-C9_kxaDj-ee1d63dd.js';
|
|
4
4
|
import { OrOverlayV3 as OrOverlay } from '../or-overlay-v3/index.js';
|
|
5
5
|
import { n as normalizeComponent } from '../../normalize-component-cf2db48b.js';
|
|
6
6
|
import '../../dom-qGGG2YCX-4d4cca6e.js';
|
|
@@ -82,7 +82,7 @@ var script = defineComponent({
|
|
|
82
82
|
open,
|
|
83
83
|
close,
|
|
84
84
|
toggle
|
|
85
|
-
} =
|
|
85
|
+
} = X(toRef(props, 'isOpen'), context.emit);
|
|
86
86
|
// eslint-disable-next-line vue/return-in-computed-property
|
|
87
87
|
const transform = computed(() => {
|
|
88
88
|
switch (props.placement) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, toRef } from 'vue-demi';
|
|
2
|
-
import {
|
|
2
|
+
import { e as ee, t as te } from '../../useValidationAttributes-C9_kxaDj-ee1d63dd.js';
|
|
3
3
|
import { OrIconV3 as OrIcon } from '../or-icon-v3/index.js';
|
|
4
4
|
import { n as normalizeComponent } from '../../normalize-component-cf2db48b.js';
|
|
5
5
|
import '../../dom-qGGG2YCX-4d4cca6e.js';
|
|
@@ -142,7 +142,7 @@ var script = defineComponent({
|
|
|
142
142
|
const textEmphasisStyles = computed(() => [...DropAreaTextEmphasis]);
|
|
143
143
|
const constraintsStyles = computed(() => [...DropAreaConstraints]);
|
|
144
144
|
// State
|
|
145
|
-
const proxyModelValue =
|
|
145
|
+
const proxyModelValue = ee(toRef(props, 'modelValue'), context.emit);
|
|
146
146
|
const accept = computed(() => {
|
|
147
147
|
if (!props.fileTypes || !Array.isArray(props.fileTypes)) return '';
|
|
148
148
|
return props.fileTypes.join(',');
|
|
@@ -184,7 +184,7 @@ var script = defineComponent({
|
|
|
184
184
|
const {
|
|
185
185
|
isDesktop,
|
|
186
186
|
isMobile
|
|
187
|
-
} =
|
|
187
|
+
} = te();
|
|
188
188
|
return {
|
|
189
189
|
root,
|
|
190
190
|
rootStyles,
|