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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprintify-ui",
3
- "version": "0.0.48",
3
+ "version": "0.0.49",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build-fast": "rimraf dist && vite build",
@@ -10,7 +10,7 @@
10
10
  </div>
11
11
  <input
12
12
  ref="datepicker"
13
- :value="modelValue"
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="modelValue && !disabled"
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(() => {