@vtable-guild/vtable-guild 2.9.0-alpha.0 → 2.9.0-alpha.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.
Files changed (193) hide show
  1. package/css/presets/antdv.css +16 -0
  2. package/css/presets/element-plus.css +16 -0
  3. package/css/style.css +200 -0
  4. package/css/tailwind3-utilities.css +168 -0
  5. package/css/tailwind3.css +32 -0
  6. package/css/tailwind4.css +32 -0
  7. package/dist/core/src/components/Button.d.ts +9 -0
  8. package/dist/core/src/components/Button.d.ts.map +1 -1
  9. package/dist/core/src/components/Button.mjs +11 -6
  10. package/dist/core/src/utils/types.d.ts +5 -0
  11. package/dist/core/src/utils/types.d.ts.map +1 -1
  12. package/dist/css/presets/antdv.css +16 -0
  13. package/dist/css/presets/element-plus.css +16 -0
  14. package/dist/css/style.css +200 -0
  15. package/dist/css/tailwind3-utilities.css +168 -0
  16. package/dist/css/tailwind3.css +32 -0
  17. package/dist/css/tailwind4.css +32 -0
  18. package/dist/icons/src/CheckCircleFilledIcon.d.ts +3 -0
  19. package/dist/icons/src/CheckCircleFilledIcon.d.ts.map +1 -0
  20. package/dist/icons/src/CheckCircleFilledIcon.mjs +9 -0
  21. package/dist/icons/src/CloseCircleFilledIcon.d.ts +3 -0
  22. package/dist/icons/src/CloseCircleFilledIcon.d.ts.map +1 -0
  23. package/dist/icons/src/CloseCircleFilledIcon.mjs +9 -0
  24. package/dist/icons/src/index.d.ts +2 -0
  25. package/dist/icons/src/index.d.ts.map +1 -1
  26. package/dist/index.full.mjs +6240 -4423
  27. package/dist/index.mjs +125 -99
  28. package/dist/table/src/components/ExpandIcon.d.ts +18 -0
  29. package/dist/table/src/components/ExpandIcon.d.ts.map +1 -1
  30. package/dist/table/src/components/ExpandIcon.mjs +47 -17
  31. package/dist/table/src/components/FilterDropdown.d.ts +1 -1
  32. package/dist/table/src/components/Table.d.ts +41 -3
  33. package/dist/table/src/components/Table.d.ts.map +1 -1
  34. package/dist/table/src/components/Table.mjs +744 -649
  35. package/dist/table/src/components/TableBody.d.ts.map +1 -1
  36. package/dist/table/src/components/TableBody.mjs +8 -5
  37. package/dist/table/src/components/TableCell.d.ts.map +1 -1
  38. package/dist/table/src/components/TableCell.mjs +125 -94
  39. package/dist/table/src/components/TableEditableCell.d.ts +29 -0
  40. package/dist/table/src/components/TableEditableCell.d.ts.map +1 -0
  41. package/dist/table/src/components/TableEditableCell.mjs +39 -0
  42. package/dist/table/src/components/TableEditableCell.test.d.ts +2 -0
  43. package/dist/table/src/components/TableEditableCell.test.d.ts.map +1 -0
  44. package/dist/table/src/components/TableInstance.test.d.ts +2 -0
  45. package/dist/table/src/components/TableInstance.test.d.ts.map +1 -0
  46. package/dist/table/src/components/TableLazyTree.test.d.ts +2 -0
  47. package/dist/table/src/components/TableLazyTree.test.d.ts.map +1 -0
  48. package/dist/table/src/components/TableQuery.d.ts +108 -0
  49. package/dist/table/src/components/TableQuery.d.ts.map +1 -0
  50. package/dist/table/src/components/TableQuery.mjs +244 -0
  51. package/dist/table/src/components/TableQuery.test.d.ts +2 -0
  52. package/dist/table/src/components/TableQuery.test.d.ts.map +1 -0
  53. package/dist/table/src/components/VTable.vue.d.ts +5 -1
  54. package/dist/table/src/components/VTable.vue.d.ts.map +1 -1
  55. package/dist/table/src/components/VTable.vue.mjs +45 -33
  56. package/dist/table/src/components/VTableEditCell.vue.d.ts +19 -0
  57. package/dist/table/src/components/VTableEditCell.vue.d.ts.map +1 -0
  58. package/dist/table/src/components/VTableEditCell.vue.mjs +21 -0
  59. package/dist/table/src/components/VTableEditCell.vue2.mjs +4 -0
  60. package/dist/table/src/components/VTableQuery.vue.d.ts +18 -0
  61. package/dist/table/src/components/VTableQuery.vue.d.ts.map +1 -0
  62. package/dist/table/src/components/VTableQuery.vue.mjs +64 -0
  63. package/dist/table/src/components/VTableQuery.vue2.mjs +4 -0
  64. package/dist/table/src/components/VirtualTableBody.d.ts.map +1 -1
  65. package/dist/table/src/components/VirtualTableBody.mjs +128 -115
  66. package/dist/table/src/composables/useLazyTreeData.d.ts +19 -0
  67. package/dist/table/src/composables/useLazyTreeData.d.ts.map +1 -0
  68. package/dist/table/src/composables/useLazyTreeData.mjs +123 -0
  69. package/dist/table/src/composables/useLazyTreeData.test.d.ts +2 -0
  70. package/dist/table/src/composables/useLazyTreeData.test.d.ts.map +1 -0
  71. package/dist/table/src/composables/useTableDictionary.d.ts +5 -0
  72. package/dist/table/src/composables/useTableDictionary.d.ts.map +1 -0
  73. package/dist/table/src/composables/useTableDictionary.mjs +168 -0
  74. package/dist/table/src/composables/useTableDictionary.test.d.ts +2 -0
  75. package/dist/table/src/composables/useTableDictionary.test.d.ts.map +1 -0
  76. package/dist/table/src/composables/useTableEdit.d.ts +4 -0
  77. package/dist/table/src/composables/useTableEdit.d.ts.map +1 -0
  78. package/dist/table/src/composables/useTableEdit.mjs +400 -0
  79. package/dist/table/src/composables/useTableEdit.test.d.ts +2 -0
  80. package/dist/table/src/composables/useTableEdit.test.d.ts.map +1 -0
  81. package/dist/table/src/composables/useTableEditable.d.ts +4 -0
  82. package/dist/table/src/composables/useTableEditable.d.ts.map +1 -0
  83. package/dist/table/src/composables/useTableEditable.mjs +125 -0
  84. package/dist/table/src/composables/useTableEditable.test.d.ts +2 -0
  85. package/dist/table/src/composables/useTableEditable.test.d.ts.map +1 -0
  86. package/dist/table/src/composables/useTableQuery.d.ts +4 -0
  87. package/dist/table/src/composables/useTableQuery.d.ts.map +1 -0
  88. package/dist/table/src/composables/useTableQuery.mjs +54 -0
  89. package/dist/table/src/composables/useTableQuery.test.d.ts +2 -0
  90. package/dist/table/src/composables/useTableQuery.test.d.ts.map +1 -0
  91. package/dist/table/src/composables/useTableRequest.d.ts.map +1 -1
  92. package/dist/table/src/composables/useTableRequest.mjs +138 -98
  93. package/dist/table/src/composables/useTableRequest.polling.test.d.ts +2 -0
  94. package/dist/table/src/composables/useTableRequest.polling.test.d.ts.map +1 -0
  95. package/dist/table/src/composables/useTreeData.d.ts +2 -0
  96. package/dist/table/src/composables/useTreeData.d.ts.map +1 -1
  97. package/dist/table/src/composables/useTreeData.mjs +46 -51
  98. package/dist/table/src/context.d.ts +11 -0
  99. package/dist/table/src/context.d.ts.map +1 -1
  100. package/dist/table/src/controls.d.ts +4 -0
  101. package/dist/table/src/controls.d.ts.map +1 -0
  102. package/dist/table/src/controls.mjs +97 -0
  103. package/dist/table/src/controls.test.d.ts +2 -0
  104. package/dist/table/src/controls.test.d.ts.map +1 -0
  105. package/dist/table/src/index.d.ts +27 -1
  106. package/dist/table/src/index.d.ts.map +1 -1
  107. package/dist/table/src/renderers.d.ts +5 -0
  108. package/dist/table/src/renderers.d.ts.map +1 -0
  109. package/dist/table/src/renderers.mjs +117 -0
  110. package/dist/table/src/renderers.test.d.ts +2 -0
  111. package/dist/table/src/renderers.test.d.ts.map +1 -0
  112. package/dist/table/src/review-current.repro.test.d.ts +2 -0
  113. package/dist/table/src/review-current.repro.test.d.ts.map +1 -0
  114. package/dist/table/src/types/column.d.ts +8 -1
  115. package/dist/table/src/types/column.d.ts.map +1 -1
  116. package/dist/table/src/types/controls.d.ts +31 -0
  117. package/dist/table/src/types/controls.d.ts.map +1 -0
  118. package/dist/table/src/types/dictionary.d.ts +71 -0
  119. package/dist/table/src/types/dictionary.d.ts.map +1 -0
  120. package/dist/table/src/types/dictionary.typecheck.d.ts +6 -0
  121. package/dist/table/src/types/dictionary.typecheck.d.ts.map +1 -0
  122. package/dist/table/src/types/editable.d.ts +49 -0
  123. package/dist/table/src/types/editable.d.ts.map +1 -0
  124. package/dist/table/src/types/editable.typecheck.d.ts +15 -0
  125. package/dist/table/src/types/editable.typecheck.d.ts.map +1 -0
  126. package/dist/table/src/types/editing.d.ts +90 -0
  127. package/dist/table/src/types/editing.d.ts.map +1 -0
  128. package/dist/table/src/types/editing.typecheck.d.ts +11 -0
  129. package/dist/table/src/types/editing.typecheck.d.ts.map +1 -0
  130. package/dist/table/src/types/index.d.ts +9 -0
  131. package/dist/table/src/types/index.d.ts.map +1 -1
  132. package/dist/table/src/types/instance.d.ts +18 -0
  133. package/dist/table/src/types/instance.d.ts.map +1 -0
  134. package/dist/table/src/types/instance.typecheck.d.ts +3 -0
  135. package/dist/table/src/types/instance.typecheck.d.ts.map +1 -0
  136. package/dist/table/src/types/query-form.d.ts +90 -0
  137. package/dist/table/src/types/query-form.d.ts.map +1 -0
  138. package/dist/table/src/types/query-form.typecheck.d.ts +10 -0
  139. package/dist/table/src/types/query-form.typecheck.d.ts.map +1 -0
  140. package/dist/table/src/types/query.d.ts +40 -0
  141. package/dist/table/src/types/query.d.ts.map +1 -0
  142. package/dist/table/src/types/query.typecheck.d.ts +14 -0
  143. package/dist/table/src/types/query.typecheck.d.ts.map +1 -0
  144. package/dist/table/src/types/renderers.d.ts +49 -0
  145. package/dist/table/src/types/renderers.d.ts.map +1 -0
  146. package/dist/table/src/types/renderers.typecheck.d.ts +13 -0
  147. package/dist/table/src/types/renderers.typecheck.d.ts.map +1 -0
  148. package/dist/table/src/types/request.d.ts +23 -5
  149. package/dist/table/src/types/request.d.ts.map +1 -1
  150. package/dist/table/src/types/request.typecheck.d.ts.map +1 -1
  151. package/dist/table/src/types/table.d.ts +8 -0
  152. package/dist/table/src/types/table.d.ts.map +1 -1
  153. package/dist/table/src/types/tree.d.ts +5 -0
  154. package/dist/table/src/types/tree.d.ts.map +1 -0
  155. package/dist/table/src/utils/cell.d.ts +5 -0
  156. package/dist/table/src/utils/cell.d.ts.map +1 -1
  157. package/dist/table/src/utils/cell.mjs +76 -46
  158. package/dist/table/src/utils/fieldPath.d.ts +6 -0
  159. package/dist/table/src/utils/fieldPath.d.ts.map +1 -0
  160. package/dist/table/src/utils/fieldPath.mjs +29 -0
  161. package/dist/table/src/utils/queryFields.d.ts +4 -0
  162. package/dist/table/src/utils/queryFields.d.ts.map +1 -0
  163. package/dist/table/src/utils/queryFields.mjs +31 -0
  164. package/dist/table/src/utils/queryFields.test.d.ts +2 -0
  165. package/dist/table/src/utils/queryFields.test.d.ts.map +1 -0
  166. package/dist/table/src/utils/snapshot.d.ts +3 -0
  167. package/dist/table/src/utils/snapshot.d.ts.map +1 -0
  168. package/dist/table/src/utils/snapshot.mjs +30 -0
  169. package/dist/table/src/utils/snapshot.test.d.ts +2 -0
  170. package/dist/table/src/utils/snapshot.test.d.ts.map +1 -0
  171. package/dist/table/src/utils/stateEqual.d.ts +3 -0
  172. package/dist/table/src/utils/stateEqual.d.ts.map +1 -0
  173. package/dist/table/src/utils/stateEqual.mjs +15 -0
  174. package/dist/theme/src/index.d.ts +4 -0
  175. package/dist/theme/src/index.d.ts.map +1 -1
  176. package/dist/theme/src/presets/antdv/table-locale.d.ts +10 -0
  177. package/dist/theme/src/presets/antdv/table-locale.d.ts.map +1 -1
  178. package/dist/theme/src/presets/antdv/table-locale.mjs +2 -0
  179. package/dist/theme/src/presets/antdv/table.d.ts +10 -0
  180. package/dist/theme/src/presets/antdv/table.d.ts.map +1 -1
  181. package/dist/theme/src/presets/antdv/table.mjs +10 -0
  182. package/dist/theme/src/presets/element-plus/table-locale.d.ts +10 -0
  183. package/dist/theme/src/presets/element-plus/table-locale.d.ts.map +1 -1
  184. package/dist/theme/src/presets/element-plus/table-locale.mjs +2 -0
  185. package/dist/theme/src/presets/element-plus/table.d.ts +10 -0
  186. package/dist/theme/src/presets/element-plus/table.d.ts.map +1 -1
  187. package/dist/theme/src/presets/element-plus/table.mjs +10 -0
  188. package/dist/theme/src/query.d.ts +128 -0
  189. package/dist/theme/src/query.d.ts.map +1 -0
  190. package/dist/theme/src/query.mjs +56 -0
  191. package/dist/vtable-guild/src/augment.d.ts +2 -1
  192. package/dist/vtable-guild/src/augment.d.ts.map +1 -1
  193. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"TableBody.d.ts","sourceRoot":"","sources":["../../../../../table/src/components/TableBody.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqC,KAAK,QAAQ,EAAE,MAAM,KAAK,CAAA;AAStE,OAAO,KAAK,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;;;cAoBd,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;;;;cACtC,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;cAO3C,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,GAAG,CAAC,CAAC;;;;;cAR9D,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;;;;cACtC,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;cAO3C,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,GAAG,CAAC,CAAC;;;;+BAAjC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,GAAG;;AAX7F,wBA4KE"}
1
+ {"version":3,"file":"TableBody.d.ts","sourceRoot":"","sources":["../../../../../table/src/components/TableBody.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqC,KAAK,QAAQ,EAAE,MAAM,KAAK,CAAA;AAStE,OAAO,KAAK,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;;;cAoBd,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;;;;cACtC,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;cAO3C,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,GAAG,CAAC,CAAC;;;;;cAR9D,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;;;;cACtC,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;cAO3C,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,GAAG,CAAC,CAAC;;;;+BAAjC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,GAAG;;AAX7F,wBA+KE"}
@@ -1,4 +1,4 @@
1
- import { defineComponent as E, inject as T, computed as v, createVNode as c } from "vue";
1
+ import { defineComponent as v, inject as E, computed as T, createVNode as c } from "vue";
2
2
  import "../../../core/src/utils/tv.mjs";
3
3
  import h from "./TableRow.mjs";
4
4
  import N from "./TableCell.mjs";
@@ -14,7 +14,7 @@ import { cn as F } from "tailwind-variants";
14
14
  function g(e) {
15
15
  return Number.isFinite(e) ? e <= 0 ? 0 : Math.floor(e) : 1;
16
16
  }
17
- const U = /* @__PURE__ */ E({
17
+ const U = /* @__PURE__ */ v({
18
18
  name: "TableBody",
19
19
  props: {
20
20
  dataSource: {
@@ -51,11 +51,11 @@ const U = /* @__PURE__ */ E({
51
51
  }
52
52
  },
53
53
  setup(e) {
54
- const t = T(q, {});
54
+ const t = E(q, {});
55
55
  function R(a, o) {
56
56
  return $(a, o, e.rowKey);
57
57
  }
58
- const x = v(() => {
58
+ const x = T(() => {
59
59
  const a = /* @__PURE__ */ new Set();
60
60
  return e.dataSource.map((o, l) => {
61
61
  const n = [];
@@ -69,7 +69,9 @@ const U = /* @__PURE__ */ E({
69
69
  column: C,
70
70
  bodyCell: t.bodyCell,
71
71
  transformCellText: t.transformCellText,
72
- columnEmptyText: t.columnEmptyText?.value
72
+ columnEmptyText: t.columnEmptyText?.value,
73
+ renderers: t.renderers?.value,
74
+ locale: t.localeName?.value
73
75
  }), r = g(y.colSpan), d = g(y.rowSpan);
74
76
  if (r === 0 || d === 0) return;
75
77
  const f = Math.min(e.dataSource.length, l + d), w = Math.min(e.columns.length, s + r);
@@ -99,6 +101,7 @@ const U = /* @__PURE__ */ E({
99
101
  } : void 0;
100
102
  return [c(h, {
101
103
  key: l,
104
+ "data-vtg-row-index": o,
102
105
  rowClass: F(e.rowClass, d, u, P(t, a, o, r)) ?? "",
103
106
  rowProps: i,
104
107
  onClick: b
@@ -1 +1 @@
1
- {"version":3,"file":"TableCell.d.ts","sourceRoot":"","sources":["../../../../../table/src/components/TableCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA0C,KAAK,QAAQ,EAAmB,MAAM,KAAK,CAAA;AAG5F,OAAO,KAAK,EAAuB,UAAU,EAAE,MAAM,UAAU,CAAA;AAK/D,OAAO,EAKL,KAAK,gBAAgB,EACtB,MAAM,eAAe,CAAA;;;cASQ,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;;;;;;;;cAEjC,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;;;cAGrD,QAAQ,CAAC,gBAAgB,CAAC;;;;;;;;;;;IAK5C;;;;;;OAMG;;;;;;;cAhBuB,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;;;;;;;;cAEjC,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;;;cAGrD,QAAQ,CAAC,gBAAgB,CAAC;;;;;;;;;;;IAK5C;;;;;;OAMG;;;;;;;;;AAnBP,wBA4dE"}
1
+ {"version":3,"file":"TableCell.d.ts","sourceRoot":"","sources":["../../../../../table/src/components/TableCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA0C,KAAK,QAAQ,EAAmB,MAAM,KAAK,CAAA;AAI5F,OAAO,KAAK,EAAuB,UAAU,EAAE,MAAM,UAAU,CAAA;AAK/D,OAAO,EAKL,KAAK,gBAAgB,EACtB,MAAM,eAAe,CAAA;;;cASQ,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;;;;;;;;cAEjC,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;;;cAGrD,QAAQ,CAAC,gBAAgB,CAAC;;;;;;;;;;;IAK5C;;;;;;OAMG;;;;;;;cAhBuB,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;;;;;;;;cAEjC,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;;;cAGrD,QAAQ,CAAC,gBAAgB,CAAC;;;;;;;;;;;IAK5C;;;;;;OAMG;;;;;;;;;AAnBP,wBA4gBE"}
@@ -1,18 +1,20 @@
1
- import { defineComponent as le, inject as ne, ref as A, computed as d, createVNode as s, mergeProps as D } from "vue";
1
+ import { defineComponent as te, inject as ne, ref as A, computed as c, createVNode as a, mergeProps as D } from "vue";
2
2
  import "../../../core/src/utils/tv.mjs";
3
- import te from "../../../core/src/components/Tooltip.mjs";
4
- import { TABLE_CONTEXT_KEY as oe } from "../context.mjs";
5
- import { getByDataIndex as ae, getColumnKey as j } from "../composables/useColumns.mjs";
6
- import { useFixedColumnStyle as se } from "../composables/useFixedColumnStyle.mjs";
7
- import { resolveBodyCell as ce, getEllipsisConfig as W, omitCellProps as H, isRenderedCell as de } from "../utils/cell.mjs";
8
- import ue from "./SelectionCheckbox.mjs";
9
- import re from "./SelectionRadio.mjs";
3
+ import oe from "../../../core/src/components/Tooltip.mjs";
4
+ import ae from "../../../icons/src/CheckCircleFilledIcon.mjs";
5
+ import se from "../../../icons/src/CloseCircleFilledIcon.mjs";
6
+ import { TABLE_CONTEXT_KEY as re } from "../context.mjs";
7
+ import { getByDataIndex as ce, getColumnKey as K } from "../composables/useColumns.mjs";
8
+ import { useFixedColumnStyle as ue } from "../composables/useFixedColumnStyle.mjs";
9
+ import { resolveBodyCell as de, getEllipsisConfig as $, omitCellProps as H, isRenderedCell as ie } from "../utils/cell.mjs";
10
+ import ve from "./SelectionCheckbox.mjs";
11
+ import me from "./SelectionRadio.mjs";
10
12
  import L from "./ExpandIcon.mjs";
11
- import ie from "./TableCopyButton.mjs";
12
- import { isInHoverRange as ve } from "../composables/useHoverState.mjs";
13
- import { TABLE_ALIGN_CLASSES as me } from "../../../theme/src/presets/antdv/table.mjs";
14
- import { cn as m } from "tailwind-variants";
15
- const pe = /* @__PURE__ */ le({
13
+ import Ce from "./TableCopyButton.mjs";
14
+ import { isInHoverRange as fe } from "../composables/useHoverState.mjs";
15
+ import { TABLE_ALIGN_CLASSES as xe } from "../../../theme/src/presets/antdv/table.mjs";
16
+ import { cn as C } from "tailwind-variants";
17
+ const Le = /* @__PURE__ */ te({
16
18
  name: "TableCell",
17
19
  props: {
18
20
  record: {
@@ -56,29 +58,31 @@ const pe = /* @__PURE__ */ le({
56
58
  }
57
59
  },
58
60
  setup(e) {
59
- const l = ne(oe, {}), O = A(null), T = A(!1), t = d(() => e.resolvedCell ?? ce({
60
- text: ae(e.record, e.column.dataIndex),
61
+ const l = ne(re, {}), B = A(null), p = A(!1), t = c(() => e.resolvedCell ?? de({
62
+ text: ce(e.record, e.column.dataIndex),
61
63
  record: e.record,
62
64
  rowIndex: e.rowIndex,
63
65
  column: e.column,
64
66
  bodyCell: l.bodyCell,
65
67
  transformCellText: l.transformCellText,
66
- columnEmptyText: l.columnEmptyText?.value
67
- })), $ = d(() => {
68
+ columnEmptyText: l.columnEmptyText?.value,
69
+ renderers: l.renderers?.value,
70
+ locale: l.localeName?.value
71
+ })), j = c(() => {
68
72
  if (!e.column.fixed) return null;
69
- const n = j(e.column) ?? e.colIndex;
73
+ const n = K(e.column) ?? e.colIndex;
70
74
  return l.fixedOffsets?.value?.get(n) ?? null;
71
75
  }), {
72
- fixedStyle: K,
76
+ fixedStyle: F,
73
77
  fixedClass: E
74
- } = se({
75
- fixedInfo: () => $.value
76
- }), z = d(() => W(e.column).enabled ? l.compatClass?.("cell-ellipsis") ?? "" : ""), i = d(() => l.getSelectionState?.(e.record, e.rowIndex) ?? {
78
+ } = ue({
79
+ fixedInfo: () => j.value
80
+ }), W = c(() => $(e.column).enabled ? l.compatClass?.("cell-ellipsis") ?? "" : ""), i = c(() => l.getSelectionState?.(e.record, e.rowIndex) ?? {
77
81
  checked: !1,
78
82
  indeterminate: !1,
79
83
  disabled: !1
80
- }), x = d(() => i.value.checked), S = d(() => ve(e.rowIndex, t.value.rowSpan ?? 1, l.hoverRange?.value ?? null)), _ = d(() => S.value && l.hoverable?.value ? l.compatClass?.("cell-row-hover") ?? "" : "");
81
- function h() {
84
+ }), x = c(() => i.value.checked), h = c(() => fe(e.rowIndex, t.value.rowSpan ?? 1, l.hoverRange?.value ?? null)), _ = c(() => h.value && l.hoverable?.value ? l.compatClass?.("cell-row-hover") ?? "" : "");
85
+ function S() {
82
86
  if (!l.hoverable?.value) return;
83
87
  const n = Math.max(1, t.value.rowSpan ?? 1);
84
88
  l.setHoverRange?.(e.rowIndex, e.rowIndex + n - 1);
@@ -86,22 +90,22 @@ const pe = /* @__PURE__ */ le({
86
90
  function w() {
87
91
  l.hoverable?.value && l.clearHoverRange?.();
88
92
  }
89
- function F(n) {
93
+ function z(n) {
90
94
  return (o) => {
91
- h(), typeof n == "function" && n(o);
95
+ S(), typeof n == "function" && n(o);
92
96
  };
93
97
  }
94
- function G(n) {
98
+ function V(n) {
95
99
  return (o) => {
96
100
  w(), typeof n == "function" && n(o);
97
101
  };
98
102
  }
99
- const R = d(() => ({
103
+ const R = c(() => ({
100
104
  ...H(t.value.renderCellProps),
101
105
  ...H(t.value.customCellProps)
102
- })), V = d(() => {
103
- const n = e.column.align ? l.vtgClass?.(me[e.column.align]) ?? "" : "", o = l.subThemeSlots, a = S.value && l.hoverable?.value, C = l.isColumnSorted?.(e.column) && o ? o.tdSorted() : "", k = x.value && o ? m(o.tdSelected(), a ? o.tdRowSelectedHover() : "") : "", p = a && o && !x.value ? o.tdRowHover() : "";
104
- return m(
106
+ })), G = c(() => {
107
+ const n = e.column.align ? l.vtgClass?.(xe[e.column.align]) ?? "" : "", o = l.subThemeSlots, s = h.value && l.hoverable?.value, v = l.isColumnSorted?.(e.column) && o ? o.tdSorted() : "", f = x.value && o ? C(o.tdSelected(), s ? o.tdRowSelectedHover() : "") : "", k = s && o && !x.value ? o.tdRowHover() : "";
108
+ return C(
105
109
  e.tdClass,
106
110
  n,
107
111
  e.column.className,
@@ -109,27 +113,27 @@ const pe = /* @__PURE__ */ le({
109
113
  t.value.customCellProps?.className,
110
114
  t.value.renderCellProps?.class,
111
115
  t.value.renderCellProps?.className,
112
- C,
116
+ v,
117
+ f,
113
118
  k,
114
- p,
115
119
  E.value,
116
120
  _.value,
117
121
  // antdv 把 ellipsis 类放在 td 上,我们的 slot 落在内层 span,故在此补
118
- z.value
122
+ W.value
119
123
  );
120
- }), b = d(() => {
121
- const n = {}, o = l.columnWidths?.[String(j(e.column) ?? e.colIndex)], a = e.widthOverride ?? o ?? e.column.width;
122
- return a && (n.width = typeof a == "number" ? `${a}px` : a), {
124
+ }), b = c(() => {
125
+ const n = {}, o = l.columnWidths?.[String(K(e.column) ?? e.colIndex)], s = e.widthOverride ?? o ?? e.column.width;
126
+ return s && (n.width = typeof s == "number" ? `${s}px` : s), {
123
127
  ...n,
124
- ...K.value ?? {},
128
+ ...F.value ?? {},
125
129
  ...t.value.customCellProps?.style ?? {},
126
130
  ...t.value.renderCellProps?.style ?? {},
127
131
  ...l.columnLayout?.columnStyle(e.colIndex, t.value.colSpan || 1)
128
132
  };
129
- }), X = d(() => l.isTreeData?.value ? l.getFlattenRow?.(e.record) ?? null : null), Y = d(() => l.isTreeData?.value ? l.treeIndentColumnIndex ? e.colIndex === l.treeIndentColumnIndex.value : e.column.key !== "__vtg_selection__" && e.column.key !== "__vtg_expand__" && e.colIndex <= 2 ? (() => {
133
+ }), X = c(() => l.isTreeData?.value ? l.getFlattenRow?.(e.record) ?? null : null), Y = c(() => l.isTreeData?.value ? l.treeIndentColumnIndex ? e.colIndex === l.treeIndentColumnIndex.value : e.column.key !== "__vtg_selection__" && e.column.key !== "__vtg_expand__" && e.colIndex <= 2 ? (() => {
130
134
  const n = l.rowSelection?.(), o = l.expandable?.();
131
- let a = 0;
132
- return n && (a += 1), o && o.showExpandColumn !== !1 && (a += 1), e.colIndex === a;
135
+ let s = 0;
136
+ return n && (s += 1), o && o.showExpandColumn !== !1 && (s += 1), e.colIndex === s;
133
137
  })() : !1 : !1);
134
138
  function J(n) {
135
139
  return {
@@ -139,121 +143,148 @@ const pe = /* @__PURE__ */ le({
139
143
  };
140
144
  }
141
145
  function Q() {
142
- const n = O.value, o = t.value.tooltipText;
143
- T.value = !!(n && o && (n.scrollWidth > n.clientWidth || n.scrollHeight > n.clientHeight));
146
+ const n = B.value, o = t.value.tooltipText;
147
+ p.value = !!(n && o && (n.scrollWidth > n.clientWidth || n.scrollHeight > n.clientHeight));
144
148
  }
145
149
  function U() {
146
- T.value = !1;
150
+ p.value = !1;
147
151
  }
148
152
  return () => {
149
153
  if (t.value.colSpan === 0 || t.value.rowSpan === 0)
150
154
  return null;
151
155
  const n = t.value.colSpan !== 1 ? t.value.colSpan : void 0, o = t.value.rowSpan !== 1 ? t.value.rowSpan : void 0;
152
156
  if (e.column.key === "__vtg_selection__") {
153
- const v = l.rowSelection?.(), f = v?.type === "radio" ? s(re, {
157
+ const m = l.rowSelection?.(), g = m?.type === "radio" ? a(me, {
154
158
  checked: i.value.checked,
155
159
  disabled: i.value.disabled,
156
160
  onChange: (u) => l.toggleRow?.(e.record, e.rowIndex, u)
157
- }, null) : s(ue, {
161
+ }, null) : a(ve, {
158
162
  checked: i.value.checked,
159
163
  indeterminate: i.value.indeterminate,
160
164
  disabled: i.value.disabled,
161
- onChange: (u, I) => l.toggleRow?.(e.record, e.rowIndex, I)
165
+ onChange: (u, T) => l.toggleRow?.(e.record, e.rowIndex, T)
162
166
  }, null);
163
- let r = f, c;
164
- if (v?.renderCell) {
165
- const u = v.renderCell(i.value.checked, e.record, e.rowIndex, f);
166
- de(u) ? (r = u.children, c = u.props) : r = u;
167
+ let d = g, r;
168
+ if (m?.renderCell) {
169
+ const u = m.renderCell(i.value.checked, e.record, e.rowIndex, g);
170
+ ie(u) ? (d = u.children, r = u.props) : d = u;
167
171
  }
168
- const g = !!v?.renderCell, y = S.value && l.hoverable?.value, P = m(e.tdClass, l.vtgClass?.(g ? "text-center" : "text-center leading-[0]"), e.column.className, c?.class, c?.className, x.value && l.subThemeSlots ? m(l.subThemeSlots.tdSelected(), y ? l.subThemeSlots.tdRowSelectedHover() : "") : y && l.subThemeSlots ? l.subThemeSlots.tdRowHover() : "", E.value, _.value, l.compatClass?.("selection-column"));
169
- return s("td", D(H(c), {
170
- class: P,
171
- style: J(c?.style),
172
+ const y = !!m?.renderCell, I = h.value && l.hoverable?.value, M = C(e.tdClass, l.vtgClass?.(y ? "text-center" : "text-center leading-[0]"), e.column.className, r?.class, r?.className, x.value && l.subThemeSlots ? C(l.subThemeSlots.tdSelected(), I ? l.subThemeSlots.tdRowSelectedHover() : "") : I && l.subThemeSlots ? l.subThemeSlots.tdRowHover() : "", E.value, _.value, l.compatClass?.("selection-column"));
173
+ return a("td", D(H(r), {
174
+ class: M,
175
+ style: J(r?.style),
172
176
  "data-vtg-col": e.colIndex,
173
177
  colspan: n,
174
178
  rowspan: o,
175
- onMouseenter: h,
179
+ onMouseenter: S,
176
180
  onMouseleave: w
177
- }), [r]);
181
+ }), [d]);
178
182
  }
179
183
  if (e.column.key === "__vtg_expand__") {
180
- const v = l.expandable?.(), N = l.getRowKey?.(e.record, e.rowIndex), f = N !== void 0 && (l.isExpanded?.(N) ?? !1), r = l.isRowExpandable?.(e.record) ?? !1, c = l.subThemeSlots, g = S.value && l.hoverable?.value, y = l.isColumnSorted?.(e.column) && c ? c.tdSorted() : "", P = x.value && c ? m(c.tdSelected(), g ? c.tdRowSelectedHover() : "") : "", u = g && c && !x.value ? c.tdRowHover() : "", I = m(e.tdClass, l.vtgClass?.("text-center"), e.column.className, y, P, u, E.value, _.value, l.compatClass?.("row-expand-icon-cell"));
181
- return v?.expandIcon ? s("td", {
182
- class: I,
184
+ const m = l.expandable?.(), N = l.getRowKey?.(e.record, e.rowIndex), g = N !== void 0 && (l.isExpanded?.(N) ?? !1), d = l.isRowExpandable?.(e.record) ?? !1, r = l.subThemeSlots, y = h.value && l.hoverable?.value, I = l.isColumnSorted?.(e.column) && r ? r.tdSorted() : "", M = x.value && r ? C(r.tdSelected(), y ? r.tdRowSelectedHover() : "") : "", u = y && r && !x.value ? r.tdRowHover() : "", T = C(e.tdClass, l.vtgClass?.("text-center"), e.column.className, I, M, u, E.value, _.value, l.compatClass?.("row-expand-icon-cell"));
185
+ return m?.expandIcon ? a("td", {
186
+ class: T,
183
187
  style: b.value,
184
188
  "data-vtg-col": e.colIndex,
185
189
  colspan: n,
186
190
  rowspan: o,
187
- onMouseenter: h,
191
+ onMouseenter: S,
188
192
  onMouseleave: w
189
- }, [v.expandIcon({
190
- expanded: f,
193
+ }, [m.expandIcon({
194
+ expanded: g,
191
195
  record: e.record,
192
- expandable: r,
193
- onExpand: (Ce, ee) => {
194
- ee.stopPropagation(), r && l.toggleExpand?.(e.record, e.rowIndex);
196
+ expandable: d,
197
+ onExpand: (ge, le) => {
198
+ le.stopPropagation(), d && l.toggleExpand?.(e.record, e.rowIndex);
195
199
  }
196
- })]) : s("td", {
197
- class: I,
200
+ })]) : a("td", {
201
+ class: T,
198
202
  style: b.value,
199
203
  "data-vtg-col": e.colIndex,
200
204
  colspan: n,
201
205
  rowspan: o,
202
- onMouseenter: h,
206
+ onMouseenter: S,
203
207
  onMouseleave: w
204
- }, [s(L, {
205
- expanded: f,
206
- expandable: r,
208
+ }, [a(L, {
209
+ expanded: g,
210
+ expandable: d,
207
211
  variant: "row",
208
212
  onClick: () => {
209
- r && l.toggleExpand?.(e.record, e.rowIndex);
213
+ d && l.toggleExpand?.(e.record, e.rowIndex);
210
214
  }
211
215
  }, null)]);
212
216
  }
213
- const a = X.value, C = Y.value && a, k = C ? s("span", {
214
- class: l.compatClass ? `${l.compatClass("row-indent")} indent-level-${a.level}` : void 0,
217
+ const s = X.value, v = Y.value && s, f = v ? l.getRowKey?.(e.record, e.rowIndex) : void 0, k = v ? a("span", {
218
+ class: l.compatClass ? `${l.compatClass("row-indent")} indent-level-${s.level}` : void 0,
215
219
  style: {
216
220
  display: "inline-block",
217
- width: `${a.level * (l.treeIndentSize?.value ?? 15)}px`
221
+ width: `${s.level * (l.treeIndentSize?.value ?? 15)}px`
218
222
  }
219
- }, null) : null, p = C && a.hasChildren ? s(L, {
220
- expanded: a.expanded,
223
+ }, null) : null, Z = v && s.hasChildren ? a(L, {
224
+ expanded: s.expanded,
221
225
  expandable: !0,
222
226
  variant: "tree",
227
+ loading: f !== void 0 && l.isTreeLoading?.(f),
228
+ error: f !== void 0 && !!l.getTreeLoadError?.(f),
223
229
  onClick: () => l.toggleTreeExpand?.(e.record, e.rowIndex)
224
- }, null) : C ? s(L, {
230
+ }, null) : v ? a(L, {
225
231
  expanded: !1,
226
232
  expandable: !1,
227
233
  variant: "tree"
228
- }, null) : null, B = W(e.column), Z = C ? l.compatClass?.("cell-with-append") ?? "" : "", M = t.value.status ? s("span", {
234
+ }, null) : null, O = $(e.column), ee = v ? l.compatClass?.("cell-with-append") ?? "" : "", P = t.value.presentation === "progress" && t.value.progress ? a("span", {
235
+ class: l.subThemeSlots?.cellProgress(),
236
+ "data-vtg-field": "progress",
237
+ role: "progressbar",
238
+ "aria-label": t.value.tooltipText,
239
+ "aria-valuemin": 0,
240
+ "aria-valuemax": 100,
241
+ "aria-valuenow": t.value.progress.percent
242
+ }, [a("span", {
243
+ class: l.subThemeSlots?.cellProgressTrack()
244
+ }, [a("span", {
245
+ class: l.subThemeSlots?.cellProgressBar(),
246
+ "data-status": t.value.status ?? "processing",
247
+ style: {
248
+ width: `${t.value.progress.percent}%`
249
+ }
250
+ }, null)]), t.value.progress.showValue ? a("span", {
251
+ class: l.subThemeSlots?.cellProgressText(),
252
+ "data-status": t.value.status
253
+ }, [t.value.status === "success" ? a(ae, null, null) : t.value.status === "error" ? a(se, {
254
+ "fill-rule": "evenodd"
255
+ }, null) : t.value.content]) : null]) : t.value.presentation === "tag" ? a("span", {
256
+ class: l.subThemeSlots?.cellTag(),
257
+ "data-status": t.value.status ?? "default",
258
+ "data-vtg-field": "tag"
259
+ }, [t.value.content]) : t.value.status ? a("span", {
229
260
  class: l.subThemeSlots?.cellStatus(),
230
261
  "data-status": t.value.status
231
- }, [t.value.content]) : t.value.content, q = B.enabled ? B.showTitle ? s(te, {
262
+ }, [t.value.content]) : t.value.content, q = O.enabled ? O.showTitle ? a(oe, {
232
263
  block: !0,
233
264
  title: t.value.tooltipText,
234
265
  placement: "top",
235
- open: T.value
266
+ open: p.value
236
267
  }, {
237
- default: () => [s("div", {
238
- ref: O,
268
+ default: () => [a("div", {
269
+ ref: B,
239
270
  class: e.bodyCellEllipsisClass,
240
271
  onMouseenter: Q,
241
272
  onMouseleave: U
242
- }, [M])]
243
- }) : s("div", {
273
+ }, [P])]
274
+ }) : a("div", {
244
275
  class: e.bodyCellEllipsisClass
245
- }, [M]) : M;
246
- return s("td", D(R.value, {
247
- class: m(V.value, Z),
276
+ }, [P]) : P;
277
+ return a("td", D(R.value, {
278
+ class: C(G.value, ee),
248
279
  style: b.value,
249
280
  "data-vtg-col": e.colIndex,
250
281
  colspan: n,
251
282
  rowspan: o,
252
- onMouseenter: F(R.value.onMouseenter),
253
- onMouseleave: G(R.value.onMouseleave)
254
- }), [k, p, e.column.copyable ? s("span", {
283
+ onMouseenter: z(R.value.onMouseenter),
284
+ onMouseleave: V(R.value.onMouseleave)
285
+ }), [k, Z, e.column.copyable ? a("span", {
255
286
  class: l.subThemeSlots?.cellContent()
256
- }, [q, s(ie, {
287
+ }, [q, a(Ce, {
257
288
  column: e.column,
258
289
  record: e.record,
259
290
  rowIndex: e.rowIndex,
@@ -263,5 +294,5 @@ const pe = /* @__PURE__ */ le({
263
294
  }
264
295
  });
265
296
  export {
266
- pe as default
297
+ Le as default
267
298
  };
@@ -0,0 +1,29 @@
1
+ import { PropType } from 'vue';
2
+ import { TableControls, TableControlContext } from '../types/controls';
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ context: {
5
+ type: PropType<TableControlContext & {
6
+ valueType: string;
7
+ }>;
8
+ required: true;
9
+ };
10
+ controls: {
11
+ type: PropType<TableControls>;
12
+ required: true;
13
+ };
14
+ ui: PropType<Record<string, string>>;
15
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
16
+ context: {
17
+ type: PropType<TableControlContext & {
18
+ valueType: string;
19
+ }>;
20
+ required: true;
21
+ };
22
+ controls: {
23
+ type: PropType<TableControls>;
24
+ required: true;
25
+ };
26
+ ui: PropType<Record<string, string>>;
27
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
28
+ export default _default;
29
+ //# sourceMappingURL=TableEditableCell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableEditableCell.d.ts","sourceRoot":"","sources":["../../../../../table/src/components/TableEditableCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqC,KAAK,QAAQ,EAAE,MAAM,KAAK,CAAA;AAGtE,OAAO,KAAK,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;;;cAMrD,QAAQ,CAAC,mBAAmB,GAAG;YAAE,SAAS,EAAE,MAAM,CAAA;SAAE,CAAC;;;;cAG3C,QAAQ,CAAC,aAAa,CAAC;;;QACrC,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;;;cAJ5B,QAAQ,CAAC,mBAAmB,GAAG;YAAE,SAAS,EAAE,MAAM,CAAA;SAAE,CAAC;;;;cAG3C,QAAQ,CAAC,aAAa,CAAC;;;QACrC,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;;AARlD,wBAmCE"}
@@ -0,0 +1,39 @@
1
+ import { defineComponent as a, inject as i, computed as s, createVNode as o } from "vue";
2
+ import { useTheme as d } from "../../../core/src/composables/useTheme.mjs";
3
+ import { VTABLE_GUILD_INJECTION_KEY as c } from "../../../core/src/plugin/index.mjs";
4
+ import { resolveTableThemePreset as u } from "../../../theme/src/presets/index.mjs";
5
+ const T = /* @__PURE__ */ a({
6
+ name: "TableEditableCell",
7
+ props: {
8
+ context: {
9
+ type: Object,
10
+ required: !0
11
+ },
12
+ controls: {
13
+ type: Object,
14
+ required: !0
15
+ },
16
+ ui: Object
17
+ },
18
+ setup(t) {
19
+ const n = i(c, null), {
20
+ slots: r
21
+ } = d("table", s(() => u(n?.themePreset ?? "antdv")), t);
22
+ return () => {
23
+ const e = t.context, l = t.controls[e.valueType];
24
+ if (!l) throw new Error(`No table control registered for ${e.valueType}`);
25
+ return o("div", {
26
+ class: r.editCell()
27
+ }, [o("div", {
28
+ class: r.editControl(),
29
+ "data-invalid": e.error ? !0 : void 0
30
+ }, [l(e)]), e.error ? o("span", {
31
+ class: r.editError(),
32
+ role: "alert"
33
+ }, [e.error]) : null]);
34
+ };
35
+ }
36
+ });
37
+ export {
38
+ T as default
39
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=TableEditableCell.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableEditableCell.test.d.ts","sourceRoot":"","sources":["../../../../../table/src/components/TableEditableCell.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=TableInstance.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableInstance.test.d.ts","sourceRoot":"","sources":["../../../../../table/src/components/TableInstance.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=TableLazyTree.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableLazyTree.test.d.ts","sourceRoot":"","sources":["../../../../../table/src/components/TableLazyTree.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,108 @@
1
+ import { PropType, SlotsType } from 'vue';
2
+ import { TableQueryProps, TableQuerySlots } from '../types/query-form';
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ query: {
5
+ type: PropType<TableQueryProps["query"]>;
6
+ required: true;
7
+ };
8
+ rootTag: {
9
+ type: PropType<TableQueryProps["rootTag"]>;
10
+ default: string;
11
+ };
12
+ fields: {
13
+ type: PropType<TableQueryProps["fields"]>;
14
+ required: true;
15
+ };
16
+ controls: {
17
+ type: PropType<TableQueryProps["controls"]>;
18
+ required: true;
19
+ };
20
+ layout: {
21
+ type: PropType<TableQueryProps["layout"]>;
22
+ default: string;
23
+ };
24
+ autoSubmit: BooleanConstructor;
25
+ debounceTime: {
26
+ type: NumberConstructor;
27
+ default: number;
28
+ };
29
+ hiddenPolicy: {
30
+ type: PropType<TableQueryProps["hiddenPolicy"]>;
31
+ default: string;
32
+ };
33
+ collapsedCount: {
34
+ type: NumberConstructor;
35
+ default: number;
36
+ };
37
+ collapsible: {
38
+ type: BooleanConstructor;
39
+ default: boolean;
40
+ };
41
+ disabled: BooleanConstructor;
42
+ validate: PropType<TableQueryProps["validate"]>;
43
+ errors: PropType<TableQueryProps["errors"]>;
44
+ locale: PropType<TableQueryProps["locale"]>;
45
+ ui: PropType<TableQueryProps["ui"]>;
46
+ class: StringConstructor;
47
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
48
+ submitted: (_success: boolean) => true;
49
+ reset: (_success: boolean) => true;
50
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
51
+ query: {
52
+ type: PropType<TableQueryProps["query"]>;
53
+ required: true;
54
+ };
55
+ rootTag: {
56
+ type: PropType<TableQueryProps["rootTag"]>;
57
+ default: string;
58
+ };
59
+ fields: {
60
+ type: PropType<TableQueryProps["fields"]>;
61
+ required: true;
62
+ };
63
+ controls: {
64
+ type: PropType<TableQueryProps["controls"]>;
65
+ required: true;
66
+ };
67
+ layout: {
68
+ type: PropType<TableQueryProps["layout"]>;
69
+ default: string;
70
+ };
71
+ autoSubmit: BooleanConstructor;
72
+ debounceTime: {
73
+ type: NumberConstructor;
74
+ default: number;
75
+ };
76
+ hiddenPolicy: {
77
+ type: PropType<TableQueryProps["hiddenPolicy"]>;
78
+ default: string;
79
+ };
80
+ collapsedCount: {
81
+ type: NumberConstructor;
82
+ default: number;
83
+ };
84
+ collapsible: {
85
+ type: BooleanConstructor;
86
+ default: boolean;
87
+ };
88
+ disabled: BooleanConstructor;
89
+ validate: PropType<TableQueryProps["validate"]>;
90
+ errors: PropType<TableQueryProps["errors"]>;
91
+ locale: PropType<TableQueryProps["locale"]>;
92
+ ui: PropType<TableQueryProps["ui"]>;
93
+ class: StringConstructor;
94
+ }>> & Readonly<{
95
+ onReset?: ((_success: boolean) => any) | undefined;
96
+ onSubmitted?: ((_success: boolean) => any) | undefined;
97
+ }>, {
98
+ disabled: boolean;
99
+ layout: "form" | "light" | undefined;
100
+ rootTag: "form" | "div" | undefined;
101
+ hiddenPolicy: "preserve" | "omit" | undefined;
102
+ autoSubmit: boolean;
103
+ debounceTime: number;
104
+ collapsedCount: number;
105
+ collapsible: boolean;
106
+ }, SlotsType<TableQuerySlots<Record<string, unknown>>>, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
107
+ export default _default;
108
+ //# sourceMappingURL=TableQuery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableQuery.d.ts","sourceRoot":"","sources":["../../../../../table/src/components/TableQuery.tsx"],"names":[],"mappings":"AAAA,OAAO,EAUL,KAAK,QAAQ,EACb,KAAK,SAAS,EACf,MAAM,KAAK,CAAA;AAIZ,OAAO,KAAK,EAGV,eAAe,EACf,eAAe,EAChB,MAAM,qBAAqB,CAAA;;;cAQC,QAAQ,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;;;;cAChC,QAAQ,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC;;;;cACtC,QAAQ,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;;;;cAChC,QAAQ,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC;;;;cACvC,QAAQ,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;;;;;;;;;cAI3C,QAAQ,CAAC,eAAe,CAAC,cAAc,CAAC,CAAC;;;;;;;;;;;;cAMrC,QAAQ,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC;YACzC,QAAQ,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;YACnC,QAAQ,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;QACvC,QAAQ,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;;;0BAIvB,OAAO;sBACX,OAAO;;;cAtBA,QAAQ,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;;;;cAChC,QAAQ,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC;;;;cACtC,QAAQ,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;;;;cAChC,QAAQ,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC;;;;cACvC,QAAQ,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;;;;;;;;;cAI3C,QAAQ,CAAC,eAAe,CAAC,cAAc,CAAC,CAAC;;;;;;;;;;;;cAMrC,QAAQ,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC;YACzC,QAAQ,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;YACnC,QAAQ,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;QACvC,QAAQ,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;;;;;;;;;;;;;;;AArBjD,wBAmUE"}