@dative-gpi/foundation-shared-components 0.0.204 → 0.0.206
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/components/FSCalendar.vue +1 -0
- package/components/FSCalendarTwin.vue +2 -1
- package/components/FSClock.vue +22 -6
- package/components/autocompletes/FSAutoCompleteAddress.vue +6 -6
- package/components/autocompletes/FSAutocompleteLanguage.vue +4 -5
- package/components/autocompletes/FSAutocompleteTimeZone.vue +4 -5
- package/components/fields/FSColorField.vue +9 -11
- package/components/fields/FSDateField.vue +10 -4
- package/components/fields/FSDateRangeField.vue +10 -4
- package/components/fields/FSDateTimeField.vue +24 -11
- package/components/fields/FSDateTimeRangeField.vue +39 -25
- package/components/fields/FSTermField.vue +191 -183
- package/components/fields/FSTimeField.vue +21 -12
- package/components/fields/FSTranslateField.vue +7 -14
- package/package.json +4 -4
package/components/FSClock.vue
CHANGED
|
@@ -52,11 +52,9 @@
|
|
|
52
52
|
</template>
|
|
53
53
|
|
|
54
54
|
<script lang="ts">
|
|
55
|
-
import type
|
|
56
|
-
import { computed, defineComponent, ref, watch } from "vue";
|
|
55
|
+
import { computed, defineComponent, onMounted, type PropType, ref, watch } from "vue";
|
|
57
56
|
|
|
58
|
-
import type
|
|
59
|
-
import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
57
|
+
import { type ColorBase, ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
60
58
|
import { useAppTimeZone } from "@dative-gpi/foundation-shared-services/composables";
|
|
61
59
|
import { useColors } from "@dative-gpi/foundation-shared-components/composables";
|
|
62
60
|
|
|
@@ -108,8 +106,8 @@ export default defineComponent({
|
|
|
108
106
|
const lights = getColors(ColorEnum.Light);
|
|
109
107
|
const darks = getColors(ColorEnum.Dark);
|
|
110
108
|
|
|
111
|
-
const innerHours = ref(
|
|
112
|
-
const innerMinutes = ref(
|
|
109
|
+
const innerHours = ref(0);
|
|
110
|
+
const innerMinutes = ref(0);
|
|
113
111
|
|
|
114
112
|
const style = computed((): { [key: string] : string | null | undefined } => {
|
|
115
113
|
if (!props.editable) {
|
|
@@ -148,6 +146,24 @@ export default defineComponent({
|
|
|
148
146
|
innerMinutes.value = number;
|
|
149
147
|
};
|
|
150
148
|
|
|
149
|
+
const reset = (): void => {
|
|
150
|
+
innerHours.value = props.modelValue ? Math.floor(props.modelValue / (60 * 60 * 1000)) : 0;
|
|
151
|
+
innerMinutes.value = props.modelValue ? Math.floor((props.modelValue % (60 * 60 * 1000)) / (60 * 1000)) : 0;
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
onMounted(() => {
|
|
155
|
+
reset();
|
|
156
|
+
});
|
|
157
|
+
|
|
158
|
+
watch(() => props.modelValue, () => {
|
|
159
|
+
if (
|
|
160
|
+
innerHours.value !== (props.modelValue ? Math.floor(props.modelValue / (60 * 60 * 1000)) : 0) ||
|
|
161
|
+
innerMinutes.value !== (props.modelValue ? Math.floor((props.modelValue % (60 * 60 * 1000)) / (60 * 1000)) : 0)
|
|
162
|
+
) {
|
|
163
|
+
reset();
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
|
|
151
167
|
watch([innerHours, innerMinutes], () => {
|
|
152
168
|
emit("update:modelValue", (innerHours.value * 60 * 60 * 1000) + (innerMinutes.value * 60 * 1000));
|
|
153
169
|
});
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
<script lang="ts">
|
|
15
15
|
import { defineComponent, onMounted, ref, watch } from "vue";
|
|
16
16
|
|
|
17
|
+
import { type Address, type Place } from "@dative-gpi/foundation-shared-domain/models";
|
|
17
18
|
import { useAutocomplete } from "@dative-gpi/foundation-shared-components/composables";
|
|
18
|
-
import { useAddress } from "../../composables/useAddress";
|
|
19
19
|
|
|
20
|
-
import
|
|
20
|
+
import { useAddress } from "../../composables/useAddress";
|
|
21
21
|
|
|
22
22
|
import FSAutocompleteField from "@dative-gpi/foundation-shared-components/components/fields/FSAutocompleteField.vue";
|
|
23
23
|
|
|
@@ -40,7 +40,7 @@ export default defineComponent({
|
|
|
40
40
|
const places = ref<Place[]>([]);
|
|
41
41
|
const modelValuePlace = ref<Place | null>(null);
|
|
42
42
|
|
|
43
|
-
const
|
|
43
|
+
const fetch = async (search: string | null) => {
|
|
44
44
|
if (search === null) {
|
|
45
45
|
return Promise.resolve([]);
|
|
46
46
|
}
|
|
@@ -48,7 +48,7 @@ export default defineComponent({
|
|
|
48
48
|
return Promise.resolve([]);
|
|
49
49
|
};
|
|
50
50
|
|
|
51
|
-
const
|
|
51
|
+
const update = async (value: { id: string; label: string; } | { id: string; label: string; }[] | null) => {
|
|
52
52
|
if (value === null) {
|
|
53
53
|
emit("update:modelValue", null);
|
|
54
54
|
return;
|
|
@@ -64,8 +64,8 @@ export default defineComponent({
|
|
|
64
64
|
places,
|
|
65
65
|
[],
|
|
66
66
|
emit,
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
fetch,
|
|
68
|
+
update,
|
|
69
69
|
(item) => (item).id,
|
|
70
70
|
(item) => (item).label,
|
|
71
71
|
true,
|
|
@@ -49,12 +49,11 @@
|
|
|
49
49
|
</template>
|
|
50
50
|
|
|
51
51
|
<script lang="ts">
|
|
52
|
-
import type
|
|
53
|
-
import { computed, defineComponent } from "vue"
|
|
52
|
+
import { computed, defineComponent, type PropType } from "vue"
|
|
54
53
|
|
|
55
54
|
import { useAutocomplete } from "@dative-gpi/foundation-shared-components/composables";
|
|
55
|
+
import { type LanguageFilters } from "@dative-gpi/foundation-shared-domain/models";
|
|
56
56
|
import { useLanguages } from "@dative-gpi/foundation-shared-services/composables";
|
|
57
|
-
import type { LanguageFilters } from "@dative-gpi/foundation-shared-domain/models";
|
|
58
57
|
|
|
59
58
|
import FSAutocompleteField from "../fields/FSAutocompleteField.vue";
|
|
60
59
|
import FSIcon from "../FSIcon.vue";
|
|
@@ -99,7 +98,7 @@ export default defineComponent({
|
|
|
99
98
|
return init.value && fetchingLanguages.value;
|
|
100
99
|
});
|
|
101
100
|
|
|
102
|
-
const
|
|
101
|
+
const fetch = (search: string | null) => {
|
|
103
102
|
return getManyLanguages({ ...props.languageFilters, search: search ?? undefined });
|
|
104
103
|
};
|
|
105
104
|
|
|
@@ -107,7 +106,7 @@ export default defineComponent({
|
|
|
107
106
|
languages,
|
|
108
107
|
[() => props.languageFilters],
|
|
109
108
|
emit,
|
|
110
|
-
|
|
109
|
+
fetch
|
|
111
110
|
);
|
|
112
111
|
|
|
113
112
|
return {
|
|
@@ -65,10 +65,9 @@
|
|
|
65
65
|
</template>
|
|
66
66
|
|
|
67
67
|
<script lang="ts">
|
|
68
|
-
import type
|
|
69
|
-
import { computed, defineComponent } from "vue";
|
|
68
|
+
import { computed, defineComponent, type PropType } from "vue";
|
|
70
69
|
|
|
71
|
-
import type
|
|
70
|
+
import { type TimeZoneFilters, type TimeZoneInfos } from "@dative-gpi/foundation-shared-domain/models";
|
|
72
71
|
import { useAutocomplete } from "@dative-gpi/foundation-shared-components/composables";
|
|
73
72
|
import { useTimeZones } from "@dative-gpi/foundation-shared-services/composables";
|
|
74
73
|
import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
@@ -118,7 +117,7 @@ export default defineComponent({
|
|
|
118
117
|
return init.value && fetchingTimeZones.value;
|
|
119
118
|
});
|
|
120
119
|
|
|
121
|
-
const
|
|
120
|
+
const fetch = (search: string | null) => {
|
|
122
121
|
return getManyTimeZones({ ...props.timeZoneFilters, search: search ?? undefined });
|
|
123
122
|
};
|
|
124
123
|
|
|
@@ -126,7 +125,7 @@ export default defineComponent({
|
|
|
126
125
|
timeZones,
|
|
127
126
|
[() => props.timeZoneFilters],
|
|
128
127
|
emit,
|
|
129
|
-
|
|
128
|
+
fetch,
|
|
130
129
|
null,
|
|
131
130
|
(item: TimeZoneInfos) => item.id,
|
|
132
131
|
(item: TimeZoneInfos) => item.id
|
|
@@ -77,19 +77,18 @@
|
|
|
77
77
|
</template>
|
|
78
78
|
|
|
79
79
|
<script lang="ts">
|
|
80
|
-
import type
|
|
81
|
-
import { computed, defineComponent, onMounted, ref, watch } from "vue";
|
|
80
|
+
import { computed, defineComponent, type PropType, ref, watch } from "vue";
|
|
82
81
|
|
|
83
82
|
import { getPercentageFromHex, getHexFromPercentage } from "@dative-gpi/foundation-shared-components/utils";
|
|
84
83
|
import { useColors, useSlots } from "@dative-gpi/foundation-shared-components/composables";
|
|
85
84
|
import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
86
85
|
|
|
86
|
+
import FSBaseField from "./FSBaseField.vue";
|
|
87
87
|
import FSCard from "../FSCard.vue";
|
|
88
88
|
import FSIcon from "../FSIcon.vue";
|
|
89
|
+
import FSText from "../FSText.vue";
|
|
89
90
|
import FSRow from "../FSRow.vue";
|
|
90
91
|
import FSCol from "../FSCol.vue";
|
|
91
|
-
import FSBaseField from "./FSBaseField.vue";
|
|
92
|
-
import FSText from "../FSText.vue";
|
|
93
92
|
|
|
94
93
|
export default defineComponent({
|
|
95
94
|
name: "FSColorField",
|
|
@@ -99,7 +98,7 @@ export default defineComponent({
|
|
|
99
98
|
FSCard,
|
|
100
99
|
FSIcon,
|
|
101
100
|
FSCol,
|
|
102
|
-
FSRow
|
|
101
|
+
FSRow
|
|
103
102
|
},
|
|
104
103
|
props: {
|
|
105
104
|
label: {
|
|
@@ -164,6 +163,7 @@ export default defineComponent({
|
|
|
164
163
|
const darks = getColors(ColorEnum.Dark);
|
|
165
164
|
|
|
166
165
|
const menu = ref(false);
|
|
166
|
+
|
|
167
167
|
const innerColor = ref(props.modelValue.toString().substring(0, 7));
|
|
168
168
|
const innerOpacity = ref(getHexFromPercentage(props.opacityValue));
|
|
169
169
|
const fullColor = ref(innerColor.value + innerOpacity.value);
|
|
@@ -194,16 +194,14 @@ export default defineComponent({
|
|
|
194
194
|
emit("update:opacity", getPercentageFromHex(innerOpacity.value));
|
|
195
195
|
};
|
|
196
196
|
|
|
197
|
-
|
|
197
|
+
const reset = (): void => {
|
|
198
198
|
innerColor.value = getColors(props.modelValue)['base'];
|
|
199
199
|
innerOpacity.value = getHexFromPercentage(props.opacityValue);
|
|
200
200
|
fullColor.value = innerColor.value + innerOpacity.value;
|
|
201
|
-
}
|
|
201
|
+
};
|
|
202
202
|
|
|
203
|
-
watch(() => props.modelValue, (
|
|
204
|
-
|
|
205
|
-
innerOpacity.value = getHexFromPercentage(props.opacityValue);
|
|
206
|
-
fullColor.value = innerColor.value + innerOpacity.value;
|
|
203
|
+
watch(() => props.modelValue, () => {
|
|
204
|
+
reset();
|
|
207
205
|
});
|
|
208
206
|
|
|
209
207
|
return {
|
|
@@ -147,12 +147,11 @@
|
|
|
147
147
|
</template>
|
|
148
148
|
|
|
149
149
|
<script lang="ts">
|
|
150
|
-
import type
|
|
151
|
-
import
|
|
150
|
+
import { computed, defineComponent, type PropType, ref, watch } from "vue";
|
|
151
|
+
import _ from "lodash";
|
|
152
152
|
|
|
153
153
|
import { useBreakpoints, useRules } from "@dative-gpi/foundation-shared-components/composables";
|
|
154
|
-
import type
|
|
155
|
-
import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
154
|
+
import { type ColorBase, ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
156
155
|
import { useAppTimeZone } from "@dative-gpi/foundation-shared-services/composables";
|
|
157
156
|
|
|
158
157
|
import FSDialogMenu from "../FSDialogMenu.vue";
|
|
@@ -222,6 +221,7 @@ export default defineComponent({
|
|
|
222
221
|
|
|
223
222
|
const dialog = ref(false);
|
|
224
223
|
const menu = ref(false);
|
|
224
|
+
|
|
225
225
|
const innerDate = ref<number | null>(props.modelValue);
|
|
226
226
|
|
|
227
227
|
const messages = computed((): string[] => getMessages(props.modelValue, props.rules));
|
|
@@ -244,6 +244,12 @@ export default defineComponent({
|
|
|
244
244
|
menu.value = false;
|
|
245
245
|
};
|
|
246
246
|
|
|
247
|
+
watch(() => props.modelValue, () => {
|
|
248
|
+
if (!_.isEqual(innerDate.value, props.modelValue)) {
|
|
249
|
+
innerDate.value = props.modelValue;
|
|
250
|
+
}
|
|
251
|
+
});
|
|
252
|
+
|
|
247
253
|
return {
|
|
248
254
|
isExtraSmall,
|
|
249
255
|
validateOn,
|
|
@@ -58,11 +58,10 @@
|
|
|
58
58
|
</template>
|
|
59
59
|
|
|
60
60
|
<script lang="ts">
|
|
61
|
-
import type
|
|
62
|
-
import
|
|
61
|
+
import { computed, defineComponent, type PropType, ref, watch } from "vue";
|
|
62
|
+
import _ from "lodash";
|
|
63
63
|
|
|
64
|
-
import type
|
|
65
|
-
import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
64
|
+
import { type ColorBase, ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
66
65
|
import { useAppTimeZone } from "@dative-gpi/foundation-shared-services/composables";
|
|
67
66
|
import { useRules } from "@dative-gpi/foundation-shared-components/composables";
|
|
68
67
|
|
|
@@ -127,6 +126,7 @@ export default defineComponent({
|
|
|
127
126
|
const { epochToShortDateFormat } = useAppTimeZone();
|
|
128
127
|
|
|
129
128
|
const dialog = ref(false);
|
|
129
|
+
|
|
130
130
|
const innerDateRange = ref<number[] | null>(props.modelValue);
|
|
131
131
|
|
|
132
132
|
const toShortDateFormat = computed((): string => {
|
|
@@ -154,6 +154,12 @@ export default defineComponent({
|
|
|
154
154
|
dialog.value = false;
|
|
155
155
|
};
|
|
156
156
|
|
|
157
|
+
watch(() => props.modelValue, () => {
|
|
158
|
+
if (!_.isEqual(innerDateRange.value, props.modelValue)) {
|
|
159
|
+
innerDateRange.value = props.modelValue;
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
|
|
157
163
|
return {
|
|
158
164
|
toShortDateFormat,
|
|
159
165
|
innerDateRange,
|
|
@@ -193,12 +193,10 @@
|
|
|
193
193
|
</template>
|
|
194
194
|
|
|
195
195
|
<script lang="ts">
|
|
196
|
-
import type
|
|
197
|
-
import { computed, defineComponent, ref, watch } from "vue";
|
|
196
|
+
import { computed, defineComponent, onMounted, type PropType, ref, watch } from "vue";
|
|
198
197
|
|
|
199
198
|
import { useBreakpoints, useRules } from "@dative-gpi/foundation-shared-components/composables";
|
|
200
|
-
import type
|
|
201
|
-
import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
199
|
+
import { type ColorBase, ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
202
200
|
import { useAppTimeZone } from "@dative-gpi/foundation-shared-services/composables";
|
|
203
201
|
|
|
204
202
|
import FSDialogMenu from "../FSDialogMenu.vue";
|
|
@@ -273,16 +271,10 @@ export default defineComponent({
|
|
|
273
271
|
const dialog = ref(false);
|
|
274
272
|
const menu = ref(false);
|
|
275
273
|
const tabs = ref(0);
|
|
274
|
+
|
|
276
275
|
const innerDate = ref<number | null>(null);
|
|
277
276
|
const innerTime = ref(0);
|
|
278
277
|
|
|
279
|
-
if (props.modelValue) {
|
|
280
|
-
// FSClock just gives two numbers without consideration for the time zone
|
|
281
|
-
// We must adjust the time to the user's time zone
|
|
282
|
-
innerTime.value = Math.floor((props.modelValue + getUserOffsetMillis()) % (24 * 60 * 60 * 1000));
|
|
283
|
-
innerDate.value = props.modelValue - innerTime.value;
|
|
284
|
-
}
|
|
285
|
-
|
|
286
278
|
const messages = computed((): string[] => getMessages(props.modelValue, props.rules));
|
|
287
279
|
|
|
288
280
|
const openMobileOverlay = () => {
|
|
@@ -304,6 +296,27 @@ export default defineComponent({
|
|
|
304
296
|
menu.value = false;
|
|
305
297
|
};
|
|
306
298
|
|
|
299
|
+
const reset = (): void => {
|
|
300
|
+
if (props.modelValue) {
|
|
301
|
+
// FSClock just gives two numbers without consideration for the time zone
|
|
302
|
+
// We must adjust the time to the user's time zone
|
|
303
|
+
innerTime.value = Math.floor((props.modelValue + getUserOffsetMillis()) % (24 * 60 * 60 * 1000));
|
|
304
|
+
innerDate.value = props.modelValue - innerTime.value;
|
|
305
|
+
}
|
|
306
|
+
else {
|
|
307
|
+
innerDate.value = null;
|
|
308
|
+
innerTime.value = 0;
|
|
309
|
+
}
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
onMounted((): void => {
|
|
313
|
+
reset();
|
|
314
|
+
});
|
|
315
|
+
|
|
316
|
+
watch(() => props.modelValue, () => {
|
|
317
|
+
reset();
|
|
318
|
+
});
|
|
319
|
+
|
|
307
320
|
watch([menu, dialog], (): void => {
|
|
308
321
|
if (!menu.value && !dialog.value) {
|
|
309
322
|
setTimeout(() => tabs.value = 0, 290);
|
|
@@ -76,11 +76,9 @@
|
|
|
76
76
|
</template>
|
|
77
77
|
|
|
78
78
|
<script lang="ts">
|
|
79
|
-
import type
|
|
80
|
-
import { computed, defineComponent, ref } from "vue";
|
|
79
|
+
import { computed, defineComponent, onMounted, type PropType, ref, watch } from "vue";
|
|
81
80
|
|
|
82
|
-
import type
|
|
83
|
-
import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
81
|
+
import { type ColorBase, ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
84
82
|
import { useAppTimeZone } from "@dative-gpi/foundation-shared-services/composables";
|
|
85
83
|
import { useRules } from "@dative-gpi/foundation-shared-components/composables";
|
|
86
84
|
|
|
@@ -151,31 +149,11 @@ export default defineComponent({
|
|
|
151
149
|
const { validateOn, getMessages } = useRules();
|
|
152
150
|
|
|
153
151
|
const dialog = ref(false);
|
|
152
|
+
|
|
154
153
|
const innerDateRange = ref<number[] | null>(null);
|
|
155
154
|
const innerTimeRight = ref(0);
|
|
156
155
|
const innerTimeLeft = ref(0);
|
|
157
156
|
|
|
158
|
-
if (props.modelValue && Array.isArray(props.modelValue)) {
|
|
159
|
-
// FSClock just gives two numbers without consideration for the time zone
|
|
160
|
-
// We must adjust the time to the user's time zone
|
|
161
|
-
switch (props.modelValue.length) {
|
|
162
|
-
case 0: {
|
|
163
|
-
break;
|
|
164
|
-
}
|
|
165
|
-
case 1: {
|
|
166
|
-
innerTimeLeft.value = Math.floor((props.modelValue[0] + getUserOffsetMillis()) % (24 * 60 * 60 * 1000));
|
|
167
|
-
innerDateRange.value = [props.modelValue[0] - innerTimeLeft.value];
|
|
168
|
-
break;
|
|
169
|
-
}
|
|
170
|
-
default: {
|
|
171
|
-
innerTimeLeft.value = Math.floor((props.modelValue[0] + getUserOffsetMillis()) % (24 * 60 * 60 * 1000));
|
|
172
|
-
innerTimeRight.value = Math.floor((props.modelValue[1] + getUserOffsetMillis()) % (24 * 60 * 60 * 1000));
|
|
173
|
-
innerDateRange.value = [props.modelValue[0] - innerTimeLeft.value, props.modelValue[1] - innerTimeRight.value];
|
|
174
|
-
break;
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
|
|
179
157
|
const toShortTimeFormat = computed((): string => {
|
|
180
158
|
if (!props.modelValue || !Array.isArray(props.modelValue) || !props.modelValue.length) {
|
|
181
159
|
return "";
|
|
@@ -219,6 +197,42 @@ export default defineComponent({
|
|
|
219
197
|
dialog.value = false;
|
|
220
198
|
};
|
|
221
199
|
|
|
200
|
+
const reset = (): void => {
|
|
201
|
+
if (props.modelValue && Array.isArray(props.modelValue)) {
|
|
202
|
+
// FSClock just gives two numbers without consideration for the time zone
|
|
203
|
+
// We must adjust the time to the user's time zone
|
|
204
|
+
switch (props.modelValue.length) {
|
|
205
|
+
case 0: {
|
|
206
|
+
break;
|
|
207
|
+
}
|
|
208
|
+
case 1: {
|
|
209
|
+
innerTimeLeft.value = Math.floor((props.modelValue[0] + getUserOffsetMillis()) % (24 * 60 * 60 * 1000));
|
|
210
|
+
innerDateRange.value = [props.modelValue[0] - innerTimeLeft.value];
|
|
211
|
+
break;
|
|
212
|
+
}
|
|
213
|
+
default: {
|
|
214
|
+
innerTimeLeft.value = Math.floor((props.modelValue[0] + getUserOffsetMillis()) % (24 * 60 * 60 * 1000));
|
|
215
|
+
innerTimeRight.value = Math.floor((props.modelValue[1] + getUserOffsetMillis()) % (24 * 60 * 60 * 1000));
|
|
216
|
+
innerDateRange.value = [props.modelValue[0] - innerTimeLeft.value, props.modelValue[1] - innerTimeRight.value];
|
|
217
|
+
break;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
else {
|
|
222
|
+
innerDateRange.value = null;
|
|
223
|
+
innerTimeLeft.value = 0;
|
|
224
|
+
innerTimeRight.value = 0;
|
|
225
|
+
}
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
onMounted((): void => {
|
|
229
|
+
reset();
|
|
230
|
+
});
|
|
231
|
+
|
|
232
|
+
watch(() => props.modelValue, () => {
|
|
233
|
+
reset();
|
|
234
|
+
});
|
|
235
|
+
|
|
222
236
|
return {
|
|
223
237
|
toShortTimeFormat,
|
|
224
238
|
innerDateLeft,
|