@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,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, toRef } from 'vue-demi';
|
|
2
|
-
import {
|
|
2
|
+
import { X } from '../../useValidationAttributes-C9_kxaDj-ee1d63dd.js';
|
|
3
3
|
import { ResizeablePanelPadding, OrResizeablePanelV3 as OrResizeablePanel } from '../or-resizeable-panel-v3/index.js';
|
|
4
4
|
import { n as normalizeComponent } from '../../normalize-component-cf2db48b.js';
|
|
5
5
|
import '../../dom-qGGG2YCX-4d4cca6e.js';
|
|
@@ -134,7 +134,7 @@ var script = defineComponent({
|
|
|
134
134
|
open,
|
|
135
135
|
close,
|
|
136
136
|
toggle
|
|
137
|
-
} =
|
|
137
|
+
} = X(toRef(props, 'isOpen'), context.emit);
|
|
138
138
|
return {
|
|
139
139
|
root,
|
|
140
140
|
rootStyles,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useElementBounding, useElementHover, useDraggable, clamp } from '@vueuse/core';
|
|
2
2
|
import { defineComponent, ref, computed, toRef, watch } from 'vue-demi';
|
|
3
|
-
import {
|
|
3
|
+
import { e as ee } from '../../useValidationAttributes-C9_kxaDj-ee1d63dd.js';
|
|
4
4
|
import { a as SliderOrientation, S as SliderColor } from '../../types-75a1cc13.js';
|
|
5
5
|
import { OrTooltipV3 as OrTooltip } from '../or-tooltip-v3/index.js';
|
|
6
6
|
import { n as normalizeComponent } from '../../normalize-component-cf2db48b.js';
|
|
@@ -273,7 +273,7 @@ var script = defineComponent({
|
|
|
273
273
|
const labelStyles = computed(() => [...SliderLabel, ...SliderLabelOrientations[props.orientation]]);
|
|
274
274
|
const labelMarkStyles = computed(() => [...SliderLabelMark, ...SliderLabelMarkOrientations[props.orientation]]);
|
|
275
275
|
// State
|
|
276
|
-
const proxyModelValue =
|
|
276
|
+
const proxyModelValue = ee(toRef(props, 'modelValue'), context.emit, {
|
|
277
277
|
defaultValue: toRef(props, 'minValue')
|
|
278
278
|
});
|
|
279
279
|
const internalModelValue = computed({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, toRef } from 'vue-demi';
|
|
2
|
-
import {
|
|
2
|
+
import { e as ee } from '../../useValidationAttributes-C9_kxaDj-ee1d63dd.js';
|
|
3
3
|
import { OrButtonV3 as OrButton } from '../or-button-v3/index.js';
|
|
4
4
|
import { OrIconV3 as OrIcon } from '../or-icon-v3/index.js';
|
|
5
5
|
import { OrMenuV3 as OrMenu } from '../or-menu-v3/index.js';
|
|
@@ -59,7 +59,7 @@ var script = defineComponent({
|
|
|
59
59
|
const rootStyles = computed(() => ['or-sorting-v3', ...SortingRoot]);
|
|
60
60
|
const sortLabelStyles = computed(() => [...SortingLabel]);
|
|
61
61
|
// State
|
|
62
|
-
const proxyModelValue =
|
|
62
|
+
const proxyModelValue = ee(toRef(props, 'modelValue'), context.emit);
|
|
63
63
|
const sortLabel = computed(() => {
|
|
64
64
|
var _a;
|
|
65
65
|
return (_a = props.options.find(item => item.value === proxyModelValue.value)) === null || _a === void 0 ? void 0 : _a.label;
|
|
@@ -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 { OrLoaderV3 as OrLoader } from '../or-loader-v3/index.js';
|
|
@@ -104,8 +104,8 @@ var script = defineComponent({
|
|
|
104
104
|
expose: ['root', 'focus', 'blur'],
|
|
105
105
|
setup(props, context) {
|
|
106
106
|
const attributes = reactive({
|
|
107
|
-
id:
|
|
108
|
-
...
|
|
107
|
+
id: J(),
|
|
108
|
+
...Z()
|
|
109
109
|
});
|
|
110
110
|
// Refs & Styles
|
|
111
111
|
const root = ref();
|
|
@@ -114,7 +114,7 @@ var script = defineComponent({
|
|
|
114
114
|
const controlStyles = computed(() => [...SwitchControl, ...SwitchControlHandle]);
|
|
115
115
|
const loaderStyles = computed(() => [...SwitchLoader, ...SwitchLoaderHandle]);
|
|
116
116
|
// State
|
|
117
|
-
const model =
|
|
117
|
+
const model = ee(toRef(props, 'modelValue'), context.emit);
|
|
118
118
|
const checked = computed(() => {
|
|
119
119
|
if (c(model.value)) {
|
|
120
120
|
if (i(props.value)) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useResizeObserver } from '@vueuse/core';
|
|
2
2
|
import { defineComponent, ref, computed, reactive, toRef, watch, nextTick, onMounted } from 'vue-demi';
|
|
3
|
-
import {
|
|
3
|
+
import { e as ee } from '../../useValidationAttributes-C9_kxaDj-ee1d63dd.js';
|
|
4
4
|
import { OrIconV3 as OrIcon } from '../or-icon-v3/index.js';
|
|
5
5
|
import { OrMenuV3 as OrMenu } from '../or-menu-v3/index.js';
|
|
6
6
|
import { OrMenuItemV3 as OrMenuItem } from '../or-menu-item-v3/index.js';
|
|
@@ -131,7 +131,7 @@ var script = defineComponent({
|
|
|
131
131
|
normal: [],
|
|
132
132
|
hidden: []
|
|
133
133
|
});
|
|
134
|
-
const proxyModelValue =
|
|
134
|
+
const proxyModelValue = ee(toRef(props, 'modelValue'), context.emit);
|
|
135
135
|
const activeTab = computed(() => props.items.find(({
|
|
136
136
|
value
|
|
137
137
|
}) => value === proxyModelValue.value));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { onClickOutside } from '@vueuse/core';
|
|
2
2
|
import { defineComponent, ref, toRefs, computed, reactive, watch, nextTick } from 'vue-demi';
|
|
3
|
-
import {
|
|
3
|
+
import { t as te, J, Z, o as oe, e as ee } from '../../useValidationAttributes-C9_kxaDj-ee1d63dd.js';
|
|
4
4
|
import { an as Ft, a8 as Ht, P as Pt } from '../../utils-72d9c2bb.js';
|
|
5
5
|
import { OrErrorV3 as OrError } from '../or-error-v3/index.js';
|
|
6
6
|
import { OrHintV3 as OrHint } from '../or-hint-v3/index.js';
|
|
@@ -137,7 +137,7 @@ var script = defineComponent({
|
|
|
137
137
|
} = toRefs(props);
|
|
138
138
|
const {
|
|
139
139
|
isMobile
|
|
140
|
-
} =
|
|
140
|
+
} = te();
|
|
141
141
|
// Styles
|
|
142
142
|
const rootStyles = computed(() => ['or-tag-input-v3', ...TagInput, ...(props.variant === InputBoxVariant.Embedded ? ['grow'] : [])]);
|
|
143
143
|
const controlStyles = computed(() => [...TagInputControl]);
|
|
@@ -145,12 +145,12 @@ var script = defineComponent({
|
|
|
145
145
|
const inputBoxStyles = computed(() => ['interactivity-select', ...props.additionalInputBoxStyles]);
|
|
146
146
|
// State
|
|
147
147
|
const controlAttributes = reactive({
|
|
148
|
-
id:
|
|
149
|
-
...
|
|
150
|
-
...
|
|
148
|
+
id: J(),
|
|
149
|
+
...Z(),
|
|
150
|
+
...oe()
|
|
151
151
|
});
|
|
152
152
|
const activated = ref(false);
|
|
153
|
-
const proxyModelValue =
|
|
153
|
+
const proxyModelValue = ee(modelValue, context.emit);
|
|
154
154
|
const draftModelValue = ref();
|
|
155
155
|
const tagsItems = computed(() => {
|
|
156
156
|
return Ft(proxyModelValue.value).map(item => ({
|
|
@@ -4,7 +4,7 @@ import { n as normalizeComponent } from '../../normalize-component-cf2db48b.js';
|
|
|
4
4
|
import '../../constants-2e3ea701.js';
|
|
5
5
|
import '../or-icon-v3/index.js';
|
|
6
6
|
import '../or-tooltip-v3/index.js';
|
|
7
|
-
import '../../useValidationAttributes-
|
|
7
|
+
import '../../useValidationAttributes-C9_kxaDj-ee1d63dd.js';
|
|
8
8
|
import '../../dom-qGGG2YCX-4d4cca6e.js';
|
|
9
9
|
import '@vueuse/core';
|
|
10
10
|
import '@onereach/styles/screens.json';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, nextTick } from 'vue-demi';
|
|
2
|
-
import {
|
|
2
|
+
import { N } from '../../useValidationAttributes-C9_kxaDj-ee1d63dd.js';
|
|
3
3
|
import { OrButtonV3 as OrButton } from '../or-button-v3/index.js';
|
|
4
4
|
import { OrPopoverV3 as OrPopover } from '../or-popover-v3/index.js';
|
|
5
5
|
import { OrTagV3 as OrTag } from '../or-tag-v3/index.js';
|
|
@@ -128,7 +128,7 @@ var script = defineComponent({
|
|
|
128
128
|
// State
|
|
129
129
|
const {
|
|
130
130
|
innerItems
|
|
131
|
-
} =
|
|
131
|
+
} = N(container, {
|
|
132
132
|
hide: false,
|
|
133
133
|
threshold: 8
|
|
134
134
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useTextareaAutosize } from '@vueuse/core';
|
|
2
2
|
import { defineComponent, reactive, ref, computed, toRef } from 'vue-demi';
|
|
3
|
-
import {
|
|
3
|
+
import { J, Z, o as oe, e as ee } from '../../useValidationAttributes-C9_kxaDj-ee1d63dd.js';
|
|
4
4
|
import { ah as R } from '../../utils-72d9c2bb.js';
|
|
5
5
|
import { b as InputBoxSize, a as InputBoxVariant } from '../../types-98e9a758.js';
|
|
6
6
|
import { OrErrorV3 as OrError } from '../or-error-v3/index.js';
|
|
@@ -104,9 +104,9 @@ var script = defineComponent({
|
|
|
104
104
|
expose: ['root', 'focus', 'blur'],
|
|
105
105
|
setup(props, context) {
|
|
106
106
|
const attributes = reactive({
|
|
107
|
-
id:
|
|
108
|
-
...
|
|
109
|
-
...
|
|
107
|
+
id: J(),
|
|
108
|
+
...Z(),
|
|
109
|
+
...oe()
|
|
110
110
|
});
|
|
111
111
|
// Refs & Styles
|
|
112
112
|
const root = ref();
|
|
@@ -127,7 +127,7 @@ var script = defineComponent({
|
|
|
127
127
|
return {};
|
|
128
128
|
});
|
|
129
129
|
// State
|
|
130
|
-
const model =
|
|
130
|
+
const model = ee(toRef(props, 'modelValue'), context.emit, {
|
|
131
131
|
defaultValue: ref('')
|
|
132
132
|
});
|
|
133
133
|
const length = computed(() => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, toRef } from 'vue-demi';
|
|
2
|
-
import {
|
|
3
|
-
import { f as formatTime } from '../../formatTime-
|
|
2
|
+
import { n as ne, K } from '../../useValidationAttributes-C9_kxaDj-ee1d63dd.js';
|
|
3
|
+
import { f as formatTime } from '../../formatTime-df463e40.js';
|
|
4
4
|
import { n as normalizeComponent } from '../../normalize-component-cf2db48b.js';
|
|
5
5
|
import '../../dom-qGGG2YCX-4d4cca6e.js';
|
|
6
6
|
import '@vueuse/core';
|
|
@@ -41,8 +41,8 @@ var script = defineComponent({
|
|
|
41
41
|
const root = ref();
|
|
42
42
|
const rootStyles = computed(() => ['or-time-format-v3', ...TimeFormat]);
|
|
43
43
|
// Options
|
|
44
|
-
const resolvedFormat =
|
|
45
|
-
const resolvedLocale =
|
|
44
|
+
const resolvedFormat = ne(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 OrDateTimePickerTimeControl, a as OrDateTimePickerTimeSelect, f as formatMobileTime } from '../../OrDateTimePickerTimeSelect-
|
|
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 OrDateTimePickerTimeControl, a as OrDateTimePickerTimeSelect, f as formatMobileTime } from '../../OrDateTimePickerTimeSelect-cc819da2.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';
|
|
@@ -16,7 +16,7 @@ import '../../dom-qGGG2YCX-4d4cca6e.js';
|
|
|
16
16
|
import '@vueuse/core';
|
|
17
17
|
import '@onereach/styles/screens.json';
|
|
18
18
|
import '@onereach/styles/tailwind.config.json';
|
|
19
|
-
import '../../formatTime-
|
|
19
|
+
import '../../formatTime-df463e40.js';
|
|
20
20
|
import '../or-button-v3/index.js';
|
|
21
21
|
import '../../constants-2e3ea701.js';
|
|
22
22
|
import '../../props-bba3dca8.js';
|
|
@@ -53,7 +53,7 @@ var script = defineComponent({
|
|
|
53
53
|
OrPopover
|
|
54
54
|
},
|
|
55
55
|
directives: {
|
|
56
|
-
DropdownClose:
|
|
56
|
+
DropdownClose: a,
|
|
57
57
|
DropdownOpen: c
|
|
58
58
|
},
|
|
59
59
|
model: {
|
|
@@ -145,14 +145,14 @@ var script = defineComponent({
|
|
|
145
145
|
});
|
|
146
146
|
const popoverStyles = computed(() => ['or-time-picker-popover-v3', ...TimePickerPopover]);
|
|
147
147
|
// Options
|
|
148
|
-
const resolvedFormat =
|
|
149
|
-
const resolvedLocale =
|
|
148
|
+
const resolvedFormat = ne(toRef(props, 'format'));
|
|
149
|
+
const resolvedLocale = K(toRef(props, 'locale'));
|
|
150
150
|
// State
|
|
151
151
|
const initialValue = ref((_a = props.modelValue) !== null && _a !== void 0 ? _a : getCurrentDate());
|
|
152
152
|
watch(() => props.modelValue, value => {
|
|
153
153
|
initialValue.value = value !== null && value !== void 0 ? value : getCurrentDate();
|
|
154
154
|
});
|
|
155
|
-
const model =
|
|
155
|
+
const model = ee(toRef(props, 'modelValue'), context.emit);
|
|
156
156
|
const draft = ref(model.value);
|
|
157
157
|
watch(model, value => {
|
|
158
158
|
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 { n as ne, 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 { O as OrDateTimePickerMobileControl, a as OrDateTimePickerPopoverFooter, b as OrDateTimePickerPopoverHeader, g as getCurrentDate } from '../../OrDateTimePickerPopoverHeader-e2b3f8f2.js';
|
|
12
|
-
import { O as OrDateTimePickerTimeControl, a as OrDateTimePickerTimeSelect, f as formatMobileTime } from '../../OrDateTimePickerTimeSelect-
|
|
12
|
+
import { O as OrDateTimePickerTimeControl, a as OrDateTimePickerTimeSelect, f as formatMobileTime } from '../../OrDateTimePickerTimeSelect-cc819da2.js';
|
|
13
13
|
import { a as InputBoxVariant } from '../../types-98e9a758.js';
|
|
14
14
|
import { n as normalizeComponent } from '../../normalize-component-cf2db48b.js';
|
|
15
15
|
import '../../dom-qGGG2YCX-4d4cca6e.js';
|
|
@@ -27,7 +27,7 @@ import 'portal-vue';
|
|
|
27
27
|
import '../or-button-v3/index.js';
|
|
28
28
|
import '../../props-bba3dca8.js';
|
|
29
29
|
import '../or-loader-v3/index.js';
|
|
30
|
-
import '../../formatTime-
|
|
30
|
+
import '../../formatTime-df463e40.js';
|
|
31
31
|
|
|
32
32
|
const TimeRangePicker = [
|
|
33
33
|
// Layout
|
|
@@ -53,7 +53,7 @@ var script = defineComponent({
|
|
|
53
53
|
OrPopover
|
|
54
54
|
},
|
|
55
55
|
directives: {
|
|
56
|
-
DropdownClose:
|
|
56
|
+
DropdownClose: a,
|
|
57
57
|
DropdownOpen: c
|
|
58
58
|
},
|
|
59
59
|
model: {
|
|
@@ -153,8 +153,8 @@ var script = defineComponent({
|
|
|
153
153
|
});
|
|
154
154
|
const popoverStyles = computed(() => ['or-time-range-picker-popover-v3', ...TimeRangePickerPopover]);
|
|
155
155
|
// Options
|
|
156
|
-
const resolvedFormat =
|
|
157
|
-
const resolvedLocale =
|
|
156
|
+
const resolvedFormat = ne(toRef(props, 'format'));
|
|
157
|
+
const resolvedLocale = K(toRef(props, 'locale'));
|
|
158
158
|
// State
|
|
159
159
|
const initialValueFrom = ref((_b = (_a = props.modelValue) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : getCurrentDate());
|
|
160
160
|
const initialValueTo = ref((_d = (_c = props.modelValue) === null || _c === void 0 ? void 0 : _c[1]) !== null && _d !== void 0 ? _d : getCurrentDate());
|
|
@@ -163,7 +163,7 @@ var script = defineComponent({
|
|
|
163
163
|
initialValueFrom.value = (_a = value === null || value === void 0 ? void 0 : value[0]) !== null && _a !== void 0 ? _a : getCurrentDate();
|
|
164
164
|
initialValueTo.value = (_b = value === null || value === void 0 ? void 0 : value[1]) !== null && _b !== void 0 ? _b : getCurrentDate();
|
|
165
165
|
});
|
|
166
|
-
const model =
|
|
166
|
+
const model = ee(toRef(props, 'modelValue'), context.emit);
|
|
167
167
|
const draft = ref(model.value);
|
|
168
168
|
watch(model, value => {
|
|
169
169
|
draft.value = value;
|
|
@@ -222,7 +222,7 @@ var script = defineComponent({
|
|
|
222
222
|
const {
|
|
223
223
|
isDesktop,
|
|
224
224
|
isMobile
|
|
225
|
-
} =
|
|
225
|
+
} = te();
|
|
226
226
|
return {
|
|
227
227
|
root,
|
|
228
228
|
rootStyles,
|
|
@@ -4,7 +4,7 @@ import { OrLoaderV3 as OrLoader } from '../or-loader-v3/index.js';
|
|
|
4
4
|
import { s as styleInject } from '../../style-inject.es-87955792.js';
|
|
5
5
|
import { n as normalizeComponent } from '../../normalize-component-cf2db48b.js';
|
|
6
6
|
import { createSharedComposable, useEventBus, useToggle, noop } from '@vueuse/core';
|
|
7
|
-
import {
|
|
7
|
+
import { G } from '../../useValidationAttributes-C9_kxaDj-ee1d63dd.js';
|
|
8
8
|
import { OrTeleportV3 as OrTeleport } from '../or-teleport-v3/index.js';
|
|
9
9
|
import '../../constants-2e3ea701.js';
|
|
10
10
|
import '../or-icon-v3/index.js';
|
|
@@ -436,7 +436,7 @@ var script = defineComponent({
|
|
|
436
436
|
off('toastUpdate', toastUpdate);
|
|
437
437
|
off('toastCloseAll', clearAll);
|
|
438
438
|
});
|
|
439
|
-
|
|
439
|
+
G(root, isActive);
|
|
440
440
|
return {
|
|
441
441
|
on,
|
|
442
442
|
off,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, toRef } from 'vue-demi';
|
|
2
|
-
import {
|
|
2
|
+
import { X } from '../../useValidationAttributes-C9_kxaDj-ee1d63dd.js';
|
|
3
3
|
import { PopoverPlacement, OrPopoverV3 as OrPopover } from '../or-popover-v3/index.js';
|
|
4
4
|
import { n as normalizeComponent } from '../../normalize-component-cf2db48b.js';
|
|
5
5
|
import '../../dom-qGGG2YCX-4d4cca6e.js';
|
|
@@ -135,7 +135,7 @@ var script = defineComponent({
|
|
|
135
135
|
open,
|
|
136
136
|
close,
|
|
137
137
|
toggle
|
|
138
|
-
} =
|
|
138
|
+
} = X(toRef(props, 'isOpen'), context.emit, {
|
|
139
139
|
debounce: toRef(props, 'debounce')
|
|
140
140
|
});
|
|
141
141
|
return {
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const o = (d, n) => {
|
|
2
|
+
d.addEventListener("keydown", (e) => {
|
|
3
|
+
["Escape"].includes(e.key) && n.value(e);
|
|
4
|
+
});
|
|
5
|
+
}, a = {
|
|
6
|
+
created: o,
|
|
7
|
+
bind: o
|
|
8
|
+
}, t = (d, n) => {
|
|
9
|
+
d.addEventListener("keydown", (e) => {
|
|
10
|
+
["Enter", " "].includes(e.key) && n.value(e);
|
|
11
|
+
}), d.addEventListener("click", (e) => {
|
|
12
|
+
e.stopPropagation(), e.preventDefault(), n.value(e);
|
|
13
|
+
});
|
|
14
|
+
}, c = {
|
|
15
|
+
created: t,
|
|
16
|
+
bind: t
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export { a, c };
|
package/dist/esm/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { a as DropdownClose, c as DropdownOpen } from './directives-0869d2a4.js';
|
|
2
2
|
export { s as getItemByValue, m as getItemsByValue, l as searchItemsByLabel } from './helpers-368c7a99.js';
|
|
3
|
-
export {
|
|
3
|
+
export { L as DATE_FORMAT, r as DateFormat, U as LOCALE, V as TIME_FORMAT, h as TimeFormat, l as getPageElevations, i as isVisible, Z as useControlAttributes, _ as useDateFormat, k as useDateMask, G as useElevation, J as useIdAttribute, K as useLocale, N as useOverflow, X as usePopoverState, e as useProxyModelValue, t as useResponsive, a as useTheme, n as useTimeFormat, u as useTimeMask, s as useToggle, o as useValidationAttributes } from './useValidationAttributes-C9_kxaDj-ee1d63dd.js';
|
|
4
4
|
export { h as CODE_BACKSPACE, H as CODE_BREAK, $ as CODE_DELETE, y as CODE_DOWN, F as CODE_END, B as CODE_ENTER, m as CODE_ESC, x as CODE_HOME, G as CODE_LEFT, b as CODE_PAGEDOWN, l as CODE_PAGEUP, U as CODE_RIGHT, j as CODE_SPACE, V as CODE_UP, T as HSL_LIMITS, z as PLACEMENT_BOTTOM_END, w as PLACEMENT_BOTTOM_START, q as PLACEMENT_LEFT_END, k as PLACEMENT_LEFT_START, Z as PLACEMENT_RIGHT_END, Y as PLACEMENT_RIGHT_START, W as PLACEMENT_TOP_END, K as PLACEMENT_TOP_START, g as RX_ABBREVIATION_FROM_STRING, Q as RX_ARRAY_NOTATION, J as RX_BV_PREFIX, C as RX_DATE, N as RX_DATE_SPLIT, v as RX_DIGITS, D as RX_ENCODED_COMMA, X as RX_ENCODE_REVERSE, t as RX_EXTENSION, n as RX_HASH, r as RX_HASH_ID, i as RX_HREF, o as RX_HTML_TAGS, s as RX_HYPHENATE, a as RX_LONG_COLOR, e as RX_LOWER_UPPER, c as RX_NUMBER, E as RX_PLUS, p as RX_QUERY_START, _ as RX_REGEXP_REPLACE, d as RX_SHORT_COLOR, R as RX_SPACES, f as RX_SPACE_SPLIT, u as RX_STAR, A as RX_START_SPACE_WORD, S as RX_TIME, I as RX_TRIM_LEFT, O as RX_TRIM_RIGHT, L as RX_UNDERSCORE, M as RX_UN_KEBAB, P as exclude, a0 as extractCssVarName, a1 as flattenDeep, a2 as generateColorFromString, a3 as generateHslFromString, a4 as getAbbreviation, a5 as getHashOfString, a6 as hexToRgb, a7 as hslToColorString, a8 as include, a9 as isAncestor, aa as isArray, ab as isDescendant, ac as isEmpty, ad as isEqual, ae as isNil, af as isNull, ag as isNumber, ah as isObject, ai as isString, aj as isUndefined, ak as normalize, al as pxToRem, am as rgbToHex, an as toArray } from './utils-72d9c2bb.js';
|
|
5
5
|
export { t as requestAF } from './dom-qGGG2YCX-4d4cca6e.js';
|
|
6
6
|
export { OrToastContainerV3, OrToastV3, PropsV3, TypesV3, useQueueV3, useToastV3 } from './components/or-toast-v3/index.js';
|
|
@@ -30,12 +30,12 @@ export { OrDateFormatV3 } from './components/or-date-format-v3/index.js';
|
|
|
30
30
|
export { OrDatePickerV3 } from './components/or-date-picker-v3/index.js';
|
|
31
31
|
export { OrDateRangePickerV3 } from './components/or-date-range-picker-v3/index.js';
|
|
32
32
|
export { OrDateTimeFormatV3 } from './components/or-date-time-format-v3/index.js';
|
|
33
|
-
export { O as OrDateTimePickerV3 } from './OrDateTimePicker-
|
|
34
|
-
export { O as OrDateTimePickerDateControl, a as OrDateTimePickerDateSelect, b as OrDateTimePickerMonthSelect, f as formatMobileDate } from './OrDateTimePickerMonthSelect-
|
|
33
|
+
export { O as OrDateTimePickerV3 } from './OrDateTimePicker-77357215.js';
|
|
34
|
+
export { O as OrDateTimePickerDateControl, a as OrDateTimePickerDateSelect, b as OrDateTimePickerMonthSelect, f as formatMobileDate } from './OrDateTimePickerMonthSelect-432edd73.js';
|
|
35
35
|
export { O as OrDateTimePickerMobileControl, a as OrDateTimePickerPopoverFooter, b as OrDateTimePickerPopoverHeader, g as getCurrentDate } from './OrDateTimePickerPopoverHeader-e2b3f8f2.js';
|
|
36
|
-
export { O as OrDateTimePickerTimeControl, a as OrDateTimePickerTimeSelect, f as formatMobileTime, s as scrollToElementWithinContainer } from './OrDateTimePickerTimeSelect-
|
|
36
|
+
export { O as OrDateTimePickerTimeControl, a as OrDateTimePickerTimeSelect, f as formatMobileTime, s as scrollToElementWithinContainer } from './OrDateTimePickerTimeSelect-cc819da2.js';
|
|
37
37
|
export { f as formatDate } from './formatDate-0536a8d5.js';
|
|
38
|
-
export { f as formatTime } from './formatTime-
|
|
38
|
+
export { f as formatTime } from './formatTime-df463e40.js';
|
|
39
39
|
export { g as getNextMonthDate } from './getNextMonthDate-25fe3c1a.js';
|
|
40
40
|
export { DrawerPlacement, OrDrawerV3 } from './components/or-drawer-v3/index.js';
|
|
41
41
|
export { DropAreaSize, OrDropAreaV3, approximateFileSize } from './components/or-drop-area-v3/index.js';
|
|
@@ -2,7 +2,7 @@ import { useAttrs, computed, inject, isRef, ref, watch, getCurrentInstance, onMo
|
|
|
2
2
|
import { t } from './dom-qGGG2YCX-4d4cca6e.js';
|
|
3
3
|
import { useMutationObserver, useResizeObserver, refDebounced, useMediaQuery } from '@vueuse/core';
|
|
4
4
|
import O from '@onereach/styles/screens.json';
|
|
5
|
-
import
|
|
5
|
+
import Y from '@onereach/styles/tailwind.config.json';
|
|
6
6
|
|
|
7
7
|
var r = /* @__PURE__ */ ((u) => (u.Short = "short", u.Medium = "medium", u.Long = "long", u))(r || {}), h = /* @__PURE__ */ ((u) => (u.Auto = "auto", u.H12 = "h12", u.H23 = "h23", u))(h || {});
|
|
8
8
|
|
|
@@ -19,14 +19,14 @@ function l(e) {
|
|
|
19
19
|
return n;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
const
|
|
22
|
+
const Z = () => {
|
|
23
23
|
const e = useAttrs();
|
|
24
24
|
return {
|
|
25
25
|
readonly: computed(() => e.readonly),
|
|
26
26
|
disabled: computed(() => e.disabled),
|
|
27
27
|
"force-state": computed(() => e["force-state"])
|
|
28
28
|
};
|
|
29
|
-
},
|
|
29
|
+
}, L = Symbol(), U = Symbol(), V = Symbol(), _ = (e) => computed(() => e.value ?? inject(L, r.Short)), k = (e, t) => computed(() => typeof e.value != "function" ? new Intl.DateTimeFormat(t.value, {
|
|
30
30
|
dateStyle: e.value,
|
|
31
31
|
timeZone: "UTC"
|
|
32
32
|
}).formatToParts(Date.UTC(1, 0, 1, 1, 1)).reduce((r, n) => {
|
|
@@ -49,55 +49,55 @@ const k = () => {
|
|
|
49
49
|
default:
|
|
50
50
|
return r + n.value;
|
|
51
51
|
}
|
|
52
|
-
}, "") : e.value(void 0, t.value)),
|
|
52
|
+
}, "") : e.value(void 0, t.value)), G = (e, t) => {
|
|
53
53
|
const s = isRef(e) ? e : ref(e), r = isRef(t) ? t : ref();
|
|
54
|
-
function n(
|
|
55
|
-
|
|
54
|
+
function n(i) {
|
|
55
|
+
i.style.zIndex = String(Math.max(0, ...l(i)) + 1);
|
|
56
56
|
}
|
|
57
|
-
watch([s, r], ([
|
|
58
|
-
|
|
57
|
+
watch([s, r], ([i]) => {
|
|
58
|
+
i && n(i);
|
|
59
59
|
}, { immediate: !0 });
|
|
60
|
-
},
|
|
60
|
+
}, J = () => {
|
|
61
61
|
const e = useAttrs(), t = getCurrentInstance();
|
|
62
62
|
return computed(() => e.id ?? (t == null ? void 0 : t.uid.toString()));
|
|
63
|
-
},
|
|
64
|
-
const { hide: s = !0, threshold: r = 0 } = t$1, n = isRef(e) ? e : ref(e),
|
|
65
|
-
function
|
|
66
|
-
const
|
|
67
|
-
if (
|
|
68
|
-
const d = [...
|
|
69
|
-
const
|
|
70
|
-
return D + I > w + A + r ? (s &&
|
|
63
|
+
}, K = (e) => computed(() => e.value ?? inject(U, navigator.language)), N = (e, t$1 = {}) => {
|
|
64
|
+
const { hide: s = !0, threshold: r = 0 } = t$1, n = isRef(e) ? e : ref(e), i = ref([]), l = ref([]);
|
|
65
|
+
function a() {
|
|
66
|
+
const o = n.value;
|
|
67
|
+
if (o) {
|
|
68
|
+
const d = [...o.children].reduce(({ innerItems: m, outerItems: y }, T) => {
|
|
69
|
+
const v = T, { x: D, width: I } = v.getBoundingClientRect(), { x: w, width: A } = o.getBoundingClientRect();
|
|
70
|
+
return D + I > w + A + r ? (s && v.style.setProperty("visibility", "hidden"), {
|
|
71
71
|
innerItems: m,
|
|
72
|
-
outerItems: [...y,
|
|
73
|
-
}) : (s &&
|
|
74
|
-
innerItems: [...m,
|
|
72
|
+
outerItems: [...y, v]
|
|
73
|
+
}) : (s && v.style.removeProperty("visibility"), {
|
|
74
|
+
innerItems: [...m, v],
|
|
75
75
|
outerItems: y
|
|
76
76
|
});
|
|
77
77
|
}, {
|
|
78
78
|
innerItems: [],
|
|
79
79
|
outerItems: []
|
|
80
80
|
});
|
|
81
|
-
|
|
81
|
+
i.value = d.innerItems, l.value = d.outerItems;
|
|
82
82
|
} else
|
|
83
|
-
|
|
83
|
+
i.value = [], l.value = [];
|
|
84
84
|
}
|
|
85
|
-
return watch(n,
|
|
85
|
+
return watch(n, a, {
|
|
86
86
|
immediate: !0
|
|
87
|
-
}), useMutationObserver(n,
|
|
87
|
+
}), useMutationObserver(n, a, {
|
|
88
88
|
childList: !0
|
|
89
|
-
}), useResizeObserver(n, () => t(
|
|
90
|
-
innerItems:
|
|
89
|
+
}), useResizeObserver(n, () => t(a)), {
|
|
90
|
+
innerItems: i,
|
|
91
91
|
outerItems: l
|
|
92
92
|
};
|
|
93
|
-
},
|
|
93
|
+
}, X = (e, t, s = {}) => {
|
|
94
94
|
const r = ref(e.value ? "open" : "closed");
|
|
95
|
-
watch(e, (
|
|
96
|
-
r.value =
|
|
95
|
+
watch(e, (o) => {
|
|
96
|
+
r.value = o ? "open" : "closed";
|
|
97
97
|
});
|
|
98
98
|
const n = refDebounced(r, s.debounce ?? 0);
|
|
99
|
-
watch(n, (
|
|
100
|
-
switch (t("update:state",
|
|
99
|
+
watch(n, (o) => {
|
|
100
|
+
switch (t("update:state", o), o) {
|
|
101
101
|
case "open":
|
|
102
102
|
t("open");
|
|
103
103
|
break;
|
|
@@ -106,23 +106,23 @@ const k = () => {
|
|
|
106
106
|
break;
|
|
107
107
|
}
|
|
108
108
|
});
|
|
109
|
-
function
|
|
109
|
+
function i() {
|
|
110
110
|
r.value = "open";
|
|
111
111
|
}
|
|
112
112
|
function l() {
|
|
113
113
|
r.value = "closed";
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function a() {
|
|
116
116
|
r.value = r.value === "open" ? "closed" : "open";
|
|
117
117
|
}
|
|
118
118
|
return {
|
|
119
119
|
state: n,
|
|
120
|
-
open:
|
|
120
|
+
open: i,
|
|
121
121
|
close: l,
|
|
122
|
-
toggle:
|
|
122
|
+
toggle: a
|
|
123
123
|
};
|
|
124
124
|
};
|
|
125
|
-
function
|
|
125
|
+
function ee(e, t, s = {}) {
|
|
126
126
|
const { defaultValue: r } = s;
|
|
127
127
|
return r ? computed({
|
|
128
128
|
get: () => e.value ?? r.value,
|
|
@@ -136,30 +136,30 @@ function re(e, t, s = {}) {
|
|
|
136
136
|
}
|
|
137
137
|
});
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function te(e) {
|
|
140
140
|
const t = getCurrentInstance(), s = ref();
|
|
141
|
-
e ? watch(e, (
|
|
142
|
-
s.value =
|
|
141
|
+
e ? watch(e, (a) => {
|
|
142
|
+
s.value = a;
|
|
143
143
|
}) : onMounted(() => {
|
|
144
144
|
if (t) {
|
|
145
|
-
const
|
|
145
|
+
const a = t.vnode, o = a.el || a.elm;
|
|
146
146
|
o instanceof Element && (s.value = o);
|
|
147
147
|
}
|
|
148
148
|
});
|
|
149
|
-
const r = computed(() => l(s.value) ||
|
|
150
|
-
function l(
|
|
149
|
+
const r = computed(() => l(s.value) || i.value), n = computed(() => !r.value), i = useMediaQuery(`(min-width: ${O.md})`);
|
|
150
|
+
function l(a) {
|
|
151
151
|
var d;
|
|
152
|
-
if (!
|
|
152
|
+
if (!a)
|
|
153
153
|
return !1;
|
|
154
|
-
const
|
|
155
|
-
return
|
|
154
|
+
const o = (d = a.getAttribute("force-screen")) == null ? void 0 : d.split(/\s+/);
|
|
155
|
+
return o != null && o.some((m) => ["md", "lg", "xl"].includes(m)) ? !0 : l(a.parentElement ?? void 0);
|
|
156
156
|
}
|
|
157
157
|
return {
|
|
158
158
|
isDesktop: r,
|
|
159
159
|
isMobile: n
|
|
160
160
|
};
|
|
161
161
|
}
|
|
162
|
-
const
|
|
162
|
+
const re = () => Y.theme, ne = (e) => computed(() => e.value ?? inject(V, h.Auto)), ue = (e, t) => computed(() => typeof e.value != "function" ? new Intl.DateTimeFormat(t.value, {
|
|
163
163
|
timeStyle: "short",
|
|
164
164
|
hourCycle: e.value !== h.Auto ? e.value : void 0,
|
|
165
165
|
timeZone: "UTC"
|
|
@@ -175,7 +175,7 @@ const ue = () => L.theme, se = (e) => computed(() => e.value ?? inject(q, h.Auto
|
|
|
175
175
|
return r + n.value;
|
|
176
176
|
}
|
|
177
177
|
}, "") : e.value(void 0, t.value));
|
|
178
|
-
function
|
|
178
|
+
function se(e = !1) {
|
|
179
179
|
const t = ref(e);
|
|
180
180
|
function s() {
|
|
181
181
|
t.value = !0;
|
|
@@ -193,7 +193,7 @@ function ae(e = !1) {
|
|
|
193
193
|
toggle: n
|
|
194
194
|
};
|
|
195
195
|
}
|
|
196
|
-
const
|
|
196
|
+
const oe = () => {
|
|
197
197
|
const e = useAttrs();
|
|
198
198
|
return {
|
|
199
199
|
required: computed(() => e.required),
|
|
@@ -206,4 +206,4 @@ const ie = () => {
|
|
|
206
206
|
};
|
|
207
207
|
};
|
|
208
208
|
|
|
209
|
-
export { G, J, K, N, U, V, X,
|
|
209
|
+
export { G, J, K, L, N, U, V, X, Z, _, re as a, ee as e, h, i, k, l, ne as n, oe as o, r, se as s, te as t, ue as u };
|