sprintify-ui 0.6.12 → 0.6.14

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.6.12",
3
+ "version": "0.6.14",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build-fast": "rimraf dist && vite build",
@@ -133,6 +133,7 @@
133
133
  ".": {
134
134
  "import": "./dist/sprintify-ui.es.js"
135
135
  },
136
+ "./style.css": "./src/assets/main.css",
136
137
  "./dist/style.css": "./dist/style.css",
137
138
  "./tailwindcss": "./dist/tailwindcss/index.js",
138
139
  "./dist/types/src/types": "./dist/types/src/types/index.ts"
@@ -43,7 +43,7 @@
43
43
 
44
44
  <script lang="ts" setup>
45
45
  import { Ref } from 'vue';
46
- import { isArray } from 'lodash';
46
+ import { isArray, isEqual } from 'lodash';
47
47
  import { DateTime } from 'luxon';
48
48
  import { Icon as BaseIcon } from '@iconify/vue';
49
49
  import { useField } from '@/composables/field';
@@ -182,7 +182,10 @@ const flatpickrConfig = computed(() => {
182
182
 
183
183
  // Make sure the model value is formatted on the parent component onload
184
184
  onMounted(() => {
185
- if (props.modelValue !== modelValueFormatted.value) {
185
+
186
+ // It is important to use isEqual here to compare Proxy with primitives, and to compare arrays
187
+
188
+ if (!isEqual(props.modelValue, modelValueFormatted.value)) {
186
189
  emitUpdate(modelValueFormatted.value);
187
190
  }
188
191
  });
@@ -235,6 +238,7 @@ onMounted(() => {
235
238
  onUnmounted(() => {
236
239
  // Cause weird animation problems when using with BaseDropdown
237
240
  // We assume the calendar will self destroy when the component is unmounted
241
+
238
242
  // picker?.destroy();
239
243
  });
240
244
 
@@ -267,7 +271,7 @@ function init() {
267
271
  });
268
272
 
269
273
  if (listDate.length == 0) {
270
- emitUpdate(null);
274
+ clear();
271
275
  return;
272
276
  }
273
277