@speckle/ui-components 2.16.0 → 2.16.1-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/form/Switch.vue.d.ts +6 -0
- package/dist/components/form/TextArea.vue.d.ts +6 -0
- package/dist/components/form/select/Badges.vue.d.ts +64 -0
- package/dist/components/form/select/Base.vue.d.ts +27 -0
- package/dist/components/layout/Table.vue.d.ts +68 -0
- package/dist/helpers/common/validation.d.ts +2 -0
- package/dist/lib.cjs +2 -1
- package/dist/lib.cjs.map +1 -0
- package/dist/lib.d.ts +4 -1
- package/dist/lib.js +1343 -1152
- package/dist/lib.js.map +1 -0
- package/package.json +2 -2
- package/vite.config.ts +6 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
modelValue: import("vue").PropType<boolean>;
|
|
3
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
4
|
+
modelValue: import("vue").PropType<boolean>;
|
|
5
|
+
}>>, {}, {}>;
|
|
6
|
+
export default _default;
|
|
@@ -54,6 +54,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
54
54
|
type: import("vue").PropType<boolean>;
|
|
55
55
|
default: boolean;
|
|
56
56
|
};
|
|
57
|
+
textareaClasses: {
|
|
58
|
+
type: import("vue").PropType<string>;
|
|
59
|
+
};
|
|
57
60
|
}, {
|
|
58
61
|
focus: () => void;
|
|
59
62
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -122,6 +125,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
122
125
|
type: import("vue").PropType<boolean>;
|
|
123
126
|
default: boolean;
|
|
124
127
|
};
|
|
128
|
+
textareaClasses: {
|
|
129
|
+
type: import("vue").PropType<string>;
|
|
130
|
+
};
|
|
125
131
|
}>> & {
|
|
126
132
|
onChange?: ((val: {
|
|
127
133
|
event?: Event | undefined;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
items: {
|
|
3
|
+
type: import("vue").PropType<any[]>;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
label: {
|
|
7
|
+
type: import("vue").PropType<string>;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
name: {
|
|
11
|
+
type: import("vue").PropType<string>;
|
|
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, {
|
|
31
|
+
"update:modelValue": (val: any[]) => void;
|
|
32
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
33
|
+
items: {
|
|
34
|
+
type: import("vue").PropType<any[]>;
|
|
35
|
+
required: true;
|
|
36
|
+
};
|
|
37
|
+
label: {
|
|
38
|
+
type: import("vue").PropType<string>;
|
|
39
|
+
required: true;
|
|
40
|
+
};
|
|
41
|
+
name: {
|
|
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
|
+
}>> & {
|
|
62
|
+
"onUpdate:modelValue"?: ((val: any[]) => any) | undefined;
|
|
63
|
+
}, {}, {}>;
|
|
64
|
+
export default _default;
|
|
@@ -59,6 +59,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
59
59
|
type: StringConstructor;
|
|
60
60
|
required: true;
|
|
61
61
|
};
|
|
62
|
+
/**
|
|
63
|
+
* Optional text that replaces the label as the placeholder when set.
|
|
64
|
+
*/
|
|
65
|
+
placeholder: {
|
|
66
|
+
type: StringConstructor;
|
|
67
|
+
};
|
|
62
68
|
/**
|
|
63
69
|
* Whether to show the label visually
|
|
64
70
|
*/
|
|
@@ -146,6 +152,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
146
152
|
type: BooleanConstructor;
|
|
147
153
|
default: boolean;
|
|
148
154
|
};
|
|
155
|
+
/**
|
|
156
|
+
* Whether to show the red "required" asterisk
|
|
157
|
+
*/
|
|
158
|
+
showRequired: {
|
|
159
|
+
type: BooleanConstructor;
|
|
160
|
+
default: boolean;
|
|
161
|
+
};
|
|
149
162
|
}, {
|
|
150
163
|
triggerSearch: () => Promise<void>;
|
|
151
164
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -207,6 +220,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
207
220
|
type: StringConstructor;
|
|
208
221
|
required: true;
|
|
209
222
|
};
|
|
223
|
+
/**
|
|
224
|
+
* Optional text that replaces the label as the placeholder when set.
|
|
225
|
+
*/
|
|
226
|
+
placeholder: {
|
|
227
|
+
type: StringConstructor;
|
|
228
|
+
};
|
|
210
229
|
/**
|
|
211
230
|
* Whether to show the label visually
|
|
212
231
|
*/
|
|
@@ -294,6 +313,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
294
313
|
type: BooleanConstructor;
|
|
295
314
|
default: boolean;
|
|
296
315
|
};
|
|
316
|
+
/**
|
|
317
|
+
* Whether to show the red "required" asterisk
|
|
318
|
+
*/
|
|
319
|
+
showRequired: {
|
|
320
|
+
type: BooleanConstructor;
|
|
321
|
+
default: boolean;
|
|
322
|
+
};
|
|
297
323
|
}>> & {
|
|
298
324
|
"onUpdate:modelValue"?: ((v: any) => any) | undefined;
|
|
299
325
|
}, {
|
|
@@ -302,6 +328,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
302
328
|
modelValue: any;
|
|
303
329
|
rules: RuleExpression<any>;
|
|
304
330
|
validateOnMount: boolean;
|
|
331
|
+
showRequired: boolean;
|
|
305
332
|
validateOnValueUpdate: boolean;
|
|
306
333
|
multiple: boolean;
|
|
307
334
|
help: Optional<string>;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { ConcreteComponent } from 'vue';
|
|
2
|
+
export type TableColumn<I> = {
|
|
3
|
+
id: I;
|
|
4
|
+
header: string;
|
|
5
|
+
classes: string;
|
|
6
|
+
};
|
|
7
|
+
export interface RowButton<T = unknown> {
|
|
8
|
+
icon: ConcreteComponent;
|
|
9
|
+
label: string;
|
|
10
|
+
action: (item: T) => void;
|
|
11
|
+
class: string;
|
|
12
|
+
}
|
|
13
|
+
declare const _default: <T extends {
|
|
14
|
+
id: string;
|
|
15
|
+
}, C extends string>(__VLS_props: {
|
|
16
|
+
items: T[];
|
|
17
|
+
buttons?: RowButton<T>[] | undefined;
|
|
18
|
+
columns: TableColumn<C>[];
|
|
19
|
+
overflowCells?: boolean | undefined;
|
|
20
|
+
onRowClick?: ((item: T) => void) | undefined;
|
|
21
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: Pick<{
|
|
22
|
+
props: {
|
|
23
|
+
items: T[];
|
|
24
|
+
buttons?: RowButton<T>[] | undefined;
|
|
25
|
+
columns: TableColumn<C>[];
|
|
26
|
+
overflowCells?: boolean | undefined;
|
|
27
|
+
onRowClick?: ((item: T) => void) | undefined;
|
|
28
|
+
};
|
|
29
|
+
expose(exposed: {}): void;
|
|
30
|
+
attrs: any;
|
|
31
|
+
slots: Partial<Record<NonNullable<C>, (_: {
|
|
32
|
+
item: T;
|
|
33
|
+
}) => any>>;
|
|
34
|
+
emit: any;
|
|
35
|
+
}, "attrs" | "slots" | "emit"> | undefined, __VLS_setup?: Promise<{
|
|
36
|
+
props: {
|
|
37
|
+
items: T[];
|
|
38
|
+
buttons?: RowButton<T>[] | undefined;
|
|
39
|
+
columns: TableColumn<C>[];
|
|
40
|
+
overflowCells?: boolean | undefined;
|
|
41
|
+
onRowClick?: ((item: T) => void) | undefined;
|
|
42
|
+
};
|
|
43
|
+
expose(exposed: {}): void;
|
|
44
|
+
attrs: any;
|
|
45
|
+
slots: Partial<Record<NonNullable<C>, (_: {
|
|
46
|
+
item: T;
|
|
47
|
+
}) => any>>;
|
|
48
|
+
emit: any;
|
|
49
|
+
}>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
50
|
+
[key: string]: any;
|
|
51
|
+
}> & {
|
|
52
|
+
__ctx?: {
|
|
53
|
+
props: {
|
|
54
|
+
items: T[];
|
|
55
|
+
buttons?: RowButton<T>[] | undefined;
|
|
56
|
+
columns: TableColumn<C>[];
|
|
57
|
+
overflowCells?: boolean | undefined;
|
|
58
|
+
onRowClick?: ((item: T) => void) | undefined;
|
|
59
|
+
};
|
|
60
|
+
expose(exposed: {}): void;
|
|
61
|
+
attrs: any;
|
|
62
|
+
slots: Partial<Record<NonNullable<C>, (_: {
|
|
63
|
+
item: T;
|
|
64
|
+
}) => any>>;
|
|
65
|
+
emit: any;
|
|
66
|
+
} | undefined;
|
|
67
|
+
};
|
|
68
|
+
export default _default;
|
|
@@ -21,3 +21,5 @@ export declare const stringContains: (params: {
|
|
|
21
21
|
match: string | RegExp;
|
|
22
22
|
message: string;
|
|
23
23
|
}) => GenericValidateFunction<string>;
|
|
24
|
+
export declare const isUrl: GenericValidateFunction<string>;
|
|
25
|
+
export declare const isItemSelected: GenericValidateFunction<unknown[]>;
|