@speckle/ui-components 2.23.7 → 2.23.9
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/App.vue.d.ts +2 -0
- package/dist/AvatarEditor-2d926b04.cjs +2 -0
- package/dist/AvatarEditor-2d926b04.cjs.map +1 -0
- package/dist/{AvatarEditor-25fde016.js → AvatarEditor-844e9444.js} +63 -63
- package/dist/AvatarEditor-844e9444.js.map +1 -0
- package/dist/components/InfiniteLoading.vue.d.ts +15 -36
- package/dist/components/SourceAppBadge.vue.d.ts +4 -14
- package/dist/components/common/Alert.vue.d.ts +25 -46
- package/dist/components/common/Badge.vue.d.ts +24 -50
- package/dist/components/common/ProgressBar.vue.d.ts +3 -14
- package/dist/components/common/VimeoEmbed.vue.d.ts +6 -20
- package/dist/components/common/animation/ClickIcon.vue.d.ts +1 -1
- package/dist/components/common/animation/Instructional.vue.d.ts +14 -6
- package/dist/components/common/animation/MouseIcon.vue.d.ts +1 -1
- package/dist/components/common/loading/Bar.vue.d.ts +4 -15
- package/dist/components/common/loading/Icon.vue.d.ts +6 -31
- package/dist/components/common/steps/Bullet.vue.d.ts +15 -32
- package/dist/components/common/steps/Number.vue.d.ts +14 -30
- package/dist/components/common/text/Link.vue.d.ts +23 -15
- package/dist/components/form/Button.vue.d.ts +34 -101
- package/dist/components/form/CardButton.vue.d.ts +19 -22
- package/dist/components/form/Checkbox.vue.d.ts +15 -15
- package/dist/components/form/ClipboardInput.vue.d.ts +5 -26
- package/dist/components/form/CodeInput.vue.d.ts +504 -0
- package/dist/components/form/Radio.vue.d.ts +15 -15
- package/dist/components/form/RadioGroup.vue.d.ts +25 -26
- package/dist/components/form/Switch.vue.d.ts +16 -40
- package/dist/components/form/Tags.vue.d.ts +95 -80
- package/dist/components/form/TextArea.vue.d.ts +45 -96
- package/dist/components/form/TextInput.vue.d.ts +53 -40
- package/dist/components/form/file-upload/Zone.vue.d.ts +36 -60
- package/dist/components/form/select/Badges.vue.d.ts +11 -30
- package/dist/components/form/select/Base.vue.d.ts +86 -173
- package/dist/components/form/select/Multi.vue.d.ts +84 -168
- package/dist/components/form/select/SourceApps.vue.d.ts +13 -10
- package/dist/components/form/tags/ContextManager.vue.d.ts +12 -4
- package/dist/components/global/ToastRenderer.vue.d.ts +8 -18
- package/dist/components/global/icon/ArrowFilled.vue.d.ts +1 -1
- package/dist/components/global/icon/Edit.vue.d.ts +1 -1
- package/dist/components/global/icon/Plus.vue.d.ts +1 -1
- package/dist/components/layout/Dialog.vue.d.ts +36 -65
- package/dist/components/layout/DialogSection.vue.d.ts +29 -16
- package/dist/components/layout/Disclosure.vue.d.ts +17 -36
- package/dist/components/layout/GridListToggle.vue.d.ts +8 -18
- package/dist/components/layout/Menu.vue.d.ts +253 -39
- package/dist/components/layout/Panel.vue.d.ts +19 -11
- package/dist/components/layout/Table.vue.d.ts +16 -54
- package/dist/components/layout/sidebar/Promo.vue.d.ts +9 -22
- package/dist/components/layout/sidebar/Sidebar.vue.d.ts +12 -4
- package/dist/components/layout/sidebar/menu/Menu.vue.d.ts +11 -3
- package/dist/components/layout/sidebar/menu/group/Group.vue.d.ts +30 -50
- package/dist/components/layout/sidebar/menu/group/Item.vue.d.ts +20 -29
- package/dist/components/layout/tabs/Horizontal.vue.d.ts +28 -22
- package/dist/components/layout/tabs/Vertical.vue.d.ts +23 -23
- package/dist/components/user/Avatar.vue.d.ts +25 -55
- package/dist/components/user/AvatarEditable.vue.d.ts +35 -91
- package/dist/components/user/AvatarEditor.vue.d.ts +239 -23
- package/dist/components/user/AvatarGroup.vue.d.ts +13 -47
- package/dist/composables/common/async.d.ts +3 -3
- package/dist/composables/common/steps.d.ts +6 -6
- package/dist/composables/common/window.d.ts +3 -3
- package/dist/composables/form/fileUpload.d.ts +6 -6
- package/dist/composables/form/input.d.ts +3 -3
- package/dist/composables/form/select.d.ts +4 -4
- package/dist/composables/form/textInput.d.ts +18 -18
- package/dist/composables/layout/resize.d.ts +3 -3
- package/dist/composables/testing.d.ts +2 -2
- package/dist/composables/user/avatar.d.ts +5 -5
- package/dist/directives/accessibility.d.ts +1 -1
- package/dist/helpers/common/components.d.ts +1 -1
- package/dist/helpers/common/validation.d.ts +2 -2
- package/dist/helpers/form/file.d.ts +2 -2
- package/dist/helpers/form/input.d.ts +1 -1
- package/dist/helpers/global/toast.d.ts +2 -1
- package/dist/helpers/layout/components.d.ts +3 -3
- package/dist/lib.cjs +1 -1
- package/dist/lib.cjs.map +1 -1
- package/dist/lib.d.ts +57 -62
- package/dist/lib.js +2924 -2838
- package/dist/lib.js.map +1 -1
- package/dist/stories/components/GlobalToast.vue.d.ts +2 -0
- package/dist/stories/components/SingletonManagers.vue.d.ts +2 -0
- package/dist/stories/composables/toast.d.ts +2 -2
- package/dist/stories/helpers/storybook.d.ts +2 -2
- package/dist/style.css +1 -1
- package/eslint.config.mjs +4 -3
- package/package.json +7 -8
- package/vite.config.ts +5 -10
- package/dist/AvatarEditor-25fde016.js.map +0 -1
- package/dist/AvatarEditor-a33fb9ec.cjs +0 -2
- package/dist/AvatarEditor-a33fb9ec.cjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
2
|
type AnimationAction = {
|
|
3
3
|
type: 'animation';
|
|
4
4
|
top: number;
|
|
@@ -17,7 +17,16 @@ type SlotAction = {
|
|
|
17
17
|
slot: string;
|
|
18
18
|
};
|
|
19
19
|
type Action = AnimationAction | ClickAction | SlotAction | DelayAction;
|
|
20
|
-
declare
|
|
20
|
+
declare function __VLS_template(): {
|
|
21
|
+
attrs: Partial<{}>;
|
|
22
|
+
slots: Partial<Record<string, (_: {}) => any>> & {
|
|
23
|
+
background?(_: {}): any;
|
|
24
|
+
};
|
|
25
|
+
refs: {};
|
|
26
|
+
rootEl: HTMLDivElement;
|
|
27
|
+
};
|
|
28
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
29
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
21
30
|
actions: PropType<Action[]>;
|
|
22
31
|
initialPosition: {
|
|
23
32
|
type: PropType<{
|
|
@@ -29,7 +38,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
29
38
|
name: string;
|
|
30
39
|
visible: boolean;
|
|
31
40
|
}[]>;
|
|
32
|
-
}
|
|
41
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
33
42
|
actions: PropType<Action[]>;
|
|
34
43
|
initialPosition: {
|
|
35
44
|
type: PropType<{
|
|
@@ -41,9 +50,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
41
50
|
name: string;
|
|
42
51
|
visible: boolean;
|
|
43
52
|
}[]>;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
}>;
|
|
53
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
54
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
47
55
|
export default _default;
|
|
48
56
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
49
57
|
new (): {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import(
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
2
2
|
export default _default;
|
|
@@ -1,17 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
type __VLS_Props = {
|
|
2
2
|
loading: boolean;
|
|
3
|
-
clientOnly?: boolean
|
|
4
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
-
loading: boolean;
|
|
6
|
-
clientOnly?: boolean | undefined;
|
|
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
|
-
};
|
|
3
|
+
clientOnly?: boolean;
|
|
17
4
|
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
6
|
+
export default _default;
|
|
@@ -1,35 +1,10 @@
|
|
|
1
1
|
type Size = 'base' | 'sm' | 'lg';
|
|
2
|
-
|
|
3
|
-
loading?: boolean
|
|
4
|
-
size?: Size
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
loading: boolean;
|
|
8
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
9
|
-
loading?: boolean | undefined;
|
|
10
|
-
size?: Size | undefined;
|
|
11
|
-
}>, {
|
|
12
|
-
size: string;
|
|
13
|
-
loading: boolean;
|
|
14
|
-
}>>>, {
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
loading?: boolean;
|
|
4
|
+
size?: Size;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
15
7
|
size: Size;
|
|
16
8
|
loading: boolean;
|
|
17
|
-
}, {}>;
|
|
9
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, SVGSVGElement>;
|
|
18
10
|
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,36 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { StepsPadding } from '../../../composables/common/steps';
|
|
2
|
+
import { BulletStepType, HorizontalOrVertical } from '../../../helpers/common/components';
|
|
3
3
|
import { TailwindBreakpoints } from '../../../helpers/tailwind';
|
|
4
|
-
|
|
5
|
-
ariaLabel?: string
|
|
6
|
-
basic?: boolean
|
|
7
|
-
orientation?: HorizontalOrVertical
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
ariaLabel?: string;
|
|
6
|
+
basic?: boolean;
|
|
7
|
+
orientation?: HorizontalOrVertical;
|
|
8
8
|
steps: BulletStepType[];
|
|
9
|
-
modelValue?: number
|
|
10
|
-
goVerticalBelow?: TailwindBreakpoints
|
|
11
|
-
nonInteractive?: boolean
|
|
12
|
-
stepsPadding?: StepsPadding
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
-
}>>> & {
|
|
9
|
+
modelValue?: number;
|
|
10
|
+
goVerticalBelow?: TailwindBreakpoints;
|
|
11
|
+
nonInteractive?: boolean;
|
|
12
|
+
stepsPadding?: StepsPadding;
|
|
13
|
+
};
|
|
14
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
15
|
+
"update:modelValue": (val: number) => any;
|
|
16
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
25
17
|
"onUpdate:modelValue"?: ((val: number) => any) | undefined;
|
|
26
|
-
}, {}, {}>;
|
|
18
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
|
|
27
19
|
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,34 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { StepsPadding } from '../../../composables/common/steps';
|
|
2
|
+
import { HorizontalOrVertical, NumberStepType } from '../../../helpers/common/components';
|
|
3
3
|
import { TailwindBreakpoints } from '../../../helpers/tailwind';
|
|
4
|
-
|
|
5
|
-
ariaLabel?: string
|
|
6
|
-
orientation?: HorizontalOrVertical
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
ariaLabel?: string;
|
|
6
|
+
orientation?: HorizontalOrVertical;
|
|
7
7
|
steps: NumberStepType[];
|
|
8
|
-
modelValue?: number
|
|
9
|
-
goVerticalBelow?: TailwindBreakpoints
|
|
10
|
-
nonInteractive?: boolean
|
|
11
|
-
stepsPadding?: StepsPadding
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
orientation?: HorizontalOrVertical | undefined;
|
|
17
|
-
steps: NumberStepType[];
|
|
18
|
-
modelValue?: number | undefined;
|
|
19
|
-
goVerticalBelow?: TailwindBreakpoints | undefined;
|
|
20
|
-
nonInteractive?: boolean | undefined;
|
|
21
|
-
stepsPadding?: StepsPadding | undefined;
|
|
22
|
-
}>>> & {
|
|
8
|
+
modelValue?: number;
|
|
9
|
+
goVerticalBelow?: TailwindBreakpoints;
|
|
10
|
+
nonInteractive?: boolean;
|
|
11
|
+
stepsPadding?: StepsPadding;
|
|
12
|
+
};
|
|
13
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
14
|
+
"update:modelValue": (val: number) => any;
|
|
15
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
23
16
|
"onUpdate:modelValue"?: ((val: number) => any) | undefined;
|
|
24
|
-
}, {}, {}>;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
|
|
25
18
|
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,8 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { Nullable, Optional } from '../../../../../shared/dist/esm/index';
|
|
3
|
+
import { PropAnyComponent } from '../../../helpers/common/components';
|
|
4
4
|
type LinkSize = 'sm' | 'base' | 'lg';
|
|
5
|
-
declare
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
slots: {
|
|
8
|
+
default?(_: {}): any;
|
|
9
|
+
};
|
|
10
|
+
refs: {};
|
|
11
|
+
rootEl: any;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
6
15
|
to: {
|
|
7
16
|
type: PropType<Optional<string>>;
|
|
8
17
|
required: false;
|
|
@@ -51,9 +60,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
51
60
|
type: BooleanConstructor;
|
|
52
61
|
default: boolean;
|
|
53
62
|
};
|
|
54
|
-
}
|
|
55
|
-
click: (val: MouseEvent) =>
|
|
56
|
-
}, string, import(
|
|
63
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
64
|
+
click: (val: MouseEvent) => any;
|
|
65
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
57
66
|
to: {
|
|
58
67
|
type: PropType<Optional<string>>;
|
|
59
68
|
required: false;
|
|
@@ -102,21 +111,20 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
102
111
|
type: BooleanConstructor;
|
|
103
112
|
default: boolean;
|
|
104
113
|
};
|
|
105
|
-
}>> & {
|
|
114
|
+
}>> & Readonly<{
|
|
106
115
|
onClick?: ((val: MouseEvent) => any) | undefined;
|
|
107
|
-
}
|
|
108
|
-
size: LinkSize;
|
|
109
|
-
iconLeft: Nullable<PropAnyComponent>;
|
|
110
|
-
disabled: Optional<boolean>;
|
|
116
|
+
}>, {
|
|
111
117
|
to: Optional<string>;
|
|
118
|
+
size: LinkSize;
|
|
112
119
|
external: Optional<boolean>;
|
|
120
|
+
disabled: Optional<boolean>;
|
|
121
|
+
iconLeft: Nullable<PropAnyComponent>;
|
|
113
122
|
iconRight: Nullable<PropAnyComponent>;
|
|
114
123
|
hideText: boolean;
|
|
115
124
|
foregroundLink: boolean;
|
|
116
125
|
underline: boolean;
|
|
117
|
-
}, {}
|
|
118
|
-
|
|
119
|
-
}>;
|
|
126
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
127
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
120
128
|
export default _default;
|
|
121
129
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
122
130
|
new (): {
|
|
@@ -1,157 +1,90 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import { PropAnyComponent } from '../../helpers/common/components';
|
|
2
|
+
import { Nullable } from '../../../../shared/dist/esm/index';
|
|
3
|
+
import { FormButtonStyle, FormButtonSize } from '../../helpers/form/button';
|
|
4
|
+
type __VLS_Props = {
|
|
5
5
|
/**
|
|
6
6
|
* URL to which to navigate - can be a relative (app) path or an absolute link for an external URL
|
|
7
7
|
*/
|
|
8
|
-
to?: string
|
|
8
|
+
to?: string;
|
|
9
9
|
/**
|
|
10
10
|
* Choose from one of 3 button sizes
|
|
11
11
|
*/
|
|
12
|
-
size?: FormButtonSize
|
|
12
|
+
size?: FormButtonSize;
|
|
13
13
|
/**
|
|
14
14
|
* If set, will make the button take up all available space horizontally
|
|
15
15
|
*/
|
|
16
|
-
fullWidth?: boolean
|
|
16
|
+
fullWidth?: boolean;
|
|
17
17
|
/**
|
|
18
18
|
* Similar to "link", but without an underline and possibly in different colors
|
|
19
19
|
*/
|
|
20
|
-
text?: boolean
|
|
20
|
+
text?: boolean;
|
|
21
21
|
/**
|
|
22
22
|
* Will remove paddings and background. Use for links.
|
|
23
23
|
*/
|
|
24
|
-
link?: boolean
|
|
24
|
+
link?: boolean;
|
|
25
25
|
/**
|
|
26
26
|
* color:
|
|
27
27
|
* primary: the default primary blue.
|
|
28
28
|
* outline: foundation background and outline
|
|
29
29
|
* subtle: no styling
|
|
30
30
|
*/
|
|
31
|
-
color?: FormButtonStyle
|
|
31
|
+
color?: FormButtonStyle;
|
|
32
32
|
/**
|
|
33
33
|
* Should rounded-full be added?:
|
|
34
34
|
*/
|
|
35
|
-
rounded?: boolean
|
|
35
|
+
rounded?: boolean;
|
|
36
36
|
/**
|
|
37
37
|
* Whether the target location should be forcefully treated as an external URL
|
|
38
38
|
* (for relative paths this will likely cause a redirect)
|
|
39
39
|
*/
|
|
40
|
-
external?: boolean
|
|
40
|
+
external?: boolean;
|
|
41
41
|
/**
|
|
42
42
|
* Whether to disable the button so that it can't be pressed
|
|
43
43
|
*/
|
|
44
|
-
disabled?: boolean
|
|
44
|
+
disabled?: boolean;
|
|
45
45
|
/**
|
|
46
46
|
* If set, will have type set to "submit" to enable it to submit any parent forms
|
|
47
47
|
*/
|
|
48
|
-
submit?: boolean
|
|
48
|
+
submit?: boolean;
|
|
49
49
|
/**
|
|
50
50
|
* Add icon to the left from the text
|
|
51
51
|
*/
|
|
52
|
-
iconLeft?: Nullable<PropAnyComponent
|
|
52
|
+
iconLeft?: Nullable<PropAnyComponent>;
|
|
53
53
|
/**
|
|
54
54
|
* Add icon to the right from the text
|
|
55
55
|
*/
|
|
56
|
-
iconRight?: Nullable<PropAnyComponent
|
|
56
|
+
iconRight?: Nullable<PropAnyComponent>;
|
|
57
57
|
/**
|
|
58
58
|
* Hide default slot (when you want to show icons only)
|
|
59
59
|
*/
|
|
60
|
-
hideText?: boolean
|
|
60
|
+
hideText?: boolean;
|
|
61
61
|
/**
|
|
62
62
|
* Customize component to be used when rendering links.
|
|
63
63
|
*
|
|
64
64
|
* The component will try to dynamically resolve NuxtLink and RouterLink and use those, if this is set to null.
|
|
65
65
|
*/
|
|
66
|
-
linkComponent?: Nullable<PropAnyComponent
|
|
66
|
+
linkComponent?: Nullable<PropAnyComponent>;
|
|
67
67
|
/**
|
|
68
68
|
* Disables the button and shows a spinning loader
|
|
69
69
|
*/
|
|
70
|
-
loading?: boolean
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
*/
|
|
77
|
-
to?: string | undefined;
|
|
78
|
-
/**
|
|
79
|
-
* Choose from one of 3 button sizes
|
|
80
|
-
*/
|
|
81
|
-
size?: FormButtonSize | undefined;
|
|
82
|
-
/**
|
|
83
|
-
* If set, will make the button take up all available space horizontally
|
|
84
|
-
*/
|
|
85
|
-
fullWidth?: boolean | undefined;
|
|
86
|
-
/**
|
|
87
|
-
* Similar to "link", but without an underline and possibly in different colors
|
|
88
|
-
*/
|
|
89
|
-
text?: boolean | undefined;
|
|
90
|
-
/**
|
|
91
|
-
* Will remove paddings and background. Use for links.
|
|
92
|
-
*/
|
|
93
|
-
link?: boolean | undefined;
|
|
94
|
-
/**
|
|
95
|
-
* color:
|
|
96
|
-
* primary: the default primary blue.
|
|
97
|
-
* outline: foundation background and outline
|
|
98
|
-
* subtle: no styling
|
|
99
|
-
*/
|
|
100
|
-
color?: FormButtonStyle | undefined;
|
|
101
|
-
/**
|
|
102
|
-
* Should rounded-full be added?:
|
|
103
|
-
*/
|
|
104
|
-
rounded?: boolean | undefined;
|
|
105
|
-
/**
|
|
106
|
-
* Whether the target location should be forcefully treated as an external URL
|
|
107
|
-
* (for relative paths this will likely cause a redirect)
|
|
108
|
-
*/
|
|
109
|
-
external?: boolean | undefined;
|
|
110
|
-
/**
|
|
111
|
-
* Whether to disable the button so that it can't be pressed
|
|
112
|
-
*/
|
|
113
|
-
disabled?: boolean | undefined;
|
|
114
|
-
/**
|
|
115
|
-
* If set, will have type set to "submit" to enable it to submit any parent forms
|
|
116
|
-
*/
|
|
117
|
-
submit?: boolean | undefined;
|
|
118
|
-
/**
|
|
119
|
-
* Add icon to the left from the text
|
|
120
|
-
*/
|
|
121
|
-
iconLeft?: Nullable<PropAnyComponent> | undefined;
|
|
122
|
-
/**
|
|
123
|
-
* Add icon to the right from the text
|
|
124
|
-
*/
|
|
125
|
-
iconRight?: Nullable<PropAnyComponent> | undefined;
|
|
126
|
-
/**
|
|
127
|
-
* Hide default slot (when you want to show icons only)
|
|
128
|
-
*/
|
|
129
|
-
hideText?: boolean | undefined;
|
|
130
|
-
/**
|
|
131
|
-
* Customize component to be used when rendering links.
|
|
132
|
-
*
|
|
133
|
-
* The component will try to dynamically resolve NuxtLink and RouterLink and use those, if this is set to null.
|
|
134
|
-
*/
|
|
135
|
-
linkComponent?: Nullable<PropAnyComponent> | undefined;
|
|
136
|
-
/**
|
|
137
|
-
* Disables the button and shows a spinning loader
|
|
138
|
-
*/
|
|
139
|
-
loading?: boolean | undefined;
|
|
140
|
-
}>>> & {
|
|
141
|
-
onClick?: ((val: MouseEvent) => any) | undefined;
|
|
142
|
-
}, {}, {}>, {
|
|
143
|
-
default?(_: {}): any;
|
|
144
|
-
}>;
|
|
145
|
-
export default _default;
|
|
146
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
147
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
148
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
149
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
150
|
-
} : {
|
|
151
|
-
type: import('vue').PropType<T[K]>;
|
|
152
|
-
required: true;
|
|
70
|
+
loading?: boolean;
|
|
71
|
+
};
|
|
72
|
+
declare function __VLS_template(): {
|
|
73
|
+
attrs: Partial<{}>;
|
|
74
|
+
slots: {
|
|
75
|
+
default?(_: {}): any;
|
|
153
76
|
};
|
|
77
|
+
refs: {};
|
|
78
|
+
rootEl: any;
|
|
154
79
|
};
|
|
80
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
81
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
82
|
+
click: (val: MouseEvent) => any;
|
|
83
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
84
|
+
onClick?: ((val: MouseEvent) => any) | undefined;
|
|
85
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
86
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
87
|
+
export default _default;
|
|
155
88
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
156
89
|
new (): {
|
|
157
90
|
$slots: S;
|
|
@@ -1,28 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
disabled?: boolean
|
|
3
|
-
modelValue?: boolean
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
disabled?: boolean;
|
|
3
|
+
modelValue?: boolean;
|
|
4
|
+
};
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
slots: {
|
|
8
|
+
default?(_: {}): any;
|
|
9
|
+
};
|
|
10
|
+
refs: {};
|
|
11
|
+
rootEl: HTMLButtonElement;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
15
|
+
click: (v: MouseEvent) => any;
|
|
16
|
+
"update:modelValue": (v: boolean) => any;
|
|
17
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
18
|
onClick?: ((v: MouseEvent) => any) | undefined;
|
|
12
19
|
"onUpdate:modelValue"?: ((v: boolean) => any) | undefined;
|
|
13
|
-
}, {}, {}
|
|
14
|
-
|
|
15
|
-
}>;
|
|
20
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
21
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
16
22
|
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
|
-
};
|
|
26
23
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
27
24
|
new (): {
|
|
28
25
|
$slots: S;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { RuleExpression } from 'vee-validate';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
import { Optional } from '../../../../shared/dist/esm/index';
|
|
4
|
+
import { LabelPosition } from '../../composables/form/input';
|
|
5
5
|
/**
|
|
6
6
|
* Troubleshooting:
|
|
7
7
|
* - If clicking on the checkbox doesn't do anything, check if any of its ancestor elements
|
|
@@ -11,7 +11,7 @@ import type { LabelPosition } from '../../composables/form/input';
|
|
|
11
11
|
* checked state
|
|
12
12
|
*/
|
|
13
13
|
type ValueType = Optional<string | true> | string[];
|
|
14
|
-
declare const _default: import(
|
|
14
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
15
15
|
/**
|
|
16
16
|
* Input name/id. In a checkbox group, all checkboxes must have the same name and different values.
|
|
17
17
|
*/
|
|
@@ -72,7 +72,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
72
72
|
* Checkbox group's value
|
|
73
73
|
*/
|
|
74
74
|
modelValue: {
|
|
75
|
-
type: PropType<
|
|
75
|
+
type: PropType<ValueType | false>;
|
|
76
76
|
default: undefined;
|
|
77
77
|
};
|
|
78
78
|
/**
|
|
@@ -98,9 +98,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
98
98
|
type: PropType<LabelPosition>;
|
|
99
99
|
default: string;
|
|
100
100
|
};
|
|
101
|
-
}
|
|
102
|
-
"update:modelValue": (val: ValueType) =>
|
|
103
|
-
}, string, import(
|
|
101
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
102
|
+
"update:modelValue": (val: ValueType) => any;
|
|
103
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
104
104
|
/**
|
|
105
105
|
* Input name/id. In a checkbox group, all checkboxes must have the same name and different values.
|
|
106
106
|
*/
|
|
@@ -161,7 +161,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
161
161
|
* Checkbox group's value
|
|
162
162
|
*/
|
|
163
163
|
modelValue: {
|
|
164
|
-
type: PropType<
|
|
164
|
+
type: PropType<ValueType | false>;
|
|
165
165
|
default: undefined;
|
|
166
166
|
};
|
|
167
167
|
/**
|
|
@@ -187,14 +187,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
187
187
|
type: PropType<LabelPosition>;
|
|
188
188
|
default: string;
|
|
189
189
|
};
|
|
190
|
-
}>> & {
|
|
190
|
+
}>> & Readonly<{
|
|
191
191
|
"onUpdate:modelValue"?: ((val: ValueType) => any) | undefined;
|
|
192
|
-
}
|
|
192
|
+
}>, {
|
|
193
|
+
disabled: boolean;
|
|
194
|
+
description: Optional<string>;
|
|
193
195
|
label: Optional<string>;
|
|
194
196
|
modelValue: false | ValueType;
|
|
195
197
|
value: Optional<string | true>;
|
|
196
|
-
disabled: boolean;
|
|
197
|
-
description: Optional<string>;
|
|
198
198
|
inlineDescription: boolean;
|
|
199
199
|
rules: RuleExpression<ValueType>;
|
|
200
200
|
validateOnMount: boolean;
|
|
@@ -202,5 +202,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
202
202
|
id: Optional<string>;
|
|
203
203
|
hideLabel: boolean;
|
|
204
204
|
labelPosition: LabelPosition;
|
|
205
|
-
}, {}>;
|
|
205
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
206
206
|
export default _default;
|
|
@@ -4,32 +4,11 @@ type Props = {
|
|
|
4
4
|
isIconButton?: boolean;
|
|
5
5
|
rows?: number;
|
|
6
6
|
};
|
|
7
|
-
declare const _default: import(
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
copy: (val: string) => void;
|
|
11
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
12
|
-
isMultiline: boolean;
|
|
13
|
-
}>>> & {
|
|
7
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
8
|
+
copy: (val: string) => any;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
14
10
|
onCopy?: ((val: string) => any) | undefined;
|
|
15
|
-
}
|
|
11
|
+
}>, {
|
|
16
12
|
isMultiline: boolean;
|
|
17
|
-
}, {}>;
|
|
13
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
18
14
|
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
|
-
} & {};
|