@geelato/gl-ui-web-arco 0.0.1

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 (201) hide show
  1. package/README.md +55 -0
  2. package/dist/GlPdf-CP236wBj.js +891 -0
  3. package/dist/GlPdf-CP236wBj.js.gz +0 -0
  4. package/dist/gl-ui-web-arco.css +1 -0
  5. package/dist/gl-ui-web-arco.css.gz +0 -0
  6. package/dist/gl-ui-web-arco.js +21 -0
  7. package/dist/gl-ui-web-arco.js.gz +0 -0
  8. package/dist/main-D7ErSddl.js +164000 -0
  9. package/dist/main-D7ErSddl.js.gz +0 -0
  10. package/dist/pdfjs-Cvb5nkrC.js +26706 -0
  11. package/dist/pdfjs-Cvb5nkrC.js.gz +0 -0
  12. package/dist/types/api/SelectOptions.d.ts +41 -0
  13. package/dist/types/components/MetaHelper.d.ts +6 -0
  14. package/dist/types/components/gl-alert/GlAlert.vue.d.ts +27 -0
  15. package/dist/types/components/gl-button/GlButton.vue.d.ts +117 -0
  16. package/dist/types/components/gl-card/index.vue.d.ts +134 -0
  17. package/dist/types/components/gl-checkbox/GlCheckbox.vue.d.ts +19 -0
  18. package/dist/types/components/gl-color/GlColor.vue.d.ts +143 -0
  19. package/dist/types/components/gl-color-clipboard/GlColorClipboard.vue.d.ts +19 -0
  20. package/dist/types/components/gl-color-input/GlColorInput.vue.d.ts +37 -0
  21. package/dist/types/components/gl-comment/GlComment.vue.d.ts +80 -0
  22. package/dist/types/components/gl-comment/comment.vue.d.ts +72 -0
  23. package/dist/types/components/gl-comment/type.d.ts +30 -0
  24. package/dist/types/components/gl-countdown/GlCountdown.vue.d.ts +43 -0
  25. package/dist/types/components/gl-crontab/GlCrontab.vue.d.ts +39 -0
  26. package/dist/types/components/gl-crontab/tabs/day.vue.d.ts +30 -0
  27. package/dist/types/components/gl-crontab/tabs/hour.vue.d.ts +21 -0
  28. package/dist/types/components/gl-crontab/tabs/minute.vue.d.ts +21 -0
  29. package/dist/types/components/gl-crontab/tabs/mixin.d.ts +100 -0
  30. package/dist/types/components/gl-crontab/tabs/month.vue.d.ts +21 -0
  31. package/dist/types/components/gl-crontab/tabs/second.vue.d.ts +21 -0
  32. package/dist/types/components/gl-crontab/tabs/week.vue.d.ts +30 -0
  33. package/dist/types/components/gl-crontab/tabs/year.vue.d.ts +21 -0
  34. package/dist/types/components/gl-descriptions/GlDescriptions.vue.d.ts +36 -0
  35. package/dist/types/components/gl-dict/GlDict.vue.d.ts +444 -0
  36. package/dist/types/components/gl-dict/locale/en-US.d.ts +10 -0
  37. package/dist/types/components/gl-dict/locale/zh-CN.d.ts +10 -0
  38. package/dist/types/components/gl-divider/GlDevider.vue.d.ts +7 -0
  39. package/dist/types/components/gl-drag-verify/GlDragVerify.vue.d.ts +161 -0
  40. package/dist/types/components/gl-dropdown/GlDropdown.vue.d.ts +93 -0
  41. package/dist/types/components/gl-dynamic-select/GlDynamicSelect.vue.d.ts +582 -0
  42. package/dist/types/components/gl-email/GlEmailPreview.vue.d.ts +20 -0
  43. package/dist/types/components/gl-email/GlEmailSelect.vue.d.ts +1364 -0
  44. package/dist/types/components/gl-email/composables/index.d.ts +8 -0
  45. package/dist/types/components/gl-email/composables/useEmailData.d.ts +19 -0
  46. package/dist/types/components/gl-email/composables/useEmailForm.d.ts +57 -0
  47. package/dist/types/components/gl-email/composables/useEmailOperations.d.ts +15 -0
  48. package/dist/types/components/gl-email/composables/useEmailPreview.d.ts +10 -0
  49. package/dist/types/components/gl-email/composables/useEmailSchedule.d.ts +19 -0
  50. package/dist/types/components/gl-email/composables/useEmailValidation.d.ts +8 -0
  51. package/dist/types/components/gl-email/composables/useUserInfo.d.ts +18 -0
  52. package/dist/types/components/gl-email/locale/en-US.d.ts +51 -0
  53. package/dist/types/components/gl-email/locale/zh-CN.d.ts +51 -0
  54. package/dist/types/components/gl-email/types/index.d.ts +51 -0
  55. package/dist/types/components/gl-empty/GlEmpty.vue.d.ts +13 -0
  56. package/dist/types/components/gl-encode/GlEncode.vue.d.ts +152 -0
  57. package/dist/types/components/gl-entity-cascader/GlEntityCascader.vue.d.ts +26 -0
  58. package/dist/types/components/gl-entity-form/GlEntityForm.vue.d.ts +918 -0
  59. package/dist/types/components/gl-entity-form/composables/index.d.ts +16 -0
  60. package/dist/types/components/gl-entity-form/composables/useEmpty.d.ts +9 -0
  61. package/dist/types/components/gl-entity-form/composables/useFormCore.d.ts +560 -0
  62. package/dist/types/components/gl-entity-form/composables/useFormParams.d.ts +30 -0
  63. package/dist/types/components/gl-entity-form/composables/useFormValidation.d.ts +77 -0
  64. package/dist/types/components/gl-entity-table-plus/FilterManager.vue.d.ts +34 -0
  65. package/dist/types/components/gl-entity-table-plus/GlEntityTable.vue.d.ts +2910 -0
  66. package/dist/types/components/gl-entity-table-plus/GlEntityTableEdit.vue.d.ts +1322 -0
  67. package/dist/types/components/gl-entity-table-plus/GlEntityTableToolbar.vue.d.ts +471 -0
  68. package/dist/types/components/gl-entity-table-plus/constants.d.ts +292 -0
  69. package/dist/types/components/gl-entity-table-plus/index.vue.d.ts +3720 -0
  70. package/dist/types/components/gl-entity-table-plus/locale/en-US.d.ts +94 -0
  71. package/dist/types/components/gl-entity-table-plus/locale/zh-CN.d.ts +94 -0
  72. package/dist/types/components/gl-entity-table-plus/querySignature.d.ts +7 -0
  73. package/dist/types/components/gl-entity-table-plus/table.d.ts +137 -0
  74. package/dist/types/components/gl-entity-table-plus/useCellEditing.d.ts +55 -0
  75. package/dist/types/components/gl-entity-table-plus/useColumns.d.ts +20 -0
  76. package/dist/types/components/gl-entity-table-plus/useConvert.d.ts +5 -0
  77. package/dist/types/components/gl-entity-table-plus/useExport.d.ts +43 -0
  78. package/dist/types/components/gl-entity-table-plus/useFilters.d.ts +37 -0
  79. package/dist/types/components/gl-entity-table-plus/useLayout.d.ts +34 -0
  80. package/dist/types/components/gl-entity-table-plus/useMatch.d.ts +22 -0
  81. package/dist/types/components/gl-entity-table-plus/usePushedRecords.d.ts +39 -0
  82. package/dist/types/components/gl-entity-table-plus/useRow.d.ts +8 -0
  83. package/dist/types/components/gl-entity-table-plus/useRowHighlight.d.ts +33 -0
  84. package/dist/types/components/gl-entity-table-plus/useSelectedRecords.d.ts +25 -0
  85. package/dist/types/components/gl-entity-table-plus/useStore.d.ts +119 -0
  86. package/dist/types/components/gl-entity-table-plus/useSummary.d.ts +47 -0
  87. package/dist/types/components/gl-entity-table-plus/useTableDataAnalysis.d.ts +63 -0
  88. package/dist/types/components/gl-entity-table-plus/useTableHeight.d.ts +63 -0
  89. package/dist/types/components/gl-entity-table-plus/views/GlEntityCardView.vue.d.ts +76 -0
  90. package/dist/types/components/gl-entity-table-plus/views/GlEntityGalleryView.vue.d.ts +62 -0
  91. package/dist/types/components/gl-entity-table-plus/views/GlEntityPivotView.vue.d.ts +90 -0
  92. package/dist/types/components/gl-entity-table-plus/views/GlEntityTableStatView.vue.d.ts +127 -0
  93. package/dist/types/components/gl-entity-table-plus/views/GlEntityTableView.vue.d.ts +1150 -0
  94. package/dist/types/components/gl-entity-tree/GlBaseTree.vue.d.ts +944 -0
  95. package/dist/types/components/gl-entity-tree/GlEntityTree.vue.d.ts +1407 -0
  96. package/dist/types/components/gl-entity-tree/types.d.ts +11 -0
  97. package/dist/types/components/gl-flex-layout/GlFlexLayout.vue.d.ts +246 -0
  98. package/dist/types/components/gl-hidden-area/GlHiddenArea.vue.d.ts +109 -0
  99. package/dist/types/components/gl-iconfont-select/GlIconfontSelect.vue.d.ts +58 -0
  100. package/dist/types/components/gl-image/GlImage.vue.d.ts +554 -0
  101. package/dist/types/components/gl-import/GlImport.vue.d.ts +33 -0
  102. package/dist/types/components/gl-inst-runtime/GlInstRuntime.vue.d.ts +119 -0
  103. package/dist/types/components/gl-inst-runtime/GlInstsRuntime.vue.d.ts +100 -0
  104. package/dist/types/components/gl-layout-page/GlLayoutPage.vue.d.ts +224 -0
  105. package/dist/types/components/gl-layout-site/GlLayout.d.ts +24 -0
  106. package/dist/types/components/gl-layout-site/GlLayoutModeCollapse.vue.d.ts +19 -0
  107. package/dist/types/components/gl-layout-site/GlLayoutModeSidebar.vue.d.ts +41 -0
  108. package/dist/types/components/gl-layout-site/GlLayoutModeTopNav.vue.d.ts +19 -0
  109. package/dist/types/components/gl-layout-site/GlLayoutSite.vue.d.ts +26 -0
  110. package/dist/types/components/gl-layout-site/LayoutStore.d.ts +86 -0
  111. package/dist/types/components/gl-layout-site/ThemeSetting.vue.d.ts +19 -0
  112. package/dist/types/components/gl-list/GlList.vue.d.ts +104 -0
  113. package/dist/types/components/gl-metric-comparison-table/GlMetricComparisonTable.vue.d.ts +302 -0
  114. package/dist/types/components/gl-multi-components/GlMultiComponents.vue.d.ts +183 -0
  115. package/dist/types/components/gl-multi-components/locale/en-US.d.ts +5 -0
  116. package/dist/types/components/gl-multi-components/locale/zh-CN.d.ts +5 -0
  117. package/dist/types/components/gl-op-record/GlOpRecord.vue.d.ts +19 -0
  118. package/dist/types/components/gl-org-select/choose.vue.d.ts +124 -0
  119. package/dist/types/components/gl-org-select/index.vue.d.ts +178 -0
  120. package/dist/types/components/gl-org-select/tree.vue.d.ts +125 -0
  121. package/dist/types/components/gl-org-user-select/choose.vue.d.ts +428 -0
  122. package/dist/types/components/gl-org-user-select/index.vue.d.ts +178 -0
  123. package/dist/types/components/gl-org-user-select/list.vue.d.ts +133 -0
  124. package/dist/types/components/gl-page/GlPage.vue.d.ts +372 -0
  125. package/dist/types/components/gl-page-help/GlPageHelp.vue.d.ts +13 -0
  126. package/dist/types/components/gl-page-template/GlPageTemplateFlow.vue.d.ts +197 -0
  127. package/dist/types/components/gl-page-template/GlPageTemplateFlowApprove.vue.d.ts +19 -0
  128. package/dist/types/components/gl-page-template/ItemsManager.d.ts +23 -0
  129. package/dist/types/components/gl-page-template/locale/en-US.d.ts +25 -0
  130. package/dist/types/components/gl-page-template/locale/zh-CN.d.ts +25 -0
  131. package/dist/types/components/gl-page-template/state-wf/StateWFApprove.vue.d.ts +293 -0
  132. package/dist/types/components/gl-page-template/state-wf/StateWFTransfer.vue.d.ts +30 -0
  133. package/dist/types/components/gl-page-template/state-wf/stateWfApi.d.ts +114 -0
  134. package/dist/types/components/gl-pagination/GlPagination.vue.d.ts +19 -0
  135. package/dist/types/components/gl-pdf/GlPdf.vue.d.ts +90 -0
  136. package/dist/types/components/gl-popover/GlPopover.vue.d.ts +138 -0
  137. package/dist/types/components/gl-query/index.vue.d.ts +243 -0
  138. package/dist/types/components/gl-query/query.d.ts +47 -0
  139. package/dist/types/components/gl-rate/GlRate.vue.d.ts +19 -0
  140. package/dist/types/components/gl-ref-page/GlRefPage.vue.d.ts +171 -0
  141. package/dist/types/components/gl-regular-expression/GlRegularExpression.vue.d.ts +134 -0
  142. package/dist/types/components/gl-regular-expression/common.vue.d.ts +248 -0
  143. package/dist/types/components/gl-regular-expression/select.vue.d.ts +352 -0
  144. package/dist/types/components/gl-regular-expression/type.d.ts +17 -0
  145. package/dist/types/components/gl-row-col-layout/GlRowColLayout.vue.d.ts +189 -0
  146. package/dist/types/components/gl-select/GlSelect.vue.d.ts +83 -0
  147. package/dist/types/components/gl-slot/GlSlot.vue.d.ts +105 -0
  148. package/dist/types/components/gl-space/GlSpace.vue.d.ts +121 -0
  149. package/dist/types/components/gl-static-dict/GlStaticDict.vue.d.ts +32 -0
  150. package/dist/types/components/gl-static-dict/list.vue.d.ts +86 -0
  151. package/dist/types/components/gl-static-dict/type.d.ts +4 -0
  152. package/dist/types/components/gl-statistic/GlStatistic.vue.d.ts +65 -0
  153. package/dist/types/components/gl-table-select/GlTableSelect.vue.d.ts +474 -0
  154. package/dist/types/components/gl-table-select/GlTableSelectList.vue.d.ts +87 -0
  155. package/dist/types/components/gl-table-select/index.d.ts +4 -0
  156. package/dist/types/components/gl-tabs/GlDynamicTabs.vue.d.ts +226 -0
  157. package/dist/types/components/gl-tabs/GlTabs.vue.d.ts +152 -0
  158. package/dist/types/components/gl-tag/GlTag.vue.d.ts +122 -0
  159. package/dist/types/components/gl-text/GlText.vue.d.ts +152 -0
  160. package/dist/types/components/gl-textarea/GlTextarea.vue.d.ts +37 -0
  161. package/dist/types/components/gl-timeline/GlTimeline.vue.d.ts +110 -0
  162. package/dist/types/components/gl-timeline/type.d.ts +16 -0
  163. package/dist/types/components/gl-toolbar/index.vue.d.ts +65 -0
  164. package/dist/types/components/gl-toolbar/locale/en-US.d.ts +4 -0
  165. package/dist/types/components/gl-toolbar/locale/zh-CN.d.ts +4 -0
  166. package/dist/types/components/gl-toolbar/toolbar.d.ts +10 -0
  167. package/dist/types/components/gl-tooltip/GlTooltip.vue.d.ts +100 -0
  168. package/dist/types/components/gl-tree-select/GlTreeSelect.vue.d.ts +163 -0
  169. package/dist/types/components/gl-trigger-select/GlTriggerSelect.vue.d.ts +129 -0
  170. package/dist/types/components/gl-upload/GlUpload.vue.d.ts +559 -0
  171. package/dist/types/components/gl-upload/clipboard.vue.d.ts +370 -0
  172. package/dist/types/components/gl-upload/composables/useExternalDropArea.d.ts +11 -0
  173. package/dist/types/components/gl-upload/composables/useFileManager.d.ts +19 -0
  174. package/dist/types/components/gl-upload/locale/en-US.d.ts +10 -0
  175. package/dist/types/components/gl-upload/locale/zh-CN.d.ts +10 -0
  176. package/dist/types/components/gl-user-select/GlUserSelect.vue.d.ts +239 -0
  177. package/dist/types/components/gl-user-select/GlUserSelectInline.vue.d.ts +189 -0
  178. package/dist/types/components/gl-user-select/GlUserSelectPanel.vue.d.ts +97 -0
  179. package/dist/types/components/gl-user-select/GlUserSelectWorkflow.vue.d.ts +186 -0
  180. package/dist/types/components/gl-user-select/locale/en-US.d.ts +32 -0
  181. package/dist/types/components/gl-user-select/locale/zh-CN.d.ts +32 -0
  182. package/dist/types/components/gl-user-select/types.d.ts +62 -0
  183. package/dist/types/components/gl-workflow/GlWorkflowApprove.vue.d.ts +395 -0
  184. package/dist/types/components/gl-workflow/GlWorkflowModal.vue.d.ts +2086 -0
  185. package/dist/types/components/gl-workflow/GlWorkflowStart.vue.d.ts +19 -0
  186. package/dist/types/components/gl-workflow/GlWorkflowStartForm.vue.d.ts +294 -0
  187. package/dist/types/components/gl-workflow/GlWorkflowTasks.vue.d.ts +17 -0
  188. package/dist/types/components/gl-workflow/composables/useWorkflow.d.ts +99 -0
  189. package/dist/types/components/gl-workflow/index.d.ts +1075 -0
  190. package/dist/types/components/gl-workflow/types.d.ts +232 -0
  191. package/dist/types/composables/index.d.ts +3 -0
  192. package/dist/types/composables/useDropdownTriggerProps.d.ts +12 -0
  193. package/dist/types/composables/useStatus.d.ts +17 -0
  194. package/dist/types/composables/useTree.d.ts +31 -0
  195. package/dist/types/hooks/useEntityQuery.d.ts +8 -0
  196. package/dist/types/locale/en-US.d.ts +203 -0
  197. package/dist/types/locale/zh-CN.d.ts +203 -0
  198. package/dist/types/main.d.ts +16 -0
  199. package/dist/types/types/global.d.ts +64 -0
  200. package/package.json +78 -0
  201. package/src/main.ts +231 -0
@@ -0,0 +1,94 @@
1
+ declare const _default: {
2
+ 'menu.list.searchTable': string;
3
+ 'searchTable.form.number': string;
4
+ 'searchTable.form.number.placeholder': string;
5
+ 'searchTable.form.name': string;
6
+ 'searchTable.form.name.placeholder': string;
7
+ 'searchTable.form.contentType': string;
8
+ 'searchTable.form.contentType.img': string;
9
+ 'searchTable.form.contentType.horizontalVideo': string;
10
+ 'searchTable.form.contentType.verticalVideo': string;
11
+ 'searchTable.form.filterType': string;
12
+ 'searchTable.form.filterType.artificial': string;
13
+ 'searchTable.form.filterType.rules': string;
14
+ 'searchTable.form.createdTime': string;
15
+ 'searchTable.form.status': string;
16
+ 'searchTable.form.status.online': string;
17
+ 'searchTable.form.status.offline': string;
18
+ 'searchTable.form.search': string;
19
+ 'searchTable.form.reset': string;
20
+ 'searchTable.form.selectDefault': string;
21
+ 'searchTable.operation.create': string;
22
+ 'searchTable.operation.import': string;
23
+ 'searchTable.operation.download': string;
24
+ 'searchTable.columns.index': string;
25
+ 'searchTable.columns.number': string;
26
+ 'searchTable.columns.name': string;
27
+ 'searchTable.columns.contentType': string;
28
+ 'searchTable.columns.filterType': string;
29
+ 'searchTable.columns.count': string;
30
+ 'searchTable.columns.createdTime': string;
31
+ 'searchTable.columns.status': string;
32
+ 'searchTable.columns.operations': string;
33
+ 'searchTable.columns.operations.view': string;
34
+ 'searchTable.size.mini': string;
35
+ 'searchTable.size.small': string;
36
+ 'searchTable.size.medium': string;
37
+ 'searchTable.size.large': string;
38
+ 'searchTable.actions.refresh': string;
39
+ 'searchTable.actions.density': string;
40
+ 'searchTable.actions.columnSetting': string;
41
+ 'searchTable.query.expand': string;
42
+ 'searchTable.query.collapse': string;
43
+ 'searchTable.operation.addRow': string;
44
+ 'searchTable.status.selected': string;
45
+ 'searchTable.status.pushed': string;
46
+ 'searchTable.filter.saveTitle': string;
47
+ 'searchTable.filter.name.label': string;
48
+ 'searchTable.filter.name.placeholder': string;
49
+ 'searchTable.filter.displayMode': string;
50
+ 'searchTable.filter.quickAdd.tooltip': string;
51
+ 'searchTable.filter.myFilters.tooltip': string;
52
+ 'searchTable.export': string;
53
+ 'searchTable.columns.seqLabel': string;
54
+ 'searchTable.actions.density.tooltip': string;
55
+ 'searchTable.filter.manager.title': string;
56
+ 'searchTable.filter.displayMode.toolbar': string;
57
+ 'searchTable.filter.displayMode.dropdown': string;
58
+ 'searchTable.filter.displayMode.tabs': string;
59
+ 'searchTable.filter.noConditions': string;
60
+ 'searchTable.filter.name.required': string;
61
+ 'searchTable.filter.name.exists': string;
62
+ 'searchTable.filter.list.title': string;
63
+ 'searchTable.filter.remove.confirm': string;
64
+ 'searchTable.filter.empty': string;
65
+ 'searchTable.filter.conditions.title': string;
66
+ 'searchTable.filter.conditions.hideEmpty': string;
67
+ 'searchTable.filter.conditions.empty': string;
68
+ 'searchTable.filter.conditions.emptyPlaceholder': string;
69
+ 'searchTable.filter.alert.unsaved': string;
70
+ 'searchTable.filter.name.empty': string;
71
+ 'searchTable.filter.value.empty': string;
72
+ 'searchTable.filter.value.true': string;
73
+ 'searchTable.filter.value.false': string;
74
+ 'searchTable.filter.addError.noPageCustom': string;
75
+ 'searchTable.filter.saveError.noConfigStore': string;
76
+ 'searchTable.filter.defaultName': string;
77
+ 'searchTable.columns.stat.enabled': string;
78
+ 'searchTable.columns.stat.disabled': string;
79
+ 'searchTable.view.switchTooltip': string;
80
+ 'searchTable.view.layoutTooltip.vertical': string;
81
+ 'searchTable.view.layoutTooltip.horizontal': string;
82
+ 'searchTable.view.table': string;
83
+ 'searchTable.view.stat': string;
84
+ 'searchTable.view.pivot': string;
85
+ 'searchTable.view.switched': string;
86
+ 'searchTable.status.deleted.tooltip': string;
87
+ 'searchTable.status.deleted': string;
88
+ 'common.cancel': string;
89
+ 'common.ok': string;
90
+ 'common.save': string;
91
+ 'searchTable.localFilter.placeholder': string;
92
+ 'searchTable.localFilter.result': string;
93
+ };
94
+ export default _default;
@@ -0,0 +1,94 @@
1
+ declare const _default: {
2
+ 'menu.list.searchTable': string;
3
+ 'searchTable.form.number': string;
4
+ 'searchTable.form.number.placeholder': string;
5
+ 'searchTable.form.name': string;
6
+ 'searchTable.form.name.placeholder': string;
7
+ 'searchTable.form.contentType': string;
8
+ 'searchTable.form.contentType.img': string;
9
+ 'searchTable.form.contentType.horizontalVideo': string;
10
+ 'searchTable.form.contentType.verticalVideo': string;
11
+ 'searchTable.form.filterType': string;
12
+ 'searchTable.form.filterType.artificial': string;
13
+ 'searchTable.form.filterType.rules': string;
14
+ 'searchTable.form.createdTime': string;
15
+ 'searchTable.form.status': string;
16
+ 'searchTable.form.status.online': string;
17
+ 'searchTable.form.status.offline': string;
18
+ 'searchTable.form.search': string;
19
+ 'searchTable.form.reset': string;
20
+ 'searchTable.form.selectDefault': string;
21
+ 'searchTable.operation.create': string;
22
+ 'searchTable.operation.import': string;
23
+ 'searchTable.operation.download': string;
24
+ 'searchTable.columns.index': string;
25
+ 'searchTable.columns.number': string;
26
+ 'searchTable.columns.name': string;
27
+ 'searchTable.columns.contentType': string;
28
+ 'searchTable.columns.filterType': string;
29
+ 'searchTable.columns.count': string;
30
+ 'searchTable.columns.createdTime': string;
31
+ 'searchTable.columns.status': string;
32
+ 'searchTable.columns.operations': string;
33
+ 'searchTable.columns.operations.view': string;
34
+ 'searchTable.size.mini': string;
35
+ 'searchTable.size.small': string;
36
+ 'searchTable.size.medium': string;
37
+ 'searchTable.size.large': string;
38
+ 'searchTable.actions.refresh': string;
39
+ 'searchTable.actions.density': string;
40
+ 'searchTable.actions.columnSetting': string;
41
+ 'searchTable.query.expand': string;
42
+ 'searchTable.query.collapse': string;
43
+ 'searchTable.operation.addRow': string;
44
+ 'searchTable.status.selected': string;
45
+ 'searchTable.status.pushed': string;
46
+ 'searchTable.filter.saveTitle': string;
47
+ 'searchTable.filter.name.label': string;
48
+ 'searchTable.filter.name.placeholder': string;
49
+ 'searchTable.filter.displayMode': string;
50
+ 'searchTable.filter.quickAdd.tooltip': string;
51
+ 'searchTable.filter.myFilters.tooltip': string;
52
+ 'searchTable.export': string;
53
+ 'searchTable.columns.seqLabel': string;
54
+ 'searchTable.actions.density.tooltip': string;
55
+ 'searchTable.filter.manager.title': string;
56
+ 'searchTable.filter.displayMode.toolbar': string;
57
+ 'searchTable.filter.displayMode.dropdown': string;
58
+ 'searchTable.filter.displayMode.tabs': string;
59
+ 'searchTable.filter.noConditions': string;
60
+ 'searchTable.filter.name.required': string;
61
+ 'searchTable.filter.name.exists': string;
62
+ 'searchTable.filter.list.title': string;
63
+ 'searchTable.filter.remove.confirm': string;
64
+ 'searchTable.filter.empty': string;
65
+ 'searchTable.filter.conditions.title': string;
66
+ 'searchTable.filter.conditions.hideEmpty': string;
67
+ 'searchTable.filter.conditions.empty': string;
68
+ 'searchTable.filter.conditions.emptyPlaceholder': string;
69
+ 'searchTable.filter.alert.unsaved': string;
70
+ 'searchTable.filter.name.empty': string;
71
+ 'searchTable.filter.value.empty': string;
72
+ 'searchTable.filter.value.true': string;
73
+ 'searchTable.filter.value.false': string;
74
+ 'searchTable.filter.addError.noPageCustom': string;
75
+ 'searchTable.filter.saveError.noConfigStore': string;
76
+ 'searchTable.filter.defaultName': string;
77
+ 'searchTable.columns.stat.enabled': string;
78
+ 'searchTable.columns.stat.disabled': string;
79
+ 'searchTable.view.switchTooltip': string;
80
+ 'searchTable.view.layoutTooltip.vertical': string;
81
+ 'searchTable.view.layoutTooltip.horizontal': string;
82
+ 'searchTable.view.table': string;
83
+ 'searchTable.view.stat': string;
84
+ 'searchTable.view.pivot': string;
85
+ 'searchTable.view.switched': string;
86
+ 'searchTable.status.deleted.tooltip': string;
87
+ 'searchTable.status.deleted': string;
88
+ 'common.cancel': string;
89
+ 'common.ok': string;
90
+ 'common.save': string;
91
+ 'searchTable.localFilter.placeholder': string;
92
+ 'searchTable.localFilter.result': string;
93
+ };
94
+ export default _default;
@@ -0,0 +1,7 @@
1
+ export type EntityQuerySignatureParam = {
2
+ name?: string;
3
+ cop?: string;
4
+ value?: any;
5
+ groupName?: string;
6
+ };
7
+ export declare const buildEntityQuerySignature: (params?: EntityQuerySignatureParam[], pushedRecordKeys?: string[], unPushedRecordKeys?: string[]) => string;
@@ -0,0 +1,137 @@
1
+ import { Ref } from '../../../vue/dist/vue.esm-bundler.js';
2
+ import { TableData } from '@arco-design/web-vue';
3
+ import { EntityReader, PageProvideProxy } from '@geelato/gl-runtime-core';
4
+ import { ComponentInstance } from '@geelato/gl-ui-schema';
5
+ import { EntityFetchDataInfo, EntityFetchDataProps, GenShowColumnOptions, GlTableColumn, TableMeta } from './constants';
6
+ export declare enum RecordsScope {
7
+ Selected = "Selected",
8
+ Pushed = "Pushed",
9
+ Render = "Render",
10
+ Deleted = "Deleted",
11
+ RenderAndDeleted = "RenderAndDeleted"
12
+ }
13
+ declare const defaultTable: TableMeta;
14
+ export { defaultTable };
15
+ export declare const logicDeleteFieldName = "delStatus";
16
+ export declare const DEFAULT_OPT_COLUMN_MAX_INLINE_ACTIONS = 3;
17
+ /**
18
+ * 基于列属性配置的表达式计算值
19
+ * @param columnPropName
20
+ * @param data
21
+ * @param pageProvideProxy
22
+ */
23
+ export declare const evalColumnExpression: (columnPropName: string, data: {
24
+ record: TableData;
25
+ column: GlTableColumn;
26
+ rowIndex: number;
27
+ }, pageProvideProxy: PageProvideProxy) => any;
28
+ /**
29
+ * 执行行级别的表达式
30
+ * 场景:检查某行是否只读,如某数据已审核,则不能修改
31
+ * @param rowExpression
32
+ * @param data
33
+ * @param pageProvideProxy
34
+ */
35
+ /**
36
+ * 计算出某行是否只读
37
+ * @param isRowReadonlyExpression
38
+ * @param records
39
+ * @param pageProvideProxy
40
+ * @returns boolean[],其中index为rowIndex,value为true/false
41
+ */
42
+ export declare const statIsRowReadonly: (isRowReadonlyExpression: string, records: Array<TableData>, pageProvideProxy: PageProvideProxy) => boolean[];
43
+ export declare const showAction: (data: {
44
+ record: TableData;
45
+ action: ComponentInstance;
46
+ rowIndex: number;
47
+ }, pageProvideProxy: PageProvideProxy) => boolean;
48
+ export declare const t: (str: any) => any;
49
+ export declare const slotNameOperation = "#";
50
+ /**
51
+ * 设置列的插槽名称
52
+ * 目标对象为配置了脚本_renderScript或组件_component(且组件不为空,即有componentName)的列
53
+ * @param queryColumns
54
+ */
55
+ export declare const setSlotNames: (queryColumns: GlTableColumn[]) => void;
56
+ /**
57
+ * 设置哪些列不可见、可见
58
+ * 不指定的列保持原状
59
+ * @param columns
60
+ * @param hideDataIndexes 不可见的列
61
+ * @param showDataIndexes 可见的列
62
+ */
63
+ export declare const changeColumnsVisible: (columns: GlTableColumn[], showDataIndexes: string[], hideDataIndexes: string[]) => void;
64
+ /**
65
+ * 构建用于数据查询的列,不包括操作列
66
+ * @param props
67
+ * @param showDataIndexes
68
+ * @param hideDataIndexes
69
+ */
70
+ export declare const genQueryColumns: (props: {
71
+ columns: Array<any>;
72
+ enableI18n: boolean;
73
+ }, showDataIndexes: string[], hideDataIndexes: string[]) => GlTableColumn[];
74
+ /**
75
+ * 是否显示序号列
76
+ * @param props
77
+ */
78
+ export declare const showSeqNoColumn: (props: any) => any;
79
+ /**
80
+ * 是否显示操作列
81
+ * @param props
82
+ */
83
+ export declare const showOptColumn: (props: any) => boolean;
84
+ /**
85
+ * 是否显示记录状态列
86
+ * @param props
87
+ */
88
+ export declare const showRecordStatus: (props: any) => any;
89
+ /**
90
+ * 构建新可供展示的列(用于选择是否展示),但不是最终展示例
91
+ * @param queryColumns
92
+ * @param options
93
+ */
94
+ export declare const genShowColumns: (queryColumns: Ref<GlTableColumn[]>, options?: GenShowColumnOptions) => GlTableColumn[];
95
+ /**
96
+ * 构建最终展示的列
97
+ * @param showedColumns 可选择的展示的列
98
+ * @param keepClientSorter 保留客户端排序,默认为false,即关闭客户端排序
99
+ */
100
+ export declare const genRenderColumns: (showedColumns: Ref<GlTableColumn[]>, keepClientSorter?: boolean) => GlTableColumn[];
101
+ /**
102
+ * 基于查询列创建实体数据源
103
+ * 依据查询列中的默认排序配置,生成默认排序,当未传入新的排序时,采用默认排序进行查询
104
+ * @param props
105
+ * @param queryColumns 需要查询的列
106
+ * @param simpleReaderInfo 简单的查询信息
107
+ * @param getPidFn 获取父表单的id
108
+ */
109
+ export declare const createEntityReader: (props: {
110
+ entityName: string;
111
+ isSubForm: boolean;
112
+ subFormPidName: string;
113
+ foreignKeys?: Array<{
114
+ field: string;
115
+ referenceEntity: string;
116
+ referenceField: string;
117
+ alias: string;
118
+ }>;
119
+ }, queryColumns: GlTableColumn[], simpleReaderInfo?: EntityFetchDataInfo, getPidFn?: Function) => EntityReader | undefined;
120
+ /**
121
+ * 构建获取数据的方法
122
+ * 在查询、切换分页等场景中调用
123
+ * @param props
124
+ * @param queryColumns
125
+ * @param pagination
126
+ * @param getPidFn 作为子表单时,需指定获取父亲表单id的方法
127
+ * @param success
128
+ * @param fail
129
+ * @param loading
130
+ */
131
+ export declare const useFetchData: (props: EntityFetchDataProps, queryColumns: Ref<GlTableColumn[]>, pagination: Ref<any>, getPidFn?: Function, success?: Function, fail?: Function, loading?: Ref<boolean>) => (simpleReaderInfo?: EntityFetchDataInfo) => void;
132
+ /**
133
+ * 直接修改修改排序号,从1开始
134
+ * @param records
135
+ * @param startWidth
136
+ */
137
+ export declare const resetRecordsSeqNo: (records: Record<string, any>[], startWidth?: number) => void;
@@ -0,0 +1,55 @@
1
+ import { Ref } from '../../../vue/dist/vue.esm-bundler.js';
2
+ export declare function useCellEditing(params: {
3
+ tableRef: Ref<any>;
4
+ renderData: Ref<any[]>;
5
+ renderColumns: Ref<any[]>;
6
+ ensureCellInView: (cellKey: string) => void;
7
+ }): {
8
+ editingCellKey: Ref<string, string>;
9
+ pendingBlurCellKey: Ref<string, string>;
10
+ editingCellInitialValue: Record<string, any>;
11
+ cellRefs: Ref<Record<string, any>, Record<string, any>>;
12
+ setCellRef: (el: any, key: string) => void;
13
+ getCellKey: (rowKey: string, dataIndex: string) => string;
14
+ isCellEditing: (rowKey: string, dataIndex: string) => boolean;
15
+ isCellPendingBlur: (rowKey: string, dataIndex: string) => boolean;
16
+ blurActiveEditorInCell: (cellKey: string) => void;
17
+ focusCellDom: (rowKey: string, dataIndex: string, options?: {
18
+ skipSelect?: boolean;
19
+ collapseSelection?: boolean;
20
+ }) => void;
21
+ focusEditableCell: (rowKey: string, dataIndex: string) => void;
22
+ endEditingCell: (cellKey?: string) => void;
23
+ resetCellEditing: () => void;
24
+ collapseSelectionInCellInput: (cellKey: string) => void;
25
+ };
26
+ export declare function useCellEditingKeyboard(params: {
27
+ tableRef: Ref<any>;
28
+ renderData: Ref<any[]>;
29
+ renderColumns: Ref<any[]>;
30
+ keyboard: Ref<any>;
31
+ editingCellKey: Ref<string>;
32
+ pendingBlurCellKey: Ref<string>;
33
+ blurActiveEditorInCell: (cellKey: string) => void;
34
+ endEditingCell: (cellKey?: string) => void;
35
+ focusEditableCell: (rowKey: string, dataIndex: string) => void;
36
+ isCellHardReadonly: (rowIndex: number, column: any) => boolean;
37
+ commitCellBeforeArrowNavigate: (rowKey: string, dataIndex: string, afterCommit: () => void) => void;
38
+ onCellEnter: (evt: KeyboardEvent, params: {
39
+ rowKey: string;
40
+ dataIndex: string;
41
+ }) => void;
42
+ onCellTab: (evt: KeyboardEvent, params: {
43
+ rowKey: string;
44
+ dataIndex: string;
45
+ }) => void;
46
+ onArrowDownAtLastRow?: (params: {
47
+ rowKey: string;
48
+ dataIndex: string;
49
+ }) => any;
50
+ }): void;
51
+ export declare function copyTextWithFeedback(params: {
52
+ text: any;
53
+ utils: any;
54
+ global: any;
55
+ }): boolean;
@@ -0,0 +1,20 @@
1
+ import { Ref, ComputedRef } from '../../../vue/dist/vue.esm-bundler.js';
2
+ import { GlTableColumn } from './constants';
3
+ import { PageCustomType } from '@geelato/gl-runtime-core';
4
+ /**
5
+ * 表格列管理的组合式API(统一使用表格配置缓存store)
6
+ * @param componentId 组件ID
7
+ * @param initialColumns 初始列
8
+ * @param pageCustom 页面自定义配置(未使用,仅保留签名兼容)
9
+ * @param global 全局对象(未使用,仅保留签名兼容)
10
+ * @param tableConfigStore 表格配置缓存实例(useStore返回对象)
11
+ */
12
+ export declare function useColumns(componentId: string | ComputedRef<string>, initialColumns: GlTableColumn[], pageCustom?: PageCustomType | ComputedRef<PageCustomType | undefined> | undefined, global?: any, tableConfigStore?: any): {
13
+ showedColumns: Ref<GlTableColumn[], GlTableColumn[]>;
14
+ changeShowColumns: (checked: boolean, column: GlTableColumn, index: number) => void;
15
+ updateColumnsOrder: (newColumns: GlTableColumn[]) => void;
16
+ onColumnResize: (dataIndex: string, width: number) => void;
17
+ resetColumns: (initialConfig?: GlTableColumn[]) => void;
18
+ loadColumnsFromCache: () => void;
19
+ cacheLoaded: Ref<boolean, boolean>;
20
+ };
@@ -0,0 +1,5 @@
1
+ import { GlTableColumn } from './constants';
2
+ export interface ConvertOptions {
3
+ pageProvideProxy?: any;
4
+ }
5
+ export declare const convertDataByColumns: (data: Record<string, any>[], renderColumns: GlTableColumn[], options?: ConvertOptions) => Promise<Record<string, any>[]>;
@@ -0,0 +1,43 @@
1
+ import { Ref } from '../../../vue/dist/vue.esm-bundler.js';
2
+ import { EntityReaderParam } from '@geelato/gl-runtime-core';
3
+ import { ExcelCellMeta, ExcelColumnMeta, GlTableColumn } from './constants';
4
+ /**
5
+ * 将当前列表中展示的数据列,作为导出Excel的数据列
6
+ * @param renderColumns
7
+ */
8
+ export declare const createExportColumns: (renderColumns: GlTableColumn[]) => ExcelColumnMeta[];
9
+ /**
10
+ * 基于当前列表中展示的数据列,生成导出Excel中单元格数据的元数据
11
+ * @param renderColumns
12
+ */
13
+ export declare const createExportDataCellMetas: (renderColumns: GlTableColumn[]) => ExcelCellMeta[];
14
+ export interface UseExportOptions {
15
+ /**
16
+ * 实体名称
17
+ */
18
+ entityName: string;
19
+ /**
20
+ * 表格标签名
21
+ */
22
+ label: string;
23
+ /**
24
+ * 是否运行时环境
25
+ */
26
+ glIsRuntime: boolean;
27
+ /**
28
+ * 页面代理对象
29
+ */
30
+ pageProvideProxy: any;
31
+ }
32
+ /**
33
+ * 导出表格数据到Excel的组合式API
34
+ */
35
+ export declare function useExport(options: UseExportOptions): {
36
+ queryAllPagesRaw: (params: {
37
+ pageSize: number;
38
+ }, tableRef: any, entityReaderParams: Array<EntityReaderParam>, pushedRecordKeys?: string[], unPushedRecordKeys?: string[]) => Promise<any>;
39
+ queryAllPagesFormatted: (params: {
40
+ pageSize: number;
41
+ }, tableRef: any, entityReaderParams: Array<EntityReaderParam>, pushedRecordKeys?: string[], unPushedRecordKeys?: string[]) => Promise<any>;
42
+ exportExcelAll: (global: any, queryRef: any, tableRef: any, pushedRecordKeys: Ref<string[]>, unPushedRecordKeys: Ref<string[]>) => Promise<void>;
43
+ };
@@ -0,0 +1,37 @@
1
+ import { Ref, ComputedRef } from '../../../vue/dist/vue.esm-bundler.js';
2
+ import { FilterType, MyEntityTableConfig } from './constants';
3
+ import { QueryItemKv } from '../gl-query/query';
4
+ import { PageCustomType } from '@geelato/gl-runtime-core';
5
+ /**
6
+ * 过滤器管理的组合式API
7
+ * @param params 参数对象
8
+ * @param params.componentId 组件ID
9
+ * @param params.pageCustom 页面自定义配置
10
+ * @param params.emits 事件发射器
11
+ * @param params.queryRef 查询组件引用
12
+ * @param params.global 全局对象,从Vue组件中传入
13
+ * @param params.tableConfigStore 表格配置缓存实例,用于保存配置到服务端
14
+ */
15
+ export declare function useFilters(params: {
16
+ componentId: string | ComputedRef<string>;
17
+ pageCustom: PageCustomType | ComputedRef<PageCustomType | undefined> | undefined;
18
+ emits: any;
19
+ queryRef: Ref<any> | ComputedRef<any>;
20
+ global: any;
21
+ tableConfigStore?: any;
22
+ }): {
23
+ myComponentCustom: Ref<MyEntityTableConfig, MyEntityTableConfig>;
24
+ dropdownFilters: ComputedRef<FilterType[]>;
25
+ toolbarFilters: ComputedRef<FilterType[]>;
26
+ tabsFilters: ComputedRef<FilterType[]>;
27
+ visibleFilterManager: Ref<boolean, boolean>;
28
+ queryItemsKvs: Ref<QueryItemKv[], QueryItemKv[]>;
29
+ queryItems: Ref<any[], any[]>;
30
+ openEditFilterModal: () => void;
31
+ saveFilters: () => Promise<any>;
32
+ addFilter: () => Promise<any>;
33
+ addFilterWithCustomData: (name: string, queryItemKvs: QueryItemKv[], showWarning?: boolean, displayMode?: "toolbar" | "dropdown" | "tabs", autoSave?: boolean) => Promise<boolean>;
34
+ queryByFilter: (filter: FilterType, index: number) => void;
35
+ checkFilterNameExists: (name: string, excludeId?: string) => boolean;
36
+ generateUniqueFilterName: (baseName: string) => string;
37
+ };
@@ -0,0 +1,34 @@
1
+ import { ComputedRef, Ref } from '../../../vue/dist/vue.esm-bundler.js';
2
+ import { PageCustomType } from '@geelato/gl-runtime-core';
3
+ import { PromisifyFn } from '@vueuse/core';
4
+ interface LayoutConfig {
5
+ layoutMode: 'vertical' | 'horizontal';
6
+ queryCollapsed: boolean;
7
+ size?: string;
8
+ splitSize?: number | string;
9
+ splitMin?: number | string;
10
+ }
11
+ /**
12
+ * 布局模式管理的组合式API
13
+ * @param componentId 当前组件的ID,用于缓存键
14
+ * @param defaultLayout 默认布局配置
15
+ * @param queryRef 查询组件的引用,用于设置查询组件的布局模式
16
+ * @param pageCustom 页面自定义配置,用于保存和加载布局配置到服务端
17
+ * @param global 全局对象,用于调用API和显示消息
18
+ * @param tableConfigStore 表格配置缓存实例,用于保存配置到服务端
19
+ */
20
+ export declare function useLayout(componentId: string | ComputedRef<string>, defaultLayout?: LayoutConfig, queryRef?: any, pageCustom?: PageCustomType | ComputedRef<PageCustomType | undefined> | undefined, global?: any, tableConfigStore?: any): {
21
+ layoutMode: Ref<"horizontal" | "vertical", "horizontal" | "vertical">;
22
+ queryCollapsed: Ref<boolean, boolean>;
23
+ size: Ref<string, string>;
24
+ setSize: (newSize: string) => void;
25
+ splitSize: Ref<string | number, string | number>;
26
+ splitMin: Ref<string | number, string | number>;
27
+ setSplitSize: (newSize: number | string) => void;
28
+ toggleLayoutMode: (qRef?: any) => void;
29
+ toggleQueryCollapse: () => void;
30
+ loadLayoutFromCache: () => void;
31
+ saveLayoutToCache: PromisifyFn<() => void>;
32
+ initQueryLayout: (qRef: any) => void;
33
+ };
34
+ export {};
@@ -0,0 +1,22 @@
1
+ export type MatchKeyMapper<TTarget extends Record<string, any>, TSource extends Record<string, any>> = (keyof TTarget & string) | {
2
+ dataIndex: string;
3
+ } | {
4
+ targetKey: keyof TTarget & string;
5
+ sourceKey?: keyof TSource & string;
6
+ normalize?: (val: any) => any;
7
+ };
8
+ export type MatchResult<TTarget extends Record<string, any>, TSource extends Record<string, any>> = {
9
+ targetMatchRecords: TTarget[];
10
+ srcMatchRecords: Array<TSource & {
11
+ matchTimes: number;
12
+ }>;
13
+ };
14
+ export declare function useMatch<TTarget extends Record<string, any>, TSource extends Record<string, any>>(params: {
15
+ getTargetRecords: () => TTarget[];
16
+ getTargetRecordKey?: (record: TTarget) => string | number | undefined;
17
+ isIgnoreTargetRecord?: (record: TTarget) => boolean;
18
+ selectTargetRecords?: (targetKeys: Array<string | number>) => void;
19
+ clearTargetSelection?: () => void;
20
+ }): {
21
+ match: (matchKeys: Array<MatchKeyMapper<TTarget, TSource>>, srcRecords: TSource[], selectMatchedTargetRecords?: boolean) => MatchResult<TTarget, TSource>;
22
+ };
@@ -0,0 +1,39 @@
1
+ import { Ref } from '../../../vue/dist/vue.esm-bundler.js';
2
+ export declare enum RecordPushStatus {
3
+ ToDelete = "ToDelete",
4
+ ToAdd = "ToAdd",
5
+ None = "None"
6
+ }
7
+ export declare const RecordPushStatusNames: {
8
+ ToDelete: string;
9
+ ToAdd: string;
10
+ None: string;
11
+ };
12
+ export declare function usePushedRecords(emits: Function, global: any): {
13
+ pushedRecordKeys: Ref<string[], string[]>;
14
+ unPushedRecordKeys: Ref<string[], string[]>;
15
+ pushRecordsByKeys: (params: {
16
+ keys: string[];
17
+ }) => {
18
+ pushedKeys: string[];
19
+ failPushedKeys: string[];
20
+ };
21
+ unPushRecordsByKeys: (params: {
22
+ keys: string[];
23
+ }) => {
24
+ unPushedKeys: string[];
25
+ needToUnPushFormServerKeys: string[];
26
+ };
27
+ getRecordPushStatus: (key: string) => RecordPushStatus;
28
+ getRecordPushStatusName: (key: string) => string;
29
+ getPushedKeys: () => string[];
30
+ getUnPushedKeys: () => string[];
31
+ isPushedKey: (key: string) => boolean;
32
+ isUnPushedKey: (key: string) => boolean;
33
+ resetPushedState: () => void;
34
+ RecordPushStatusNames: {
35
+ ToDelete: string;
36
+ ToAdd: string;
37
+ None: string;
38
+ };
39
+ };
@@ -0,0 +1,8 @@
1
+ import { TableData } from '@arco-design/web-vue';
2
+ import { GlTableRow } from './constants';
3
+ import { PageProvideProxy } from '@geelato/gl-runtime-core';
4
+ export declare function useRow(props: {
5
+ row: GlTableRow;
6
+ }, pageProxy: PageProvideProxy): {
7
+ getRowClass: (record: TableData, rowIndex: number) => any;
8
+ };
@@ -0,0 +1,33 @@
1
+ import { Ref, ComputedRef } from '../../../vue/dist/vue.esm-bundler.js';
2
+ type NotificationLike = {
3
+ error?: (msg: string) => void;
4
+ warning?: (msg: string) => void;
5
+ };
6
+ export declare const useRowHighlight: (options: {
7
+ renderData: Ref<any[] | undefined>;
8
+ getRowClass?: (record: any, index: number) => string;
9
+ notification?: NotificationLike;
10
+ idField?: string;
11
+ }) => {
12
+ tableHighlightStyle: ComputedRef<any>;
13
+ getRowClassWithHighlight: ComputedRef<(record: any, index: number) => string>;
14
+ clearRowHighlight: () => void;
15
+ highlightRowByIndex: (params: {
16
+ rowIndex: string | number | Array<string | number>;
17
+ color?: string;
18
+ warning?: string;
19
+ }) => boolean;
20
+ highlightRowByKey: (params: {
21
+ rowKey: string | number | Array<string | number>;
22
+ color?: string;
23
+ warning?: string;
24
+ }) => boolean;
25
+ highlightRowByColumn: (params: {
26
+ dataIndex: string;
27
+ value: any | any[];
28
+ matchEmpty?: boolean;
29
+ color?: string;
30
+ warning?: string;
31
+ }) => boolean;
32
+ };
33
+ export {};
@@ -0,0 +1,25 @@
1
+ import { Ref } from '../../../vue/dist/vue.esm-bundler.js';
2
+ import { TableData } from '@arco-design/web-vue';
3
+ /**
4
+ * 选中记录管理逻辑的组合式API
5
+ *
6
+ * 管理表格选中记录的状态和相关操作,包括记录选中状态的变更、获取选中记录等功能
7
+ *
8
+ * @param emits - 组件的emit函数,用于触发selectionChange事件
9
+ * @returns 选中记录相关的状态和方法
10
+ */
11
+ export declare function useSelectedRecords(emits: Function): {
12
+ selectedKeys: Ref<string[], string[]>;
13
+ selectedRecords: Ref<Record<string, any>[], Record<string, any>[]>;
14
+ handleSelectionChange: (newRowKeys: string[], currentTableRenderData: Readonly<TableData[]>, emits: Function) => void;
15
+ getSelectedRecords: () => Record<string, any>[];
16
+ getSelectedKeys: () => string[];
17
+ getFirstSelectedRecord: () => Record<string, any>;
18
+ getLastSelectedRecord: () => Record<string, any>;
19
+ clearSelection: () => void;
20
+ removeSelectedByKeys: (keys: string[] | string, currentTableRenderData?: Readonly<TableData[]>, emitFn?: Function) => void;
21
+ hasSelectedRecords: (params?: {
22
+ enableAlert?: boolean;
23
+ content?: string;
24
+ }, global?: any) => boolean;
25
+ };