sprintify-ui 0.0.121 → 0.0.122

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.
@@ -1,9 +1,9 @@
1
- import { PropType } from 'vue';
2
1
  import { Option } from '@/types';
2
+ import { PropType } from 'vue';
3
3
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
4
4
  modelValue: {
5
- required: true;
6
- type: PropType<Option[] | null>;
5
+ default: undefined;
6
+ type: PropType<string[] | null | undefined>;
7
7
  };
8
8
  url: {
9
9
  required: true;
@@ -53,8 +53,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
53
53
  setKeywords: (input: string) => void | undefined;
54
54
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
55
55
  modelValue: {
56
- required: true;
57
- type: PropType<Option[] | null>;
56
+ default: undefined;
57
+ type: PropType<string[] | null | undefined>;
58
58
  };
59
59
  url: {
60
60
  required: true;
@@ -103,6 +103,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
103
103
  disabled: boolean;
104
104
  max: number;
105
105
  placeholder: string;
106
+ modelValue: string[] | null | undefined;
106
107
  hasError: boolean;
107
108
  queryKey: string;
108
109
  primaryKey: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprintify-ui",
3
- "version": "0.0.121",
3
+ "version": "0.0.122",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build-fast": "rimraf dist && vite build",
@@ -17,23 +17,24 @@
17
17
  <slot name="option" v-bind="optionProps" />
18
18
  </template>
19
19
  <template #empty="emptyProps">
20
- <slot name="empty" v-bind="emptyProps"></slot>
20
+ <slot name="empty" v-bind="emptyProps" />
21
21
  </template>
22
22
  <template #footer="footerProps">
23
- <slot name="footer" v-bind="footerProps"></slot>
23
+ <slot name="footer" v-bind="footerProps" />
24
24
  </template>
25
25
  </BaseTagAutocompleteFetch>
26
26
  </template>
27
27
 
28
28
  <script lang="ts" setup>
29
- import { PropType, Ref } from 'vue';
29
+ import { isEqual } from 'lodash';
30
30
  import { Option } from '@/types';
31
31
  import BaseTagAutocompleteFetch from './BaseTagAutocompleteFetch.vue';
32
+ import { PropType, Ref } from 'vue';
32
33
 
33
34
  const props = defineProps({
34
35
  modelValue: {
35
- required: true,
36
- type: [Array, null] as PropType<Option[] | null>,
36
+ default: undefined,
37
+ type: [Array, null, undefined] as PropType<string[] | null | undefined>,
37
38
  },
38
39
  url: {
39
40
  required: true,
@@ -90,6 +91,10 @@ const models = ref(props.currentModels);
90
91
  watch(
91
92
  () => props.currentModels,
92
93
  (newValue, oldValue) => {
94
+ if (isEqual(newValue, oldValue)) {
95
+ return;
96
+ }
97
+
93
98
  models.value = newValue;
94
99
  },
95
100
  { deep: true }