@vtable-guild/vtable-guild 2.6.1 → 2.6.2

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.
@@ -1 +1 @@
1
- {"version":3,"file":"useVirtual.d.ts","sourceRoot":"","sources":["../../../../../table/src/composables/useVirtual.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,KAAK,CAAA;AAEtC,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,OAAO,GAAG,SAAS,CAAA;IAClC,OAAO,EAAE,MAAM,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;IAC1C,IAAI,EAAE,MAAM,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAA;IACpD,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,MAAM,GAAG,SAAS,CAAA;CACrC;AAED,MAAM,WAAW,gBAAgB;IAC/B,oDAAoD;IACpD,OAAO,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;IAC7B,uDAAuD;IACvD,UAAU,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAC/B,4CAA4C;IAC5C,UAAU,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAC/B;;;;;;OAMG;IACH,WAAW,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;CAClC;AASD,wBAAgB,UAAU,CAAC,OAAO,EAAE,iBAAiB,GAAG,gBAAgB,CAwBvE"}
1
+ {"version":3,"file":"useVirtual.d.ts","sourceRoot":"","sources":["../../../../../table/src/composables/useVirtual.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,KAAK,CAAA;AAEtC,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,OAAO,GAAG,SAAS,CAAA;IAClC,OAAO,EAAE,MAAM,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;IAC1C,IAAI,EAAE,MAAM,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAA;IACpD,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,MAAM,GAAG,SAAS,CAAA;CACrC;AAED,MAAM,WAAW,gBAAgB;IAC/B,oDAAoD;IACpD,OAAO,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;IAC7B,uDAAuD;IACvD,UAAU,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAC/B,4CAA4C;IAC5C,UAAU,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAC/B;;;;;;OAMG;IACH,WAAW,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;CAClC;AAkBD,wBAAgB,UAAU,CAAC,OAAO,EAAE,iBAAiB,GAAG,gBAAgB,CAwBvE"}
@@ -1,23 +1,23 @@
1
1
  import { computed as t } from "vue";
2
- const s = {
2
+ const u = {
3
3
  small: 39,
4
4
  middle: 47,
5
5
  large: 55
6
- };
7
- function m(r) {
8
- const i = t(() => !!r.virtual() && !!r.scrollY()), n = t(() => {
6
+ }, i = "large";
7
+ function f(r) {
8
+ const l = t(() => !!r.virtual() && !!r.scrollY()), n = t(() => {
9
9
  const e = r.rowHeight?.();
10
10
  return typeof e == "number" && Number.isFinite(e) && e > 0;
11
- }), u = t(() => {
11
+ }), s = t(() => {
12
12
  if (n.value) return r.rowHeight();
13
- const e = r.size() ?? "middle";
14
- return s[e] ?? 47;
15
- }), l = t(() => {
13
+ const e = r.size() ?? i;
14
+ return u[e] ?? u[i];
15
+ }), c = t(() => {
16
16
  const e = r.scrollY();
17
17
  return typeof e == "number" ? e : typeof e == "string" && parseInt(e, 10) || 400;
18
18
  });
19
- return { enabled: i, itemHeight: u, listHeight: l, fixedHeight: n };
19
+ return { enabled: l, itemHeight: s, listHeight: c, fixedHeight: n };
20
20
  }
21
21
  export {
22
- m as useVirtual
22
+ f as useVirtual
23
23
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vtable-guild/vtable-guild",
3
- "version": "2.6.1",
3
+ "version": "2.6.2",
4
4
  "description": "Vue 3 table component with built-in virtual scrolling and switchable ant-design-vue / element-plus theme presets, powered by tailwind-variants",
5
5
  "type": "module",
6
6
  "files": [