@citruslime/ui 3.1.0-beta.6 → 3.1.0-beta.8

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.
@@ -7,6 +7,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
7
7
  columns: GridColumn<Record<string, unknown>>[];
8
8
  options: Partial<GridConfig>;
9
9
  request: FilterRequest<Record<string, unknown>>;
10
+ canBulkEdit: boolean;
10
11
  }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
12
  "update:edit-mode": (args_0: boolean) => void;
12
13
  "update:filterPanelOpen": (args_0: boolean) => void;
@@ -19,6 +20,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
19
20
  columns: GridColumn<Record<string, unknown>>[];
20
21
  options: Partial<GridConfig>;
21
22
  request: FilterRequest<Record<string, unknown>>;
23
+ canBulkEdit: boolean;
22
24
  }>>> & Readonly<{
23
25
  "onUpdate:edit-mode"?: ((args_0: boolean) => any) | undefined;
24
26
  "onUpdate:filterPanelOpen"?: ((args_0: boolean) => any) | undefined;
@@ -1,4 +1,5 @@
1
- import type { GridColumn, FilterRequest, FilterResponse, GridConfig, GridUpdateModel } from './types';
1
+ import type { InputValueType } from '../input/types';
2
+ import type { GridColumn, FilterRequest, FilterResponse, GridConfig, GridUpdateModel, ColumnSlot } from './types';
2
3
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
3
4
  columns: GridColumn<Record<string, unknown>>[];
4
5
  request: FilterRequest<Record<string, unknown>>;
@@ -15,7 +16,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
15
16
  quickDateScope: null;
16
17
  dateFormatLocale: null;
17
18
  headerDisplayTimezone: null;
18
- }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
+ }>>, {
20
+ focusMegaSearch: () => any;
21
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
22
  "row-select": (args_0: Record<string, unknown>) => void;
20
23
  "row-edit": (args_0: GridUpdateModel) => void;
21
24
  "row-edit-cancelled": (args_0: GridUpdateModel) => void;
@@ -55,36 +58,48 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
55
58
  timeZone: string | null;
56
59
  options: Partial<GridConfig>;
57
60
  headerDisplayTimezone: string | null;
58
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<Record<string, (props: import("./types").CellSlot & Partial<{
61
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<Record<string, (props: ColumnSlot & {
62
+ record: Record<string, InputValueType>;
63
+ searchValue?: string | undefined;
64
+ } & Partial<{
59
65
  edited: boolean;
60
66
  listEntries: import("..").ComboBoxItem[];
61
67
  cellFocused: () => void;
62
68
  }> & {
63
69
  disabled: boolean;
70
+ }) => any> & Record<`${string}BulkEdit`, (props: ColumnSlot & {
71
+ disabled: boolean;
64
72
  }) => any> & {
65
73
  search: (props: {
66
74
  searchValue: string;
67
75
  performSearch: (value: string) => void;
68
76
  }) => any;
69
- 'additional-grid-actions'(props: {
77
+ 'additional-grid-actions': (props: {
70
78
  loading: boolean;
71
79
  editMode: boolean;
72
- }): any;
73
- }> & Record<string, (props: import("./types").CellSlot & Partial<{
80
+ }) => any;
81
+ noData: () => any;
82
+ }> & Record<string, (props: ColumnSlot & {
83
+ record: Record<string, InputValueType>;
84
+ searchValue?: string | undefined;
85
+ } & Partial<{
74
86
  edited: boolean;
75
87
  listEntries: import("..").ComboBoxItem[];
76
88
  cellFocused: () => void;
77
89
  }> & {
78
90
  disabled: boolean;
91
+ }) => any> & Record<`${string}BulkEdit`, (props: ColumnSlot & {
92
+ disabled: boolean;
79
93
  }) => any> & {
80
94
  search: (props: {
81
95
  searchValue: string;
82
96
  performSearch: (value: string) => void;
83
97
  }) => any;
84
- 'additional-grid-actions'(props: {
98
+ 'additional-grid-actions': (props: {
85
99
  loading: boolean;
86
100
  editMode: boolean;
87
- }): any;
101
+ }) => any;
102
+ noData: () => any;
88
103
  }>;
89
104
  export default _default;
90
105
  type __VLS_WithDefaults<P, D> = {
@@ -0,0 +1,35 @@
1
+ import type { QuickDateName } from '../../calendar/quick-dates';
2
+ import type { FilterArg, GridColumn, GridConfig } from '../types';
3
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
4
+ loading: boolean;
5
+ filter: FilterArg[] | undefined;
6
+ column: GridColumn;
7
+ timeZone: string | null;
8
+ quickDateScope: 'past' | 'future' | 'none' | QuickDateName[] | null;
9
+ headerDisplayTimezone: string | null;
10
+ options: Partial<GridConfig>;
11
+ }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
+ "update:filter": (args_0: FilterArg<Record<string, unknown>>[] | undefined) => void;
13
+ "perform-data-request": () => void;
14
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
15
+ loading: boolean;
16
+ filter: FilterArg[] | undefined;
17
+ column: GridColumn;
18
+ timeZone: string | null;
19
+ quickDateScope: 'past' | 'future' | 'none' | QuickDateName[] | null;
20
+ headerDisplayTimezone: string | null;
21
+ options: Partial<GridConfig>;
22
+ }>>> & Readonly<{
23
+ "onUpdate:filter"?: ((args_0: FilterArg<Record<string, unknown>>[] | undefined) => any) | undefined;
24
+ "onPerform-data-request"?: (() => any) | undefined;
25
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
26
+ export default _default;
27
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
28
+ type __VLS_TypePropsToOption<T> = {
29
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
30
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
31
+ } : {
32
+ type: import('vue').PropType<T[K]>;
33
+ required: true;
34
+ };
35
+ };
@@ -1,12 +1,12 @@
1
- import type { QuickDateName } from '../../calendar/quick-dates';
2
- import type { FilterArg, GridColumn, GridConfig } from '../types';
3
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
1
+ import type { ColumnSlot, FilterArg, GridColumn, GridConfig } from '../types';
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
4
3
  loading: boolean;
5
4
  initialLoad: boolean;
6
- filter: FilterArg[] | undefined;
7
- column: GridColumn;
5
+ bulkEditMode: boolean;
6
+ filter: FilterArg<Record<string, unknown>>[] | undefined;
7
+ column: GridColumn<Record<string, unknown>>;
8
8
  timeZone: string | null;
9
- quickDateScope: 'past' | 'future' | 'none' | QuickDateName[] | null;
9
+ quickDateScope: "past" | "future" | "none" | ("today" | "this week" | "this month" | "this year" | "yesterday" | "last week" | "last month" | "last year" | "tomorrow" | "next week" | "next month" | "next year")[] | null;
10
10
  headerDisplayTimezone: string | null;
11
11
  options: Partial<GridConfig>;
12
12
  }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -15,17 +15,23 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
15
15
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
16
16
  loading: boolean;
17
17
  initialLoad: boolean;
18
- filter: FilterArg[] | undefined;
19
- column: GridColumn;
18
+ bulkEditMode: boolean;
19
+ filter: FilterArg<Record<string, unknown>>[] | undefined;
20
+ column: GridColumn<Record<string, unknown>>;
20
21
  timeZone: string | null;
21
- quickDateScope: 'past' | 'future' | 'none' | QuickDateName[] | null;
22
+ quickDateScope: "past" | "future" | "none" | ("today" | "this week" | "this month" | "this year" | "yesterday" | "last week" | "last month" | "last year" | "tomorrow" | "next week" | "next month" | "next year")[] | null;
22
23
  headerDisplayTimezone: string | null;
23
24
  options: Partial<GridConfig>;
24
25
  }>>> & Readonly<{
25
26
  "onUpdate:filter"?: ((args_0: FilterArg<Record<string, unknown>>[] | undefined) => any) | undefined;
26
27
  "onPerform-data-request"?: (() => any) | undefined;
27
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
28
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<Record<`${string}BulkEdit`, (props: ColumnSlot) => any>> & Record<`${string}BulkEdit`, (props: ColumnSlot) => any>>;
28
29
  export default _default;
30
+ type __VLS_WithTemplateSlots<T, S> = T & {
31
+ new (): {
32
+ $slots: S;
33
+ };
34
+ };
29
35
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
30
36
  type __VLS_TypePropsToOption<T> = {
31
37
  [K in keyof T]-?: {} extends Pick<T, K> ? {
@@ -1,9 +1,10 @@
1
- import type { FilterRequest, GridColumn, GridConfig } from '../types';
2
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
3
- request: FilterRequest;
4
- columns: GridColumn[];
1
+ import type { FilterRequest, GridColumn, GridConfig, ColumnSlot } from '../types';
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
3
+ request: FilterRequest<Record<string, unknown>>;
4
+ columns: GridColumn<Record<string, unknown>>[];
5
5
  loading: boolean;
6
6
  initialLoad: boolean;
7
+ bulkEditMode: boolean;
7
8
  filterPanelOpen: boolean;
8
9
  timeZone: string | null;
9
10
  headerDisplayTimezone: string | null;
@@ -13,10 +14,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
13
14
  "update:request": (args_0: FilterRequest<Record<string, unknown>>) => void;
14
15
  "perform-data-request": () => void;
15
16
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
16
- request: FilterRequest;
17
- columns: GridColumn[];
17
+ request: FilterRequest<Record<string, unknown>>;
18
+ columns: GridColumn<Record<string, unknown>>[];
18
19
  loading: boolean;
19
20
  initialLoad: boolean;
21
+ bulkEditMode: boolean;
20
22
  filterPanelOpen: boolean;
21
23
  timeZone: string | null;
22
24
  headerDisplayTimezone: string | null;
@@ -25,8 +27,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
25
27
  "onUpdate:filterPanelOpen"?: ((args_0: boolean) => any) | undefined;
26
28
  "onUpdate:request"?: ((args_0: FilterRequest<Record<string, unknown>>) => any) | undefined;
27
29
  "onPerform-data-request"?: (() => any) | undefined;
28
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
30
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<Record<`${string}BulkEdit`, (props: ColumnSlot) => any>> & Record<`${string}BulkEdit`, (props: ColumnSlot) => any>>;
29
31
  export default _default;
32
+ type __VLS_WithTemplateSlots<T, S> = T & {
33
+ new (): {
34
+ $slots: S;
35
+ };
36
+ };
30
37
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
31
38
  type __VLS_TypePropsToOption<T> = {
32
39
  [K in keyof T]-?: {} extends Pick<T, K> ? {
@@ -19,7 +19,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
19
19
  type: import("vue").PropType<FilterRequest<Record<string, unknown>>>;
20
20
  required: true;
21
21
  };
22
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
22
+ }>, {
23
+ focusMegaSearch: () => void | undefined;
24
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
23
25
  "update:searchValue": (searchValue: string) => void;
24
26
  "update:request": (args_0: FilterRequest<Record<string, unknown>>) => void;
25
27
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
@@ -95,8 +95,10 @@ export interface FilterResponse<T> {
95
95
  results: T[];
96
96
  totalRecords: number;
97
97
  }
98
- export type CellSlot = {
98
+ export type ColumnSlot = {
99
99
  column: GridColumn;
100
+ };
101
+ export type CellSlot = ColumnSlot & {
100
102
  record: Record<string, InputValueType>;
101
103
  searchValue?: string;
102
104
  };