tabula-vue 1.0.0 → 1.0.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 (204) hide show
  1. package/es/component.mjs +4 -0
  2. package/es/components/dialog/index.d.ts +30 -30
  3. package/es/components/dialog/src/index.vue.d.ts +2 -2
  4. package/es/components/dialog-form/index.d.ts +2 -2
  5. package/es/components/dialog-form/src/index.vue.d.ts +2 -2
  6. package/es/components/display-item/index.d.ts +25 -25
  7. package/es/components/display-item/src/index.vue.d.ts +7 -7
  8. package/es/components/drawer-form/index.d.ts +50 -50
  9. package/es/components/drawer-form/src/index.vue.d.ts +10 -10
  10. package/es/components/form/index.d.ts +99 -99
  11. package/es/components/form/src/form-content.vue.d.ts +12 -12
  12. package/es/components/form/src/index.vue.d.ts +11 -11
  13. package/es/components/form-item/index.d.ts +80 -80
  14. package/es/components/form-item/src/index.vue.d.ts +9 -9
  15. package/es/components/index.d.ts +2 -0
  16. package/es/components/index.mjs +6 -0
  17. package/es/components/input-tag/index.d.ts +6 -6
  18. package/es/components/input-tag/src/index.vue.d.ts +6 -6
  19. package/es/components/layout/index.d.ts +30 -30
  20. package/es/components/layout/src/index.vue.d.ts +10 -10
  21. package/es/components/page/index.d.ts +9087 -4864
  22. package/es/components/page/src/index.vue.d.ts +1903 -513
  23. package/es/components/page/src/index.vue2.mjs +43 -12
  24. package/es/components/popover/index.d.ts +49 -49
  25. package/es/components/popover/src/index.vue.d.ts +3 -3
  26. package/es/components/render/index.d.ts +14 -14
  27. package/es/components/render/src/index.vue.d.ts +1 -1
  28. package/es/components/search/index.d.ts +298 -298
  29. package/es/components/search/src/index.vue.d.ts +84 -84
  30. package/es/components/sidebar/index.d.ts +31 -31
  31. package/es/components/sidebar/src/index.vue.d.ts +5 -5
  32. package/es/components/table/index.d.ts +165 -180
  33. package/es/components/table/index.mjs +3 -0
  34. package/es/components/table/src/index.vue.d.ts +12 -21
  35. package/es/components/table/src/index.vue2.mjs +11 -34
  36. package/es/components/table/src/table-action-bar-content.vue.d.ts +78 -0
  37. package/es/components/table/src/table-action-bar-content.vue.mjs +6 -0
  38. package/es/components/table/src/table-action-bar-content.vue2.mjs +395 -0
  39. package/es/components/table/src/table-action-bar.vue.d.ts +4 -4
  40. package/es/components/table/src/table-action-bar.vue2.mjs +30 -353
  41. package/es/components/table/src/table-column-drag-sort.vue.d.ts +1 -1
  42. package/es/components/table/src/table-column-index.vue.d.ts +1 -1
  43. package/es/components/table/src/table-column.vue.d.ts +22 -29
  44. package/es/components/table/src/table-column.vue2.mjs +4 -57
  45. package/es/components/table/src/table-title-bar.vue.d.ts +2 -2
  46. package/es/components/table/src/type.d.ts +0 -11
  47. package/es/components/table/src/use-columns.d.ts +26 -0
  48. package/es/components/table/src/use-columns.mjs +40 -0
  49. package/es/components/table-lite/index.d.ts +1783 -0
  50. package/es/components/table-lite/index.mjs +6 -0
  51. package/es/components/table-lite/src/index.vue.d.ts +672 -0
  52. package/es/components/table-lite/src/index.vue.mjs +6 -0
  53. package/es/components/table-lite/src/index.vue2.mjs +681 -0
  54. package/es/components/table-lite/src/type.d.ts +91 -0
  55. package/es/components/table-lite/src/type.mjs +1 -0
  56. package/es/components/table-lite/style/css.d.ts +16 -0
  57. package/es/components/table-lite/style/css.mjs +16 -0
  58. package/es/components/table-lite/style/index.d.ts +16 -0
  59. package/es/components/table-lite/style/index.mjs +16 -0
  60. package/es/components/table-v2/index.d.ts +174 -0
  61. package/es/components/table-v2/index.mjs +7 -0
  62. package/es/components/table-v2/src/column-converter.d.ts +27 -0
  63. package/es/components/table-v2/src/column-converter.mjs +42 -0
  64. package/es/components/table-v2/src/index.vue.d.ts +157 -0
  65. package/es/components/table-v2/src/index.vue.mjs +6 -0
  66. package/es/components/table-v2/src/index.vue2.mjs +491 -0
  67. package/es/components/table-v2/src/special-columns.d.ts +61 -0
  68. package/es/components/table-v2/src/special-columns.mjs +76 -0
  69. package/es/components/table-v2/src/table-v2-cell.d.ts +104 -0
  70. package/es/components/table-v2/src/table-v2-cell.mjs +139 -0
  71. package/es/components/table-v2/src/table-v2-header-cell.vue.d.ts +61 -0
  72. package/es/components/table-v2/src/table-v2-header-cell.vue.mjs +6 -0
  73. package/es/components/table-v2/src/table-v2-header-cell.vue2.mjs +92 -0
  74. package/es/components/table-v2/src/type.d.ts +95 -0
  75. package/es/components/table-v2/src/type.mjs +1 -0
  76. package/es/components/table-v2/src/use-table-v2-columns.d.ts +43 -0
  77. package/es/components/table-v2/src/use-table-v2-columns.mjs +47 -0
  78. package/es/components/table-v2/style/css.d.ts +17 -0
  79. package/es/components/table-v2/style/css.mjs +17 -0
  80. package/es/components/table-v2/style/index.d.ts +17 -0
  81. package/es/components/table-v2/style/index.mjs +17 -0
  82. package/es/index.mjs +6 -0
  83. package/es/version.d.ts +1 -1
  84. package/es/version.mjs +1 -1
  85. package/index.css +1 -1
  86. package/index.js +1850 -279
  87. package/index.min.js +9 -6
  88. package/index.min.mjs +9 -6
  89. package/index.mjs +1813 -248
  90. package/lib/component.js +42 -38
  91. package/lib/components/dialog/index.d.ts +30 -30
  92. package/lib/components/dialog/src/index.vue.d.ts +2 -2
  93. package/lib/components/dialog-form/index.d.ts +2 -2
  94. package/lib/components/dialog-form/src/index.vue.d.ts +2 -2
  95. package/lib/components/display-item/index.d.ts +25 -25
  96. package/lib/components/display-item/src/index.vue.d.ts +7 -7
  97. package/lib/components/drawer-form/index.d.ts +50 -50
  98. package/lib/components/drawer-form/src/index.vue.d.ts +10 -10
  99. package/lib/components/form/index.d.ts +99 -99
  100. package/lib/components/form/src/form-content.vue.d.ts +12 -12
  101. package/lib/components/form/src/index.vue.d.ts +11 -11
  102. package/lib/components/form-item/index.d.ts +80 -80
  103. package/lib/components/form-item/src/index.vue.d.ts +9 -9
  104. package/lib/components/index.d.ts +2 -0
  105. package/lib/components/index.js +51 -39
  106. package/lib/components/input-tag/index.d.ts +6 -6
  107. package/lib/components/input-tag/src/index.vue.d.ts +6 -6
  108. package/lib/components/layout/index.d.ts +30 -30
  109. package/lib/components/layout/src/index.vue.d.ts +10 -10
  110. package/lib/components/page/index.d.ts +9087 -4864
  111. package/lib/components/page/src/index.vue.d.ts +1903 -513
  112. package/lib/components/page/src/index.vue2.js +46 -15
  113. package/lib/components/popover/index.d.ts +49 -49
  114. package/lib/components/popover/src/index.vue.d.ts +3 -3
  115. package/lib/components/render/index.d.ts +14 -14
  116. package/lib/components/render/src/index.vue.d.ts +1 -1
  117. package/lib/components/search/index.d.ts +298 -298
  118. package/lib/components/search/src/index.vue.d.ts +84 -84
  119. package/lib/components/sidebar/index.d.ts +31 -31
  120. package/lib/components/sidebar/src/index.vue.d.ts +5 -5
  121. package/lib/components/table/index.d.ts +165 -180
  122. package/lib/components/table/index.js +6 -0
  123. package/lib/components/table/src/index.vue.d.ts +12 -21
  124. package/lib/components/table/src/index.vue2.js +10 -33
  125. package/lib/components/table/src/table-action-bar-content.vue.d.ts +78 -0
  126. package/lib/components/table/src/table-action-bar-content.vue.js +10 -0
  127. package/lib/components/table/src/table-action-bar-content.vue2.js +399 -0
  128. package/lib/components/table/src/table-action-bar.vue.d.ts +4 -4
  129. package/lib/components/table/src/table-action-bar.vue2.js +28 -351
  130. package/lib/components/table/src/table-column-drag-sort.vue.d.ts +1 -1
  131. package/lib/components/table/src/table-column-index.vue.d.ts +1 -1
  132. package/lib/components/table/src/table-column.vue.d.ts +22 -29
  133. package/lib/components/table/src/table-column.vue2.js +2 -55
  134. package/lib/components/table/src/table-title-bar.vue.d.ts +2 -2
  135. package/lib/components/table/src/type.d.ts +0 -11
  136. package/lib/components/table/src/use-columns.d.ts +26 -0
  137. package/lib/components/table/src/use-columns.js +42 -0
  138. package/lib/components/table-lite/index.d.ts +1783 -0
  139. package/lib/components/table-lite/index.js +8 -0
  140. package/lib/components/table-lite/src/index.vue.d.ts +672 -0
  141. package/lib/components/table-lite/src/index.vue.js +10 -0
  142. package/lib/components/table-lite/src/index.vue2.js +685 -0
  143. package/lib/components/table-lite/src/type.d.ts +91 -0
  144. package/lib/components/table-lite/src/type.js +2 -0
  145. package/lib/components/table-lite/style/css.d.ts +16 -0
  146. package/lib/components/table-lite/style/css.js +19 -0
  147. package/lib/components/table-lite/style/index.d.ts +16 -0
  148. package/lib/components/table-lite/style/index.js +19 -0
  149. package/lib/components/table-v2/index.d.ts +174 -0
  150. package/lib/components/table-v2/index.js +10 -0
  151. package/lib/components/table-v2/src/column-converter.d.ts +27 -0
  152. package/lib/components/table-v2/src/column-converter.js +44 -0
  153. package/lib/components/table-v2/src/index.vue.d.ts +157 -0
  154. package/lib/components/table-v2/src/index.vue.js +10 -0
  155. package/lib/components/table-v2/src/index.vue2.js +495 -0
  156. package/lib/components/table-v2/src/special-columns.d.ts +61 -0
  157. package/lib/components/table-v2/src/special-columns.js +80 -0
  158. package/lib/components/table-v2/src/table-v2-cell.d.ts +104 -0
  159. package/lib/components/table-v2/src/table-v2-cell.js +143 -0
  160. package/lib/components/table-v2/src/table-v2-header-cell.vue.d.ts +61 -0
  161. package/lib/components/table-v2/src/table-v2-header-cell.vue.js +10 -0
  162. package/lib/components/table-v2/src/table-v2-header-cell.vue2.js +96 -0
  163. package/lib/components/table-v2/src/type.d.ts +95 -0
  164. package/lib/components/table-v2/src/type.js +2 -0
  165. package/lib/components/table-v2/src/use-table-v2-columns.d.ts +43 -0
  166. package/lib/components/table-v2/src/use-table-v2-columns.js +51 -0
  167. package/lib/components/table-v2/style/css.d.ts +17 -0
  168. package/lib/components/table-v2/style/css.js +20 -0
  169. package/lib/components/table-v2/style/index.d.ts +17 -0
  170. package/lib/components/table-v2/style/index.js +20 -0
  171. package/lib/index.js +51 -39
  172. package/lib/version.d.ts +1 -1
  173. package/lib/version.js +1 -1
  174. package/locale/en.js +1 -1
  175. package/locale/en.min.js +1 -1
  176. package/locale/en.min.mjs +1 -1
  177. package/locale/en.mjs +1 -1
  178. package/locale/ja.js +1 -1
  179. package/locale/ja.min.js +1 -1
  180. package/locale/ja.min.mjs +1 -1
  181. package/locale/ja.mjs +1 -1
  182. package/locale/ko.js +1 -1
  183. package/locale/ko.min.js +1 -1
  184. package/locale/ko.min.mjs +1 -1
  185. package/locale/ko.mjs +1 -1
  186. package/locale/zh-cn.js +1 -1
  187. package/locale/zh-cn.min.js +1 -1
  188. package/locale/zh-cn.min.mjs +1 -1
  189. package/locale/zh-cn.mjs +1 -1
  190. package/locale/zh-hk.js +1 -1
  191. package/locale/zh-hk.min.js +1 -1
  192. package/locale/zh-hk.min.mjs +1 -1
  193. package/locale/zh-hk.mjs +1 -1
  194. package/locale/zh-tw.js +1 -1
  195. package/locale/zh-tw.min.js +1 -1
  196. package/locale/zh-tw.min.mjs +1 -1
  197. package/locale/zh-tw.mjs +1 -1
  198. package/package.json +1 -1
  199. package/theme-chalk/index.css +1 -1
  200. package/theme-chalk/plus-table-lite.css +1 -0
  201. package/theme-chalk/plus-table-v2.css +1 -0
  202. package/theme-chalk/src/index.scss +2 -0
  203. package/theme-chalk/src/table-lite.scss +53 -0
  204. package/theme-chalk/src/table-v2.scss +71 -0
@@ -2,15 +2,18 @@ import { DebouncedFunc } from 'lodash-es';
2
2
  import { default as __DTS_DEFAULT_0__ } from 'element-plus/es/components/table/src/table-layout';
3
3
  import { EpPropMergeType } from 'element-plus/es/utils';
4
4
  import { Options } from 'sortablejs';
5
- import { ActionBarProps, ColumnSetting, TableSpecialColumnType, ButtonsCallBackParams, FormChangeCallBackParams, FilterTableHeaderEventType, TableFormRefRow } from './src/type';
6
5
  import { PlusPaginationProps, PlusRadioProps } from 'tabula-vue';
6
+ import { ActionBarProps, ColumnSetting, TableSpecialColumnType, ButtonsCallBackParams, FormChangeCallBackParams, FilterTableHeaderEventType, TableFormRefRow } from './src/type';
7
7
  import { TableColumnCtx, SummaryMethod, ColumnCls, ColumnStyle, CellCls, CellStyle, Sort, ElTooltipProps, TreeNode, Translator, Table } from 'element-plus';
8
8
  import { PlusColumn, RecordType, PageInfo, TableValueType, FormItemValueType, OptionsRow } from 'tabula-vue';
9
9
  import { CreateComponentPublicInstance, ExtractPropTypes, PropType, CSSProperties, ComputedRef, ShallowRef, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase } from 'vue';
10
+ import { default as PlusTableActionBarContent } from './src/table-action-bar-content.vue';
11
+ import { default as PlusTableTitleBar } from './src/table-title-bar.vue';
10
12
  import { default as _Table } from './src/index.vue';
11
13
 
12
14
  export type PlusTableInstance = InstanceType<typeof _Table>;
13
15
  export * from './src/type';
16
+ export { useTableColumns } from './src/use-columns';
14
17
  export declare const PlusTable: {
15
18
  new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
16
19
  columns: {
@@ -43,26 +46,26 @@ export declare const PlusTable: {
43
46
  type: PropType<string | number>;
44
47
  default: undefined;
45
48
  };
46
- tableData: {
47
- type: PropType< RecordType[]>;
48
- default: () => never[];
49
- };
50
- defaultSize: {
51
- type: PropType<"" | "default" | "small" | "large">;
52
- default: string;
53
- };
54
- pagination: {
55
- type: PropType<false | Partial< PlusPaginationProps>>;
56
- default: boolean;
57
- };
58
49
  actionBar: {
59
50
  type: PropType<false | Partial< ActionBarProps>>;
60
51
  default: boolean;
61
52
  };
62
- hasIndexColumn: {
63
- type: PropType<boolean>;
53
+ editable: {
54
+ type: PropType<boolean | "click" | "dblclick">;
64
55
  default: boolean;
65
56
  };
57
+ indexTableColumnProps: {
58
+ type: PropType<Partial< TableColumnCtx<RecordType>>>;
59
+ default: () => {};
60
+ };
61
+ indexContentStyle: {
62
+ type: PropType<Partial< CSSProperties> | ((row: RecordType, index: number) => Partial< CSSProperties>)>;
63
+ default: () => {};
64
+ };
65
+ dragSortableTableColumnProps: {
66
+ type: PropType<Partial< TableColumnCtx<RecordType>>>;
67
+ default: () => {};
68
+ };
66
69
  titleBar: {
67
70
  type: PropType<boolean | Partial<Partial<{
68
71
  title?: string | undefined;
@@ -76,6 +79,22 @@ export declare const PlusTable: {
76
79
  }>>>;
77
80
  default: boolean;
78
81
  };
82
+ defaultSize: {
83
+ type: PropType<"" | "default" | "small" | "large">;
84
+ default: string;
85
+ };
86
+ tableData: {
87
+ type: PropType< RecordType[]>;
88
+ default: () => never[];
89
+ };
90
+ pagination: {
91
+ type: PropType<false | Partial< PlusPaginationProps>>;
92
+ default: boolean;
93
+ };
94
+ hasIndexColumn: {
95
+ type: PropType<boolean>;
96
+ default: boolean;
97
+ };
79
98
  isSelection: {
80
99
  type: PropType<boolean | "radio">;
81
100
  default: boolean;
@@ -100,14 +119,6 @@ export declare const PlusTable: {
100
119
  type: PropType<false | Partial< Options>>;
101
120
  default: boolean;
102
121
  };
103
- dragSortableTableColumnProps: {
104
- type: PropType<Partial< TableColumnCtx<RecordType>>>;
105
- default: () => {};
106
- };
107
- indexTableColumnProps: {
108
- type: PropType<Partial< TableColumnCtx<RecordType>>>;
109
- default: () => {};
110
- };
111
122
  selectionTableColumnProps: {
112
123
  type: PropType<Partial< TableColumnCtx<RecordType>>>;
113
124
  default: () => {
@@ -135,14 +146,6 @@ export declare const PlusTable: {
135
146
  type: PropType<Partial< TableColumnCtx<RecordType>>>;
136
147
  default: () => {};
137
148
  };
138
- indexContentStyle: {
139
- type: PropType<Partial< CSSProperties> | ((row: RecordType, index: number) => Partial< CSSProperties>)>;
140
- default: () => {};
141
- };
142
- editable: {
143
- type: PropType<boolean | "click" | "dblclick">;
144
- default: boolean;
145
- };
146
149
  adaptive: {
147
150
  type: PropType<boolean | {
148
151
  offsetBottom?: number | undefined;
@@ -153,21 +156,17 @@ export declare const PlusTable: {
153
156
  filterTableHeaderOverflowLabelLength: {
154
157
  type: PropType<number>;
155
158
  };
156
- plainTextCell: {
157
- type: PropType<boolean>;
158
- default: boolean;
159
- };
160
159
  }>> & {
161
- onRefresh?: (() => any) | undefined;
162
- onPaginationChange?: ((pageInfo: PageInfo) => any) | undefined;
163
160
  onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
164
161
  onClickActionConfirmCancel?: ((data: ButtonsCallBackParams) => any) | undefined;
165
- onDragSortEnd?: ((newIndex: number, oldIndex: number) => any) | undefined;
166
162
  onFormChange?: ((data: FormChangeCallBackParams) => any) | undefined;
167
- onEdited?: (() => any) | undefined;
168
163
  "onCell-click"?: ((row: RecordType, column: PlusColumn, cell: HTMLTableCellElement, event: Event) => any) | undefined;
169
164
  "onCell-dblclick"?: ((row: RecordType, column: PlusColumn, cell: HTMLTableCellElement, event: Event) => any) | undefined;
165
+ onDragSortEnd?: ((newIndex: number, oldIndex: number) => any) | undefined;
166
+ onRefresh?: (() => any) | undefined;
170
167
  onFilterTableHeader?: ((columns: PlusColumn[], eventType: FilterTableHeaderEventType) => any) | undefined;
168
+ onPaginationChange?: ((pageInfo: PageInfo) => any) | undefined;
169
+ onEdited?: (() => any) | undefined;
171
170
  onRadioChange?: ((row: RecordType, index: number, value: boolean) => any) | undefined;
172
171
  }, {
173
172
  formRefs: ShallowRef<Record<string | number, TableFormRefRow[]>>;
@@ -763,26 +762,26 @@ export declare const PlusTable: {
763
762
  type: PropType<string | number>;
764
763
  default: undefined;
765
764
  };
766
- tableData: {
767
- type: PropType< RecordType[]>;
768
- default: () => never[];
769
- };
770
- defaultSize: {
771
- type: PropType<"" | "default" | "small" | "large">;
772
- default: string;
773
- };
774
- pagination: {
775
- type: PropType<false | Partial< PlusPaginationProps>>;
776
- default: boolean;
777
- };
778
765
  actionBar: {
779
766
  type: PropType<false | Partial< ActionBarProps>>;
780
767
  default: boolean;
781
768
  };
782
- hasIndexColumn: {
783
- type: PropType<boolean>;
769
+ editable: {
770
+ type: PropType<boolean | "click" | "dblclick">;
784
771
  default: boolean;
785
772
  };
773
+ indexTableColumnProps: {
774
+ type: PropType<Partial< TableColumnCtx<RecordType>>>;
775
+ default: () => {};
776
+ };
777
+ indexContentStyle: {
778
+ type: PropType<Partial< CSSProperties> | ((row: RecordType, index: number) => Partial< CSSProperties>)>;
779
+ default: () => {};
780
+ };
781
+ dragSortableTableColumnProps: {
782
+ type: PropType<Partial< TableColumnCtx<RecordType>>>;
783
+ default: () => {};
784
+ };
786
785
  titleBar: {
787
786
  type: PropType<boolean | Partial<Partial<{
788
787
  title?: string | undefined;
@@ -796,6 +795,22 @@ export declare const PlusTable: {
796
795
  }>>>;
797
796
  default: boolean;
798
797
  };
798
+ defaultSize: {
799
+ type: PropType<"" | "default" | "small" | "large">;
800
+ default: string;
801
+ };
802
+ tableData: {
803
+ type: PropType< RecordType[]>;
804
+ default: () => never[];
805
+ };
806
+ pagination: {
807
+ type: PropType<false | Partial< PlusPaginationProps>>;
808
+ default: boolean;
809
+ };
810
+ hasIndexColumn: {
811
+ type: PropType<boolean>;
812
+ default: boolean;
813
+ };
799
814
  isSelection: {
800
815
  type: PropType<boolean | "radio">;
801
816
  default: boolean;
@@ -820,14 +835,6 @@ export declare const PlusTable: {
820
835
  type: PropType<false | Partial< Options>>;
821
836
  default: boolean;
822
837
  };
823
- dragSortableTableColumnProps: {
824
- type: PropType<Partial< TableColumnCtx<RecordType>>>;
825
- default: () => {};
826
- };
827
- indexTableColumnProps: {
828
- type: PropType<Partial< TableColumnCtx<RecordType>>>;
829
- default: () => {};
830
- };
831
838
  selectionTableColumnProps: {
832
839
  type: PropType<Partial< TableColumnCtx<RecordType>>>;
833
840
  default: () => {
@@ -855,14 +862,6 @@ export declare const PlusTable: {
855
862
  type: PropType<Partial< TableColumnCtx<RecordType>>>;
856
863
  default: () => {};
857
864
  };
858
- indexContentStyle: {
859
- type: PropType<Partial< CSSProperties> | ((row: RecordType, index: number) => Partial< CSSProperties>)>;
860
- default: () => {};
861
- };
862
- editable: {
863
- type: PropType<boolean | "click" | "dblclick">;
864
- default: boolean;
865
- };
866
865
  adaptive: {
867
866
  type: PropType<boolean | {
868
867
  offsetBottom?: number | undefined;
@@ -873,21 +872,17 @@ export declare const PlusTable: {
873
872
  filterTableHeaderOverflowLabelLength: {
874
873
  type: PropType<number>;
875
874
  };
876
- plainTextCell: {
877
- type: PropType<boolean>;
878
- default: boolean;
879
- };
880
875
  }>> & {
881
- onRefresh?: (() => any) | undefined;
882
- onPaginationChange?: ((pageInfo: PageInfo) => any) | undefined;
883
876
  onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
884
877
  onClickActionConfirmCancel?: ((data: ButtonsCallBackParams) => any) | undefined;
885
- onDragSortEnd?: ((newIndex: number, oldIndex: number) => any) | undefined;
886
878
  onFormChange?: ((data: FormChangeCallBackParams) => any) | undefined;
887
- onEdited?: (() => any) | undefined;
888
879
  "onCell-click"?: ((row: RecordType, column: PlusColumn, cell: HTMLTableCellElement, event: Event) => any) | undefined;
889
880
  "onCell-dblclick"?: ((row: RecordType, column: PlusColumn, cell: HTMLTableCellElement, event: Event) => any) | undefined;
881
+ onDragSortEnd?: ((newIndex: number, oldIndex: number) => any) | undefined;
882
+ onRefresh?: (() => any) | undefined;
890
883
  onFilterTableHeader?: ((columns: PlusColumn[], eventType: FilterTableHeaderEventType) => any) | undefined;
884
+ onPaginationChange?: ((pageInfo: PageInfo) => any) | undefined;
885
+ onEdited?: (() => any) | undefined;
891
886
  onRadioChange?: ((row: RecordType, index: number, value: boolean) => any) | undefined;
892
887
  }, {
893
888
  columns: PlusColumn[];
@@ -900,11 +895,11 @@ export declare const PlusTable: {
900
895
  }) => CSSProperties>;
901
896
  rowKey: string | ((row: any[]) => string);
902
897
  emptyValue: string | number;
903
- tableData: RecordType[];
904
- defaultSize: "" | "default" | "small" | "large";
905
- pagination: false | Partial< PlusPaginationProps>;
906
898
  actionBar: false | Partial< ActionBarProps>;
907
- hasIndexColumn: boolean;
899
+ editable: boolean | "click" | "dblclick";
900
+ indexTableColumnProps: Partial< TableColumnCtx<RecordType>>;
901
+ indexContentStyle: Partial< CSSProperties> | ((row: RecordType, index: number) => Partial< CSSProperties>);
902
+ dragSortableTableColumnProps: Partial< TableColumnCtx<RecordType>>;
908
903
  titleBar: boolean | Partial<Partial<{
909
904
  title?: string | undefined;
910
905
  refresh?: boolean | undefined;
@@ -915,14 +910,16 @@ export declare const PlusTable: {
915
910
  color?: string | undefined;
916
911
  } | undefined;
917
912
  }>>;
913
+ defaultSize: "" | "default" | "small" | "large";
914
+ tableData: RecordType[];
915
+ pagination: false | Partial< PlusPaginationProps>;
916
+ hasIndexColumn: boolean;
918
917
  isSelection: boolean | "radio";
919
918
  isRadio: boolean;
920
919
  hasExpand: boolean;
921
920
  specialColumnsOrder: TableSpecialColumnType[];
922
921
  loadingStatus: boolean;
923
922
  dragSortable: false | Partial< Options>;
924
- dragSortableTableColumnProps: Partial< TableColumnCtx<RecordType>>;
925
- indexTableColumnProps: Partial< TableColumnCtx<RecordType>>;
926
923
  selectionTableColumnProps: Partial< TableColumnCtx<RecordType>>;
927
924
  radioTableColumnProps: Partial< TableColumnCtx<RecordType>>;
928
925
  radioProps: Partial< PlusRadioProps & {
@@ -931,13 +928,10 @@ export declare const PlusTable: {
931
928
  } & RecordType>;
932
929
  defaultSelectedRadioRow: RecordType | ComputedRef<RecordType>;
933
930
  expandTableColumnProps: Partial< TableColumnCtx<RecordType>>;
934
- indexContentStyle: Partial< CSSProperties> | ((row: RecordType, index: number) => Partial< CSSProperties>);
935
- editable: boolean | "click" | "dblclick";
936
931
  adaptive: boolean | {
937
932
  offsetBottom?: number | undefined;
938
933
  timeout?: number | undefined;
939
934
  };
940
- plainTextCell: boolean;
941
935
  }, true, {}, {}, {
942
936
  P: {};
943
937
  B: {};
@@ -976,26 +970,26 @@ export declare const PlusTable: {
976
970
  type: PropType<string | number>;
977
971
  default: undefined;
978
972
  };
979
- tableData: {
980
- type: PropType< RecordType[]>;
981
- default: () => never[];
982
- };
983
- defaultSize: {
984
- type: PropType<"" | "default" | "small" | "large">;
985
- default: string;
986
- };
987
- pagination: {
988
- type: PropType<false | Partial< PlusPaginationProps>>;
989
- default: boolean;
990
- };
991
973
  actionBar: {
992
974
  type: PropType<false | Partial< ActionBarProps>>;
993
975
  default: boolean;
994
976
  };
995
- hasIndexColumn: {
996
- type: PropType<boolean>;
977
+ editable: {
978
+ type: PropType<boolean | "click" | "dblclick">;
997
979
  default: boolean;
998
980
  };
981
+ indexTableColumnProps: {
982
+ type: PropType<Partial< TableColumnCtx<RecordType>>>;
983
+ default: () => {};
984
+ };
985
+ indexContentStyle: {
986
+ type: PropType<Partial< CSSProperties> | ((row: RecordType, index: number) => Partial< CSSProperties>)>;
987
+ default: () => {};
988
+ };
989
+ dragSortableTableColumnProps: {
990
+ type: PropType<Partial< TableColumnCtx<RecordType>>>;
991
+ default: () => {};
992
+ };
999
993
  titleBar: {
1000
994
  type: PropType<boolean | Partial<Partial<{
1001
995
  title?: string | undefined;
@@ -1009,6 +1003,22 @@ export declare const PlusTable: {
1009
1003
  }>>>;
1010
1004
  default: boolean;
1011
1005
  };
1006
+ defaultSize: {
1007
+ type: PropType<"" | "default" | "small" | "large">;
1008
+ default: string;
1009
+ };
1010
+ tableData: {
1011
+ type: PropType< RecordType[]>;
1012
+ default: () => never[];
1013
+ };
1014
+ pagination: {
1015
+ type: PropType<false | Partial< PlusPaginationProps>>;
1016
+ default: boolean;
1017
+ };
1018
+ hasIndexColumn: {
1019
+ type: PropType<boolean>;
1020
+ default: boolean;
1021
+ };
1012
1022
  isSelection: {
1013
1023
  type: PropType<boolean | "radio">;
1014
1024
  default: boolean;
@@ -1033,14 +1043,6 @@ export declare const PlusTable: {
1033
1043
  type: PropType<false | Partial< Options>>;
1034
1044
  default: boolean;
1035
1045
  };
1036
- dragSortableTableColumnProps: {
1037
- type: PropType<Partial< TableColumnCtx<RecordType>>>;
1038
- default: () => {};
1039
- };
1040
- indexTableColumnProps: {
1041
- type: PropType<Partial< TableColumnCtx<RecordType>>>;
1042
- default: () => {};
1043
- };
1044
1046
  selectionTableColumnProps: {
1045
1047
  type: PropType<Partial< TableColumnCtx<RecordType>>>;
1046
1048
  default: () => {
@@ -1068,14 +1070,6 @@ export declare const PlusTable: {
1068
1070
  type: PropType<Partial< TableColumnCtx<RecordType>>>;
1069
1071
  default: () => {};
1070
1072
  };
1071
- indexContentStyle: {
1072
- type: PropType<Partial< CSSProperties> | ((row: RecordType, index: number) => Partial< CSSProperties>)>;
1073
- default: () => {};
1074
- };
1075
- editable: {
1076
- type: PropType<boolean | "click" | "dblclick">;
1077
- default: boolean;
1078
- };
1079
1073
  adaptive: {
1080
1074
  type: PropType<boolean | {
1081
1075
  offsetBottom?: number | undefined;
@@ -1086,21 +1080,17 @@ export declare const PlusTable: {
1086
1080
  filterTableHeaderOverflowLabelLength: {
1087
1081
  type: PropType<number>;
1088
1082
  };
1089
- plainTextCell: {
1090
- type: PropType<boolean>;
1091
- default: boolean;
1092
- };
1093
1083
  }>> & {
1094
- onRefresh?: (() => any) | undefined;
1095
- onPaginationChange?: ((pageInfo: PageInfo) => any) | undefined;
1096
1084
  onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
1097
1085
  onClickActionConfirmCancel?: ((data: ButtonsCallBackParams) => any) | undefined;
1098
- onDragSortEnd?: ((newIndex: number, oldIndex: number) => any) | undefined;
1099
1086
  onFormChange?: ((data: FormChangeCallBackParams) => any) | undefined;
1100
- onEdited?: (() => any) | undefined;
1101
1087
  "onCell-click"?: ((row: RecordType, column: PlusColumn, cell: HTMLTableCellElement, event: Event) => any) | undefined;
1102
1088
  "onCell-dblclick"?: ((row: RecordType, column: PlusColumn, cell: HTMLTableCellElement, event: Event) => any) | undefined;
1089
+ onDragSortEnd?: ((newIndex: number, oldIndex: number) => any) | undefined;
1090
+ onRefresh?: (() => any) | undefined;
1103
1091
  onFilterTableHeader?: ((columns: PlusColumn[], eventType: FilterTableHeaderEventType) => any) | undefined;
1092
+ onPaginationChange?: ((pageInfo: PageInfo) => any) | undefined;
1093
+ onEdited?: (() => any) | undefined;
1104
1094
  onRadioChange?: ((row: RecordType, index: number, value: boolean) => any) | undefined;
1105
1095
  }, {
1106
1096
  formRefs: ShallowRef<Record<string | number, TableFormRefRow[]>>;
@@ -1664,11 +1654,11 @@ export declare const PlusTable: {
1664
1654
  }) => CSSProperties>;
1665
1655
  rowKey: string | ((row: any[]) => string);
1666
1656
  emptyValue: string | number;
1667
- tableData: RecordType[];
1668
- defaultSize: "" | "default" | "small" | "large";
1669
- pagination: false | Partial< PlusPaginationProps>;
1670
1657
  actionBar: false | Partial< ActionBarProps>;
1671
- hasIndexColumn: boolean;
1658
+ editable: boolean | "click" | "dblclick";
1659
+ indexTableColumnProps: Partial< TableColumnCtx<RecordType>>;
1660
+ indexContentStyle: Partial< CSSProperties> | ((row: RecordType, index: number) => Partial< CSSProperties>);
1661
+ dragSortableTableColumnProps: Partial< TableColumnCtx<RecordType>>;
1672
1662
  titleBar: boolean | Partial<Partial<{
1673
1663
  title?: string | undefined;
1674
1664
  refresh?: boolean | undefined;
@@ -1679,14 +1669,16 @@ export declare const PlusTable: {
1679
1669
  color?: string | undefined;
1680
1670
  } | undefined;
1681
1671
  }>>;
1672
+ defaultSize: "" | "default" | "small" | "large";
1673
+ tableData: RecordType[];
1674
+ pagination: false | Partial< PlusPaginationProps>;
1675
+ hasIndexColumn: boolean;
1682
1676
  isSelection: boolean | "radio";
1683
1677
  isRadio: boolean;
1684
1678
  hasExpand: boolean;
1685
1679
  specialColumnsOrder: TableSpecialColumnType[];
1686
1680
  loadingStatus: boolean;
1687
1681
  dragSortable: false | Partial< Options>;
1688
- dragSortableTableColumnProps: Partial< TableColumnCtx<RecordType>>;
1689
- indexTableColumnProps: Partial< TableColumnCtx<RecordType>>;
1690
1682
  selectionTableColumnProps: Partial< TableColumnCtx<RecordType>>;
1691
1683
  radioTableColumnProps: Partial< TableColumnCtx<RecordType>>;
1692
1684
  radioProps: Partial< PlusRadioProps & {
@@ -1695,13 +1687,10 @@ export declare const PlusTable: {
1695
1687
  } & RecordType>;
1696
1688
  defaultSelectedRadioRow: RecordType | ComputedRef<RecordType>;
1697
1689
  expandTableColumnProps: Partial< TableColumnCtx<RecordType>>;
1698
- indexContentStyle: Partial< CSSProperties> | ((row: RecordType, index: number) => Partial< CSSProperties>);
1699
- editable: boolean | "click" | "dblclick";
1700
1690
  adaptive: boolean | {
1701
1691
  offsetBottom?: number | undefined;
1702
1692
  timeout?: number | undefined;
1703
1693
  };
1704
- plainTextCell: boolean;
1705
1694
  }>;
1706
1695
  __isFragment?: undefined;
1707
1696
  __isTeleport?: undefined;
@@ -1737,26 +1726,26 @@ export declare const PlusTable: {
1737
1726
  type: PropType<string | number>;
1738
1727
  default: undefined;
1739
1728
  };
1740
- tableData: {
1741
- type: PropType< RecordType[]>;
1742
- default: () => never[];
1743
- };
1744
- defaultSize: {
1745
- type: PropType<"" | "default" | "small" | "large">;
1746
- default: string;
1747
- };
1748
- pagination: {
1749
- type: PropType<false | Partial< PlusPaginationProps>>;
1750
- default: boolean;
1751
- };
1752
1729
  actionBar: {
1753
1730
  type: PropType<false | Partial< ActionBarProps>>;
1754
1731
  default: boolean;
1755
1732
  };
1756
- hasIndexColumn: {
1757
- type: PropType<boolean>;
1733
+ editable: {
1734
+ type: PropType<boolean | "click" | "dblclick">;
1758
1735
  default: boolean;
1759
1736
  };
1737
+ indexTableColumnProps: {
1738
+ type: PropType<Partial< TableColumnCtx<RecordType>>>;
1739
+ default: () => {};
1740
+ };
1741
+ indexContentStyle: {
1742
+ type: PropType<Partial< CSSProperties> | ((row: RecordType, index: number) => Partial< CSSProperties>)>;
1743
+ default: () => {};
1744
+ };
1745
+ dragSortableTableColumnProps: {
1746
+ type: PropType<Partial< TableColumnCtx<RecordType>>>;
1747
+ default: () => {};
1748
+ };
1760
1749
  titleBar: {
1761
1750
  type: PropType<boolean | Partial<Partial<{
1762
1751
  title?: string | undefined;
@@ -1770,6 +1759,22 @@ export declare const PlusTable: {
1770
1759
  }>>>;
1771
1760
  default: boolean;
1772
1761
  };
1762
+ defaultSize: {
1763
+ type: PropType<"" | "default" | "small" | "large">;
1764
+ default: string;
1765
+ };
1766
+ tableData: {
1767
+ type: PropType< RecordType[]>;
1768
+ default: () => never[];
1769
+ };
1770
+ pagination: {
1771
+ type: PropType<false | Partial< PlusPaginationProps>>;
1772
+ default: boolean;
1773
+ };
1774
+ hasIndexColumn: {
1775
+ type: PropType<boolean>;
1776
+ default: boolean;
1777
+ };
1773
1778
  isSelection: {
1774
1779
  type: PropType<boolean | "radio">;
1775
1780
  default: boolean;
@@ -1794,14 +1799,6 @@ export declare const PlusTable: {
1794
1799
  type: PropType<false | Partial< Options>>;
1795
1800
  default: boolean;
1796
1801
  };
1797
- dragSortableTableColumnProps: {
1798
- type: PropType<Partial< TableColumnCtx<RecordType>>>;
1799
- default: () => {};
1800
- };
1801
- indexTableColumnProps: {
1802
- type: PropType<Partial< TableColumnCtx<RecordType>>>;
1803
- default: () => {};
1804
- };
1805
1802
  selectionTableColumnProps: {
1806
1803
  type: PropType<Partial< TableColumnCtx<RecordType>>>;
1807
1804
  default: () => {
@@ -1829,14 +1826,6 @@ export declare const PlusTable: {
1829
1826
  type: PropType<Partial< TableColumnCtx<RecordType>>>;
1830
1827
  default: () => {};
1831
1828
  };
1832
- indexContentStyle: {
1833
- type: PropType<Partial< CSSProperties> | ((row: RecordType, index: number) => Partial< CSSProperties>)>;
1834
- default: () => {};
1835
- };
1836
- editable: {
1837
- type: PropType<boolean | "click" | "dblclick">;
1838
- default: boolean;
1839
- };
1840
1829
  adaptive: {
1841
1830
  type: PropType<boolean | {
1842
1831
  offsetBottom?: number | undefined;
@@ -1847,21 +1836,17 @@ export declare const PlusTable: {
1847
1836
  filterTableHeaderOverflowLabelLength: {
1848
1837
  type: PropType<number>;
1849
1838
  };
1850
- plainTextCell: {
1851
- type: PropType<boolean>;
1852
- default: boolean;
1853
- };
1854
1839
  }>> & {
1855
- onRefresh?: (() => any) | undefined;
1856
- onPaginationChange?: ((pageInfo: PageInfo) => any) | undefined;
1857
1840
  onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
1858
1841
  onClickActionConfirmCancel?: ((data: ButtonsCallBackParams) => any) | undefined;
1859
- onDragSortEnd?: ((newIndex: number, oldIndex: number) => any) | undefined;
1860
1842
  onFormChange?: ((data: FormChangeCallBackParams) => any) | undefined;
1861
- onEdited?: (() => any) | undefined;
1862
1843
  "onCell-click"?: ((row: RecordType, column: PlusColumn, cell: HTMLTableCellElement, event: Event) => any) | undefined;
1863
1844
  "onCell-dblclick"?: ((row: RecordType, column: PlusColumn, cell: HTMLTableCellElement, event: Event) => any) | undefined;
1845
+ onDragSortEnd?: ((newIndex: number, oldIndex: number) => any) | undefined;
1846
+ onRefresh?: (() => any) | undefined;
1864
1847
  onFilterTableHeader?: ((columns: PlusColumn[], eventType: FilterTableHeaderEventType) => any) | undefined;
1848
+ onPaginationChange?: ((pageInfo: PageInfo) => any) | undefined;
1849
+ onEdited?: (() => any) | undefined;
1865
1850
  onRadioChange?: ((row: RecordType, index: number, value: boolean) => any) | undefined;
1866
1851
  }, {
1867
1852
  formRefs: ShallowRef<Record<string | number, TableFormRefRow[]>>;
@@ -2437,11 +2422,11 @@ export declare const PlusTable: {
2437
2422
  }) => CSSProperties>;
2438
2423
  rowKey: string | ((row: any[]) => string);
2439
2424
  emptyValue: string | number;
2440
- tableData: RecordType[];
2441
- defaultSize: "" | "default" | "small" | "large";
2442
- pagination: false | Partial< PlusPaginationProps>;
2443
2425
  actionBar: false | Partial< ActionBarProps>;
2444
- hasIndexColumn: boolean;
2426
+ editable: boolean | "click" | "dblclick";
2427
+ indexTableColumnProps: Partial< TableColumnCtx<RecordType>>;
2428
+ indexContentStyle: Partial< CSSProperties> | ((row: RecordType, index: number) => Partial< CSSProperties>);
2429
+ dragSortableTableColumnProps: Partial< TableColumnCtx<RecordType>>;
2445
2430
  titleBar: boolean | Partial<Partial<{
2446
2431
  title?: string | undefined;
2447
2432
  refresh?: boolean | undefined;
@@ -2452,14 +2437,16 @@ export declare const PlusTable: {
2452
2437
  color?: string | undefined;
2453
2438
  } | undefined;
2454
2439
  }>>;
2440
+ defaultSize: "" | "default" | "small" | "large";
2441
+ tableData: RecordType[];
2442
+ pagination: false | Partial< PlusPaginationProps>;
2443
+ hasIndexColumn: boolean;
2455
2444
  isSelection: boolean | "radio";
2456
2445
  isRadio: boolean;
2457
2446
  hasExpand: boolean;
2458
2447
  specialColumnsOrder: TableSpecialColumnType[];
2459
2448
  loadingStatus: boolean;
2460
2449
  dragSortable: false | Partial< Options>;
2461
- dragSortableTableColumnProps: Partial< TableColumnCtx<RecordType>>;
2462
- indexTableColumnProps: Partial< TableColumnCtx<RecordType>>;
2463
2450
  selectionTableColumnProps: Partial< TableColumnCtx<RecordType>>;
2464
2451
  radioTableColumnProps: Partial< TableColumnCtx<RecordType>>;
2465
2452
  radioProps: Partial< PlusRadioProps & {
@@ -2468,13 +2455,10 @@ export declare const PlusTable: {
2468
2455
  } & RecordType>;
2469
2456
  defaultSelectedRadioRow: RecordType | ComputedRef<RecordType>;
2470
2457
  expandTableColumnProps: Partial< TableColumnCtx<RecordType>>;
2471
- indexContentStyle: Partial< CSSProperties> | ((row: RecordType, index: number) => Partial< CSSProperties>);
2472
- editable: boolean | "click" | "dblclick";
2473
2458
  adaptive: boolean | {
2474
2459
  offsetBottom?: number | undefined;
2475
2460
  timeout?: number | undefined;
2476
2461
  };
2477
- plainTextCell: boolean;
2478
2462
  }, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
2479
2463
  $slots: Partial<Record<NonNullable<string | number>, (_: {
2480
2464
  column: any;
@@ -2501,3 +2485,4 @@ export declare const PlusTable: {
2501
2485
  "pagination-right"?(_: {}): any;
2502
2486
  };
2503
2487
  });
2488
+ export { PlusTableTitleBar, PlusTableActionBarContent };
@@ -1,8 +1,14 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./src/index.vue.js');
4
+ var tableTitleBar = require('./src/table-title-bar.vue.js');
5
+ var tableActionBarContent = require('./src/table-action-bar-content.vue.js');
4
6
  require('./src/type.js');
7
+ var useColumns = require('./src/use-columns.js');
5
8
 
6
9
  const PlusTable = index.default;
7
10
 
11
+ exports.PlusTableTitleBar = tableTitleBar.default;
12
+ exports.PlusTableActionBarContent = tableActionBarContent.default;
13
+ exports.useTableColumns = useColumns.useTableColumns;
8
14
  exports.PlusTable = PlusTable;