@speckle/ui-components 2.23.4 → 2.23.6
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/README.md +1 -1
- package/dist/components/form/TextArea.vue.d.ts +14 -0
- package/dist/components/form/TextInput.vue.d.ts +1 -1
- package/dist/components/form/select/Multi.vue.d.ts +191 -0
- package/dist/components/global/ToastRenderer.vue.d.ts +4 -4
- package/dist/components/global/icon/Plus.vue.d.ts +2 -0
- package/dist/components/layout/Dialog.vue.d.ts +2 -0
- package/dist/components/layout/sidebar/menu/group/Group.vue.d.ts +16 -4
- package/dist/components/user/Avatar.vue.d.ts +10 -0
- package/dist/components/user/AvatarEditable.vue.d.ts +36 -17
- package/dist/components/user/AvatarGroup.vue.d.ts +5 -0
- package/dist/helpers/common/validation.d.ts +1 -0
- package/dist/lib.cjs +1 -1
- package/dist/lib.cjs.map +1 -1
- package/dist/lib.d.ts +2 -1
- package/dist/lib.js +2879 -2229
- package/dist/lib.js.map +1 -1
- package/dist/stories/composables/toast.d.ts +3 -4
- package/eslint.config.mjs +8 -0
- package/package.json +5 -4
- package/tailwind.config.cjs +2 -2
- package/utils/tailwind-configure.cjs +6 -8
- package/utils/tailwind-configure.d.ts +1 -1
- package/utils/tailwind-configure.js +6 -6
- package/dist/lib-utils.d.ts +0 -9
- /package/dist/components/{layout/sidebar/menu/group → global/icon}/ArrowFilled.vue.d.ts +0 -0
- /package/dist/components/{layout/sidebar/menu/group/Plus.vue.d.ts → global/icon/Edit.vue.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ Speckle UI component library built with Vue 3 and relying on the Speckle Tailwin
|
|
|
6
6
|
|
|
7
7
|
1. Make sure you have `@speckle/tailwind-theme` installed and set up with Tailwind
|
|
8
8
|
1. Install `@speckle/ui-components`
|
|
9
|
-
1. In your tailwind config import `
|
|
9
|
+
1. In your tailwind config import `tailwindContentEntries` from `@speckle/ui-components/tailwind-configure` and invoke it in the `contents` field to ensure PurgeCSS is configured correctly. It requires the CJS `require` object as its only parameter. If it isn't available (in an ESM environment), you can use node's `createRequire()`.
|
|
10
10
|
1. Import `@speckle/ui-components/style.css` in your app. If `exports` map isn't supported you can also import from `@speckle/ui-components/dist/style.css`
|
|
11
11
|
|
|
12
12
|
### Usage in Nuxt v3
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { RuleExpression } from 'vee-validate';
|
|
2
|
+
import type { LabelPosition } from '../../composables/form/input';
|
|
2
3
|
import type { InputColor } from '../../composables/form/textInput';
|
|
4
|
+
type InputSize = 'sm' | 'base' | 'lg' | 'xl';
|
|
3
5
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
4
6
|
/**
|
|
5
7
|
* Unique ID for the input (must be unique page-wide)
|
|
@@ -22,10 +24,15 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
22
24
|
showOptional?: boolean | undefined;
|
|
23
25
|
color?: InputColor | undefined;
|
|
24
26
|
textareaClasses?: string | undefined;
|
|
27
|
+
size?: InputSize | undefined;
|
|
28
|
+
labelPosition?: LabelPosition | undefined;
|
|
29
|
+
wrapperClasses?: string | undefined;
|
|
25
30
|
}>, {
|
|
26
31
|
useLabelInErrors: boolean;
|
|
27
32
|
modelValue: string;
|
|
28
33
|
color: string;
|
|
34
|
+
labelPosition: string;
|
|
35
|
+
wrapperClasses: string;
|
|
29
36
|
}>, {
|
|
30
37
|
focus: () => void;
|
|
31
38
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -61,10 +68,15 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
61
68
|
showOptional?: boolean | undefined;
|
|
62
69
|
color?: InputColor | undefined;
|
|
63
70
|
textareaClasses?: string | undefined;
|
|
71
|
+
size?: InputSize | undefined;
|
|
72
|
+
labelPosition?: LabelPosition | undefined;
|
|
73
|
+
wrapperClasses?: string | undefined;
|
|
64
74
|
}>, {
|
|
65
75
|
useLabelInErrors: boolean;
|
|
66
76
|
modelValue: string;
|
|
67
77
|
color: string;
|
|
78
|
+
labelPosition: string;
|
|
79
|
+
wrapperClasses: string;
|
|
68
80
|
}>>> & {
|
|
69
81
|
onChange?: ((val: {
|
|
70
82
|
event?: Event | undefined;
|
|
@@ -78,8 +90,10 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
78
90
|
onClear?: (() => any) | undefined;
|
|
79
91
|
}, {
|
|
80
92
|
modelValue: string;
|
|
93
|
+
labelPosition: LabelPosition;
|
|
81
94
|
color: InputColor;
|
|
82
95
|
useLabelInErrors: boolean;
|
|
96
|
+
wrapperClasses: string;
|
|
83
97
|
}, {}>;
|
|
84
98
|
export default _default;
|
|
85
99
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -404,11 +404,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
404
404
|
placeholder: Optional<string>;
|
|
405
405
|
fullWidth: boolean;
|
|
406
406
|
showOptional: boolean;
|
|
407
|
+
wrapperClasses: string;
|
|
407
408
|
readOnly: boolean;
|
|
408
409
|
customIcon: Optional<PropAnyComponent>;
|
|
409
410
|
inputClasses: string;
|
|
410
411
|
loading: boolean;
|
|
411
|
-
wrapperClasses: string;
|
|
412
412
|
rightIcon: Optional<PropAnyComponent>;
|
|
413
413
|
rightIconTitle: string;
|
|
414
414
|
tooltipText: string;
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
import type { MaybeAsync, Optional } from '@speckle/shared';
|
|
3
|
+
import type { RuleExpression } from 'vee-validate';
|
|
4
|
+
import type { LabelPosition } from '../../../composables/form/input';
|
|
5
|
+
declare const _default: <SingleItem extends string | number | Record<string, unknown>>(__VLS_props: {
|
|
6
|
+
size?: Optional<"sm" | "base" | "lg" | "xl">;
|
|
7
|
+
readonly label: string;
|
|
8
|
+
modelValue?: ([{
|
|
9
|
+
type: PropType<SingleItem | SingleItem[] | undefined>;
|
|
10
|
+
default: undefined;
|
|
11
|
+
}] extends [import("vue").Prop<infer V, infer D>] ? unknown extends V ? import("@vue/shared").IfAny<V, V, D> : V : {
|
|
12
|
+
type: PropType<SingleItem | SingleItem[] | undefined>;
|
|
13
|
+
default: undefined;
|
|
14
|
+
}) | undefined;
|
|
15
|
+
"onUpdate:modelValue"?: ((v: SingleItem | SingleItem[] | undefined) => any) | undefined;
|
|
16
|
+
readonly name: string;
|
|
17
|
+
disabled?: Optional<boolean>;
|
|
18
|
+
rules?: RuleExpression<SingleItem | SingleItem[] | undefined>;
|
|
19
|
+
validateOnMount?: boolean | undefined;
|
|
20
|
+
showRequired?: boolean | undefined;
|
|
21
|
+
labelPosition?: LabelPosition | undefined;
|
|
22
|
+
validateOnValueUpdate?: boolean | undefined;
|
|
23
|
+
search?: boolean | undefined;
|
|
24
|
+
help?: Optional<string>;
|
|
25
|
+
showLabel?: boolean | undefined;
|
|
26
|
+
useLabelInErrors?: boolean | undefined;
|
|
27
|
+
readonly placeholder?: string | undefined;
|
|
28
|
+
showOptional?: boolean | undefined;
|
|
29
|
+
tooltipText?: string | undefined;
|
|
30
|
+
items?: SingleItem[] | undefined;
|
|
31
|
+
filterPredicate?: Optional<(item: SingleItem, searchString: string) => boolean>;
|
|
32
|
+
disabledItemPredicate?: Optional<(item: SingleItem) => boolean>;
|
|
33
|
+
getSearchResults?: Optional<(searchString: string) => MaybeAsync<SingleItem[]>>;
|
|
34
|
+
searchPlaceholder?: string | undefined;
|
|
35
|
+
readonly by?: string | undefined;
|
|
36
|
+
buttonStyle?: Optional<"base" | "simple" | "tinted">;
|
|
37
|
+
hideCheckmarks?: Optional<boolean>;
|
|
38
|
+
allowUnset?: Optional<boolean>;
|
|
39
|
+
clearable?: boolean | undefined;
|
|
40
|
+
fixedHeight?: boolean | undefined;
|
|
41
|
+
fullyControlValue?: boolean | undefined;
|
|
42
|
+
mountMenuOnBody?: boolean | undefined;
|
|
43
|
+
labelId?: string | undefined;
|
|
44
|
+
buttonId?: string | undefined;
|
|
45
|
+
readonly disabledItemTooltip?: string | undefined;
|
|
46
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
|
|
47
|
+
attrs: any;
|
|
48
|
+
slots: {
|
|
49
|
+
"nothing-selected"?(_: {}): any;
|
|
50
|
+
"something-selected"?(_: {
|
|
51
|
+
value: SingleItem[];
|
|
52
|
+
}): any;
|
|
53
|
+
"nothing-found"?(_: {}): any;
|
|
54
|
+
option?(_: {
|
|
55
|
+
class: string;
|
|
56
|
+
item: SingleItem;
|
|
57
|
+
selected: boolean;
|
|
58
|
+
disabled: boolean;
|
|
59
|
+
}): any;
|
|
60
|
+
};
|
|
61
|
+
emit: (e: 'update:modelValue', v: SingleItem | SingleItem[] | undefined) => void;
|
|
62
|
+
} | undefined, __VLS_expose?: ((exposed: import("vue").ShallowUnwrapRef<{
|
|
63
|
+
triggerSearch: () => Promise<void>;
|
|
64
|
+
}>) => void) | undefined, __VLS_setup?: Promise<{
|
|
65
|
+
props: {
|
|
66
|
+
size?: Optional<"sm" | "base" | "lg" | "xl">;
|
|
67
|
+
readonly label: string;
|
|
68
|
+
modelValue?: ([{
|
|
69
|
+
type: PropType<SingleItem | SingleItem[] | undefined>;
|
|
70
|
+
default: undefined;
|
|
71
|
+
}] extends [import("vue").Prop<infer V, infer D>] ? unknown extends V ? import("@vue/shared").IfAny<V, V, D> : V : {
|
|
72
|
+
type: PropType<SingleItem | SingleItem[] | undefined>;
|
|
73
|
+
default: undefined;
|
|
74
|
+
}) | undefined;
|
|
75
|
+
"onUpdate:modelValue"?: ((v: SingleItem | SingleItem[] | undefined) => any) | undefined;
|
|
76
|
+
readonly name: string;
|
|
77
|
+
disabled?: Optional<boolean>;
|
|
78
|
+
rules?: RuleExpression<SingleItem | SingleItem[] | undefined>;
|
|
79
|
+
validateOnMount?: boolean | undefined;
|
|
80
|
+
showRequired?: boolean | undefined;
|
|
81
|
+
labelPosition?: LabelPosition | undefined;
|
|
82
|
+
validateOnValueUpdate?: boolean | undefined;
|
|
83
|
+
search?: boolean | undefined;
|
|
84
|
+
help?: Optional<string>;
|
|
85
|
+
showLabel?: boolean | undefined;
|
|
86
|
+
useLabelInErrors?: boolean | undefined;
|
|
87
|
+
readonly placeholder?: string | undefined;
|
|
88
|
+
showOptional?: boolean | undefined;
|
|
89
|
+
tooltipText?: string | undefined;
|
|
90
|
+
items?: SingleItem[] | undefined;
|
|
91
|
+
filterPredicate?: Optional<(item: SingleItem, searchString: string) => boolean>;
|
|
92
|
+
disabledItemPredicate?: Optional<(item: SingleItem) => boolean>;
|
|
93
|
+
getSearchResults?: Optional<(searchString: string) => MaybeAsync<SingleItem[]>>;
|
|
94
|
+
searchPlaceholder?: string | undefined;
|
|
95
|
+
readonly by?: string | undefined;
|
|
96
|
+
buttonStyle?: Optional<"base" | "simple" | "tinted">;
|
|
97
|
+
hideCheckmarks?: Optional<boolean>;
|
|
98
|
+
allowUnset?: Optional<boolean>;
|
|
99
|
+
clearable?: boolean | undefined;
|
|
100
|
+
fixedHeight?: boolean | undefined;
|
|
101
|
+
fullyControlValue?: boolean | undefined;
|
|
102
|
+
mountMenuOnBody?: boolean | undefined;
|
|
103
|
+
labelId?: string | undefined;
|
|
104
|
+
buttonId?: string | undefined;
|
|
105
|
+
readonly disabledItemTooltip?: string | undefined;
|
|
106
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
107
|
+
expose(exposed: import("vue").ShallowUnwrapRef<{
|
|
108
|
+
triggerSearch: () => Promise<void>;
|
|
109
|
+
}>): void;
|
|
110
|
+
attrs: any;
|
|
111
|
+
slots: {
|
|
112
|
+
"nothing-selected"?(_: {}): any;
|
|
113
|
+
"something-selected"?(_: {
|
|
114
|
+
value: SingleItem[];
|
|
115
|
+
}): any;
|
|
116
|
+
"nothing-found"?(_: {}): any;
|
|
117
|
+
option?(_: {
|
|
118
|
+
class: string;
|
|
119
|
+
item: SingleItem;
|
|
120
|
+
selected: boolean;
|
|
121
|
+
disabled: boolean;
|
|
122
|
+
}): any;
|
|
123
|
+
};
|
|
124
|
+
emit: (e: 'update:modelValue', v: SingleItem | SingleItem[] | undefined) => void;
|
|
125
|
+
}>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
126
|
+
[key: string]: any;
|
|
127
|
+
}> & {
|
|
128
|
+
__ctx?: {
|
|
129
|
+
props: {
|
|
130
|
+
size?: Optional<"sm" | "base" | "lg" | "xl">;
|
|
131
|
+
readonly label: string;
|
|
132
|
+
modelValue?: ([{
|
|
133
|
+
type: PropType<SingleItem | SingleItem[] | undefined>;
|
|
134
|
+
default: undefined;
|
|
135
|
+
}] extends [import("vue").Prop<infer V, infer D>] ? unknown extends V ? import("@vue/shared").IfAny<V, V, D> : V : {
|
|
136
|
+
type: PropType<SingleItem | SingleItem[] | undefined>;
|
|
137
|
+
default: undefined;
|
|
138
|
+
}) | undefined;
|
|
139
|
+
"onUpdate:modelValue"?: ((v: SingleItem | SingleItem[] | undefined) => any) | undefined;
|
|
140
|
+
readonly name: string;
|
|
141
|
+
disabled?: Optional<boolean>;
|
|
142
|
+
rules?: RuleExpression<SingleItem | SingleItem[] | undefined>;
|
|
143
|
+
validateOnMount?: boolean | undefined;
|
|
144
|
+
showRequired?: boolean | undefined;
|
|
145
|
+
labelPosition?: LabelPosition | undefined;
|
|
146
|
+
validateOnValueUpdate?: boolean | undefined;
|
|
147
|
+
search?: boolean | undefined;
|
|
148
|
+
help?: Optional<string>;
|
|
149
|
+
showLabel?: boolean | undefined;
|
|
150
|
+
useLabelInErrors?: boolean | undefined;
|
|
151
|
+
readonly placeholder?: string | undefined;
|
|
152
|
+
showOptional?: boolean | undefined;
|
|
153
|
+
tooltipText?: string | undefined;
|
|
154
|
+
items?: SingleItem[] | undefined;
|
|
155
|
+
filterPredicate?: Optional<(item: SingleItem, searchString: string) => boolean>;
|
|
156
|
+
disabledItemPredicate?: Optional<(item: SingleItem) => boolean>;
|
|
157
|
+
getSearchResults?: Optional<(searchString: string) => MaybeAsync<SingleItem[]>>;
|
|
158
|
+
searchPlaceholder?: string | undefined;
|
|
159
|
+
readonly by?: string | undefined;
|
|
160
|
+
buttonStyle?: Optional<"base" | "simple" | "tinted">;
|
|
161
|
+
hideCheckmarks?: Optional<boolean>;
|
|
162
|
+
allowUnset?: Optional<boolean>;
|
|
163
|
+
clearable?: boolean | undefined;
|
|
164
|
+
fixedHeight?: boolean | undefined;
|
|
165
|
+
fullyControlValue?: boolean | undefined;
|
|
166
|
+
mountMenuOnBody?: boolean | undefined;
|
|
167
|
+
labelId?: string | undefined;
|
|
168
|
+
buttonId?: string | undefined;
|
|
169
|
+
readonly disabledItemTooltip?: string | undefined;
|
|
170
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
171
|
+
expose(exposed: import("vue").ShallowUnwrapRef<{
|
|
172
|
+
triggerSearch: () => Promise<void>;
|
|
173
|
+
}>): void;
|
|
174
|
+
attrs: any;
|
|
175
|
+
slots: {
|
|
176
|
+
"nothing-selected"?(_: {}): any;
|
|
177
|
+
"something-selected"?(_: {
|
|
178
|
+
value: SingleItem[];
|
|
179
|
+
}): any;
|
|
180
|
+
"nothing-found"?(_: {}): any;
|
|
181
|
+
option?(_: {
|
|
182
|
+
class: string;
|
|
183
|
+
item: SingleItem;
|
|
184
|
+
selected: boolean;
|
|
185
|
+
disabled: boolean;
|
|
186
|
+
}): any;
|
|
187
|
+
};
|
|
188
|
+
emit: (e: 'update:modelValue', v: SingleItem | SingleItem[] | undefined) => void;
|
|
189
|
+
} | undefined;
|
|
190
|
+
};
|
|
191
|
+
export default _default;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { MaybeNullOrUndefined } from '@speckle/shared';
|
|
2
2
|
import type { ToastNotification } from '../../helpers/global/toast';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
-
|
|
4
|
+
notification: MaybeNullOrUndefined<ToastNotification>;
|
|
5
5
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
-
|
|
6
|
+
"update:notification": (val: MaybeNullOrUndefined<ToastNotification>) => void;
|
|
7
7
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
8
|
-
|
|
8
|
+
notification: MaybeNullOrUndefined<ToastNotification>;
|
|
9
9
|
}>>> & {
|
|
10
|
-
|
|
10
|
+
"onUpdate:notification"?: ((val: MaybeNullOrUndefined<ToastNotification>) => any) | undefined;
|
|
11
11
|
}, {}, {}>;
|
|
12
12
|
export default _default;
|
|
13
13
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -21,6 +21,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
21
21
|
* If set, the modal will be wrapped in a form element and the `onSubmit` callback will be invoked when the user submits the form
|
|
22
22
|
*/
|
|
23
23
|
onSubmit?: ((e: SubmitEvent) => void) | undefined;
|
|
24
|
+
isTransparent?: boolean | undefined;
|
|
24
25
|
}>, {
|
|
25
26
|
fullscreen: string;
|
|
26
27
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -47,6 +48,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
47
48
|
* If set, the modal will be wrapped in a form element and the `onSubmit` callback will be invoked when the user submits the form
|
|
48
49
|
*/
|
|
49
50
|
onSubmit?: ((e: SubmitEvent) => void) | undefined;
|
|
51
|
+
isTransparent?: boolean | undefined;
|
|
50
52
|
}>, {
|
|
51
53
|
fullscreen: string;
|
|
52
54
|
}>>> & {
|
|
@@ -9,12 +9,18 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
9
9
|
collapsible: {
|
|
10
10
|
type: import("vue").PropType<boolean>;
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
icon: {
|
|
13
|
+
type: import("vue").PropType<"add" | "edit">;
|
|
14
|
+
};
|
|
15
|
+
iconText: {
|
|
13
16
|
type: import("vue").PropType<string>;
|
|
14
17
|
};
|
|
15
|
-
|
|
18
|
+
iconClick: {
|
|
16
19
|
type: import("vue").PropType<() => void>;
|
|
17
20
|
};
|
|
21
|
+
noHover: {
|
|
22
|
+
type: import("vue").PropType<boolean>;
|
|
23
|
+
};
|
|
18
24
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
25
|
collapsed: import("vue").PropType<boolean>;
|
|
20
26
|
tag: {
|
|
@@ -26,12 +32,18 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
26
32
|
collapsible: {
|
|
27
33
|
type: import("vue").PropType<boolean>;
|
|
28
34
|
};
|
|
29
|
-
|
|
35
|
+
icon: {
|
|
36
|
+
type: import("vue").PropType<"add" | "edit">;
|
|
37
|
+
};
|
|
38
|
+
iconText: {
|
|
30
39
|
type: import("vue").PropType<string>;
|
|
31
40
|
};
|
|
32
|
-
|
|
41
|
+
iconClick: {
|
|
33
42
|
type: import("vue").PropType<() => void>;
|
|
34
43
|
};
|
|
44
|
+
noHover: {
|
|
45
|
+
type: import("vue").PropType<boolean>;
|
|
46
|
+
};
|
|
35
47
|
}>>, {}, {}>, {
|
|
36
48
|
"title-icon"?(_: {}): any;
|
|
37
49
|
default?(_: {}): any;
|
|
@@ -8,10 +8,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
8
8
|
noBorder?: boolean | undefined;
|
|
9
9
|
noBg?: boolean | undefined;
|
|
10
10
|
hideTooltip?: boolean | undefined;
|
|
11
|
+
rounded?: boolean | undefined;
|
|
12
|
+
lightStyle?: boolean | undefined;
|
|
11
13
|
}>, {
|
|
12
14
|
size: string;
|
|
13
15
|
hoverEffect: boolean;
|
|
14
16
|
user: null;
|
|
17
|
+
rounded: boolean;
|
|
18
|
+
lightStyle: boolean;
|
|
15
19
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
16
20
|
user?: MaybeNullOrUndefined<AvatarUser>;
|
|
17
21
|
size?: UserAvatarSize | undefined;
|
|
@@ -20,14 +24,20 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
20
24
|
noBorder?: boolean | undefined;
|
|
21
25
|
noBg?: boolean | undefined;
|
|
22
26
|
hideTooltip?: boolean | undefined;
|
|
27
|
+
rounded?: boolean | undefined;
|
|
28
|
+
lightStyle?: boolean | undefined;
|
|
23
29
|
}>, {
|
|
24
30
|
size: string;
|
|
25
31
|
hoverEffect: boolean;
|
|
26
32
|
user: null;
|
|
33
|
+
rounded: boolean;
|
|
34
|
+
lightStyle: boolean;
|
|
27
35
|
}>>>, {
|
|
28
36
|
size: UserAvatarSize;
|
|
37
|
+
rounded: boolean;
|
|
29
38
|
user: AvatarUser | null;
|
|
30
39
|
hoverEffect: boolean;
|
|
40
|
+
lightStyle: boolean;
|
|
31
41
|
}, {}>, {
|
|
32
42
|
default?(_: {}): any;
|
|
33
43
|
"absolute-anchor"?(_: {}): any;
|
|
@@ -3,17 +3,23 @@ import type { UserAvatarSize } from '../../composables/user/avatar';
|
|
|
3
3
|
type ModelType = MaybeNullOrUndefined<string>;
|
|
4
4
|
declare const _default: import("vue").DefineComponent<{
|
|
5
5
|
editMode: import("vue").PropType<boolean>;
|
|
6
|
+
size: {
|
|
7
|
+
type: import("vue").PropType<UserAvatarSize>;
|
|
8
|
+
};
|
|
9
|
+
rounded: {
|
|
10
|
+
type: import("vue").PropType<boolean>;
|
|
11
|
+
default: boolean;
|
|
12
|
+
};
|
|
6
13
|
modelValue: {
|
|
7
14
|
type: import("vue").PropType<string | null>;
|
|
8
15
|
};
|
|
9
|
-
placeholder: {
|
|
10
|
-
type: import("vue").PropType<string>;
|
|
11
|
-
required: true;
|
|
12
|
-
};
|
|
13
16
|
name: {
|
|
14
17
|
type: import("vue").PropType<string>;
|
|
15
18
|
required: true;
|
|
16
19
|
};
|
|
20
|
+
disabled: {
|
|
21
|
+
type: import("vue").PropType<boolean>;
|
|
22
|
+
};
|
|
17
23
|
rules: {
|
|
18
24
|
type: import("vue").PropType<string | Record<string, unknown> | import("vee-validate").GenericValidateFunction<ModelType> | import("vee-validate").GenericValidateFunction<ModelType>[] | {
|
|
19
25
|
validate(value: ModelType, options: Record<string, any>): Promise<ModelType>;
|
|
@@ -25,11 +31,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
25
31
|
validateOnValueUpdate: {
|
|
26
32
|
type: import("vue").PropType<boolean>;
|
|
27
33
|
};
|
|
28
|
-
|
|
29
|
-
type: import("vue").PropType<
|
|
34
|
+
placeholder: {
|
|
35
|
+
type: import("vue").PropType<string>;
|
|
36
|
+
required: true;
|
|
30
37
|
};
|
|
31
|
-
|
|
32
|
-
type: import("vue").PropType<
|
|
38
|
+
lightStyle: {
|
|
39
|
+
type: import("vue").PropType<boolean>;
|
|
40
|
+
default: boolean;
|
|
33
41
|
};
|
|
34
42
|
defaultImg: {
|
|
35
43
|
type: import("vue").PropType<string>;
|
|
@@ -42,17 +50,23 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
42
50
|
"update:modelValue": (value: ModelType) => void;
|
|
43
51
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
44
52
|
editMode: import("vue").PropType<boolean>;
|
|
53
|
+
size: {
|
|
54
|
+
type: import("vue").PropType<UserAvatarSize>;
|
|
55
|
+
};
|
|
56
|
+
rounded: {
|
|
57
|
+
type: import("vue").PropType<boolean>;
|
|
58
|
+
default: boolean;
|
|
59
|
+
};
|
|
45
60
|
modelValue: {
|
|
46
61
|
type: import("vue").PropType<string | null>;
|
|
47
62
|
};
|
|
48
|
-
placeholder: {
|
|
49
|
-
type: import("vue").PropType<string>;
|
|
50
|
-
required: true;
|
|
51
|
-
};
|
|
52
63
|
name: {
|
|
53
64
|
type: import("vue").PropType<string>;
|
|
54
65
|
required: true;
|
|
55
66
|
};
|
|
67
|
+
disabled: {
|
|
68
|
+
type: import("vue").PropType<boolean>;
|
|
69
|
+
};
|
|
56
70
|
rules: {
|
|
57
71
|
type: import("vue").PropType<string | Record<string, unknown> | import("vee-validate").GenericValidateFunction<ModelType> | import("vee-validate").GenericValidateFunction<ModelType>[] | {
|
|
58
72
|
validate(value: ModelType, options: Record<string, any>): Promise<ModelType>;
|
|
@@ -64,11 +78,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
64
78
|
validateOnValueUpdate: {
|
|
65
79
|
type: import("vue").PropType<boolean>;
|
|
66
80
|
};
|
|
67
|
-
|
|
68
|
-
type: import("vue").PropType<
|
|
81
|
+
placeholder: {
|
|
82
|
+
type: import("vue").PropType<string>;
|
|
83
|
+
required: true;
|
|
69
84
|
};
|
|
70
|
-
|
|
71
|
-
type: import("vue").PropType<
|
|
85
|
+
lightStyle: {
|
|
86
|
+
type: import("vue").PropType<boolean>;
|
|
87
|
+
default: boolean;
|
|
72
88
|
};
|
|
73
89
|
defaultImg: {
|
|
74
90
|
type: import("vue").PropType<string>;
|
|
@@ -76,5 +92,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
76
92
|
}>> & {
|
|
77
93
|
"onUpdate:modelValue"?: ((value: ModelType) => any) | undefined;
|
|
78
94
|
onSave?: ((newUrl: ModelType) => any) | undefined;
|
|
79
|
-
}, {
|
|
95
|
+
}, {
|
|
96
|
+
rounded: boolean;
|
|
97
|
+
lightStyle: boolean;
|
|
98
|
+
}, {}>;
|
|
80
99
|
export default _default;
|
|
@@ -5,30 +5,35 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
5
5
|
size?: UserAvatarSize | undefined;
|
|
6
6
|
maxCount?: number | undefined;
|
|
7
7
|
hideTooltips?: boolean | undefined;
|
|
8
|
+
maxAvatars?: number | undefined;
|
|
8
9
|
}>, {
|
|
9
10
|
users: () => never[];
|
|
10
11
|
overlap: boolean;
|
|
11
12
|
size: string;
|
|
12
13
|
maxCount: undefined;
|
|
13
14
|
hideTooltips: boolean;
|
|
15
|
+
maxAvatars: undefined;
|
|
14
16
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
15
17
|
users: AvatarUserWithId[];
|
|
16
18
|
overlap?: boolean | undefined;
|
|
17
19
|
size?: UserAvatarSize | undefined;
|
|
18
20
|
maxCount?: number | undefined;
|
|
19
21
|
hideTooltips?: boolean | undefined;
|
|
22
|
+
maxAvatars?: number | undefined;
|
|
20
23
|
}>, {
|
|
21
24
|
users: () => never[];
|
|
22
25
|
overlap: boolean;
|
|
23
26
|
size: string;
|
|
24
27
|
maxCount: undefined;
|
|
25
28
|
hideTooltips: boolean;
|
|
29
|
+
maxAvatars: undefined;
|
|
26
30
|
}>>>, {
|
|
27
31
|
size: UserAvatarSize;
|
|
28
32
|
users: AvatarUserWithId[];
|
|
29
33
|
overlap: boolean;
|
|
30
34
|
maxCount: number;
|
|
31
35
|
hideTooltips: boolean;
|
|
36
|
+
maxAvatars: number;
|
|
32
37
|
}, {}>;
|
|
33
38
|
export default _default;
|
|
34
39
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -27,3 +27,4 @@ export declare const stringContains: (params: {
|
|
|
27
27
|
}) => GenericValidateFunction<string>;
|
|
28
28
|
export declare const isUrl: GenericValidateFunction<string>;
|
|
29
29
|
export declare const isItemSelected: GenericValidateFunction<unknown[]>;
|
|
30
|
+
export declare const isMultiItemSelected: <T>(val: unknown) => true | string;
|