@speckle/ui-components 2.20.4 → 2.20.6

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