@speckle/ui-components 2.12.666
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/.eslintrc.cjs +118 -0
- package/README.md +60 -0
- package/dist/components/SourceAppBadge.vue.d.ts +14 -0
- package/dist/components/common/Badge.vue.d.ts +65 -0
- package/dist/components/common/loading/Bar.vue.d.ts +13 -0
- package/dist/components/common/steps/Bullet.vue.d.ts +65 -0
- package/dist/components/common/steps/Number.vue.d.ts +57 -0
- package/dist/components/common/text/Link.vue.d.ts +106 -0
- package/dist/components/form/Button.vue.d.ts +256 -0
- package/dist/components/form/CardButton.vue.d.ts +24 -0
- package/dist/components/form/Checkbox.vue.d.ts +194 -0
- package/dist/components/form/TextArea.vue.d.ts +152 -0
- package/dist/components/form/TextInput.vue.d.ts +301 -0
- package/dist/components/form/select/Base.vue.d.ts +283 -0
- package/dist/components/form/select/SourceApps.vue.d.ts +126 -0
- package/dist/components/global/ToastRenderer.vue.d.ts +17 -0
- package/dist/composables/common/steps.d.ts +24 -0
- package/dist/composables/form/input.d.ts +6 -0
- package/dist/composables/form/select.d.ts +29 -0
- package/dist/composables/form/textInput.d.ts +44 -0
- package/dist/composables/layout/resize.d.ts +36 -0
- package/dist/helpers/common/components.d.ts +11 -0
- package/dist/helpers/common/validation.d.ts +23 -0
- package/dist/helpers/form/input.d.ts +9 -0
- package/dist/helpers/global/toast.d.ts +22 -0
- package/dist/helpers/tailwind.d.ts +19 -0
- package/dist/lib.cjs +1 -0
- package/dist/lib.d.ts +24 -0
- package/dist/lib.js +2155 -0
- package/dist/style.css +1 -0
- package/index.html +12 -0
- package/package.json +99 -0
- package/postcss.config.js +7 -0
- package/tailwind.config.cjs +14 -0
- package/tsconfig.json +31 -0
- package/tsconfig.node.json +10 -0
- package/utils/tailwind-configure.cjs +15 -0
- package/utils/tailwind-configure.d.ts +1 -0
- package/utils/tailwind-configure.js +13 -0
- package/vite.config.ts +48 -0
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
import { RuleExpression } from 'vee-validate';
|
|
2
|
+
import { ConcreteComponent, PropType } from 'vue';
|
|
3
|
+
import { Optional } from '@speckle/shared';
|
|
4
|
+
type InputType = 'text' | 'email' | 'password' | 'url' | 'search';
|
|
5
|
+
type InputSize = 'sm' | 'base' | 'lg' | 'xl';
|
|
6
|
+
type InputColor = 'page' | 'foundation';
|
|
7
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
8
|
+
/**
|
|
9
|
+
* Input "type" value (changes behaviour & look)
|
|
10
|
+
*/
|
|
11
|
+
type: {
|
|
12
|
+
type: PropType<InputType>;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Unique ID for the input (must be unique page-wide)
|
|
17
|
+
*/
|
|
18
|
+
name: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Whether to show label (label will always be shown to screen readers)
|
|
24
|
+
*/
|
|
25
|
+
showLabel: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
required: false;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Optional help text
|
|
31
|
+
*/
|
|
32
|
+
help: {
|
|
33
|
+
type: PropType<Optional<string>>;
|
|
34
|
+
default: undefined;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Placeholder text
|
|
38
|
+
*/
|
|
39
|
+
placeholder: {
|
|
40
|
+
type: PropType<Optional<string>>;
|
|
41
|
+
default: undefined;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Set label text explicitly
|
|
45
|
+
*/
|
|
46
|
+
label: {
|
|
47
|
+
type: PropType<Optional<string>>;
|
|
48
|
+
default: undefined;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Whether to show the red "required" asterisk
|
|
52
|
+
*/
|
|
53
|
+
showRequired: {
|
|
54
|
+
type: BooleanConstructor;
|
|
55
|
+
default: boolean;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* Whether to disable the component, blocking it from user input
|
|
59
|
+
*/
|
|
60
|
+
disabled: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
default: boolean;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* vee-validate validation rules
|
|
66
|
+
*/
|
|
67
|
+
rules: {
|
|
68
|
+
type: PropType<RuleExpression<string>>;
|
|
69
|
+
default: undefined;
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* vee-validate validation() on component mount
|
|
73
|
+
*/
|
|
74
|
+
validateOnMount: {
|
|
75
|
+
type: BooleanConstructor;
|
|
76
|
+
default: boolean;
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* Whether to trigger validation whenever the value changes
|
|
80
|
+
*/
|
|
81
|
+
validateOnValueUpdate: {
|
|
82
|
+
type: BooleanConstructor;
|
|
83
|
+
default: boolean;
|
|
84
|
+
};
|
|
85
|
+
/**
|
|
86
|
+
* Will replace the generic "Value" text with the name of the input in error messages
|
|
87
|
+
*/
|
|
88
|
+
useLabelInErrors: {
|
|
89
|
+
type: BooleanConstructor;
|
|
90
|
+
default: boolean;
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* Set a custom icon to use inside the input
|
|
94
|
+
*/
|
|
95
|
+
customIcon: {
|
|
96
|
+
type: PropType<Optional<ConcreteComponent>>;
|
|
97
|
+
default: undefined;
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* Whether to focus on the input when component is mounted
|
|
101
|
+
*/
|
|
102
|
+
autoFocus: {
|
|
103
|
+
type: BooleanConstructor;
|
|
104
|
+
default: boolean;
|
|
105
|
+
};
|
|
106
|
+
modelValue: {
|
|
107
|
+
type: StringConstructor;
|
|
108
|
+
default: string;
|
|
109
|
+
};
|
|
110
|
+
size: {
|
|
111
|
+
type: PropType<InputSize>;
|
|
112
|
+
default: string;
|
|
113
|
+
};
|
|
114
|
+
showClear: {
|
|
115
|
+
type: BooleanConstructor;
|
|
116
|
+
default: boolean;
|
|
117
|
+
};
|
|
118
|
+
fullWidth: {
|
|
119
|
+
type: BooleanConstructor;
|
|
120
|
+
default: boolean;
|
|
121
|
+
};
|
|
122
|
+
inputClasses: {
|
|
123
|
+
type: StringConstructor;
|
|
124
|
+
default: null;
|
|
125
|
+
};
|
|
126
|
+
hideErrorMessage: {
|
|
127
|
+
type: BooleanConstructor;
|
|
128
|
+
default: boolean;
|
|
129
|
+
};
|
|
130
|
+
wrapperClasses: {
|
|
131
|
+
type: StringConstructor;
|
|
132
|
+
default: () => string;
|
|
133
|
+
};
|
|
134
|
+
color: {
|
|
135
|
+
type: PropType<InputColor>;
|
|
136
|
+
default: string;
|
|
137
|
+
};
|
|
138
|
+
}, {
|
|
139
|
+
focus: () => void;
|
|
140
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "input" | "clear" | "focusin" | "focusout")[], "update:modelValue" | "change" | "input" | "clear" | "focusin" | "focusout", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
141
|
+
/**
|
|
142
|
+
* Input "type" value (changes behaviour & look)
|
|
143
|
+
*/
|
|
144
|
+
type: {
|
|
145
|
+
type: PropType<InputType>;
|
|
146
|
+
default: string;
|
|
147
|
+
};
|
|
148
|
+
/**
|
|
149
|
+
* Unique ID for the input (must be unique page-wide)
|
|
150
|
+
*/
|
|
151
|
+
name: {
|
|
152
|
+
type: StringConstructor;
|
|
153
|
+
required: true;
|
|
154
|
+
};
|
|
155
|
+
/**
|
|
156
|
+
* Whether to show label (label will always be shown to screen readers)
|
|
157
|
+
*/
|
|
158
|
+
showLabel: {
|
|
159
|
+
type: BooleanConstructor;
|
|
160
|
+
required: false;
|
|
161
|
+
};
|
|
162
|
+
/**
|
|
163
|
+
* Optional help text
|
|
164
|
+
*/
|
|
165
|
+
help: {
|
|
166
|
+
type: PropType<Optional<string>>;
|
|
167
|
+
default: undefined;
|
|
168
|
+
};
|
|
169
|
+
/**
|
|
170
|
+
* Placeholder text
|
|
171
|
+
*/
|
|
172
|
+
placeholder: {
|
|
173
|
+
type: PropType<Optional<string>>;
|
|
174
|
+
default: undefined;
|
|
175
|
+
};
|
|
176
|
+
/**
|
|
177
|
+
* Set label text explicitly
|
|
178
|
+
*/
|
|
179
|
+
label: {
|
|
180
|
+
type: PropType<Optional<string>>;
|
|
181
|
+
default: undefined;
|
|
182
|
+
};
|
|
183
|
+
/**
|
|
184
|
+
* Whether to show the red "required" asterisk
|
|
185
|
+
*/
|
|
186
|
+
showRequired: {
|
|
187
|
+
type: BooleanConstructor;
|
|
188
|
+
default: boolean;
|
|
189
|
+
};
|
|
190
|
+
/**
|
|
191
|
+
* Whether to disable the component, blocking it from user input
|
|
192
|
+
*/
|
|
193
|
+
disabled: {
|
|
194
|
+
type: BooleanConstructor;
|
|
195
|
+
default: boolean;
|
|
196
|
+
};
|
|
197
|
+
/**
|
|
198
|
+
* vee-validate validation rules
|
|
199
|
+
*/
|
|
200
|
+
rules: {
|
|
201
|
+
type: PropType<RuleExpression<string>>;
|
|
202
|
+
default: undefined;
|
|
203
|
+
};
|
|
204
|
+
/**
|
|
205
|
+
* vee-validate validation() on component mount
|
|
206
|
+
*/
|
|
207
|
+
validateOnMount: {
|
|
208
|
+
type: BooleanConstructor;
|
|
209
|
+
default: boolean;
|
|
210
|
+
};
|
|
211
|
+
/**
|
|
212
|
+
* Whether to trigger validation whenever the value changes
|
|
213
|
+
*/
|
|
214
|
+
validateOnValueUpdate: {
|
|
215
|
+
type: BooleanConstructor;
|
|
216
|
+
default: boolean;
|
|
217
|
+
};
|
|
218
|
+
/**
|
|
219
|
+
* Will replace the generic "Value" text with the name of the input in error messages
|
|
220
|
+
*/
|
|
221
|
+
useLabelInErrors: {
|
|
222
|
+
type: BooleanConstructor;
|
|
223
|
+
default: boolean;
|
|
224
|
+
};
|
|
225
|
+
/**
|
|
226
|
+
* Set a custom icon to use inside the input
|
|
227
|
+
*/
|
|
228
|
+
customIcon: {
|
|
229
|
+
type: PropType<Optional<ConcreteComponent>>;
|
|
230
|
+
default: undefined;
|
|
231
|
+
};
|
|
232
|
+
/**
|
|
233
|
+
* Whether to focus on the input when component is mounted
|
|
234
|
+
*/
|
|
235
|
+
autoFocus: {
|
|
236
|
+
type: BooleanConstructor;
|
|
237
|
+
default: boolean;
|
|
238
|
+
};
|
|
239
|
+
modelValue: {
|
|
240
|
+
type: StringConstructor;
|
|
241
|
+
default: string;
|
|
242
|
+
};
|
|
243
|
+
size: {
|
|
244
|
+
type: PropType<InputSize>;
|
|
245
|
+
default: string;
|
|
246
|
+
};
|
|
247
|
+
showClear: {
|
|
248
|
+
type: BooleanConstructor;
|
|
249
|
+
default: boolean;
|
|
250
|
+
};
|
|
251
|
+
fullWidth: {
|
|
252
|
+
type: BooleanConstructor;
|
|
253
|
+
default: boolean;
|
|
254
|
+
};
|
|
255
|
+
inputClasses: {
|
|
256
|
+
type: StringConstructor;
|
|
257
|
+
default: null;
|
|
258
|
+
};
|
|
259
|
+
hideErrorMessage: {
|
|
260
|
+
type: BooleanConstructor;
|
|
261
|
+
default: boolean;
|
|
262
|
+
};
|
|
263
|
+
wrapperClasses: {
|
|
264
|
+
type: StringConstructor;
|
|
265
|
+
default: () => string;
|
|
266
|
+
};
|
|
267
|
+
color: {
|
|
268
|
+
type: PropType<InputColor>;
|
|
269
|
+
default: string;
|
|
270
|
+
};
|
|
271
|
+
}>> & {
|
|
272
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
273
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
274
|
+
onInput?: ((...args: any[]) => any) | undefined;
|
|
275
|
+
onClear?: ((...args: any[]) => any) | undefined;
|
|
276
|
+
onFocusin?: ((...args: any[]) => any) | undefined;
|
|
277
|
+
onFocusout?: ((...args: any[]) => any) | undefined;
|
|
278
|
+
}, {
|
|
279
|
+
type: InputType;
|
|
280
|
+
size: InputSize;
|
|
281
|
+
fullWidth: boolean;
|
|
282
|
+
color: InputColor;
|
|
283
|
+
disabled: boolean;
|
|
284
|
+
modelValue: string;
|
|
285
|
+
label: Optional<string>;
|
|
286
|
+
rules: RuleExpression<string>;
|
|
287
|
+
validateOnMount: boolean;
|
|
288
|
+
showRequired: boolean;
|
|
289
|
+
showLabel: boolean;
|
|
290
|
+
help: Optional<string>;
|
|
291
|
+
placeholder: Optional<string>;
|
|
292
|
+
validateOnValueUpdate: boolean;
|
|
293
|
+
useLabelInErrors: boolean;
|
|
294
|
+
autoFocus: boolean;
|
|
295
|
+
showClear: boolean;
|
|
296
|
+
hideErrorMessage: boolean;
|
|
297
|
+
customIcon: Optional<ConcreteComponent>;
|
|
298
|
+
inputClasses: string;
|
|
299
|
+
wrapperClasses: string;
|
|
300
|
+
}>;
|
|
301
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { MaybeAsync, Optional } from '@speckle/shared';
|
|
3
|
+
import { RuleExpression } from 'vee-validate';
|
|
4
|
+
type ButtonStyle = 'base' | 'simple';
|
|
5
|
+
type SingleItem = any;
|
|
6
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
7
|
+
multiple: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
default: boolean;
|
|
10
|
+
};
|
|
11
|
+
items: {
|
|
12
|
+
type: PropType<any[]>;
|
|
13
|
+
default: () => never[];
|
|
14
|
+
};
|
|
15
|
+
modelValue: {
|
|
16
|
+
type: PropType<any>;
|
|
17
|
+
default: undefined;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Whether to enable the search bar. You must also set one of the following:
|
|
21
|
+
* * filterPredicate - to allow filtering passed in `items` based on search bar
|
|
22
|
+
* * getSearchResults - to allow asynchronously loading items from server (props.items no longer required in this case,
|
|
23
|
+
* but can be used to prefill initial values)
|
|
24
|
+
*/
|
|
25
|
+
search: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
default: boolean;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* If search=true and this is set, you can use this to filter passed in items based on whatever
|
|
31
|
+
* the user enters in the search bar
|
|
32
|
+
*/
|
|
33
|
+
filterPredicate: {
|
|
34
|
+
type: PropType<Optional<(item: SingleItem, searchString: string) => boolean>>;
|
|
35
|
+
default: undefined;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* If search=true and this is set, you can use this to load data asynchronously depending
|
|
39
|
+
* on the search query
|
|
40
|
+
*/
|
|
41
|
+
getSearchResults: {
|
|
42
|
+
type: PropType<Optional<(searchString: string) => MaybeAsync<SingleItem[]>>>;
|
|
43
|
+
default: undefined;
|
|
44
|
+
};
|
|
45
|
+
searchPlaceholder: {
|
|
46
|
+
type: StringConstructor;
|
|
47
|
+
default: string;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Label is required at the very least for screen-readers
|
|
51
|
+
*/
|
|
52
|
+
label: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
required: true;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* Whether to show the label visually
|
|
58
|
+
*/
|
|
59
|
+
showLabel: {
|
|
60
|
+
type: BooleanConstructor;
|
|
61
|
+
default: boolean;
|
|
62
|
+
};
|
|
63
|
+
name: {
|
|
64
|
+
type: StringConstructor;
|
|
65
|
+
required: true;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* Objects will be compared by the values in the specified prop
|
|
69
|
+
*/
|
|
70
|
+
by: {
|
|
71
|
+
type: StringConstructor;
|
|
72
|
+
required: false;
|
|
73
|
+
};
|
|
74
|
+
disabled: {
|
|
75
|
+
type: PropType<Optional<boolean>>;
|
|
76
|
+
default: boolean;
|
|
77
|
+
};
|
|
78
|
+
buttonStyle: {
|
|
79
|
+
type: PropType<Optional<ButtonStyle>>;
|
|
80
|
+
default: string;
|
|
81
|
+
};
|
|
82
|
+
hideCheckmarks: {
|
|
83
|
+
type: PropType<Optional<boolean>>;
|
|
84
|
+
default: boolean;
|
|
85
|
+
};
|
|
86
|
+
allowUnset: {
|
|
87
|
+
type: PropType<Optional<boolean>>;
|
|
88
|
+
default: boolean;
|
|
89
|
+
};
|
|
90
|
+
clearable: {
|
|
91
|
+
type: BooleanConstructor;
|
|
92
|
+
default: boolean;
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* Validation stuff
|
|
96
|
+
*/
|
|
97
|
+
rules: {
|
|
98
|
+
type: PropType<RuleExpression<string>>;
|
|
99
|
+
default: undefined;
|
|
100
|
+
};
|
|
101
|
+
/**
|
|
102
|
+
* vee-validate validation() on component mount
|
|
103
|
+
*/
|
|
104
|
+
validateOnMount: {
|
|
105
|
+
type: BooleanConstructor;
|
|
106
|
+
default: boolean;
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* Whether to trigger validation whenever the value changes
|
|
110
|
+
*/
|
|
111
|
+
validateOnValueUpdate: {
|
|
112
|
+
type: BooleanConstructor;
|
|
113
|
+
default: boolean;
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* Will replace the generic "Value" text with the name of the input in error messages
|
|
117
|
+
*/
|
|
118
|
+
useLabelInErrors: {
|
|
119
|
+
type: BooleanConstructor;
|
|
120
|
+
default: boolean;
|
|
121
|
+
};
|
|
122
|
+
/**
|
|
123
|
+
* Optional help text
|
|
124
|
+
*/
|
|
125
|
+
help: {
|
|
126
|
+
type: PropType<Optional<string>>;
|
|
127
|
+
default: undefined;
|
|
128
|
+
};
|
|
129
|
+
fixedHeight: {
|
|
130
|
+
type: BooleanConstructor;
|
|
131
|
+
default: boolean;
|
|
132
|
+
};
|
|
133
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
134
|
+
multiple: {
|
|
135
|
+
type: BooleanConstructor;
|
|
136
|
+
default: boolean;
|
|
137
|
+
};
|
|
138
|
+
items: {
|
|
139
|
+
type: PropType<any[]>;
|
|
140
|
+
default: () => never[];
|
|
141
|
+
};
|
|
142
|
+
modelValue: {
|
|
143
|
+
type: PropType<any>;
|
|
144
|
+
default: undefined;
|
|
145
|
+
};
|
|
146
|
+
/**
|
|
147
|
+
* Whether to enable the search bar. You must also set one of the following:
|
|
148
|
+
* * filterPredicate - to allow filtering passed in `items` based on search bar
|
|
149
|
+
* * getSearchResults - to allow asynchronously loading items from server (props.items no longer required in this case,
|
|
150
|
+
* but can be used to prefill initial values)
|
|
151
|
+
*/
|
|
152
|
+
search: {
|
|
153
|
+
type: BooleanConstructor;
|
|
154
|
+
default: boolean;
|
|
155
|
+
};
|
|
156
|
+
/**
|
|
157
|
+
* If search=true and this is set, you can use this to filter passed in items based on whatever
|
|
158
|
+
* the user enters in the search bar
|
|
159
|
+
*/
|
|
160
|
+
filterPredicate: {
|
|
161
|
+
type: PropType<Optional<(item: SingleItem, searchString: string) => boolean>>;
|
|
162
|
+
default: undefined;
|
|
163
|
+
};
|
|
164
|
+
/**
|
|
165
|
+
* If search=true and this is set, you can use this to load data asynchronously depending
|
|
166
|
+
* on the search query
|
|
167
|
+
*/
|
|
168
|
+
getSearchResults: {
|
|
169
|
+
type: PropType<Optional<(searchString: string) => MaybeAsync<SingleItem[]>>>;
|
|
170
|
+
default: undefined;
|
|
171
|
+
};
|
|
172
|
+
searchPlaceholder: {
|
|
173
|
+
type: StringConstructor;
|
|
174
|
+
default: string;
|
|
175
|
+
};
|
|
176
|
+
/**
|
|
177
|
+
* Label is required at the very least for screen-readers
|
|
178
|
+
*/
|
|
179
|
+
label: {
|
|
180
|
+
type: StringConstructor;
|
|
181
|
+
required: true;
|
|
182
|
+
};
|
|
183
|
+
/**
|
|
184
|
+
* Whether to show the label visually
|
|
185
|
+
*/
|
|
186
|
+
showLabel: {
|
|
187
|
+
type: BooleanConstructor;
|
|
188
|
+
default: boolean;
|
|
189
|
+
};
|
|
190
|
+
name: {
|
|
191
|
+
type: StringConstructor;
|
|
192
|
+
required: true;
|
|
193
|
+
};
|
|
194
|
+
/**
|
|
195
|
+
* Objects will be compared by the values in the specified prop
|
|
196
|
+
*/
|
|
197
|
+
by: {
|
|
198
|
+
type: StringConstructor;
|
|
199
|
+
required: false;
|
|
200
|
+
};
|
|
201
|
+
disabled: {
|
|
202
|
+
type: PropType<Optional<boolean>>;
|
|
203
|
+
default: boolean;
|
|
204
|
+
};
|
|
205
|
+
buttonStyle: {
|
|
206
|
+
type: PropType<Optional<ButtonStyle>>;
|
|
207
|
+
default: string;
|
|
208
|
+
};
|
|
209
|
+
hideCheckmarks: {
|
|
210
|
+
type: PropType<Optional<boolean>>;
|
|
211
|
+
default: boolean;
|
|
212
|
+
};
|
|
213
|
+
allowUnset: {
|
|
214
|
+
type: PropType<Optional<boolean>>;
|
|
215
|
+
default: boolean;
|
|
216
|
+
};
|
|
217
|
+
clearable: {
|
|
218
|
+
type: BooleanConstructor;
|
|
219
|
+
default: boolean;
|
|
220
|
+
};
|
|
221
|
+
/**
|
|
222
|
+
* Validation stuff
|
|
223
|
+
*/
|
|
224
|
+
rules: {
|
|
225
|
+
type: PropType<RuleExpression<string>>;
|
|
226
|
+
default: undefined;
|
|
227
|
+
};
|
|
228
|
+
/**
|
|
229
|
+
* vee-validate validation() on component mount
|
|
230
|
+
*/
|
|
231
|
+
validateOnMount: {
|
|
232
|
+
type: BooleanConstructor;
|
|
233
|
+
default: boolean;
|
|
234
|
+
};
|
|
235
|
+
/**
|
|
236
|
+
* Whether to trigger validation whenever the value changes
|
|
237
|
+
*/
|
|
238
|
+
validateOnValueUpdate: {
|
|
239
|
+
type: BooleanConstructor;
|
|
240
|
+
default: boolean;
|
|
241
|
+
};
|
|
242
|
+
/**
|
|
243
|
+
* Will replace the generic "Value" text with the name of the input in error messages
|
|
244
|
+
*/
|
|
245
|
+
useLabelInErrors: {
|
|
246
|
+
type: BooleanConstructor;
|
|
247
|
+
default: boolean;
|
|
248
|
+
};
|
|
249
|
+
/**
|
|
250
|
+
* Optional help text
|
|
251
|
+
*/
|
|
252
|
+
help: {
|
|
253
|
+
type: PropType<Optional<string>>;
|
|
254
|
+
default: undefined;
|
|
255
|
+
};
|
|
256
|
+
fixedHeight: {
|
|
257
|
+
type: BooleanConstructor;
|
|
258
|
+
default: boolean;
|
|
259
|
+
};
|
|
260
|
+
}>> & {
|
|
261
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
262
|
+
}, {
|
|
263
|
+
disabled: Optional<boolean>;
|
|
264
|
+
modelValue: any;
|
|
265
|
+
rules: RuleExpression<string>;
|
|
266
|
+
validateOnMount: boolean;
|
|
267
|
+
showLabel: boolean;
|
|
268
|
+
help: Optional<string>;
|
|
269
|
+
validateOnValueUpdate: boolean;
|
|
270
|
+
useLabelInErrors: boolean;
|
|
271
|
+
search: boolean;
|
|
272
|
+
multiple: boolean;
|
|
273
|
+
items: any[];
|
|
274
|
+
filterPredicate: Optional<(item: SingleItem, searchString: string) => boolean>;
|
|
275
|
+
getSearchResults: Optional<(searchString: string) => MaybeAsync<SingleItem[]>>;
|
|
276
|
+
searchPlaceholder: string;
|
|
277
|
+
buttonStyle: Optional<ButtonStyle>;
|
|
278
|
+
hideCheckmarks: Optional<boolean>;
|
|
279
|
+
allowUnset: Optional<boolean>;
|
|
280
|
+
clearable: boolean;
|
|
281
|
+
fixedHeight: boolean;
|
|
282
|
+
}>;
|
|
283
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { Optional, SourceAppDefinition } from '@speckle/shared';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
type ValueType = SourceAppDefinition | SourceAppDefinition[] | undefined;
|
|
4
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
5
|
+
/**
|
|
6
|
+
* Whether to allow selecting multiple source apps
|
|
7
|
+
*/
|
|
8
|
+
multiple: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
default: boolean;
|
|
11
|
+
};
|
|
12
|
+
modelValue: {
|
|
13
|
+
type: PropType<ValueType>;
|
|
14
|
+
default: undefined;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Whether to allow filtering source apps through a search box
|
|
18
|
+
*/
|
|
19
|
+
search: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Search placeholder text
|
|
25
|
+
*/
|
|
26
|
+
searchPlaceholder: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
selectorPlaceholder: {
|
|
31
|
+
type: PropType<Optional<string>>;
|
|
32
|
+
default: undefined;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Label is required at the very least for screen-readers
|
|
36
|
+
*/
|
|
37
|
+
label: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
required: true;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Whether to show the label visually
|
|
43
|
+
*/
|
|
44
|
+
showLabel: {
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
default: boolean;
|
|
47
|
+
};
|
|
48
|
+
name: {
|
|
49
|
+
type: PropType<Optional<string>>;
|
|
50
|
+
default: undefined;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* Control source apps to show. If left undefined, will show all available options.
|
|
54
|
+
*/
|
|
55
|
+
items: {
|
|
56
|
+
type: PropType<Optional<SourceAppDefinition[]>>;
|
|
57
|
+
default: undefined;
|
|
58
|
+
};
|
|
59
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
60
|
+
/**
|
|
61
|
+
* Whether to allow selecting multiple source apps
|
|
62
|
+
*/
|
|
63
|
+
multiple: {
|
|
64
|
+
type: BooleanConstructor;
|
|
65
|
+
default: boolean;
|
|
66
|
+
};
|
|
67
|
+
modelValue: {
|
|
68
|
+
type: PropType<ValueType>;
|
|
69
|
+
default: undefined;
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* Whether to allow filtering source apps through a search box
|
|
73
|
+
*/
|
|
74
|
+
search: {
|
|
75
|
+
type: BooleanConstructor;
|
|
76
|
+
default: boolean;
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* Search placeholder text
|
|
80
|
+
*/
|
|
81
|
+
searchPlaceholder: {
|
|
82
|
+
type: StringConstructor;
|
|
83
|
+
default: string;
|
|
84
|
+
};
|
|
85
|
+
selectorPlaceholder: {
|
|
86
|
+
type: PropType<Optional<string>>;
|
|
87
|
+
default: undefined;
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* Label is required at the very least for screen-readers
|
|
91
|
+
*/
|
|
92
|
+
label: {
|
|
93
|
+
type: StringConstructor;
|
|
94
|
+
required: true;
|
|
95
|
+
};
|
|
96
|
+
/**
|
|
97
|
+
* Whether to show the label visually
|
|
98
|
+
*/
|
|
99
|
+
showLabel: {
|
|
100
|
+
type: BooleanConstructor;
|
|
101
|
+
default: boolean;
|
|
102
|
+
};
|
|
103
|
+
name: {
|
|
104
|
+
type: PropType<Optional<string>>;
|
|
105
|
+
default: undefined;
|
|
106
|
+
};
|
|
107
|
+
/**
|
|
108
|
+
* Control source apps to show. If left undefined, will show all available options.
|
|
109
|
+
*/
|
|
110
|
+
items: {
|
|
111
|
+
type: PropType<Optional<SourceAppDefinition[]>>;
|
|
112
|
+
default: undefined;
|
|
113
|
+
};
|
|
114
|
+
}>> & {
|
|
115
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
116
|
+
}, {
|
|
117
|
+
modelValue: ValueType;
|
|
118
|
+
name: Optional<string>;
|
|
119
|
+
showLabel: boolean;
|
|
120
|
+
search: boolean;
|
|
121
|
+
multiple: boolean;
|
|
122
|
+
items: Optional<SourceAppDefinition[]>;
|
|
123
|
+
searchPlaceholder: string;
|
|
124
|
+
selectorPlaceholder: Optional<string>;
|
|
125
|
+
}>;
|
|
126
|
+
export default _sfc_main;
|