@unsource/ui 2.9.47 → 2.9.48
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/module.json +1 -1
- package/dist/runtime/components/UnCheckboxItem.d.vue.ts +11 -1
- package/dist/runtime/components/UnCheckboxItem.vue +13 -1
- package/dist/runtime/components/UnCheckboxItem.vue.d.ts +11 -1
- package/dist/runtime/components/UnRadioItem.d.vue.ts +11 -1
- package/dist/runtime/components/UnRadioItem.vue +13 -1
- package/dist/runtime/components/UnRadioItem.vue.d.ts +11 -1
- package/dist/runtime/components/UnSelect.d.vue.ts +13 -1
- package/dist/runtime/components/UnSelect.vue +24 -3
- package/dist/runtime/components/UnSelect.vue.d.ts +13 -1
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -8,6 +8,16 @@ type __VLS_Props = {
|
|
|
8
8
|
customClass?: CheckboxCustomClass;
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
};
|
|
11
|
-
declare
|
|
11
|
+
declare var __VLS_9: any, __VLS_10: any;
|
|
12
|
+
type __VLS_Slots = {} & {
|
|
13
|
+
[K in NonNullable<typeof __VLS_9>]?: (props: typeof __VLS_10) => any;
|
|
14
|
+
};
|
|
15
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
17
|
declare const _default: typeof __VLS_export;
|
|
13
18
|
export default _default;
|
|
19
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -20,11 +20,22 @@
|
|
|
20
20
|
:class="customClass.card"
|
|
21
21
|
:custom-class="customClass.item"
|
|
22
22
|
:item
|
|
23
|
-
|
|
23
|
+
>
|
|
24
|
+
<template
|
|
25
|
+
v-for="(_, name) in slots"
|
|
26
|
+
#[name]="slotProps"
|
|
27
|
+
>
|
|
28
|
+
<slot
|
|
29
|
+
:name="name"
|
|
30
|
+
v-bind="slotProps"
|
|
31
|
+
/>
|
|
32
|
+
</template>
|
|
33
|
+
</UnCard>
|
|
24
34
|
</div>
|
|
25
35
|
</template>
|
|
26
36
|
|
|
27
37
|
<script setup>
|
|
38
|
+
import { useSlots } from "#imports";
|
|
28
39
|
const emit = defineEmits(["input"]);
|
|
29
40
|
const { customClass = {} } = defineProps({
|
|
30
41
|
item: { type: Object, required: true },
|
|
@@ -35,4 +46,5 @@ const { customClass = {} } = defineProps({
|
|
|
35
46
|
const toggle = () => {
|
|
36
47
|
emit("input");
|
|
37
48
|
};
|
|
49
|
+
const slots = useSlots();
|
|
38
50
|
</script>
|
|
@@ -8,6 +8,16 @@ type __VLS_Props = {
|
|
|
8
8
|
customClass?: CheckboxCustomClass;
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
};
|
|
11
|
-
declare
|
|
11
|
+
declare var __VLS_9: any, __VLS_10: any;
|
|
12
|
+
type __VLS_Slots = {} & {
|
|
13
|
+
[K in NonNullable<typeof __VLS_9>]?: (props: typeof __VLS_10) => any;
|
|
14
|
+
};
|
|
15
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
17
|
declare const _default: typeof __VLS_export;
|
|
13
18
|
export default _default;
|
|
19
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -14,6 +14,16 @@ type __VLS_Props = {
|
|
|
14
14
|
disabled?: boolean;
|
|
15
15
|
infoIcon?: string;
|
|
16
16
|
};
|
|
17
|
-
declare
|
|
17
|
+
declare var __VLS_9: any, __VLS_10: any;
|
|
18
|
+
type __VLS_Slots = {} & {
|
|
19
|
+
[K in NonNullable<typeof __VLS_9>]?: (props: typeof __VLS_10) => any;
|
|
20
|
+
};
|
|
21
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
18
23
|
declare const _default: typeof __VLS_export;
|
|
19
24
|
export default _default;
|
|
25
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -21,11 +21,22 @@
|
|
|
21
21
|
:class="customClass.card"
|
|
22
22
|
:custom-class="customClass.item"
|
|
23
23
|
:info-icon="infoIcon"
|
|
24
|
-
|
|
24
|
+
>
|
|
25
|
+
<template
|
|
26
|
+
v-for="(_, name) in slots"
|
|
27
|
+
#[name]="slotProps"
|
|
28
|
+
>
|
|
29
|
+
<slot
|
|
30
|
+
:name="name"
|
|
31
|
+
v-bind="slotProps"
|
|
32
|
+
/>
|
|
33
|
+
</template>
|
|
34
|
+
</UnCard>
|
|
25
35
|
</div>
|
|
26
36
|
</template>
|
|
27
37
|
|
|
28
38
|
<script setup>
|
|
39
|
+
import { useSlots } from "#imports";
|
|
29
40
|
const emit = defineEmits(["input"]);
|
|
30
41
|
const { customClass = {}, disabled } = defineProps({
|
|
31
42
|
value: { type: null, required: true },
|
|
@@ -39,4 +50,5 @@ const toggle = () => {
|
|
|
39
50
|
if (disabled) return;
|
|
40
51
|
emit("input");
|
|
41
52
|
};
|
|
53
|
+
const slots = useSlots();
|
|
42
54
|
</script>
|
|
@@ -14,6 +14,16 @@ type __VLS_Props = {
|
|
|
14
14
|
disabled?: boolean;
|
|
15
15
|
infoIcon?: string;
|
|
16
16
|
};
|
|
17
|
-
declare
|
|
17
|
+
declare var __VLS_9: any, __VLS_10: any;
|
|
18
|
+
type __VLS_Slots = {} & {
|
|
19
|
+
[K in NonNullable<typeof __VLS_9>]?: (props: typeof __VLS_10) => any;
|
|
20
|
+
};
|
|
21
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
18
23
|
declare const _default: typeof __VLS_export;
|
|
19
24
|
export default _default;
|
|
25
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -23,10 +23,22 @@ type __VLS_ModelProps = {
|
|
|
23
23
|
modelValue?: any;
|
|
24
24
|
};
|
|
25
25
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
26
|
-
declare
|
|
26
|
+
declare var __VLS_35: any, __VLS_36: any, __VLS_56: any, __VLS_57: any;
|
|
27
|
+
type __VLS_Slots = {} & {
|
|
28
|
+
[K in NonNullable<typeof __VLS_35>]?: (props: typeof __VLS_36) => any;
|
|
29
|
+
} & {
|
|
30
|
+
[K in NonNullable<typeof __VLS_56>]?: (props: typeof __VLS_57) => any;
|
|
31
|
+
};
|
|
32
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
27
33
|
"update:modelValue": (value: any) => any;
|
|
28
34
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
29
35
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
30
36
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
37
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
31
38
|
declare const _default: typeof __VLS_export;
|
|
32
39
|
export default _default;
|
|
40
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
41
|
+
new (): {
|
|
42
|
+
$slots: S;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
>
|
|
39
39
|
<div
|
|
40
40
|
v-show="show && !readonly || inline"
|
|
41
|
+
ref="list"
|
|
41
42
|
v-on-click-outside="close"
|
|
42
43
|
name="wrapper"
|
|
43
|
-
ref="list"
|
|
44
44
|
:style="!isMobile && !inline && dropdownStyles"
|
|
45
45
|
class="z-1000 md:mt-3 rounded-2xl w-auto <md:w-full min-w-fit text-base flex flex-col items-stretch overflow-y-auto scrollbar-thin"
|
|
46
46
|
:class="[
|
|
@@ -79,7 +79,17 @@
|
|
|
79
79
|
:selected="value?.includes?.(Value(option))"
|
|
80
80
|
:disabled="option.disable"
|
|
81
81
|
@click="handleSelect(option)"
|
|
82
|
-
|
|
82
|
+
>
|
|
83
|
+
<template
|
|
84
|
+
v-for="(_, name) in slots"
|
|
85
|
+
#[name]="slotProps"
|
|
86
|
+
>
|
|
87
|
+
<slot
|
|
88
|
+
:name="name"
|
|
89
|
+
v-bind="slotProps"
|
|
90
|
+
/>
|
|
91
|
+
</template>
|
|
92
|
+
</UnCheckboxItem>
|
|
83
93
|
<UnButton
|
|
84
94
|
v-if="!inline"
|
|
85
95
|
variant="primary-fill"
|
|
@@ -101,7 +111,17 @@
|
|
|
101
111
|
:disabled="option.disable"
|
|
102
112
|
class="!min-w-60"
|
|
103
113
|
@click="handleSelect(option)"
|
|
104
|
-
|
|
114
|
+
>
|
|
115
|
+
<template
|
|
116
|
+
v-for="(_, name) in slots"
|
|
117
|
+
#[name]="slotProps"
|
|
118
|
+
>
|
|
119
|
+
<slot
|
|
120
|
+
:name="name"
|
|
121
|
+
v-bind="slotProps"
|
|
122
|
+
/>
|
|
123
|
+
</template>
|
|
124
|
+
</UnRadioItem>
|
|
105
125
|
</template>
|
|
106
126
|
</div>
|
|
107
127
|
</div>
|
|
@@ -130,6 +150,7 @@ const id = useId();
|
|
|
130
150
|
const value = defineModel({ type: null });
|
|
131
151
|
const show = ref(false);
|
|
132
152
|
const search = ref("");
|
|
153
|
+
const slots = useSlots();
|
|
133
154
|
const Searchable = computed(() => searchable && items?.length > 8);
|
|
134
155
|
const searchedOptions = computed(() => {
|
|
135
156
|
if (!search.value) return items;
|
|
@@ -23,10 +23,22 @@ type __VLS_ModelProps = {
|
|
|
23
23
|
modelValue?: any;
|
|
24
24
|
};
|
|
25
25
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
26
|
-
declare
|
|
26
|
+
declare var __VLS_35: any, __VLS_36: any, __VLS_56: any, __VLS_57: any;
|
|
27
|
+
type __VLS_Slots = {} & {
|
|
28
|
+
[K in NonNullable<typeof __VLS_35>]?: (props: typeof __VLS_36) => any;
|
|
29
|
+
} & {
|
|
30
|
+
[K in NonNullable<typeof __VLS_56>]?: (props: typeof __VLS_57) => any;
|
|
31
|
+
};
|
|
32
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
27
33
|
"update:modelValue": (value: any) => any;
|
|
28
34
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
29
35
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
30
36
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
37
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
31
38
|
declare const _default: typeof __VLS_export;
|
|
32
39
|
export default _default;
|
|
40
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
41
|
+
new (): {
|
|
42
|
+
$slots: S;
|
|
43
|
+
};
|
|
44
|
+
};
|