@citruslime/ui 3.1.0-beta.8 → 4.0.0-beta.0

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.
@@ -8,6 +8,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
8
8
  disabled: boolean;
9
9
  }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
10
  "files-uploaded": (files: File[]) => void;
11
+ "invalid-files": (files: File[]) => void;
11
12
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
12
13
  uploaderType: "dragDrop" | "classic";
13
14
  acceptedFileTypes: string;
@@ -18,13 +19,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
18
19
  disabled: boolean;
19
20
  }>>> & Readonly<{
20
21
  "onFiles-uploaded"?: ((files: File[]) => any) | undefined;
22
+ "onInvalid-files"?: ((files: File[]) => any) | undefined;
21
23
  }>, {
22
24
  disabled: boolean;
23
25
  allowMultipleFiles: boolean;
24
26
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<{
25
27
  default(): any;
28
+ 'invalid-files': any;
26
29
  }> & {
27
30
  default(): any;
31
+ 'invalid-files': any;
28
32
  }>;
29
33
  export default _default;
30
34
  type __VLS_WithDefaults<P, D> = {
@@ -1,9 +1,10 @@
1
- import type { FilterResponse, FilterRequest } from '../types';
1
+ import type { FilterResponse, FilterRequest, GridConfig } from '../types';
2
2
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
3
3
  request: FilterRequest;
4
4
  loading: boolean;
5
5
  initialLoad: boolean;
6
6
  showUnsavedChangesWarning: boolean;
7
+ options: GridConfig;
7
8
  data?: FilterResponse<unknown> | null | undefined;
8
9
  }>, {
9
10
  data: null;
@@ -14,6 +15,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
14
15
  loading: boolean;
15
16
  initialLoad: boolean;
16
17
  showUnsavedChangesWarning: boolean;
18
+ options: GridConfig;
17
19
  data?: FilterResponse<unknown> | null | undefined;
18
20
  }>, {
19
21
  data: null;
@@ -0,0 +1,10 @@
1
+ import type { SelectItem } from '../../select/types';
2
+ export type SelectItemWithValue = SelectItem & {
3
+ value: string;
4
+ };
5
+ export declare const defaultEmptyListValue: {
6
+ readonly id: -1;
7
+ readonly name: "";
8
+ readonly value: "";
9
+ };
10
+ export declare const booleanListEntries: import("vue").ComputedRef<SelectItemWithValue[]>;
@@ -11,6 +11,7 @@ export interface GridConfig {
11
11
  hideGridMobileView: boolean;
12
12
  forceEditMode: boolean;
13
13
  textSize: 'x-small' | 'small' | 'medium' | 'large';
14
+ hidePageSizeOptions: boolean;
14
15
  }
15
16
  export declare const gridColumnTypes: readonly ["string", "boolean", "number", "date", "datetime", "dateRange", "list", "slot"];
16
17
  export type GridColumnType = typeof gridColumnTypes[number];
@@ -1,5 +1,5 @@
1
1
  import type { FilterResponse } from '../../grid/types';
2
- import type { GridLiteRequest } from '../types';
2
+ import type { GridLiteConfig, GridLiteRequest } from '../types';
3
3
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
4
  request: {
5
5
  required: true;
@@ -9,6 +9,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
9
9
  type: import("vue").PropType<FilterResponse<unknown> | null>;
10
10
  default: null;
11
11
  };
12
+ options: {
13
+ type: import("vue").PropType<GridLiteConfig>;
14
+ required: true;
15
+ };
12
16
  initialLoad: {
13
17
  type: import("vue").PropType<boolean>;
14
18
  required: true;
@@ -17,10 +21,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
17
21
  type: import("vue").PropType<string>;
18
22
  required: true;
19
23
  };
20
- isSmallGrid: {
21
- type: import("vue").PropType<boolean>;
22
- default: boolean;
23
- };
24
24
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
25
25
  "update:request": (request: GridLiteRequest<Record<string, unknown>>) => void;
26
26
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
@@ -32,6 +32,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
32
32
  type: import("vue").PropType<FilterResponse<unknown> | null>;
33
33
  default: null;
34
34
  };
35
+ options: {
36
+ type: import("vue").PropType<GridLiteConfig>;
37
+ required: true;
38
+ };
35
39
  initialLoad: {
36
40
  type: import("vue").PropType<boolean>;
37
41
  required: true;
@@ -40,14 +44,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
40
44
  type: import("vue").PropType<string>;
41
45
  required: true;
42
46
  };
43
- isSmallGrid: {
44
- type: import("vue").PropType<boolean>;
45
- default: boolean;
46
- };
47
47
  }>> & Readonly<{
48
48
  "onUpdate:request"?: ((request: GridLiteRequest<Record<string, unknown>>) => any) | undefined;
49
49
  }>, {
50
50
  data: FilterResponse<unknown> | null;
51
- isSmallGrid: boolean;
52
51
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
53
52
  export default _default;
@@ -9,6 +9,7 @@ export interface GridLiteConfig {
9
9
  showPagination: boolean;
10
10
  alternatingRows: boolean;
11
11
  smallGridText: boolean;
12
+ showPageSizeOptions: boolean;
12
13
  }
13
14
  export interface GridLiteColumn<T = Record<string, unknown>> {
14
15
  name: string;
@@ -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
+ list: T[];
8
9
  canClear?: boolean | undefined;
9
10
  isGridFilter?: boolean | undefined;
10
11
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
@@ -12,20 +13,36 @@ declare const _default: <T extends string | number | boolean | SelectItem>(__VLS
12
13
  slots: Readonly<{
13
14
  default(props: {
14
15
  select: (value: T) => void;
16
+ highlightIndex: number;
17
+ index: number;
18
+ option: T;
15
19
  }): any;
16
20
  input(props: {
21
+ selectHighlightedElement: () => void;
17
22
  selectModalVisible: boolean;
18
23
  toggleSelectModalState: (forcedState?: boolean) => void;
24
+ moveHighlightBackwards: () => void;
25
+ moveHighlightForwards: () => void;
26
+ moveHighlightToStart: () => void;
27
+ moveHighlightToEnd: () => void;
19
28
  }): any;
20
29
  label(): any;
21
30
  'help-text'(): any;
22
31
  }> & {
23
32
  default(props: {
24
33
  select: (value: T) => void;
34
+ highlightIndex: number;
35
+ index: number;
36
+ option: T;
25
37
  }): any;
26
38
  input(props: {
39
+ selectHighlightedElement: () => void;
27
40
  selectModalVisible: boolean;
28
41
  toggleSelectModalState: (forcedState?: boolean) => void;
42
+ moveHighlightBackwards: () => void;
43
+ moveHighlightForwards: () => void;
44
+ moveHighlightToStart: () => void;
45
+ moveHighlightToEnd: () => void;
29
46
  }): any;
30
47
  label(): any;
31
48
  'help-text'(): any;
@@ -38,6 +55,7 @@ declare const _default: <T extends string | number | boolean | SelectItem>(__VLS
38
55
  errors?: string[] | null | undefined;
39
56
  placeholder?: string | null | undefined;
40
57
  modelValue: T | T[] | null | undefined;
58
+ list: T[];
41
59
  canClear?: boolean | undefined;
42
60
  isGridFilter?: boolean | undefined;
43
61
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
@@ -46,20 +64,36 @@ declare const _default: <T extends string | number | boolean | SelectItem>(__VLS
46
64
  slots: Readonly<{
47
65
  default(props: {
48
66
  select: (value: T) => void;
67
+ highlightIndex: number;
68
+ index: number;
69
+ option: T;
49
70
  }): any;
50
71
  input(props: {
72
+ selectHighlightedElement: () => void;
51
73
  selectModalVisible: boolean;
52
74
  toggleSelectModalState: (forcedState?: boolean) => void;
75
+ moveHighlightBackwards: () => void;
76
+ moveHighlightForwards: () => void;
77
+ moveHighlightToStart: () => void;
78
+ moveHighlightToEnd: () => void;
53
79
  }): any;
54
80
  label(): any;
55
81
  'help-text'(): any;
56
82
  }> & {
57
83
  default(props: {
58
84
  select: (value: T) => void;
85
+ highlightIndex: number;
86
+ index: number;
87
+ option: T;
59
88
  }): any;
60
89
  input(props: {
90
+ selectHighlightedElement: () => void;
61
91
  selectModalVisible: boolean;
62
92
  toggleSelectModalState: (forcedState?: boolean) => void;
93
+ moveHighlightBackwards: () => void;
94
+ moveHighlightForwards: () => void;
95
+ moveHighlightToStart: () => void;
96
+ moveHighlightToEnd: () => void;
63
97
  }): any;
64
98
  label(): any;
65
99
  'help-text'(): any;
@@ -75,6 +109,7 @@ declare const _default: <T extends string | number | boolean | SelectItem>(__VLS
75
109
  errors?: string[] | null | undefined;
76
110
  placeholder?: string | null | undefined;
77
111
  modelValue: T | T[] | null | undefined;
112
+ list: T[];
78
113
  canClear?: boolean | undefined;
79
114
  isGridFilter?: boolean | undefined;
80
115
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
@@ -83,20 +118,36 @@ declare const _default: <T extends string | number | boolean | SelectItem>(__VLS
83
118
  slots: Readonly<{
84
119
  default(props: {
85
120
  select: (value: T) => void;
121
+ highlightIndex: number;
122
+ index: number;
123
+ option: T;
86
124
  }): any;
87
125
  input(props: {
126
+ selectHighlightedElement: () => void;
88
127
  selectModalVisible: boolean;
89
128
  toggleSelectModalState: (forcedState?: boolean) => void;
129
+ moveHighlightBackwards: () => void;
130
+ moveHighlightForwards: () => void;
131
+ moveHighlightToStart: () => void;
132
+ moveHighlightToEnd: () => void;
90
133
  }): any;
91
134
  label(): any;
92
135
  'help-text'(): any;
93
136
  }> & {
94
137
  default(props: {
95
138
  select: (value: T) => void;
139
+ highlightIndex: number;
140
+ index: number;
141
+ option: T;
96
142
  }): any;
97
143
  input(props: {
144
+ selectHighlightedElement: () => void;
98
145
  selectModalVisible: boolean;
99
146
  toggleSelectModalState: (forcedState?: boolean) => void;
147
+ moveHighlightBackwards: () => void;
148
+ moveHighlightForwards: () => void;
149
+ moveHighlightToStart: () => void;
150
+ moveHighlightToEnd: () => void;
100
151
  }): any;
101
152
  label(): any;
102
153
  'help-text'(): any;
@@ -1,3 +1,4 @@
1
1
  export { default as clUiSelect } from './cl-ui-select.vue';
2
2
  export { default as clUiSelectOption } from './select-options/cl-ui-select-option.vue';
3
3
  export { default as clUISlectInput } from './select-input/cl-ui-select-input.vue';
4
+ export type * from './types';
@@ -1,21 +1,26 @@
1
1
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
2
2
  isSelected?: boolean | undefined;
3
+ isHighlighted?: boolean | undefined;
3
4
  disabled?: boolean | undefined;
4
5
  }>, {
5
6
  isSelected: boolean;
7
+ isHighlighted: boolean;
6
8
  disabled: boolean;
7
9
  }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
10
  select: () => void;
9
11
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
10
12
  isSelected?: boolean | undefined;
13
+ isHighlighted?: boolean | undefined;
11
14
  disabled?: boolean | undefined;
12
15
  }>, {
13
16
  isSelected: boolean;
17
+ isHighlighted: boolean;
14
18
  disabled: boolean;
15
19
  }>>> & Readonly<{
16
20
  onSelect?: (() => any) | undefined;
17
21
  }>, {
18
22
  disabled: boolean;
23
+ isHighlighted: boolean;
19
24
  isSelected: boolean;
20
25
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<{
21
26
  default: any;