@saasmakers/ui 0.1.73 → 0.1.74
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,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
2
|
import type { BaseTags } from '../../types/bases'
|
|
3
3
|
|
|
4
|
-
const props = withDefaults(defineProps<Omit<BaseTags, '
|
|
4
|
+
const props = withDefaults(defineProps<Omit<BaseTags, 'modelValue'>>(), {
|
|
5
5
|
active: false,
|
|
6
6
|
clickable: true,
|
|
7
7
|
draggable: false,
|
|
@@ -27,7 +27,7 @@ const emit = defineEmits<{
|
|
|
27
27
|
update: [event: FocusEvent | KeyboardEvent, name: string, tagId?: number | string]
|
|
28
28
|
}>()
|
|
29
29
|
|
|
30
|
-
const modelValue = defineModel<
|
|
30
|
+
const modelValue = defineModel<BaseTags['modelValue']>({ default: () => [] })
|
|
31
31
|
|
|
32
32
|
const keyForTagCreation = ref(Date.now())
|
|
33
33
|
const keyForTagUpdate = ref(Date.now())
|
package/app/types/bases.d.ts
CHANGED
|
@@ -295,12 +295,12 @@ export interface BaseTags {
|
|
|
295
295
|
hasBack?: boolean
|
|
296
296
|
hasCreation?: boolean
|
|
297
297
|
maxTags?: number
|
|
298
|
+
modelValue: (number | string)[]
|
|
298
299
|
removable?: boolean
|
|
299
300
|
selectable?: boolean
|
|
300
301
|
selectableUnique?: boolean
|
|
301
302
|
size?: BaseTagSize
|
|
302
303
|
tags: BaseTag[]
|
|
303
|
-
value?: (number | string)[]
|
|
304
304
|
wrap?: boolean
|
|
305
305
|
}
|
|
306
306
|
|
package/app/types/fields.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export interface FieldCheckbox {
|
|
|
13
13
|
labelIcon?: string
|
|
14
14
|
lineThrough?: boolean
|
|
15
15
|
loading?: boolean
|
|
16
|
-
modelValue
|
|
16
|
+
modelValue: boolean
|
|
17
17
|
required?: boolean
|
|
18
18
|
size?: FieldSize
|
|
19
19
|
truncate?: boolean
|
|
@@ -22,11 +22,11 @@ export interface FieldCheckbox {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
export interface FieldDays {
|
|
25
|
-
modelValue
|
|
25
|
+
modelValue: number[]
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
export interface FieldEmojis {
|
|
29
|
-
modelValue
|
|
29
|
+
modelValue: string
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
export interface FieldInput {
|
|
@@ -93,7 +93,7 @@ export interface FieldSelect {
|
|
|
93
93
|
label?: BaseTextText
|
|
94
94
|
labelIcon?: string
|
|
95
95
|
maxHeight?: FieldSelectMaxHeight
|
|
96
|
-
modelValue
|
|
96
|
+
modelValue: string
|
|
97
97
|
openOnHover?: boolean
|
|
98
98
|
options?: FieldSelectOption[]
|
|
99
99
|
padding?: boolean
|
|
@@ -122,7 +122,7 @@ export type FieldSelectMaxHeight = 'lg' | 'md' | 'sm' | 'xs'
|
|
|
122
122
|
|
|
123
123
|
export interface FieldTabs {
|
|
124
124
|
minimizeOnMobile?: boolean
|
|
125
|
-
modelValue
|
|
125
|
+
modelValue: Array<number | string> | number | string
|
|
126
126
|
multiple?: boolean
|
|
127
127
|
size?: FieldSize
|
|
128
128
|
tabs: FieldTabsTab[]
|
|
@@ -152,7 +152,7 @@ export interface FieldTextarea {
|
|
|
152
152
|
label?: BaseTextText
|
|
153
153
|
labelIcon?: string
|
|
154
154
|
loading?: boolean
|
|
155
|
-
modelValue
|
|
155
|
+
modelValue: string
|
|
156
156
|
padding?: boolean
|
|
157
157
|
placeholder?: string
|
|
158
158
|
required?: boolean
|