@speckle/ui-components 2.15.1 → 2.15.2-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/InfiniteLoading.vue.d.ts +14 -16
- package/dist/components/SourceAppBadge.vue.d.ts +5 -6
- package/dist/components/common/Alert.vue.d.ts +23 -20
- package/dist/components/common/Badge.vue.d.ts +28 -34
- package/dist/components/common/loading/Bar.vue.d.ts +5 -6
- package/dist/components/common/steps/Bullet.vue.d.ts +23 -36
- package/dist/components/common/steps/Number.vue.d.ts +21 -32
- package/dist/components/common/text/Link.vue.d.ts +21 -11
- package/dist/components/form/Button.vue.d.ts +13 -4
- package/dist/components/form/CardButton.vue.d.ts +20 -15
- package/dist/components/form/Checkbox.vue.d.ts +10 -8
- package/dist/components/form/TextArea.vue.d.ts +96 -107
- package/dist/components/form/TextInput.vue.d.ts +41 -15
- package/dist/components/form/select/Base.vue.d.ts +48 -15
- package/dist/components/form/select/SourceApps.vue.d.ts +9 -7
- package/dist/components/global/ToastRenderer.vue.d.ts +9 -8
- package/dist/components/layout/Dialog.vue.d.ts +44 -21
- package/dist/components/layout/Disclosure.vue.d.ts +20 -18
- package/dist/components/layout/GridListToggle.vue.d.ts +11 -11
- package/dist/components/layout/Menu.vue.d.ts +32 -13
- package/dist/components/layout/Panel.vue.d.ts +15 -4
- package/dist/components/layout/Tabs.vue.d.ts +14 -6
- package/dist/composables/common/async.d.ts +28 -0
- package/dist/composables/form/input.d.ts +14 -0
- package/dist/helpers/common/components.d.ts +2 -0
- package/dist/helpers/layout/components.d.ts +1 -0
- package/dist/helpers/testing.d.ts +1 -0
- package/dist/lib-utils.d.ts +9 -0
- package/dist/lib.cjs +1 -1
- package/dist/lib.d.ts +4 -3
- package/dist/lib.js +1161 -1095
- package/dist/main.d.ts +0 -0
- package/dist/stories/composables/toast.d.ts +23 -0
- package/dist/stories/helpers/storybook.d.ts +10 -0
- package/package.json +16 -16
- package/vite.config.ts +7 -2
|
@@ -1,35 +1,37 @@
|
|
|
1
|
-
import type { PropType as __PropType } from 'vue';
|
|
2
1
|
import { ConcreteComponent } from 'vue';
|
|
3
2
|
type DisclosureColor = 'default' | 'danger';
|
|
4
|
-
declare const
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
4
|
+
color: {
|
|
5
|
+
type: import("vue").PropType<DisclosureColor>;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
5
8
|
title: {
|
|
6
|
-
type:
|
|
9
|
+
type: import("vue").PropType<string>;
|
|
7
10
|
required: true;
|
|
8
11
|
};
|
|
9
12
|
icon: {
|
|
10
|
-
type:
|
|
11
|
-
required: false;
|
|
13
|
+
type: import("vue").PropType<ConcreteComponent>;
|
|
12
14
|
};
|
|
15
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
13
16
|
color: {
|
|
14
|
-
type:
|
|
15
|
-
required: false;
|
|
17
|
+
type: import("vue").PropType<DisclosureColor>;
|
|
16
18
|
default: string;
|
|
17
19
|
};
|
|
18
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
20
|
title: {
|
|
20
|
-
type:
|
|
21
|
+
type: import("vue").PropType<string>;
|
|
21
22
|
required: true;
|
|
22
23
|
};
|
|
23
24
|
icon: {
|
|
24
|
-
type:
|
|
25
|
-
required: false;
|
|
26
|
-
};
|
|
27
|
-
color: {
|
|
28
|
-
type: __PropType<DisclosureColor | undefined>;
|
|
29
|
-
required: false;
|
|
30
|
-
default: string;
|
|
25
|
+
type: import("vue").PropType<ConcreteComponent>;
|
|
31
26
|
};
|
|
32
27
|
}>>, {
|
|
33
|
-
color: DisclosureColor
|
|
28
|
+
color: DisclosureColor;
|
|
29
|
+
}, {}>, {
|
|
30
|
+
default?(_: {}): any;
|
|
34
31
|
}>;
|
|
35
|
-
export default
|
|
32
|
+
export default _default;
|
|
33
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
34
|
+
new (): {
|
|
35
|
+
$slots: S;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import type { PropType as __PropType } from 'vue';
|
|
2
1
|
import { GridListToggleValue } from '../../helpers/layout/components';
|
|
3
|
-
declare const
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
3
|
modelValue: {
|
|
5
|
-
type:
|
|
6
|
-
required: false;
|
|
4
|
+
type: import("vue").PropType<GridListToggleValue>;
|
|
7
5
|
};
|
|
8
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
6
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
click: (v: MouseEvent) => void;
|
|
8
|
+
"update:modelValue": (v: GridListToggleValue) => void;
|
|
9
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9
10
|
modelValue: {
|
|
10
|
-
type:
|
|
11
|
-
required: false;
|
|
11
|
+
type: import("vue").PropType<GridListToggleValue>;
|
|
12
12
|
};
|
|
13
13
|
}>> & {
|
|
14
|
-
onClick?: ((
|
|
15
|
-
"onUpdate:modelValue"?: ((
|
|
16
|
-
}, {}>;
|
|
17
|
-
export default
|
|
14
|
+
onClick?: ((v: MouseEvent) => any) | undefined;
|
|
15
|
+
"onUpdate:modelValue"?: ((v: GridListToggleValue) => any) | undefined;
|
|
16
|
+
}, {}, {}>;
|
|
17
|
+
export default _default;
|
|
@@ -1,25 +1,44 @@
|
|
|
1
|
-
import type { PropType as __PropType } from 'vue';
|
|
2
1
|
import { LayoutMenuItem } from '../../helpers/layout/components';
|
|
3
|
-
declare const
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
4
3
|
open: {
|
|
5
|
-
type:
|
|
6
|
-
required: false;
|
|
4
|
+
type: import("vue").PropType<boolean>;
|
|
7
5
|
};
|
|
8
6
|
items: {
|
|
9
|
-
type:
|
|
7
|
+
type: import("vue").PropType<LayoutMenuItem[][]>;
|
|
10
8
|
required: true;
|
|
11
9
|
};
|
|
12
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
10
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
"update:open": (val: boolean) => void;
|
|
12
|
+
chosen: (val: {
|
|
13
|
+
event: MouseEvent;
|
|
14
|
+
item: LayoutMenuItem<any>;
|
|
15
|
+
}) => void;
|
|
16
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
13
17
|
open: {
|
|
14
|
-
type:
|
|
15
|
-
required: false;
|
|
18
|
+
type: import("vue").PropType<boolean>;
|
|
16
19
|
};
|
|
17
20
|
items: {
|
|
18
|
-
type:
|
|
21
|
+
type: import("vue").PropType<LayoutMenuItem[][]>;
|
|
19
22
|
required: true;
|
|
20
23
|
};
|
|
21
24
|
}>> & {
|
|
22
|
-
"onUpdate:open"?: ((
|
|
23
|
-
onChosen?: ((
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
"onUpdate:open"?: ((val: boolean) => any) | undefined;
|
|
26
|
+
onChosen?: ((val: {
|
|
27
|
+
event: MouseEvent;
|
|
28
|
+
item: LayoutMenuItem<any>;
|
|
29
|
+
}) => any) | undefined;
|
|
30
|
+
}, {}, {}>, {
|
|
31
|
+
default?(_: {
|
|
32
|
+
toggle: () => void | undefined;
|
|
33
|
+
open: boolean;
|
|
34
|
+
}): any;
|
|
35
|
+
item?(_: {
|
|
36
|
+
item: LayoutMenuItem;
|
|
37
|
+
}): any;
|
|
38
|
+
}>;
|
|
39
|
+
export default _default;
|
|
40
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
41
|
+
new (): {
|
|
42
|
+
$slots: S;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
2
2
|
/**
|
|
3
3
|
* Use a `<form/>` element as a wrapper that will emit 'submit' events out from the component when they occur
|
|
4
4
|
*/
|
|
@@ -28,7 +28,9 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
28
28
|
type: BooleanConstructor;
|
|
29
29
|
default: boolean;
|
|
30
30
|
};
|
|
31
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
31
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
32
|
+
submit: (val: SubmitEvent) => void;
|
|
33
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
32
34
|
/**
|
|
33
35
|
* Use a `<form/>` element as a wrapper that will emit 'submit' events out from the component when they occur
|
|
34
36
|
*/
|
|
@@ -59,12 +61,21 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
59
61
|
default: boolean;
|
|
60
62
|
};
|
|
61
63
|
}>> & {
|
|
62
|
-
onSubmit?: ((
|
|
64
|
+
onSubmit?: ((val: SubmitEvent) => any) | undefined;
|
|
63
65
|
}, {
|
|
64
66
|
form: boolean;
|
|
65
67
|
ring: boolean;
|
|
66
68
|
fancyGlow: boolean;
|
|
67
69
|
customPadding: boolean;
|
|
68
70
|
noShadow: boolean;
|
|
71
|
+
}, {}>, {
|
|
72
|
+
header?(_: {}): any;
|
|
73
|
+
default?(_: {}): any;
|
|
74
|
+
footer?(_: {}): any;
|
|
69
75
|
}>;
|
|
70
|
-
export default
|
|
76
|
+
export default _default;
|
|
77
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
78
|
+
new (): {
|
|
79
|
+
$slots: S;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
@@ -1,14 +1,22 @@
|
|
|
1
|
-
import type { PropType as __PropType } from 'vue';
|
|
2
1
|
import { LayoutTabItem } from '../../helpers/layout/components';
|
|
3
|
-
declare const
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
4
3
|
items: {
|
|
5
|
-
type:
|
|
4
|
+
type: import("vue").PropType<LayoutTabItem<any>[]>;
|
|
6
5
|
required: true;
|
|
7
6
|
};
|
|
8
7
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9
8
|
items: {
|
|
10
|
-
type:
|
|
9
|
+
type: import("vue").PropType<LayoutTabItem<any>[]>;
|
|
11
10
|
required: true;
|
|
12
11
|
};
|
|
13
|
-
}>>, {}
|
|
14
|
-
|
|
12
|
+
}>>, {}, {}>, {
|
|
13
|
+
default?(_: {
|
|
14
|
+
activeItem: LayoutTabItem<any>;
|
|
15
|
+
}): any;
|
|
16
|
+
}>;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { MaybeAsync } from '@speckle/shared';
|
|
2
|
+
import { AsyncComputedOptions } from '@vueuse/core';
|
|
3
|
+
import { ComputedRef } from 'vue';
|
|
4
|
+
export interface AsyncWritableComputedOptions<T> {
|
|
5
|
+
get: (...args: any[]) => MaybeAsync<T>;
|
|
6
|
+
set: (value: T) => MaybeAsync<void>;
|
|
7
|
+
initialState: T;
|
|
8
|
+
readOptions?: AsyncComputedOptions;
|
|
9
|
+
asyncRead?: boolean;
|
|
10
|
+
debugging?: Partial<{
|
|
11
|
+
log: {
|
|
12
|
+
name: string;
|
|
13
|
+
writesOnly?: boolean;
|
|
14
|
+
readsOnly?: boolean;
|
|
15
|
+
logger?: (msg: string, ...args: any[]) => void;
|
|
16
|
+
};
|
|
17
|
+
}>;
|
|
18
|
+
}
|
|
19
|
+
export type AsyncWritableComputedRef<T> = ComputedRef<T> & {
|
|
20
|
+
update: AsyncWritableComputedOptions<T>['set'];
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Allows async read/write from/to computed. Use `res.value` to read and `res.update` to write. If you only need
|
|
24
|
+
* the computed to be read-only then use vueuse's `computedAsync`. If you only need async writes you can
|
|
25
|
+
* disable async reads through the `asyncRead` param.
|
|
26
|
+
* @param params
|
|
27
|
+
*/
|
|
28
|
+
export declare function writableAsyncComputed<T>(params: AsyncWritableComputedOptions<T>): AsyncWritableComputedRef<T>;
|
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
import { onKeyDown } from '@vueuse/core';
|
|
2
2
|
import { ModifierKeys } from '../../helpers/form/input';
|
|
3
|
+
import { Ref } from 'vue';
|
|
3
4
|
/**
|
|
4
5
|
* onKeyDown wrapper that also checks for modifier keys being pressed
|
|
5
6
|
*/
|
|
6
7
|
export declare function onKeyboardShortcut(modifiers: ModifierKeys[], ...args: Parameters<typeof onKeyDown>): void;
|
|
8
|
+
/**
|
|
9
|
+
* To support group checkboxes, the checkbox v-model API is a bit confusing: The value is `true` or `undefined`
|
|
10
|
+
* not `true` or `false`.
|
|
11
|
+
*
|
|
12
|
+
* To simplify working with single checkboxes, you can use the model returned from this composable
|
|
13
|
+
* as the model and `isChecked` as a helpful wrapper that allows you to deal with boolean values only
|
|
14
|
+
*/
|
|
15
|
+
export declare function useFormCheckboxModel(options?: Partial<{
|
|
16
|
+
model: Ref<true | undefined>;
|
|
17
|
+
}>): {
|
|
18
|
+
model: Ref<true | undefined>;
|
|
19
|
+
isChecked: import("vue").WritableComputedRef<boolean>;
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function rightClick(target: HTMLElement): void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
/// <reference types="webpack-env" />
|
|
3
|
+
/**
|
|
4
|
+
* Use this to generate an entry for the Tailwind 'content' config key that will ensure
|
|
5
|
+
* this library is scanned to prevent unnecessary purging
|
|
6
|
+
* @param {NodeRequire} req Feed in the 'require' object. It needs to be fed in because it may be
|
|
7
|
+
* unavailable in certain environments and might need to be created manually with 'createRequire'
|
|
8
|
+
*/
|
|
9
|
+
export declare function tailwindContentEntry(req: NodeRequire): string;
|