@speckle/ui-components 2.20.5 → 2.21.0
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/common/ProgressBar.vue.d.ts +17 -0
- package/dist/components/form/TextInput.vue.d.ts +2 -3
- package/dist/components/form/select/Base.vue.d.ts +3 -0
- package/dist/components/layout/Menu.vue.d.ts +3 -0
- package/dist/components/layout/Table.vue.d.ts +1 -0
- package/dist/components/layout/sidebar/menu/group/ArrowFilled.vue.d.ts +2 -0
- package/dist/components/layout/sidebar/menu/group/Group.vue.d.ts +29 -16
- package/dist/components/layout/sidebar/menu/group/Item.vue.d.ts +4 -0
- package/dist/components/layout/sidebar/menu/group/Plus.vue.d.ts +2 -0
- package/dist/components/user/AvatarEditable.vue.d.ts +6 -0
- package/dist/composables/form/textInput.d.ts +2 -0
- package/dist/lib.cjs +1 -1
- package/dist/lib.cjs.map +1 -1
- package/dist/lib.d.ts +4 -1
- package/dist/lib.js +2071 -1937
- package/dist/lib.js.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
currentValue: number;
|
|
3
|
+
maxValue: number;
|
|
4
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
+
currentValue: number;
|
|
6
|
+
maxValue: number;
|
|
7
|
+
}>>>, {}, {}>;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
10
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
11
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
12
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
13
|
+
} : {
|
|
14
|
+
type: import('vue').PropType<T[K]>;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -2,9 +2,8 @@ import type { RuleExpression } from 'vee-validate';
|
|
|
2
2
|
import type { PropType } from 'vue';
|
|
3
3
|
import type { Optional } from '@speckle/shared';
|
|
4
4
|
import type { PropAnyComponent } from '../../helpers/common/components';
|
|
5
|
+
import type { LabelPosition, InputColor } from '../../composables/form/textInput';
|
|
5
6
|
type InputSize = 'sm' | 'base' | 'lg' | 'xl';
|
|
6
|
-
type InputColor = 'page' | 'foundation' | 'transparent';
|
|
7
|
-
type LabelPosition = 'top' | 'left';
|
|
8
7
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
9
8
|
/**
|
|
10
9
|
* Input "type" value (changes behaviour & look)
|
|
@@ -323,9 +322,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
323
322
|
showClear: boolean;
|
|
324
323
|
useLabelInErrors: boolean;
|
|
325
324
|
hideErrorMessage: boolean;
|
|
325
|
+
labelPosition: LabelPosition;
|
|
326
326
|
inputClasses: string;
|
|
327
327
|
wrapperClasses: string;
|
|
328
|
-
labelPosition: LabelPosition;
|
|
329
328
|
}, {}>, {
|
|
330
329
|
"input-right"?(_: {}): any;
|
|
331
330
|
}>;
|
|
@@ -2,6 +2,7 @@ import type { PropType } from 'vue';
|
|
|
2
2
|
import type { MaybeAsync, Optional } from '@speckle/shared';
|
|
3
3
|
import type { RuleExpression } from 'vee-validate';
|
|
4
4
|
declare const _default: <SingleItem extends string | number | Record<string, unknown>>(__VLS_props: {
|
|
5
|
+
size?: Optional<"sm" | "base" | "lg" | "xl">;
|
|
5
6
|
disabled?: Optional<boolean>;
|
|
6
7
|
readonly placeholder?: string | undefined;
|
|
7
8
|
readonly label: string;
|
|
@@ -58,6 +59,7 @@ declare const _default: <SingleItem extends string | number | Record<string, unk
|
|
|
58
59
|
triggerSearch: () => Promise<void>;
|
|
59
60
|
}>) => void) | undefined, __VLS_setup?: Promise<{
|
|
60
61
|
props: {
|
|
62
|
+
size?: Optional<"sm" | "base" | "lg" | "xl">;
|
|
61
63
|
disabled?: Optional<boolean>;
|
|
62
64
|
readonly placeholder?: string | undefined;
|
|
63
65
|
readonly label: string;
|
|
@@ -118,6 +120,7 @@ declare const _default: <SingleItem extends string | number | Record<string, unk
|
|
|
118
120
|
}> & {
|
|
119
121
|
__ctx?: {
|
|
120
122
|
props: {
|
|
123
|
+
size?: Optional<"sm" | "base" | "lg" | "xl">;
|
|
121
124
|
disabled?: Optional<boolean>;
|
|
122
125
|
readonly placeholder?: string | undefined;
|
|
123
126
|
readonly label: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { HorizontalDirection } from '../../composables/common/window';
|
|
1
2
|
import type { LayoutMenuItem } from '../../helpers/layout/components';
|
|
2
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
4
|
open?: boolean | undefined;
|
|
@@ -6,6 +7,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
6
7
|
*/
|
|
7
8
|
items: LayoutMenuItem[][];
|
|
8
9
|
menuId?: string | undefined;
|
|
10
|
+
menuPosition?: HorizontalDirection | undefined;
|
|
9
11
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
12
|
"update:open": (val: boolean) => void;
|
|
11
13
|
chosen: (val: {
|
|
@@ -19,6 +21,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
19
21
|
*/
|
|
20
22
|
items: LayoutMenuItem[][];
|
|
21
23
|
menuId?: string | undefined;
|
|
24
|
+
menuPosition?: HorizontalDirection | undefined;
|
|
22
25
|
}>>> & {
|
|
23
26
|
"onUpdate:open"?: ((val: boolean) => any) | undefined;
|
|
24
27
|
onChosen?: ((val: {
|
|
@@ -1,23 +1,36 @@
|
|
|
1
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
collapsible
|
|
7
|
-
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
2
|
+
collapsed: import("vue").PropType<boolean>;
|
|
3
|
+
title: {
|
|
4
|
+
type: import("vue").PropType<string>;
|
|
5
|
+
};
|
|
6
|
+
collapsible: {
|
|
7
|
+
type: import("vue").PropType<boolean>;
|
|
8
|
+
};
|
|
9
|
+
plusText: {
|
|
10
|
+
type: import("vue").PropType<string>;
|
|
11
|
+
};
|
|
12
|
+
plusClick: {
|
|
13
|
+
type: import("vue").PropType<() => void>;
|
|
14
|
+
};
|
|
15
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
|
+
collapsed: import("vue").PropType<boolean>;
|
|
17
|
+
title: {
|
|
18
|
+
type: import("vue").PropType<string>;
|
|
19
|
+
};
|
|
20
|
+
collapsible: {
|
|
21
|
+
type: import("vue").PropType<boolean>;
|
|
22
|
+
};
|
|
23
|
+
plusText: {
|
|
24
|
+
type: import("vue").PropType<string>;
|
|
25
|
+
};
|
|
26
|
+
plusClick: {
|
|
27
|
+
type: import("vue").PropType<() => void>;
|
|
28
|
+
};
|
|
29
|
+
}>>, {}, {}>, {
|
|
8
30
|
"title-icon"?(_: {}): any;
|
|
9
31
|
default?(_: {}): any;
|
|
10
32
|
}>;
|
|
11
33
|
export default _default;
|
|
12
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
13
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
14
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
15
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
16
|
-
} : {
|
|
17
|
-
type: import('vue').PropType<T[K]>;
|
|
18
|
-
required: true;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
34
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
22
35
|
new (): {
|
|
23
36
|
$slots: S;
|
|
@@ -4,14 +4,18 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
4
4
|
tag?: string | undefined;
|
|
5
5
|
external?: boolean | undefined;
|
|
6
6
|
disabled?: boolean | undefined;
|
|
7
|
+
active?: boolean | undefined;
|
|
7
8
|
tooltipText?: string | undefined;
|
|
9
|
+
extraPadding?: boolean | undefined;
|
|
8
10
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
9
11
|
label: string;
|
|
10
12
|
to?: string | undefined;
|
|
11
13
|
tag?: string | undefined;
|
|
12
14
|
external?: boolean | undefined;
|
|
13
15
|
disabled?: boolean | undefined;
|
|
16
|
+
active?: boolean | undefined;
|
|
14
17
|
tooltipText?: string | undefined;
|
|
18
|
+
extraPadding?: boolean | undefined;
|
|
15
19
|
}>>>, {}, {}>, {
|
|
16
20
|
icon?(_: {}): any;
|
|
17
21
|
default?(_: {}): any;
|
|
@@ -31,6 +31,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
31
31
|
size: {
|
|
32
32
|
type: import("vue").PropType<UserAvatarSize>;
|
|
33
33
|
};
|
|
34
|
+
defaultImg: {
|
|
35
|
+
type: import("vue").PropType<string>;
|
|
36
|
+
};
|
|
34
37
|
}, {
|
|
35
38
|
open: () => boolean;
|
|
36
39
|
close: () => boolean;
|
|
@@ -67,6 +70,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
67
70
|
size: {
|
|
68
71
|
type: import("vue").PropType<UserAvatarSize>;
|
|
69
72
|
};
|
|
73
|
+
defaultImg: {
|
|
74
|
+
type: import("vue").PropType<string>;
|
|
75
|
+
};
|
|
70
76
|
}>> & {
|
|
71
77
|
"onUpdate:modelValue"?: ((value: ModelType) => any) | undefined;
|
|
72
78
|
onSave?: ((newUrl: ModelType) => any) | undefined;
|
|
@@ -2,6 +2,7 @@ import type { RuleExpression } from 'vee-validate';
|
|
|
2
2
|
import type { Ref, ToRefs } from 'vue';
|
|
3
3
|
import type { MaybeNullOrUndefined, Nullable } from '@speckle/shared';
|
|
4
4
|
export type InputColor = 'page' | 'foundation' | 'transparent';
|
|
5
|
+
export type LabelPosition = 'top' | 'left';
|
|
5
6
|
/**
|
|
6
7
|
* Common setup for text input & textarea fields
|
|
7
8
|
*/
|
|
@@ -20,6 +21,7 @@ export declare function useTextInputCore<V extends string | string[] = string>(p
|
|
|
20
21
|
useLabelInErrors?: boolean;
|
|
21
22
|
hideErrorMessage?: boolean;
|
|
22
23
|
color?: InputColor;
|
|
24
|
+
labelPosition?: LabelPosition;
|
|
23
25
|
}>;
|
|
24
26
|
emit: {
|
|
25
27
|
(e: 'change', val: {
|