@speckle/ui-components 2.20.3 → 2.20.5

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.
@@ -4,16 +4,17 @@ export type TableColumn<I> = {
4
4
  header: string;
5
5
  classes: string;
6
6
  };
7
- export interface RowButton<T = unknown> {
7
+ export type RowButton<T = unknown> = {
8
8
  icon: PropAnyComponent;
9
9
  label: string;
10
- action: (item: T) => void | string;
10
+ action: (item: T) => unknown;
11
11
  class?: string;
12
- }
12
+ };
13
13
  declare const _default: <T extends {
14
14
  id: string;
15
15
  }, C extends string>(__VLS_props: {
16
- items: T[];
16
+ loading?: boolean | undefined;
17
+ items: T[] | null | undefined;
17
18
  buttons?: RowButton<T>[] | undefined;
18
19
  columns: TableColumn<C>[];
19
20
  overflowCells?: boolean | undefined;
@@ -30,7 +31,8 @@ declare const _default: <T extends {
30
31
  emit: any;
31
32
  } | undefined, __VLS_expose?: ((exposed: import('vue').ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
32
33
  props: {
33
- items: T[];
34
+ loading?: boolean | undefined;
35
+ items: T[] | null | undefined;
34
36
  buttons?: RowButton<T>[] | undefined;
35
37
  columns: TableColumn<C>[];
36
38
  overflowCells?: boolean | undefined;
@@ -51,7 +53,8 @@ declare const _default: <T extends {
51
53
  }> & {
52
54
  __ctx?: {
53
55
  props: {
54
- items: T[];
56
+ loading?: boolean | undefined;
57
+ items: T[] | null | undefined;
55
58
  buttons?: RowButton<T>[] | undefined;
56
59
  columns: TableColumn<C>[];
57
60
  overflowCells?: boolean | undefined;
@@ -93,9 +93,9 @@ export declare function useDebouncedTextInput(params?: {
93
93
  change: (val: FormInputChangeEvent | Event) => void;
94
94
  keydown: (e: KeyboardEvent) => void;
95
95
  };
96
- bind: {
97
- modelValue: import("vue").ComputedRef<string>;
98
- };
96
+ bind: import("vue").ComputedRef<{
97
+ modelValue: string;
98
+ }>;
99
99
  value: Ref<MaybeNullOrUndefined<string>>;
100
100
  };
101
101
  export {};