quasar-factory-lib 0.0.70 → 0.0.72
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 +3 -0
- package/dist/components/Table/components/TableSlotBody.vue.d.ts +2 -0
- package/dist/components/Table/components/TableSlotGrid.vue.d.ts +1 -0
- package/dist/layouts/PdaLayout.vue.d.ts +3 -0
- package/dist/pages/TablePage.vue.d.ts +5 -10
- package/dist/quasar-factory-lib.js +9 -3
- package/dist/quasar-factory-lib.umd.cjs +8 -8
- package/package.json +1 -1
- package/src/components/Table/components/TableSlotBody.vue +14 -3
- package/src/components/Table/components/TableSlotGrid.vue +12 -1
- package/src/pages/TablePage.vue +13 -4
|
@@ -289,8 +289,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
289
289
|
showColumButton: boolean;
|
|
290
290
|
showBadge: boolean;
|
|
291
291
|
showIconWithToolTip: boolean;
|
|
292
|
+
showCustomizedButton: boolean;
|
|
292
293
|
}): boolean;
|
|
293
294
|
getBtnDisabled(tablePropsData: any, col: any): any;
|
|
295
|
+
getButtonColor(tablePropsData: any, col: any): string;
|
|
294
296
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onClickButton" | "onClickIconToolTip" | "onSaveValuePopupEdit" | "onUpdateBasicCheckboxValue" | "onUpdateCustomizedCheckboxValue")[], "onClickButton" | "onClickIconToolTip" | "onSaveValuePopupEdit" | "onUpdateBasicCheckboxValue" | "onUpdateCustomizedCheckboxValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
295
297
|
tableProps: {
|
|
296
298
|
type: ObjectConstructor;
|
|
@@ -714,6 +716,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
714
716
|
showCustomizedButton: boolean;
|
|
715
717
|
}): boolean;
|
|
716
718
|
getBtnDisabled(tablePropsData: any, col: any): any;
|
|
719
|
+
getButtonColor(tablePropsData: any, col: any): string;
|
|
717
720
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onClickButton" | "onClickIconToolTip" | "onSaveValuePopupEdit" | "onUpdateBasicCheckboxValue" | "onUpdateCustomizedCheckboxValue" | "onClickIcon")[], "onClickButton" | "onClickIconToolTip" | "onSaveValuePopupEdit" | "onUpdateBasicCheckboxValue" | "onUpdateCustomizedCheckboxValue" | "onClickIcon", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
718
721
|
tableProps: {
|
|
719
722
|
type: ObjectConstructor;
|
|
@@ -21,8 +21,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
21
21
|
showColumButton: boolean;
|
|
22
22
|
showBadge: boolean;
|
|
23
23
|
showIconWithToolTip: boolean;
|
|
24
|
+
showCustomizedButton: boolean;
|
|
24
25
|
}): boolean;
|
|
25
26
|
getBtnDisabled(tablePropsData: any, col: any): any;
|
|
27
|
+
getButtonColor(tablePropsData: any, col: any): string;
|
|
26
28
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onClickButton" | "onClickIconToolTip" | "onSaveValuePopupEdit" | "onUpdateBasicCheckboxValue" | "onUpdateCustomizedCheckboxValue")[], "onClickButton" | "onClickIconToolTip" | "onSaveValuePopupEdit" | "onUpdateBasicCheckboxValue" | "onUpdateCustomizedCheckboxValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
27
29
|
tableProps: {
|
|
28
30
|
type: ObjectConstructor;
|
|
@@ -28,6 +28,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
28
28
|
showCustomizedButton: boolean;
|
|
29
29
|
}): boolean;
|
|
30
30
|
getBtnDisabled(tablePropsData: any, col: any): any;
|
|
31
|
+
getButtonColor(tablePropsData: any, col: any): string;
|
|
31
32
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onClickButton" | "onClickIconToolTip" | "onSaveValuePopupEdit" | "onUpdateBasicCheckboxValue" | "onUpdateCustomizedCheckboxValue" | "onClickIcon")[], "onClickButton" | "onClickIconToolTip" | "onSaveValuePopupEdit" | "onUpdateBasicCheckboxValue" | "onUpdateCustomizedCheckboxValue" | "onClickIcon", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
32
33
|
tableProps: {
|
|
33
34
|
type: ObjectConstructor;
|
|
@@ -687,8 +687,10 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
687
687
|
showColumButton: boolean;
|
|
688
688
|
showBadge: boolean;
|
|
689
689
|
showIconWithToolTip: boolean;
|
|
690
|
+
showCustomizedButton: boolean;
|
|
690
691
|
}): boolean;
|
|
691
692
|
getBtnDisabled(tablePropsData: any, col: any): any;
|
|
693
|
+
getButtonColor(tablePropsData: any, col: any): string;
|
|
692
694
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onClickButton" | "onClickIconToolTip" | "onSaveValuePopupEdit" | "onUpdateBasicCheckboxValue" | "onUpdateCustomizedCheckboxValue")[], "onClickButton" | "onClickIconToolTip" | "onSaveValuePopupEdit" | "onUpdateBasicCheckboxValue" | "onUpdateCustomizedCheckboxValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
693
695
|
tableProps: {
|
|
694
696
|
type: ObjectConstructor;
|
|
@@ -1112,6 +1114,7 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
1112
1114
|
showCustomizedButton: boolean;
|
|
1113
1115
|
}): boolean;
|
|
1114
1116
|
getBtnDisabled(tablePropsData: any, col: any): any;
|
|
1117
|
+
getButtonColor(tablePropsData: any, col: any): string;
|
|
1115
1118
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onClickButton" | "onClickIconToolTip" | "onSaveValuePopupEdit" | "onUpdateBasicCheckboxValue" | "onUpdateCustomizedCheckboxValue" | "onClickIcon")[], "onClickButton" | "onClickIconToolTip" | "onSaveValuePopupEdit" | "onUpdateBasicCheckboxValue" | "onUpdateCustomizedCheckboxValue" | "onClickIcon", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1116
1119
|
tableProps: {
|
|
1117
1120
|
type: ObjectConstructor;
|
|
@@ -35,7 +35,6 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
35
35
|
btnIcon?: undefined;
|
|
36
36
|
btnEmit?: undefined;
|
|
37
37
|
dataCy?: undefined;
|
|
38
|
-
btnColor?: undefined;
|
|
39
38
|
format?: undefined;
|
|
40
39
|
showBadge?: undefined;
|
|
41
40
|
badgeDataCy?: undefined;
|
|
@@ -78,7 +77,6 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
78
77
|
btnIcon?: undefined;
|
|
79
78
|
btnEmit?: undefined;
|
|
80
79
|
dataCy?: undefined;
|
|
81
|
-
btnColor?: undefined;
|
|
82
80
|
format?: undefined;
|
|
83
81
|
showBadge?: undefined;
|
|
84
82
|
badgeDataCy?: undefined;
|
|
@@ -121,7 +119,6 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
121
119
|
btnIcon?: undefined;
|
|
122
120
|
btnEmit?: undefined;
|
|
123
121
|
dataCy?: undefined;
|
|
124
|
-
btnColor?: undefined;
|
|
125
122
|
format?: undefined;
|
|
126
123
|
showBadge?: undefined;
|
|
127
124
|
badgeDataCy?: undefined;
|
|
@@ -164,7 +161,6 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
164
161
|
btnIcon?: undefined;
|
|
165
162
|
btnEmit?: undefined;
|
|
166
163
|
dataCy?: undefined;
|
|
167
|
-
btnColor?: undefined;
|
|
168
164
|
format?: undefined;
|
|
169
165
|
showBadge?: undefined;
|
|
170
166
|
badgeDataCy?: undefined;
|
|
@@ -194,7 +190,6 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
194
190
|
btnIcon: string;
|
|
195
191
|
btnEmit: string;
|
|
196
192
|
dataCy: string;
|
|
197
|
-
btnColor: string;
|
|
198
193
|
required?: undefined;
|
|
199
194
|
showBasicCheckbox?: undefined;
|
|
200
195
|
showCustomizedIcon?: undefined;
|
|
@@ -261,7 +256,6 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
261
256
|
btnIcon?: undefined;
|
|
262
257
|
btnEmit?: undefined;
|
|
263
258
|
dataCy?: undefined;
|
|
264
|
-
btnColor?: undefined;
|
|
265
259
|
showCustomizedCheckBox?: undefined;
|
|
266
260
|
checkedIcon?: undefined;
|
|
267
261
|
uncheckedIcon?: undefined;
|
|
@@ -303,7 +297,6 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
303
297
|
btnIcon?: undefined;
|
|
304
298
|
btnEmit?: undefined;
|
|
305
299
|
dataCy?: undefined;
|
|
306
|
-
btnColor?: undefined;
|
|
307
300
|
format?: undefined;
|
|
308
301
|
showBadge?: undefined;
|
|
309
302
|
badgeDataCy?: undefined;
|
|
@@ -341,7 +334,6 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
341
334
|
btnIcon?: undefined;
|
|
342
335
|
btnEmit?: undefined;
|
|
343
336
|
dataCy?: undefined;
|
|
344
|
-
btnColor?: undefined;
|
|
345
337
|
format?: undefined;
|
|
346
338
|
showBadge?: undefined;
|
|
347
339
|
badgeDataCy?: undefined;
|
|
@@ -394,7 +386,6 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
394
386
|
showCustomizedButton?: undefined;
|
|
395
387
|
btnIcon?: undefined;
|
|
396
388
|
btnEmit?: undefined;
|
|
397
|
-
btnColor?: undefined;
|
|
398
389
|
format?: undefined;
|
|
399
390
|
showBadge?: undefined;
|
|
400
391
|
badgeDataCy?: undefined;
|
|
@@ -432,7 +423,6 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
432
423
|
btnIcon?: undefined;
|
|
433
424
|
btnEmit?: undefined;
|
|
434
425
|
dataCy?: undefined;
|
|
435
|
-
btnColor?: undefined;
|
|
436
426
|
format?: undefined;
|
|
437
427
|
showBadge?: undefined;
|
|
438
428
|
badgeDataCy?: undefined;
|
|
@@ -473,6 +463,8 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
473
463
|
getRows(): void;
|
|
474
464
|
getBadgeColor(carbs: number): "secondary" | "negative";
|
|
475
465
|
getBadgeText(carbs: number): "header.hello" | "global.total";
|
|
466
|
+
getBtnColorCaseStart(row: any): "amber" | "black";
|
|
467
|
+
getBtnColorCasePause(row: any): "purple" | "green";
|
|
476
468
|
getBtnDisable(row: any): boolean;
|
|
477
469
|
getBtnDisable2(row: any): boolean;
|
|
478
470
|
getIconWithToolTipName(carbs: number): "warning" | "home";
|
|
@@ -775,8 +767,10 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
775
767
|
showColumButton: boolean;
|
|
776
768
|
showBadge: boolean;
|
|
777
769
|
showIconWithToolTip: boolean;
|
|
770
|
+
showCustomizedButton: boolean;
|
|
778
771
|
}): boolean;
|
|
779
772
|
getBtnDisabled(tablePropsData: any, col: any): any;
|
|
773
|
+
getButtonColor(tablePropsData: any, col: any): string;
|
|
780
774
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onClickButton" | "onClickIconToolTip" | "onSaveValuePopupEdit" | "onUpdateBasicCheckboxValue" | "onUpdateCustomizedCheckboxValue")[], "onClickButton" | "onClickIconToolTip" | "onSaveValuePopupEdit" | "onUpdateBasicCheckboxValue" | "onUpdateCustomizedCheckboxValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
781
775
|
tableProps: {
|
|
782
776
|
type: ObjectConstructor;
|
|
@@ -1200,6 +1194,7 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
1200
1194
|
showCustomizedButton: boolean;
|
|
1201
1195
|
}): boolean;
|
|
1202
1196
|
getBtnDisabled(tablePropsData: any, col: any): any;
|
|
1197
|
+
getButtonColor(tablePropsData: any, col: any): string;
|
|
1203
1198
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onClickButton" | "onClickIconToolTip" | "onSaveValuePopupEdit" | "onUpdateBasicCheckboxValue" | "onUpdateCustomizedCheckboxValue" | "onClickIcon")[], "onClickButton" | "onClickIconToolTip" | "onSaveValuePopupEdit" | "onUpdateBasicCheckboxValue" | "onUpdateCustomizedCheckboxValue" | "onClickIcon", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1204
1199
|
tableProps: {
|
|
1205
1200
|
type: ObjectConstructor;
|
|
@@ -7427,10 +7427,13 @@ const Nc = /* @__PURE__ */ Ke(cv, [["render", dv]]), fv = {
|
|
|
7427
7427
|
},
|
|
7428
7428
|
methods: {
|
|
7429
7429
|
getColumnValue(e) {
|
|
7430
|
-
return !(e.showBasicCheckbox || e.showCustomizedCheckBox || e.showCustomizedIcon || e.showColumButton || e.showBadge || e.showIconWithToolTip);
|
|
7430
|
+
return !(e.showBasicCheckbox || e.showCustomizedCheckBox || e.showCustomizedIcon || e.showColumButton || e.showBadge || e.showIconWithToolTip || e.showCustomizedButton);
|
|
7431
7431
|
},
|
|
7432
7432
|
getBtnDisabled(e, t) {
|
|
7433
7433
|
return t.field === "btnStart" ? e.row.btnStartDisabled : t.field === "btnPause" ? e.row.btnPauseDisabled : !1;
|
|
7434
|
+
},
|
|
7435
|
+
getButtonColor(e, t) {
|
|
7436
|
+
return t.btnColor ? t.btnColor : t.field === "btnStart" ? e.row.btnColorCaseStart : t.field === "btnPause" ? e.row.btnColorCasePause : "primary";
|
|
7434
7437
|
}
|
|
7435
7438
|
}
|
|
7436
7439
|
}, mv = ["innerHTML"];
|
|
@@ -7525,7 +7528,7 @@ function gv(e, t, n, o, r, l) {
|
|
|
7525
7528
|
c.showCustomizedButton ? (ee(), ue(f, {
|
|
7526
7529
|
key: 7,
|
|
7527
7530
|
"data-cy": c.colButtonDataCy + "-" + r.tablePropsData.row.id,
|
|
7528
|
-
"btn-color":
|
|
7531
|
+
"btn-color": l.getButtonColor(r.tablePropsData, c),
|
|
7529
7532
|
"btn-icon": c.btnIcon || "",
|
|
7530
7533
|
"btn-disable": l.getBtnDisabled(r.tablePropsData, c),
|
|
7531
7534
|
onOnClickButton: () => {
|
|
@@ -7647,6 +7650,9 @@ const vv = /* @__PURE__ */ Ke(fv, [["render", gv]]), Vr = Te({
|
|
|
7647
7650
|
},
|
|
7648
7651
|
getBtnDisabled(e, t) {
|
|
7649
7652
|
return t.field === "btnStart" ? e.row.btnStartDisabled : t.field === "btnPause" ? e.row.btnPauseDisabled : !1;
|
|
7653
|
+
},
|
|
7654
|
+
getButtonColor(e, t) {
|
|
7655
|
+
return t.btnColor ? t.btnColor : t.field === "btnStart" ? e.row.btnColorCaseStart : t.field === "btnPause" ? e.row.btnColorCasePause : "primary";
|
|
7650
7656
|
}
|
|
7651
7657
|
}
|
|
7652
7658
|
}, _v = ["id"], pv = ["innerHTML"];
|
|
@@ -7784,7 +7790,7 @@ function bv(e, t, n, o, r, l) {
|
|
|
7784
7790
|
c.showCustomizedButton ? (ee(), ue(f, {
|
|
7785
7791
|
key: 0,
|
|
7786
7792
|
"data-cy": c.colButtonDataCy + "-" + r.tablePropsData.row.id,
|
|
7787
|
-
"btn-color":
|
|
7793
|
+
"btn-color": l.getButtonColor(r.tablePropsData, c),
|
|
7788
7794
|
"btn-icon": c.btnIcon || "",
|
|
7789
7795
|
"btn-disable": l.getBtnDisabled(r.tablePropsData, c),
|
|
7790
7796
|
onOnClickButton: () => {
|