sprintify-ui 0.0.48 → 0.0.49
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/sprintify-ui.es.js +1398 -1398
- package/package.json +1 -1
- package/src/components/BaseDatePicker.vue +8 -2
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
</div>
|
|
11
11
|
<input
|
|
12
12
|
ref="datepicker"
|
|
13
|
-
:value="
|
|
13
|
+
:value="modelValueFormatted"
|
|
14
14
|
type="text"
|
|
15
15
|
readonly
|
|
16
16
|
:disabled="disabled"
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
:placeholder="$t('sui.click_or_select_date')"
|
|
20
20
|
/>
|
|
21
21
|
<div
|
|
22
|
-
v-if="
|
|
22
|
+
v-if="modelValueFormatted && !disabled"
|
|
23
23
|
class="absolute top-0 right-0 flex h-full items-center justify-center p-1"
|
|
24
24
|
>
|
|
25
25
|
<button
|
|
@@ -105,6 +105,12 @@ const weekdaysShort = arrayRotate(
|
|
|
105
105
|
true
|
|
106
106
|
);
|
|
107
107
|
|
|
108
|
+
const modelValueFormatted = computed((): string | null => {
|
|
109
|
+
return props.modelValue
|
|
110
|
+
? DateTime.fromISO(props.modelValue).toISODate()
|
|
111
|
+
: null;
|
|
112
|
+
});
|
|
113
|
+
|
|
108
114
|
let picker = null as Pikaday | null;
|
|
109
115
|
|
|
110
116
|
onMounted(() => {
|