@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.
Files changed (60) hide show
  1. package/dist/AvatarEditor-e223a145.cjs +2 -0
  2. package/dist/AvatarEditor-e223a145.cjs.map +1 -0
  3. package/dist/{AvatarEditor-8531c565.js → AvatarEditor-fda5ba41.js} +52 -52
  4. package/dist/AvatarEditor-fda5ba41.js.map +1 -0
  5. package/dist/components/InfiniteLoading.vue.d.ts +42 -29
  6. package/dist/components/SourceAppBadge.vue.d.ts +14 -11
  7. package/dist/components/common/Alert.vue.d.ts +48 -49
  8. package/dist/components/common/Badge.vue.d.ts +64 -47
  9. package/dist/components/common/loading/Bar.vue.d.ts +13 -10
  10. package/dist/components/common/loading/Icon.vue.d.ts +30 -19
  11. package/dist/components/common/steps/Bullet.vue.d.ts +31 -56
  12. package/dist/components/common/steps/Number.vue.d.ts +29 -50
  13. package/dist/components/common/text/Link.vue.d.ts +9 -9
  14. package/dist/components/form/Button.vue.d.ts +12 -11
  15. package/dist/components/form/CardButton.vue.d.ts +17 -16
  16. package/dist/components/form/Checkbox.vue.d.ts +3 -3
  17. package/dist/components/form/ClipboardInput.vue.d.ts +28 -26
  18. package/dist/components/form/Tags.vue.d.ts +69 -126
  19. package/dist/components/form/TextArea.vue.d.ts +71 -119
  20. package/dist/components/form/TextInput.vue.d.ts +7 -6
  21. package/dist/components/form/file-upload/Zone.vue.d.ts +60 -37
  22. package/dist/components/form/select/Badges.vue.d.ts +30 -60
  23. package/dist/components/form/select/Base.vue.d.ts +31 -244
  24. package/dist/components/form/select/SourceApps.vue.d.ts +4 -4
  25. package/dist/components/global/ToastRenderer.vue.d.ts +17 -14
  26. package/dist/components/layout/Dialog.vue.d.ts +51 -60
  27. package/dist/components/layout/DialogSection.vue.d.ts +3 -3
  28. package/dist/components/layout/Disclosure.vue.d.ts +37 -26
  29. package/dist/components/layout/GridListToggle.vue.d.ts +15 -10
  30. package/dist/components/layout/Menu.vue.d.ts +24 -19
  31. package/dist/components/layout/Table.vue.d.ts +8 -16
  32. package/dist/components/layout/Tabs.vue.d.ts +15 -12
  33. package/dist/components/user/Avatar.vue.d.ts +42 -46
  34. package/dist/components/user/AvatarEditable.vue.d.ts +2 -2
  35. package/dist/components/user/AvatarEditor.vue.d.ts +21 -26
  36. package/dist/components/user/AvatarGroup.vue.d.ts +39 -38
  37. package/dist/composables/common/async.d.ts +3 -3
  38. package/dist/composables/common/steps.d.ts +2 -2
  39. package/dist/composables/common/window.d.ts +2 -2
  40. package/dist/composables/form/fileUpload.d.ts +3 -3
  41. package/dist/composables/form/input.d.ts +1 -1
  42. package/dist/composables/form/select.d.ts +2 -2
  43. package/dist/composables/form/textInput.d.ts +3 -3
  44. package/dist/composables/layout/resize.d.ts +2 -2
  45. package/dist/composables/user/avatar.d.ts +1 -1
  46. package/dist/helpers/common/components.d.ts +2 -2
  47. package/dist/helpers/common/validation.d.ts +1 -1
  48. package/dist/helpers/form/file.d.ts +1 -1
  49. package/dist/lib.cjs +1 -1
  50. package/dist/lib.cjs.map +1 -1
  51. package/dist/lib.d.ts +12 -8
  52. package/dist/lib.js +1715 -1721
  53. package/dist/lib.js.map +1 -1
  54. package/dist/stories/composables/toast.d.ts +1 -1
  55. package/dist/style.css +1 -1
  56. package/package.json +9 -9
  57. package/tsconfig.json +1 -0
  58. package/dist/AvatarEditor-0cf61750.cjs +0 -2
  59. package/dist/AvatarEditor-0cf61750.cjs.map +0 -1
  60. package/dist/AvatarEditor-8531c565.js.map +0 -1
@@ -1,35 +1,46 @@
1
- import { ConcreteComponent } from 'vue';
1
+ import type { PropAnyComponent } from '../../helpers/common/components';
2
2
  type DisclosureColor = 'default' | 'danger' | 'success' | 'warning';
3
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
4
- color: {
5
- type: import("vue").PropType<DisclosureColor>;
6
- default: string;
7
- };
8
- title: {
9
- type: import("vue").PropType<string>;
10
- required: true;
11
- };
12
- icon: {
13
- type: import("vue").PropType<ConcreteComponent>;
14
- };
15
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
16
- color: {
17
- type: import("vue").PropType<DisclosureColor>;
18
- default: string;
19
- };
20
- title: {
21
- type: import("vue").PropType<string>;
22
- required: true;
23
- };
24
- icon: {
25
- type: import("vue").PropType<ConcreteComponent>;
26
- };
27
- }>>, {
3
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
4
+ title: string;
5
+ /**
6
+ * HeadlessUI icon component to use
7
+ */
8
+ icon?: PropAnyComponent | undefined;
9
+ color?: DisclosureColor | undefined;
10
+ }>, {
11
+ color: string;
12
+ }>, {}, 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<{
13
+ title: string;
14
+ /**
15
+ * HeadlessUI icon component to use
16
+ */
17
+ icon?: PropAnyComponent | undefined;
18
+ color?: DisclosureColor | undefined;
19
+ }>, {
20
+ color: string;
21
+ }>>>, {
28
22
  color: DisclosureColor;
29
23
  }, {}>, {
30
24
  default?(_: {}): any;
31
25
  }>;
32
26
  export default _default;
27
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
28
+ type __VLS_TypePropsToRuntimeProps<T> = {
29
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
30
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
31
+ } : {
32
+ type: import('vue').PropType<T[K]>;
33
+ required: true;
34
+ };
35
+ };
36
+ type __VLS_WithDefaults<P, D> = {
37
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
38
+ default: D[K];
39
+ }> : P[K];
40
+ };
41
+ type __VLS_Prettify<T> = {
42
+ [K in keyof T]: T[K];
43
+ } & {};
33
44
  type __VLS_WithTemplateSlots<T, S> = T & {
34
45
  new (): {
35
46
  $slots: S;
@@ -1,17 +1,22 @@
1
1
  import { GridListToggleValue } from '../../helpers/layout/components';
2
- declare const _default: import("vue").DefineComponent<{
3
- modelValue: {
4
- type: import("vue").PropType<GridListToggleValue>;
5
- };
6
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
2
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
+ modelValue?: GridListToggleValue | undefined;
4
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
5
  click: (v: MouseEvent) => void;
8
6
  "update:modelValue": (v: GridListToggleValue) => void;
9
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
10
- modelValue: {
11
- type: import("vue").PropType<GridListToggleValue>;
12
- };
13
- }>> & {
7
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
8
+ modelValue?: GridListToggleValue | undefined;
9
+ }>>> & {
14
10
  onClick?: ((v: MouseEvent) => any) | undefined;
15
11
  "onUpdate:modelValue"?: ((v: GridListToggleValue) => any) | undefined;
16
12
  }, {}, {}>;
17
13
  export default _default;
14
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
15
+ type __VLS_TypePropsToRuntimeProps<T> = {
16
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
17
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
18
+ } : {
19
+ type: import('vue').PropType<T[K]>;
20
+ required: true;
21
+ };
22
+ };
@@ -1,27 +1,23 @@
1
- import { LayoutMenuItem } from '../../helpers/layout/components';
2
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
3
- open: {
4
- type: import("vue").PropType<boolean>;
5
- };
6
- items: {
7
- type: import("vue").PropType<LayoutMenuItem[][]>;
8
- required: true;
9
- };
10
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
1
+ import type { LayoutMenuItem } from '../../helpers/layout/components';
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
+ open?: boolean | undefined;
4
+ /**
5
+ * 2D array so that items can be grouped with dividers between them
6
+ */
7
+ items: LayoutMenuItem[][];
8
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
9
  "update:open": (val: boolean) => void;
12
10
  chosen: (val: {
13
11
  event: MouseEvent;
14
12
  item: LayoutMenuItem<any>;
15
13
  }) => void;
16
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
17
- open: {
18
- type: import("vue").PropType<boolean>;
19
- };
20
- items: {
21
- type: import("vue").PropType<LayoutMenuItem[][]>;
22
- required: true;
23
- };
24
- }>> & {
14
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
15
+ open?: boolean | undefined;
16
+ /**
17
+ * 2D array so that items can be grouped with dividers between them
18
+ */
19
+ items: LayoutMenuItem[][];
20
+ }>>> & {
25
21
  "onUpdate:open"?: ((val: boolean) => any) | undefined;
26
22
  onChosen?: ((val: {
27
23
  event: MouseEvent;
@@ -37,6 +33,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
37
33
  }): any;
38
34
  }>;
39
35
  export default _default;
36
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
37
+ type __VLS_TypePropsToRuntimeProps<T> = {
38
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
39
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
40
+ } : {
41
+ type: import('vue').PropType<T[K]>;
42
+ required: true;
43
+ };
44
+ };
40
45
  type __VLS_WithTemplateSlots<T, S> = T & {
41
46
  new (): {
42
47
  $slots: S;
@@ -1,11 +1,11 @@
1
- import { ConcreteComponent } from 'vue';
1
+ import type { PropAnyComponent } from '../../helpers/common/components';
2
2
  export type TableColumn<I> = {
3
3
  id: I;
4
4
  header: string;
5
5
  classes: string;
6
6
  };
7
7
  export interface RowButton<T = unknown> {
8
- icon: ConcreteComponent;
8
+ icon: PropAnyComponent;
9
9
  label: string;
10
10
  action: (item: T) => void;
11
11
  class: string;
@@ -18,29 +18,21 @@ declare const _default: <T extends {
18
18
  columns: TableColumn<C>[];
19
19
  overflowCells?: boolean | undefined;
20
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;
21
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
30
22
  attrs: any;
31
23
  slots: Partial<Record<NonNullable<C>, (_: {
32
24
  item: T;
33
25
  }) => any>>;
34
26
  emit: any;
35
- }, "attrs" | "slots" | "emit"> | undefined, __VLS_setup?: Promise<{
27
+ } | undefined, __VLS_expose?: ((exposed: import('vue').ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
36
28
  props: {
37
29
  items: T[];
38
30
  buttons?: RowButton<T>[] | undefined;
39
31
  columns: TableColumn<C>[];
40
32
  overflowCells?: boolean | undefined;
41
33
  onRowClick?: ((item: T) => void) | undefined;
42
- };
43
- expose(exposed: {}): void;
34
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
35
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
44
36
  attrs: any;
45
37
  slots: Partial<Record<NonNullable<C>, (_: {
46
38
  item: T;
@@ -56,8 +48,8 @@ declare const _default: <T extends {
56
48
  columns: TableColumn<C>[];
57
49
  overflowCells?: boolean | undefined;
58
50
  onRowClick?: ((item: T) => void) | undefined;
59
- };
60
- expose(exposed: {}): void;
51
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
52
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
61
53
  attrs: any;
62
54
  slots: Partial<Record<NonNullable<C>, (_: {
63
55
  item: T;
@@ -1,20 +1,23 @@
1
- import { LayoutTabItem } from '../../helpers/layout/components';
2
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
3
- items: {
4
- type: import("vue").PropType<LayoutTabItem<any>[]>;
5
- required: true;
6
- };
7
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
8
- items: {
9
- type: import("vue").PropType<LayoutTabItem<any>[]>;
10
- required: true;
11
- };
12
- }>>, {}, {}>, {
1
+ import type { LayoutTabItem } from '../../helpers/layout/components';
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
+ items: LayoutTabItem<any>[];
4
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
5
+ items: LayoutTabItem<any>[];
6
+ }>>>, {}, {}>, {
13
7
  default?(_: {
14
8
  activeItem: LayoutTabItem<any>;
15
9
  }): any;
16
10
  }>;
17
11
  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
+ };
18
21
  type __VLS_WithTemplateSlots<T, S> = T & {
19
22
  new (): {
20
23
  $slots: S;
@@ -1,49 +1,28 @@
1
- import { AvatarUser, UserAvatarSize } from '../../composables/user/avatar';
2
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
3
- size: {
4
- type: import("vue").PropType<UserAvatarSize>;
5
- default: string;
6
- };
7
- active: {
8
- type: import("vue").PropType<boolean>;
9
- };
10
- user: {
11
- type: import("vue").PropType<AvatarUser | null>;
12
- default: null;
13
- };
14
- hoverEffect: {
15
- type: import("vue").PropType<boolean>;
16
- default: boolean;
17
- };
18
- noBorder: {
19
- type: import("vue").PropType<boolean>;
20
- };
21
- noBg: {
22
- type: import("vue").PropType<boolean>;
23
- };
24
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
25
- size: {
26
- type: import("vue").PropType<UserAvatarSize>;
27
- default: string;
28
- };
29
- active: {
30
- type: import("vue").PropType<boolean>;
31
- };
32
- user: {
33
- type: import("vue").PropType<AvatarUser | null>;
34
- default: null;
35
- };
36
- hoverEffect: {
37
- type: import("vue").PropType<boolean>;
38
- default: boolean;
39
- };
40
- noBorder: {
41
- type: import("vue").PropType<boolean>;
42
- };
43
- noBg: {
44
- type: import("vue").PropType<boolean>;
45
- };
46
- }>>, {
1
+ import type { MaybeNullOrUndefined } from '@speckle/shared';
2
+ import type { AvatarUser, UserAvatarSize } from '../../composables/user/avatar';
3
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
4
+ user?: MaybeNullOrUndefined<AvatarUser>;
5
+ size?: UserAvatarSize | undefined;
6
+ hoverEffect?: boolean | undefined;
7
+ active?: boolean | undefined;
8
+ noBorder?: boolean | undefined;
9
+ noBg?: boolean | undefined;
10
+ }>, {
11
+ size: string;
12
+ hoverEffect: boolean;
13
+ user: null;
14
+ }>, {}, 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<{
15
+ user?: MaybeNullOrUndefined<AvatarUser>;
16
+ size?: UserAvatarSize | undefined;
17
+ hoverEffect?: boolean | undefined;
18
+ active?: boolean | undefined;
19
+ noBorder?: boolean | undefined;
20
+ noBg?: boolean | undefined;
21
+ }>, {
22
+ size: string;
23
+ hoverEffect: boolean;
24
+ user: null;
25
+ }>>>, {
47
26
  size: UserAvatarSize;
48
27
  user: AvatarUser | null;
49
28
  hoverEffect: boolean;
@@ -52,6 +31,23 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
52
31
  "absolute-anchor"?(_: {}): any;
53
32
  }>;
54
33
  export default _default;
34
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
35
+ type __VLS_TypePropsToRuntimeProps<T> = {
36
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
37
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
38
+ } : {
39
+ type: import('vue').PropType<T[K]>;
40
+ required: true;
41
+ };
42
+ };
43
+ type __VLS_WithDefaults<P, D> = {
44
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
45
+ default: D[K];
46
+ }> : P[K];
47
+ };
48
+ type __VLS_Prettify<T> = {
49
+ [K in keyof T]: T[K];
50
+ } & {};
55
51
  type __VLS_WithTemplateSlots<T, S> = T & {
56
52
  new (): {
57
53
  $slots: S;
@@ -1,5 +1,5 @@
1
- import { MaybeNullOrUndefined } from '@speckle/shared';
2
- import { UserAvatarSize } from '../../composables/user/avatar';
1
+ import type { MaybeNullOrUndefined } from '@speckle/shared';
2
+ import type { UserAvatarSize } from '../../composables/user/avatar';
3
3
  type ModelType = MaybeNullOrUndefined<string>;
4
4
  declare const _default: import("vue").DefineComponent<{
5
5
  editMode: import("vue").PropType<boolean>;
@@ -1,32 +1,27 @@
1
- import { Nullable } from '@speckle/shared';
2
- import { AvatarUser, UserAvatarSize } from '../../composables/user/avatar';
3
- declare const _default: import("vue").DefineComponent<{
4
- user: {
5
- type: import("vue").PropType<AvatarUser>;
6
- required: true;
7
- };
8
- disabled: {
9
- type: import("vue").PropType<boolean>;
10
- };
11
- size: {
12
- type: import("vue").PropType<UserAvatarSize>;
13
- };
14
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
1
+ import type { Nullable } from '@speckle/shared';
2
+ import type { AvatarUser, UserAvatarSize } from '../../composables/user/avatar';
3
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
4
+ user: AvatarUser;
5
+ disabled?: boolean | undefined;
6
+ size?: UserAvatarSize | undefined;
7
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
8
  cancel: () => void;
16
9
  save: (val: Nullable<string>) => void;
17
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
18
- user: {
19
- type: import("vue").PropType<AvatarUser>;
20
- required: true;
21
- };
22
- disabled: {
23
- type: import("vue").PropType<boolean>;
24
- };
25
- size: {
26
- type: import("vue").PropType<UserAvatarSize>;
27
- };
28
- }>> & {
10
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
11
+ user: AvatarUser;
12
+ disabled?: boolean | undefined;
13
+ size?: UserAvatarSize | undefined;
14
+ }>>> & {
29
15
  onCancel?: (() => any) | undefined;
30
16
  onSave?: ((val: Nullable<string>) => any) | undefined;
31
17
  }, {}, {}>;
32
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
+ };
@@ -1,44 +1,45 @@
1
- import { UserAvatarSize, AvatarUserWithId } from '../../composables/user/avatar';
2
- declare const _default: import("vue").DefineComponent<{
3
- size: {
4
- type: import("vue").PropType<UserAvatarSize>;
5
- default: string;
6
- };
7
- users: {
8
- type: import("vue").PropType<AvatarUserWithId[]>;
9
- required: true;
10
- default: () => never[];
11
- };
12
- overlap: {
13
- type: import("vue").PropType<boolean>;
14
- default: boolean;
15
- };
16
- maxCount: {
17
- type: import("vue").PropType<number>;
18
- default: undefined;
19
- };
20
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
21
- size: {
22
- type: import("vue").PropType<UserAvatarSize>;
23
- default: string;
24
- };
25
- users: {
26
- type: import("vue").PropType<AvatarUserWithId[]>;
27
- required: true;
28
- default: () => never[];
29
- };
30
- overlap: {
31
- type: import("vue").PropType<boolean>;
32
- default: boolean;
33
- };
34
- maxCount: {
35
- type: import("vue").PropType<number>;
36
- default: undefined;
37
- };
38
- }>>, {
1
+ import type { UserAvatarSize, AvatarUserWithId } from '../../composables/user/avatar';
2
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
+ users: AvatarUserWithId[];
4
+ overlap?: boolean | undefined;
5
+ size?: UserAvatarSize | undefined;
6
+ maxCount?: number | undefined;
7
+ }>, {
8
+ users: () => never[];
9
+ overlap: boolean;
10
+ size: string;
11
+ maxCount: undefined;
12
+ }>, {}, 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<{
13
+ users: AvatarUserWithId[];
14
+ overlap?: boolean | undefined;
15
+ size?: UserAvatarSize | undefined;
16
+ maxCount?: number | undefined;
17
+ }>, {
18
+ users: () => never[];
19
+ overlap: boolean;
20
+ size: string;
21
+ maxCount: undefined;
22
+ }>>>, {
39
23
  size: UserAvatarSize;
40
24
  users: AvatarUserWithId[];
41
25
  overlap: boolean;
42
26
  maxCount: number;
43
27
  }, {}>;
44
28
  export default _default;
29
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
30
+ type __VLS_TypePropsToRuntimeProps<T> = {
31
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
32
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
33
+ } : {
34
+ type: import('vue').PropType<T[K]>;
35
+ required: true;
36
+ };
37
+ };
38
+ type __VLS_WithDefaults<P, D> = {
39
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
40
+ default: D[K];
41
+ }> : P[K];
42
+ };
43
+ type __VLS_Prettify<T> = {
44
+ [K in keyof T]: T[K];
45
+ } & {};
@@ -1,6 +1,6 @@
1
- import { MaybeAsync } from '@speckle/shared';
2
- import { AsyncComputedOptions } from '@vueuse/core';
3
- import { ComputedRef } from 'vue';
1
+ import type { MaybeAsync } from '@speckle/shared';
2
+ import type { AsyncComputedOptions } from '@vueuse/core';
3
+ import type { ComputedRef } from 'vue';
4
4
  export interface AsyncWritableComputedOptions<T> {
5
5
  get: (...args: any[]) => MaybeAsync<T>;
6
6
  set: (value: T) => MaybeAsync<void>;
@@ -1,5 +1,5 @@
1
- import { ToRefs } from 'vue';
2
- import { HorizontalOrVertical, StepCoreType } from '../../helpers/common/components';
1
+ import type { ToRefs } from 'vue';
2
+ import type { HorizontalOrVertical, StepCoreType } from '../../helpers/common/components';
3
3
  import { TailwindBreakpoints } from '../../helpers/tailwind';
4
4
  export type StepsPadding = 'base' | 'xs' | 'sm';
5
5
  export declare function useStepsInternals(params: {
@@ -1,5 +1,5 @@
1
- import { Nullable } from '@speckle/shared';
2
- import { MaybeRef } from '@vueuse/core';
1
+ import type { Nullable } from '@speckle/shared';
2
+ import type { MaybeRef } from '@vueuse/core';
3
3
  export declare enum ThrottleOrDebounce {
4
4
  Throttle = 0,
5
5
  Debounce = 1
@@ -1,6 +1,6 @@
1
- import { MaybeRef } from '@vueuse/core';
2
- import { MaybeNullOrUndefined, Nullable, Optional } from '@speckle/shared';
3
- import { CSSProperties } from 'vue';
1
+ import type { MaybeRef } from '@vueuse/core';
2
+ import type { MaybeNullOrUndefined, Nullable, Optional } from '@speckle/shared';
3
+ import type { CSSProperties } from 'vue';
4
4
  /**
5
5
  * A file, as emitted out from FileUploadZone
6
6
  */
@@ -1,6 +1,6 @@
1
1
  import { onKeyDown } from '@vueuse/core';
2
2
  import { ModifierKeys } from '../../helpers/form/input';
3
- import { Ref } from 'vue';
3
+ import type { Ref } from 'vue';
4
4
  /**
5
5
  * onKeyDown wrapper that also checks for modifier keys being pressed
6
6
  */
@@ -1,5 +1,5 @@
1
- import { Ref, ToRefs } from 'vue';
2
- import { Nullable } from '@speckle/shared';
1
+ import type { Ref, ToRefs } from 'vue';
2
+ import type { Nullable } from '@speckle/shared';
3
3
  type GenericSelectValueType<T> = T | T[] | undefined;
4
4
  /**
5
5
  * Common setup for FormSelectBase wrapping selector components
@@ -1,6 +1,6 @@
1
- import { RuleExpression } from 'vee-validate';
2
- import { Ref, ToRefs } from 'vue';
3
- import { Nullable } from '@speckle/shared';
1
+ import type { RuleExpression } from 'vee-validate';
2
+ import type { Ref, ToRefs } from 'vue';
3
+ import type { Nullable } from '@speckle/shared';
4
4
  export type InputColor = 'page' | 'foundation' | 'transparent';
5
5
  /**
6
6
  * Common setup for text input & textarea fields
@@ -1,5 +1,5 @@
1
- import { Nullable } from '@speckle/shared';
2
- import { Ref, ComputedRef } from 'vue';
1
+ import type { Nullable } from '@speckle/shared';
2
+ import type { Ref, ComputedRef } from 'vue';
3
3
  /**
4
4
  * Use this to calculate the number of hidden elements (e.g. user avatars) in a wrapping flex row that
5
5
  * is styled to only show the first row. For example, there are 12 users total, there's only space for 5,
@@ -1,4 +1,4 @@
1
- import { ToRefs } from 'vue';
1
+ import type { ToRefs } from 'vue';
2
2
  export type AvatarUser = {
3
3
  name: string;
4
4
  avatar?: string | null;
@@ -1,5 +1,5 @@
1
- import { ConcreteComponent } from 'vue';
2
- export type PropComponentType = ConcreteComponent<any, any, any, any, any>;
1
+ import type { ConcreteComponent, FunctionalComponent } from 'vue';
2
+ export type PropAnyComponent = ConcreteComponent<any, any, any, any, any> | FunctionalComponent<any, any, any>;
3
3
  export type HorizontalOrVertical = 'horizontal' | 'vertical';
4
4
  export interface StepCoreType {
5
5
  name: string;
@@ -1,4 +1,4 @@
1
- import { GenericValidateFunction } from 'vee-validate';
1
+ import type { GenericValidateFunction } from 'vee-validate';
2
2
  export declare const VALID_HTTP_URL: RegExp;
3
3
  export declare const VALID_EMAIL: RegExp;
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { Nullable } from '@speckle/shared';
1
+ import type { Nullable } from '@speckle/shared';
2
2
  import { BaseError } from '../../helpers/common/error';
3
3
  export type FileTypeSpecifier = UniqueFileTypeSpecifier | `.${string}`;
4
4
  export declare enum UniqueFileTypeSpecifier {