tabula-vue 1.0.1 → 1.0.3

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 (78) hide show
  1. package/es/component.mjs +2 -0
  2. package/es/components/index.d.ts +1 -0
  3. package/es/components/index.mjs +1 -0
  4. package/es/components/page/index.d.ts +8861 -5128
  5. package/es/components/page/src/index.vue.d.ts +1470 -268
  6. package/es/components/page/src/index.vue2.mjs +13 -3
  7. package/es/components/table-lite/index.d.ts +1783 -0
  8. package/es/components/table-lite/index.mjs +6 -0
  9. package/es/components/table-lite/src/display-value.d.ts +26 -0
  10. package/es/components/table-lite/src/display-value.mjs +82 -0
  11. package/es/components/table-lite/src/index.vue.d.ts +672 -0
  12. package/es/components/table-lite/src/index.vue.mjs +6 -0
  13. package/es/components/table-lite/src/index.vue2.mjs +690 -0
  14. package/es/components/table-lite/src/type.d.ts +91 -0
  15. package/es/components/table-lite/src/type.mjs +1 -0
  16. package/es/components/table-lite/style/css.d.ts +16 -0
  17. package/es/components/table-lite/style/css.mjs +16 -0
  18. package/es/components/table-lite/style/index.d.ts +16 -0
  19. package/es/components/table-lite/style/index.mjs +16 -0
  20. package/es/index.mjs +1 -0
  21. package/es/version.d.ts +1 -1
  22. package/es/version.mjs +1 -1
  23. package/index.css +1 -1
  24. package/index.js +845 -84
  25. package/index.min.js +7 -3
  26. package/index.min.mjs +7 -3
  27. package/index.mjs +845 -85
  28. package/lib/component.js +42 -40
  29. package/lib/components/index.d.ts +1 -0
  30. package/lib/components/index.js +43 -41
  31. package/lib/components/page/index.d.ts +8861 -5128
  32. package/lib/components/page/src/index.vue.d.ts +1470 -268
  33. package/lib/components/page/src/index.vue2.js +15 -5
  34. package/lib/components/table-lite/index.d.ts +1783 -0
  35. package/lib/components/table-lite/index.js +8 -0
  36. package/lib/components/table-lite/src/display-value.d.ts +26 -0
  37. package/lib/components/table-lite/src/display-value.js +86 -0
  38. package/lib/components/table-lite/src/index.vue.d.ts +672 -0
  39. package/lib/components/table-lite/src/index.vue.js +10 -0
  40. package/lib/components/table-lite/src/index.vue2.js +694 -0
  41. package/lib/components/table-lite/src/type.d.ts +91 -0
  42. package/lib/components/table-lite/src/type.js +2 -0
  43. package/lib/components/table-lite/style/css.d.ts +16 -0
  44. package/lib/components/table-lite/style/css.js +19 -0
  45. package/lib/components/table-lite/style/index.d.ts +16 -0
  46. package/lib/components/table-lite/style/index.js +19 -0
  47. package/lib/index.js +43 -41
  48. package/lib/version.d.ts +1 -1
  49. package/lib/version.js +1 -1
  50. package/locale/en.js +1 -1
  51. package/locale/en.min.js +1 -1
  52. package/locale/en.min.mjs +1 -1
  53. package/locale/en.mjs +1 -1
  54. package/locale/ja.js +1 -1
  55. package/locale/ja.min.js +1 -1
  56. package/locale/ja.min.mjs +1 -1
  57. package/locale/ja.mjs +1 -1
  58. package/locale/ko.js +1 -1
  59. package/locale/ko.min.js +1 -1
  60. package/locale/ko.min.mjs +1 -1
  61. package/locale/ko.mjs +1 -1
  62. package/locale/zh-cn.js +1 -1
  63. package/locale/zh-cn.min.js +1 -1
  64. package/locale/zh-cn.min.mjs +1 -1
  65. package/locale/zh-cn.mjs +1 -1
  66. package/locale/zh-hk.js +1 -1
  67. package/locale/zh-hk.min.js +1 -1
  68. package/locale/zh-hk.min.mjs +1 -1
  69. package/locale/zh-hk.mjs +1 -1
  70. package/locale/zh-tw.js +1 -1
  71. package/locale/zh-tw.min.js +1 -1
  72. package/locale/zh-tw.min.mjs +1 -1
  73. package/locale/zh-tw.mjs +1 -1
  74. package/package.json +1 -1
  75. package/theme-chalk/index.css +1 -1
  76. package/theme-chalk/plus-table-lite.css +1 -0
  77. package/theme-chalk/src/index.scss +1 -0
  78. package/theme-chalk/src/table-lite.scss +53 -0
@@ -1,6 +1,7 @@
1
1
  import { defineComponent, useSlots, computed, ref, watch, h, openBlock, createElementBlock, createBlock, resolveDynamicComponent, withCtx, createVNode, unref, mergeProps, createSlots, renderSlot, normalizeProps, guardReactiveProps, renderList, createCommentVNode } from 'vue';
2
2
  import { PlusSearch } from '../../search/index.mjs';
3
3
  import { PlusTable } from '../../table/index.mjs';
4
+ import { PlusTableLite } from '../../table-lite/index.mjs';
4
5
  import { PlusTableV2 } from '../../table-v2/index.mjs';
5
6
  import { ElCard, ElDivider } from 'element-plus';
6
7
  import '../../../hooks/index.mjs';
@@ -24,6 +25,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
24
25
  table: { default: () => ({}) },
25
26
  tableType: { default: "table" },
26
27
  tableV2: { default: void 0 },
28
+ tableLite: { default: void 0 },
27
29
  params: { default: () => ({}) },
28
30
  postData: { type: Function, default: void 0 },
29
31
  beforeSearchSubmit: { type: Function, default: void 0 },
@@ -42,7 +44,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
42
44
  searchSlot: { type: Boolean, default: false },
43
45
  resetSearch: { type: Boolean, default: true }
44
46
  },
45
- emits: ["update:searchValues", "search", "reset", "searchChange", "paginationChange", "requestError", "requestComplete"],
47
+ emits: ["update:searchValues", "search", "reset", "searchChange", "paginationChange", "selectionChange", "requestError", "requestComplete"],
46
48
  setup(__props, { expose: __expose, emit: __emit }) {
47
49
  var _a, _b;
48
50
  const props = __props;
@@ -79,13 +81,17 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
79
81
  );
80
82
  const tableComponentMap = /* @__PURE__ */ new Map([
81
83
  ["table", PlusTable],
82
- ["table-v2", PlusTableV2]
84
+ ["table-v2", PlusTableV2],
85
+ ["table-lite", PlusTableLite]
83
86
  ]);
84
87
  const tableComponent = computed(() => tableComponentMap.get(props.tableType) || PlusTable);
85
88
  const tableProps = computed(() => {
86
89
  if (props.tableType === "table-v2") {
87
90
  return { ...props.table, ...props.tableV2 };
88
91
  }
92
+ if (props.tableType === "table-lite") {
93
+ return { ...props.table, ...props.tableLite };
94
+ }
89
95
  return props.table;
90
96
  });
91
97
  const tablePagination = computed(() => {
@@ -149,6 +155,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
149
155
  const handleTablePaginationChange = (data) => {
150
156
  handlePaginationChange(data);
151
157
  };
158
+ const handleTableSelectionChange = (data) => {
159
+ emit("selectionChange", data || []);
160
+ };
152
161
  const handleSearchChange = (val, column) => {
153
162
  emit("update:searchValues", val);
154
163
  emit("searchChange", val, column);
@@ -273,7 +282,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
273
282
  columns: _ctx.columns,
274
283
  pagination: tablePagination.value,
275
284
  onPaginationChange: handleTablePaginationChange,
276
- onRefresh: handleRefresh
285
+ onRefresh: handleRefresh,
286
+ onSelectionChange: handleTableSelectionChange
277
287
  }), createSlots({
278
288
  _: 2
279
289
  /* DYNAMIC */