quasar-factory-lib 0.0.48 → 0.0.50
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/components/Table/Table.vue.d.ts +26 -10
- package/dist/components/Table/utils/filterMethod.d.ts +1 -1
- package/dist/layouts/PdaLayout.vue.d.ts +27 -10
- package/dist/pages/TablePage.vue.d.ts +31 -40
- package/dist/quasar-factory-lib.js +435 -401
- package/dist/quasar-factory-lib.umd.cjs +9 -9
- package/dist/store/table.d.ts +1 -0
- package/package.json +1 -1
- package/src/components/Table/Table.vue +69 -17
- package/src/components/Table/utils/filterMethod.ts +3 -1
- package/src/pages/TablePage.vue +40 -6
- package/src/store/table.js +2 -1
|
@@ -11,10 +11,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
11
11
|
type: () => string[];
|
|
12
12
|
required: true;
|
|
13
13
|
};
|
|
14
|
-
filterMethod: {
|
|
15
|
-
type: FunctionConstructor;
|
|
16
|
-
default: () => void;
|
|
17
|
-
};
|
|
18
14
|
selectionType: {
|
|
19
15
|
type: () => "none" | "single" | "multiple";
|
|
20
16
|
default: string;
|
|
@@ -62,6 +58,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
62
58
|
type: FunctionConstructor;
|
|
63
59
|
default: () => void;
|
|
64
60
|
};
|
|
61
|
+
additionalFilterConditions: {
|
|
62
|
+
type: FunctionConstructor;
|
|
63
|
+
default: () => void;
|
|
64
|
+
};
|
|
65
|
+
additionalSortConditions: {
|
|
66
|
+
type: FunctionConstructor;
|
|
67
|
+
default: () => void;
|
|
68
|
+
};
|
|
65
69
|
}>, {}, {
|
|
66
70
|
selected: never[];
|
|
67
71
|
filter: string;
|
|
@@ -75,6 +79,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
75
79
|
forceRender: boolean;
|
|
76
80
|
totalPage: number;
|
|
77
81
|
pageSize: number;
|
|
82
|
+
filteredRows: object[] | [];
|
|
78
83
|
}, {
|
|
79
84
|
getColumnsSelectorVisibility(): boolean;
|
|
80
85
|
getTableInputSearchVisibility(): boolean;
|
|
@@ -101,7 +106,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
101
106
|
toogleColumnsSelectorVisibility(): void;
|
|
102
107
|
filterInputFocus(): void;
|
|
103
108
|
toogleLoading(): void;
|
|
104
|
-
customSortMethod(rows:
|
|
109
|
+
customSortMethod(rows: object[] | [], sortBy: string, descending: boolean): any;
|
|
110
|
+
getSortedData(sortBy: string, data: object[] | [], descending: boolean): void;
|
|
111
|
+
containsSearchTermInRow(row: object, lowerSearch: string): boolean;
|
|
112
|
+
customFilter(rows: object[] | [], terms: {
|
|
113
|
+
search: string;
|
|
114
|
+
prepared: boolean;
|
|
115
|
+
}): any;
|
|
105
116
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onSelectVisibleColumns" | "onClickButton" | "onSaveValuePopupEdit" | "onUpdateBasicCheckboxValue" | "onUpdateCustomizedCheckboxValue" | "storeUpdated" | "deleteItem" | "openModalWithTable" | "setItemNotFound" | "onRowClick")[], "onSelectVisibleColumns" | "onClickButton" | "onSaveValuePopupEdit" | "onUpdateBasicCheckboxValue" | "onUpdateCustomizedCheckboxValue" | "storeUpdated" | "deleteItem" | "openModalWithTable" | "setItemNotFound" | "onRowClick", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
106
117
|
columns: {
|
|
107
118
|
type: () => object[];
|
|
@@ -115,10 +126,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
115
126
|
type: () => string[];
|
|
116
127
|
required: true;
|
|
117
128
|
};
|
|
118
|
-
filterMethod: {
|
|
119
|
-
type: FunctionConstructor;
|
|
120
|
-
default: () => void;
|
|
121
|
-
};
|
|
122
129
|
selectionType: {
|
|
123
130
|
type: () => "none" | "single" | "multiple";
|
|
124
131
|
default: string;
|
|
@@ -166,6 +173,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
166
173
|
type: FunctionConstructor;
|
|
167
174
|
default: () => void;
|
|
168
175
|
};
|
|
176
|
+
additionalFilterConditions: {
|
|
177
|
+
type: FunctionConstructor;
|
|
178
|
+
default: () => void;
|
|
179
|
+
};
|
|
180
|
+
additionalSortConditions: {
|
|
181
|
+
type: FunctionConstructor;
|
|
182
|
+
default: () => void;
|
|
183
|
+
};
|
|
169
184
|
}>> & Readonly<{
|
|
170
185
|
onOnSelectVisibleColumns?: ((...args: any[]) => any) | undefined;
|
|
171
186
|
onOnClickButton?: ((...args: any[]) => any) | undefined;
|
|
@@ -181,7 +196,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
181
196
|
selectionType: "none" | "multiple" | "single";
|
|
182
197
|
popupEditNumberOptions: unknown[];
|
|
183
198
|
getCellClass: Function;
|
|
184
|
-
filterMethod: Function;
|
|
185
199
|
rowKey: string;
|
|
186
200
|
tableStyle: string;
|
|
187
201
|
tableId: string;
|
|
@@ -189,6 +203,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
189
203
|
hideFilter: boolean;
|
|
190
204
|
showSkeleton: boolean;
|
|
191
205
|
filterComputedOptions: Record<string, any>;
|
|
206
|
+
additionalFilterConditions: Function;
|
|
207
|
+
additionalSortConditions: Function;
|
|
192
208
|
}, {}, {
|
|
193
209
|
TableSlotHeader: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
194
210
|
tableProps: {
|
|
@@ -5,6 +5,7 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
5
5
|
filterValue: import("@vueuse/shared").RemovableRef<string>;
|
|
6
6
|
lastFilterValue: import("@vueuse/shared").RemovableRef<string>;
|
|
7
7
|
visiblecolumns: import("@vueuse/shared").RemovableRef<never[]>;
|
|
8
|
+
prepared: import("@vueuse/shared").RemovableRef<boolean>;
|
|
8
9
|
}, {}, {
|
|
9
10
|
setFilterValue(val: any): void;
|
|
10
11
|
cleanTableFilter(): void;
|
|
@@ -347,10 +348,6 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
347
348
|
type: () => string[];
|
|
348
349
|
required: true;
|
|
349
350
|
};
|
|
350
|
-
filterMethod: {
|
|
351
|
-
type: FunctionConstructor;
|
|
352
|
-
default: () => void;
|
|
353
|
-
};
|
|
354
351
|
selectionType: {
|
|
355
352
|
type: () => "none" | "single" | "multiple";
|
|
356
353
|
default: string;
|
|
@@ -398,6 +395,14 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
398
395
|
type: FunctionConstructor;
|
|
399
396
|
default: () => void;
|
|
400
397
|
};
|
|
398
|
+
additionalFilterConditions: {
|
|
399
|
+
type: FunctionConstructor;
|
|
400
|
+
default: () => void;
|
|
401
|
+
};
|
|
402
|
+
additionalSortConditions: {
|
|
403
|
+
type: FunctionConstructor;
|
|
404
|
+
default: () => void;
|
|
405
|
+
};
|
|
401
406
|
}>, {}, {
|
|
402
407
|
selected: never[];
|
|
403
408
|
filter: string;
|
|
@@ -411,6 +416,7 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
411
416
|
forceRender: boolean;
|
|
412
417
|
totalPage: number;
|
|
413
418
|
pageSize: number;
|
|
419
|
+
filteredRows: object[] | [];
|
|
414
420
|
}, {
|
|
415
421
|
getColumnsSelectorVisibility(): boolean;
|
|
416
422
|
getTableInputSearchVisibility(): boolean;
|
|
@@ -437,7 +443,13 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
437
443
|
toogleColumnsSelectorVisibility(): void;
|
|
438
444
|
filterInputFocus(): void;
|
|
439
445
|
toogleLoading(): void;
|
|
440
|
-
customSortMethod(rows:
|
|
446
|
+
customSortMethod(rows: object[] | [], sortBy: string, descending: boolean): any;
|
|
447
|
+
getSortedData(sortBy: string, data: object[] | [], descending: boolean): void;
|
|
448
|
+
containsSearchTermInRow(row: object, lowerSearch: string): boolean;
|
|
449
|
+
customFilter(rows: object[] | [], terms: {
|
|
450
|
+
search: string;
|
|
451
|
+
prepared: boolean;
|
|
452
|
+
}): any;
|
|
441
453
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onSelectVisibleColumns" | "onClickButton" | "onSaveValuePopupEdit" | "onUpdateBasicCheckboxValue" | "onUpdateCustomizedCheckboxValue" | "storeUpdated" | "deleteItem" | "openModalWithTable" | "setItemNotFound" | "onRowClick")[], "onSelectVisibleColumns" | "onClickButton" | "onSaveValuePopupEdit" | "onUpdateBasicCheckboxValue" | "onUpdateCustomizedCheckboxValue" | "storeUpdated" | "deleteItem" | "openModalWithTable" | "setItemNotFound" | "onRowClick", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
442
454
|
columns: {
|
|
443
455
|
type: () => object[];
|
|
@@ -451,10 +463,6 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
451
463
|
type: () => string[];
|
|
452
464
|
required: true;
|
|
453
465
|
};
|
|
454
|
-
filterMethod: {
|
|
455
|
-
type: FunctionConstructor;
|
|
456
|
-
default: () => void;
|
|
457
|
-
};
|
|
458
466
|
selectionType: {
|
|
459
467
|
type: () => "none" | "single" | "multiple";
|
|
460
468
|
default: string;
|
|
@@ -502,6 +510,14 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
502
510
|
type: FunctionConstructor;
|
|
503
511
|
default: () => void;
|
|
504
512
|
};
|
|
513
|
+
additionalFilterConditions: {
|
|
514
|
+
type: FunctionConstructor;
|
|
515
|
+
default: () => void;
|
|
516
|
+
};
|
|
517
|
+
additionalSortConditions: {
|
|
518
|
+
type: FunctionConstructor;
|
|
519
|
+
default: () => void;
|
|
520
|
+
};
|
|
505
521
|
}>> & Readonly<{
|
|
506
522
|
onOnSelectVisibleColumns?: ((...args: any[]) => any) | undefined;
|
|
507
523
|
onOnClickButton?: ((...args: any[]) => any) | undefined;
|
|
@@ -517,7 +533,6 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
517
533
|
selectionType: "none" | "multiple" | "single";
|
|
518
534
|
popupEditNumberOptions: unknown[];
|
|
519
535
|
getCellClass: Function;
|
|
520
|
-
filterMethod: Function;
|
|
521
536
|
rowKey: string;
|
|
522
537
|
tableStyle: string;
|
|
523
538
|
tableId: string;
|
|
@@ -525,6 +540,8 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
525
540
|
hideFilter: boolean;
|
|
526
541
|
showSkeleton: boolean;
|
|
527
542
|
filterComputedOptions: Record<string, any>;
|
|
543
|
+
additionalFilterConditions: Function;
|
|
544
|
+
additionalSortConditions: Function;
|
|
528
545
|
}, {}, {
|
|
529
546
|
TableSlotHeader: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
530
547
|
tableProps: {
|
|
@@ -5,6 +5,7 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
5
5
|
filterValue: import("@vueuse/shared").RemovableRef<string>;
|
|
6
6
|
lastFilterValue: import("@vueuse/shared").RemovableRef<string>;
|
|
7
7
|
visiblecolumns: import("@vueuse/shared").RemovableRef<never[]>;
|
|
8
|
+
prepared: import("@vueuse/shared").RemovableRef<boolean>;
|
|
8
9
|
}, {}, {
|
|
9
10
|
setFilterValue(val: any): void;
|
|
10
11
|
cleanTableFilter(): void;
|
|
@@ -239,34 +240,6 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
239
240
|
label: string;
|
|
240
241
|
align: string;
|
|
241
242
|
field: string;
|
|
242
|
-
required?: undefined;
|
|
243
|
-
sortable?: undefined;
|
|
244
|
-
showBasicCheckbox?: undefined;
|
|
245
|
-
showCustomizedIcon?: undefined;
|
|
246
|
-
editable?: undefined;
|
|
247
|
-
showEditIcon?: undefined;
|
|
248
|
-
popupEditEmit?: undefined;
|
|
249
|
-
popupEditInputtype?: undefined;
|
|
250
|
-
popupEditDataCy?: undefined;
|
|
251
|
-
popupEditMask?: undefined;
|
|
252
|
-
showCustomizedButton?: undefined;
|
|
253
|
-
btnIcon?: undefined;
|
|
254
|
-
btnEmit?: undefined;
|
|
255
|
-
dataCy?: undefined;
|
|
256
|
-
btnColor?: undefined;
|
|
257
|
-
format?: undefined;
|
|
258
|
-
showCustomizedCheckBox?: undefined;
|
|
259
|
-
checkedIcon?: undefined;
|
|
260
|
-
uncheckedIcon?: undefined;
|
|
261
|
-
checkBoxColorCaseTrue?: undefined;
|
|
262
|
-
checkBoxColorCaseFalse?: undefined;
|
|
263
|
-
checkBoxDataCy?: undefined;
|
|
264
|
-
showInputPopupEdit?: undefined;
|
|
265
|
-
} | {
|
|
266
|
-
name: string;
|
|
267
|
-
label: string;
|
|
268
|
-
field: string;
|
|
269
|
-
align: string;
|
|
270
243
|
sortable: boolean;
|
|
271
244
|
required?: undefined;
|
|
272
245
|
showBasicCheckbox?: undefined;
|
|
@@ -308,8 +281,6 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
308
281
|
iron: string;
|
|
309
282
|
}[];
|
|
310
283
|
visibleColumns: never[];
|
|
311
|
-
sortDateValues: string[];
|
|
312
|
-
filteredRows: never[];
|
|
313
284
|
}, {}, {
|
|
314
285
|
getRows(): void;
|
|
315
286
|
saveSelectedColumns(columns: string[]): void;
|
|
@@ -320,6 +291,10 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
320
291
|
onUpdateCustomizedCheckboxValue(rows: object[]): void;
|
|
321
292
|
setItemNotFound(rows: object[]): void;
|
|
322
293
|
getCellClass(row: any, col: any): "" | "text-color-negative-bold";
|
|
294
|
+
additionalFilterConditions(store_: {
|
|
295
|
+
prepared: boolean;
|
|
296
|
+
}, rows_: object[] | [], filteredRowsParam_: object[] | []): [] | object[];
|
|
297
|
+
additionalSortConditions(store_: any, filteredRowsData: any, rows: any): any[] | undefined;
|
|
323
298
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {
|
|
324
299
|
Table: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
325
300
|
columns: {
|
|
@@ -334,10 +309,6 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
334
309
|
type: () => string[];
|
|
335
310
|
required: true;
|
|
336
311
|
};
|
|
337
|
-
filterMethod: {
|
|
338
|
-
type: FunctionConstructor;
|
|
339
|
-
default: () => void;
|
|
340
|
-
};
|
|
341
312
|
selectionType: {
|
|
342
313
|
type: () => "none" | "single" | "multiple";
|
|
343
314
|
default: string;
|
|
@@ -385,6 +356,14 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
385
356
|
type: FunctionConstructor;
|
|
386
357
|
default: () => void;
|
|
387
358
|
};
|
|
359
|
+
additionalFilterConditions: {
|
|
360
|
+
type: FunctionConstructor;
|
|
361
|
+
default: () => void;
|
|
362
|
+
};
|
|
363
|
+
additionalSortConditions: {
|
|
364
|
+
type: FunctionConstructor;
|
|
365
|
+
default: () => void;
|
|
366
|
+
};
|
|
388
367
|
}>, {}, {
|
|
389
368
|
selected: never[];
|
|
390
369
|
filter: string;
|
|
@@ -398,6 +377,7 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
398
377
|
forceRender: boolean;
|
|
399
378
|
totalPage: number;
|
|
400
379
|
pageSize: number;
|
|
380
|
+
filteredRows: object[] | [];
|
|
401
381
|
}, {
|
|
402
382
|
getColumnsSelectorVisibility(): boolean;
|
|
403
383
|
getTableInputSearchVisibility(): boolean;
|
|
@@ -424,7 +404,13 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
424
404
|
toogleColumnsSelectorVisibility(): void;
|
|
425
405
|
filterInputFocus(): void;
|
|
426
406
|
toogleLoading(): void;
|
|
427
|
-
customSortMethod(rows:
|
|
407
|
+
customSortMethod(rows: object[] | [], sortBy: string, descending: boolean): any;
|
|
408
|
+
getSortedData(sortBy: string, data: object[] | [], descending: boolean): void;
|
|
409
|
+
containsSearchTermInRow(row: object, lowerSearch: string): boolean;
|
|
410
|
+
customFilter(rows: object[] | [], terms: {
|
|
411
|
+
search: string;
|
|
412
|
+
prepared: boolean;
|
|
413
|
+
}): any;
|
|
428
414
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onSelectVisibleColumns" | "onClickButton" | "onSaveValuePopupEdit" | "onUpdateBasicCheckboxValue" | "onUpdateCustomizedCheckboxValue" | "storeUpdated" | "deleteItem" | "openModalWithTable" | "setItemNotFound" | "onRowClick")[], "onSelectVisibleColumns" | "onClickButton" | "onSaveValuePopupEdit" | "onUpdateBasicCheckboxValue" | "onUpdateCustomizedCheckboxValue" | "storeUpdated" | "deleteItem" | "openModalWithTable" | "setItemNotFound" | "onRowClick", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
429
415
|
columns: {
|
|
430
416
|
type: () => object[];
|
|
@@ -438,10 +424,6 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
438
424
|
type: () => string[];
|
|
439
425
|
required: true;
|
|
440
426
|
};
|
|
441
|
-
filterMethod: {
|
|
442
|
-
type: FunctionConstructor;
|
|
443
|
-
default: () => void;
|
|
444
|
-
};
|
|
445
427
|
selectionType: {
|
|
446
428
|
type: () => "none" | "single" | "multiple";
|
|
447
429
|
default: string;
|
|
@@ -489,6 +471,14 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
489
471
|
type: FunctionConstructor;
|
|
490
472
|
default: () => void;
|
|
491
473
|
};
|
|
474
|
+
additionalFilterConditions: {
|
|
475
|
+
type: FunctionConstructor;
|
|
476
|
+
default: () => void;
|
|
477
|
+
};
|
|
478
|
+
additionalSortConditions: {
|
|
479
|
+
type: FunctionConstructor;
|
|
480
|
+
default: () => void;
|
|
481
|
+
};
|
|
492
482
|
}>> & Readonly<{
|
|
493
483
|
onOnSelectVisibleColumns?: ((...args: any[]) => any) | undefined;
|
|
494
484
|
onOnClickButton?: ((...args: any[]) => any) | undefined;
|
|
@@ -504,7 +494,6 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
504
494
|
selectionType: "none" | "multiple" | "single";
|
|
505
495
|
popupEditNumberOptions: unknown[];
|
|
506
496
|
getCellClass: Function;
|
|
507
|
-
filterMethod: Function;
|
|
508
497
|
rowKey: string;
|
|
509
498
|
tableStyle: string;
|
|
510
499
|
tableId: string;
|
|
@@ -512,6 +501,8 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
512
501
|
hideFilter: boolean;
|
|
513
502
|
showSkeleton: boolean;
|
|
514
503
|
filterComputedOptions: Record<string, any>;
|
|
504
|
+
additionalFilterConditions: Function;
|
|
505
|
+
additionalSortConditions: Function;
|
|
515
506
|
}, {}, {
|
|
516
507
|
TableSlotHeader: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
517
508
|
tableProps: {
|