overgrid-vue 1.5.0 → 1.6.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/index.d.ts +61 -55
- package/dist/overgrid.es.js +2595 -2574
- package/dist/overgrid.umd.js +33 -33
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -30,18 +30,7 @@ export declare const OverGrid: {
|
|
|
30
30
|
component: any;
|
|
31
31
|
}[];
|
|
32
32
|
}> & Readonly<{}>, {
|
|
33
|
-
fields:
|
|
34
|
-
mapping: Ref<OverGridField[]>;
|
|
35
|
-
actionButtonFieldCounter: number;
|
|
36
|
-
mappingVisible: () => OverGridField[];
|
|
37
|
-
addField(key: string, title: string): OverGridField;
|
|
38
|
-
addNumberField(key: string, title: string, extraConfig?: any): OverGridField;
|
|
39
|
-
addTextField(key: string, title: string, extraConfig?: any): OverGridField;
|
|
40
|
-
addDateField(key: string, title: string, extraConfig?: any): OverGridField;
|
|
41
|
-
addEnumField(key: string, title: string, enumMapping: OverGridEnumMapping, extraConfig?: any): OverGridField;
|
|
42
|
-
addBooleanField(key: string, title: string, extraConfig?: any): OverGridField;
|
|
43
|
-
addActionButtonField(title: string, buttons: OverGridActionButton[]): OverGridField;
|
|
44
|
-
};
|
|
33
|
+
fields: OverGridFields;
|
|
45
34
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
46
35
|
operationsDropdown: ({
|
|
47
36
|
$: ComponentInternalInstance;
|
|
@@ -121,6 +110,26 @@ export declare const OverGrid: {
|
|
|
121
110
|
content?(_: {}): any;
|
|
122
111
|
};
|
|
123
112
|
}) | null;
|
|
113
|
+
baseOperations: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
114
|
+
config: OverGridConfig;
|
|
115
|
+
columnSelector: OverGridUseColumnSelectorInterface;
|
|
116
|
+
currentPageExporter: OverGridUseCurrentPageExportInterface;
|
|
117
|
+
aboutModal: OverGridUseAboutModalInterface;
|
|
118
|
+
closeDropdown?: () => void;
|
|
119
|
+
}> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLUListElement, ComponentProvideOptions, {
|
|
120
|
+
P: {};
|
|
121
|
+
B: {};
|
|
122
|
+
D: {};
|
|
123
|
+
C: {};
|
|
124
|
+
M: {};
|
|
125
|
+
Defaults: {};
|
|
126
|
+
}, Readonly<{
|
|
127
|
+
config: OverGridConfig;
|
|
128
|
+
columnSelector: OverGridUseColumnSelectorInterface;
|
|
129
|
+
currentPageExporter: OverGridUseCurrentPageExportInterface;
|
|
130
|
+
aboutModal: OverGridUseAboutModalInterface;
|
|
131
|
+
closeDropdown?: () => void;
|
|
132
|
+
}> & Readonly<{}>, {}, {}, {}, {}, {}> | null;
|
|
124
133
|
}, HTMLDivElement, ComponentProvideOptions, {
|
|
125
134
|
P: {};
|
|
126
135
|
B: {};
|
|
@@ -135,18 +144,7 @@ export declare const OverGrid: {
|
|
|
135
144
|
component: any;
|
|
136
145
|
}[];
|
|
137
146
|
}> & Readonly<{}>, {
|
|
138
|
-
fields:
|
|
139
|
-
mapping: Ref<OverGridField[]>;
|
|
140
|
-
actionButtonFieldCounter: number;
|
|
141
|
-
mappingVisible: () => OverGridField[];
|
|
142
|
-
addField(key: string, title: string): OverGridField;
|
|
143
|
-
addNumberField(key: string, title: string, extraConfig?: any): OverGridField;
|
|
144
|
-
addTextField(key: string, title: string, extraConfig?: any): OverGridField;
|
|
145
|
-
addDateField(key: string, title: string, extraConfig?: any): OverGridField;
|
|
146
|
-
addEnumField(key: string, title: string, enumMapping: OverGridEnumMapping, extraConfig?: any): OverGridField;
|
|
147
|
-
addBooleanField(key: string, title: string, extraConfig?: any): OverGridField;
|
|
148
|
-
addActionButtonField(title: string, buttons: OverGridActionButton[]): OverGridField;
|
|
149
|
-
};
|
|
147
|
+
fields: OverGridFields;
|
|
150
148
|
}, {}, {}, {}, {}>;
|
|
151
149
|
__isFragment?: never;
|
|
152
150
|
__isTeleport?: never;
|
|
@@ -158,18 +156,7 @@ name: string;
|
|
|
158
156
|
component: any;
|
|
159
157
|
}[];
|
|
160
158
|
}> & Readonly<{}>, {
|
|
161
|
-
fields:
|
|
162
|
-
mapping: Ref<OverGridField[]>;
|
|
163
|
-
actionButtonFieldCounter: number;
|
|
164
|
-
mappingVisible: () => OverGridField[];
|
|
165
|
-
addField(key: string, title: string): OverGridField;
|
|
166
|
-
addNumberField(key: string, title: string, extraConfig?: any): OverGridField;
|
|
167
|
-
addTextField(key: string, title: string, extraConfig?: any): OverGridField;
|
|
168
|
-
addDateField(key: string, title: string, extraConfig?: any): OverGridField;
|
|
169
|
-
addEnumField(key: string, title: string, enumMapping: OverGridEnumMapping, extraConfig?: any): OverGridField;
|
|
170
|
-
addBooleanField(key: string, title: string, extraConfig?: any): OverGridField;
|
|
171
|
-
addActionButtonField(title: string, buttons: OverGridActionButton[]): OverGridField;
|
|
172
|
-
};
|
|
159
|
+
fields: OverGridFields;
|
|
173
160
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
174
161
|
$slots: {
|
|
175
162
|
extraRow?(_: {
|
|
@@ -421,8 +408,8 @@ export declare interface OverGridExtraRowConfig {
|
|
|
421
408
|
}
|
|
422
409
|
|
|
423
410
|
export declare class OverGridField {
|
|
424
|
-
constructor(key: string, title: string, fieldsObject:
|
|
425
|
-
fieldsObject:
|
|
411
|
+
constructor(key: string, title: string, fieldsObject: OverGridFields);
|
|
412
|
+
fieldsObject: OverGridFields;
|
|
426
413
|
/**
|
|
427
414
|
* The field name is the key of the field in the record object. It is used to access the value of the field in the record object responded from server.
|
|
428
415
|
* For example, if the field name is 'id', you can access the value of the field in the record object using record.id.
|
|
@@ -515,25 +502,37 @@ export declare class OverGridField {
|
|
|
515
502
|
*/
|
|
516
503
|
config?: any;
|
|
517
504
|
};
|
|
518
|
-
setTitle(title: string):
|
|
519
|
-
setVisible(visible: boolean):
|
|
505
|
+
setTitle(title: string): OverGridField;
|
|
506
|
+
setVisible(visible: boolean): OverGridField;
|
|
520
507
|
setColumnFilter(columnFilter: {
|
|
521
508
|
active: boolean;
|
|
522
509
|
type?: string;
|
|
523
510
|
filterKey?: string;
|
|
524
511
|
config?: any;
|
|
525
|
-
}):
|
|
526
|
-
setSelectable(selectable: boolean):
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
512
|
+
}): OverGridField;
|
|
513
|
+
setSelectable(selectable: boolean): OverGridField;
|
|
514
|
+
setOrderKey(orderKey: string): OverGridField;
|
|
515
|
+
setExportable(exportable: boolean): OverGridField;
|
|
516
|
+
setWidth(width: string): OverGridField;
|
|
517
|
+
setFilterKey(filterKey: string): OverGridField;
|
|
518
|
+
setOrderable(orderable: boolean): OverGridField;
|
|
519
|
+
setFormatter(type: string, config?: any): OverGridField;
|
|
520
|
+
setMiddleware(middleware: (data: any, record: any) => any): OverGridField;
|
|
521
|
+
setExportMiddleware(exportMiddleware: (data: any, record: any, format?: string) => any): OverGridField;
|
|
522
|
+
commit(): OverGridFields;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
declare class OverGridFields {
|
|
526
|
+
mapping: Ref<OverGridField[]>;
|
|
527
|
+
actionButtonFieldCounter: number;
|
|
528
|
+
mappingVisible: () => OverGridField[];
|
|
529
|
+
addField(key: string, title: string): OverGridField;
|
|
530
|
+
addNumberField(key: string, title: string, extraConfig?: any): OverGridField;
|
|
531
|
+
addTextField(key: string, title: string, extraConfig?: any): OverGridField;
|
|
532
|
+
addDateField(key: string, title: string, extraConfig?: any): OverGridField;
|
|
533
|
+
addEnumField(key: string, title: string, enumMapping: OverGridEnumMapping, extraConfig?: any): OverGridField;
|
|
534
|
+
addBooleanField(key: string, title: string, extraConfig?: any): OverGridField;
|
|
535
|
+
addActionButtonField(title: string, buttons: OverGridActionButton[]): OverGridField;
|
|
537
536
|
}
|
|
538
537
|
|
|
539
538
|
export declare interface OverGridOrderConfig {
|
|
@@ -582,11 +581,11 @@ export declare interface OverGridPaginationConfig {
|
|
|
582
581
|
/**
|
|
583
582
|
* The initial page number.
|
|
584
583
|
*/
|
|
585
|
-
initialPage
|
|
584
|
+
initialPage?: number;
|
|
586
585
|
/**
|
|
587
586
|
* The initial page size.
|
|
588
587
|
*/
|
|
589
|
-
initialSize
|
|
588
|
+
initialSize?: number;
|
|
590
589
|
/**
|
|
591
590
|
* If true, the pagination starts with page 0. If false, it starts with page 1.
|
|
592
591
|
* This is useful for APIs that use 0-based pagination.
|
|
@@ -687,22 +686,25 @@ export declare interface OverGridUseAboutModalInterface {
|
|
|
687
686
|
showModal: () => void;
|
|
688
687
|
closeModal: () => void;
|
|
689
688
|
isModalShown: Ref<boolean>;
|
|
689
|
+
isToolbarOptionEnabled: ComputedRef<boolean>;
|
|
690
690
|
}
|
|
691
691
|
|
|
692
692
|
export declare interface OverGridUseAutoRefreshInterface {
|
|
693
693
|
changeAutoRefreshValue: (value: string) => void;
|
|
694
694
|
autoRefresh: Ref<string>;
|
|
695
|
+
isToolbarOptionEnabled: ComputedRef<boolean>;
|
|
695
696
|
}
|
|
696
697
|
|
|
697
698
|
export declare interface OverGridUseBulkOperationsInterface {
|
|
698
699
|
checkedRows: Ref<string[]>;
|
|
700
|
+
isToolbarOptionEnabled: ComputedRef<boolean>;
|
|
699
701
|
}
|
|
700
702
|
|
|
701
703
|
export declare interface OverGridUseColumnFiltersInterface {
|
|
702
704
|
filters: Ref<OverGridColumnFilter[]>;
|
|
703
705
|
isFieldActive: (field: OverGridField) => boolean;
|
|
704
706
|
toggleColumnFilter: (field: OverGridField) => void;
|
|
705
|
-
fieldUnderAdding:
|
|
707
|
+
fieldUnderAdding: any;
|
|
706
708
|
closeColumnFilterConfigModal: () => void;
|
|
707
709
|
registerColumnFilter: (filter: OverGridColumnFilter) => void;
|
|
708
710
|
initiateColumnFilter: (field: OverGridField) => void;
|
|
@@ -718,12 +720,14 @@ export declare interface OverGridUseColumnSelectorInterface {
|
|
|
718
720
|
setColumns: (selectedColumns: string[]) => void;
|
|
719
721
|
selectedFields: Ref<string[] | null>;
|
|
720
722
|
filter(fields: OverGridField[]): OverGridField[];
|
|
723
|
+
isToolbarOptionEnabled: ComputedRef<boolean>;
|
|
721
724
|
}
|
|
722
725
|
|
|
723
726
|
export declare interface OverGridUseCurrentPageExportInterface {
|
|
724
727
|
showModal: () => void;
|
|
725
728
|
closeModal: () => void;
|
|
726
729
|
isModalShown: Ref<boolean>;
|
|
730
|
+
isToolbarOptionEnabled: ComputedRef<boolean>;
|
|
727
731
|
}
|
|
728
732
|
|
|
729
733
|
export declare interface OverGridUseExtraRowInterface {
|
|
@@ -763,6 +767,7 @@ export declare interface OverGridUsePaginationInterface {
|
|
|
763
767
|
currentPageForUI?: ComputedRef<number>;
|
|
764
768
|
changePageSize: (newPageSize: number) => void;
|
|
765
769
|
pageSize: ComputedRef<number>;
|
|
770
|
+
isToolbarOptionEnabled: ComputedRef<boolean>;
|
|
766
771
|
}
|
|
767
772
|
|
|
768
773
|
export declare interface OverGridUseRowHighlighterInterface {
|
|
@@ -772,6 +777,7 @@ export declare interface OverGridUseRowHighlighterInterface {
|
|
|
772
777
|
export declare interface OverGridUseSearchInterface {
|
|
773
778
|
query: Ref<string>;
|
|
774
779
|
debounce: (func: Function) => void;
|
|
780
|
+
isToolbarOptionEnabled: ComputedRef<boolean>;
|
|
775
781
|
}
|
|
776
782
|
|
|
777
783
|
export { }
|