overgrid-vue 1.5.0 → 1.6.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/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;
@@ -135,18 +124,7 @@ export declare const OverGrid: {
135
124
  component: any;
136
125
  }[];
137
126
  }> & 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
- };
127
+ fields: OverGridFields;
150
128
  }, {}, {}, {}, {}>;
151
129
  __isFragment?: never;
152
130
  __isTeleport?: never;
@@ -158,18 +136,7 @@ name: string;
158
136
  component: any;
159
137
  }[];
160
138
  }> & 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
- };
139
+ fields: OverGridFields;
173
140
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
174
141
  $slots: {
175
142
  extraRow?(_: {
@@ -421,8 +388,8 @@ export declare interface OverGridExtraRowConfig {
421
388
  }
422
389
 
423
390
  export declare class OverGridField {
424
- constructor(key: string, title: string, fieldsObject: any);
425
- fieldsObject: any;
391
+ constructor(key: string, title: string, fieldsObject: OverGridFields);
392
+ fieldsObject: OverGridFields;
426
393
  /**
427
394
  * 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
395
  * 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 +482,39 @@ export declare class OverGridField {
515
482
  */
516
483
  config?: any;
517
484
  };
518
- setTitle(title: string): this;
519
- setVisible(visible: boolean): this;
485
+ setTitle(title: string): OverGridField;
486
+ setVisible(visible: boolean): OverGridField;
520
487
  setColumnFilter(columnFilter: {
521
488
  active: boolean;
522
489
  type?: string;
523
490
  filterKey?: string;
524
491
  config?: any;
525
- }): this;
526
- setSelectable(selectable: boolean): this;
527
- setOrerable(orderable: boolean): this;
528
- setOrderKey(orderKey: string): this;
529
- setExportable(exportable: boolean): this;
530
- setWidth(width: string): this;
531
- setFilterKey(filterKey: string): this;
532
- setOrderable(orderable: boolean): this;
533
- setFormatter(type: string, config?: any): this;
534
- setMiddleware(middleware: (data: any, record: any) => any): this;
535
- setExportMiddleware(exportMiddleware: (data: any, record: any, format?: string) => any): this;
536
- commit(): any;
492
+ }): OverGridField;
493
+ setSelectable(selectable: boolean): OverGridField;
494
+ setOrerable(orderable: boolean): OverGridField;
495
+ setOrderKey(orderKey: string): OverGridField;
496
+ setExportable(exportable: boolean): OverGridField;
497
+ setWidth(width: string): OverGridField;
498
+ setFilterKey(filterKey: string): OverGridField;
499
+ setOrderable(orderable: boolean): OverGridField;
500
+ setFormatter(type: string, config?: any): OverGridField;
501
+ setMiddleware(middleware: (data: any, record: any) => any): OverGridField;
502
+ setExportMiddleware(exportMiddleware: (data: any, record: any, format?: string) => any): OverGridField;
503
+ commit(): OverGridFields;
504
+ }
505
+
506
+ declare class OverGridFields {
507
+ mapping: Ref<OverGridField[]>;
508
+ actionButtonFieldCounter: number;
509
+ constructor();
510
+ mappingVisible: () => OverGridField[];
511
+ addField(key: string, title: string): OverGridField;
512
+ addNumberField(key: string, title: string, extraConfig?: any): OverGridField;
513
+ addTextField(key: string, title: string, extraConfig?: any): OverGridField;
514
+ addDateField(key: string, title: string, extraConfig?: any): OverGridField;
515
+ addEnumField(key: string, title: string, enumMapping: OverGridEnumMapping, extraConfig?: any): OverGridField;
516
+ addBooleanField(key: string, title: string, extraConfig?: any): OverGridField;
517
+ addActionButtonField(title: string, buttons: OverGridActionButton[]): OverGridField;
537
518
  }
538
519
 
539
520
  export declare interface OverGridOrderConfig {