quasar-factory-lib 0.1.11 → 0.1.13
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/Alert/AlertDialog.vue.d.ts +1 -1
- package/dist/components/Table/utils/sort.d.ts +4 -4
- package/dist/layouts/PdaLayout.vue.d.ts +2 -2
- package/dist/pages/AlertPage.vue.d.ts +1 -1
- package/dist/pages/TablePage.vue.d.ts +2 -2
- package/dist/quasar-factory-lib.js +6 -6
- package/dist/quasar-factory-lib.umd.cjs +2 -2
- package/dist/store/table.d.ts +3 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/SkeletonAreas/SkeletonAreas.vue +0 -1
- package/src/components/SkeletonFormCreateTask/SkeletonFormCreateTask.vue +2 -17
- package/src/components/SkeletonFormCreateTask/style.css +14 -0
- package/src/components/Table/utils/infiniteScroll.ts +3 -3
- package/src/components/Table/utils/sort.ts +46 -0
- package/src/css/app.css +1 -0
- package/src/env.d.ts +64 -0
- package/src/layouts/PdaLayout.vue +5 -5
- package/src/store/table.ts +23 -0
|
@@ -66,9 +66,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
66
66
|
dataCy: string;
|
|
67
67
|
icon: string;
|
|
68
68
|
persistent: boolean;
|
|
69
|
+
btnColor: string;
|
|
69
70
|
iconColor: string;
|
|
70
71
|
iconSize: string;
|
|
71
|
-
btnColor: string;
|
|
72
72
|
btnLabel: string;
|
|
73
73
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
74
74
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
declare const qTableSort: {
|
|
2
|
+
sortMethod<T extends Record<string, unknown>>(rows: T[], sortBy: keyof T, descending: boolean, values?: (keyof T)[]): T[];
|
|
3
|
+
sortDates<T extends Record<string, unknown>>(sortBy: keyof T, descending: boolean, rowsFlat: T[]): void;
|
|
4
|
+
};
|
|
1
5
|
export default qTableSort;
|
|
2
|
-
declare namespace qTableSort {
|
|
3
|
-
function sortMethod(rows: any, sortBy: any, descending: any, values?: any[]): any[];
|
|
4
|
-
function sortDates(sortBy: any, descending: any, rowsFlat: any): void;
|
|
5
|
-
}
|
|
@@ -4,11 +4,11 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
4
4
|
store: import("pinia").Store<"tableStore", {
|
|
5
5
|
filterValue: import("@vueuse/shared").RemovableRef<string>;
|
|
6
6
|
lastFilterValue: import("@vueuse/shared").RemovableRef<string>;
|
|
7
|
-
visiblecolumns: import("@vueuse/shared").RemovableRef<
|
|
7
|
+
visiblecolumns: import("@vueuse/shared").RemovableRef<string[]>;
|
|
8
8
|
prepared: import("@vueuse/shared").RemovableRef<boolean>;
|
|
9
9
|
user: import("@vueuse/shared").RemovableRef<{}>;
|
|
10
10
|
}, {}, {
|
|
11
|
-
setFilterValue(val:
|
|
11
|
+
setFilterValue(val: string): void;
|
|
12
12
|
cleanTableFilter(): void;
|
|
13
13
|
}>;
|
|
14
14
|
tableStyle: string;
|
|
@@ -67,9 +67,9 @@ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
67
67
|
dataCy: string;
|
|
68
68
|
icon: string;
|
|
69
69
|
persistent: boolean;
|
|
70
|
+
btnColor: string;
|
|
70
71
|
iconColor: string;
|
|
71
72
|
iconSize: string;
|
|
72
|
-
btnColor: string;
|
|
73
73
|
btnLabel: string;
|
|
74
74
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
75
75
|
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -4,11 +4,11 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
|
4
4
|
store: import("pinia").Store<"tableStore", {
|
|
5
5
|
filterValue: import("@vueuse/shared").RemovableRef<string>;
|
|
6
6
|
lastFilterValue: import("@vueuse/shared").RemovableRef<string>;
|
|
7
|
-
visiblecolumns: import("@vueuse/shared").RemovableRef<
|
|
7
|
+
visiblecolumns: import("@vueuse/shared").RemovableRef<string[]>;
|
|
8
8
|
prepared: import("@vueuse/shared").RemovableRef<boolean>;
|
|
9
9
|
user: import("@vueuse/shared").RemovableRef<{}>;
|
|
10
10
|
}, {}, {
|
|
11
|
-
setFilterValue(val:
|
|
11
|
+
setFilterValue(val: string): void;
|
|
12
12
|
cleanTableFilter(): void;
|
|
13
13
|
}>;
|
|
14
14
|
tableStyle: string;
|
|
@@ -14223,7 +14223,7 @@ function Qy(e, t, n, o, a, l) {
|
|
|
14223
14223
|
_: 1
|
|
14224
14224
|
});
|
|
14225
14225
|
}
|
|
14226
|
-
const Xy = /* @__PURE__ */ Ge(Gy, [["render", Qy]
|
|
14226
|
+
const Xy = /* @__PURE__ */ Ge(Gy, [["render", Qy]]), Zy = {
|
|
14227
14227
|
install(e) {
|
|
14228
14228
|
kn(e, "SkeletonAreas", Xy);
|
|
14229
14229
|
}
|
|
@@ -14413,7 +14413,7 @@ const r1 = /* @__PURE__ */ Ge(a1, [["render", l1]]), i1 = {
|
|
|
14413
14413
|
};
|
|
14414
14414
|
function u1(e, t, n, o, a, l) {
|
|
14415
14415
|
return Y(), We("div", null, [
|
|
14416
|
-
O(Bn, { class: "
|
|
14416
|
+
O(Bn, { class: "form-create-task fixed-center" }, {
|
|
14417
14417
|
default: V(() => [
|
|
14418
14418
|
O(Vt, null, {
|
|
14419
14419
|
default: V(() => [
|
|
@@ -14466,7 +14466,7 @@ function u1(e, t, n, o, a, l) {
|
|
|
14466
14466
|
})
|
|
14467
14467
|
]);
|
|
14468
14468
|
}
|
|
14469
|
-
const c1 = /* @__PURE__ */ Ge(s1, [["render", u1]
|
|
14469
|
+
const c1 = /* @__PURE__ */ Ge(s1, [["render", u1]]), d1 = {
|
|
14470
14470
|
install(e) {
|
|
14471
14471
|
kn(e, "SkeletonFormCreateTask", c1);
|
|
14472
14472
|
}
|
|
@@ -18609,7 +18609,7 @@ const LS = {
|
|
|
18609
18609
|
e.$nextTick(() => {
|
|
18610
18610
|
const t = e.smallDevice ? "q-table__grid-content" : "q-table__middle scroll", n = e.smallDevice ? "Grid" : "Table", o = document.getElementsByClassName(t), a = o.length > 0 ? o[0] : window, l = (r) => {
|
|
18611
18611
|
const { scrollHeight: i, scrollTop: s, clientHeight: c } = r.target;
|
|
18612
|
-
Math.abs(i - c - s)
|
|
18612
|
+
Math.abs(i - c - s) <= 1 && (console.log(`[${n}] You are at the bottom!`, e.$refs.table.totalPage), e.$refs.table.totalPage++);
|
|
18613
18613
|
};
|
|
18614
18614
|
window.removeEventListener("scroll", l), a.removeEventListener("scroll", l), a.addEventListener("scroll", l);
|
|
18615
18615
|
});
|
|
@@ -18619,7 +18619,7 @@ const LS = {
|
|
|
18619
18619
|
const o = t ? "q-table__grid-content" : "q-table__middle scroll", a = t ? "Grid" : "Table", l = document.getElementsByClassName(o), r = l.length > 0 ? l[0] : window, i = (s) => {
|
|
18620
18620
|
console.log(n, "totalPage");
|
|
18621
18621
|
const { scrollHeight: c, scrollTop: u, clientHeight: f } = s.target;
|
|
18622
|
-
if (Math.abs(c - f - u)
|
|
18622
|
+
if (Math.abs(c - f - u) <= 1) {
|
|
18623
18623
|
debugger;
|
|
18624
18624
|
console.log(`[${a}] You are at the bottom!`, n), n++;
|
|
18625
18625
|
}
|
|
@@ -18638,7 +18638,7 @@ const LS = {
|
|
|
18638
18638
|
l.scrollTop + l.clientHeight >= l.scrollHeight && (console.log("[Grid] You are at the bottom!"), e.$refs.table.totalPage++);
|
|
18639
18639
|
else {
|
|
18640
18640
|
const { scrollHeight: c, scrollTop: u, clientHeight: f } = s;
|
|
18641
|
-
Math.abs(c - f - u)
|
|
18641
|
+
Math.abs(c - f - u) <= 1 && (console.log("[Table] You are at the bottom!"), e.$refs.table.totalPage++);
|
|
18642
18642
|
}
|
|
18643
18643
|
};
|
|
18644
18644
|
window.removeEventListener("scroll", r), l.removeEventListener("scroll", r), l.addEventListener("scroll", r);
|