@citruslime/ui 2.5.1-beta.0 → 2.6.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.
- package/dist/citrus-lime-ui.es.js +2392 -1971
- package/dist/citrus-lime-ui.umd.js +2 -2
- package/dist/components/calendar/cl-ui-calendar-input.vue.d.ts +10 -8
- package/dist/components/calendar/cl-ui-calendar.vue.d.ts +17 -7
- package/dist/components/calendar/cl-ui-quick-dates-group.vue.d.ts +25 -0
- package/dist/components/calendar/cl-ui-quick-dates.vue.d.ts +36 -0
- package/dist/components/calendar/index.d.ts +1 -0
- package/dist/components/calendar/quick-dates.d.ts +12 -0
- package/dist/components/calendar/types.d.ts +1 -1
- package/dist/components/grid/body/cl-ui-grid-body.vue.d.ts +8 -8
- package/dist/components/grid/body/cl-ui-grid-row.vue.d.ts +8 -8
- package/dist/components/grid/cl-ui-grid.vue.d.ts +9 -0
- package/dist/components/grid/header/cl-ui-grid-filter.vue.d.ts +8 -0
- package/dist/components/grid/header/cl-ui-grid-header.vue.d.ts +8 -0
- package/dist/components/grid/types.d.ts +2 -2
- package/dist/components/index.d.ts +1 -0
- package/dist/components/input/cl-ui-input.vue.d.ts +57 -30
- package/dist/components/input/types.d.ts +6 -2
- package/dist/style.css +1 -1
- package/dist/utils/i18n/types.d.ts +15 -0
- package/dist/utils/validation.d.ts +2 -2
- package/package.json +1 -1
|
@@ -6,14 +6,12 @@ declare function focus(): void;
|
|
|
6
6
|
declare const _default: import("vue").DefineComponent<{
|
|
7
7
|
date: {
|
|
8
8
|
type: import("vue").PropType<string>;
|
|
9
|
-
required: true;
|
|
10
9
|
};
|
|
11
10
|
events: {
|
|
12
11
|
type: import("vue").PropType<PopoverEventHandlers>;
|
|
13
|
-
required: true;
|
|
14
12
|
};
|
|
15
13
|
type: {
|
|
16
|
-
type: import("vue").PropType<"time" | "date" | "datetime">;
|
|
14
|
+
type: import("vue").PropType<"time" | "date" | "datetime" | "dateRange">;
|
|
17
15
|
required: true;
|
|
18
16
|
};
|
|
19
17
|
placeholder: {
|
|
@@ -26,24 +24,25 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
26
24
|
};
|
|
27
25
|
disabled: {
|
|
28
26
|
type: import("vue").PropType<boolean>;
|
|
29
|
-
|
|
27
|
+
};
|
|
28
|
+
rangeSelected: {
|
|
29
|
+
type: import("vue").PropType<boolean>;
|
|
30
30
|
};
|
|
31
31
|
}, {
|
|
32
32
|
focus: typeof focus;
|
|
33
33
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
34
34
|
clear: () => void;
|
|
35
35
|
reset: () => void;
|
|
36
|
+
togglePopover: () => void;
|
|
36
37
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
37
38
|
date: {
|
|
38
39
|
type: import("vue").PropType<string>;
|
|
39
|
-
required: true;
|
|
40
40
|
};
|
|
41
41
|
events: {
|
|
42
42
|
type: import("vue").PropType<PopoverEventHandlers>;
|
|
43
|
-
required: true;
|
|
44
43
|
};
|
|
45
44
|
type: {
|
|
46
|
-
type: import("vue").PropType<"time" | "date" | "datetime">;
|
|
45
|
+
type: import("vue").PropType<"time" | "date" | "datetime" | "dateRange">;
|
|
47
46
|
required: true;
|
|
48
47
|
};
|
|
49
48
|
placeholder: {
|
|
@@ -56,10 +55,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
56
55
|
};
|
|
57
56
|
disabled: {
|
|
58
57
|
type: import("vue").PropType<boolean>;
|
|
59
|
-
|
|
58
|
+
};
|
|
59
|
+
rangeSelected: {
|
|
60
|
+
type: import("vue").PropType<boolean>;
|
|
60
61
|
};
|
|
61
62
|
}>> & {
|
|
62
63
|
onReset?: (() => any) | undefined;
|
|
63
64
|
onClear?: (() => any) | undefined;
|
|
65
|
+
onTogglePopover?: (() => any) | undefined;
|
|
64
66
|
}, {}, {}>;
|
|
65
67
|
export default _default;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { DateRange } from '../input/types';
|
|
1
2
|
declare const _default: import("vue").DefineComponent<{
|
|
2
3
|
type: {
|
|
3
|
-
type: import("vue").PropType<"time" | "date" | "datetime">;
|
|
4
|
+
type: import("vue").PropType<"time" | "date" | "datetime" | "dateRange">;
|
|
4
5
|
default: string;
|
|
5
6
|
};
|
|
6
7
|
placeholder: {
|
|
@@ -16,7 +17,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
16
17
|
default: boolean;
|
|
17
18
|
};
|
|
18
19
|
date: {
|
|
19
|
-
type: import("vue").PropType<string | null>;
|
|
20
|
+
type: import("vue").PropType<string | DateRange | null>;
|
|
20
21
|
required: true;
|
|
21
22
|
};
|
|
22
23
|
max: {
|
|
@@ -35,13 +36,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
35
36
|
type: import("vue").PropType<string | null>;
|
|
36
37
|
default: null;
|
|
37
38
|
};
|
|
39
|
+
quickDateScope: {
|
|
40
|
+
type: import("vue").PropType<"past" | "future" | ("today" | "this week" | "this month" | "this year" | "yesterday" | "last week" | "last month" | "last year" | "tomorrow" | "next week" | "next month" | "next year")[] | "none" | null>;
|
|
41
|
+
default: null;
|
|
42
|
+
};
|
|
38
43
|
}, {
|
|
39
44
|
focus(): void;
|
|
40
45
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
41
|
-
|
|
46
|
+
"update:date": (value: string | DateRange | null) => void;
|
|
42
47
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
43
48
|
type: {
|
|
44
|
-
type: import("vue").PropType<"time" | "date" | "datetime">;
|
|
49
|
+
type: import("vue").PropType<"time" | "date" | "datetime" | "dateRange">;
|
|
45
50
|
default: string;
|
|
46
51
|
};
|
|
47
52
|
placeholder: {
|
|
@@ -57,7 +62,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
57
62
|
default: boolean;
|
|
58
63
|
};
|
|
59
64
|
date: {
|
|
60
|
-
type: import("vue").PropType<string | null>;
|
|
65
|
+
type: import("vue").PropType<string | DateRange | null>;
|
|
61
66
|
required: true;
|
|
62
67
|
};
|
|
63
68
|
max: {
|
|
@@ -76,10 +81,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
76
81
|
type: import("vue").PropType<string | null>;
|
|
77
82
|
default: null;
|
|
78
83
|
};
|
|
84
|
+
quickDateScope: {
|
|
85
|
+
type: import("vue").PropType<"past" | "future" | ("today" | "this week" | "this month" | "this year" | "yesterday" | "last week" | "last month" | "last year" | "tomorrow" | "next week" | "next month" | "next year")[] | "none" | null>;
|
|
86
|
+
default: null;
|
|
87
|
+
};
|
|
79
88
|
}>> & {
|
|
80
|
-
"onUpdate:date"?: ((
|
|
89
|
+
"onUpdate:date"?: ((value: string | DateRange | null) => any) | undefined;
|
|
81
90
|
}, {
|
|
82
|
-
type: "time" | "date" | "datetime";
|
|
91
|
+
type: "time" | "date" | "datetime" | "dateRange";
|
|
83
92
|
placeholder: string | null;
|
|
84
93
|
disabled: boolean;
|
|
85
94
|
required: boolean;
|
|
@@ -87,5 +96,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
87
96
|
min: string | null;
|
|
88
97
|
timeZone: string | null;
|
|
89
98
|
initialDate: string | null;
|
|
99
|
+
quickDateScope: "past" | "future" | ("today" | "this week" | "this month" | "this year" | "yesterday" | "last week" | "last month" | "last year" | "tomorrow" | "next week" | "next month" | "next year")[] | "none" | null;
|
|
90
100
|
}, {}>;
|
|
91
101
|
export default _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { QuickDate } from './quick-dates';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
dates: {
|
|
4
|
+
type: import("vue").PropType<QuickDate[]>;
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
7
|
+
selectedQuickDate: {
|
|
8
|
+
type: import("vue").PropType<QuickDate | null>;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
"quick-date-selected": (value: QuickDate) => void;
|
|
13
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
14
|
+
dates: {
|
|
15
|
+
type: import("vue").PropType<QuickDate[]>;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
selectedQuickDate: {
|
|
19
|
+
type: import("vue").PropType<QuickDate | null>;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
}>> & {
|
|
23
|
+
"onQuick-date-selected"?: ((value: QuickDate) => any) | undefined;
|
|
24
|
+
}, {}, {}>;
|
|
25
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { DateRange } from '../input/types';
|
|
2
|
+
import type { QuickDate } from './quick-dates';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
scope: {
|
|
5
|
+
type: import("vue").PropType<"past" | "future" | ("today" | "this week" | "this month" | "this year" | "yesterday" | "last week" | "last month" | "last year" | "tomorrow" | "next week" | "next month" | "next year")[] | null>;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
selectedQuickDate: {
|
|
9
|
+
type: import("vue").PropType<QuickDate | null>;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
currentDateRange: {
|
|
13
|
+
type: import("vue").PropType<DateRange | null>;
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
16
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
+
"quick-date-selected": (value: QuickDate) => void;
|
|
18
|
+
"apply-button-clicked": () => void;
|
|
19
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
20
|
+
scope: {
|
|
21
|
+
type: import("vue").PropType<"past" | "future" | ("today" | "this week" | "this month" | "this year" | "yesterday" | "last week" | "last month" | "last year" | "tomorrow" | "next week" | "next month" | "next year")[] | null>;
|
|
22
|
+
required: true;
|
|
23
|
+
};
|
|
24
|
+
selectedQuickDate: {
|
|
25
|
+
type: import("vue").PropType<QuickDate | null>;
|
|
26
|
+
required: true;
|
|
27
|
+
};
|
|
28
|
+
currentDateRange: {
|
|
29
|
+
type: import("vue").PropType<DateRange | null>;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
}>> & {
|
|
33
|
+
"onQuick-date-selected"?: ((value: QuickDate) => any) | undefined;
|
|
34
|
+
"onApply-button-clicked"?: (() => any) | undefined;
|
|
35
|
+
}, {}, {}>;
|
|
36
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const quickDateNames: readonly ["today", "this week", "this month", "this year", "yesterday", "last week", "last month", "last year", "tomorrow", "next week", "next month", "next year"];
|
|
2
|
+
export type QuickDateName = typeof quickDateNames[number];
|
|
3
|
+
export interface QuickDate {
|
|
4
|
+
name: QuickDateName;
|
|
5
|
+
scope: 'past' | 'future' | 'current';
|
|
6
|
+
translationKey: string;
|
|
7
|
+
range: 'day' | 'week' | 'month' | 'year';
|
|
8
|
+
}
|
|
9
|
+
export declare const currentQuickDates: QuickDate[];
|
|
10
|
+
export declare const pastQuickDates: QuickDate[];
|
|
11
|
+
export declare const futureQuickDates: QuickDate[];
|
|
12
|
+
export declare const allQuickDates: QuickDate[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const calendarTypes: readonly ["date", "datetime", "time"];
|
|
1
|
+
export declare const calendarTypes: readonly ["date", "datetime", "time", "dateRange"];
|
|
2
2
|
export type CalendarType = typeof calendarTypes[number];
|
|
@@ -13,14 +13,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
13
13
|
type: import("vue").PropType<string | null>;
|
|
14
14
|
required: true;
|
|
15
15
|
};
|
|
16
|
-
editMode: {
|
|
17
|
-
type: import("vue").PropType<boolean>;
|
|
18
|
-
default: boolean;
|
|
19
|
-
};
|
|
20
16
|
columns: {
|
|
21
17
|
type: import("vue").PropType<GridColumn<Record<string, unknown>>[]>;
|
|
22
18
|
required: true;
|
|
23
19
|
};
|
|
20
|
+
editMode: {
|
|
21
|
+
type: import("vue").PropType<boolean>;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
24
24
|
options: {
|
|
25
25
|
type: import("vue").PropType<Partial<GridConfig>>;
|
|
26
26
|
required: true;
|
|
@@ -50,14 +50,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
50
50
|
type: import("vue").PropType<string | null>;
|
|
51
51
|
required: true;
|
|
52
52
|
};
|
|
53
|
-
editMode: {
|
|
54
|
-
type: import("vue").PropType<boolean>;
|
|
55
|
-
default: boolean;
|
|
56
|
-
};
|
|
57
53
|
columns: {
|
|
58
54
|
type: import("vue").PropType<GridColumn<Record<string, unknown>>[]>;
|
|
59
55
|
required: true;
|
|
60
56
|
};
|
|
57
|
+
editMode: {
|
|
58
|
+
type: import("vue").PropType<boolean>;
|
|
59
|
+
default: boolean;
|
|
60
|
+
};
|
|
61
61
|
options: {
|
|
62
62
|
type: import("vue").PropType<Partial<GridConfig>>;
|
|
63
63
|
required: true;
|
|
@@ -9,14 +9,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
9
9
|
type: import("vue").PropType<string | null>;
|
|
10
10
|
required: true;
|
|
11
11
|
};
|
|
12
|
-
editMode: {
|
|
13
|
-
type: import("vue").PropType<boolean>;
|
|
14
|
-
default: boolean;
|
|
15
|
-
};
|
|
16
12
|
columns: {
|
|
17
13
|
type: import("vue").PropType<GridColumn<Record<string, unknown>>[]>;
|
|
18
14
|
required: true;
|
|
19
15
|
};
|
|
16
|
+
editMode: {
|
|
17
|
+
type: import("vue").PropType<boolean>;
|
|
18
|
+
default: boolean;
|
|
19
|
+
};
|
|
20
20
|
searchValue: {
|
|
21
21
|
type: import("vue").PropType<string>;
|
|
22
22
|
required: true;
|
|
@@ -35,14 +35,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
35
35
|
type: import("vue").PropType<string | null>;
|
|
36
36
|
required: true;
|
|
37
37
|
};
|
|
38
|
-
editMode: {
|
|
39
|
-
type: import("vue").PropType<boolean>;
|
|
40
|
-
default: boolean;
|
|
41
|
-
};
|
|
42
38
|
columns: {
|
|
43
39
|
type: import("vue").PropType<GridColumn<Record<string, unknown>>[]>;
|
|
44
40
|
required: true;
|
|
45
41
|
};
|
|
42
|
+
editMode: {
|
|
43
|
+
type: import("vue").PropType<boolean>;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
46
|
searchValue: {
|
|
47
47
|
type: import("vue").PropType<string>;
|
|
48
48
|
required: true;
|
|
@@ -13,6 +13,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
13
13
|
type: import("vue").PropType<string | null>;
|
|
14
14
|
default: null;
|
|
15
15
|
};
|
|
16
|
+
quickDateScope: {
|
|
17
|
+
type: import("vue").PropType<"past" | "future" | ("today" | "this week" | "this month" | "this year" | "yesterday" | "last week" | "last month" | "last year" | "tomorrow" | "next week" | "next month" | "next year")[] | "none" | null>;
|
|
18
|
+
default: null;
|
|
19
|
+
};
|
|
16
20
|
columns: {
|
|
17
21
|
type: import("vue").PropType<GridColumn<Record<string, unknown>>[]>;
|
|
18
22
|
required: true;
|
|
@@ -46,6 +50,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
46
50
|
type: import("vue").PropType<string | null>;
|
|
47
51
|
default: null;
|
|
48
52
|
};
|
|
53
|
+
quickDateScope: {
|
|
54
|
+
type: import("vue").PropType<"past" | "future" | ("today" | "this week" | "this month" | "this year" | "yesterday" | "last week" | "last month" | "last year" | "tomorrow" | "next week" | "next month" | "next year")[] | "none" | null>;
|
|
55
|
+
default: null;
|
|
56
|
+
};
|
|
49
57
|
columns: {
|
|
50
58
|
type: import("vue").PropType<GridColumn<Record<string, unknown>>[]>;
|
|
51
59
|
required: true;
|
|
@@ -69,6 +77,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
69
77
|
}, {
|
|
70
78
|
data: FilterResponse<unknown> | null;
|
|
71
79
|
timeZone: string | null;
|
|
80
|
+
quickDateScope: "past" | "future" | ("today" | "this week" | "this month" | "this year" | "yesterday" | "last week" | "last month" | "last year" | "tomorrow" | "next week" | "next month" | "next year")[] | "none" | null;
|
|
72
81
|
options: Partial<GridConfig>;
|
|
73
82
|
}, {}>, Partial<Record<NonNullable<string | number>, (_: {
|
|
74
83
|
column: GridColumn<Record<string, unknown>>;
|
|
@@ -8,6 +8,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
8
8
|
type: import("vue").PropType<string | null>;
|
|
9
9
|
required: true;
|
|
10
10
|
};
|
|
11
|
+
quickDateScope: {
|
|
12
|
+
type: import("vue").PropType<"past" | "future" | ("today" | "this week" | "this month" | "this year" | "yesterday" | "last week" | "last month" | "last year" | "tomorrow" | "next week" | "next month" | "next year")[] | "none" | null>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
11
15
|
column: {
|
|
12
16
|
type: import("vue").PropType<GridColumn<Record<string, unknown>>>;
|
|
13
17
|
required: true;
|
|
@@ -27,6 +31,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
27
31
|
type: import("vue").PropType<string | null>;
|
|
28
32
|
required: true;
|
|
29
33
|
};
|
|
34
|
+
quickDateScope: {
|
|
35
|
+
type: import("vue").PropType<"past" | "future" | ("today" | "this week" | "this month" | "this year" | "yesterday" | "last week" | "last month" | "last year" | "tomorrow" | "next week" | "next month" | "next year")[] | "none" | null>;
|
|
36
|
+
required: true;
|
|
37
|
+
};
|
|
30
38
|
column: {
|
|
31
39
|
type: import("vue").PropType<GridColumn<Record<string, unknown>>>;
|
|
32
40
|
required: true;
|
|
@@ -20,6 +20,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
20
20
|
type: import("vue").PropType<string | null>;
|
|
21
21
|
required: true;
|
|
22
22
|
};
|
|
23
|
+
quickDateScope: {
|
|
24
|
+
type: import("vue").PropType<"past" | "future" | ("today" | "this week" | "this month" | "this year" | "yesterday" | "last week" | "last month" | "last year" | "tomorrow" | "next week" | "next month" | "next year")[] | "none" | null>;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
23
27
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
28
|
"update:request": (value: FilterRequest<Record<string, unknown>>) => void;
|
|
25
29
|
"update:filterPanelOpen": (value: boolean) => void;
|
|
@@ -44,6 +48,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
44
48
|
type: import("vue").PropType<string | null>;
|
|
45
49
|
required: true;
|
|
46
50
|
};
|
|
51
|
+
quickDateScope: {
|
|
52
|
+
type: import("vue").PropType<"past" | "future" | ("today" | "this week" | "this month" | "this year" | "yesterday" | "last week" | "last month" | "last year" | "tomorrow" | "next week" | "next month" | "next year")[] | "none" | null>;
|
|
53
|
+
required: true;
|
|
54
|
+
};
|
|
47
55
|
}>> & {
|
|
48
56
|
"onUpdate:filterPanelOpen"?: ((value: boolean) => any) | undefined;
|
|
49
57
|
"onUpdate:request"?: ((value: FilterRequest<Record<string, unknown>>) => any) | undefined;
|
|
@@ -6,7 +6,7 @@ export interface GridConfig {
|
|
|
6
6
|
highlightRowSelection: boolean;
|
|
7
7
|
hideViewManager: boolean;
|
|
8
8
|
}
|
|
9
|
-
export declare const gridColumnTypes: readonly ["string", "boolean", "number", "date", "datetime", "list", "slot"];
|
|
9
|
+
export declare const gridColumnTypes: readonly ["string", "boolean", "number", "date", "datetime", "dateRange", "list", "slot"];
|
|
10
10
|
export type GridColumnType = typeof gridColumnTypes[number];
|
|
11
11
|
export type GridColumnListEntry = {
|
|
12
12
|
value: string | number;
|
|
@@ -18,7 +18,7 @@ export interface GridColumn<T = Record<string, unknown>> {
|
|
|
18
18
|
caption: string;
|
|
19
19
|
type: GridColumnType;
|
|
20
20
|
slotType?: Exclude<GridColumnType, 'slot'>;
|
|
21
|
-
listType?: Exclude<GridColumnType, 'list' | 'slot' | 'date' | 'datetime' | 'boolean'>;
|
|
21
|
+
listType?: Exclude<GridColumnType, 'list' | 'slot' | 'date' | 'datetime' | 'dateRange' | 'boolean'>;
|
|
22
22
|
listEntries?: GridColumnListEntry[];
|
|
23
23
|
format?: StringFormat | DateFormat | NumberFormat;
|
|
24
24
|
maxLength?: number;
|