@speckle/ui-components 2.15.1 → 2.15.2-alpha2
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/components/InfiniteLoading.vue.d.ts +14 -16
- package/dist/components/SourceAppBadge.vue.d.ts +5 -6
- package/dist/components/common/Alert.vue.d.ts +23 -20
- package/dist/components/common/Badge.vue.d.ts +28 -34
- package/dist/components/common/loading/Bar.vue.d.ts +5 -6
- package/dist/components/common/steps/Bullet.vue.d.ts +23 -36
- package/dist/components/common/steps/Number.vue.d.ts +21 -32
- package/dist/components/common/text/Link.vue.d.ts +21 -11
- package/dist/components/form/Button.vue.d.ts +13 -4
- package/dist/components/form/CardButton.vue.d.ts +20 -15
- package/dist/components/form/Checkbox.vue.d.ts +10 -8
- package/dist/components/form/TextArea.vue.d.ts +96 -107
- package/dist/components/form/TextInput.vue.d.ts +41 -15
- package/dist/components/form/select/Base.vue.d.ts +48 -15
- package/dist/components/form/select/SourceApps.vue.d.ts +9 -7
- package/dist/components/global/ToastRenderer.vue.d.ts +9 -8
- package/dist/components/layout/Dialog.vue.d.ts +44 -21
- package/dist/components/layout/Disclosure.vue.d.ts +20 -18
- package/dist/components/layout/GridListToggle.vue.d.ts +11 -11
- package/dist/components/layout/Menu.vue.d.ts +32 -13
- package/dist/components/layout/Panel.vue.d.ts +15 -4
- package/dist/components/layout/Tabs.vue.d.ts +14 -6
- package/dist/composables/common/async.d.ts +28 -0
- package/dist/composables/form/input.d.ts +14 -0
- package/dist/helpers/common/components.d.ts +2 -0
- package/dist/helpers/layout/components.d.ts +1 -0
- package/dist/helpers/testing.d.ts +1 -0
- package/dist/lib-utils.d.ts +9 -0
- package/dist/lib.cjs +1 -1
- package/dist/lib.d.ts +4 -3
- package/dist/lib.js +1161 -1095
- package/dist/main.d.ts +0 -0
- package/dist/stories/composables/toast.d.ts +23 -0
- package/dist/stories/helpers/storybook.d.ts +10 -0
- package/package.json +16 -16
- package/vite.config.ts +7 -2
|
@@ -10,7 +10,7 @@ import { Optional } from '@speckle/shared';
|
|
|
10
10
|
* checked state
|
|
11
11
|
*/
|
|
12
12
|
type ValueType = Optional<string | true> | string[];
|
|
13
|
-
declare const
|
|
13
|
+
declare const _default: import("vue").DefineComponent<{
|
|
14
14
|
/**
|
|
15
15
|
* Input name/id. In a checkbox group, all checkboxes must have the same name and different values.
|
|
16
16
|
*/
|
|
@@ -93,7 +93,9 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
93
93
|
type: BooleanConstructor;
|
|
94
94
|
default: boolean;
|
|
95
95
|
};
|
|
96
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
96
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
97
|
+
"update:modelValue": (val: ValueType) => void;
|
|
98
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
97
99
|
/**
|
|
98
100
|
* Input name/id. In a checkbox group, all checkboxes must have the same name and different values.
|
|
99
101
|
*/
|
|
@@ -177,18 +179,18 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
177
179
|
default: boolean;
|
|
178
180
|
};
|
|
179
181
|
}>> & {
|
|
180
|
-
"onUpdate:modelValue"?: ((
|
|
182
|
+
"onUpdate:modelValue"?: ((val: ValueType) => any) | undefined;
|
|
181
183
|
}, {
|
|
182
184
|
disabled: boolean;
|
|
183
|
-
|
|
185
|
+
id: Optional<string>;
|
|
184
186
|
label: Optional<string>;
|
|
187
|
+
value: Optional<string | true>;
|
|
185
188
|
description: Optional<string>;
|
|
189
|
+
modelValue: false | ValueType;
|
|
186
190
|
inlineDescription: boolean;
|
|
187
191
|
rules: RuleExpression<ValueType>;
|
|
188
192
|
validateOnMount: boolean;
|
|
189
193
|
showRequired: boolean;
|
|
190
|
-
value: Optional<string | true>;
|
|
191
|
-
id: Optional<string>;
|
|
192
194
|
hideLabel: boolean;
|
|
193
|
-
}>;
|
|
194
|
-
export default
|
|
195
|
+
}, {}>;
|
|
196
|
+
export default _default;
|
|
@@ -1,152 +1,141 @@
|
|
|
1
|
-
import type { PropType as __PropType } from 'vue';
|
|
2
|
-
import { RuleExpression } from 'vee-validate';
|
|
3
1
|
import { InputColor } from '../../composables/form/textInput';
|
|
4
|
-
declare const
|
|
5
|
-
|
|
6
|
-
type:
|
|
7
|
-
required: true;
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
fullWidth: {
|
|
4
|
+
type: import("vue").PropType<boolean>;
|
|
8
5
|
};
|
|
9
|
-
|
|
10
|
-
type:
|
|
11
|
-
|
|
6
|
+
color: {
|
|
7
|
+
type: import("vue").PropType<InputColor>;
|
|
8
|
+
default: string;
|
|
12
9
|
};
|
|
13
|
-
|
|
14
|
-
type:
|
|
15
|
-
required: false;
|
|
10
|
+
disabled: {
|
|
11
|
+
type: import("vue").PropType<boolean>;
|
|
16
12
|
};
|
|
17
13
|
placeholder: {
|
|
18
|
-
type:
|
|
19
|
-
required: false;
|
|
14
|
+
type: import("vue").PropType<string>;
|
|
20
15
|
};
|
|
21
16
|
label: {
|
|
22
|
-
type:
|
|
23
|
-
required: false;
|
|
17
|
+
type: import("vue").PropType<string>;
|
|
24
18
|
};
|
|
25
|
-
|
|
26
|
-
type:
|
|
27
|
-
required:
|
|
19
|
+
name: {
|
|
20
|
+
type: import("vue").PropType<string>;
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
modelValue: {
|
|
24
|
+
type: import("vue").PropType<string>;
|
|
25
|
+
default: string;
|
|
28
26
|
};
|
|
29
27
|
rules: {
|
|
30
|
-
type:
|
|
31
|
-
|
|
28
|
+
type: import("vue").PropType<string | Record<string, unknown> | import("vee-validate").GenericValidateFunction<string> | import("vee-validate").GenericValidateFunction<string>[] | {
|
|
29
|
+
validate(value: string, options: Record<string, any>): Promise<string>;
|
|
30
|
+
}>;
|
|
32
31
|
};
|
|
33
32
|
validateOnMount: {
|
|
34
|
-
type:
|
|
35
|
-
|
|
33
|
+
type: import("vue").PropType<boolean>;
|
|
34
|
+
};
|
|
35
|
+
showRequired: {
|
|
36
|
+
type: import("vue").PropType<boolean>;
|
|
36
37
|
};
|
|
37
38
|
validateOnValueUpdate: {
|
|
38
|
-
type:
|
|
39
|
-
required: false;
|
|
39
|
+
type: import("vue").PropType<boolean>;
|
|
40
40
|
};
|
|
41
|
-
|
|
42
|
-
type:
|
|
43
|
-
required: false;
|
|
44
|
-
default: boolean;
|
|
41
|
+
help: {
|
|
42
|
+
type: import("vue").PropType<string>;
|
|
45
43
|
};
|
|
46
|
-
|
|
47
|
-
type:
|
|
48
|
-
required: false;
|
|
44
|
+
showLabel: {
|
|
45
|
+
type: import("vue").PropType<boolean>;
|
|
49
46
|
};
|
|
50
|
-
|
|
51
|
-
type:
|
|
52
|
-
required: false;
|
|
53
|
-
default: string;
|
|
47
|
+
autoFocus: {
|
|
48
|
+
type: import("vue").PropType<boolean>;
|
|
54
49
|
};
|
|
55
50
|
showClear: {
|
|
56
|
-
type:
|
|
57
|
-
required: false;
|
|
51
|
+
type: import("vue").PropType<boolean>;
|
|
58
52
|
};
|
|
59
|
-
|
|
60
|
-
type:
|
|
61
|
-
|
|
62
|
-
};
|
|
63
|
-
showRequired: {
|
|
64
|
-
type: __PropType<boolean | undefined>;
|
|
65
|
-
required: false;
|
|
66
|
-
};
|
|
67
|
-
color: {
|
|
68
|
-
type: __PropType<InputColor | undefined>;
|
|
69
|
-
required: false;
|
|
70
|
-
default: string;
|
|
53
|
+
useLabelInErrors: {
|
|
54
|
+
type: import("vue").PropType<boolean>;
|
|
55
|
+
default: boolean;
|
|
71
56
|
};
|
|
72
57
|
}, {
|
|
73
58
|
focus: () => void;
|
|
74
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
59
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
60
|
+
"update:modelValue": (val: string) => void;
|
|
61
|
+
change: (val: {
|
|
62
|
+
event?: Event | undefined;
|
|
63
|
+
value: string;
|
|
64
|
+
}) => void;
|
|
65
|
+
input: (val: {
|
|
66
|
+
event?: Event | undefined;
|
|
67
|
+
value: string;
|
|
68
|
+
}) => void;
|
|
69
|
+
clear: () => void;
|
|
70
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
71
|
+
fullWidth: {
|
|
72
|
+
type: import("vue").PropType<boolean>;
|
|
78
73
|
};
|
|
79
|
-
|
|
80
|
-
type:
|
|
81
|
-
|
|
74
|
+
color: {
|
|
75
|
+
type: import("vue").PropType<InputColor>;
|
|
76
|
+
default: string;
|
|
82
77
|
};
|
|
83
|
-
|
|
84
|
-
type:
|
|
85
|
-
required: false;
|
|
78
|
+
disabled: {
|
|
79
|
+
type: import("vue").PropType<boolean>;
|
|
86
80
|
};
|
|
87
81
|
placeholder: {
|
|
88
|
-
type:
|
|
89
|
-
required: false;
|
|
82
|
+
type: import("vue").PropType<string>;
|
|
90
83
|
};
|
|
91
84
|
label: {
|
|
92
|
-
type:
|
|
93
|
-
required: false;
|
|
85
|
+
type: import("vue").PropType<string>;
|
|
94
86
|
};
|
|
95
|
-
|
|
96
|
-
type:
|
|
97
|
-
required:
|
|
87
|
+
name: {
|
|
88
|
+
type: import("vue").PropType<string>;
|
|
89
|
+
required: true;
|
|
90
|
+
};
|
|
91
|
+
modelValue: {
|
|
92
|
+
type: import("vue").PropType<string>;
|
|
93
|
+
default: string;
|
|
98
94
|
};
|
|
99
95
|
rules: {
|
|
100
|
-
type:
|
|
101
|
-
|
|
96
|
+
type: import("vue").PropType<string | Record<string, unknown> | import("vee-validate").GenericValidateFunction<string> | import("vee-validate").GenericValidateFunction<string>[] | {
|
|
97
|
+
validate(value: string, options: Record<string, any>): Promise<string>;
|
|
98
|
+
}>;
|
|
102
99
|
};
|
|
103
100
|
validateOnMount: {
|
|
104
|
-
type:
|
|
105
|
-
|
|
101
|
+
type: import("vue").PropType<boolean>;
|
|
102
|
+
};
|
|
103
|
+
showRequired: {
|
|
104
|
+
type: import("vue").PropType<boolean>;
|
|
106
105
|
};
|
|
107
106
|
validateOnValueUpdate: {
|
|
108
|
-
type:
|
|
109
|
-
required: false;
|
|
107
|
+
type: import("vue").PropType<boolean>;
|
|
110
108
|
};
|
|
111
|
-
|
|
112
|
-
type:
|
|
113
|
-
required: false;
|
|
114
|
-
default: boolean;
|
|
109
|
+
help: {
|
|
110
|
+
type: import("vue").PropType<string>;
|
|
115
111
|
};
|
|
116
|
-
|
|
117
|
-
type:
|
|
118
|
-
required: false;
|
|
112
|
+
showLabel: {
|
|
113
|
+
type: import("vue").PropType<boolean>;
|
|
119
114
|
};
|
|
120
|
-
|
|
121
|
-
type:
|
|
122
|
-
required: false;
|
|
123
|
-
default: string;
|
|
115
|
+
autoFocus: {
|
|
116
|
+
type: import("vue").PropType<boolean>;
|
|
124
117
|
};
|
|
125
118
|
showClear: {
|
|
126
|
-
type:
|
|
127
|
-
required: false;
|
|
119
|
+
type: import("vue").PropType<boolean>;
|
|
128
120
|
};
|
|
129
|
-
|
|
130
|
-
type:
|
|
131
|
-
|
|
132
|
-
};
|
|
133
|
-
showRequired: {
|
|
134
|
-
type: __PropType<boolean | undefined>;
|
|
135
|
-
required: false;
|
|
136
|
-
};
|
|
137
|
-
color: {
|
|
138
|
-
type: __PropType<InputColor | undefined>;
|
|
139
|
-
required: false;
|
|
140
|
-
default: string;
|
|
121
|
+
useLabelInErrors: {
|
|
122
|
+
type: import("vue").PropType<boolean>;
|
|
123
|
+
default: boolean;
|
|
141
124
|
};
|
|
142
125
|
}>> & {
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
126
|
+
onChange?: ((val: {
|
|
127
|
+
event?: Event | undefined;
|
|
128
|
+
value: string;
|
|
129
|
+
}) => any) | undefined;
|
|
130
|
+
onInput?: ((val: {
|
|
131
|
+
event?: Event | undefined;
|
|
132
|
+
value: string;
|
|
133
|
+
}) => any) | undefined;
|
|
134
|
+
"onUpdate:modelValue"?: ((val: string) => any) | undefined;
|
|
135
|
+
onClear?: (() => any) | undefined;
|
|
147
136
|
}, {
|
|
148
|
-
color: InputColor
|
|
149
|
-
modelValue: string
|
|
150
|
-
useLabelInErrors: boolean
|
|
151
|
-
}>;
|
|
152
|
-
export default
|
|
137
|
+
color: InputColor;
|
|
138
|
+
modelValue: string;
|
|
139
|
+
useLabelInErrors: boolean;
|
|
140
|
+
}, {}>;
|
|
141
|
+
export default _default;
|
|
@@ -3,7 +3,7 @@ import { ConcreteComponent, PropType } from 'vue';
|
|
|
3
3
|
import { Optional } from '@speckle/shared';
|
|
4
4
|
type InputSize = 'sm' | 'base' | 'lg' | 'xl';
|
|
5
5
|
type InputColor = 'page' | 'foundation';
|
|
6
|
-
declare const
|
|
6
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
7
7
|
/**
|
|
8
8
|
* Input "type" value (changes behaviour & look)
|
|
9
9
|
*/
|
|
@@ -136,7 +136,20 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
136
136
|
};
|
|
137
137
|
}, {
|
|
138
138
|
focus: () => void;
|
|
139
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
139
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
140
|
+
"update:modelValue": (val: string) => void;
|
|
141
|
+
change: (val: {
|
|
142
|
+
event?: Event | undefined;
|
|
143
|
+
value: string;
|
|
144
|
+
}) => void;
|
|
145
|
+
input: (val: {
|
|
146
|
+
event?: Event | undefined;
|
|
147
|
+
value: string;
|
|
148
|
+
}) => void;
|
|
149
|
+
clear: () => void;
|
|
150
|
+
focusin: () => void;
|
|
151
|
+
focusout: () => void;
|
|
152
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
140
153
|
/**
|
|
141
154
|
* Input "type" value (changes behaviour & look)
|
|
142
155
|
*/
|
|
@@ -268,33 +281,46 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
268
281
|
default: string;
|
|
269
282
|
};
|
|
270
283
|
}>> & {
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
284
|
+
onFocusin?: (() => any) | undefined;
|
|
285
|
+
onFocusout?: (() => any) | undefined;
|
|
286
|
+
onChange?: ((val: {
|
|
287
|
+
event?: Event | undefined;
|
|
288
|
+
value: string;
|
|
289
|
+
}) => any) | undefined;
|
|
290
|
+
onInput?: ((val: {
|
|
291
|
+
event?: Event | undefined;
|
|
292
|
+
value: string;
|
|
293
|
+
}) => any) | undefined;
|
|
294
|
+
"onUpdate:modelValue"?: ((val: string) => any) | undefined;
|
|
295
|
+
onClear?: (() => any) | undefined;
|
|
277
296
|
}, {
|
|
278
|
-
type: string;
|
|
279
297
|
size: InputSize;
|
|
280
298
|
fullWidth: boolean;
|
|
281
299
|
color: InputColor;
|
|
282
300
|
disabled: boolean;
|
|
283
|
-
|
|
301
|
+
type: string;
|
|
302
|
+
placeholder: Optional<string>;
|
|
284
303
|
label: Optional<string>;
|
|
304
|
+
modelValue: string;
|
|
285
305
|
rules: RuleExpression<string>;
|
|
286
306
|
validateOnMount: boolean;
|
|
287
307
|
showRequired: boolean;
|
|
288
|
-
showLabel: boolean;
|
|
289
|
-
help: Optional<string>;
|
|
290
|
-
placeholder: Optional<string>;
|
|
291
308
|
validateOnValueUpdate: boolean;
|
|
292
|
-
|
|
309
|
+
help: Optional<string>;
|
|
310
|
+
showLabel: boolean;
|
|
293
311
|
autoFocus: boolean;
|
|
294
312
|
showClear: boolean;
|
|
313
|
+
useLabelInErrors: boolean;
|
|
295
314
|
hideErrorMessage: boolean;
|
|
296
315
|
customIcon: Optional<ConcreteComponent>;
|
|
297
316
|
inputClasses: string;
|
|
298
317
|
wrapperClasses: string;
|
|
318
|
+
}, {}>, {
|
|
319
|
+
"input-right"?(_: {}): any;
|
|
299
320
|
}>;
|
|
300
|
-
export default
|
|
321
|
+
export default _default;
|
|
322
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
323
|
+
new (): {
|
|
324
|
+
$slots: S;
|
|
325
|
+
};
|
|
326
|
+
};
|
|
@@ -2,8 +2,7 @@ import { PropType } from 'vue';
|
|
|
2
2
|
import { MaybeAsync, Optional } from '@speckle/shared';
|
|
3
3
|
import { RuleExpression } from 'vee-validate';
|
|
4
4
|
type ButtonStyle = 'base' | 'simple' | 'tinted';
|
|
5
|
-
|
|
6
|
-
declare const _sfc_main: import("vue").DefineComponent<{
|
|
5
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
7
6
|
multiple: {
|
|
8
7
|
type: BooleanConstructor;
|
|
9
8
|
default: boolean;
|
|
@@ -31,7 +30,14 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
31
30
|
* the user enters in the search bar
|
|
32
31
|
*/
|
|
33
32
|
filterPredicate: {
|
|
34
|
-
type: PropType<Optional<(item:
|
|
33
|
+
type: PropType<Optional<(item: any, searchString: string) => boolean>>;
|
|
34
|
+
default: undefined;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Set this to disable certain items in the list
|
|
38
|
+
*/
|
|
39
|
+
disabledItemPredicate: {
|
|
40
|
+
type: PropType<Optional<(item: any) => boolean>>;
|
|
35
41
|
default: undefined;
|
|
36
42
|
};
|
|
37
43
|
/**
|
|
@@ -39,7 +45,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
39
45
|
* on the search query
|
|
40
46
|
*/
|
|
41
47
|
getSearchResults: {
|
|
42
|
-
type: PropType<Optional<(searchString: string) => MaybeAsync<
|
|
48
|
+
type: PropType<Optional<(searchString: string) => MaybeAsync<any[]>>>;
|
|
43
49
|
default: undefined;
|
|
44
50
|
};
|
|
45
51
|
searchPlaceholder: {
|
|
@@ -132,7 +138,9 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
132
138
|
};
|
|
133
139
|
}, {
|
|
134
140
|
triggerSearch: () => Promise<void>;
|
|
135
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
141
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
142
|
+
"update:modelValue": (v: any) => void;
|
|
143
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
136
144
|
multiple: {
|
|
137
145
|
type: BooleanConstructor;
|
|
138
146
|
default: boolean;
|
|
@@ -160,7 +168,14 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
160
168
|
* the user enters in the search bar
|
|
161
169
|
*/
|
|
162
170
|
filterPredicate: {
|
|
163
|
-
type: PropType<Optional<(item:
|
|
171
|
+
type: PropType<Optional<(item: any, searchString: string) => boolean>>;
|
|
172
|
+
default: undefined;
|
|
173
|
+
};
|
|
174
|
+
/**
|
|
175
|
+
* Set this to disable certain items in the list
|
|
176
|
+
*/
|
|
177
|
+
disabledItemPredicate: {
|
|
178
|
+
type: PropType<Optional<(item: any) => boolean>>;
|
|
164
179
|
default: undefined;
|
|
165
180
|
};
|
|
166
181
|
/**
|
|
@@ -168,7 +183,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
168
183
|
* on the search query
|
|
169
184
|
*/
|
|
170
185
|
getSearchResults: {
|
|
171
|
-
type: PropType<Optional<(searchString: string) => MaybeAsync<
|
|
186
|
+
type: PropType<Optional<(searchString: string) => MaybeAsync<any[]>>>;
|
|
172
187
|
default: undefined;
|
|
173
188
|
};
|
|
174
189
|
searchPlaceholder: {
|
|
@@ -260,26 +275,44 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
260
275
|
default: boolean;
|
|
261
276
|
};
|
|
262
277
|
}>> & {
|
|
263
|
-
"onUpdate:modelValue"?: ((
|
|
278
|
+
"onUpdate:modelValue"?: ((v: any) => any) | undefined;
|
|
264
279
|
}, {
|
|
265
280
|
disabled: Optional<boolean>;
|
|
281
|
+
search: boolean;
|
|
266
282
|
modelValue: any;
|
|
267
283
|
rules: RuleExpression<any>;
|
|
268
284
|
validateOnMount: boolean;
|
|
269
|
-
showLabel: boolean;
|
|
270
|
-
help: Optional<string>;
|
|
271
285
|
validateOnValueUpdate: boolean;
|
|
272
|
-
useLabelInErrors: boolean;
|
|
273
|
-
search: boolean;
|
|
274
286
|
multiple: boolean;
|
|
287
|
+
help: Optional<string>;
|
|
288
|
+
showLabel: boolean;
|
|
289
|
+
useLabelInErrors: boolean;
|
|
275
290
|
items: any[];
|
|
276
|
-
filterPredicate: Optional<(item:
|
|
277
|
-
|
|
291
|
+
filterPredicate: Optional<(item: any, searchString: string) => boolean>;
|
|
292
|
+
disabledItemPredicate: Optional<(item: any) => boolean>;
|
|
293
|
+
getSearchResults: Optional<(searchString: string) => MaybeAsync<any[]>>;
|
|
278
294
|
searchPlaceholder: string;
|
|
279
295
|
buttonStyle: Optional<ButtonStyle>;
|
|
280
296
|
hideCheckmarks: Optional<boolean>;
|
|
281
297
|
allowUnset: Optional<boolean>;
|
|
282
298
|
clearable: boolean;
|
|
283
299
|
fixedHeight: boolean;
|
|
300
|
+
}, {}>, {
|
|
301
|
+
"nothing-selected"?(_: {}): any;
|
|
302
|
+
"something-selected"?(_: {
|
|
303
|
+
value: any;
|
|
304
|
+
}): any;
|
|
305
|
+
"nothing-found"?(_: {}): any;
|
|
306
|
+
option?(_: {
|
|
307
|
+
item: any;
|
|
308
|
+
active: boolean;
|
|
309
|
+
selected: boolean;
|
|
310
|
+
disabled: boolean;
|
|
311
|
+
}): any;
|
|
284
312
|
}>;
|
|
285
|
-
export default
|
|
313
|
+
export default _default;
|
|
314
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
315
|
+
new (): {
|
|
316
|
+
$slots: S;
|
|
317
|
+
};
|
|
318
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Optional, SourceAppDefinition } from '@speckle/shared';
|
|
2
2
|
import { PropType } from 'vue';
|
|
3
3
|
type ValueType = SourceAppDefinition | SourceAppDefinition[] | undefined;
|
|
4
|
-
declare const
|
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
|
5
5
|
/**
|
|
6
6
|
* Whether to allow selecting multiple source apps
|
|
7
7
|
*/
|
|
@@ -56,7 +56,9 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
56
56
|
type: PropType<Optional<SourceAppDefinition[]>>;
|
|
57
57
|
default: undefined;
|
|
58
58
|
};
|
|
59
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
59
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
60
|
+
"update:modelValue": (v: ValueType) => void;
|
|
61
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
60
62
|
/**
|
|
61
63
|
* Whether to allow selecting multiple source apps
|
|
62
64
|
*/
|
|
@@ -112,15 +114,15 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
112
114
|
default: undefined;
|
|
113
115
|
};
|
|
114
116
|
}>> & {
|
|
115
|
-
"onUpdate:modelValue"?: ((
|
|
117
|
+
"onUpdate:modelValue"?: ((v: ValueType) => any) | undefined;
|
|
116
118
|
}, {
|
|
117
|
-
modelValue: ValueType;
|
|
118
119
|
name: Optional<string>;
|
|
119
|
-
showLabel: boolean;
|
|
120
120
|
search: boolean;
|
|
121
|
+
modelValue: ValueType;
|
|
121
122
|
multiple: boolean;
|
|
123
|
+
showLabel: boolean;
|
|
122
124
|
items: Optional<SourceAppDefinition[]>;
|
|
123
125
|
searchPlaceholder: string;
|
|
124
126
|
selectorPlaceholder: Optional<string>;
|
|
125
|
-
}>;
|
|
126
|
-
export default
|
|
127
|
+
}, {}>;
|
|
128
|
+
export default _default;
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import type { PropType as __PropType } from 'vue';
|
|
2
1
|
import { Nullable } from '@speckle/shared';
|
|
3
2
|
import { ToastNotification } from '../../helpers/global/toast';
|
|
4
|
-
declare const
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
5
4
|
notification: {
|
|
6
|
-
type:
|
|
5
|
+
type: import("vue").PropType<Nullable<ToastNotification>>;
|
|
7
6
|
required: true;
|
|
8
7
|
};
|
|
9
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
8
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
"update:notification": (val: Nullable<ToastNotification>) => void;
|
|
10
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10
11
|
notification: {
|
|
11
|
-
type:
|
|
12
|
+
type: import("vue").PropType<Nullable<ToastNotification>>;
|
|
12
13
|
required: true;
|
|
13
14
|
};
|
|
14
15
|
}>> & {
|
|
15
|
-
"onUpdate:notification"?: ((
|
|
16
|
-
}, {}>;
|
|
17
|
-
export default
|
|
16
|
+
"onUpdate:notification"?: ((val: Nullable<ToastNotification>) => any) | undefined;
|
|
17
|
+
}, {}, {}>;
|
|
18
|
+
export default _default;
|
|
@@ -1,41 +1,64 @@
|
|
|
1
|
-
import type { PropType as __PropType } from 'vue';
|
|
2
1
|
type MaxWidthValue = 'sm' | 'md' | 'lg' | 'xl';
|
|
3
|
-
declare const
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
4
3
|
open: {
|
|
5
|
-
type:
|
|
4
|
+
type: import("vue").PropType<boolean>;
|
|
6
5
|
required: true;
|
|
7
6
|
};
|
|
8
7
|
maxWidth: {
|
|
9
|
-
type:
|
|
10
|
-
required: false;
|
|
8
|
+
type: import("vue").PropType<MaxWidthValue>;
|
|
11
9
|
};
|
|
12
10
|
hideCloser: {
|
|
13
|
-
type:
|
|
14
|
-
required: false;
|
|
11
|
+
type: import("vue").PropType<boolean>;
|
|
15
12
|
};
|
|
16
13
|
preventCloseOnClickOutside: {
|
|
17
|
-
type:
|
|
18
|
-
required: false;
|
|
14
|
+
type: import("vue").PropType<boolean>;
|
|
19
15
|
};
|
|
20
|
-
|
|
16
|
+
title: {
|
|
17
|
+
type: import("vue").PropType<string>;
|
|
18
|
+
};
|
|
19
|
+
buttons: {
|
|
20
|
+
type: import("vue").PropType<{
|
|
21
|
+
text: string;
|
|
22
|
+
props: Record<string, unknown>;
|
|
23
|
+
onClick: () => void;
|
|
24
|
+
}[]>;
|
|
25
|
+
};
|
|
26
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
27
|
+
"update:open": (v: boolean) => void;
|
|
28
|
+
"fully-closed": () => void;
|
|
29
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
30
|
open: {
|
|
22
|
-
type:
|
|
31
|
+
type: import("vue").PropType<boolean>;
|
|
23
32
|
required: true;
|
|
24
33
|
};
|
|
25
34
|
maxWidth: {
|
|
26
|
-
type:
|
|
27
|
-
required: false;
|
|
35
|
+
type: import("vue").PropType<MaxWidthValue>;
|
|
28
36
|
};
|
|
29
37
|
hideCloser: {
|
|
30
|
-
type:
|
|
31
|
-
required: false;
|
|
38
|
+
type: import("vue").PropType<boolean>;
|
|
32
39
|
};
|
|
33
40
|
preventCloseOnClickOutside: {
|
|
34
|
-
type:
|
|
35
|
-
|
|
41
|
+
type: import("vue").PropType<boolean>;
|
|
42
|
+
};
|
|
43
|
+
title: {
|
|
44
|
+
type: import("vue").PropType<string>;
|
|
45
|
+
};
|
|
46
|
+
buttons: {
|
|
47
|
+
type: import("vue").PropType<{
|
|
48
|
+
text: string;
|
|
49
|
+
props: Record<string, unknown>;
|
|
50
|
+
onClick: () => void;
|
|
51
|
+
}[]>;
|
|
36
52
|
};
|
|
37
53
|
}>> & {
|
|
38
|
-
"onUpdate:open"?: ((
|
|
39
|
-
"onFully-closed"?: ((
|
|
40
|
-
}, {}
|
|
41
|
-
|
|
54
|
+
"onUpdate:open"?: ((v: boolean) => any) | undefined;
|
|
55
|
+
"onFully-closed"?: (() => any) | undefined;
|
|
56
|
+
}, {}, {}>, {
|
|
57
|
+
default?(_: {}): any;
|
|
58
|
+
}>;
|
|
59
|
+
export default _default;
|
|
60
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
61
|
+
new (): {
|
|
62
|
+
$slots: S;
|
|
63
|
+
};
|
|
64
|
+
};
|