@speckle/ui-components 2.17.2 → 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 +1715 -1721
- 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,12 +1,15 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
2
|
-
loading:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
loading: boolean;
|
|
3
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
loading: boolean;
|
|
5
|
+
}>>>, {}, {}>;
|
|
6
|
+
export default _default;
|
|
7
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
8
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
9
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
10
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
11
|
+
} : {
|
|
12
|
+
type: import('vue').PropType<T[K]>;
|
|
9
13
|
required: true;
|
|
10
14
|
};
|
|
11
|
-
}
|
|
12
|
-
export default _default;
|
|
15
|
+
};
|
|
@@ -1,24 +1,35 @@
|
|
|
1
1
|
type Size = 'base' | 'sm' | 'lg';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<{
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
loading:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
size:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
};
|
|
16
|
-
loading: {
|
|
17
|
-
type: import("vue").PropType<boolean>;
|
|
18
|
-
default: boolean;
|
|
19
|
-
};
|
|
20
|
-
}>>, {
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
loading?: boolean | undefined;
|
|
4
|
+
size?: Size | undefined;
|
|
5
|
+
}>, {
|
|
6
|
+
size: string;
|
|
7
|
+
loading: boolean;
|
|
8
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
9
|
+
loading?: boolean | undefined;
|
|
10
|
+
size?: Size | undefined;
|
|
11
|
+
}>, {
|
|
12
|
+
size: string;
|
|
13
|
+
loading: boolean;
|
|
14
|
+
}>>>, {
|
|
21
15
|
size: Size;
|
|
22
16
|
loading: boolean;
|
|
23
17
|
}, {}>;
|
|
24
18
|
export default _default;
|
|
19
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
20
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
21
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
22
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
23
|
+
} : {
|
|
24
|
+
type: import('vue').PropType<T[K]>;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
type __VLS_WithDefaults<P, D> = {
|
|
29
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
30
|
+
default: D[K];
|
|
31
|
+
}> : P[K];
|
|
32
|
+
};
|
|
33
|
+
type __VLS_Prettify<T> = {
|
|
34
|
+
[K in keyof T]: T[K];
|
|
35
|
+
} & {};
|
|
@@ -1,61 +1,36 @@
|
|
|
1
|
-
import { StepsPadding } from '../../../composables/common/steps';
|
|
2
|
-
import { BulletStepType, HorizontalOrVertical } from '../../../helpers/common/components';
|
|
1
|
+
import type { StepsPadding } from '../../../composables/common/steps';
|
|
2
|
+
import type { BulletStepType, HorizontalOrVertical } from '../../../helpers/common/components';
|
|
3
3
|
import { TailwindBreakpoints } from '../../../helpers/tailwind';
|
|
4
|
-
declare const _default: import("vue").DefineComponent<{
|
|
5
|
-
ariaLabel
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
steps: {
|
|
15
|
-
type: import("vue").PropType<BulletStepType[]>;
|
|
16
|
-
required: true;
|
|
17
|
-
};
|
|
18
|
-
modelValue: {
|
|
19
|
-
type: import("vue").PropType<number>;
|
|
20
|
-
};
|
|
21
|
-
goVerticalBelow: {
|
|
22
|
-
type: import("vue").PropType<TailwindBreakpoints>;
|
|
23
|
-
};
|
|
24
|
-
nonInteractive: {
|
|
25
|
-
type: import("vue").PropType<boolean>;
|
|
26
|
-
};
|
|
27
|
-
stepsPadding: {
|
|
28
|
-
type: import("vue").PropType<StepsPadding>;
|
|
29
|
-
};
|
|
30
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
+
ariaLabel?: string | undefined;
|
|
6
|
+
basic?: boolean | undefined;
|
|
7
|
+
orientation?: HorizontalOrVertical | undefined;
|
|
8
|
+
steps: BulletStepType[];
|
|
9
|
+
modelValue?: number | undefined;
|
|
10
|
+
goVerticalBelow?: TailwindBreakpoints | undefined;
|
|
11
|
+
nonInteractive?: boolean | undefined;
|
|
12
|
+
stepsPadding?: StepsPadding | undefined;
|
|
13
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
31
14
|
"update:modelValue": (val: number) => void;
|
|
32
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
33
|
-
ariaLabel
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
steps: {
|
|
43
|
-
type: import("vue").PropType<BulletStepType[]>;
|
|
44
|
-
required: true;
|
|
45
|
-
};
|
|
46
|
-
modelValue: {
|
|
47
|
-
type: import("vue").PropType<number>;
|
|
48
|
-
};
|
|
49
|
-
goVerticalBelow: {
|
|
50
|
-
type: import("vue").PropType<TailwindBreakpoints>;
|
|
51
|
-
};
|
|
52
|
-
nonInteractive: {
|
|
53
|
-
type: import("vue").PropType<boolean>;
|
|
54
|
-
};
|
|
55
|
-
stepsPadding: {
|
|
56
|
-
type: import("vue").PropType<StepsPadding>;
|
|
57
|
-
};
|
|
58
|
-
}>> & {
|
|
15
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
16
|
+
ariaLabel?: string | undefined;
|
|
17
|
+
basic?: boolean | undefined;
|
|
18
|
+
orientation?: HorizontalOrVertical | undefined;
|
|
19
|
+
steps: BulletStepType[];
|
|
20
|
+
modelValue?: number | undefined;
|
|
21
|
+
goVerticalBelow?: TailwindBreakpoints | undefined;
|
|
22
|
+
nonInteractive?: boolean | undefined;
|
|
23
|
+
stepsPadding?: StepsPadding | undefined;
|
|
24
|
+
}>>> & {
|
|
59
25
|
"onUpdate:modelValue"?: ((val: number) => any) | undefined;
|
|
60
26
|
}, {}, {}>;
|
|
61
27
|
export default _default;
|
|
28
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
29
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
30
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
31
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
32
|
+
} : {
|
|
33
|
+
type: import('vue').PropType<T[K]>;
|
|
34
|
+
required: true;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -1,55 +1,34 @@
|
|
|
1
|
-
import { StepsPadding } from '../../../composables/common/steps';
|
|
2
|
-
import { HorizontalOrVertical, NumberStepType } from '../../../helpers/common/components';
|
|
1
|
+
import type { StepsPadding } from '../../../composables/common/steps';
|
|
2
|
+
import type { HorizontalOrVertical, NumberStepType } from '../../../helpers/common/components';
|
|
3
3
|
import { TailwindBreakpoints } from '../../../helpers/tailwind';
|
|
4
|
-
declare const _default: import("vue").DefineComponent<{
|
|
5
|
-
ariaLabel
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
required: true;
|
|
14
|
-
};
|
|
15
|
-
modelValue: {
|
|
16
|
-
type: import("vue").PropType<number>;
|
|
17
|
-
};
|
|
18
|
-
goVerticalBelow: {
|
|
19
|
-
type: import("vue").PropType<TailwindBreakpoints>;
|
|
20
|
-
};
|
|
21
|
-
nonInteractive: {
|
|
22
|
-
type: import("vue").PropType<boolean>;
|
|
23
|
-
};
|
|
24
|
-
stepsPadding: {
|
|
25
|
-
type: import("vue").PropType<StepsPadding>;
|
|
26
|
-
};
|
|
27
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
+
ariaLabel?: string | undefined;
|
|
6
|
+
orientation?: HorizontalOrVertical | undefined;
|
|
7
|
+
steps: NumberStepType[];
|
|
8
|
+
modelValue?: number | undefined;
|
|
9
|
+
goVerticalBelow?: TailwindBreakpoints | undefined;
|
|
10
|
+
nonInteractive?: boolean | undefined;
|
|
11
|
+
stepsPadding?: StepsPadding | undefined;
|
|
12
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
28
13
|
"update:modelValue": (val: number) => void;
|
|
29
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
30
|
-
ariaLabel
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
required: true;
|
|
39
|
-
};
|
|
40
|
-
modelValue: {
|
|
41
|
-
type: import("vue").PropType<number>;
|
|
42
|
-
};
|
|
43
|
-
goVerticalBelow: {
|
|
44
|
-
type: import("vue").PropType<TailwindBreakpoints>;
|
|
45
|
-
};
|
|
46
|
-
nonInteractive: {
|
|
47
|
-
type: import("vue").PropType<boolean>;
|
|
48
|
-
};
|
|
49
|
-
stepsPadding: {
|
|
50
|
-
type: import("vue").PropType<StepsPadding>;
|
|
51
|
-
};
|
|
52
|
-
}>> & {
|
|
14
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
15
|
+
ariaLabel?: string | undefined;
|
|
16
|
+
orientation?: HorizontalOrVertical | undefined;
|
|
17
|
+
steps: NumberStepType[];
|
|
18
|
+
modelValue?: number | undefined;
|
|
19
|
+
goVerticalBelow?: TailwindBreakpoints | undefined;
|
|
20
|
+
nonInteractive?: boolean | undefined;
|
|
21
|
+
stepsPadding?: StepsPadding | undefined;
|
|
22
|
+
}>>> & {
|
|
53
23
|
"onUpdate:modelValue"?: ((val: number) => any) | undefined;
|
|
54
24
|
}, {}, {}>;
|
|
55
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
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
2
|
-
import { Nullable, Optional } from '@speckle/shared';
|
|
3
|
-
import {
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
import type { Nullable, Optional } from '@speckle/shared';
|
|
3
|
+
import type { PropAnyComponent } from '../../../helpers/common/components';
|
|
4
4
|
type LinkSize = 'xs' | 'sm' | 'base' | 'lg' | 'xl';
|
|
5
5
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
6
6
|
to: {
|
|
@@ -30,14 +30,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
30
30
|
* Add icon to the left from the text
|
|
31
31
|
*/
|
|
32
32
|
iconLeft: {
|
|
33
|
-
type: PropType<Nullable<
|
|
33
|
+
type: PropType<Nullable<PropAnyComponent>>;
|
|
34
34
|
default: null;
|
|
35
35
|
};
|
|
36
36
|
/**
|
|
37
37
|
* Add icon to the right from the text
|
|
38
38
|
*/
|
|
39
39
|
iconRight: {
|
|
40
|
-
type: PropType<Nullable<
|
|
40
|
+
type: PropType<Nullable<PropAnyComponent>>;
|
|
41
41
|
default: null;
|
|
42
42
|
};
|
|
43
43
|
/**
|
|
@@ -77,14 +77,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
77
77
|
* Add icon to the left from the text
|
|
78
78
|
*/
|
|
79
79
|
iconLeft: {
|
|
80
|
-
type: PropType<Nullable<
|
|
80
|
+
type: PropType<Nullable<PropAnyComponent>>;
|
|
81
81
|
default: null;
|
|
82
82
|
};
|
|
83
83
|
/**
|
|
84
84
|
* Add icon to the right from the text
|
|
85
85
|
*/
|
|
86
86
|
iconRight: {
|
|
87
|
-
type: PropType<Nullable<
|
|
87
|
+
type: PropType<Nullable<PropAnyComponent>>;
|
|
88
88
|
default: null;
|
|
89
89
|
};
|
|
90
90
|
/**
|
|
@@ -101,8 +101,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
101
101
|
size: LinkSize;
|
|
102
102
|
external: Optional<boolean>;
|
|
103
103
|
disabled: Optional<boolean>;
|
|
104
|
-
iconLeft: Nullable<
|
|
105
|
-
iconRight: Nullable<
|
|
104
|
+
iconLeft: Nullable<PropAnyComponent>;
|
|
105
|
+
iconRight: Nullable<PropAnyComponent>;
|
|
106
106
|
hideText: boolean;
|
|
107
107
|
foregroundLink: boolean;
|
|
108
108
|
}, {}>, {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
import type { PropAnyComponent } from '../../helpers/common/components';
|
|
3
|
+
import type { Nullable, Optional } from '@speckle/shared';
|
|
3
4
|
type FormButtonSize = 'xs' | 'sm' | 'base' | 'lg' | 'xl';
|
|
4
5
|
type FormButtonColor = 'default' | 'invert' | 'danger' | 'warning' | 'success' | 'card' | 'secondary' | 'info';
|
|
5
6
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
@@ -92,14 +93,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
92
93
|
* Add icon to the left from the text
|
|
93
94
|
*/
|
|
94
95
|
iconLeft: {
|
|
95
|
-
type: PropType<Nullable<
|
|
96
|
+
type: PropType<Nullable<PropAnyComponent>>;
|
|
96
97
|
default: null;
|
|
97
98
|
};
|
|
98
99
|
/**
|
|
99
100
|
* Add icon to the right from the text
|
|
100
101
|
*/
|
|
101
102
|
iconRight: {
|
|
102
|
-
type: PropType<Nullable<
|
|
103
|
+
type: PropType<Nullable<PropAnyComponent>>;
|
|
103
104
|
default: null;
|
|
104
105
|
};
|
|
105
106
|
/**
|
|
@@ -115,7 +116,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
115
116
|
* The component will try to dynamically resolve NuxtLink and RouterLink and use those, if this is set to null.
|
|
116
117
|
*/
|
|
117
118
|
linkComponent: {
|
|
118
|
-
type: PropType<Nullable<
|
|
119
|
+
type: PropType<Nullable<PropAnyComponent>>;
|
|
119
120
|
default: null;
|
|
120
121
|
};
|
|
121
122
|
/**
|
|
@@ -217,14 +218,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
217
218
|
* Add icon to the left from the text
|
|
218
219
|
*/
|
|
219
220
|
iconLeft: {
|
|
220
|
-
type: PropType<Nullable<
|
|
221
|
+
type: PropType<Nullable<PropAnyComponent>>;
|
|
221
222
|
default: null;
|
|
222
223
|
};
|
|
223
224
|
/**
|
|
224
225
|
* Add icon to the right from the text
|
|
225
226
|
*/
|
|
226
227
|
iconRight: {
|
|
227
|
-
type: PropType<Nullable<
|
|
228
|
+
type: PropType<Nullable<PropAnyComponent>>;
|
|
228
229
|
default: null;
|
|
229
230
|
};
|
|
230
231
|
/**
|
|
@@ -240,7 +241,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
240
241
|
* The component will try to dynamically resolve NuxtLink and RouterLink and use those, if this is set to null.
|
|
241
242
|
*/
|
|
242
243
|
linkComponent: {
|
|
243
|
-
type: PropType<Nullable<
|
|
244
|
+
type: PropType<Nullable<PropAnyComponent>>;
|
|
244
245
|
default: null;
|
|
245
246
|
};
|
|
246
247
|
/**
|
|
@@ -264,10 +265,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
264
265
|
external: Optional<boolean>;
|
|
265
266
|
disabled: Optional<boolean>;
|
|
266
267
|
submit: boolean;
|
|
267
|
-
iconLeft: Nullable<
|
|
268
|
-
iconRight: Nullable<
|
|
268
|
+
iconLeft: Nullable<PropAnyComponent>;
|
|
269
|
+
iconRight: Nullable<PropAnyComponent>;
|
|
269
270
|
hideText: boolean;
|
|
270
|
-
linkComponent: Nullable<
|
|
271
|
+
linkComponent: Nullable<PropAnyComponent>;
|
|
271
272
|
loading: boolean;
|
|
272
273
|
}, {}>, {
|
|
273
274
|
default?(_: {}): any;
|
|
@@ -1,27 +1,28 @@
|
|
|
1
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
2
|
-
disabled
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
modelValue: {
|
|
6
|
-
type: import("vue").PropType<boolean>;
|
|
7
|
-
};
|
|
8
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
disabled?: boolean | undefined;
|
|
3
|
+
modelValue?: boolean | undefined;
|
|
4
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
5
|
"update:modelValue": (v: boolean) => void;
|
|
10
6
|
click: (v: MouseEvent) => void;
|
|
11
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
12
|
-
disabled
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
modelValue: {
|
|
16
|
-
type: import("vue").PropType<boolean>;
|
|
17
|
-
};
|
|
18
|
-
}>> & {
|
|
7
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
8
|
+
disabled?: boolean | undefined;
|
|
9
|
+
modelValue?: boolean | undefined;
|
|
10
|
+
}>>> & {
|
|
19
11
|
onClick?: ((v: MouseEvent) => any) | undefined;
|
|
20
12
|
"onUpdate:modelValue"?: ((v: boolean) => any) | undefined;
|
|
21
13
|
}, {}, {}>, {
|
|
22
14
|
default?(_: {}): any;
|
|
23
15
|
}>;
|
|
24
16
|
export default _default;
|
|
17
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
18
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
19
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
20
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
21
|
+
} : {
|
|
22
|
+
type: import('vue').PropType<T[K]>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
25
26
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
26
27
|
new (): {
|
|
27
28
|
$slots: S;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RuleExpression } from 'vee-validate';
|
|
2
|
-
import { PropType } from 'vue';
|
|
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
4
|
/**
|
|
5
5
|
* Troubleshooting:
|
|
6
6
|
* - If clicking on the checkbox doesn't do anything, check if any of its ancestor elements
|
|
@@ -1,32 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
value:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
isMultiline: {
|
|
10
|
-
type: import("vue").PropType<boolean>;
|
|
11
|
-
default: boolean;
|
|
12
|
-
};
|
|
13
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1
|
+
type Props = {
|
|
2
|
+
value: string;
|
|
3
|
+
isMultiline?: boolean;
|
|
4
|
+
rows?: number;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
7
|
+
isMultiline: boolean;
|
|
8
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
9
|
copy: (val: string) => void;
|
|
15
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
required: true;
|
|
19
|
-
};
|
|
20
|
-
rows: {
|
|
21
|
-
type: import("vue").PropType<number>;
|
|
22
|
-
};
|
|
23
|
-
isMultiline: {
|
|
24
|
-
type: import("vue").PropType<boolean>;
|
|
25
|
-
default: boolean;
|
|
26
|
-
};
|
|
27
|
-
}>> & {
|
|
10
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
11
|
+
isMultiline: boolean;
|
|
12
|
+
}>>> & {
|
|
28
13
|
onCopy?: ((val: string) => any) | undefined;
|
|
29
14
|
}, {
|
|
30
15
|
isMultiline: boolean;
|
|
31
16
|
}, {}>;
|
|
32
17
|
export default _default;
|
|
18
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
19
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
20
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
21
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
22
|
+
} : {
|
|
23
|
+
type: import('vue').PropType<T[K]>;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
type __VLS_WithDefaults<P, D> = {
|
|
28
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
29
|
+
default: D[K];
|
|
30
|
+
}> : P[K];
|
|
31
|
+
};
|
|
32
|
+
type __VLS_Prettify<T> = {
|
|
33
|
+
[K in keyof T]: T[K];
|
|
34
|
+
} & {};
|