quasar-factory-lib 0.1.20 → 0.1.22
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 +7 -1
- package/dist/layouts/PdaLayout.vue.d.ts +7 -1
- package/dist/pages/TablePage.vue.d.ts +7 -1
- package/dist/quasar-factory-lib.js +18 -16
- package/dist/quasar-factory-lib.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/Table/Table.vue +27 -18
- package/src/components/Table/css/table.css +4 -0
- package/src/layouts/PdaLayout.vue +5 -4
- package/src/layouts/PdaLayoutVueCompositionApi.vue +9 -4
|
@@ -97,6 +97,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
97
97
|
disabled: boolean;
|
|
98
98
|
enableDragAndDrop: boolean;
|
|
99
99
|
dragAndDropDelay: number;
|
|
100
|
+
nextPage: number;
|
|
100
101
|
}, {
|
|
101
102
|
getColumnsSelectorVisibility(): boolean;
|
|
102
103
|
getTableInputSearchVisibility(): boolean;
|
|
@@ -105,6 +106,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
105
106
|
getGridSkeletonVisibility(): boolean;
|
|
106
107
|
filterComputed(): object;
|
|
107
108
|
pageLength(): number;
|
|
109
|
+
lastPage(): number;
|
|
110
|
+
rowsDataComputed(): object[];
|
|
108
111
|
}, {
|
|
109
112
|
enableDragAndDropFunc(): void;
|
|
110
113
|
getSelectedString(val: number): string;
|
|
@@ -133,7 +136,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
133
136
|
}): any;
|
|
134
137
|
getAdvancedFilterColumns(): void;
|
|
135
138
|
handleInfiniteScrollTableCompositionAPi(): void;
|
|
136
|
-
onVirtualScroll(
|
|
139
|
+
onVirtualScroll({ to, ref }: {
|
|
140
|
+
to: any;
|
|
141
|
+
ref: any;
|
|
142
|
+
}): void;
|
|
137
143
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onSelectVisibleColumns" | "onClickButton" | "onClickIconToolTip" | "onSaveValuePopupEdit" | "onUpdateBasicCheckboxValue" | "onUpdateCustomizedCheckboxValue" | "modifyPriorityOrder" | "storeUpdated" | "deleteItem" | "openModalWithTable" | "setItemNotFound" | "onClickSeeTaskDetails" | "startMaintenanceTicket" | "pauseMaintenanceTicket" | "finishMaintenanceTicket" | "onRowClick" | "onUpdateSelected" | "setLineRemainingQty" | "setLineNoStock" | "onDoneLineMaintenanceTasks" | "reprintSULabel" | "onDragStart" | "onDragUpdate" | "onDragEnd" | "onClickRowBtnPrintOP" | "getPOFromWorkCenter" | "getProductionTimesMachineCenter" | "operatorMachineAssignmentAssignMachine" | "operatorMachineAssignmentSetDate" | "operatorMachineAssignmentSetPartialMachineCenter" | "operatorMachineAssignmentSeeDetail" | "onClickOpenDialogOperators")[], "onSelectVisibleColumns" | "onClickButton" | "onClickIconToolTip" | "onSaveValuePopupEdit" | "onUpdateBasicCheckboxValue" | "onUpdateCustomizedCheckboxValue" | "modifyPriorityOrder" | "storeUpdated" | "deleteItem" | "openModalWithTable" | "setItemNotFound" | "onClickSeeTaskDetails" | "startMaintenanceTicket" | "pauseMaintenanceTicket" | "finishMaintenanceTicket" | "onRowClick" | "onUpdateSelected" | "setLineRemainingQty" | "setLineNoStock" | "onDoneLineMaintenanceTasks" | "reprintSULabel" | "onDragStart" | "onDragUpdate" | "onDragEnd" | "onClickRowBtnPrintOP" | "getPOFromWorkCenter" | "getProductionTimesMachineCenter" | "operatorMachineAssignmentAssignMachine" | "operatorMachineAssignmentSetDate" | "operatorMachineAssignmentSetPartialMachineCenter" | "operatorMachineAssignmentSeeDetail" | "onClickOpenDialogOperators", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
138
144
|
columns: {
|
|
139
145
|
type: () => object[];
|
|
@@ -256,6 +256,7 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
256
256
|
disabled: boolean;
|
|
257
257
|
enableDragAndDrop: boolean;
|
|
258
258
|
dragAndDropDelay: number;
|
|
259
|
+
nextPage: number;
|
|
259
260
|
}, {
|
|
260
261
|
getColumnsSelectorVisibility(): boolean;
|
|
261
262
|
getTableInputSearchVisibility(): boolean;
|
|
@@ -264,6 +265,8 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
264
265
|
getGridSkeletonVisibility(): boolean;
|
|
265
266
|
filterComputed(): object;
|
|
266
267
|
pageLength(): number;
|
|
268
|
+
lastPage(): number;
|
|
269
|
+
rowsDataComputed(): object[];
|
|
267
270
|
}, {
|
|
268
271
|
enableDragAndDropFunc(): void;
|
|
269
272
|
getSelectedString(val: number): string;
|
|
@@ -292,7 +295,10 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
292
295
|
}): any;
|
|
293
296
|
getAdvancedFilterColumns(): void;
|
|
294
297
|
handleInfiniteScrollTableCompositionAPi(): void;
|
|
295
|
-
onVirtualScroll(
|
|
298
|
+
onVirtualScroll({ to, ref }: {
|
|
299
|
+
to: any;
|
|
300
|
+
ref: any;
|
|
301
|
+
}): void;
|
|
296
302
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onSelectVisibleColumns" | "onClickButton" | "onClickIconToolTip" | "onSaveValuePopupEdit" | "onUpdateBasicCheckboxValue" | "onUpdateCustomizedCheckboxValue" | "modifyPriorityOrder" | "storeUpdated" | "deleteItem" | "openModalWithTable" | "setItemNotFound" | "onClickSeeTaskDetails" | "startMaintenanceTicket" | "pauseMaintenanceTicket" | "finishMaintenanceTicket" | "onRowClick" | "onUpdateSelected" | "setLineRemainingQty" | "setLineNoStock" | "onDoneLineMaintenanceTasks" | "reprintSULabel" | "onDragStart" | "onDragUpdate" | "onDragEnd" | "onClickRowBtnPrintOP" | "getPOFromWorkCenter" | "getProductionTimesMachineCenter" | "operatorMachineAssignmentAssignMachine" | "operatorMachineAssignmentSetDate" | "operatorMachineAssignmentSetPartialMachineCenter" | "operatorMachineAssignmentSeeDetail" | "onClickOpenDialogOperators")[], "onSelectVisibleColumns" | "onClickButton" | "onClickIconToolTip" | "onSaveValuePopupEdit" | "onUpdateBasicCheckboxValue" | "onUpdateCustomizedCheckboxValue" | "modifyPriorityOrder" | "storeUpdated" | "deleteItem" | "openModalWithTable" | "setItemNotFound" | "onClickSeeTaskDetails" | "startMaintenanceTicket" | "pauseMaintenanceTicket" | "finishMaintenanceTicket" | "onRowClick" | "onUpdateSelected" | "setLineRemainingQty" | "setLineNoStock" | "onDoneLineMaintenanceTasks" | "reprintSULabel" | "onDragStart" | "onDragUpdate" | "onDragEnd" | "onClickRowBtnPrintOP" | "getPOFromWorkCenter" | "getProductionTimesMachineCenter" | "operatorMachineAssignmentAssignMachine" | "operatorMachineAssignmentSetDate" | "operatorMachineAssignmentSetPartialMachineCenter" | "operatorMachineAssignmentSeeDetail" | "onClickOpenDialogOperators", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
297
303
|
columns: {
|
|
298
304
|
type: () => object[];
|
|
@@ -651,6 +651,7 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
651
651
|
disabled: boolean;
|
|
652
652
|
enableDragAndDrop: boolean;
|
|
653
653
|
dragAndDropDelay: number;
|
|
654
|
+
nextPage: number;
|
|
654
655
|
}, {
|
|
655
656
|
getColumnsSelectorVisibility(): boolean;
|
|
656
657
|
getTableInputSearchVisibility(): boolean;
|
|
@@ -659,6 +660,8 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
659
660
|
getGridSkeletonVisibility(): boolean;
|
|
660
661
|
filterComputed(): object;
|
|
661
662
|
pageLength(): number;
|
|
663
|
+
lastPage(): number;
|
|
664
|
+
rowsDataComputed(): object[];
|
|
662
665
|
}, {
|
|
663
666
|
enableDragAndDropFunc(): void;
|
|
664
667
|
getSelectedString(val: number): string;
|
|
@@ -687,7 +690,10 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
687
690
|
}): any;
|
|
688
691
|
getAdvancedFilterColumns(): void;
|
|
689
692
|
handleInfiniteScrollTableCompositionAPi(): void;
|
|
690
|
-
onVirtualScroll(
|
|
693
|
+
onVirtualScroll({ to, ref }: {
|
|
694
|
+
to: any;
|
|
695
|
+
ref: any;
|
|
696
|
+
}): void;
|
|
691
697
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onSelectVisibleColumns" | "onClickButton" | "onClickIconToolTip" | "onSaveValuePopupEdit" | "onUpdateBasicCheckboxValue" | "onUpdateCustomizedCheckboxValue" | "modifyPriorityOrder" | "storeUpdated" | "deleteItem" | "openModalWithTable" | "setItemNotFound" | "onClickSeeTaskDetails" | "startMaintenanceTicket" | "pauseMaintenanceTicket" | "finishMaintenanceTicket" | "onRowClick" | "onUpdateSelected" | "setLineRemainingQty" | "setLineNoStock" | "onDoneLineMaintenanceTasks" | "reprintSULabel" | "onDragStart" | "onDragUpdate" | "onDragEnd" | "onClickRowBtnPrintOP" | "getPOFromWorkCenter" | "getProductionTimesMachineCenter" | "operatorMachineAssignmentAssignMachine" | "operatorMachineAssignmentSetDate" | "operatorMachineAssignmentSetPartialMachineCenter" | "operatorMachineAssignmentSeeDetail" | "onClickOpenDialogOperators")[], "onSelectVisibleColumns" | "onClickButton" | "onClickIconToolTip" | "onSaveValuePopupEdit" | "onUpdateBasicCheckboxValue" | "onUpdateCustomizedCheckboxValue" | "modifyPriorityOrder" | "storeUpdated" | "deleteItem" | "openModalWithTable" | "setItemNotFound" | "onClickSeeTaskDetails" | "startMaintenanceTicket" | "pauseMaintenanceTicket" | "finishMaintenanceTicket" | "onRowClick" | "onUpdateSelected" | "setLineRemainingQty" | "setLineNoStock" | "onDoneLineMaintenanceTasks" | "reprintSULabel" | "onDragStart" | "onDragUpdate" | "onDragEnd" | "onClickRowBtnPrintOP" | "getPOFromWorkCenter" | "getProductionTimesMachineCenter" | "operatorMachineAssignmentAssignMachine" | "operatorMachineAssignmentSetDate" | "operatorMachineAssignmentSetPartialMachineCenter" | "operatorMachineAssignmentSeeDetail" | "onClickOpenDialogOperators", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
692
698
|
columns: {
|
|
693
699
|
type: () => object[];
|
|
@@ -12972,7 +12972,8 @@ const U0 = kn({
|
|
|
12972
12972
|
draggableInstance: null,
|
|
12973
12973
|
disabled: !1,
|
|
12974
12974
|
enableDragAndDrop: !1,
|
|
12975
|
-
dragAndDropDelay: 0
|
|
12975
|
+
dragAndDropDelay: 0,
|
|
12976
|
+
nextPage: 2
|
|
12976
12977
|
};
|
|
12977
12978
|
},
|
|
12978
12979
|
computed: {
|
|
@@ -13000,6 +13001,12 @@ const U0 = kn({
|
|
|
13000
13001
|
},
|
|
13001
13002
|
pageLength() {
|
|
13002
13003
|
return (this.totalPage + 1) * this.pageSize;
|
|
13004
|
+
},
|
|
13005
|
+
lastPage() {
|
|
13006
|
+
return Math.ceil(this.rowsData.length / this.pageSize);
|
|
13007
|
+
},
|
|
13008
|
+
rowsDataComputed() {
|
|
13009
|
+
return this.rowsData.slice(0, this.pageSize * (this.nextPage - 1));
|
|
13003
13010
|
}
|
|
13004
13011
|
},
|
|
13005
13012
|
watch: {
|
|
@@ -13015,16 +13022,6 @@ const U0 = kn({
|
|
|
13015
13022
|
smallDevice(e) {
|
|
13016
13023
|
e ? this.dragAndDropDelay = 200 : this.dragAndDropDelay = 0;
|
|
13017
13024
|
}
|
|
13018
|
-
/* showSkeleton (val: boolean): void {
|
|
13019
|
-
if (!val) {
|
|
13020
|
-
this.handleInfiniteScrollTableCompositionAPi()
|
|
13021
|
-
}
|
|
13022
|
-
},
|
|
13023
|
-
'$q.screen.width' (): void {
|
|
13024
|
-
setTimeout(() => {
|
|
13025
|
-
this.handleInfiniteScrollTableCompositionAPi()
|
|
13026
|
-
}, 500)
|
|
13027
|
-
} */
|
|
13028
13025
|
},
|
|
13029
13026
|
mounted() {
|
|
13030
13027
|
this.getAdvancedFilterColumns();
|
|
@@ -13158,8 +13155,13 @@ const U0 = kn({
|
|
|
13158
13155
|
window.removeEventListener("scroll", a), o.removeEventListener("scroll", a), o.addEventListener("scroll", a);
|
|
13159
13156
|
});
|
|
13160
13157
|
},
|
|
13161
|
-
onVirtualScroll(e) {
|
|
13162
|
-
|
|
13158
|
+
onVirtualScroll({ to: e, ref: t }) {
|
|
13159
|
+
const n = this.rowsDataComputed.length - 1;
|
|
13160
|
+
console.log(e, n), !this.loading && this.nextPage <= this.lastPage && e === n && (this.loading = !0, setTimeout(async () => {
|
|
13161
|
+
this.nextPage++, await this.$nextTick(() => {
|
|
13162
|
+
t.refresh(), this.loading = !1;
|
|
13163
|
+
});
|
|
13164
|
+
}, 500));
|
|
13163
13165
|
}
|
|
13164
13166
|
}
|
|
13165
13167
|
}), H0 = { key: 0 };
|
|
@@ -13182,7 +13184,7 @@ function z0(e, t, n, o, a, l) {
|
|
|
13182
13184
|
style: Ji(e.tableStyle),
|
|
13183
13185
|
flat: "",
|
|
13184
13186
|
bordered: "",
|
|
13185
|
-
rows: e.
|
|
13187
|
+
rows: e.rowsDataComputed,
|
|
13186
13188
|
columns: e.columns,
|
|
13187
13189
|
"filter-method": e.customFilter,
|
|
13188
13190
|
filter: e.filterComputed,
|
|
@@ -13198,9 +13200,9 @@ function z0(e, t, n, o, a, l) {
|
|
|
13198
13200
|
"selected-rows-label": e.getSelectedString,
|
|
13199
13201
|
loading: e.loading,
|
|
13200
13202
|
"virtual-scroll": "",
|
|
13201
|
-
onVirtualScroll: e.onVirtualScroll,
|
|
13202
13203
|
"virtual-scroll-item-size": 48,
|
|
13203
|
-
"virtual-scroll-
|
|
13204
|
+
"virtual-scroll-sticky-size-start": 48,
|
|
13205
|
+
onVirtualScroll: e.onVirtualScroll
|
|
13204
13206
|
}, {
|
|
13205
13207
|
"top-right": V((m) => [
|
|
13206
13208
|
O(os),
|