@speckle/ui-components 2.17.3 → 2.17.4
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/AvatarEditor-e223a145.cjs +2 -0
- package/dist/AvatarEditor-e223a145.cjs.map +1 -0
- package/dist/{AvatarEditor-8531c565.js → AvatarEditor-fda5ba41.js} +52 -52
- package/dist/AvatarEditor-fda5ba41.js.map +1 -0
- package/dist/components/InfiniteLoading.vue.d.ts +42 -29
- package/dist/components/SourceAppBadge.vue.d.ts +14 -11
- package/dist/components/common/Alert.vue.d.ts +48 -49
- package/dist/components/common/Badge.vue.d.ts +64 -47
- package/dist/components/common/loading/Bar.vue.d.ts +13 -10
- package/dist/components/common/loading/Icon.vue.d.ts +30 -19
- package/dist/components/common/steps/Bullet.vue.d.ts +31 -56
- package/dist/components/common/steps/Number.vue.d.ts +29 -50
- package/dist/components/common/text/Link.vue.d.ts +9 -9
- package/dist/components/form/Button.vue.d.ts +12 -11
- package/dist/components/form/CardButton.vue.d.ts +17 -16
- package/dist/components/form/Checkbox.vue.d.ts +3 -3
- package/dist/components/form/ClipboardInput.vue.d.ts +28 -26
- package/dist/components/form/Tags.vue.d.ts +69 -126
- package/dist/components/form/TextArea.vue.d.ts +71 -119
- package/dist/components/form/TextInput.vue.d.ts +7 -6
- package/dist/components/form/file-upload/Zone.vue.d.ts +60 -37
- package/dist/components/form/select/Badges.vue.d.ts +30 -60
- package/dist/components/form/select/Base.vue.d.ts +31 -244
- package/dist/components/form/select/SourceApps.vue.d.ts +4 -4
- package/dist/components/global/ToastRenderer.vue.d.ts +17 -14
- package/dist/components/layout/Dialog.vue.d.ts +51 -60
- package/dist/components/layout/DialogSection.vue.d.ts +3 -3
- package/dist/components/layout/Disclosure.vue.d.ts +37 -26
- package/dist/components/layout/GridListToggle.vue.d.ts +15 -10
- package/dist/components/layout/Menu.vue.d.ts +24 -19
- package/dist/components/layout/Table.vue.d.ts +8 -16
- package/dist/components/layout/Tabs.vue.d.ts +15 -12
- package/dist/components/user/Avatar.vue.d.ts +42 -46
- package/dist/components/user/AvatarEditable.vue.d.ts +2 -2
- package/dist/components/user/AvatarEditor.vue.d.ts +21 -26
- package/dist/components/user/AvatarGroup.vue.d.ts +39 -38
- package/dist/composables/common/async.d.ts +3 -3
- package/dist/composables/common/steps.d.ts +2 -2
- package/dist/composables/common/window.d.ts +2 -2
- package/dist/composables/form/fileUpload.d.ts +3 -3
- package/dist/composables/form/input.d.ts +1 -1
- package/dist/composables/form/select.d.ts +2 -2
- package/dist/composables/form/textInput.d.ts +3 -3
- package/dist/composables/layout/resize.d.ts +2 -2
- package/dist/composables/user/avatar.d.ts +1 -1
- package/dist/helpers/common/components.d.ts +2 -2
- package/dist/helpers/common/validation.d.ts +1 -1
- package/dist/helpers/form/file.d.ts +1 -1
- package/dist/lib.cjs +1 -1
- package/dist/lib.cjs.map +1 -1
- package/dist/lib.d.ts +12 -8
- package/dist/lib.js +1714 -1720
- package/dist/lib.js.map +1 -1
- package/dist/stories/composables/toast.d.ts +1 -1
- package/dist/style.css +1 -1
- package/package.json +9 -9
- package/tsconfig.json +1 -0
- package/dist/AvatarEditor-0cf61750.cjs +0 -2
- package/dist/AvatarEditor-0cf61750.cjs.map +0 -1
- package/dist/AvatarEditor-8531c565.js.map +0 -1
|
@@ -1,68 +1,32 @@
|
|
|
1
|
-
import { InputColor } from '../../composables/form/textInput';
|
|
2
|
-
import {
|
|
1
|
+
import type { InputColor } from '../../composables/form/textInput';
|
|
2
|
+
import type { RuleExpression } from 'vee-validate';
|
|
3
|
+
import type { MaybeAsync } from '@speckle/shared';
|
|
3
4
|
type InputSize = 'sm' | 'base' | 'lg' | 'xl';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
rules: {
|
|
30
|
-
type: import("vue").PropType<string | Record<string, unknown> | import("vee-validate").GenericValidateFunction<string[]> | import("vee-validate").GenericValidateFunction<string[]>[] | {
|
|
31
|
-
validate(value: string[], options: Record<string, any>): Promise<string[]>;
|
|
32
|
-
}>;
|
|
33
|
-
};
|
|
34
|
-
validateOnMount: {
|
|
35
|
-
type: import("vue").PropType<boolean>;
|
|
36
|
-
};
|
|
37
|
-
showRequired: {
|
|
38
|
-
type: import("vue").PropType<boolean>;
|
|
39
|
-
};
|
|
40
|
-
validateOnValueUpdate: {
|
|
41
|
-
type: import("vue").PropType<boolean>;
|
|
42
|
-
};
|
|
43
|
-
help: {
|
|
44
|
-
type: import("vue").PropType<string>;
|
|
45
|
-
};
|
|
46
|
-
showLabel: {
|
|
47
|
-
type: import("vue").PropType<boolean>;
|
|
48
|
-
};
|
|
49
|
-
autoFocus: {
|
|
50
|
-
type: import("vue").PropType<boolean>;
|
|
51
|
-
};
|
|
52
|
-
showClear: {
|
|
53
|
-
type: import("vue").PropType<boolean>;
|
|
54
|
-
};
|
|
55
|
-
useLabelInErrors: {
|
|
56
|
-
type: import("vue").PropType<boolean>;
|
|
57
|
-
default: boolean;
|
|
58
|
-
};
|
|
59
|
-
wrapperClasses: {
|
|
60
|
-
type: import("vue").PropType<string>;
|
|
61
|
-
};
|
|
62
|
-
getAutocompleteItems: {
|
|
63
|
-
type: import("vue").PropType<(query: string) => MaybeAsync<string[]>>;
|
|
64
|
-
};
|
|
65
|
-
}, {
|
|
5
|
+
type Tag = string;
|
|
6
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
7
|
+
name: string;
|
|
8
|
+
help?: string | undefined;
|
|
9
|
+
label?: string | undefined;
|
|
10
|
+
showLabel?: boolean | undefined;
|
|
11
|
+
rules?: RuleExpression<Tag[]>;
|
|
12
|
+
validateOnMount?: boolean | undefined;
|
|
13
|
+
validateOnValueUpdate?: boolean | undefined;
|
|
14
|
+
autoFocus?: boolean | undefined;
|
|
15
|
+
showClear?: boolean | undefined;
|
|
16
|
+
showRequired?: boolean | undefined;
|
|
17
|
+
color?: InputColor | undefined;
|
|
18
|
+
wrapperClasses?: string | undefined;
|
|
19
|
+
size?: InputSize | undefined;
|
|
20
|
+
placeholder?: string | undefined;
|
|
21
|
+
disabled?: boolean | undefined;
|
|
22
|
+
useLabelInErrors?: boolean | undefined;
|
|
23
|
+
getAutocompleteItems?: ((query: string) => MaybeAsync<Tag[]>) | undefined;
|
|
24
|
+
modelValue?: string[] | undefined;
|
|
25
|
+
}>, {
|
|
26
|
+
size: string;
|
|
27
|
+
color: string;
|
|
28
|
+
useLabelInErrors: boolean;
|
|
29
|
+
}>, {
|
|
66
30
|
resolveAutocompleteItems: () => Promise<void>;
|
|
67
31
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
68
32
|
"update:modelValue": (val: string[]) => void;
|
|
@@ -71,68 +35,30 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
71
35
|
value: string[];
|
|
72
36
|
}) => void;
|
|
73
37
|
clear: () => void;
|
|
74
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
};
|
|
99
|
-
rules: {
|
|
100
|
-
type: import("vue").PropType<string | Record<string, unknown> | import("vee-validate").GenericValidateFunction<string[]> | import("vee-validate").GenericValidateFunction<string[]>[] | {
|
|
101
|
-
validate(value: string[], options: Record<string, any>): Promise<string[]>;
|
|
102
|
-
}>;
|
|
103
|
-
};
|
|
104
|
-
validateOnMount: {
|
|
105
|
-
type: import("vue").PropType<boolean>;
|
|
106
|
-
};
|
|
107
|
-
showRequired: {
|
|
108
|
-
type: import("vue").PropType<boolean>;
|
|
109
|
-
};
|
|
110
|
-
validateOnValueUpdate: {
|
|
111
|
-
type: import("vue").PropType<boolean>;
|
|
112
|
-
};
|
|
113
|
-
help: {
|
|
114
|
-
type: import("vue").PropType<string>;
|
|
115
|
-
};
|
|
116
|
-
showLabel: {
|
|
117
|
-
type: import("vue").PropType<boolean>;
|
|
118
|
-
};
|
|
119
|
-
autoFocus: {
|
|
120
|
-
type: import("vue").PropType<boolean>;
|
|
121
|
-
};
|
|
122
|
-
showClear: {
|
|
123
|
-
type: import("vue").PropType<boolean>;
|
|
124
|
-
};
|
|
125
|
-
useLabelInErrors: {
|
|
126
|
-
type: import("vue").PropType<boolean>;
|
|
127
|
-
default: boolean;
|
|
128
|
-
};
|
|
129
|
-
wrapperClasses: {
|
|
130
|
-
type: import("vue").PropType<string>;
|
|
131
|
-
};
|
|
132
|
-
getAutocompleteItems: {
|
|
133
|
-
type: import("vue").PropType<(query: string) => MaybeAsync<string[]>>;
|
|
134
|
-
};
|
|
135
|
-
}>> & {
|
|
38
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
39
|
+
name: string;
|
|
40
|
+
help?: string | undefined;
|
|
41
|
+
label?: string | undefined;
|
|
42
|
+
showLabel?: boolean | undefined;
|
|
43
|
+
rules?: RuleExpression<Tag[]>;
|
|
44
|
+
validateOnMount?: boolean | undefined;
|
|
45
|
+
validateOnValueUpdate?: boolean | undefined;
|
|
46
|
+
autoFocus?: boolean | undefined;
|
|
47
|
+
showClear?: boolean | undefined;
|
|
48
|
+
showRequired?: boolean | undefined;
|
|
49
|
+
color?: InputColor | undefined;
|
|
50
|
+
wrapperClasses?: string | undefined;
|
|
51
|
+
size?: InputSize | undefined;
|
|
52
|
+
placeholder?: string | undefined;
|
|
53
|
+
disabled?: boolean | undefined;
|
|
54
|
+
useLabelInErrors?: boolean | undefined;
|
|
55
|
+
getAutocompleteItems?: ((query: string) => MaybeAsync<Tag[]>) | undefined;
|
|
56
|
+
modelValue?: string[] | undefined;
|
|
57
|
+
}>, {
|
|
58
|
+
size: string;
|
|
59
|
+
color: string;
|
|
60
|
+
useLabelInErrors: boolean;
|
|
61
|
+
}>>> & {
|
|
136
62
|
onChange?: ((val: {
|
|
137
63
|
event?: Event | undefined;
|
|
138
64
|
value: string[];
|
|
@@ -145,3 +71,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
145
71
|
useLabelInErrors: boolean;
|
|
146
72
|
}, {}>;
|
|
147
73
|
export default _default;
|
|
74
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
75
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
76
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
77
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
78
|
+
} : {
|
|
79
|
+
type: import('vue').PropType<T[K]>;
|
|
80
|
+
required: true;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
type __VLS_WithDefaults<P, D> = {
|
|
84
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
85
|
+
default: D[K];
|
|
86
|
+
}> : P[K];
|
|
87
|
+
};
|
|
88
|
+
type __VLS_Prettify<T> = {
|
|
89
|
+
[K in keyof T]: T[K];
|
|
90
|
+
} & {};
|
|
@@ -1,63 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
validate(value: string, options: Record<string, any>): Promise<string>;
|
|
30
|
-
}>;
|
|
31
|
-
};
|
|
32
|
-
validateOnMount: {
|
|
33
|
-
type: import("vue").PropType<boolean>;
|
|
34
|
-
};
|
|
35
|
-
showRequired: {
|
|
36
|
-
type: import("vue").PropType<boolean>;
|
|
37
|
-
};
|
|
38
|
-
validateOnValueUpdate: {
|
|
39
|
-
type: import("vue").PropType<boolean>;
|
|
40
|
-
};
|
|
41
|
-
help: {
|
|
42
|
-
type: import("vue").PropType<string>;
|
|
43
|
-
};
|
|
44
|
-
showLabel: {
|
|
45
|
-
type: import("vue").PropType<boolean>;
|
|
46
|
-
};
|
|
47
|
-
autoFocus: {
|
|
48
|
-
type: import("vue").PropType<boolean>;
|
|
49
|
-
};
|
|
50
|
-
showClear: {
|
|
51
|
-
type: import("vue").PropType<boolean>;
|
|
52
|
-
};
|
|
53
|
-
useLabelInErrors: {
|
|
54
|
-
type: import("vue").PropType<boolean>;
|
|
55
|
-
default: boolean;
|
|
56
|
-
};
|
|
57
|
-
textareaClasses: {
|
|
58
|
-
type: import("vue").PropType<string>;
|
|
59
|
-
};
|
|
60
|
-
}, {
|
|
1
|
+
import type { RuleExpression } from 'vee-validate';
|
|
2
|
+
import type { InputColor } from '../../composables/form/textInput';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
/**
|
|
5
|
+
* Unique ID for the input (must be unique page-wide)
|
|
6
|
+
*/
|
|
7
|
+
name: string;
|
|
8
|
+
showLabel?: boolean | undefined;
|
|
9
|
+
help?: string | undefined;
|
|
10
|
+
placeholder?: string | undefined;
|
|
11
|
+
label?: string | undefined;
|
|
12
|
+
disabled?: boolean | undefined;
|
|
13
|
+
rules?: RuleExpression<string>;
|
|
14
|
+
validateOnMount?: boolean | undefined;
|
|
15
|
+
validateOnValueUpdate?: boolean | undefined;
|
|
16
|
+
useLabelInErrors?: boolean | undefined;
|
|
17
|
+
autoFocus?: boolean | undefined;
|
|
18
|
+
modelValue?: string | undefined;
|
|
19
|
+
showClear?: boolean | undefined;
|
|
20
|
+
fullWidth?: boolean | undefined;
|
|
21
|
+
showRequired?: boolean | undefined;
|
|
22
|
+
color?: InputColor | undefined;
|
|
23
|
+
textareaClasses?: string | undefined;
|
|
24
|
+
}>, {
|
|
25
|
+
useLabelInErrors: boolean;
|
|
26
|
+
modelValue: string;
|
|
27
|
+
color: string;
|
|
28
|
+
}>, {
|
|
61
29
|
focus: () => void;
|
|
62
30
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
63
31
|
"update:modelValue": (val: string) => void;
|
|
@@ -70,65 +38,32 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
70
38
|
value: string;
|
|
71
39
|
}) => void;
|
|
72
40
|
clear: () => void;
|
|
73
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
type: import("vue").PropType<string | Record<string, unknown> | import("vee-validate").GenericValidateFunction<string> | import("vee-validate").GenericValidateFunction<string>[] | {
|
|
100
|
-
validate(value: string, options: Record<string, any>): Promise<string>;
|
|
101
|
-
}>;
|
|
102
|
-
};
|
|
103
|
-
validateOnMount: {
|
|
104
|
-
type: import("vue").PropType<boolean>;
|
|
105
|
-
};
|
|
106
|
-
showRequired: {
|
|
107
|
-
type: import("vue").PropType<boolean>;
|
|
108
|
-
};
|
|
109
|
-
validateOnValueUpdate: {
|
|
110
|
-
type: import("vue").PropType<boolean>;
|
|
111
|
-
};
|
|
112
|
-
help: {
|
|
113
|
-
type: import("vue").PropType<string>;
|
|
114
|
-
};
|
|
115
|
-
showLabel: {
|
|
116
|
-
type: import("vue").PropType<boolean>;
|
|
117
|
-
};
|
|
118
|
-
autoFocus: {
|
|
119
|
-
type: import("vue").PropType<boolean>;
|
|
120
|
-
};
|
|
121
|
-
showClear: {
|
|
122
|
-
type: import("vue").PropType<boolean>;
|
|
123
|
-
};
|
|
124
|
-
useLabelInErrors: {
|
|
125
|
-
type: import("vue").PropType<boolean>;
|
|
126
|
-
default: boolean;
|
|
127
|
-
};
|
|
128
|
-
textareaClasses: {
|
|
129
|
-
type: import("vue").PropType<string>;
|
|
130
|
-
};
|
|
131
|
-
}>> & {
|
|
41
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
42
|
+
/**
|
|
43
|
+
* Unique ID for the input (must be unique page-wide)
|
|
44
|
+
*/
|
|
45
|
+
name: string;
|
|
46
|
+
showLabel?: boolean | undefined;
|
|
47
|
+
help?: string | undefined;
|
|
48
|
+
placeholder?: string | undefined;
|
|
49
|
+
label?: string | undefined;
|
|
50
|
+
disabled?: boolean | undefined;
|
|
51
|
+
rules?: RuleExpression<string>;
|
|
52
|
+
validateOnMount?: boolean | undefined;
|
|
53
|
+
validateOnValueUpdate?: boolean | undefined;
|
|
54
|
+
useLabelInErrors?: boolean | undefined;
|
|
55
|
+
autoFocus?: boolean | undefined;
|
|
56
|
+
modelValue?: string | undefined;
|
|
57
|
+
showClear?: boolean | undefined;
|
|
58
|
+
fullWidth?: boolean | undefined;
|
|
59
|
+
showRequired?: boolean | undefined;
|
|
60
|
+
color?: InputColor | undefined;
|
|
61
|
+
textareaClasses?: string | undefined;
|
|
62
|
+
}>, {
|
|
63
|
+
useLabelInErrors: boolean;
|
|
64
|
+
modelValue: string;
|
|
65
|
+
color: string;
|
|
66
|
+
}>>> & {
|
|
132
67
|
onChange?: ((val: {
|
|
133
68
|
event?: Event | undefined;
|
|
134
69
|
value: string;
|
|
@@ -145,3 +80,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
145
80
|
useLabelInErrors: boolean;
|
|
146
81
|
}, {}>;
|
|
147
82
|
export default _default;
|
|
83
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
84
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
85
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
86
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
87
|
+
} : {
|
|
88
|
+
type: import('vue').PropType<T[K]>;
|
|
89
|
+
required: true;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
type __VLS_WithDefaults<P, D> = {
|
|
93
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
94
|
+
default: D[K];
|
|
95
|
+
}> : P[K];
|
|
96
|
+
};
|
|
97
|
+
type __VLS_Prettify<T> = {
|
|
98
|
+
[K in keyof T]: T[K];
|
|
99
|
+
} & {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { RuleExpression } from 'vee-validate';
|
|
2
|
-
import {
|
|
3
|
-
import { Optional } from '@speckle/shared';
|
|
1
|
+
import type { RuleExpression } from 'vee-validate';
|
|
2
|
+
import type { PropType } from 'vue';
|
|
3
|
+
import type { Optional } from '@speckle/shared';
|
|
4
|
+
import type { PropAnyComponent } from '../../helpers/common/components';
|
|
4
5
|
type InputSize = 'sm' | 'base' | 'lg' | 'xl';
|
|
5
6
|
type InputColor = 'page' | 'foundation' | 'transparent';
|
|
6
7
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
@@ -92,7 +93,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
92
93
|
* Set a custom icon to use inside the input
|
|
93
94
|
*/
|
|
94
95
|
customIcon: {
|
|
95
|
-
type: PropType<Optional<
|
|
96
|
+
type: PropType<Optional<PropAnyComponent>>;
|
|
96
97
|
default: undefined;
|
|
97
98
|
};
|
|
98
99
|
/**
|
|
@@ -238,7 +239,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
238
239
|
* Set a custom icon to use inside the input
|
|
239
240
|
*/
|
|
240
241
|
customIcon: {
|
|
241
|
-
type: PropType<Optional<
|
|
242
|
+
type: PropType<Optional<PropAnyComponent>>;
|
|
242
243
|
default: undefined;
|
|
243
244
|
};
|
|
244
245
|
/**
|
|
@@ -301,7 +302,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
301
302
|
type: string;
|
|
302
303
|
placeholder: Optional<string>;
|
|
303
304
|
label: Optional<string>;
|
|
304
|
-
customIcon: Optional<
|
|
305
|
+
customIcon: Optional<PropAnyComponent>;
|
|
305
306
|
modelValue: string;
|
|
306
307
|
rules: RuleExpression<string>;
|
|
307
308
|
validateOnMount: boolean;
|
|
@@ -1,45 +1,51 @@
|
|
|
1
|
-
import { UploadableFileItem } from '../../../composables/form/fileUpload';
|
|
2
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
accept
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
import type { UploadableFileItem } from '../../../composables/form/fileUpload';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
/**
|
|
4
|
+
* https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept
|
|
5
|
+
*/
|
|
6
|
+
accept?: string | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/multiple
|
|
9
|
+
*/
|
|
10
|
+
multiple?: boolean | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Max file size in bytes
|
|
13
|
+
*/
|
|
14
|
+
sizeLimit?: number | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Max file count if 'multiple' is set
|
|
17
|
+
*/
|
|
18
|
+
countLimit?: number | undefined;
|
|
19
|
+
disabled?: boolean | undefined;
|
|
20
|
+
}>, {
|
|
21
|
+
sizeLimit: number;
|
|
22
|
+
}>, {
|
|
20
23
|
triggerPicker: () => void;
|
|
21
24
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
25
|
"files-selected": (v: {
|
|
23
26
|
files: UploadableFileItem[];
|
|
24
27
|
}) => void;
|
|
25
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
accept
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
28
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
29
|
+
/**
|
|
30
|
+
* https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept
|
|
31
|
+
*/
|
|
32
|
+
accept?: string | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/multiple
|
|
35
|
+
*/
|
|
36
|
+
multiple?: boolean | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Max file size in bytes
|
|
39
|
+
*/
|
|
40
|
+
sizeLimit?: number | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* Max file count if 'multiple' is set
|
|
43
|
+
*/
|
|
44
|
+
countLimit?: number | undefined;
|
|
45
|
+
disabled?: boolean | undefined;
|
|
46
|
+
}>, {
|
|
47
|
+
sizeLimit: number;
|
|
48
|
+
}>>> & {
|
|
43
49
|
"onFiles-selected"?: ((v: {
|
|
44
50
|
files: UploadableFileItem[];
|
|
45
51
|
}) => any) | undefined;
|
|
@@ -55,6 +61,23 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
55
61
|
}): any;
|
|
56
62
|
}>;
|
|
57
63
|
export default _default;
|
|
64
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
65
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
66
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
67
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
68
|
+
} : {
|
|
69
|
+
type: import('vue').PropType<T[K]>;
|
|
70
|
+
required: true;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
type __VLS_WithDefaults<P, D> = {
|
|
74
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
75
|
+
default: D[K];
|
|
76
|
+
}> : P[K];
|
|
77
|
+
};
|
|
78
|
+
type __VLS_Prettify<T> = {
|
|
79
|
+
[K in keyof T]: T[K];
|
|
80
|
+
} & {};
|
|
58
81
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
59
82
|
new (): {
|
|
60
83
|
$slots: S;
|
|
@@ -1,64 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
required: true;
|
|
13
|
-
};
|
|
14
|
-
help: {
|
|
15
|
-
type: import("vue").PropType<string>;
|
|
16
|
-
};
|
|
17
|
-
modelValue: {
|
|
18
|
-
type: import("vue").PropType<any>;
|
|
19
|
-
};
|
|
20
|
-
multiple: {
|
|
21
|
-
type: import("vue").PropType<boolean>;
|
|
22
|
-
};
|
|
23
|
-
rules: {
|
|
24
|
-
type: import("vue").PropType<any[]>;
|
|
25
|
-
};
|
|
26
|
-
by: {
|
|
27
|
-
type: import("vue").PropType<string>;
|
|
28
|
-
required: true;
|
|
29
|
-
};
|
|
30
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1
|
+
type SingleItem = any;
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
items: Array<SingleItem>;
|
|
4
|
+
label: string;
|
|
5
|
+
name: string;
|
|
6
|
+
help?: string | undefined;
|
|
7
|
+
modelValue?: SingleItem | SingleItem[] | undefined;
|
|
8
|
+
multiple?: boolean | undefined;
|
|
9
|
+
rules?: any[] | undefined;
|
|
10
|
+
by: string;
|
|
11
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
31
12
|
"update:modelValue": (val: any[]) => void;
|
|
32
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
33
|
-
items:
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
type: import("vue").PropType<string>;
|
|
43
|
-
required: true;
|
|
44
|
-
};
|
|
45
|
-
help: {
|
|
46
|
-
type: import("vue").PropType<string>;
|
|
47
|
-
};
|
|
48
|
-
modelValue: {
|
|
49
|
-
type: import("vue").PropType<any>;
|
|
50
|
-
};
|
|
51
|
-
multiple: {
|
|
52
|
-
type: import("vue").PropType<boolean>;
|
|
53
|
-
};
|
|
54
|
-
rules: {
|
|
55
|
-
type: import("vue").PropType<any[]>;
|
|
56
|
-
};
|
|
57
|
-
by: {
|
|
58
|
-
type: import("vue").PropType<string>;
|
|
59
|
-
required: true;
|
|
60
|
-
};
|
|
61
|
-
}>> & {
|
|
13
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
14
|
+
items: Array<SingleItem>;
|
|
15
|
+
label: string;
|
|
16
|
+
name: string;
|
|
17
|
+
help?: string | undefined;
|
|
18
|
+
modelValue?: SingleItem | SingleItem[] | undefined;
|
|
19
|
+
multiple?: boolean | undefined;
|
|
20
|
+
rules?: any[] | undefined;
|
|
21
|
+
by: string;
|
|
22
|
+
}>>> & {
|
|
62
23
|
"onUpdate:modelValue"?: ((val: any[]) => any) | undefined;
|
|
63
24
|
}, {}, {}>;
|
|
64
25
|
export default _default;
|
|
26
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
27
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
28
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
29
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
30
|
+
} : {
|
|
31
|
+
type: import('vue').PropType<T[K]>;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
};
|