quasar-factory-lib 0.0.49 → 0.0.51
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 +27 -6
- package/dist/layouts/PdaLayout.vue.d.ts +28 -6
- package/dist/pages/TablePage.vue.d.ts +29 -39
- package/dist/quasar-factory-lib.js +345 -325
- package/dist/quasar-factory-lib.umd.cjs +9 -9
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/Table/Table.vue +58 -39
- package/src/components/Table/components/TableSlotGrid.vue +3 -3
- package/src/components/Table/css/table.css +3 -0
- package/src/components/Table/utils/setTableHeight.ts +7 -6
- package/src/css/app.css +2 -2
- package/src/layouts/PdaLayout.vue +7 -3
- package/src/pages/TablePage.vue +40 -18
|
@@ -50,11 +50,19 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
50
50
|
showSkeleton: {
|
|
51
51
|
type: BooleanConstructor;
|
|
52
52
|
};
|
|
53
|
+
getCellClass: {
|
|
54
|
+
type: FunctionConstructor;
|
|
55
|
+
default: () => void;
|
|
56
|
+
};
|
|
53
57
|
filterComputedOptions: {
|
|
54
58
|
type: ObjectConstructor;
|
|
55
59
|
default: {};
|
|
56
60
|
};
|
|
57
|
-
|
|
61
|
+
additionalFilterConditions: {
|
|
62
|
+
type: FunctionConstructor;
|
|
63
|
+
default: () => void;
|
|
64
|
+
};
|
|
65
|
+
additionalSortConditions: {
|
|
58
66
|
type: FunctionConstructor;
|
|
59
67
|
default: () => void;
|
|
60
68
|
};
|
|
@@ -71,7 +79,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
71
79
|
forceRender: boolean;
|
|
72
80
|
totalPage: number;
|
|
73
81
|
pageSize: number;
|
|
74
|
-
filteredRows: object | [];
|
|
82
|
+
filteredRows: object[] | [];
|
|
75
83
|
}, {
|
|
76
84
|
getColumnsSelectorVisibility(): boolean;
|
|
77
85
|
getTableInputSearchVisibility(): boolean;
|
|
@@ -98,10 +106,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
98
106
|
toogleColumnsSelectorVisibility(): void;
|
|
99
107
|
filterInputFocus(): void;
|
|
100
108
|
toogleLoading(): void;
|
|
101
|
-
customSortMethod(rows:
|
|
102
|
-
|
|
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: {
|
|
103
113
|
search: string;
|
|
104
|
-
|
|
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[];
|
|
@@ -154,11 +165,19 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
154
165
|
showSkeleton: {
|
|
155
166
|
type: BooleanConstructor;
|
|
156
167
|
};
|
|
168
|
+
getCellClass: {
|
|
169
|
+
type: FunctionConstructor;
|
|
170
|
+
default: () => void;
|
|
171
|
+
};
|
|
157
172
|
filterComputedOptions: {
|
|
158
173
|
type: ObjectConstructor;
|
|
159
174
|
default: {};
|
|
160
175
|
};
|
|
161
|
-
|
|
176
|
+
additionalFilterConditions: {
|
|
177
|
+
type: FunctionConstructor;
|
|
178
|
+
default: () => void;
|
|
179
|
+
};
|
|
180
|
+
additionalSortConditions: {
|
|
162
181
|
type: FunctionConstructor;
|
|
163
182
|
default: () => void;
|
|
164
183
|
};
|
|
@@ -184,6 +203,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
184
203
|
hideFilter: boolean;
|
|
185
204
|
showSkeleton: boolean;
|
|
186
205
|
filterComputedOptions: Record<string, any>;
|
|
206
|
+
additionalFilterConditions: Function;
|
|
207
|
+
additionalSortConditions: Function;
|
|
187
208
|
}, {}, {
|
|
188
209
|
TableSlotHeader: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
189
210
|
tableProps: {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
2
|
+
smallDevice: boolean;
|
|
2
3
|
showDialog: boolean;
|
|
3
4
|
store: import("pinia").Store<"tableStore", {
|
|
4
5
|
disableScannerButtons: import("@vueuse/shared").RemovableRef<boolean>;
|
|
@@ -387,11 +388,19 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
387
388
|
showSkeleton: {
|
|
388
389
|
type: BooleanConstructor;
|
|
389
390
|
};
|
|
391
|
+
getCellClass: {
|
|
392
|
+
type: FunctionConstructor;
|
|
393
|
+
default: () => void;
|
|
394
|
+
};
|
|
390
395
|
filterComputedOptions: {
|
|
391
396
|
type: ObjectConstructor;
|
|
392
397
|
default: {};
|
|
393
398
|
};
|
|
394
|
-
|
|
399
|
+
additionalFilterConditions: {
|
|
400
|
+
type: FunctionConstructor;
|
|
401
|
+
default: () => void;
|
|
402
|
+
};
|
|
403
|
+
additionalSortConditions: {
|
|
395
404
|
type: FunctionConstructor;
|
|
396
405
|
default: () => void;
|
|
397
406
|
};
|
|
@@ -408,7 +417,7 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
408
417
|
forceRender: boolean;
|
|
409
418
|
totalPage: number;
|
|
410
419
|
pageSize: number;
|
|
411
|
-
filteredRows: object | [];
|
|
420
|
+
filteredRows: object[] | [];
|
|
412
421
|
}, {
|
|
413
422
|
getColumnsSelectorVisibility(): boolean;
|
|
414
423
|
getTableInputSearchVisibility(): boolean;
|
|
@@ -435,10 +444,13 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
435
444
|
toogleColumnsSelectorVisibility(): void;
|
|
436
445
|
filterInputFocus(): void;
|
|
437
446
|
toogleLoading(): void;
|
|
438
|
-
customSortMethod(rows:
|
|
439
|
-
|
|
447
|
+
customSortMethod(rows: object[] | [], sortBy: string, descending: boolean): any;
|
|
448
|
+
getSortedData(sortBy: string, data: object[] | [], descending: boolean): void;
|
|
449
|
+
containsSearchTermInRow(row: object, lowerSearch: string): boolean;
|
|
450
|
+
customFilter(rows: object[] | [], terms: {
|
|
440
451
|
search: string;
|
|
441
|
-
|
|
452
|
+
prepared: boolean;
|
|
453
|
+
}): any;
|
|
442
454
|
}, 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<{
|
|
443
455
|
columns: {
|
|
444
456
|
type: () => object[];
|
|
@@ -491,11 +503,19 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
491
503
|
showSkeleton: {
|
|
492
504
|
type: BooleanConstructor;
|
|
493
505
|
};
|
|
506
|
+
getCellClass: {
|
|
507
|
+
type: FunctionConstructor;
|
|
508
|
+
default: () => void;
|
|
509
|
+
};
|
|
494
510
|
filterComputedOptions: {
|
|
495
511
|
type: ObjectConstructor;
|
|
496
512
|
default: {};
|
|
497
513
|
};
|
|
498
|
-
|
|
514
|
+
additionalFilterConditions: {
|
|
515
|
+
type: FunctionConstructor;
|
|
516
|
+
default: () => void;
|
|
517
|
+
};
|
|
518
|
+
additionalSortConditions: {
|
|
499
519
|
type: FunctionConstructor;
|
|
500
520
|
default: () => void;
|
|
501
521
|
};
|
|
@@ -521,6 +541,8 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
521
541
|
hideFilter: boolean;
|
|
522
542
|
showSkeleton: boolean;
|
|
523
543
|
filterComputedOptions: Record<string, any>;
|
|
544
|
+
additionalFilterConditions: Function;
|
|
545
|
+
additionalSortConditions: Function;
|
|
524
546
|
}, {}, {
|
|
525
547
|
TableSlotHeader: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
526
548
|
tableProps: {
|
|
@@ -240,34 +240,6 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
240
240
|
label: string;
|
|
241
241
|
align: string;
|
|
242
242
|
field: string;
|
|
243
|
-
required?: undefined;
|
|
244
|
-
sortable?: undefined;
|
|
245
|
-
showBasicCheckbox?: undefined;
|
|
246
|
-
showCustomizedIcon?: undefined;
|
|
247
|
-
editable?: undefined;
|
|
248
|
-
showEditIcon?: undefined;
|
|
249
|
-
popupEditEmit?: undefined;
|
|
250
|
-
popupEditInputtype?: undefined;
|
|
251
|
-
popupEditDataCy?: undefined;
|
|
252
|
-
popupEditMask?: undefined;
|
|
253
|
-
showCustomizedButton?: undefined;
|
|
254
|
-
btnIcon?: undefined;
|
|
255
|
-
btnEmit?: undefined;
|
|
256
|
-
dataCy?: undefined;
|
|
257
|
-
btnColor?: undefined;
|
|
258
|
-
format?: undefined;
|
|
259
|
-
showCustomizedCheckBox?: undefined;
|
|
260
|
-
checkedIcon?: undefined;
|
|
261
|
-
uncheckedIcon?: undefined;
|
|
262
|
-
checkBoxColorCaseTrue?: undefined;
|
|
263
|
-
checkBoxColorCaseFalse?: undefined;
|
|
264
|
-
checkBoxDataCy?: undefined;
|
|
265
|
-
showInputPopupEdit?: undefined;
|
|
266
|
-
} | {
|
|
267
|
-
name: string;
|
|
268
|
-
label: string;
|
|
269
|
-
field: string;
|
|
270
|
-
align: string;
|
|
271
243
|
sortable: boolean;
|
|
272
244
|
required?: undefined;
|
|
273
245
|
showBasicCheckbox?: undefined;
|
|
@@ -309,18 +281,15 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
309
281
|
iron: string;
|
|
310
282
|
}[];
|
|
311
283
|
visibleColumns: never[];
|
|
312
|
-
sortDateValues: string[];
|
|
313
|
-
filteredRows: never[];
|
|
314
284
|
}, {}, {
|
|
315
285
|
getRows(): void;
|
|
316
286
|
saveSelectedColumns(columns: string[]): void;
|
|
317
|
-
filterMethod(rows: string | [], terms: {
|
|
318
|
-
search: string;
|
|
319
|
-
}): object[] | [];
|
|
320
287
|
onUpdateBasicCheckboxValue(rows: object[]): void;
|
|
321
288
|
onUpdateCustomizedCheckboxValue(rows: object[]): void;
|
|
322
289
|
setItemNotFound(rows: object[]): void;
|
|
323
290
|
getCellClass(row: any, col: any): "" | "text-color-negative-bold";
|
|
291
|
+
additionalFilterConditions(rows_: object[] | [], filteredRowsParam_: object[] | []): [] | object[];
|
|
292
|
+
additionalSortConditions(filteredRowsData: object[] | [], rows: object[] | []): object[] | undefined;
|
|
324
293
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {
|
|
325
294
|
Table: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
326
295
|
columns: {
|
|
@@ -374,11 +343,19 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
374
343
|
showSkeleton: {
|
|
375
344
|
type: BooleanConstructor;
|
|
376
345
|
};
|
|
346
|
+
getCellClass: {
|
|
347
|
+
type: FunctionConstructor;
|
|
348
|
+
default: () => void;
|
|
349
|
+
};
|
|
377
350
|
filterComputedOptions: {
|
|
378
351
|
type: ObjectConstructor;
|
|
379
352
|
default: {};
|
|
380
353
|
};
|
|
381
|
-
|
|
354
|
+
additionalFilterConditions: {
|
|
355
|
+
type: FunctionConstructor;
|
|
356
|
+
default: () => void;
|
|
357
|
+
};
|
|
358
|
+
additionalSortConditions: {
|
|
382
359
|
type: FunctionConstructor;
|
|
383
360
|
default: () => void;
|
|
384
361
|
};
|
|
@@ -395,7 +372,7 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
395
372
|
forceRender: boolean;
|
|
396
373
|
totalPage: number;
|
|
397
374
|
pageSize: number;
|
|
398
|
-
filteredRows: object | [];
|
|
375
|
+
filteredRows: object[] | [];
|
|
399
376
|
}, {
|
|
400
377
|
getColumnsSelectorVisibility(): boolean;
|
|
401
378
|
getTableInputSearchVisibility(): boolean;
|
|
@@ -422,10 +399,13 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
422
399
|
toogleColumnsSelectorVisibility(): void;
|
|
423
400
|
filterInputFocus(): void;
|
|
424
401
|
toogleLoading(): void;
|
|
425
|
-
customSortMethod(rows:
|
|
426
|
-
|
|
402
|
+
customSortMethod(rows: object[] | [], sortBy: string, descending: boolean): any;
|
|
403
|
+
getSortedData(sortBy: string, data: object[] | [], descending: boolean): void;
|
|
404
|
+
containsSearchTermInRow(row: object, lowerSearch: string): boolean;
|
|
405
|
+
customFilter(rows: object[] | [], terms: {
|
|
427
406
|
search: string;
|
|
428
|
-
|
|
407
|
+
prepared: boolean;
|
|
408
|
+
}): any;
|
|
429
409
|
}, 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<{
|
|
430
410
|
columns: {
|
|
431
411
|
type: () => object[];
|
|
@@ -478,11 +458,19 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
478
458
|
showSkeleton: {
|
|
479
459
|
type: BooleanConstructor;
|
|
480
460
|
};
|
|
461
|
+
getCellClass: {
|
|
462
|
+
type: FunctionConstructor;
|
|
463
|
+
default: () => void;
|
|
464
|
+
};
|
|
481
465
|
filterComputedOptions: {
|
|
482
466
|
type: ObjectConstructor;
|
|
483
467
|
default: {};
|
|
484
468
|
};
|
|
485
|
-
|
|
469
|
+
additionalFilterConditions: {
|
|
470
|
+
type: FunctionConstructor;
|
|
471
|
+
default: () => void;
|
|
472
|
+
};
|
|
473
|
+
additionalSortConditions: {
|
|
486
474
|
type: FunctionConstructor;
|
|
487
475
|
default: () => void;
|
|
488
476
|
};
|
|
@@ -508,6 +496,8 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
508
496
|
hideFilter: boolean;
|
|
509
497
|
showSkeleton: boolean;
|
|
510
498
|
filterComputedOptions: Record<string, any>;
|
|
499
|
+
additionalFilterConditions: Function;
|
|
500
|
+
additionalSortConditions: Function;
|
|
511
501
|
}, {}, {
|
|
512
502
|
TableSlotHeader: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
513
503
|
tableProps: {
|