@citruslime/ui 2.4.1-beta.0 → 2.4.1-beta.1
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.
- package/dist/citrus-lime-ui.es.js +1533 -1506
- package/dist/citrus-lime-ui.umd.js +2 -2
- package/dist/components/grid/body/cl-ui-grid-cell.vue.d.ts +4 -2
- package/dist/components/grid/body/cl-ui-grid-row.vue.d.ts +2 -10
- package/dist/components/grid/body/types.d.ts +12 -0
- package/dist/components/grid/types.d.ts +7 -1
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ComboBoxItem } from '../../combo-box';
|
|
1
2
|
import type { InputValueType } from '../../input/types';
|
|
2
3
|
import type { GridColumn } from '../types';
|
|
3
4
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
@@ -18,12 +19,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
18
19
|
editMode: boolean;
|
|
19
20
|
}, {}>, Partial<Record<string, (_: {
|
|
20
21
|
cellFocused: () => void;
|
|
21
|
-
column: GridColumn<Record<string, unknown>>;
|
|
22
22
|
edited: boolean;
|
|
23
|
+
listEntries: ComboBoxItem[];
|
|
24
|
+
column: GridColumn<Record<string, unknown>>;
|
|
23
25
|
record: Record<string, InputValueType>;
|
|
24
26
|
}) => any>> & Partial<Record<string, (_: {
|
|
25
27
|
column: GridColumn<Record<string, unknown>>;
|
|
26
|
-
|
|
28
|
+
record: Record<string, unknown>;
|
|
27
29
|
}) => any>> & Partial<Record<string, (_: {
|
|
28
30
|
column: GridColumn<Record<string, unknown>>;
|
|
29
31
|
record: Record<string, unknown>;
|
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
import type { InputValueType } from '../../input/types';
|
|
2
1
|
import type { GridColumn } from '../types';
|
|
3
|
-
export interface SlotCellData {
|
|
4
|
-
column: GridColumn;
|
|
5
|
-
record: Record<string, InputValueType>;
|
|
6
|
-
}
|
|
7
|
-
export interface EditCellData extends SlotCellData {
|
|
8
|
-
cellFocused: () => void;
|
|
9
|
-
edited: boolean;
|
|
10
|
-
}
|
|
11
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
12
3
|
data: Record<string, unknown>;
|
|
13
4
|
columns: GridColumn<Record<string, unknown>>[];
|
|
@@ -27,8 +18,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
27
18
|
}, {}>, Partial<Record<NonNullable<string | number>, (_: {
|
|
28
19
|
cellFocused: () => void;
|
|
29
20
|
edited: boolean;
|
|
21
|
+
listEntries: import("../..").ComboBoxItem[];
|
|
30
22
|
column: GridColumn<Record<string, unknown>>;
|
|
31
|
-
record: Record<string, InputValueType>;
|
|
23
|
+
record: Record<string, import("../..").InputValueType>;
|
|
32
24
|
}) => any>>>;
|
|
33
25
|
export default _default;
|
|
34
26
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ComboBoxItem } from '../../combo-box';
|
|
2
|
+
import type { InputValueType } from '../../input';
|
|
3
|
+
import type { GridColumn } from '../types';
|
|
4
|
+
export interface SlotCellData {
|
|
5
|
+
column: GridColumn;
|
|
6
|
+
record: Record<string, InputValueType>;
|
|
7
|
+
}
|
|
8
|
+
export interface EditCellData extends SlotCellData {
|
|
9
|
+
cellFocused: () => void;
|
|
10
|
+
edited: boolean;
|
|
11
|
+
listEntries: ComboBoxItem[];
|
|
12
|
+
}
|
|
@@ -3,14 +3,20 @@ export interface GridConfig {
|
|
|
3
3
|
rowSelectionEnabled: boolean;
|
|
4
4
|
hideViewManager: boolean;
|
|
5
5
|
}
|
|
6
|
-
export declare const gridColumnTypes: readonly ["string", "boolean", "number", "date", "datetime", "slot"];
|
|
6
|
+
export declare const gridColumnTypes: readonly ["string", "boolean", "number", "date", "datetime", "list", "slot"];
|
|
7
7
|
export type GridColumnType = typeof gridColumnTypes[number];
|
|
8
|
+
export type GridColumnListEntry = {
|
|
9
|
+
value: string | number;
|
|
10
|
+
translationKey: string;
|
|
11
|
+
};
|
|
8
12
|
export interface GridColumn<T = Record<string, unknown>> {
|
|
9
13
|
name: string;
|
|
10
14
|
field?: keyof (T);
|
|
11
15
|
caption: string;
|
|
12
16
|
type: GridColumnType;
|
|
13
17
|
slotType?: Exclude<GridColumnType, 'slot'>;
|
|
18
|
+
listType?: Exclude<GridColumnType, 'list' | 'slot' | 'date' | 'datetime' | 'boolean'>;
|
|
19
|
+
listEntries?: GridColumnListEntry[];
|
|
14
20
|
format?: StringFormat | DateFormat | NumberFormat;
|
|
15
21
|
maxLength?: number;
|
|
16
22
|
visible?: boolean;
|