quasar-factory-lib 0.1.12 → 0.1.14

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.
@@ -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;
@@ -5,7 +5,6 @@ declare const infiniteScroll: {
5
5
  smallDevice: boolean;
6
6
  totalPage: number;
7
7
  }): void;
8
- handleInfiniteScrollNewTableCompositionAPi(nextTick: any, smallDevice: any, totalPage: any): void;
9
8
  handleInfiniteScrollModal(self: {
10
9
  $nextTick: (arg0: () => void) => void;
11
10
  totalPageModal: number;
@@ -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<never[]>;
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: any): void;
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<never[]>;
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: any): void;
11
+ setFilterValue(val: string): void;
12
12
  cleanTableFilter(): void;
13
13
  }>;
14
14
  tableStyle: string;
@@ -13152,7 +13152,7 @@ const q0 = Cn({
13152
13152
  this.$nextTick(() => {
13153
13153
  const t = this.smallDevice ? "q-table__grid-content" : "q-table__middle scroll", n = this.smallDevice ? "Grid" : "Table", o = document.getElementsByClassName(t), a = o.length > 0 ? o[0] : window, l = (r) => {
13154
13154
  const { scrollHeight: i, scrollTop: s, clientHeight: c } = r.target;
13155
- Math.abs(i - c - s - e) < 1 && (console.log(`[${n}] You are at the bottom!`, this.totalPage), this.totalPage++);
13155
+ Math.abs(i - c - s - e) <= 1 && (console.log(`[${n}] You are at the bottom!`, this.totalPage), this.totalPage++);
13156
13156
  };
13157
13157
  window.removeEventListener("scroll", l), a.removeEventListener("scroll", l), a.addEventListener("scroll", l);
13158
13158
  });
@@ -18609,27 +18609,11 @@ 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) < 1 && (console.log(`[${n}] You are at the bottom!`, e.$refs.table.totalPage), e.$refs.table.totalPage++);
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
  });
18616
18616
  },
18617
- handleInfiniteScrollNewTableCompositionAPi(e, t, n) {
18618
- e(() => {
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
- console.log(n, "totalPage");
18621
- const { scrollHeight: c, scrollTop: u, clientHeight: f } = s.target;
18622
- if (Math.abs(c - f - u) < 1) {
18623
- debugger;
18624
- console.log(`[${a}] You are at the bottom!`, n), n++;
18625
- }
18626
- };
18627
- window.removeEventListener("scroll", i), r.removeEventListener("scroll", i), r.addEventListener("scroll", i);
18628
- });
18629
- },
18630
- /* paginationNewTable (self: { pageLength: number; }, rows: object []): object [] {
18631
- return rows.slice(0, self.$refs.table.pageLength)
18632
- }, */
18633
18617
  handleInfiniteScrollModal(e, t) {
18634
18618
  console.log("handleInfiniteScrollModal"), e.$nextTick(() => {
18635
18619
  const n = document.getElementById(t), o = e.smallDevice ? "q-table__grid-content" : "q-table__middle scroll", l = n.getElementsByClassName(o)[0], r = (i) => {
@@ -18638,7 +18622,7 @@ const LS = {
18638
18622
  l.scrollTop + l.clientHeight >= l.scrollHeight && (console.log("[Grid] You are at the bottom!"), e.$refs.table.totalPage++);
18639
18623
  else {
18640
18624
  const { scrollHeight: c, scrollTop: u, clientHeight: f } = s;
18641
- Math.abs(c - f - u) < 1 && (console.log("[Table] You are at the bottom!"), e.$refs.table.totalPage++);
18625
+ Math.abs(c - f - u) <= 1 && (console.log("[Table] You are at the bottom!"), e.$refs.table.totalPage++);
18642
18626
  }
18643
18627
  };
18644
18628
  window.removeEventListener("scroll", r), l.removeEventListener("scroll", r), l.addEventListener("scroll", r);