@onereach/ui-components 4.1.1-beta.2588.0 → 4.1.1-beta.2590.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/components/OrDatePickerV3/OrDatePicker.js +2 -6
- package/dist/bundled/v2/components/OrDatePickerV3/index.js +1 -5
- package/dist/bundled/v2/components/OrDateTimePickerV3/OrDateTimePicker.js +2 -6
- package/dist/bundled/v2/components/OrDateTimePickerV3/hooks/useCurrentDate.d.ts +1 -0
- package/dist/bundled/v2/components/OrDateTimePickerV3/hooks/useCurrentDate.js +6 -0
- package/dist/bundled/v2/components/OrDateTimePickerV3/index.js +1 -5
- package/dist/bundled/v2/components/OrTimePickerV3/OrTimePicker.js +2 -6
- package/dist/bundled/v2/components/OrTimePickerV3/index.js +1 -5
- package/dist/bundled/v2/components/index.js +1 -5
- package/dist/bundled/v2/index.js +1 -5
- package/dist/bundled/v3/{OrDatePicker.vue_vue_type_script_lang-b581f7f5.js → OrDatePicker.vue_vue_type_script_lang-8c1c9c3e.js} +2 -6
- package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-54d6f97e.js → OrDateTimePicker.vue_vue_type_script_lang-cba80c1c.js} +2 -6
- package/dist/bundled/v3/{OrTimePicker.vue_vue_type_script_lang-af81b157.js → OrTimePicker.vue_vue_type_script_lang-34c2901e.js} +2 -6
- package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.js +3 -7
- package/dist/bundled/v3/components/OrDatePickerV3/index.js +2 -6
- package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.js +3 -7
- package/dist/bundled/v3/components/OrDateTimePickerV3/hooks/useCurrentDate.d.ts +1 -0
- package/dist/bundled/v3/components/OrDateTimePickerV3/hooks/useCurrentDate.js +6 -0
- package/dist/bundled/v3/components/OrDateTimePickerV3/index.js +2 -6
- package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.js +3 -7
- package/dist/bundled/v3/components/OrTimePickerV3/index.js +2 -6
- package/dist/bundled/v3/components/index.js +4 -8
- package/dist/bundled/v3/index.js +4 -8
- package/dist/esm/v2/{OrDatePicker-28e45b6f.js → OrDatePicker-ff4cebfb.js} +2 -2
- package/dist/esm/v2/{OrDateTimePicker-57ab43ba.js → OrDateTimePicker-da3d6d4d.js} +2 -2
- package/dist/esm/v2/{OrDateTimePickerPopoverHeader-7eaba46c.js → OrDateTimePickerPopoverHeader-9e49aba0.js} +4 -19
- package/dist/esm/v2/{OrTimePicker-3f0b4607.js → OrTimePicker-038ceb81.js} +2 -2
- package/dist/esm/v2/components/index.js +4 -4
- package/dist/esm/v2/components/or-date-picker-v3/index.js +2 -2
- package/dist/esm/v2/components/or-date-time-picker-v3/hooks/useCurrentDate.d.ts +1 -0
- package/dist/esm/v2/components/or-date-time-picker-v3/index.js +2 -2
- package/dist/esm/v2/components/or-time-picker-v3/index.js +2 -2
- package/dist/esm/v2/index.js +4 -4
- package/dist/esm/v3/{OrDatePicker-0a7a2b80.js → OrDatePicker-748c8f09.js} +2 -2
- package/dist/esm/v3/{OrDateTimePicker-5c353b72.js → OrDateTimePicker-10f2eb69.js} +2 -2
- package/dist/esm/v3/{OrDateTimePickerPopoverHeader-7f25ca83.js → OrDateTimePickerPopoverHeader-042566f4.js} +4 -19
- package/dist/esm/v3/{OrTimePicker-692cda82.js → OrTimePicker-2fe3c573.js} +2 -2
- package/dist/esm/v3/components/index.js +4 -4
- package/dist/esm/v3/components/or-date-picker-v3/index.js +2 -2
- package/dist/esm/v3/components/or-date-time-picker-v3/hooks/useCurrentDate.d.ts +1 -0
- package/dist/esm/v3/components/or-date-time-picker-v3/index.js +2 -2
- package/dist/esm/v3/components/or-time-picker-v3/index.js +2 -2
- package/dist/esm/v3/index.js +4 -4
- package/package.json +2 -2
- package/src/components/or-date-picker-v3/OrDatePicker.vue +2 -12
- package/src/components/or-date-time-picker-v3/OrDateTimePicker.vue +2 -12
- package/src/components/or-date-time-picker-v3/hooks/useCurrentDate.ts +9 -0
- package/src/components/or-time-picker-v3/OrTimePicker.vue +2 -12
- package/dist/bundled/v2/components/OrDateTimePickerV3/hooks/useDefaultDate.d.ts +0 -1
- package/dist/bundled/v2/components/OrDateTimePickerV3/hooks/useDefaultDate.js +0 -5
- package/dist/bundled/v2/components/OrDateTimePickerV3/hooks/useDefaultHours.d.ts +0 -1
- package/dist/bundled/v2/components/OrDateTimePickerV3/hooks/useDefaultHours.js +0 -5
- package/dist/bundled/v2/components/OrDateTimePickerV3/hooks/useDefaultMinutes.d.ts +0 -1
- package/dist/bundled/v2/components/OrDateTimePickerV3/hooks/useDefaultMinutes.js +0 -5
- package/dist/bundled/v2/components/OrDateTimePickerV3/hooks/useDefaultMonth.d.ts +0 -1
- package/dist/bundled/v2/components/OrDateTimePickerV3/hooks/useDefaultMonth.js +0 -5
- package/dist/bundled/v2/components/OrDateTimePickerV3/hooks/useDefaultYear.d.ts +0 -1
- package/dist/bundled/v2/components/OrDateTimePickerV3/hooks/useDefaultYear.js +0 -5
- package/dist/bundled/v3/components/OrDateTimePickerV3/hooks/useDefaultDate.d.ts +0 -1
- package/dist/bundled/v3/components/OrDateTimePickerV3/hooks/useDefaultDate.js +0 -5
- package/dist/bundled/v3/components/OrDateTimePickerV3/hooks/useDefaultHours.d.ts +0 -1
- package/dist/bundled/v3/components/OrDateTimePickerV3/hooks/useDefaultHours.js +0 -5
- package/dist/bundled/v3/components/OrDateTimePickerV3/hooks/useDefaultMinutes.d.ts +0 -1
- package/dist/bundled/v3/components/OrDateTimePickerV3/hooks/useDefaultMinutes.js +0 -5
- package/dist/bundled/v3/components/OrDateTimePickerV3/hooks/useDefaultMonth.d.ts +0 -1
- package/dist/bundled/v3/components/OrDateTimePickerV3/hooks/useDefaultMonth.js +0 -5
- package/dist/bundled/v3/components/OrDateTimePickerV3/hooks/useDefaultYear.d.ts +0 -1
- package/dist/bundled/v3/components/OrDateTimePickerV3/hooks/useDefaultYear.js +0 -5
- package/dist/esm/v2/components/or-date-time-picker-v3/hooks/useDefaultDate.d.ts +0 -1
- package/dist/esm/v2/components/or-date-time-picker-v3/hooks/useDefaultHours.d.ts +0 -1
- package/dist/esm/v2/components/or-date-time-picker-v3/hooks/useDefaultMinutes.d.ts +0 -1
- package/dist/esm/v2/components/or-date-time-picker-v3/hooks/useDefaultMonth.d.ts +0 -1
- package/dist/esm/v2/components/or-date-time-picker-v3/hooks/useDefaultYear.d.ts +0 -1
- package/dist/esm/v3/components/or-date-time-picker-v3/hooks/useDefaultDate.d.ts +0 -1
- package/dist/esm/v3/components/or-date-time-picker-v3/hooks/useDefaultHours.d.ts +0 -1
- package/dist/esm/v3/components/or-date-time-picker-v3/hooks/useDefaultMinutes.d.ts +0 -1
- package/dist/esm/v3/components/or-date-time-picker-v3/hooks/useDefaultMonth.d.ts +0 -1
- package/dist/esm/v3/components/or-date-time-picker-v3/hooks/useDefaultYear.d.ts +0 -1
- package/src/components/or-date-time-picker-v3/hooks/useDefaultDate.ts +0 -3
- package/src/components/or-date-time-picker-v3/hooks/useDefaultHours.ts +0 -3
- package/src/components/or-date-time-picker-v3/hooks/useDefaultMinutes.ts +0 -3
- package/src/components/or-date-time-picker-v3/hooks/useDefaultMonth.ts +0 -3
- package/src/components/or-date-time-picker-v3/hooks/useDefaultYear.ts +0 -3
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, watch } from 'vue-demi';
|
|
2
|
-
import {
|
|
3
|
-
import { useDefaultHours } from '../OrDateTimePickerV3/hooks/useDefaultHours.js';
|
|
4
|
-
import { useDefaultMinutes } from '../OrDateTimePickerV3/hooks/useDefaultMinutes.js';
|
|
5
|
-
import { useDefaultMonth } from '../OrDateTimePickerV3/hooks/useDefaultMonth.js';
|
|
6
|
-
import { useDefaultYear } from '../OrDateTimePickerV3/hooks/useDefaultYear.js';
|
|
2
|
+
import { useCurrentDate } from '../OrDateTimePickerV3/hooks/useCurrentDate.js';
|
|
7
3
|
import { O as OrDateTimePickerDateControl, a as OrDateTimePickerDateSelect, b as OrDateTimePickerMonthSelect } from '../../OrDateTimePickerMonthSelect-e20fd8dc.js';
|
|
8
4
|
import { O as OrDateTimePickerMobileControl, a as OrDateTimePickerPopoverFooter, b as OrDateTimePickerPopoverHeader } from '../../OrDateTimePickerPopoverHeader-7c87f38a.js';
|
|
9
5
|
import { DatePicker, DatePickerPopover } from './styles.js';
|
|
@@ -148,7 +144,7 @@ var script = defineComponent({
|
|
|
148
144
|
const rootStyles = computed(() => ['or-date-picker', ...DatePicker]);
|
|
149
145
|
const popoverStyles = computed(() => [...DatePickerPopover]);
|
|
150
146
|
// State
|
|
151
|
-
const initialModelValue =
|
|
147
|
+
const initialModelValue = useCurrentDate();
|
|
152
148
|
const proxyModelValue = computed({
|
|
153
149
|
get: () => props.modelValue,
|
|
154
150
|
set: value => {
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
export { default as OrDatePickerV3 } from './OrDatePicker.js';
|
|
2
2
|
export { InputBoxSize as DatePickerSize } from '../OrInputBoxV3/props.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
|
-
import '../OrDateTimePickerV3/hooks/
|
|
5
|
-
import '../OrDateTimePickerV3/hooks/useDefaultHours.js';
|
|
6
|
-
import '../OrDateTimePickerV3/hooks/useDefaultMinutes.js';
|
|
7
|
-
import '../OrDateTimePickerV3/hooks/useDefaultMonth.js';
|
|
8
|
-
import '../OrDateTimePickerV3/hooks/useDefaultYear.js';
|
|
4
|
+
import '../OrDateTimePickerV3/hooks/useCurrentDate.js';
|
|
9
5
|
import '../../OrDateTimePickerMonthSelect-e20fd8dc.js';
|
|
10
6
|
import '../OrDateTimePickerV3/hooks/useDatePlaceholder.js';
|
|
11
7
|
import '../../normalize-component-6e8e3d80.js';
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, watch } from 'vue-demi';
|
|
2
|
-
import {
|
|
3
|
-
import { useDefaultHours } from './hooks/useDefaultHours.js';
|
|
4
|
-
import { useDefaultMinutes } from './hooks/useDefaultMinutes.js';
|
|
5
|
-
import { useDefaultMonth } from './hooks/useDefaultMonth.js';
|
|
6
|
-
import { useDefaultYear } from './hooks/useDefaultYear.js';
|
|
2
|
+
import { useCurrentDate } from './hooks/useCurrentDate.js';
|
|
7
3
|
import { O as OrDateTimePickerDateControl, a as OrDateTimePickerDateSelect, b as OrDateTimePickerMonthSelect } from '../../OrDateTimePickerMonthSelect-e20fd8dc.js';
|
|
8
4
|
import { O as OrDateTimePickerMobileControl, a as OrDateTimePickerPopoverFooter, b as OrDateTimePickerPopoverHeader } from '../../OrDateTimePickerPopoverHeader-7c87f38a.js';
|
|
9
5
|
import { O as OrDateTimePickerTimeControl, a as OrDateTimePickerTimeSelect } from '../../OrDateTimePickerTimeSelect-aa60911c.js';
|
|
@@ -166,7 +162,7 @@ var script = defineComponent({
|
|
|
166
162
|
const datePopoverStyles = computed(() => [...DateTimePickerDatePopover]);
|
|
167
163
|
const timePopoverStyles = computed(() => [...DateTimePickerTimePopover]);
|
|
168
164
|
// State
|
|
169
|
-
const initialModelValue =
|
|
165
|
+
const initialModelValue = useCurrentDate();
|
|
170
166
|
const proxyModelValue = computed({
|
|
171
167
|
get: () => props.modelValue,
|
|
172
168
|
set: value => {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useCurrentDate(): Date;
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
export { default as OrDateTimePickerV3 } from './OrDateTimePicker.js';
|
|
2
2
|
export { InputBoxSize as DateTimePickerSize } from '../OrInputBoxV3/props.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
|
-
import './hooks/
|
|
5
|
-
import './hooks/useDefaultHours.js';
|
|
6
|
-
import './hooks/useDefaultMinutes.js';
|
|
7
|
-
import './hooks/useDefaultMonth.js';
|
|
8
|
-
import './hooks/useDefaultYear.js';
|
|
4
|
+
import './hooks/useCurrentDate.js';
|
|
9
5
|
import '../../OrDateTimePickerMonthSelect-e20fd8dc.js';
|
|
10
6
|
import './hooks/useDatePlaceholder.js';
|
|
11
7
|
import '../../normalize-component-6e8e3d80.js';
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, watch } from 'vue-demi';
|
|
2
|
-
import {
|
|
3
|
-
import { useDefaultHours } from '../OrDateTimePickerV3/hooks/useDefaultHours.js';
|
|
4
|
-
import { useDefaultMinutes } from '../OrDateTimePickerV3/hooks/useDefaultMinutes.js';
|
|
5
|
-
import { useDefaultMonth } from '../OrDateTimePickerV3/hooks/useDefaultMonth.js';
|
|
6
|
-
import { useDefaultYear } from '../OrDateTimePickerV3/hooks/useDefaultYear.js';
|
|
2
|
+
import { useCurrentDate } from '../OrDateTimePickerV3/hooks/useCurrentDate.js';
|
|
7
3
|
import { O as OrDateTimePickerMobileControl, a as OrDateTimePickerPopoverFooter, b as OrDateTimePickerPopoverHeader } from '../../OrDateTimePickerPopoverHeader-7c87f38a.js';
|
|
8
4
|
import { O as OrDateTimePickerTimeControl, a as OrDateTimePickerTimeSelect } from '../../OrDateTimePickerTimeSelect-aa60911c.js';
|
|
9
5
|
import { TimePicker, TimePickerPopover } from './styles.js';
|
|
@@ -139,7 +135,7 @@ var script = defineComponent({
|
|
|
139
135
|
const rootStyles = computed(() => ['or-time-picker', ...TimePicker]);
|
|
140
136
|
const popoverStyles = computed(() => [...TimePickerPopover]);
|
|
141
137
|
// State
|
|
142
|
-
const initialModelValue =
|
|
138
|
+
const initialModelValue = useCurrentDate();
|
|
143
139
|
const proxyModelValue = computed({
|
|
144
140
|
get: () => props.modelValue,
|
|
145
141
|
set: value => {
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
export { default as OrTimePickerV3 } from './OrTimePicker.js';
|
|
2
2
|
export { InputBoxSize as TimePickerSize } from '../OrInputBoxV3/props.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
|
-
import '../OrDateTimePickerV3/hooks/
|
|
5
|
-
import '../OrDateTimePickerV3/hooks/useDefaultHours.js';
|
|
6
|
-
import '../OrDateTimePickerV3/hooks/useDefaultMinutes.js';
|
|
7
|
-
import '../OrDateTimePickerV3/hooks/useDefaultMonth.js';
|
|
8
|
-
import '../OrDateTimePickerV3/hooks/useDefaultYear.js';
|
|
4
|
+
import '../OrDateTimePickerV3/hooks/useCurrentDate.js';
|
|
9
5
|
import '../../OrDateTimePickerPopoverHeader-7c87f38a.js';
|
|
10
6
|
import '../OrLabelV3/OrLabel.js';
|
|
11
7
|
import '../OrLabelV3/props.js';
|
|
@@ -202,11 +202,7 @@ import './OrCode/theme.js';
|
|
|
202
202
|
import './OrColorPicker/utils/defultPalette.js';
|
|
203
203
|
import '../index-63e094a0.js';
|
|
204
204
|
import './OrConfirmV3/styles.js';
|
|
205
|
-
import './OrDateTimePickerV3/hooks/
|
|
206
|
-
import './OrDateTimePickerV3/hooks/useDefaultHours.js';
|
|
207
|
-
import './OrDateTimePickerV3/hooks/useDefaultMinutes.js';
|
|
208
|
-
import './OrDateTimePickerV3/hooks/useDefaultMonth.js';
|
|
209
|
-
import './OrDateTimePickerV3/hooks/useDefaultYear.js';
|
|
205
|
+
import './OrDateTimePickerV3/hooks/useCurrentDate.js';
|
|
210
206
|
import '../OrDateTimePickerMonthSelect-e20fd8dc.js';
|
|
211
207
|
import './OrDateTimePickerV3/hooks/useDatePlaceholder.js';
|
|
212
208
|
import '../OrDateTimePickerPopoverHeader-7c87f38a.js';
|
package/dist/bundled/v2/index.js
CHANGED
|
@@ -184,11 +184,7 @@ import './components/OrCode/theme.js';
|
|
|
184
184
|
import './components/OrColorPicker/utils/defultPalette.js';
|
|
185
185
|
import './index-63e094a0.js';
|
|
186
186
|
import './components/OrConfirmV3/styles.js';
|
|
187
|
-
import './components/OrDateTimePickerV3/hooks/
|
|
188
|
-
import './components/OrDateTimePickerV3/hooks/useDefaultHours.js';
|
|
189
|
-
import './components/OrDateTimePickerV3/hooks/useDefaultMinutes.js';
|
|
190
|
-
import './components/OrDateTimePickerV3/hooks/useDefaultMonth.js';
|
|
191
|
-
import './components/OrDateTimePickerV3/hooks/useDefaultYear.js';
|
|
187
|
+
import './components/OrDateTimePickerV3/hooks/useCurrentDate.js';
|
|
192
188
|
import './OrDateTimePickerMonthSelect-e20fd8dc.js';
|
|
193
189
|
import './components/OrDateTimePickerV3/hooks/useDatePlaceholder.js';
|
|
194
190
|
import './OrDateTimePickerPopoverHeader-7c87f38a.js';
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, watch } from 'vue-demi';
|
|
2
|
-
import {
|
|
3
|
-
import { useDefaultHours } from './components/OrDateTimePickerV3/hooks/useDefaultHours.js';
|
|
4
|
-
import { useDefaultMinutes } from './components/OrDateTimePickerV3/hooks/useDefaultMinutes.js';
|
|
5
|
-
import { useDefaultMonth } from './components/OrDateTimePickerV3/hooks/useDefaultMonth.js';
|
|
6
|
-
import { useDefaultYear } from './components/OrDateTimePickerV3/hooks/useDefaultYear.js';
|
|
2
|
+
import { useCurrentDate } from './components/OrDateTimePickerV3/hooks/useCurrentDate.js';
|
|
7
3
|
import { s as script$1, a as script$2, b as script$4 } from './OrDateTimePickerMonthSelect-a9634fe9.js';
|
|
8
4
|
import { s as script$3, a as script$5, b as script$6 } from './OrDateTimePickerPopoverHeader-f81b902f.js';
|
|
9
5
|
import { DatePicker, DatePickerPopover } from './components/OrDatePickerV3/styles.js';
|
|
@@ -119,7 +115,7 @@ var script = defineComponent({
|
|
|
119
115
|
const rootStyles = computed(() => ['or-date-picker', ...DatePicker]);
|
|
120
116
|
const popoverStyles = computed(() => [...DatePickerPopover]);
|
|
121
117
|
// State
|
|
122
|
-
const initialModelValue =
|
|
118
|
+
const initialModelValue = useCurrentDate();
|
|
123
119
|
const proxyModelValue = computed({
|
|
124
120
|
get: () => props.modelValue,
|
|
125
121
|
set: value => {
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, watch } from 'vue-demi';
|
|
2
|
-
import {
|
|
3
|
-
import { useDefaultHours } from './components/OrDateTimePickerV3/hooks/useDefaultHours.js';
|
|
4
|
-
import { useDefaultMinutes } from './components/OrDateTimePickerV3/hooks/useDefaultMinutes.js';
|
|
5
|
-
import { useDefaultMonth } from './components/OrDateTimePickerV3/hooks/useDefaultMonth.js';
|
|
6
|
-
import { useDefaultYear } from './components/OrDateTimePickerV3/hooks/useDefaultYear.js';
|
|
2
|
+
import { useCurrentDate } from './components/OrDateTimePickerV3/hooks/useCurrentDate.js';
|
|
7
3
|
import { s as script$1, a as script$2, b as script$4 } from './OrDateTimePickerMonthSelect-a9634fe9.js';
|
|
8
4
|
import { s as script$3, a as script$5, b as script$6 } from './OrDateTimePickerPopoverHeader-f81b902f.js';
|
|
9
5
|
import { s as script$7, a as script$8 } from './OrDateTimePickerTimeSelect-b962e4d5.js';
|
|
@@ -136,7 +132,7 @@ var script = defineComponent({
|
|
|
136
132
|
const datePopoverStyles = computed(() => [...DateTimePickerDatePopover]);
|
|
137
133
|
const timePopoverStyles = computed(() => [...DateTimePickerTimePopover]);
|
|
138
134
|
// State
|
|
139
|
-
const initialModelValue =
|
|
135
|
+
const initialModelValue = useCurrentDate();
|
|
140
136
|
const proxyModelValue = computed({
|
|
141
137
|
get: () => props.modelValue,
|
|
142
138
|
set: value => {
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, watch } from 'vue-demi';
|
|
2
|
-
import {
|
|
3
|
-
import { useDefaultHours } from './components/OrDateTimePickerV3/hooks/useDefaultHours.js';
|
|
4
|
-
import { useDefaultMinutes } from './components/OrDateTimePickerV3/hooks/useDefaultMinutes.js';
|
|
5
|
-
import { useDefaultMonth } from './components/OrDateTimePickerV3/hooks/useDefaultMonth.js';
|
|
6
|
-
import { useDefaultYear } from './components/OrDateTimePickerV3/hooks/useDefaultYear.js';
|
|
2
|
+
import { useCurrentDate } from './components/OrDateTimePickerV3/hooks/useCurrentDate.js';
|
|
7
3
|
import { s as script$1, a as script$2, b as script$3 } from './OrDateTimePickerPopoverHeader-f81b902f.js';
|
|
8
4
|
import { s as script$4, a as script$5 } from './OrDateTimePickerTimeSelect-b962e4d5.js';
|
|
9
5
|
import { TimePicker, TimePickerPopover } from './components/OrTimePickerV3/styles.js';
|
|
@@ -114,7 +110,7 @@ var script = defineComponent({
|
|
|
114
110
|
const rootStyles = computed(() => ['or-time-picker', ...TimePicker]);
|
|
115
111
|
const popoverStyles = computed(() => [...TimePickerPopover]);
|
|
116
112
|
// State
|
|
117
|
-
const initialModelValue =
|
|
113
|
+
const initialModelValue = useCurrentDate();
|
|
118
114
|
const proxyModelValue = computed({
|
|
119
115
|
get: () => props.modelValue,
|
|
120
116
|
set: value => {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import { s as script } from '../../OrDatePicker.vue_vue_type_script_lang-
|
|
2
|
-
export { s as default } from '../../OrDatePicker.vue_vue_type_script_lang-
|
|
1
|
+
import { s as script } from '../../OrDatePicker.vue_vue_type_script_lang-8c1c9c3e.js';
|
|
2
|
+
export { s as default } from '../../OrDatePicker.vue_vue_type_script_lang-8c1c9c3e.js';
|
|
3
3
|
import { resolveComponent, resolveDirective, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createVNode, withDirectives, createElementVNode, withModifiers, Fragment } from 'vue';
|
|
4
4
|
import 'vue-demi';
|
|
5
|
-
import '../OrDateTimePickerV3/hooks/
|
|
6
|
-
import '../OrDateTimePickerV3/hooks/useDefaultHours.js';
|
|
7
|
-
import '../OrDateTimePickerV3/hooks/useDefaultMinutes.js';
|
|
8
|
-
import '../OrDateTimePickerV3/hooks/useDefaultMonth.js';
|
|
9
|
-
import '../OrDateTimePickerV3/hooks/useDefaultYear.js';
|
|
5
|
+
import '../OrDateTimePickerV3/hooks/useCurrentDate.js';
|
|
10
6
|
import '../../OrDateTimePickerMonthSelect-a9634fe9.js';
|
|
11
7
|
import '../OrDateTimePickerV3/hooks/useDatePlaceholder.js';
|
|
12
8
|
import '../OrButtonV3/OrButton.js';
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
export { s as OrDatePickerV3 } from '../../OrDatePicker.vue_vue_type_script_lang-
|
|
1
|
+
export { s as OrDatePickerV3 } from '../../OrDatePicker.vue_vue_type_script_lang-8c1c9c3e.js';
|
|
2
2
|
export { InputBoxSize as DatePickerSize } from '../OrInputBoxV3/props.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
|
-
import '../OrDateTimePickerV3/hooks/
|
|
5
|
-
import '../OrDateTimePickerV3/hooks/useDefaultHours.js';
|
|
6
|
-
import '../OrDateTimePickerV3/hooks/useDefaultMinutes.js';
|
|
7
|
-
import '../OrDateTimePickerV3/hooks/useDefaultMonth.js';
|
|
8
|
-
import '../OrDateTimePickerV3/hooks/useDefaultYear.js';
|
|
4
|
+
import '../OrDateTimePickerV3/hooks/useCurrentDate.js';
|
|
9
5
|
import '../../OrDateTimePickerMonthSelect-a9634fe9.js';
|
|
10
6
|
import '../OrDateTimePickerV3/hooks/useDatePlaceholder.js';
|
|
11
7
|
import 'vue';
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import { s as script } from '../../OrDateTimePicker.vue_vue_type_script_lang-
|
|
2
|
-
export { s as default } from '../../OrDateTimePicker.vue_vue_type_script_lang-
|
|
1
|
+
import { s as script } from '../../OrDateTimePicker.vue_vue_type_script_lang-cba80c1c.js';
|
|
2
|
+
export { s as default } from '../../OrDateTimePicker.vue_vue_type_script_lang-cba80c1c.js';
|
|
3
3
|
import { resolveComponent, resolveDirective, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createVNode, withDirectives, createElementVNode, withModifiers, Fragment } from 'vue';
|
|
4
4
|
import 'vue-demi';
|
|
5
|
-
import './hooks/
|
|
6
|
-
import './hooks/useDefaultHours.js';
|
|
7
|
-
import './hooks/useDefaultMinutes.js';
|
|
8
|
-
import './hooks/useDefaultMonth.js';
|
|
9
|
-
import './hooks/useDefaultYear.js';
|
|
5
|
+
import './hooks/useCurrentDate.js';
|
|
10
6
|
import '../../OrDateTimePickerMonthSelect-a9634fe9.js';
|
|
11
7
|
import './hooks/useDatePlaceholder.js';
|
|
12
8
|
import '../OrButtonV3/OrButton.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useCurrentDate(): Date;
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
export { s as OrDateTimePickerV3 } from '../../OrDateTimePicker.vue_vue_type_script_lang-
|
|
1
|
+
export { s as OrDateTimePickerV3 } from '../../OrDateTimePicker.vue_vue_type_script_lang-cba80c1c.js';
|
|
2
2
|
export { InputBoxSize as DateTimePickerSize } from '../OrInputBoxV3/props.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
|
-
import './hooks/
|
|
5
|
-
import './hooks/useDefaultHours.js';
|
|
6
|
-
import './hooks/useDefaultMinutes.js';
|
|
7
|
-
import './hooks/useDefaultMonth.js';
|
|
8
|
-
import './hooks/useDefaultYear.js';
|
|
4
|
+
import './hooks/useCurrentDate.js';
|
|
9
5
|
import '../../OrDateTimePickerMonthSelect-a9634fe9.js';
|
|
10
6
|
import './hooks/useDatePlaceholder.js';
|
|
11
7
|
import 'vue';
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import { s as script } from '../../OrTimePicker.vue_vue_type_script_lang-
|
|
2
|
-
export { s as default } from '../../OrTimePicker.vue_vue_type_script_lang-
|
|
1
|
+
import { s as script } from '../../OrTimePicker.vue_vue_type_script_lang-34c2901e.js';
|
|
2
|
+
export { s as default } from '../../OrTimePicker.vue_vue_type_script_lang-34c2901e.js';
|
|
3
3
|
import { resolveComponent, resolveDirective, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createVNode, withDirectives, createElementVNode, withModifiers, Fragment } from 'vue';
|
|
4
4
|
import 'vue-demi';
|
|
5
|
-
import '../OrDateTimePickerV3/hooks/
|
|
6
|
-
import '../OrDateTimePickerV3/hooks/useDefaultHours.js';
|
|
7
|
-
import '../OrDateTimePickerV3/hooks/useDefaultMinutes.js';
|
|
8
|
-
import '../OrDateTimePickerV3/hooks/useDefaultMonth.js';
|
|
9
|
-
import '../OrDateTimePickerV3/hooks/useDefaultYear.js';
|
|
5
|
+
import '../OrDateTimePickerV3/hooks/useCurrentDate.js';
|
|
10
6
|
import '../../OrDateTimePickerPopoverHeader-f81b902f.js';
|
|
11
7
|
import '../OrLabelV3/OrLabel.js';
|
|
12
8
|
import '../../OrLabel.vue_vue_type_script_lang-3e11ab8a.js';
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
export { s as OrTimePickerV3 } from '../../OrTimePicker.vue_vue_type_script_lang-
|
|
1
|
+
export { s as OrTimePickerV3 } from '../../OrTimePicker.vue_vue_type_script_lang-34c2901e.js';
|
|
2
2
|
export { InputBoxSize as TimePickerSize } from '../OrInputBoxV3/props.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
|
-
import '../OrDateTimePickerV3/hooks/
|
|
5
|
-
import '../OrDateTimePickerV3/hooks/useDefaultHours.js';
|
|
6
|
-
import '../OrDateTimePickerV3/hooks/useDefaultMinutes.js';
|
|
7
|
-
import '../OrDateTimePickerV3/hooks/useDefaultMonth.js';
|
|
8
|
-
import '../OrDateTimePickerV3/hooks/useDefaultYear.js';
|
|
4
|
+
import '../OrDateTimePickerV3/hooks/useCurrentDate.js';
|
|
9
5
|
import '../../OrDateTimePickerPopoverHeader-f81b902f.js';
|
|
10
6
|
import '../OrLabelV3/OrLabel.js';
|
|
11
7
|
import '../../OrLabel.vue_vue_type_script_lang-3e11ab8a.js';
|
|
@@ -30,11 +30,11 @@ export { amber, black, blue, blueGrey, brown, cyan, deepOrange, deepPurple, gree
|
|
|
30
30
|
export { s as OrConfirm } from '../OrConfirm.vue_vue_type_script_lang-806d209b.js';
|
|
31
31
|
export { s as OrConfirmV3 } from '../OrConfirm.vue_vue_type_script_lang-5ee20884.js';
|
|
32
32
|
export { ConfirmType } from './OrConfirmV3/props.js';
|
|
33
|
-
export { s as OrDatePickerV3 } from '../OrDatePicker.vue_vue_type_script_lang-
|
|
33
|
+
export { s as OrDatePickerV3 } from '../OrDatePicker.vue_vue_type_script_lang-8c1c9c3e.js';
|
|
34
34
|
export { InputBoxSize as DatePickerSize, InputBoxSize as DateTimePickerSize, InputBoxSize, InputBoxVariant, InputBoxSize as InputSize, InputBoxSize as SearchSize, InputBoxSize as SelectSize, InputBoxSize as TextareaSize, InputBoxSize as TimePickerSize } from './OrInputBoxV3/props.js';
|
|
35
35
|
export { s as OrDateTimePicker } from '../OrDateTimePicker.vue_vue_type_script_lang-5c1a5d4a.js';
|
|
36
36
|
export { DEFAULT_TEXT, OrDateTimePickerItemTypes, OrDateTimePickerTypes } from './OrDateTimePicker/constants.js';
|
|
37
|
-
export { s as OrDateTimePickerV3 } from '../OrDateTimePicker.vue_vue_type_script_lang-
|
|
37
|
+
export { s as OrDateTimePickerV3 } from '../OrDateTimePicker.vue_vue_type_script_lang-cba80c1c.js';
|
|
38
38
|
export { s as OrEmptyStateV3 } from '../OrEmptyState.vue_vue_type_script_lang-2c1f09ef.js';
|
|
39
39
|
export { EmptyStateSize } from './OrEmptyStateV3/props.js';
|
|
40
40
|
export { s as OrError } from '../OrError.vue_vue_type_script_lang-450321b8.js';
|
|
@@ -139,7 +139,7 @@ export { s as OrTextarea } from '../OrTextarea.vue_vue_type_script_lang-1236e04a
|
|
|
139
139
|
export { s as OrTextareaV3 } from '../OrTextarea.vue_vue_type_script_lang-f287189f.js';
|
|
140
140
|
export { s as OrTextbox } from '../OrTextbox.vue_vue_type_script_lang-b8d5341b.js';
|
|
141
141
|
export { TextboxTypes } from './OrTextbox/constants.js';
|
|
142
|
-
export { s as OrTimePickerV3 } from '../OrTimePicker.vue_vue_type_script_lang-
|
|
142
|
+
export { s as OrTimePickerV3 } from '../OrTimePicker.vue_vue_type_script_lang-34c2901e.js';
|
|
143
143
|
export { default as OrToast } from './OrToast/OrToast.js';
|
|
144
144
|
export { s as OrToastContainer } from '../OrToastContainer.vue_vue_type_script_lang-0811fd48.js';
|
|
145
145
|
export { default as useToast } from './OrToast/composable/useToast.js';
|
|
@@ -234,11 +234,7 @@ import './OrColorPicker/utils/defultPalette.js';
|
|
|
234
234
|
import '../index-63e094a0.js';
|
|
235
235
|
import './OrButtonV2/OrButton.js';
|
|
236
236
|
import './OrConfirmV3/styles.js';
|
|
237
|
-
import './OrDateTimePickerV3/hooks/
|
|
238
|
-
import './OrDateTimePickerV3/hooks/useDefaultHours.js';
|
|
239
|
-
import './OrDateTimePickerV3/hooks/useDefaultMinutes.js';
|
|
240
|
-
import './OrDateTimePickerV3/hooks/useDefaultMonth.js';
|
|
241
|
-
import './OrDateTimePickerV3/hooks/useDefaultYear.js';
|
|
237
|
+
import './OrDateTimePickerV3/hooks/useCurrentDate.js';
|
|
242
238
|
import '../OrDateTimePickerMonthSelect-a9634fe9.js';
|
|
243
239
|
import './OrDateTimePickerV3/hooks/useDatePlaceholder.js';
|
|
244
240
|
import '../OrDateTimePickerPopoverHeader-f81b902f.js';
|
package/dist/bundled/v3/index.js
CHANGED
|
@@ -27,11 +27,11 @@ export { s as OrConfirm } from './OrConfirm.vue_vue_type_script_lang-806d209b.js
|
|
|
27
27
|
import './components/OrConfirmV3/OrConfirm.js';
|
|
28
28
|
export { s as OrConfirmV3 } from './OrConfirm.vue_vue_type_script_lang-5ee20884.js';
|
|
29
29
|
import './components/OrDatePickerV3/OrDatePicker.js';
|
|
30
|
-
export { s as OrDatePickerV3 } from './OrDatePicker.vue_vue_type_script_lang-
|
|
30
|
+
export { s as OrDatePickerV3 } from './OrDatePicker.vue_vue_type_script_lang-8c1c9c3e.js';
|
|
31
31
|
import './components/OrDateTimePicker/OrDateTimePicker.js';
|
|
32
32
|
export { s as OrDateTimePicker } from './OrDateTimePicker.vue_vue_type_script_lang-5c1a5d4a.js';
|
|
33
33
|
import './components/OrDateTimePickerV3/OrDateTimePicker.js';
|
|
34
|
-
export { s as OrDateTimePickerV3 } from './OrDateTimePicker.vue_vue_type_script_lang-
|
|
34
|
+
export { s as OrDateTimePickerV3 } from './OrDateTimePicker.vue_vue_type_script_lang-cba80c1c.js';
|
|
35
35
|
import './components/OrEmptyStateV3/OrEmptyState.js';
|
|
36
36
|
export { s as OrEmptyStateV3 } from './OrEmptyState.vue_vue_type_script_lang-2c1f09ef.js';
|
|
37
37
|
import './components/OrErrorTagV3/OrErrorTag.js';
|
|
@@ -119,7 +119,7 @@ export { s as OrTextareaV3 } from './OrTextarea.vue_vue_type_script_lang-f287189
|
|
|
119
119
|
import './components/OrTextbox/OrTextbox.js';
|
|
120
120
|
export { s as OrTextbox } from './OrTextbox.vue_vue_type_script_lang-b8d5341b.js';
|
|
121
121
|
import './components/OrTimePickerV3/OrTimePicker.js';
|
|
122
|
-
export { s as OrTimePickerV3 } from './OrTimePicker.vue_vue_type_script_lang-
|
|
122
|
+
export { s as OrTimePickerV3 } from './OrTimePicker.vue_vue_type_script_lang-34c2901e.js';
|
|
123
123
|
import './components/OrToastContainer/OrToastContainer.js';
|
|
124
124
|
export { s as OrToastContainer } from './OrToastContainer.vue_vue_type_script_lang-0811fd48.js';
|
|
125
125
|
export { default as useToast } from './components/OrToast/composable/useToast.js';
|
|
@@ -267,11 +267,7 @@ import './components/OrInput/OrInput.js';
|
|
|
267
267
|
import './components/OrConfirmV3/styles.js';
|
|
268
268
|
import './components/OrOverlayV3/OrOverlay.js';
|
|
269
269
|
import './components/OrInputV3/OrInput.js';
|
|
270
|
-
import './components/OrDateTimePickerV3/hooks/
|
|
271
|
-
import './components/OrDateTimePickerV3/hooks/useDefaultHours.js';
|
|
272
|
-
import './components/OrDateTimePickerV3/hooks/useDefaultMinutes.js';
|
|
273
|
-
import './components/OrDateTimePickerV3/hooks/useDefaultMonth.js';
|
|
274
|
-
import './components/OrDateTimePickerV3/hooks/useDefaultYear.js';
|
|
270
|
+
import './components/OrDateTimePickerV3/hooks/useCurrentDate.js';
|
|
275
271
|
import './OrDateTimePickerMonthSelect-a9634fe9.js';
|
|
276
272
|
import './components/OrDateTimePickerV3/hooks/useDatePlaceholder.js';
|
|
277
273
|
import './OrDateTimePickerPopoverHeader-f81b902f.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, watch } from 'vue-demi';
|
|
2
2
|
import { D as DropdownClose, a as DropdownOpen } from './dropdown-open-e1f90e0a.js';
|
|
3
|
-
import { _ as __vue_component__$3, a as __vue_component__$5, b as __vue_component__$6, u as
|
|
3
|
+
import { _ as __vue_component__$3, a as __vue_component__$5, b as __vue_component__$6, u as useCurrentDate } from './OrDateTimePickerPopoverHeader-9e49aba0.js';
|
|
4
4
|
import { _ as __vue_component__$1, a as __vue_component__$2, b as __vue_component__$4 } from './OrDateTimePickerMonthSelect-7803ed9e.js';
|
|
5
5
|
import { _ as __vue_component__$7 } from './OrError-4ffc1c39.js';
|
|
6
6
|
import { _ as __vue_component__$8 } from './OrHint-aa221198.js';
|
|
@@ -115,7 +115,7 @@ var script = defineComponent({
|
|
|
115
115
|
const rootStyles = computed(() => ['or-date-picker', ...DatePicker]);
|
|
116
116
|
const popoverStyles = computed(() => [...DatePickerPopover]);
|
|
117
117
|
// State
|
|
118
|
-
const initialModelValue =
|
|
118
|
+
const initialModelValue = useCurrentDate();
|
|
119
119
|
const proxyModelValue = computed({
|
|
120
120
|
get: () => props.modelValue,
|
|
121
121
|
set: value => {
|
|
@@ -8,7 +8,7 @@ import { _ as __vue_component__$d } from './OrInputBox-d36b1323.js';
|
|
|
8
8
|
import { I as InputBoxSize } from './OrInputBox.vue_rollup-plugin-vue_script-fe250f7a.js';
|
|
9
9
|
import { _ as __vue_component__$e } from './OrLabel-63380256.js';
|
|
10
10
|
import { _ as __vue_component__$f } from './OrPopover-c902e2fd.js';
|
|
11
|
-
import { _ as __vue_component__$3, a as __vue_component__$5, b as __vue_component__$6, u as
|
|
11
|
+
import { _ as __vue_component__$3, a as __vue_component__$5, b as __vue_component__$6, u as useCurrentDate } from './OrDateTimePickerPopoverHeader-9e49aba0.js';
|
|
12
12
|
import { _ as __vue_component__$1, a as __vue_component__$2, b as __vue_component__$4 } from './OrDateTimePickerMonthSelect-7803ed9e.js';
|
|
13
13
|
import { _ as __vue_component__$7, a as __vue_component__$8 } from './OrDateTimePickerTimeSelect-0b70d0df.js';
|
|
14
14
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
@@ -135,7 +135,7 @@ var script = defineComponent({
|
|
|
135
135
|
const datePopoverStyles = computed(() => [...DateTimePickerDatePopover]);
|
|
136
136
|
const timePopoverStyles = computed(() => [...DateTimePickerTimePopover]);
|
|
137
137
|
// State
|
|
138
|
-
const initialModelValue =
|
|
138
|
+
const initialModelValue = useCurrentDate();
|
|
139
139
|
const proxyModelValue = computed({
|
|
140
140
|
get: () => props.modelValue,
|
|
141
141
|
set: value => {
|
|
@@ -3,24 +3,9 @@ import { _ as __vue_component__$3 } from './OrLabel-63380256.js';
|
|
|
3
3
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
4
4
|
import { _ as __vue_component__$4 } from './OrButton-9622e713.js';
|
|
5
5
|
|
|
6
|
-
function
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
function useDefaultHours() {
|
|
11
|
-
return 0;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
function useDefaultMinutes() {
|
|
15
|
-
return 0;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
function useDefaultMonth() {
|
|
19
|
-
return new Date().getUTCMonth();
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
function useDefaultYear() {
|
|
23
|
-
return new Date().getUTCFullYear();
|
|
6
|
+
function useCurrentDate() {
|
|
7
|
+
const currentDate = new Date();
|
|
8
|
+
return new Date(Date.UTC(currentDate.getUTCFullYear(), currentDate.getUTCMonth(), currentDate.getUTCDate()));
|
|
24
9
|
}
|
|
25
10
|
|
|
26
11
|
const DateTimePickerMobileControl = [
|
|
@@ -234,4 +219,4 @@ const __vue_component__ = /*#__PURE__*/normalizeComponent({
|
|
|
234
219
|
staticRenderFns: __vue_staticRenderFns__
|
|
235
220
|
}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
|
|
236
221
|
|
|
237
|
-
export { __vue_component__$2 as _, __vue_component__$1 as a, __vue_component__ as b,
|
|
222
|
+
export { __vue_component__$2 as _, __vue_component__$1 as a, __vue_component__ as b, useCurrentDate as u };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, watch } from 'vue-demi';
|
|
2
2
|
import { D as DropdownClose, a as DropdownOpen } from './dropdown-open-e1f90e0a.js';
|
|
3
|
-
import { _ as __vue_component__$1, a as __vue_component__$2, b as __vue_component__$3, u as
|
|
3
|
+
import { _ as __vue_component__$1, a as __vue_component__$2, b as __vue_component__$3, u as useCurrentDate } from './OrDateTimePickerPopoverHeader-9e49aba0.js';
|
|
4
4
|
import { _ as __vue_component__$4, a as __vue_component__$5 } from './OrDateTimePickerTimeSelect-0b70d0df.js';
|
|
5
5
|
import { _ as __vue_component__$6 } from './OrError-4ffc1c39.js';
|
|
6
6
|
import { _ as __vue_component__$7 } from './OrHint-aa221198.js';
|
|
@@ -110,7 +110,7 @@ var script = defineComponent({
|
|
|
110
110
|
const rootStyles = computed(() => ['or-time-picker', ...TimePicker]);
|
|
111
111
|
const popoverStyles = computed(() => [...TimePickerPopover]);
|
|
112
112
|
// State
|
|
113
|
-
const initialModelValue =
|
|
113
|
+
const initialModelValue = useCurrentDate();
|
|
114
114
|
const proxyModelValue = computed({
|
|
115
115
|
get: () => props.modelValue,
|
|
116
116
|
set: value => {
|
|
@@ -21,11 +21,11 @@ export { _ as OrCollapse } from '../OrCollapse-50e3914c.js';
|
|
|
21
21
|
export { _ as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k as brown, c as cyan, j as deepOrange, d as deepPurple, g as green, i as indigo, l as lightBlue, e as lightGreen, f as lime, o as orange, p as pink, a as purple, r as red, t as teal, w as white, y as yellow } from '../OrColorPicker-fa92b4fa.js';
|
|
22
22
|
export { _ as OrConfirm } from '../OrConfirm-497cd260.js';
|
|
23
23
|
export { C as ConfirmType, _ as OrConfirmV3 } from '../OrConfirm-d1572223.js';
|
|
24
|
-
export { _ as OrDatePickerV3 } from '../OrDatePicker-
|
|
24
|
+
export { _ as OrDatePickerV3 } from '../OrDatePicker-ff4cebfb.js';
|
|
25
25
|
export { _ as OrInputBoxV3 } from '../OrInputBox-d36b1323.js';
|
|
26
26
|
export { I as DatePickerSize, I as DateTimePickerSize, I as InputBoxSize, a as InputBoxVariant, I as InputSize, I as SearchSize, I as SelectSize, I as TextareaSize, I as TimePickerSize } from '../OrInputBox.vue_rollup-plugin-vue_script-fe250f7a.js';
|
|
27
27
|
export { D as DEFAULT_TEXT, _ as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from '../OrDateTimePicker-c88ca716.js';
|
|
28
|
-
export { _ as OrDateTimePickerV3 } from '../OrDateTimePicker-
|
|
28
|
+
export { _ as OrDateTimePickerV3 } from '../OrDateTimePicker-da3d6d4d.js';
|
|
29
29
|
export { E as EmptyStateSize, _ as OrEmptyStateV3 } from '../OrEmptyState-2d3fd68d.js';
|
|
30
30
|
export { _ as OrError } from '../OrError-efc74907.js';
|
|
31
31
|
export { _ as OrErrorTagV3 } from '../OrErrorTag-a55ae01a.js';
|
|
@@ -102,7 +102,7 @@ export { _ as OrTextV3 } from '../OrText-6097bca5.js';
|
|
|
102
102
|
export { _ as OrTextarea } from '../OrTextarea-724a4d6f.js';
|
|
103
103
|
export { _ as OrTextareaV3 } from '../OrTextarea-800f63d4.js';
|
|
104
104
|
export { _ as OrTextbox, T as TextboxTypes } from '../OrTextbox-0a89a533.js';
|
|
105
|
-
export { _ as OrTimePickerV3 } from '../OrTimePicker-
|
|
105
|
+
export { _ as OrTimePickerV3 } from '../OrTimePicker-038ceb81.js';
|
|
106
106
|
export { _ as OrToast, a as OrToastContainer } from '../OrToastContainer-5ce15a5b.js';
|
|
107
107
|
export { P as PositionsX, b as PositionsY, c as ToastType, T as TransitionType, a as useQueue, u as useToast } from '../useToast-4fbe0e5a.js';
|
|
108
108
|
export { a as OrToastContainerV3, _ as OrToastV3, t as TypesV3 } from '../types-b674518e.js';
|
|
@@ -135,7 +135,7 @@ import '../px-to-rem-0b26b83e.js';
|
|
|
135
135
|
import '../dom-7a41831b.js';
|
|
136
136
|
import '@vueuse/math';
|
|
137
137
|
import '../dropdown-open-e1f90e0a.js';
|
|
138
|
-
import '../OrDateTimePickerPopoverHeader-
|
|
138
|
+
import '../OrDateTimePickerPopoverHeader-9e49aba0.js';
|
|
139
139
|
import '../OrDateTimePickerMonthSelect-7803ed9e.js';
|
|
140
140
|
import '../OrDateTimePickerTimeSelect-0b70d0df.js';
|
|
141
141
|
import '@floating-ui/dom';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { _ as OrDatePickerV3 } from '../../OrDatePicker-
|
|
1
|
+
export { _ as OrDatePickerV3 } from '../../OrDatePicker-ff4cebfb.js';
|
|
2
2
|
export { I as DatePickerSize } from '../../OrInputBox.vue_rollup-plugin-vue_script-fe250f7a.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import '../../dropdown-open-e1f90e0a.js';
|
|
5
|
-
import '../../OrDateTimePickerPopoverHeader-
|
|
5
|
+
import '../../OrDateTimePickerPopoverHeader-9e49aba0.js';
|
|
6
6
|
import '../../OrLabel-63380256.js';
|
|
7
7
|
import '../../normalize-component-6e8e3d80.js';
|
|
8
8
|
import '../../OrButton-9622e713.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useCurrentDate(): Date;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { _ as OrDateTimePickerV3 } from '../../OrDateTimePicker-
|
|
1
|
+
export { _ as OrDateTimePickerV3 } from '../../OrDateTimePicker-da3d6d4d.js';
|
|
2
2
|
export { I as DateTimePickerSize } from '../../OrInputBox.vue_rollup-plugin-vue_script-fe250f7a.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import '../../dropdown-open-e1f90e0a.js';
|
|
@@ -19,7 +19,7 @@ import '../../OrTeleport.vue2-fb92f29f.js';
|
|
|
19
19
|
import 'portal-vue';
|
|
20
20
|
import '../../OrInputBox-d36b1323.js';
|
|
21
21
|
import '../../OrLabel-63380256.js';
|
|
22
|
-
import '../../OrDateTimePickerPopoverHeader-
|
|
22
|
+
import '../../OrDateTimePickerPopoverHeader-9e49aba0.js';
|
|
23
23
|
import '../../OrButton-9622e713.js';
|
|
24
24
|
import '../../OrLoader-b0c381f9.js';
|
|
25
25
|
import '../../OrDateTimePickerMonthSelect-7803ed9e.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { _ as OrTimePickerV3 } from '../../OrTimePicker-
|
|
1
|
+
export { _ as OrTimePickerV3 } from '../../OrTimePicker-038ceb81.js';
|
|
2
2
|
export { I as TimePickerSize } from '../../OrInputBox.vue_rollup-plugin-vue_script-fe250f7a.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import '../../dropdown-open-e1f90e0a.js';
|
|
5
|
-
import '../../OrDateTimePickerPopoverHeader-
|
|
5
|
+
import '../../OrDateTimePickerPopoverHeader-9e49aba0.js';
|
|
6
6
|
import '../../OrLabel-63380256.js';
|
|
7
7
|
import '../../normalize-component-6e8e3d80.js';
|
|
8
8
|
import '../../OrButton-9622e713.js';
|
package/dist/esm/v2/index.js
CHANGED
|
@@ -21,11 +21,11 @@ export { _ as OrCollapse } from './OrCollapse-50e3914c.js';
|
|
|
21
21
|
export { _ as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k as brown, c as cyan, j as deepOrange, d as deepPurple, g as green, i as indigo, l as lightBlue, e as lightGreen, f as lime, o as orange, p as pink, a as purple, r as red, t as teal, w as white, y as yellow } from './OrColorPicker-fa92b4fa.js';
|
|
22
22
|
export { _ as OrConfirm } from './OrConfirm-497cd260.js';
|
|
23
23
|
export { C as ConfirmType, _ as OrConfirmV3 } from './OrConfirm-d1572223.js';
|
|
24
|
-
export { _ as OrDatePickerV3 } from './OrDatePicker-
|
|
24
|
+
export { _ as OrDatePickerV3 } from './OrDatePicker-ff4cebfb.js';
|
|
25
25
|
export { _ as OrInputBoxV3 } from './OrInputBox-d36b1323.js';
|
|
26
26
|
export { I as DatePickerSize, I as DateTimePickerSize, I as InputBoxSize, a as InputBoxVariant, I as InputSize, I as SearchSize, I as SelectSize, I as TextareaSize, I as TimePickerSize } from './OrInputBox.vue_rollup-plugin-vue_script-fe250f7a.js';
|
|
27
27
|
export { D as DEFAULT_TEXT, _ as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from './OrDateTimePicker-c88ca716.js';
|
|
28
|
-
export { _ as OrDateTimePickerV3 } from './OrDateTimePicker-
|
|
28
|
+
export { _ as OrDateTimePickerV3 } from './OrDateTimePicker-da3d6d4d.js';
|
|
29
29
|
export { E as EmptyStateSize, _ as OrEmptyStateV3 } from './OrEmptyState-2d3fd68d.js';
|
|
30
30
|
export { _ as OrError } from './OrError-efc74907.js';
|
|
31
31
|
export { _ as OrErrorTagV3 } from './OrErrorTag-a55ae01a.js';
|
|
@@ -102,7 +102,7 @@ export { _ as OrTextV3 } from './OrText-6097bca5.js';
|
|
|
102
102
|
export { _ as OrTextarea } from './OrTextarea-724a4d6f.js';
|
|
103
103
|
export { _ as OrTextareaV3 } from './OrTextarea-800f63d4.js';
|
|
104
104
|
export { _ as OrTextbox, T as TextboxTypes } from './OrTextbox-0a89a533.js';
|
|
105
|
-
export { _ as OrTimePickerV3 } from './OrTimePicker-
|
|
105
|
+
export { _ as OrTimePickerV3 } from './OrTimePicker-038ceb81.js';
|
|
106
106
|
export { _ as OrToast, a as OrToastContainer } from './OrToastContainer-5ce15a5b.js';
|
|
107
107
|
export { P as PositionsX, b as PositionsY, c as ToastType, T as TransitionType, a as useQueue, u as useToast } from './useToast-4fbe0e5a.js';
|
|
108
108
|
export { a as OrToastContainerV3, _ as OrToastV3, t as TypesV3 } from './types-b674518e.js';
|
|
@@ -140,7 +140,7 @@ import '@lezer/highlight';
|
|
|
140
140
|
import './px-to-rem-0b26b83e.js';
|
|
141
141
|
import './dom-7a41831b.js';
|
|
142
142
|
import '@vueuse/math';
|
|
143
|
-
import './OrDateTimePickerPopoverHeader-
|
|
143
|
+
import './OrDateTimePickerPopoverHeader-9e49aba0.js';
|
|
144
144
|
import './OrDateTimePickerMonthSelect-7803ed9e.js';
|
|
145
145
|
import './OrDateTimePickerTimeSelect-0b70d0df.js';
|
|
146
146
|
import '@floating-ui/dom';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, watch } from 'vue-demi';
|
|
2
2
|
import { D as DropdownClose, a as DropdownOpen } from './dropdown-open-e1f90e0a.js';
|
|
3
|
-
import { s as script$3, a as script$5, b as script$6, u as
|
|
3
|
+
import { s as script$3, a as script$5, b as script$6, u as useCurrentDate } from './OrDateTimePickerPopoverHeader-042566f4.js';
|
|
4
4
|
import { s as script$1, a as script$2, b as script$4 } from './OrDateTimePickerMonthSelect-7e13dcca.js';
|
|
5
5
|
import { s as script$7 } from './OrError-c01d0c29.js';
|
|
6
6
|
import { s as script$8 } from './OrHint-06ab89d7.js';
|
|
@@ -114,7 +114,7 @@ var script = defineComponent({
|
|
|
114
114
|
const rootStyles = computed(() => ['or-date-picker', ...DatePicker]);
|
|
115
115
|
const popoverStyles = computed(() => [...DatePickerPopover]);
|
|
116
116
|
// State
|
|
117
|
-
const initialModelValue =
|
|
117
|
+
const initialModelValue = useCurrentDate();
|
|
118
118
|
const proxyModelValue = computed({
|
|
119
119
|
get: () => props.modelValue,
|
|
120
120
|
set: value => {
|
|
@@ -7,7 +7,7 @@ import { s as script$b } from './OrIcon-62793572.js';
|
|
|
7
7
|
import { s as script$d, I as InputBoxSize } from './OrInputBox-ba40bbdf.js';
|
|
8
8
|
import { s as script$e } from './OrLabel-4da56db0.js';
|
|
9
9
|
import { s as script$f } from './OrPopover-e34e8f6c.js';
|
|
10
|
-
import { s as script$3, a as script$5, b as script$6, u as
|
|
10
|
+
import { s as script$3, a as script$5, b as script$6, u as useCurrentDate } from './OrDateTimePickerPopoverHeader-042566f4.js';
|
|
11
11
|
import { s as script$1, a as script$2, b as script$4 } from './OrDateTimePickerMonthSelect-7e13dcca.js';
|
|
12
12
|
import { s as script$7, a as script$8 } from './OrDateTimePickerTimeSelect-9309c434.js';
|
|
13
13
|
import { resolveComponent, resolveDirective, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createVNode, withDirectives, createElementVNode, withModifiers, Fragment } from 'vue';
|
|
@@ -134,7 +134,7 @@ var script = defineComponent({
|
|
|
134
134
|
const datePopoverStyles = computed(() => [...DateTimePickerDatePopover]);
|
|
135
135
|
const timePopoverStyles = computed(() => [...DateTimePickerTimePopover]);
|
|
136
136
|
// State
|
|
137
|
-
const initialModelValue =
|
|
137
|
+
const initialModelValue = useCurrentDate();
|
|
138
138
|
const proxyModelValue = computed({
|
|
139
139
|
get: () => props.modelValue,
|
|
140
140
|
set: value => {
|
|
@@ -3,24 +3,9 @@ import { s as script$3 } from './OrLabel-4da56db0.js';
|
|
|
3
3
|
import { resolveComponent, openBlock, createElementBlock, normalizeClass, createVNode, withCtx, createTextVNode, toDisplayString, createElementVNode, renderSlot, withModifiers } from 'vue';
|
|
4
4
|
import { s as script$4 } from './OrButton-c2b6aa9e.js';
|
|
5
5
|
|
|
6
|
-
function
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
function useDefaultHours() {
|
|
11
|
-
return 0;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
function useDefaultMinutes() {
|
|
15
|
-
return 0;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
function useDefaultMonth() {
|
|
19
|
-
return new Date().getUTCMonth();
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
function useDefaultYear() {
|
|
23
|
-
return new Date().getUTCFullYear();
|
|
6
|
+
function useCurrentDate() {
|
|
7
|
+
const currentDate = new Date();
|
|
8
|
+
return new Date(Date.UTC(currentDate.getUTCFullYear(), currentDate.getUTCMonth(), currentDate.getUTCDate()));
|
|
24
9
|
}
|
|
25
10
|
|
|
26
11
|
const DateTimePickerMobileControl = [
|
|
@@ -160,4 +145,4 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
160
145
|
script.render = render;
|
|
161
146
|
script.__file = "src/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-header/OrDateTimePickerPopoverHeader.vue";
|
|
162
147
|
|
|
163
|
-
export { script$1 as a, script as b,
|
|
148
|
+
export { script$1 as a, script as b, script$2 as s, useCurrentDate as u };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, watch } from 'vue-demi';
|
|
2
2
|
import { D as DropdownClose, a as DropdownOpen } from './dropdown-open-e1f90e0a.js';
|
|
3
|
-
import { s as script$1, a as script$2, b as script$3, u as
|
|
3
|
+
import { s as script$1, a as script$2, b as script$3, u as useCurrentDate } from './OrDateTimePickerPopoverHeader-042566f4.js';
|
|
4
4
|
import { s as script$4, a as script$5 } from './OrDateTimePickerTimeSelect-9309c434.js';
|
|
5
5
|
import { s as script$6 } from './OrError-c01d0c29.js';
|
|
6
6
|
import { s as script$7 } from './OrHint-06ab89d7.js';
|
|
@@ -109,7 +109,7 @@ var script = defineComponent({
|
|
|
109
109
|
const rootStyles = computed(() => ['or-time-picker', ...TimePicker]);
|
|
110
110
|
const popoverStyles = computed(() => [...TimePickerPopover]);
|
|
111
111
|
// State
|
|
112
|
-
const initialModelValue =
|
|
112
|
+
const initialModelValue = useCurrentDate();
|
|
113
113
|
const proxyModelValue = computed({
|
|
114
114
|
get: () => props.modelValue,
|
|
115
115
|
set: value => {
|
|
@@ -20,10 +20,10 @@ export { s as OrCollapse } from '../OrCollapse-37a52e8f.js';
|
|
|
20
20
|
export { s as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k as brown, c as cyan, j as deepOrange, d as deepPurple, g as green, i as indigo, l as lightBlue, e as lightGreen, f as lime, o as orange, p as pink, a as purple, r as red, t as teal, w as white, y as yellow } from '../OrColorPicker-9a149e6b.js';
|
|
21
21
|
export { s as OrConfirm } from '../OrConfirm-1ffb7ed6.js';
|
|
22
22
|
export { C as ConfirmType, s as OrConfirmV3 } from '../OrConfirm-14cefbad.js';
|
|
23
|
-
export { s as OrDatePickerV3 } from '../OrDatePicker-
|
|
23
|
+
export { s as OrDatePickerV3 } from '../OrDatePicker-748c8f09.js';
|
|
24
24
|
export { I as DatePickerSize, I as DateTimePickerSize, I as InputBoxSize, a as InputBoxVariant, I as InputSize, s as OrInputBoxV3, I as SearchSize, I as SelectSize, I as TextareaSize, I as TimePickerSize } from '../OrInputBox-ba40bbdf.js';
|
|
25
25
|
export { D as DEFAULT_TEXT, s as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from '../OrDateTimePicker-02c6de49.js';
|
|
26
|
-
export { s as OrDateTimePickerV3 } from '../OrDateTimePicker-
|
|
26
|
+
export { s as OrDateTimePickerV3 } from '../OrDateTimePicker-10f2eb69.js';
|
|
27
27
|
export { E as EmptyStateSize, s as OrEmptyStateV3 } from '../OrEmptyState-5349a1f9.js';
|
|
28
28
|
export { s as OrError } from '../OrError-f90296db.js';
|
|
29
29
|
export { s as OrErrorTagV3 } from '../OrErrorTag-ade9192b.js';
|
|
@@ -100,7 +100,7 @@ export { s as OrTextV3 } from '../OrText-de6b2fe2.js';
|
|
|
100
100
|
export { s as OrTextarea } from '../OrTextarea-de1ecb0f.js';
|
|
101
101
|
export { s as OrTextareaV3 } from '../OrTextarea-fa1454e3.js';
|
|
102
102
|
export { s as OrTextbox, T as TextboxTypes } from '../OrTextbox-7de2b10c.js';
|
|
103
|
-
export { s as OrTimePickerV3 } from '../OrTimePicker-
|
|
103
|
+
export { s as OrTimePickerV3 } from '../OrTimePicker-2fe3c573.js';
|
|
104
104
|
export { s as OrToast, a as OrToastContainer } from '../OrToastContainer-c3ecb1c8.js';
|
|
105
105
|
export { P as PositionsX, b as PositionsY, c as ToastType, T as TransitionType, a as useQueue, u as useToast } from '../useToast-4fbe0e5a.js';
|
|
106
106
|
export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from '../types-9034029d.js';
|
|
@@ -131,7 +131,7 @@ import '../px-to-rem-0b26b83e.js';
|
|
|
131
131
|
import '../dom-7a41831b.js';
|
|
132
132
|
import '@vueuse/math';
|
|
133
133
|
import '../dropdown-open-e1f90e0a.js';
|
|
134
|
-
import '../OrDateTimePickerPopoverHeader-
|
|
134
|
+
import '../OrDateTimePickerPopoverHeader-042566f4.js';
|
|
135
135
|
import '../OrDateTimePickerMonthSelect-7e13dcca.js';
|
|
136
136
|
import '../OrDateTimePickerTimeSelect-9309c434.js';
|
|
137
137
|
import '@floating-ui/dom';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { s as OrDatePickerV3 } from '../../OrDatePicker-
|
|
1
|
+
export { s as OrDatePickerV3 } from '../../OrDatePicker-748c8f09.js';
|
|
2
2
|
export { I as DatePickerSize } from '../../OrInputBox-ba40bbdf.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import '../../dropdown-open-e1f90e0a.js';
|
|
5
|
-
import '../../OrDateTimePickerPopoverHeader-
|
|
5
|
+
import '../../OrDateTimePickerPopoverHeader-042566f4.js';
|
|
6
6
|
import '../../OrLabel-4da56db0.js';
|
|
7
7
|
import 'vue';
|
|
8
8
|
import '../../OrButton-c2b6aa9e.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useCurrentDate(): Date;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { s as OrDateTimePickerV3 } from '../../OrDateTimePicker-
|
|
1
|
+
export { s as OrDateTimePickerV3 } from '../../OrDateTimePicker-10f2eb69.js';
|
|
2
2
|
export { I as DateTimePickerSize } from '../../OrInputBox-ba40bbdf.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import '../../dropdown-open-e1f90e0a.js';
|
|
@@ -17,7 +17,7 @@ import '../../OrBottomSheet-6538d9c3.js';
|
|
|
17
17
|
import '../../OrOverlay-d63d39c3.js';
|
|
18
18
|
import '../../OrTeleport.vue3-8099178c.js';
|
|
19
19
|
import '../../OrLabel-4da56db0.js';
|
|
20
|
-
import '../../OrDateTimePickerPopoverHeader-
|
|
20
|
+
import '../../OrDateTimePickerPopoverHeader-042566f4.js';
|
|
21
21
|
import '../../OrButton-c2b6aa9e.js';
|
|
22
22
|
import '../../OrLoader-b79022da.js';
|
|
23
23
|
import '../../OrDateTimePickerMonthSelect-7e13dcca.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { s as OrTimePickerV3 } from '../../OrTimePicker-
|
|
1
|
+
export { s as OrTimePickerV3 } from '../../OrTimePicker-2fe3c573.js';
|
|
2
2
|
export { I as TimePickerSize } from '../../OrInputBox-ba40bbdf.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import '../../dropdown-open-e1f90e0a.js';
|
|
5
|
-
import '../../OrDateTimePickerPopoverHeader-
|
|
5
|
+
import '../../OrDateTimePickerPopoverHeader-042566f4.js';
|
|
6
6
|
import '../../OrLabel-4da56db0.js';
|
|
7
7
|
import 'vue';
|
|
8
8
|
import '../../OrButton-c2b6aa9e.js';
|
package/dist/esm/v3/index.js
CHANGED
|
@@ -20,10 +20,10 @@ export { s as OrCollapse } from './OrCollapse-37a52e8f.js';
|
|
|
20
20
|
export { s as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k as brown, c as cyan, j as deepOrange, d as deepPurple, g as green, i as indigo, l as lightBlue, e as lightGreen, f as lime, o as orange, p as pink, a as purple, r as red, t as teal, w as white, y as yellow } from './OrColorPicker-9a149e6b.js';
|
|
21
21
|
export { s as OrConfirm } from './OrConfirm-1ffb7ed6.js';
|
|
22
22
|
export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-14cefbad.js';
|
|
23
|
-
export { s as OrDatePickerV3 } from './OrDatePicker-
|
|
23
|
+
export { s as OrDatePickerV3 } from './OrDatePicker-748c8f09.js';
|
|
24
24
|
export { I as DatePickerSize, I as DateTimePickerSize, I as InputBoxSize, a as InputBoxVariant, I as InputSize, s as OrInputBoxV3, I as SearchSize, I as SelectSize, I as TextareaSize, I as TimePickerSize } from './OrInputBox-ba40bbdf.js';
|
|
25
25
|
export { D as DEFAULT_TEXT, s as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from './OrDateTimePicker-02c6de49.js';
|
|
26
|
-
export { s as OrDateTimePickerV3 } from './OrDateTimePicker-
|
|
26
|
+
export { s as OrDateTimePickerV3 } from './OrDateTimePicker-10f2eb69.js';
|
|
27
27
|
export { E as EmptyStateSize, s as OrEmptyStateV3 } from './OrEmptyState-5349a1f9.js';
|
|
28
28
|
export { s as OrError } from './OrError-f90296db.js';
|
|
29
29
|
export { s as OrErrorTagV3 } from './OrErrorTag-ade9192b.js';
|
|
@@ -100,7 +100,7 @@ export { s as OrTextV3 } from './OrText-de6b2fe2.js';
|
|
|
100
100
|
export { s as OrTextarea } from './OrTextarea-de1ecb0f.js';
|
|
101
101
|
export { s as OrTextareaV3 } from './OrTextarea-fa1454e3.js';
|
|
102
102
|
export { s as OrTextbox, T as TextboxTypes } from './OrTextbox-7de2b10c.js';
|
|
103
|
-
export { s as OrTimePickerV3 } from './OrTimePicker-
|
|
103
|
+
export { s as OrTimePickerV3 } from './OrTimePicker-2fe3c573.js';
|
|
104
104
|
export { s as OrToast, a as OrToastContainer } from './OrToastContainer-c3ecb1c8.js';
|
|
105
105
|
export { P as PositionsX, b as PositionsY, c as ToastType, T as TransitionType, a as useQueue, u as useToast } from './useToast-4fbe0e5a.js';
|
|
106
106
|
export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-9034029d.js';
|
|
@@ -136,7 +136,7 @@ import '@lezer/highlight';
|
|
|
136
136
|
import './px-to-rem-0b26b83e.js';
|
|
137
137
|
import './dom-7a41831b.js';
|
|
138
138
|
import '@vueuse/math';
|
|
139
|
-
import './OrDateTimePickerPopoverHeader-
|
|
139
|
+
import './OrDateTimePickerPopoverHeader-042566f4.js';
|
|
140
140
|
import './OrDateTimePickerMonthSelect-7e13dcca.js';
|
|
141
141
|
import './OrDateTimePickerTimeSelect-9309c434.js';
|
|
142
142
|
import '@floating-ui/dom';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components",
|
|
3
|
-
"version": "4.1.1-beta.
|
|
3
|
+
"version": "4.1.1-beta.2590.0",
|
|
4
4
|
"description": "Vue components library for v2/3",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/auto/index.js",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@codemirror/lang-json": "6.0.0",
|
|
39
39
|
"@codemirror/lang-markdown": "6.0.1",
|
|
40
40
|
"@floating-ui/dom": "0.3.1",
|
|
41
|
-
"@onereach/styles": "^2.37.4-beta.
|
|
41
|
+
"@onereach/styles": "^2.37.4-beta.2590.0",
|
|
42
42
|
"@splidejs/splide": "4.0.6",
|
|
43
43
|
"@types/lodash": "4.14.173",
|
|
44
44
|
"@types/sortablejs": "1.10.7",
|
|
@@ -108,11 +108,7 @@
|
|
|
108
108
|
import { computed, defineComponent, PropType, ref, watch } from 'vue-demi';
|
|
109
109
|
import { DropdownClose, DropdownOpen } from '../../directives';
|
|
110
110
|
import { FilterFunction } from '../or-date-time-picker-v3';
|
|
111
|
-
import {
|
|
112
|
-
import { useDefaultHours } from '../or-date-time-picker-v3/hooks/useDefaultHours';
|
|
113
|
-
import { useDefaultMinutes } from '../or-date-time-picker-v3/hooks/useDefaultMinutes';
|
|
114
|
-
import { useDefaultMonth } from '../or-date-time-picker-v3/hooks/useDefaultMonth';
|
|
115
|
-
import { useDefaultYear } from '../or-date-time-picker-v3/hooks/useDefaultYear';
|
|
111
|
+
import { useCurrentDate } from '../or-date-time-picker-v3/hooks/useCurrentDate';
|
|
116
112
|
import OrDateTimePickerDateControl from '../or-date-time-picker-v3/partials/or-date-time-picker-date-control/OrDateTimePickerDateControl.vue';
|
|
117
113
|
import OrDateTimePickerDateSelect from '../or-date-time-picker-v3/partials/or-date-time-picker-date-select/OrDateTimePickerDateSelect.vue';
|
|
118
114
|
import OrDateTimePickerMobileControl from '../or-date-time-picker-v3/partials/or-date-time-picker-mobile-control/OrDateTimePickerMobileControl.vue';
|
|
@@ -257,13 +253,7 @@ export default defineComponent({
|
|
|
257
253
|
]);
|
|
258
254
|
|
|
259
255
|
// State
|
|
260
|
-
const initialModelValue =
|
|
261
|
-
useDefaultYear(),
|
|
262
|
-
useDefaultMonth(),
|
|
263
|
-
useDefaultDate(),
|
|
264
|
-
useDefaultHours(),
|
|
265
|
-
useDefaultMinutes(),
|
|
266
|
-
));
|
|
256
|
+
const initialModelValue = useCurrentDate();
|
|
267
257
|
|
|
268
258
|
const proxyModelValue = computed({
|
|
269
259
|
get: () => props.modelValue,
|
|
@@ -158,11 +158,7 @@ import { OrIconV3 as OrIcon } from '../or-icon-v3';
|
|
|
158
158
|
import { OrInputBoxV3 as OrInputBox } from '../or-input-box-v3';
|
|
159
159
|
import { OrLabelV3 as OrLabel } from '../or-label-v3';
|
|
160
160
|
import { OrPopoverV3 as OrPopover } from '../or-popover-v3';
|
|
161
|
-
import {
|
|
162
|
-
import { useDefaultHours } from './hooks/useDefaultHours';
|
|
163
|
-
import { useDefaultMinutes } from './hooks/useDefaultMinutes';
|
|
164
|
-
import { useDefaultMonth } from './hooks/useDefaultMonth';
|
|
165
|
-
import { useDefaultYear } from './hooks/useDefaultYear';
|
|
161
|
+
import { useCurrentDate } from './hooks/useCurrentDate';
|
|
166
162
|
import OrDateTimePickerDateControl from './partials/or-date-time-picker-date-control/OrDateTimePickerDateControl.vue';
|
|
167
163
|
import OrDateTimePickerDateSelect from './partials/or-date-time-picker-date-select/OrDateTimePickerDateSelect.vue';
|
|
168
164
|
import OrDateTimePickerMobileControl from './partials/or-date-time-picker-mobile-control/OrDateTimePickerMobileControl.vue';
|
|
@@ -322,13 +318,7 @@ export default defineComponent({
|
|
|
322
318
|
]);
|
|
323
319
|
|
|
324
320
|
// State
|
|
325
|
-
const initialModelValue =
|
|
326
|
-
useDefaultYear(),
|
|
327
|
-
useDefaultMonth(),
|
|
328
|
-
useDefaultDate(),
|
|
329
|
-
useDefaultHours(),
|
|
330
|
-
useDefaultMinutes(),
|
|
331
|
-
));
|
|
321
|
+
const initialModelValue = useCurrentDate();
|
|
332
322
|
|
|
333
323
|
const proxyModelValue = computed({
|
|
334
324
|
get: () => props.modelValue,
|
|
@@ -101,11 +101,7 @@
|
|
|
101
101
|
<script lang="ts">
|
|
102
102
|
import { computed, defineComponent, PropType, ref, watch } from 'vue-demi';
|
|
103
103
|
import { DropdownClose, DropdownOpen } from '../../directives';
|
|
104
|
-
import {
|
|
105
|
-
import { useDefaultHours } from '../or-date-time-picker-v3/hooks/useDefaultHours';
|
|
106
|
-
import { useDefaultMinutes } from '../or-date-time-picker-v3/hooks/useDefaultMinutes';
|
|
107
|
-
import { useDefaultMonth } from '../or-date-time-picker-v3/hooks/useDefaultMonth';
|
|
108
|
-
import { useDefaultYear } from '../or-date-time-picker-v3/hooks/useDefaultYear';
|
|
104
|
+
import { useCurrentDate } from '../or-date-time-picker-v3/hooks/useCurrentDate';
|
|
109
105
|
import OrDateTimePickerMobileControl from '../or-date-time-picker-v3/partials/or-date-time-picker-mobile-control/OrDateTimePickerMobileControl.vue';
|
|
110
106
|
import OrDateTimePickerPopoverFooter from '../or-date-time-picker-v3/partials/or-date-time-picker-popover-footer/OrDateTimePickerPopoverFooter.vue';
|
|
111
107
|
import OrDateTimePickerPopoverHeader from '../or-date-time-picker-v3/partials/or-date-time-picker-popover-header/OrDateTimePickerPopoverHeader.vue';
|
|
@@ -244,13 +240,7 @@ export default defineComponent({
|
|
|
244
240
|
]);
|
|
245
241
|
|
|
246
242
|
// State
|
|
247
|
-
const initialModelValue =
|
|
248
|
-
useDefaultYear(),
|
|
249
|
-
useDefaultMonth(),
|
|
250
|
-
useDefaultDate(),
|
|
251
|
-
useDefaultHours(),
|
|
252
|
-
useDefaultMinutes(),
|
|
253
|
-
));
|
|
243
|
+
const initialModelValue = useCurrentDate();
|
|
254
244
|
|
|
255
245
|
const proxyModelValue = computed({
|
|
256
246
|
get: () => props.modelValue,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useDefaultDate(): number;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useDefaultHours(): number;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useDefaultMinutes(): number;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useDefaultMonth(): number;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useDefaultYear(): number;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useDefaultDate(): number;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useDefaultHours(): number;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useDefaultMinutes(): number;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useDefaultMonth(): number;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useDefaultYear(): number;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useDefaultDate(): number;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useDefaultHours(): number;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useDefaultMinutes(): number;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useDefaultMonth(): number;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useDefaultYear(): number;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useDefaultDate(): number;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useDefaultHours(): number;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useDefaultMinutes(): number;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useDefaultMonth(): number;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useDefaultYear(): number;
|