@citruslime/ui 4.0.0-beta.2 → 4.0.0-beta.21

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.
@@ -16,6 +16,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
16
16
  placeholderText?: string | null | undefined;
17
17
  searchHint?: string | null | undefined;
18
18
  skipObjectCreationModal?: boolean | undefined;
19
+ openDropDownOnFocus?: boolean | undefined;
19
20
  }>, {
20
21
  loading: boolean;
21
22
  disabled: boolean;
@@ -31,8 +32,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
31
32
  placeholderText: null;
32
33
  searchHint: null;
33
34
  skipObjectCreationModal: boolean;
35
+ openDropDownOnFocus: boolean;
34
36
  }>>, {
35
- focus(): void;
37
+ focus: () => void | undefined;
36
38
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
37
39
  focus: () => void;
38
40
  search: (args_0: string) => void;
@@ -57,6 +59,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
57
59
  placeholderText?: string | null | undefined;
58
60
  searchHint?: string | null | undefined;
59
61
  skipObjectCreationModal?: boolean | undefined;
62
+ openDropDownOnFocus?: boolean | undefined;
60
63
  }>, {
61
64
  loading: boolean;
62
65
  disabled: boolean;
@@ -72,6 +75,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
72
75
  placeholderText: null;
73
76
  searchHint: null;
74
77
  skipObjectCreationModal: boolean;
78
+ openDropDownOnFocus: boolean;
75
79
  }>>> & Readonly<{
76
80
  onFocus?: (() => any) | undefined;
77
81
  onSearch?: ((args_0: string) => any) | undefined;
@@ -94,6 +98,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
94
98
  parentResults: ComboBoxItem[];
95
99
  placeholderText: string | null;
96
100
  skipObjectCreationModal: boolean;
101
+ openDropDownOnFocus: boolean;
97
102
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
98
103
  export default _default;
99
104
  type __VLS_WithDefaults<P, D> = {
@@ -24,9 +24,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
24
24
  "row-edit-cancelled": (args_0: GridUpdateModel) => void;
25
25
  "update:request": (args_0: FilterRequest<Record<string, unknown>>) => void;
26
26
  "update:columns": (args_0: GridColumn<Record<string, unknown>>[]) => void;
27
+ "view-manager-visible": (args_0: boolean) => void;
27
28
  "data-request": () => void;
28
29
  "edit-start": () => void;
29
30
  "edit-end": () => void;
31
+ "clear-filters-clicked": () => void;
30
32
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
31
33
  columns: GridColumn<Record<string, unknown>>[];
32
34
  request: FilterRequest<Record<string, unknown>>;
@@ -49,9 +51,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
49
51
  "onRow-edit-cancelled"?: ((args_0: GridUpdateModel) => any) | undefined;
50
52
  "onUpdate:request"?: ((args_0: FilterRequest<Record<string, unknown>>) => any) | undefined;
51
53
  "onUpdate:columns"?: ((args_0: GridColumn<Record<string, unknown>>[]) => any) | undefined;
54
+ "onView-manager-visible"?: ((args_0: boolean) => any) | undefined;
52
55
  "onData-request"?: (() => any) | undefined;
53
56
  "onEdit-start"?: (() => any) | undefined;
54
57
  "onEdit-end"?: (() => any) | undefined;
58
+ "onClear-filters-clicked"?: (() => any) | undefined;
55
59
  }>, {
56
60
  data: FilterResponse<unknown> | null;
57
61
  dateFormatLocale: string | null;
@@ -23,6 +23,7 @@ export interface GridColumn<T = Record<string, unknown>> {
23
23
  name: string;
24
24
  field?: keyof (T);
25
25
  caption: string;
26
+ viewManagerCaption?: string;
26
27
  type: GridColumnType;
27
28
  slotType?: Exclude<GridColumnType, 'slot'>;
28
29
  listType?: Exclude<GridColumnType, 'list' | 'slot' | 'date' | 'datetime' | 'dateRange' | 'boolean'>;
@@ -37,6 +38,7 @@ export interface GridColumn<T = Record<string, unknown>> {
37
38
  width?: number;
38
39
  searchable?: boolean;
39
40
  precision?: number;
41
+ hideFromViewManager?: boolean;
40
42
  }
41
43
  export interface FilterMethod {
42
44
  method: FilterMethodType;
@@ -4,11 +4,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
4
4
  loading: boolean;
5
5
  }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
6
  "update:columns": (args_0: GridColumn<Record<string, unknown>>[]) => void;
7
+ "view-manager-visible": (args_0: boolean) => void;
7
8
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
8
9
  columns: GridColumn[];
9
10
  loading: boolean;
10
11
  }>>> & Readonly<{
11
12
  "onUpdate:columns"?: ((args_0: GridColumn<Record<string, unknown>>[]) => any) | undefined;
13
+ "onView-manager-visible"?: ((args_0: boolean) => any) | undefined;
12
14
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
13
15
  export default _default;
14
16
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -25,6 +25,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
25
25
  type: import("vue").PropType<string | null>;
26
26
  default: null;
27
27
  };
28
+ selectOnFocus: {
29
+ type: import("vue").PropType<boolean>;
30
+ default: boolean;
31
+ };
28
32
  locale: {
29
33
  type: import("vue").PropType<string | null>;
30
34
  default: null;
@@ -53,9 +57,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
53
57
  type: import("vue").PropType<boolean>;
54
58
  default: boolean;
55
59
  };
60
+ allowKeyboardArrowKeyInput: {
61
+ type: import("vue").PropType<boolean>;
62
+ default: boolean;
63
+ };
56
64
  }>, {
57
65
  focus: () => void | undefined;
58
66
  blur: () => void | undefined;
67
+ select: () => void;
59
68
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
60
69
  "update:modelValue": (modelValue: number | null) => void;
61
70
  blur: () => void;
@@ -85,6 +94,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
85
94
  type: import("vue").PropType<string | null>;
86
95
  default: null;
87
96
  };
97
+ selectOnFocus: {
98
+ type: import("vue").PropType<boolean>;
99
+ default: boolean;
100
+ };
88
101
  locale: {
89
102
  type: import("vue").PropType<string | null>;
90
103
  default: null;
@@ -113,6 +126,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
113
126
  type: import("vue").PropType<boolean>;
114
127
  default: boolean;
115
128
  };
129
+ allowKeyboardArrowKeyInput: {
130
+ type: import("vue").PropType<boolean>;
131
+ default: boolean;
132
+ };
116
133
  }>> & Readonly<{
117
134
  onBlur?: (() => any) | undefined;
118
135
  onFocus?: (() => any) | undefined;
@@ -123,6 +140,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
123
140
  required: boolean;
124
141
  errors: string[] | null;
125
142
  placeholder: string | null;
143
+ selectOnFocus: boolean;
126
144
  locale: string | null;
127
145
  currency: string | null;
128
146
  format: ExtendedNumberFormat;
@@ -130,6 +148,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
130
148
  min: number | null;
131
149
  showArrows: boolean;
132
150
  allowEmpty: boolean;
151
+ allowKeyboardArrowKeyInput: boolean;
133
152
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<{
134
153
  default: [];
135
154
  'help-text': [];
@@ -27,9 +27,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
27
27
  type: import("vue").PropType<string | null>;
28
28
  default: null;
29
29
  };
30
+ selectOnFocus: {
31
+ type: import("vue").PropType<boolean>;
32
+ default: boolean;
33
+ };
30
34
  }>, {
31
35
  focus: () => void | undefined;
32
36
  blur: () => void | undefined;
37
+ select: () => void | undefined;
33
38
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
34
39
  "update:modelValue": (modelValue: string) => void;
35
40
  blur: () => void;
@@ -64,6 +69,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
64
69
  type: import("vue").PropType<string | null>;
65
70
  default: null;
66
71
  };
72
+ selectOnFocus: {
73
+ type: import("vue").PropType<boolean>;
74
+ default: boolean;
75
+ };
67
76
  }>> & Readonly<{
68
77
  onBlur?: (() => any) | undefined;
69
78
  onFocus?: (() => any) | undefined;
@@ -76,6 +85,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
76
85
  errors: string[] | null;
77
86
  maxlength: number | null;
78
87
  placeholder: string | null;
88
+ selectOnFocus: boolean;
79
89
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<{
80
90
  default(): any;
81
91
  'help-text'(): any;
@@ -16,17 +16,21 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
16
16
  required: true;
17
17
  type: import("vue").PropType<boolean>;
18
18
  };
19
+ pinned: import("vue").PropType<boolean>;
19
20
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
20
21
  "update:open": (open: boolean) => void;
22
+ "update:pinned": (pinned: boolean) => void;
21
23
  "search-clicked": () => void;
22
24
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
23
25
  open: {
24
26
  required: true;
25
27
  type: import("vue").PropType<boolean>;
26
28
  };
29
+ pinned: import("vue").PropType<boolean>;
27
30
  }>> & Readonly<{
28
31
  "onSearch-clicked"?: (() => any) | undefined;
29
32
  "onUpdate:open"?: ((open: boolean) => any) | undefined;
33
+ "onUpdate:pinned"?: ((pinned: boolean) => any) | undefined;
30
34
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<{
31
35
  default(props: {
32
36
  toggleOpen: typeof toggleOpen;
@@ -111,7 +115,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
111
115
  default(): any;
112
116
  };
113
117
  });
114
- menuHeader: any;
115
118
  searchInput: any;
116
119
  footer(props: {
117
120
  toggleOpen: typeof toggleOpen;
@@ -201,7 +204,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
201
204
  default(): any;
202
205
  };
203
206
  });
204
- menuHeader: any;
205
207
  searchInput: any;
206
208
  footer(props: {
207
209
  toggleOpen: typeof toggleOpen;
@@ -5,6 +5,7 @@ declare const _default: <T extends string | number | boolean | SelectItem>(__VLS
5
5
  errors?: string[] | null | undefined;
6
6
  placeholder?: string | null | undefined;
7
7
  modelValue: T | T[] | null | undefined;
8
+ openDropDownOnFocus?: boolean | undefined;
8
9
  list: T[];
9
10
  canClear?: boolean | undefined;
10
11
  isGridFilter?: boolean | undefined;
@@ -19,13 +20,14 @@ declare const _default: <T extends string | number | boolean | SelectItem>(__VLS
19
20
  option: T;
20
21
  }): any;
21
22
  input(props: {
22
- selectHighlightedElement: () => void;
23
+ handleEnterPress: (event: Event) => void;
24
+ handleEscapePress: (event: Event) => void;
23
25
  selectModalVisible: boolean;
24
26
  toggleSelectModalState: (forcedState?: boolean) => void;
25
- moveHighlightBackwards: () => void;
26
- moveHighlightForwards: () => void;
27
- moveHighlightToStart: () => void;
28
- moveHighlightToEnd: () => void;
27
+ moveHighlightBackwards: (event: KeyboardEvent) => void;
28
+ moveHighlightForwards: (event: KeyboardEvent) => void;
29
+ moveHighlightToStart: (event: KeyboardEvent) => void;
30
+ moveHighlightToEnd: (event: KeyboardEvent) => void;
29
31
  }): any;
30
32
  label(): any;
31
33
  'help-text'(): any;
@@ -38,30 +40,36 @@ declare const _default: <T extends string | number | boolean | SelectItem>(__VLS
38
40
  option: T;
39
41
  }): any;
40
42
  input(props: {
41
- selectHighlightedElement: () => void;
43
+ handleEnterPress: (event: Event) => void;
44
+ handleEscapePress: (event: Event) => void;
42
45
  selectModalVisible: boolean;
43
46
  toggleSelectModalState: (forcedState?: boolean) => void;
44
- moveHighlightBackwards: () => void;
45
- moveHighlightForwards: () => void;
46
- moveHighlightToStart: () => void;
47
- moveHighlightToEnd: () => void;
47
+ moveHighlightBackwards: (event: KeyboardEvent) => void;
48
+ moveHighlightForwards: (event: KeyboardEvent) => void;
49
+ moveHighlightToStart: (event: KeyboardEvent) => void;
50
+ moveHighlightToEnd: (event: KeyboardEvent) => void;
48
51
  }): any;
49
52
  label(): any;
50
53
  'help-text'(): any;
51
54
  };
52
55
  emit: any;
53
- } | undefined, __VLS_expose?: ((exposed: import('vue').ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
56
+ } | undefined, __VLS_expose?: ((exposed: import("vue").ShallowUnwrapRef<{
57
+ focus(): void;
58
+ }>) => void) | undefined, __VLS_setup?: Promise<{
54
59
  props: {
55
60
  disabled?: boolean | undefined;
56
61
  required?: boolean | undefined;
57
62
  errors?: string[] | null | undefined;
58
63
  placeholder?: string | null | undefined;
59
64
  modelValue: T | T[] | null | undefined;
65
+ openDropDownOnFocus?: boolean | undefined;
60
66
  list: T[];
61
67
  canClear?: boolean | undefined;
62
68
  isGridFilter?: boolean | undefined;
63
69
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
64
- expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
70
+ expose(exposed: import("vue").ShallowUnwrapRef<{
71
+ focus(): void;
72
+ }>): void;
65
73
  attrs: any;
66
74
  slots: Readonly<{
67
75
  default(props: {
@@ -72,13 +80,14 @@ declare const _default: <T extends string | number | boolean | SelectItem>(__VLS
72
80
  option: T;
73
81
  }): any;
74
82
  input(props: {
75
- selectHighlightedElement: () => void;
83
+ handleEnterPress: (event: Event) => void;
84
+ handleEscapePress: (event: Event) => void;
76
85
  selectModalVisible: boolean;
77
86
  toggleSelectModalState: (forcedState?: boolean) => void;
78
- moveHighlightBackwards: () => void;
79
- moveHighlightForwards: () => void;
80
- moveHighlightToStart: () => void;
81
- moveHighlightToEnd: () => void;
87
+ moveHighlightBackwards: (event: KeyboardEvent) => void;
88
+ moveHighlightForwards: (event: KeyboardEvent) => void;
89
+ moveHighlightToStart: (event: KeyboardEvent) => void;
90
+ moveHighlightToEnd: (event: KeyboardEvent) => void;
82
91
  }): any;
83
92
  label(): any;
84
93
  'help-text'(): any;
@@ -91,13 +100,14 @@ declare const _default: <T extends string | number | boolean | SelectItem>(__VLS
91
100
  option: T;
92
101
  }): any;
93
102
  input(props: {
94
- selectHighlightedElement: () => void;
103
+ handleEnterPress: (event: Event) => void;
104
+ handleEscapePress: (event: Event) => void;
95
105
  selectModalVisible: boolean;
96
106
  toggleSelectModalState: (forcedState?: boolean) => void;
97
- moveHighlightBackwards: () => void;
98
- moveHighlightForwards: () => void;
99
- moveHighlightToStart: () => void;
100
- moveHighlightToEnd: () => void;
107
+ moveHighlightBackwards: (event: KeyboardEvent) => void;
108
+ moveHighlightForwards: (event: KeyboardEvent) => void;
109
+ moveHighlightToStart: (event: KeyboardEvent) => void;
110
+ moveHighlightToEnd: (event: KeyboardEvent) => void;
101
111
  }): any;
102
112
  label(): any;
103
113
  'help-text'(): any;
@@ -113,11 +123,14 @@ declare const _default: <T extends string | number | boolean | SelectItem>(__VLS
113
123
  errors?: string[] | null | undefined;
114
124
  placeholder?: string | null | undefined;
115
125
  modelValue: T | T[] | null | undefined;
126
+ openDropDownOnFocus?: boolean | undefined;
116
127
  list: T[];
117
128
  canClear?: boolean | undefined;
118
129
  isGridFilter?: boolean | undefined;
119
130
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
120
- expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
131
+ expose(exposed: import("vue").ShallowUnwrapRef<{
132
+ focus(): void;
133
+ }>): void;
121
134
  attrs: any;
122
135
  slots: Readonly<{
123
136
  default(props: {
@@ -128,13 +141,14 @@ declare const _default: <T extends string | number | boolean | SelectItem>(__VLS
128
141
  option: T;
129
142
  }): any;
130
143
  input(props: {
131
- selectHighlightedElement: () => void;
144
+ handleEnterPress: (event: Event) => void;
145
+ handleEscapePress: (event: Event) => void;
132
146
  selectModalVisible: boolean;
133
147
  toggleSelectModalState: (forcedState?: boolean) => void;
134
- moveHighlightBackwards: () => void;
135
- moveHighlightForwards: () => void;
136
- moveHighlightToStart: () => void;
137
- moveHighlightToEnd: () => void;
148
+ moveHighlightBackwards: (event: KeyboardEvent) => void;
149
+ moveHighlightForwards: (event: KeyboardEvent) => void;
150
+ moveHighlightToStart: (event: KeyboardEvent) => void;
151
+ moveHighlightToEnd: (event: KeyboardEvent) => void;
138
152
  }): any;
139
153
  label(): any;
140
154
  'help-text'(): any;
@@ -147,13 +161,14 @@ declare const _default: <T extends string | number | boolean | SelectItem>(__VLS
147
161
  option: T;
148
162
  }): any;
149
163
  input(props: {
150
- selectHighlightedElement: () => void;
164
+ handleEnterPress: (event: Event) => void;
165
+ handleEscapePress: (event: Event) => void;
151
166
  selectModalVisible: boolean;
152
167
  toggleSelectModalState: (forcedState?: boolean) => void;
153
- moveHighlightBackwards: () => void;
154
- moveHighlightForwards: () => void;
155
- moveHighlightToStart: () => void;
156
- moveHighlightToEnd: () => void;
168
+ moveHighlightBackwards: (event: KeyboardEvent) => void;
169
+ moveHighlightForwards: (event: KeyboardEvent) => void;
170
+ moveHighlightToStart: (event: KeyboardEvent) => void;
171
+ moveHighlightToEnd: (event: KeyboardEvent) => void;
157
172
  }): any;
158
173
  label(): any;
159
174
  'help-text'(): any;
@@ -8,10 +8,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
8
8
  colour?: "default" | "primary" | "secondary" | "danger" | "blue" | undefined;
9
9
  layout?: "horizontal" | "vertical" | undefined;
10
10
  overflowHidden?: boolean | undefined;
11
+ stickyHeader?: boolean | undefined;
11
12
  }>, {
12
13
  colour: string;
13
14
  layout: string;
14
15
  overflowHidden: boolean;
16
+ stickyHeader: boolean;
15
17
  }>>, {
16
18
  setTab: typeof setTab;
17
19
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -20,16 +22,19 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
20
22
  colour?: "default" | "primary" | "secondary" | "danger" | "blue" | undefined;
21
23
  layout?: "horizontal" | "vertical" | undefined;
22
24
  overflowHidden?: boolean | undefined;
25
+ stickyHeader?: boolean | undefined;
23
26
  }>, {
24
27
  colour: string;
25
28
  layout: string;
26
29
  overflowHidden: boolean;
30
+ stickyHeader: boolean;
27
31
  }>>> & Readonly<{
28
32
  "onTab-opened"?: ((args_0: number) => any) | undefined;
29
33
  }>, {
30
34
  colour: "default" | "primary" | "secondary" | "danger" | "blue";
31
35
  layout: "horizontal" | "vertical";
32
36
  overflowHidden: boolean;
37
+ stickyHeader: boolean;
33
38
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<{
34
39
  headings(props: {
35
40
  isTabOpen: (id: number) => boolean;