@oneflowui/ui 0.5.6 → 0.5.7

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 (203) hide show
  1. package/dist/components/ContextMenu/index.vue.js +2 -2
  2. package/dist/components/Dashboard/charts/BarChart.vue.js +2 -2
  3. package/dist/components/Dashboard/charts/PieChart.vue.js +2 -2
  4. package/dist/components/Dashboard/index.vue.d.ts +2 -1
  5. package/dist/components/Dashboard/index.vue.js +2 -2
  6. package/dist/components/ai/AiSender.vue.js +2 -2
  7. package/dist/components/ai/AiSender.vue2.js +8 -7
  8. package/dist/components/auxiliary/ColorPanel.vue.js +2 -2
  9. package/dist/components/auxiliary/ColorPanel.vue2.js +25 -23
  10. package/dist/components/auxiliary/FileUpload.vue.js +2 -2
  11. package/dist/components/auxiliary/FileUpload.vue2.js +1 -0
  12. package/dist/components/auxiliary/PersonPanel.vue.js +1 -1
  13. package/dist/components/auxiliary/PersonPanel.vue2.js +2 -1
  14. package/dist/components/base/Accordion.vue.js +1 -1
  15. package/dist/components/base/Avatar.vue.d.ts +3 -0
  16. package/dist/components/base/Avatar.vue.js +4 -4
  17. package/dist/components/base/Avatar.vue2.js +8 -8
  18. package/dist/components/base/Badge.vue.d.ts +2 -0
  19. package/dist/components/base/Badge.vue.js +2 -2
  20. package/dist/components/base/Badge.vue2.js +2 -2
  21. package/dist/components/base/ButtonGroup.vue.js +2 -2
  22. package/dist/components/base/ButtonGroup.vue2.js +2 -2
  23. package/dist/components/base/ChainItem.vue.d.ts +6 -0
  24. package/dist/components/base/ChainItem.vue.js +2 -2
  25. package/dist/components/base/ChainItem.vue2.js +17 -17
  26. package/dist/components/base/DropdownMenu.vue.js +2 -2
  27. package/dist/components/base/DropdownMenu.vue2.js +22 -20
  28. package/dist/components/base/EmptyState.vue.js +2 -2
  29. package/dist/components/base/EmptyState.vue2.js +2 -2
  30. package/dist/components/base/InfoCard.vue.d.ts +9 -0
  31. package/dist/components/base/InfoCard.vue.js +2 -2
  32. package/dist/components/base/InfoCard.vue2.js +65 -57
  33. package/dist/components/base/MonitorItem.vue.js +2 -2
  34. package/dist/components/base/MonitorItem.vue2.js +33 -25
  35. package/dist/components/base/PersonaCard.vue.d.ts +5 -0
  36. package/dist/components/base/PersonaCard.vue.js +3 -3
  37. package/dist/components/base/PersonaCard.vue2.js +56 -50
  38. package/dist/components/base/ProgressBar.vue.d.ts +1 -0
  39. package/dist/components/base/ProgressBar.vue.js +2 -2
  40. package/dist/components/base/ProgressBar.vue2.js +10 -10
  41. package/dist/components/base/RangeSlider.vue.d.ts +15 -0
  42. package/dist/components/base/RangeSlider.vue.js +1 -1
  43. package/dist/components/base/RangeSlider.vue2.js +22 -15
  44. package/dist/components/base/RefTag.vue.d.ts +4 -0
  45. package/dist/components/base/RefTag.vue.js +3 -3
  46. package/dist/components/base/RefTag.vue2.js +14 -14
  47. package/dist/components/base/SearchHighlight.vue.js +1 -1
  48. package/dist/components/base/SectionBlock.vue.js +2 -2
  49. package/dist/components/base/SectionBlock.vue2.js +54 -48
  50. package/dist/components/base/SelectBadge.vue.d.ts +5 -0
  51. package/dist/components/base/SelectBadge.vue.js +3 -3
  52. package/dist/components/base/SelectBadge.vue2.js +36 -28
  53. package/dist/components/base/StatisticCard.vue.js +1 -1
  54. package/dist/components/base/StatusIndicator.vue.js +2 -2
  55. package/dist/components/base/StatusIndicator.vue2.js +2 -2
  56. package/dist/components/base/StatusSummary.vue.js +2 -2
  57. package/dist/components/base/Stepper.vue.js +2 -2
  58. package/dist/components/base/Switch.vue.js +2 -2
  59. package/dist/components/base/ToolbarBtn.vue.js +2 -2
  60. package/dist/components/base/ViewModeGroup.vue.js +1 -1
  61. package/dist/components/base/ViewModeGroup.vue2.js +3 -3
  62. package/dist/components/base/ViewSwitcher.vue.js +1 -1
  63. package/dist/components/base/ViewSwitcher.vue2.js +3 -3
  64. package/dist/components/base/ViewTab.vue.js +1 -1
  65. package/dist/components/base/ViewTab.vue2.js +5 -6
  66. package/dist/components/breadcrumb/Breadcrumb.vue.js +2 -2
  67. package/dist/components/breadcrumb/BreadcrumbItem.vue.js +2 -2
  68. package/dist/components/detail/PropPanel.vue.js +2 -2
  69. package/dist/components/detail/PropPanel.vue2.js +34 -30
  70. package/dist/components/detail/PropRow.vue.d.ts +6 -0
  71. package/dist/components/detail/PropRow.vue.js +2 -2
  72. package/dist/components/detail/PropRow.vue2.js +24 -24
  73. package/dist/components/editor/BlockQuote.vue.d.ts +2 -1
  74. package/dist/components/editor/BlockQuote.vue.js +1 -1
  75. package/dist/components/editor/BlockQuote.vue2.js +43 -29
  76. package/dist/components/editor/ContentBlock.vue.d.ts +4 -2
  77. package/dist/components/editor/ContentBlock.vue.js +2 -2
  78. package/dist/components/editor/ContentBlock.vue2.js +54 -33
  79. package/dist/components/editor/RichTextEditor.vue.js +2 -2
  80. package/dist/components/editor/RichTextEditor.vue2.js +10 -14
  81. package/dist/components/field/FieldAttachment.vue.js +2 -2
  82. package/dist/components/field/FieldAttachment.vue2.js +30 -32
  83. package/dist/components/field/FieldAutoNumber.vue.js +2 -2
  84. package/dist/components/field/FieldCheckbox.vue.js +2 -2
  85. package/dist/components/field/FieldCheckbox.vue2.js +13 -11
  86. package/dist/components/field/FieldCreator.vue.js +2 -2
  87. package/dist/components/field/FieldCurrency.vue.js +2 -2
  88. package/dist/components/field/FieldCurrency.vue2.js +15 -14
  89. package/dist/components/field/FieldDate.vue.js +1 -1
  90. package/dist/components/field/FieldDate.vue2.js +14 -16
  91. package/dist/components/field/FieldDatetime.vue.js +1 -1
  92. package/dist/components/field/FieldDatetime.vue2.js +12 -11
  93. package/dist/components/field/FieldEmail.vue.js +2 -2
  94. package/dist/components/field/FieldEmail.vue2.js +14 -13
  95. package/dist/components/field/FieldMarkdownPreview.vue.js +2 -2
  96. package/dist/components/field/FieldMultiSelect.vue.d.ts +2 -2
  97. package/dist/components/field/FieldMultiSelect.vue.js +2 -2
  98. package/dist/components/field/FieldMultiSelect.vue2.js +80 -75
  99. package/dist/components/field/FieldNumber.vue.js +3 -3
  100. package/dist/components/field/FieldNumber.vue2.js +19 -18
  101. package/dist/components/field/FieldPhone.vue.js +2 -2
  102. package/dist/components/field/FieldPhone.vue2.js +12 -11
  103. package/dist/components/field/FieldProgress.vue.js +1 -1
  104. package/dist/components/field/FieldProgress.vue2.js +18 -17
  105. package/dist/components/field/FieldRating.vue.js +2 -2
  106. package/dist/components/field/FieldRating.vue2.js +22 -16
  107. package/dist/components/field/FieldRelation.vue.js +1 -1
  108. package/dist/components/field/FieldRelation.vue2.js +25 -22
  109. package/dist/components/field/FieldRichText.vue.js +1 -1
  110. package/dist/components/field/FieldRichText.vue2.js +10 -7
  111. package/dist/components/field/FieldSelect.vue.js +2 -2
  112. package/dist/components/field/FieldSelect.vue2.js +81 -63
  113. package/dist/components/field/FieldText.vue.js +2 -2
  114. package/dist/components/field/FieldText.vue2.js +17 -16
  115. package/dist/components/field/FieldUrl.vue.js +2 -2
  116. package/dist/components/field/FieldUrl.vue2.js +17 -16
  117. package/dist/components/form/FormDesigner.vue.js +2 -2
  118. package/dist/components/form/FormDesigner.vue2.js +83 -78
  119. package/dist/components/gallery/GalleryCard.vue.d.ts +1 -1
  120. package/dist/components/gallery/GalleryCard.vue.js +2 -2
  121. package/dist/components/gallery/GalleryCard.vue2.js +2 -1
  122. package/dist/components/kanban/KanbanCard.vue.d.ts +3 -1
  123. package/dist/components/kanban/KanbanCard.vue.js +1 -1
  124. package/dist/components/kanban/KanbanCard.vue2.js +15 -14
  125. package/dist/components/kanban/KanbanColumn.vue.d.ts +2 -0
  126. package/dist/components/kanban/KanbanColumn.vue.js +2 -2
  127. package/dist/components/kanban/KanbanColumn.vue2.js +9 -9
  128. package/dist/components/kanban/QuickAddRow.vue.js +2 -2
  129. package/dist/components/kanban/QuickAddRow.vue2.js +15 -14
  130. package/dist/components/layout/Navbar.vue.js +3 -3
  131. package/dist/components/layout/Navbar.vue2.js +5 -4
  132. package/dist/components/layout/Sidebar.vue.js +2 -2
  133. package/dist/components/layout/Sidebar.vue2.js +1 -1
  134. package/dist/components/mermaid/MermaidChart.vue.js +2 -2
  135. package/dist/components/mermaid/MermaidChart.vue2.js +17 -17
  136. package/dist/components/overlay/Dialog.vue.d.ts +1 -0
  137. package/dist/components/overlay/Dialog.vue.js +1 -1
  138. package/dist/components/overlay/Dialog.vue2.js +9 -9
  139. package/dist/components/overlay/Drawer.vue.d.ts +1 -0
  140. package/dist/components/overlay/Drawer.vue.js +2 -2
  141. package/dist/components/overlay/Drawer.vue2.js +35 -29
  142. package/dist/components/overlay/Modal.vue.d.ts +1 -0
  143. package/dist/components/overlay/Modal.vue.js +1 -1
  144. package/dist/components/overlay/Modal.vue2.js +34 -28
  145. package/dist/components/overlay/SidePanel.vue.d.ts +1 -0
  146. package/dist/components/overlay/SidePanel.vue.js +1 -1
  147. package/dist/components/overlay/SidePanel.vue2.js +6 -6
  148. package/dist/components/split/SplitPane.vue.js +2 -2
  149. package/dist/components/split/SplitPane.vue2.js +11 -9
  150. package/dist/components/table/ColumnHeaderMenu.vue.d.ts +2 -0
  151. package/dist/components/table/ColumnHeaderMenu.vue.js +1 -1
  152. package/dist/components/table/ColumnHeaderMenu.vue2.js +42 -36
  153. package/dist/components/table/DataTable.vue.d.ts +6 -5
  154. package/dist/components/table/DataTable.vue.js +2 -2
  155. package/dist/components/table/DataTable.vue2.js +527 -477
  156. package/dist/components/table/DetailSheet.vue.js +2 -2
  157. package/dist/components/table/DetailSheet.vue2.js +45 -40
  158. package/dist/components/table/FieldCell.vue.d.ts +2 -1
  159. package/dist/components/table/FieldCell.vue.js +1 -1
  160. package/dist/components/table/FieldCell.vue2.js +57 -48
  161. package/dist/components/table/FieldTypePicker.vue.d.ts +1 -0
  162. package/dist/components/table/FieldTypePicker.vue.js +4 -4
  163. package/dist/components/table/FieldTypePicker.vue2.js +1 -1
  164. package/dist/components/table/MobileListView.vue.d.ts +3 -2
  165. package/dist/components/table/MobileListView.vue.js +2 -2
  166. package/dist/components/table/MobileListView.vue2.js +57 -50
  167. package/dist/components/table/TableColumnManager.vue.js +1 -1
  168. package/dist/components/table/TableColumnManager.vue2.js +29 -28
  169. package/dist/components/table/TableDataRow.vue.d.ts +2 -0
  170. package/dist/components/table/TableDataRow.vue.js +4 -4
  171. package/dist/components/table/TableDataRow.vue2.js +70 -58
  172. package/dist/components/table/TableFilterPanel.vue.js +2 -2
  173. package/dist/components/table/TableFilterPanel.vue2.js +3 -0
  174. package/dist/components/table/TableGroupRow.vue.d.ts +2 -0
  175. package/dist/components/table/TableGroupRow.vue.js +2 -2
  176. package/dist/components/table/TableGroupRow.vue2.js +35 -30
  177. package/dist/components/table/TableHeaderRow.vue.js +3 -3
  178. package/dist/components/table/TableHeaderRow.vue2.js +63 -46
  179. package/dist/components/table/TableToolbar.vue.js +1 -1
  180. package/dist/components/table/TableToolbar.vue2.js +2 -2
  181. package/dist/components/tabs/TabPanel.vue.js +4 -4
  182. package/dist/components/tabs/TabPanel.vue2.js +1 -1
  183. package/dist/components/tabs/Tabs.vue.js +2 -2
  184. package/dist/components/tabs/Tabs.vue2.js +2 -2
  185. package/dist/components/timeline/GanttRow.vue.d.ts +2 -0
  186. package/dist/components/timeline/GanttRow.vue.js +2 -2
  187. package/dist/components/timeline/GanttRow.vue2.js +68 -52
  188. package/dist/components/timeline/GanttTimeline.vue.d.ts +6 -0
  189. package/dist/components/timeline/GanttTimeline.vue.js +2 -2
  190. package/dist/components/timeline/GanttTimeline.vue2.js +24 -24
  191. package/dist/composables/useKeyboardNavigation.d.ts +1 -1
  192. package/dist/composables/useRowDrag.d.ts +6 -4
  193. package/dist/composables/useRowDrag.js +24 -24
  194. package/dist/composables/useSupabaseProvider.d.ts +8 -1
  195. package/dist/composables/useTableData.d.ts +5 -3
  196. package/dist/composables/useTableGroup.d.ts +2 -2
  197. package/dist/composables/useViewPersistence.d.ts +32 -3
  198. package/dist/composables/useVirtualList.js +60 -59
  199. package/dist/plugin.js +103 -102
  200. package/dist/style.css +1 -1
  201. package/dist/utils/echarts.d.ts +1 -0
  202. package/dist/utils/supabaseSchema.d.ts +12 -0
  203. package/package.json +1 -1
@@ -1,155 +1,159 @@
1
- import { defineComponent as Fl, defineAsyncComponent as be, ref as R, toRef as h, computed as b, watch as ke, unref as t, openBlock as r, createElementBlock as s, Fragment as c, createVNode as E, createSlots as Hl, withCtx as he, renderSlot as T, normalizeProps as Bl, guardReactiveProps as Il, createBlock as y, createCommentVNode as $, createElementVNode as g, normalizeStyle as k, normalizeClass as z, renderList as m, mergeProps as K, withModifiers as P, toDisplayString as A, Teleport as Kl } from "vue";
1
+ import { defineComponent as Pl, defineAsyncComponent as we, ref as $, computed as k, toRef as p, watch as pe, unref as t, openBlock as r, createElementBlock as s, Fragment as v, createVNode as L, createSlots as Ll, withCtx as he, renderSlot as z, normalizeProps as Gl, guardReactiveProps as Vl, createBlock as b, createCommentVNode as M, createElementVNode as c, normalizeStyle as w, normalizeClass as A, renderList as m, mergeProps as E, withModifiers as Z, toDisplayString as H, Teleport as Ol } from "vue";
2
2
  import me from "./TableHeaderRow.vue.js";
3
- import Ve from "./TableDataRow.vue.js";
4
- import Q from "./TableGroupRow.vue.js";
5
- import _l from "./NewRowBtn.vue.js";
6
- import El from "./MobileListView.vue.js";
7
- import _ from "./FieldCell.vue.js";
8
- import { useInlineEdit as Pl } from "../../composables/useInlineEdit.js";
9
- import { useVirtualList as Ll } from "../../composables/useVirtualList.js";
10
- import { useTable as Gl } from "../../composables/useTable.js";
11
- import { useTableGroup as Vl } from "../../composables/useTableGroup.js";
12
- import { useTableData as Ol } from "../../composables/useTableData.js";
13
- import { useTableColumns as Nl } from "../../composables/useTableColumns.js";
14
- import { useColumnResize as Wl } from "../../composables/useColumnResize.js";
15
- import { useKeyboardNavigation as Yl } from "../../composables/useKeyboardNavigation.js";
16
- import { useBreakpoint as jl } from "../../composables/useBreakpoint.js";
17
- import { useFixedColumns as Xl } from "../../composables/useFixedColumns.js";
18
- import { useRowDrag as Ul } from "../../composables/useRowDrag.js";
19
- import { useDraftRows as ql } from "../../composables/useDraftRows.js";
20
- const Jl = ["tabindex"], Ql = {
3
+ import je from "./TableDataRow.vue.js";
4
+ import _ from "./TableGroupRow.vue.js";
5
+ import Nl from "./NewRowBtn.vue.js";
6
+ import Wl from "./MobileListView.vue.js";
7
+ import P from "./FieldCell.vue.js";
8
+ import { useInlineEdit as Yl } from "../../composables/useInlineEdit.js";
9
+ import { useVirtualList as jl } from "../../composables/useVirtualList.js";
10
+ import { useTable as Xl } from "../../composables/useTable.js";
11
+ import { useTableGroup as Ul } from "../../composables/useTableGroup.js";
12
+ import { useTableData as ql } from "../../composables/useTableData.js";
13
+ import { useTableColumns as Jl } from "../../composables/useTableColumns.js";
14
+ import { useColumnResize as Ql } from "../../composables/useColumnResize.js";
15
+ import { useKeyboardNavigation as Zl } from "../../composables/useKeyboardNavigation.js";
16
+ import { useBreakpoint as _l } from "../../composables/useBreakpoint.js";
17
+ import { useFixedColumns as eo } from "../../composables/useFixedColumns.js";
18
+ import { useRowDrag as lo } from "../../composables/useRowDrag.js";
19
+ import { useDraftRows as oo } from "../../composables/useDraftRows.js";
20
+ const no = {
21
21
  key: 0,
22
22
  class: "of-data-table-body",
23
23
  style: { position: "relative" }
24
- }, Zl = { class: "of-data-table-fixed-body" }, eo = ["onMouseenter", "onClick"], lo = ["checked", "onChange"], oo = {
24
+ }, to = { class: "of-data-table-fixed-body" }, ao = ["onMouseenter", "onFocusin", "onClick", "onKeydown"], ro = ["for"], so = ["id", "checked", "onChange"], io = {
25
25
  key: 1,
26
26
  class: "of-td-text"
27
- }, to = ["onMouseenter", "onClick"], no = ["checked", "onChange"], ao = {
27
+ }, uo = ["onMouseenter", "onFocusin", "onClick", "onKeydown"], fo = ["for"], co = ["id", "checked", "onChange"], vo = {
28
28
  key: 1,
29
29
  class: "of-td-text"
30
- }, ro = { class: "of-data-table-scroll-body" }, so = {
30
+ }, yo = { class: "of-data-table-scroll-body" }, go = {
31
31
  key: 0,
32
32
  style: { height: "36px" }
33
- }, io = ["onMouseenter", "onClick"], uo = {
33
+ }, bo = ["onMouseenter", "onFocusin", "onClick", "onKeydown"], ko = {
34
34
  key: 1,
35
35
  class: "of-td-text"
36
- }, fo = {
36
+ }, wo = {
37
37
  key: 0,
38
38
  style: { height: "36px" }
39
- }, co = ["onMouseenter", "onClick"], vo = {
39
+ }, po = ["onMouseenter", "onFocusin", "onClick", "onKeydown"], ho = {
40
40
  key: 1,
41
41
  class: "of-td-text"
42
- }, yo = {
42
+ }, mo = {
43
43
  key: 1,
44
44
  class: "of-td-text"
45
- }, go = {
45
+ }, Co = {
46
46
  key: 1,
47
47
  class: "of-td-text"
48
- }, bo = {
48
+ }, Do = {
49
49
  key: 3,
50
50
  class: "of-data-table-draft-toolbar"
51
- }, ko = { class: "of-data-table-draft-count" }, ho = { class: "of-add-field-popup" }, mo = 36, po = 44, jo = /* @__PURE__ */ Fl({
51
+ }, xo = { class: "of-data-table-draft-count" }, So = {
52
+ key: 0,
53
+ class: "of-add-field-overlay"
54
+ }, Ro = { class: "of-add-field-popup" }, $o = 36, Mo = 44, qo = /* @__PURE__ */ Pl({
52
55
  __name: "DataTable",
53
56
  props: {
54
- tasks: {},
55
- records: {},
56
- schema: {},
57
- view: {},
58
- columns: {},
59
- fieldDefs: {},
57
+ tasks: { default: () => [] },
58
+ records: { default: () => [] },
59
+ schema: { default: void 0 },
60
+ view: { default: void 0 },
61
+ columns: { default: () => [] },
62
+ fieldDefs: { default: () => [] },
60
63
  rowKey: { default: "id" },
61
64
  selectable: { type: Boolean, default: !0 },
62
65
  addable: { type: Boolean, default: !0 },
63
- priorityColorMap: {},
64
- statusColorMap: {},
65
- groupBy: {},
66
- groupColorMap: {},
67
- virtual: { type: Boolean },
66
+ priorityColorMap: { default: void 0 },
67
+ statusColorMap: { default: void 0 },
68
+ groupBy: { default: void 0 },
69
+ groupColorMap: { default: void 0 },
70
+ virtual: { type: Boolean, default: void 0 },
68
71
  virtualThreshold: { default: 100 },
69
72
  readonly: { type: Boolean, default: !1 },
70
- fixedColumns: {},
73
+ fixedColumns: { default: () => [] },
71
74
  enableResize: { type: Boolean, default: !1 },
72
75
  enableKeyboard: { type: Boolean, default: !1 },
73
76
  enableRowDrag: { type: Boolean, default: !1 },
74
77
  enableCrossGroupDrag: { type: Boolean, default: !1 },
75
- groups: {},
76
- aggregations: {},
78
+ groups: { default: () => [] },
79
+ aggregations: { default: () => [] },
77
80
  enableFieldManagement: { type: Boolean, default: !1 }
78
81
  },
79
- emits: ["row-click", "row-click-record", "add-row", "selection-change", "cell-edit", "column-resize", "active-cell-change", "row-reorder", "row-group-change", "draft-commit", "draft-discard", "drafts-commit-all", "paste", "schema-add-field", "schema-rename-field", "schema-change-field-type", "schema-hide-field", "schema-delete-field", "schema-duplicate-field"],
80
- setup(u, { emit: Oe }) {
81
- const Ne = be(() => import("./ColumnHeaderMenu.vue.js")), We = be(() => import("./FieldTypePicker.vue.js")), Ye = be(() => import("./DetailSheet.vue.js")), d = u, f = Oe, { isMobile: pe } = jl(), L = R(!1), G = R(null), Z = Pl(), { commit: je, editingCell: Xe } = Z, { rows: we } = Ol({
82
- tasks: h(d, "tasks"),
83
- records: h(d, "records")
84
- }), { columns: ee } = Nl({
85
- columns: h(d, "columns"),
86
- schema: h(d, "schema"),
87
- view: h(d, "view")
88
- }), { startResize: Ue, columnWidthOverrides: qe, showResizeIndicator: Je, resizeIndicatorX: Qe, autoFitColumn: Ze } = Wl({
89
- columns: ee,
82
+ emits: ["row-click", "row-click-record", "add-row", "selection-change", "cell-edit", "column-resize", "active-cell-change", "row-reorder", "row-group-change", "draft-commit", "draft-discard", "drafts-commit-all", "paste", "row-delete", "schema-add-field", "schema-rename-field", "schema-change-field-type", "schema-hide-field", "schema-delete-field", "schema-duplicate-field"],
83
+ setup(u, { emit: Xe }) {
84
+ const i = u, f = Xe, Ue = we(() => import("./ColumnHeaderMenu.vue.js")), qe = we(() => import("./FieldTypePicker.vue.js")), Je = we(() => import("./DetailSheet.vue.js")), { isMobile: Ce } = _l(), G = $(!1), ee = $(null), De = k(
85
+ () => ee.value
86
+ ), le = Yl(), { commit: Qe, editingCell: Ze } = le, { rows: xe } = ql({
87
+ tasks: p(i, "tasks"),
88
+ records: p(i, "records")
89
+ }), { columns: oe } = Jl({
90
+ columns: p(i, "columns"),
91
+ schema: p(i, "schema"),
92
+ view: p(i, "view")
93
+ }), { startResize: _e, columnWidthOverrides: el, showResizeIndicator: ll, resizeIndicatorX: ol, autoFitColumn: nl } = Ql({
94
+ columns: oe,
90
95
  onResize: (l, o) => f("column-resize", { colKey: l, width: o })
91
- }), C = b(() => {
92
- const l = qe.value;
93
- return l.size === 0 ? ee.value : ee.value.map((o) => {
96
+ }), x = k(() => {
97
+ const l = el.value;
98
+ return l.size === 0 ? oe.value : oe.value.map((o) => {
94
99
  const e = l.get(o.key);
95
100
  return e !== void 0 ? { ...o, width: e } : o;
96
101
  });
97
102
  }), {
98
103
  data: V,
99
- sort: F,
104
+ sort: K,
100
105
  toggleSort: O,
101
- selectedRows: p,
102
- toggleSelectAll: el,
103
- toggleRowSelection: ll,
104
- isAllSelected: le,
105
- setData: ol
106
- } = Gl({
107
- data: we.value,
106
+ selectedRows: C,
107
+ toggleSelectAll: tl,
108
+ toggleRowSelection: al,
109
+ isAllSelected: ne,
110
+ setData: rl
111
+ } = Xl({
112
+ data: xe.value,
108
113
  pageSize: 999999
109
114
  });
110
- ke(we, (l) => ol(l), { deep: !1 });
111
- const { groupedItems: D, collapsedGroups: tl, toggleGroup: N, isGroupHeader: x } = Vl({
115
+ pe(xe, (l) => rl(l), { deep: !1 });
116
+ const { groupedItems: S, collapsedGroups: sl, toggleGroup: N, isGroupHeader: R } = Ul({
112
117
  data: V,
113
- groupBy: h(d, "groupBy"),
114
- groups: h(d, "groups"),
115
- aggregations: h(d, "aggregations")
116
- }), W = R(null), oe = R(null), Ce = R(null), nl = b(() => {
118
+ groupBy: p(i, "groupBy"),
119
+ groups: p(i, "groups"),
120
+ aggregations: p(i, "aggregations")
121
+ }), W = $(null), te = $(null), Se = $(null), dl = k(() => {
117
122
  var l;
118
- return (((l = d.fixedColumns) == null ? void 0 : l.length) ?? 0) > 0;
119
- }), De = R(0), al = b(() => De.value > 0), {
120
- fixedColumns: te,
121
- scrollableColumns: ne,
122
- fixedWidth: xe,
123
- handleScroll: rl,
124
- handleFixedScroll: Se,
125
- scrollLeft: wo,
126
- syncHover: S,
123
+ return (((l = i.fixedColumns) == null ? void 0 : l.length) ?? 0) > 0;
124
+ }), Re = $(0), il = k(() => Re.value > 0), {
125
+ fixedColumns: ae,
126
+ scrollableColumns: re,
127
+ fixedWidth: $e,
128
+ handleScroll: ul,
129
+ handleFixedScroll: Me,
130
+ syncHover: g,
127
131
  isRowHovered: Y
128
- } = Xl({
129
- columns: C,
130
- fixedColumnKeys: b(() => d.fixedColumns ?? []),
132
+ } = eo({
133
+ columns: x,
134
+ fixedColumnKeys: k(() => i.fixedColumns ?? []),
131
135
  scrollContainerRef: W,
132
- fixedContainerRef: Ce
133
- }), ae = b(() => d.virtual !== void 0 ? d.virtual : D.value.length >= d.virtualThreshold), { visibleItems: re, totalHeight: se, offsetY: de, scrollToIndex: sl, observeRow: j } = Ll({
134
- items: D,
136
+ fixedContainerRef: Se
137
+ }), se = k(() => i.virtual !== void 0 ? i.virtual : S.value.length >= i.virtualThreshold), { visibleItems: de, totalHeight: ie, offsetY: ue, scrollToIndex: fl, observeRow: cl } = jl({
138
+ items: S,
135
139
  itemHeight: (l) => {
136
- const o = D.value[l];
137
- return x(o) ? mo : po;
140
+ const o = S.value[l];
141
+ return R(o) ? $o : Mo;
138
142
  },
139
143
  overscan: 5,
140
144
  containerRef: W,
141
145
  measureRow: !0
142
- }), Re = b(() => D.value.filter((l) => !x(l))), { activeCell: $e, selectedRange: dl, setActiveCell: Me, handleKeyDown: il } = Yl({
143
- columns: C,
144
- rows: Re,
145
- containerRef: oe,
146
- editingCell: Xe,
147
- enabled: b(() => d.enableKeyboard),
148
- onActivateEdit: (l, o) => Z.activate(l, o),
149
- onCancelEdit: () => Z.cancel(),
150
- onScrollToRow: (l) => sl(l),
146
+ }), Fe = k(() => S.value.filter((l) => !R(l))), { activeCell: Te, selectedRange: vl, setActiveCell: ze, handleKeyDown: yl } = Zl({
147
+ columns: x,
148
+ rows: Fe,
149
+ containerRef: te,
150
+ editingCell: Ze,
151
+ enabled: k(() => i.enableKeyboard),
152
+ onActivateEdit: (l, o) => le.activate(l, o),
153
+ onCancelEdit: () => le.cancel(),
154
+ onScrollToRow: (l) => fl(l),
151
155
  getCellValue: (l, o) => {
152
- const e = Re.value.find((a) => a.id === l);
156
+ const e = Fe.value.find((a) => a.id === l);
153
157
  if (!e) return "";
154
158
  const n = e[o];
155
159
  return n != null ? String(n) : "";
@@ -158,588 +162,631 @@ const Jl = ["tabindex"], Ql = {
158
162
  f("paste", { startRowId: l, startColKey: o, data: e });
159
163
  }
160
164
  });
161
- ke($e, (l) => f("active-cell-change", l ?? null));
165
+ pe(Te, (l) => f("active-cell-change", l ?? null));
162
166
  const {
163
- isDragging: ul,
164
- draggedRowId: fl,
165
- dropTargetId: ie,
166
- dropPosition: Te,
167
- handleDragStart: cl,
168
- handleDragOver: vl,
169
- handleDrop: yl,
170
- handleDragEnd: ze
171
- } = Ul({
172
- processedItems: D,
173
- enableCrossGroupDrag: b(() => d.enableCrossGroupDrag),
174
- groupFieldId: h(d, "groupBy")
167
+ isDragging: gl,
168
+ draggedRowId: bl,
169
+ dropTargetId: fe,
170
+ dropPosition: Ae,
171
+ handleDragStart: kl,
172
+ handleDragOver: wl,
173
+ handleDrop: pl,
174
+ handleDragEnd: He
175
+ } = lo({
176
+ processedItems: S,
177
+ enableCrossGroupDrag: k(() => i.enableCrossGroupDrag),
178
+ groupFieldId: p(i, "groupBy")
175
179
  });
176
- function Ae(l, o) {
177
- d.enableRowDrag && cl(l, o);
180
+ function Ke(l, o) {
181
+ i.enableRowDrag && kl(l, o);
178
182
  }
179
- function Fe(l, o) {
180
- d.enableRowDrag && vl(l, o);
183
+ function Be(l, o) {
184
+ i.enableRowDrag && wl(l, o);
181
185
  }
182
- function He(l, o) {
183
- d.enableRowDrag && yl(l, o, {
186
+ function Ie(l, o) {
187
+ i.enableRowDrag && pl(l, o, {
184
188
  onReorder: (e) => f("row-reorder", e),
185
189
  onGroupChange: (e) => f("row-group-change", e)
186
190
  });
187
191
  }
188
192
  const {
189
- drafts: Be,
190
- addDraft: gl,
191
- updateDraftField: Co,
192
- removeDraft: Do,
193
- commitDraft: xo,
194
- commitAll: bl,
195
- discardAll: kl,
196
- isDraft: So,
197
- getDraftErrors: Ro
198
- } = ql({
199
- schema: h(d, "schema"),
200
- groupFieldId: h(d, "groupBy")
201
- }), hl = b(() => Be.value.size > 0);
202
- function ml() {
203
- d.schema ? gl() : f("add-row");
204
- }
205
- function pl() {
206
- const l = bl();
193
+ drafts: Ee,
194
+ addDraft: hl,
195
+ commitAll: ml,
196
+ discardAll: Cl
197
+ } = oo({
198
+ schema: p(i, "schema"),
199
+ groupFieldId: p(i, "groupBy")
200
+ }), Dl = k(() => Ee.value.size > 0);
201
+ function xl() {
202
+ i.schema ? hl() : f("add-row");
203
+ }
204
+ function Sl() {
205
+ const l = ml();
207
206
  l.length > 0 && f("drafts-commit-all", { records: l });
208
207
  }
209
- function wl() {
210
- kl();
208
+ function Rl() {
209
+ Cl();
211
210
  }
212
- const w = R({ visible: !1, colKey: "", colLabel: "", x: 0, y: 0 }), X = R(!1);
213
- function ue(l, o) {
211
+ const D = $({ visible: !1, colKey: "", colLabel: "", x: 0, y: 0 }), j = $(!1);
212
+ function Pe(l) {
213
+ return l === "multiselect" ? "multi_select" : l;
214
+ }
215
+ function ce(l, o) {
214
216
  var a;
215
- const e = C.value.find((v) => v.key === o), n = (a = d.fieldDefs) == null ? void 0 : a.find((v) => v.id === o);
216
- w.value = {
217
+ const e = x.value.find((y) => y.key === o), n = (a = i.fieldDefs) == null ? void 0 : a.find((y) => y.id === o);
218
+ D.value = {
217
219
  visible: !0,
218
220
  colKey: o,
219
221
  colLabel: (e == null ? void 0 : e.label) ?? o,
220
- fieldType: n == null ? void 0 : n.type,
222
+ fieldType: Pe(n == null ? void 0 : n.type),
221
223
  x: l.clientX,
222
224
  y: l.clientY
223
225
  };
224
226
  }
225
- function fe(l) {
227
+ function ve(l) {
226
228
  var e, n;
227
- const o = C.value.find((a) => a.key === l);
228
- w.value = {
229
+ const o = x.value.find((a) => a.key === l);
230
+ D.value = {
229
231
  visible: !0,
230
232
  colKey: l,
231
233
  colLabel: (o == null ? void 0 : o.label) ?? l,
232
- fieldType: (n = (e = d.fieldDefs) == null ? void 0 : e.find((a) => a.id === l)) == null ? void 0 : n.type,
234
+ fieldType: Pe((n = (e = i.fieldDefs) == null ? void 0 : e.find((a) => a.id === l)) == null ? void 0 : n.type),
233
235
  x: 200,
234
236
  y: 100
235
237
  };
236
238
  }
237
- function Cl(l, o) {
239
+ function $l(l, o) {
238
240
  f("schema-rename-field", { fieldId: l, newName: o });
239
241
  }
240
- function Dl(l, o) {
242
+ function Ml(l, o) {
241
243
  f("schema-change-field-type", { fieldId: l, newType: o });
242
244
  }
243
- function xl(l) {
245
+ function Fl(l) {
244
246
  f("schema-hide-field", l);
245
247
  }
246
- function Sl(l) {
248
+ function Tl(l) {
247
249
  f("schema-delete-field", l);
248
250
  }
249
- function Rl(l) {
251
+ function zl(l) {
250
252
  f("schema-duplicate-field", l);
251
253
  }
252
- function ce() {
253
- X.value = !0;
254
+ function ye() {
255
+ j.value = !0;
254
256
  }
255
- function $l(l) {
256
- f("schema-add-field", l), X.value = !1;
257
+ function Al(l) {
258
+ f("schema-add-field", l), j.value = !1;
257
259
  }
258
- const M = b(() => d.readonly ? !1 : d.selectable), Ie = b(() => d.readonly ? !1 : d.addable), Ml = b(() => Array.from(p.value)), Ke = b(() => p.value.size > 0 && !le.value);
259
- function _e() {
260
- el(V.value);
260
+ const F = k(() => i.readonly ? !1 : i.selectable), Le = k(() => i.readonly ? !1 : i.addable), Hl = k(() => Array.from(C.value)), Ge = k(() => C.value.size > 0 && !ne.value);
261
+ function Ve() {
262
+ tl(V.value);
261
263
  }
262
- function U(l) {
263
- const o = V.value.find((e) => e[d.rowKey] === l);
264
- o && ll(o, 0);
264
+ function X(l) {
265
+ const o = V.value.find((e) => e[i.rowKey] === l);
266
+ o && al(o, 0);
265
267
  }
266
- ke(Ml, (l) => f("selection-change", l), { immediate: !1 });
267
- function i(l) {
268
- const o = l[d.rowKey];
268
+ pe(Hl, (l) => f("selection-change", l), { immediate: !1 });
269
+ function d(l) {
270
+ const o = l[i.rowKey];
269
271
  return o != null ? String(o) : "";
270
272
  }
271
- function H(l) {
273
+ function B(l) {
272
274
  var o;
273
- return ((o = d.fieldDefs) == null ? void 0 : o.find((e) => e.id === l)) ?? {
275
+ return ((o = i.fieldDefs) == null ? void 0 : o.find((e) => e.id === l)) ?? {
274
276
  id: l,
275
277
  type: "text",
276
278
  label: l
277
279
  };
278
280
  }
279
- function B(l, o, e) {
280
- je(l, o, e), f("cell-edit", { rowId: l, fieldId: o, value: e });
281
+ function I(l, o, e) {
282
+ Qe(l, o, e), f("cell-edit", { rowId: l, fieldId: o, value: e });
281
283
  }
282
- function I(l) {
283
- if (pe.value) {
284
- G.value = l, L.value = !0;
284
+ function T(l) {
285
+ if (Ce.value) {
286
+ ee.value = l, G.value = !0;
285
287
  return;
286
288
  }
287
- const o = l;
288
- if (o.__record) {
289
- f("row-click-record", o.__record), f("row-click", o.__record);
289
+ const o = l.__record;
290
+ if (o) {
291
+ f("row-click-record", o), f("row-click", o);
290
292
  return;
291
293
  }
292
294
  f("row-click", l);
293
295
  }
294
- function ve(l, o) {
295
- Ue(l, o);
296
+ function U(l, o) {
297
+ l.target === l.currentTarget && (l.key !== "Enter" && l.key !== " " || (l.preventDefault(), T(o)));
296
298
  }
297
- function ye(l) {
298
- Ze(l, oe.value);
299
+ function h(l, o) {
300
+ return l[o];
299
301
  }
300
- function Tl(l) {
301
- rl(l);
302
+ function Kl(l) {
303
+ if (!l) return null;
304
+ if (l instanceof HTMLElement) return l;
305
+ const o = l.$el;
306
+ return o instanceof HTMLElement ? o : null;
307
+ }
308
+ function q(l, o) {
309
+ cl(Kl(l), o);
310
+ }
311
+ function ge(l, o) {
312
+ _e(l, o);
313
+ }
314
+ function be(l) {
315
+ nl(l, te.value);
316
+ }
317
+ function Bl(l) {
318
+ ul(l);
302
319
  const o = l.target;
303
- De.value = o.scrollLeft;
320
+ Re.value = o.scrollLeft;
304
321
  }
305
- function q(l) {
322
+ function J(l) {
306
323
  return {
307
324
  groupKey: l.__groupKey,
308
325
  count: l.__groupCount,
309
- collapsed: tl.value.has(
326
+ collapsed: sl.value.has(
310
327
  l.__groupPath ? l.__groupPath.join("/") : l.__groupKey
311
328
  ),
312
- colorMap: d.groupColorMap,
313
- selectable: M.value,
329
+ colorMap: i.groupColorMap,
330
+ selectable: F.value,
314
331
  level: l.__groupLevel ?? 0,
315
332
  aggregations: l.__aggregations
316
333
  };
317
334
  }
318
- function J(l) {
335
+ function Q(l) {
319
336
  return l.__groupPath ? l.__groupPath.join("/") : l.__groupKey;
320
337
  }
321
- function Ee(l) {
338
+ function Oe(l) {
322
339
  return {
323
340
  row: l,
324
- rowKey: d.rowKey,
325
- selected: p.value.has(i(l)),
326
- selectable: M.value,
327
- columns: C.value,
328
- priorityColorMap: d.priorityColorMap,
329
- statusColorMap: d.statusColorMap
341
+ rowKey: i.rowKey,
342
+ selected: C.value.has(d(l)),
343
+ selectable: F.value,
344
+ columns: x.value,
345
+ priorityColorMap: i.priorityColorMap,
346
+ statusColorMap: i.statusColorMap
330
347
  };
331
348
  }
332
- function Pe(l, o) {
333
- const e = $e.value;
349
+ function Ne(l, o) {
350
+ const e = Te.value;
334
351
  return e !== null && e.rowId === l && e.colKey === o;
335
352
  }
336
- function Le(l, o) {
337
- return dl.value.some((e) => e.rowId === l && e.colKey === o);
353
+ function We(l, o) {
354
+ return vl.value.some((e) => e.rowId === l && e.colKey === o);
338
355
  }
339
- function Ge(l) {
340
- const o = i(l);
356
+ function Ye(l) {
357
+ const o = d(l);
341
358
  return {
342
- "of-row-dragging": ul.value && fl.value === o,
343
- "of-row-drop-target": ie.value === o,
344
- "of-row-drop-before": ie.value === o && Te.value === "before",
345
- "of-row-drop-after": ie.value === o && Te.value === "after"
359
+ "of-row-dragging": gl.value && bl.value === o,
360
+ "of-row-drop-target": fe.value === o,
361
+ "of-row-drop-before": fe.value === o && Ae.value === "before",
362
+ "of-row-drop-after": fe.value === o && Ae.value === "after"
346
363
  };
347
364
  }
348
- function zl(l) {
349
- G.value = l, L.value = !0;
365
+ function Il(l) {
366
+ ee.value = l, G.value = !0;
350
367
  }
351
- function Al(l) {
368
+ function El(l) {
352
369
  for (const [o, e] of Object.entries(l.fields))
353
370
  f("cell-edit", { rowId: l.rowId, fieldId: o, value: e });
354
371
  }
355
- return (l, o) => t(pe) ? (r(), s(c, { key: 0 }, [
356
- E(El, {
372
+ return (l, o) => t(Ce) ? (r(), s(v, { key: 0 }, [
373
+ L(Wl, {
357
374
  rows: t(V),
358
- columns: C.value,
359
- selectable: M.value,
360
- addable: Ie.value,
375
+ columns: x.value,
376
+ selectable: F.value,
377
+ addable: Le.value,
361
378
  "status-color-map": u.statusColorMap,
362
379
  readonly: u.readonly,
363
- onRowClick: zl,
364
- onAddRow: o[0] || (o[0] = (e) => f("add-row"))
365
- }, Hl({ _: 2 }, [
380
+ onRowClick: o[0] || (o[0] = (e) => Il(e)),
381
+ onAddRow: o[1] || (o[1] = (e) => f("add-row"))
382
+ }, Ll({ _: 2 }, [
366
383
  l.$slots.cell ? {
367
384
  name: "cell",
368
385
  fn: he((e) => [
369
- T(l.$slots, "cell", Bl(Il(e)), void 0, !0)
386
+ z(l.$slots, "cell", Gl(Vl(e)), void 0, !0)
370
387
  ]),
371
388
  key: "0"
372
389
  } : void 0
373
390
  ]), 1032, ["rows", "columns", "selectable", "addable", "status-color-map", "readonly"]),
374
- G.value ? (r(), y(t(Ye), {
391
+ De.value ? (r(), b(t(Je), {
375
392
  key: 0,
376
- row: G.value,
377
- columns: C.value,
393
+ row: De.value,
394
+ columns: x.value,
378
395
  "field-defs": u.fieldDefs,
379
- visible: L.value,
380
- onClose: o[1] || (o[1] = (e) => L.value = !1),
381
- onSave: Al,
382
- onDelete: o[2] || (o[2] = (e) => f("row-click", { id: e, __action: "delete" })),
383
- onCellEdit: o[3] || (o[3] = (e) => f("cell-edit", e))
384
- }, null, 8, ["row", "columns", "field-defs", "visible"])) : $("", !0)
396
+ visible: G.value,
397
+ onClose: o[2] || (o[2] = (e) => G.value = !1),
398
+ onSave: El,
399
+ onDelete: o[3] || (o[3] = (e) => f("row-delete", e)),
400
+ onCellEdit: o[4] || (o[4] = (e) => f("cell-edit", e))
401
+ }, null, 8, ["row", "columns", "field-defs", "visible"])) : M("", !0)
385
402
  ], 64)) : (r(), s("div", {
386
403
  key: 1,
387
404
  ref_key: "tableContainerRef",
388
- ref: oe,
405
+ ref: te,
389
406
  class: "of-data-table",
390
407
  role: "grid",
391
- tabindex: u.enableKeyboard ? 0 : void 0,
392
- onKeydown: o[14] || (o[14] = (e) => u.enableKeyboard ? t(il)(e) : void 0)
408
+ tabindex: "0",
409
+ onKeydown: o[19] || (o[19] = (e) => u.enableKeyboard ? t(yl)(e) : void 0)
393
410
  }, [
394
- nl.value ? (r(), s("div", Ql, [
395
- g("div", {
411
+ dl.value ? (r(), s("div", no, [
412
+ c("div", {
396
413
  ref_key: "fixedContainerRef",
397
- ref: Ce,
398
- class: z(["of-data-table-fixed-region", { "of-fixed-shadow": al.value }]),
399
- style: k({ width: t(xe) + "px" }),
400
- onScroll: o[8] || (o[8] = //@ts-ignore
401
- (...e) => t(Se) && t(Se)(...e))
414
+ ref: Se,
415
+ class: A(["of-data-table-fixed-region", { "of-fixed-shadow": il.value }]),
416
+ style: w({ width: t($e) + "px" }),
417
+ onScroll: o[11] || (o[11] = //@ts-ignore
418
+ (...e) => t(Me) && t(Me)(...e))
402
419
  }, [
403
- E(me, {
404
- columns: t(te),
405
- selectable: M.value,
406
- "sort-key": t(F).field ?? "",
407
- "sort-order": t(F).order ?? "asc",
408
- "all-selected": t(le),
409
- indeterminate: Ke.value,
420
+ L(me, {
421
+ columns: t(ae),
422
+ selectable: F.value,
423
+ "sort-key": t(K).field ?? "",
424
+ "sort-order": t(K).order ?? "asc",
425
+ "all-selected": t(ne),
426
+ indeterminate: Ge.value,
410
427
  "enable-resize": u.enableResize,
411
428
  "enable-field-menu": u.enableFieldManagement,
412
429
  "enable-add-field": u.enableFieldManagement,
413
430
  onSort: t(O),
414
- onSelectAll: _e,
415
- onResizeStart: ve,
416
- onResizeDblclick: ye,
417
- onHeaderContextmenu: ue,
418
- onHeaderDblclick: fe,
419
- onAddField: ce
431
+ onSelectAll: Ve,
432
+ onResizeStart: ge,
433
+ onResizeDblclick: be,
434
+ onHeaderContextmenu: ce,
435
+ onHeaderDblclick: ve,
436
+ onAddField: ye
420
437
  }, null, 8, ["columns", "selectable", "sort-key", "sort-order", "all-selected", "indeterminate", "enable-resize", "enable-field-menu", "enable-add-field", "onSort"]),
421
- g("div", Zl, [
422
- ae.value ? (r(), s("div", {
438
+ c("div", to, [
439
+ se.value ? (r(), s("div", {
423
440
  key: 0,
424
- style: k({ height: t(se) + "px", position: "relative" })
441
+ style: w({ height: t(ie) + "px", position: "relative" })
425
442
  }, [
426
- g("div", {
427
- style: k({ transform: `translateY(${t(de)}px)` })
443
+ c("div", {
444
+ style: w({ transform: `translateY(${t(ue)}px)` })
428
445
  }, [
429
- (r(!0), s(c, null, m(t(re), ({ data: e, index: n }) => (r(), s(c, {
446
+ (r(!0), s(v, null, m(t(de), ({ data: e, index: n }) => (r(), s(v, {
430
447
  key: e.id
431
448
  }, [
432
- t(x)(e) ? (r(), y(Q, K({
449
+ t(R)(e) ? (r(), b(_, E({
433
450
  key: 0,
434
451
  ref_for: !0,
435
- ref: (a) => t(j)((a == null ? void 0 : a.$el) ?? a, n)
436
- }, { ref_for: !0 }, q(e), {
437
- onToggle: (a) => t(N)(J(e))
452
+ ref: (a) => q(a, n)
453
+ }, { ref_for: !0 }, J(e), {
454
+ onToggle: (a) => t(N)(Q(e))
438
455
  }), null, 16, ["onToggle"])) : (r(), s("div", {
439
456
  key: 1,
440
457
  ref_for: !0,
441
- ref: (a) => t(j)(a, n),
442
- class: z(["of-table-row", {
443
- "of-table-row--selected": t(p).has(i(e)),
444
- "of-table-row--hover": t(Y)(i(e))
458
+ ref: (a) => q(a, n),
459
+ class: A(["of-table-row", {
460
+ "of-table-row--selected": t(C).has(d(e)),
461
+ "of-table-row--hover": t(Y)(d(e))
445
462
  }]),
446
463
  role: "row",
447
- onMouseenter: (a) => t(S)(i(e)),
448
- onMouseleave: o[5] || (o[5] = (a) => t(S)(null)),
449
- onClick: (a) => I(e)
464
+ tabindex: "0",
465
+ onMouseenter: (a) => t(g)(d(e)),
466
+ onMouseleave: o[6] || (o[6] = (a) => t(g)(null)),
467
+ onFocusin: (a) => t(g)(d(e)),
468
+ onFocusout: o[7] || (o[7] = (a) => t(g)(null)),
469
+ onClick: (a) => T(e),
470
+ onKeydown: (a) => U(a, e)
450
471
  }, [
451
- M.value ? (r(), s("div", {
472
+ F.value ? (r(), s("div", {
452
473
  key: 0,
453
474
  class: "of-td of-td-checkbox",
454
475
  role: "gridcell",
455
- onClick: o[4] || (o[4] = P(() => {
476
+ onClick: o[5] || (o[5] = Z(() => {
456
477
  }, ["stop"]))
457
478
  }, [
458
- g("input", {
459
- type: "checkbox",
460
- class: "of-checkbox",
461
- checked: t(p).has(i(e)),
462
- onChange: (a) => U(i(e))
463
- }, null, 40, lo)
464
- ])) : $("", !0),
465
- (r(!0), s(c, null, m(t(te), (a) => (r(), s("div", {
479
+ c("label", {
480
+ class: "of-checkbox-label",
481
+ for: `fixed-row-select-${d(e)}`
482
+ }, [
483
+ c("input", {
484
+ id: `fixed-row-select-${d(e)}`,
485
+ type: "checkbox",
486
+ class: "of-checkbox",
487
+ checked: t(C).has(d(e)),
488
+ onChange: (a) => X(d(e))
489
+ }, null, 40, so),
490
+ o[20] || (o[20] = c("span", { class: "of-sr-only" }, "选择当前行", -1))
491
+ ], 8, ro)
492
+ ])) : M("", !0),
493
+ (r(!0), s(v, null, m(t(ae), (a) => (r(), s("div", {
466
494
  key: a.key,
467
495
  class: "of-td",
468
496
  role: "gridcell",
469
- style: k({
497
+ style: w({
470
498
  width: (a.width === "fill" ? 200 : a.width) + "px",
471
499
  flexShrink: "0"
472
500
  })
473
501
  }, [
474
- T(l.$slots, "cell", {
502
+ z(l.$slots, "cell", {
475
503
  row: e,
476
504
  col: a
477
505
  }, () => {
478
- var v;
506
+ var y;
479
507
  return [
480
- (v = u.fieldDefs) != null && v.length ? (r(), y(_, {
508
+ (y = u.fieldDefs) != null && y.length ? (r(), b(P, {
481
509
  key: 0,
482
- "row-id": i(e),
483
- field: H(a.key),
484
- value: e[a.key],
485
- onCommit: B
486
- }, null, 8, ["row-id", "field", "value"])) : (r(), s("span", oo, A(e[a.key] ?? "-"), 1))
510
+ "row-id": d(e),
511
+ field: B(a.key),
512
+ value: h(e, a.key),
513
+ onCommit: I
514
+ }, null, 8, ["row-id", "field", "value"])) : (r(), s("span", io, H(h(e, a.key) ?? "-"), 1))
487
515
  ];
488
516
  }, !0)
489
517
  ], 4))), 128))
490
- ], 42, eo))
518
+ ], 42, ao))
491
519
  ], 64))), 128))
492
520
  ], 4)
493
- ], 4)) : (r(!0), s(c, { key: 1 }, m(t(D), (e) => (r(), s(c, {
521
+ ], 4)) : (r(!0), s(v, { key: 1 }, m(t(S), (e) => (r(), s(v, {
494
522
  key: e.id
495
523
  }, [
496
- t(x)(e) ? (r(), y(Q, K({
524
+ t(R)(e) ? (r(), b(_, E({
497
525
  key: 0,
498
526
  ref_for: !0
499
- }, q(e), {
500
- onToggle: (n) => t(N)(J(e))
527
+ }, J(e), {
528
+ onToggle: (n) => t(N)(Q(e))
501
529
  }), null, 16, ["onToggle"])) : (r(), s("div", {
502
530
  key: 1,
503
- class: z(["of-table-row", {
504
- "of-table-row--selected": t(p).has(i(e)),
505
- "of-table-row--hover": t(Y)(i(e))
531
+ class: A(["of-table-row", {
532
+ "of-table-row--selected": t(C).has(d(e)),
533
+ "of-table-row--hover": t(Y)(d(e))
506
534
  }]),
507
535
  role: "row",
508
- onMouseenter: (n) => t(S)(i(e)),
509
- onMouseleave: o[7] || (o[7] = (n) => t(S)(null)),
510
- onClick: (n) => I(e)
536
+ tabindex: "0",
537
+ onMouseenter: (n) => t(g)(d(e)),
538
+ onMouseleave: o[9] || (o[9] = (n) => t(g)(null)),
539
+ onFocusin: (n) => t(g)(d(e)),
540
+ onFocusout: o[10] || (o[10] = (n) => t(g)(null)),
541
+ onClick: (n) => T(e),
542
+ onKeydown: (n) => U(n, e)
511
543
  }, [
512
- M.value ? (r(), s("div", {
544
+ F.value ? (r(), s("div", {
513
545
  key: 0,
514
546
  class: "of-td of-td-checkbox",
515
547
  role: "gridcell",
516
- onClick: o[6] || (o[6] = P(() => {
548
+ onClick: o[8] || (o[8] = Z(() => {
517
549
  }, ["stop"]))
518
550
  }, [
519
- g("input", {
520
- type: "checkbox",
521
- class: "of-checkbox",
522
- checked: t(p).has(i(e)),
523
- onChange: (n) => U(i(e))
524
- }, null, 40, no)
525
- ])) : $("", !0),
526
- (r(!0), s(c, null, m(t(te), (n) => (r(), s("div", {
551
+ c("label", {
552
+ class: "of-checkbox-label",
553
+ for: `row-select-${d(e)}`
554
+ }, [
555
+ c("input", {
556
+ id: `row-select-${d(e)}`,
557
+ type: "checkbox",
558
+ class: "of-checkbox",
559
+ checked: t(C).has(d(e)),
560
+ onChange: (n) => X(d(e))
561
+ }, null, 40, co),
562
+ o[21] || (o[21] = c("span", { class: "of-sr-only" }, "选择当前行", -1))
563
+ ], 8, fo)
564
+ ])) : M("", !0),
565
+ (r(!0), s(v, null, m(t(ae), (n) => (r(), s("div", {
527
566
  key: n.key,
528
567
  class: "of-td",
529
568
  role: "gridcell",
530
- style: k({
569
+ style: w({
531
570
  width: (n.width === "fill" ? 200 : n.width) + "px",
532
571
  flexShrink: "0"
533
572
  })
534
573
  }, [
535
- T(l.$slots, "cell", {
574
+ z(l.$slots, "cell", {
536
575
  row: e,
537
576
  col: n
538
577
  }, () => {
539
578
  var a;
540
579
  return [
541
- (a = u.fieldDefs) != null && a.length ? (r(), y(_, {
580
+ (a = u.fieldDefs) != null && a.length ? (r(), b(P, {
542
581
  key: 0,
543
- "row-id": i(e),
544
- field: H(n.key),
545
- value: e[n.key],
546
- onCommit: B
547
- }, null, 8, ["row-id", "field", "value"])) : (r(), s("span", ao, A(e[n.key] ?? "-"), 1))
582
+ "row-id": d(e),
583
+ field: B(n.key),
584
+ value: h(e, n.key),
585
+ onCommit: I
586
+ }, null, 8, ["row-id", "field", "value"])) : (r(), s("span", vo, H(h(e, n.key) ?? "-"), 1))
548
587
  ];
549
588
  }, !0)
550
589
  ], 4))), 128))
551
- ], 42, to))
590
+ ], 42, uo))
552
591
  ], 64))), 128))
553
592
  ])
554
593
  ], 38),
555
- g("div", {
594
+ c("div", {
556
595
  ref_key: "scrollContainerRef",
557
596
  ref: W,
558
597
  class: "of-data-table-scroll-region",
559
- style: k({ marginLeft: t(xe) + "px" }),
560
- onScroll: Tl
598
+ style: w({ marginLeft: t($e) + "px" }),
599
+ onScroll: Bl
561
600
  }, [
562
- E(me, {
563
- columns: t(ne),
601
+ L(me, {
602
+ columns: t(re),
564
603
  selectable: !1,
565
- "sort-key": t(F).field ?? "",
566
- "sort-order": t(F).order ?? "asc",
604
+ "sort-key": t(K).field ?? "",
605
+ "sort-order": t(K).order ?? "asc",
567
606
  "enable-resize": u.enableResize,
568
607
  "enable-field-menu": u.enableFieldManagement,
569
608
  "enable-add-field": u.enableFieldManagement,
570
609
  onSort: t(O),
571
- onResizeStart: ve,
572
- onResizeDblclick: ye,
573
- onHeaderContextmenu: ue,
574
- onHeaderDblclick: fe,
575
- onAddField: ce
610
+ onResizeStart: ge,
611
+ onResizeDblclick: be,
612
+ onHeaderContextmenu: ce,
613
+ onHeaderDblclick: ve,
614
+ onAddField: ye
576
615
  }, null, 8, ["columns", "sort-key", "sort-order", "enable-resize", "enable-field-menu", "enable-add-field", "onSort"]),
577
- g("div", ro, [
578
- ae.value ? (r(), s("div", {
616
+ c("div", yo, [
617
+ se.value ? (r(), s("div", {
579
618
  key: 0,
580
- style: k({ height: t(se) + "px", position: "relative" })
619
+ style: w({ height: t(ie) + "px", position: "relative" })
581
620
  }, [
582
- g("div", {
583
- style: k({ transform: `translateY(${t(de)}px)` })
621
+ c("div", {
622
+ style: w({ transform: `translateY(${t(ue)}px)` })
584
623
  }, [
585
- (r(!0), s(c, null, m(t(re), ({ data: e }) => (r(), s(c, {
624
+ (r(!0), s(v, null, m(t(de), ({ data: e }) => (r(), s(v, {
586
625
  key: e.id
587
626
  }, [
588
- t(x)(e) ? (r(), s("div", so)) : (r(), s("div", {
627
+ t(R)(e) ? (r(), s("div", go)) : (r(), s("div", {
589
628
  key: 1,
590
- class: z(["of-table-row", {
591
- "of-table-row--selected": t(p).has(i(e)),
592
- "of-table-row--hover": t(Y)(i(e))
629
+ class: A(["of-table-row", {
630
+ "of-table-row--selected": t(C).has(d(e)),
631
+ "of-table-row--hover": t(Y)(d(e))
593
632
  }]),
594
633
  role: "row",
595
- onMouseenter: (n) => t(S)(i(e)),
596
- onMouseleave: o[9] || (o[9] = (n) => t(S)(null)),
597
- onClick: (n) => I(e)
634
+ tabindex: "0",
635
+ onMouseenter: (n) => t(g)(d(e)),
636
+ onMouseleave: o[12] || (o[12] = (n) => t(g)(null)),
637
+ onFocusin: (n) => t(g)(d(e)),
638
+ onFocusout: o[13] || (o[13] = (n) => t(g)(null)),
639
+ onClick: (n) => T(e),
640
+ onKeydown: (n) => U(n, e)
598
641
  }, [
599
- (r(!0), s(c, null, m(t(ne), (n) => (r(), s("div", {
642
+ (r(!0), s(v, null, m(t(re), (n) => (r(), s("div", {
600
643
  key: n.key,
601
644
  class: "of-td",
602
645
  role: "gridcell",
603
- style: k({
646
+ style: w({
604
647
  width: n.width === "fill" ? void 0 : n.width + "px",
605
648
  flex: n.width === "fill" ? "1 1 " + (n.minWidth ?? 220) + "px" : "0 0 auto"
606
649
  })
607
650
  }, [
608
- T(l.$slots, "cell", {
651
+ z(l.$slots, "cell", {
609
652
  row: e,
610
653
  col: n
611
654
  }, () => {
612
655
  var a;
613
656
  return [
614
- (a = u.fieldDefs) != null && a.length ? (r(), y(_, {
657
+ (a = u.fieldDefs) != null && a.length ? (r(), b(P, {
615
658
  key: 0,
616
- "row-id": i(e),
617
- field: H(n.key),
618
- value: e[n.key],
619
- onCommit: B
620
- }, null, 8, ["row-id", "field", "value"])) : (r(), s("span", uo, A(e[n.key] ?? "-"), 1))
659
+ "row-id": d(e),
660
+ field: B(n.key),
661
+ value: h(e, n.key),
662
+ onCommit: I
663
+ }, null, 8, ["row-id", "field", "value"])) : (r(), s("span", ko, H(h(e, n.key) ?? "-"), 1))
621
664
  ];
622
665
  }, !0)
623
666
  ], 4))), 128))
624
- ], 42, io))
667
+ ], 42, bo))
625
668
  ], 64))), 128))
626
669
  ], 4)
627
- ], 4)) : (r(!0), s(c, { key: 1 }, m(t(D), (e) => (r(), s(c, {
670
+ ], 4)) : (r(!0), s(v, { key: 1 }, m(t(S), (e) => (r(), s(v, {
628
671
  key: e.id
629
672
  }, [
630
- t(x)(e) ? (r(), s("div", fo)) : (r(), s("div", {
673
+ t(R)(e) ? (r(), s("div", wo)) : (r(), s("div", {
631
674
  key: 1,
632
- class: z(["of-table-row", {
633
- "of-table-row--selected": t(p).has(i(e)),
634
- "of-table-row--hover": t(Y)(i(e))
675
+ class: A(["of-table-row", {
676
+ "of-table-row--selected": t(C).has(d(e)),
677
+ "of-table-row--hover": t(Y)(d(e))
635
678
  }]),
636
679
  role: "row",
637
- onMouseenter: (n) => t(S)(i(e)),
638
- onMouseleave: o[10] || (o[10] = (n) => t(S)(null)),
639
- onClick: (n) => I(e)
680
+ tabindex: "0",
681
+ onMouseenter: (n) => t(g)(d(e)),
682
+ onMouseleave: o[14] || (o[14] = (n) => t(g)(null)),
683
+ onFocusin: (n) => t(g)(d(e)),
684
+ onFocusout: o[15] || (o[15] = (n) => t(g)(null)),
685
+ onClick: (n) => T(e),
686
+ onKeydown: (n) => U(n, e)
640
687
  }, [
641
- (r(!0), s(c, null, m(t(ne), (n) => (r(), s("div", {
688
+ (r(!0), s(v, null, m(t(re), (n) => (r(), s("div", {
642
689
  key: n.key,
643
690
  class: "of-td",
644
691
  role: "gridcell",
645
- style: k({
692
+ style: w({
646
693
  width: n.width === "fill" ? void 0 : n.width + "px",
647
694
  flex: n.width === "fill" ? "1 1 " + (n.minWidth ?? 220) + "px" : "0 0 auto"
648
695
  })
649
696
  }, [
650
- T(l.$slots, "cell", {
697
+ z(l.$slots, "cell", {
651
698
  row: e,
652
699
  col: n
653
700
  }, () => {
654
701
  var a;
655
702
  return [
656
- (a = u.fieldDefs) != null && a.length ? (r(), y(_, {
703
+ (a = u.fieldDefs) != null && a.length ? (r(), b(P, {
657
704
  key: 0,
658
- "row-id": i(e),
659
- field: H(n.key),
660
- value: e[n.key],
661
- onCommit: B
662
- }, null, 8, ["row-id", "field", "value"])) : (r(), s("span", vo, A(e[n.key] ?? "-"), 1))
705
+ "row-id": d(e),
706
+ field: B(n.key),
707
+ value: h(e, n.key),
708
+ onCommit: I
709
+ }, null, 8, ["row-id", "field", "value"])) : (r(), s("span", ho, H(h(e, n.key) ?? "-"), 1))
663
710
  ];
664
711
  }, !0)
665
712
  ], 4))), 128))
666
- ], 42, co))
713
+ ], 42, po))
667
714
  ], 64))), 128))
668
715
  ])
669
716
  ], 36)
670
- ])) : (r(), s(c, { key: 1 }, [
671
- E(me, {
672
- columns: C.value,
673
- selectable: M.value,
674
- "sort-key": t(F).field ?? "",
675
- "sort-order": t(F).order ?? "asc",
676
- "all-selected": t(le),
677
- indeterminate: Ke.value,
717
+ ])) : (r(), s(v, { key: 1 }, [
718
+ L(me, {
719
+ columns: x.value,
720
+ selectable: F.value,
721
+ "sort-key": t(K).field ?? "",
722
+ "sort-order": t(K).order ?? "asc",
723
+ "all-selected": t(ne),
724
+ indeterminate: Ge.value,
678
725
  "enable-resize": u.enableResize,
679
726
  "enable-field-menu": u.enableFieldManagement,
680
727
  "enable-add-field": u.enableFieldManagement,
681
728
  onSort: t(O),
682
- onSelectAll: _e,
683
- onResizeStart: ve,
684
- onResizeDblclick: ye,
685
- onHeaderContextmenu: ue,
686
- onHeaderDblclick: fe,
687
- onAddField: ce
729
+ onSelectAll: Ve,
730
+ onResizeStart: ge,
731
+ onResizeDblclick: be,
732
+ onHeaderContextmenu: ce,
733
+ onHeaderDblclick: ve,
734
+ onAddField: ye
688
735
  }, null, 8, ["columns", "selectable", "sort-key", "sort-order", "all-selected", "indeterminate", "enable-resize", "enable-field-menu", "enable-add-field", "onSort"]),
689
- g("div", {
736
+ c("div", {
690
737
  ref_key: "scrollContainerRef",
691
738
  ref: W,
692
739
  class: "of-data-table-scroll-container"
693
740
  }, [
694
- ae.value ? (r(), s("div", {
741
+ se.value ? (r(), s("div", {
695
742
  key: 0,
696
- style: k({ height: t(se) + "px", position: "relative" })
743
+ style: w({ height: t(ie) + "px", position: "relative" })
697
744
  }, [
698
- g("div", {
699
- style: k({ transform: `translateY(${t(de)}px)` })
745
+ c("div", {
746
+ style: w({ transform: `translateY(${t(ue)}px)` })
700
747
  }, [
701
- (r(!0), s(c, null, m(t(re), ({ data: e, index: n }) => (r(), s(c, {
748
+ (r(!0), s(v, null, m(t(de), ({ data: e, index: n }) => (r(), s(v, {
702
749
  key: e.id
703
750
  }, [
704
- t(x)(e) ? (r(), y(Q, K({
751
+ t(R)(e) ? (r(), b(_, E({
705
752
  key: 0,
706
753
  ref_for: !0,
707
- ref: (a) => t(j)((a == null ? void 0 : a.$el) ?? a, n)
708
- }, { ref_for: !0 }, q(e), {
709
- onToggle: (a) => t(N)(J(e))
710
- }), null, 16, ["onToggle"])) : (r(), y(Ve, K({
754
+ ref: (a) => q(a, n)
755
+ }, { ref_for: !0 }, J(e), {
756
+ onToggle: (a) => t(N)(Q(e))
757
+ }), null, 16, ["onToggle"])) : (r(), b(je, E({
711
758
  key: 1,
712
759
  ref_for: !0,
713
- ref: (a) => t(j)((a == null ? void 0 : a.$el) ?? a, n)
714
- }, { ref_for: !0 }, Ee(e), {
760
+ ref: (a) => q(a, n)
761
+ }, { ref_for: !0 }, Oe(e), {
715
762
  draggable: u.enableRowDrag,
716
- class: Ge(e),
717
- onSelect: U,
718
- onClick: (a) => I(e),
719
- onDragstart: (a) => Ae(a, e),
720
- onDragover: (a) => Fe(a, e),
721
- onDrop: (a) => He(a, e),
722
- onDragend: t(ze)
763
+ class: Ye(e),
764
+ onSelect: X,
765
+ onClick: (a) => T(e),
766
+ onDragstart: (a) => Ke(a, e),
767
+ onDragover: (a) => Be(a, e),
768
+ onDrop: (a) => Ie(a, e),
769
+ onDragend: t(He)
723
770
  }), {
724
- cell: he(({ row: a, col: v }) => [
725
- T(l.$slots, "cell", {
771
+ cell: he(({ row: a, col: y }) => [
772
+ z(l.$slots, "cell", {
726
773
  row: a,
727
- col: v
774
+ col: y
728
775
  }, () => {
729
- var ge;
776
+ var ke;
730
777
  return [
731
- (ge = u.fieldDefs) != null && ge.length ? (r(), y(_, {
778
+ (ke = u.fieldDefs) != null && ke.length ? (r(), b(P, {
732
779
  key: 0,
733
- "row-id": i(a),
734
- field: H(v.key),
735
- value: a[v.key],
736
- class: z({
737
- "of-cell--active": Pe(i(a), v.key),
738
- "of-cell--selected": Le(i(a), v.key)
780
+ "row-id": d(a),
781
+ field: B(y.key),
782
+ value: a[y.key],
783
+ class: A({
784
+ "of-cell--active": Ne(d(a), y.key),
785
+ "of-cell--selected": We(d(a), y.key)
739
786
  }),
740
- onCommit: B,
741
- onClick: P(($o) => u.enableKeyboard && t(Me)(i(a), v.key), ["stop"])
742
- }, null, 8, ["row-id", "field", "value", "class", "onClick"])) : (r(), s("span", yo, A(a[v.key] ?? "-"), 1))
787
+ onCommit: I,
788
+ onClick: Z((Fo) => u.enableKeyboard && t(ze)(d(a), y.key), ["stop"])
789
+ }, null, 8, ["row-id", "field", "value", "class", "onClick"])) : (r(), s("span", mo, H(h(a, y.key) ?? "-"), 1))
743
790
  ];
744
791
  }, !0)
745
792
  ]),
@@ -747,46 +794,46 @@ const Jl = ["tabindex"], Ql = {
747
794
  }, 16, ["draggable", "class", "onClick", "onDragstart", "onDragover", "onDrop", "onDragend"]))
748
795
  ], 64))), 128))
749
796
  ], 4)
750
- ], 4)) : (r(!0), s(c, { key: 1 }, m(t(D), (e) => (r(), s(c, {
797
+ ], 4)) : (r(!0), s(v, { key: 1 }, m(t(S), (e) => (r(), s(v, {
751
798
  key: e.id
752
799
  }, [
753
- t(x)(e) ? (r(), y(Q, K({
800
+ t(R)(e) ? (r(), b(_, E({
754
801
  key: 0,
755
802
  ref_for: !0
756
- }, q(e), {
757
- onToggle: (n) => t(N)(J(e))
758
- }), null, 16, ["onToggle"])) : (r(), y(Ve, K({
803
+ }, J(e), {
804
+ onToggle: (n) => t(N)(Q(e))
805
+ }), null, 16, ["onToggle"])) : (r(), b(je, E({
759
806
  key: 1,
760
807
  ref_for: !0
761
- }, Ee(e), {
808
+ }, Oe(e), {
762
809
  draggable: u.enableRowDrag,
763
- class: Ge(e),
764
- onSelect: U,
765
- onClick: (n) => I(e),
766
- onDragstart: (n) => Ae(n, e),
767
- onDragover: (n) => Fe(n, e),
768
- onDrop: (n) => He(n, e),
769
- onDragend: t(ze)
810
+ class: Ye(e),
811
+ onSelect: X,
812
+ onClick: (n) => T(e),
813
+ onDragstart: (n) => Ke(n, e),
814
+ onDragover: (n) => Be(n, e),
815
+ onDrop: (n) => Ie(n, e),
816
+ onDragend: t(He)
770
817
  }), {
771
818
  cell: he(({ row: n, col: a }) => [
772
- T(l.$slots, "cell", {
819
+ z(l.$slots, "cell", {
773
820
  row: n,
774
821
  col: a
775
822
  }, () => {
776
- var v;
823
+ var y;
777
824
  return [
778
- (v = u.fieldDefs) != null && v.length ? (r(), y(_, {
825
+ (y = u.fieldDefs) != null && y.length ? (r(), b(P, {
779
826
  key: 0,
780
- "row-id": i(n),
781
- field: H(a.key),
827
+ "row-id": d(n),
828
+ field: B(a.key),
782
829
  value: n[a.key],
783
- class: z({
784
- "of-cell--active": Pe(i(n), a.key),
785
- "of-cell--selected": Le(i(n), a.key)
830
+ class: A({
831
+ "of-cell--active": Ne(d(n), a.key),
832
+ "of-cell--selected": We(d(n), a.key)
786
833
  }),
787
- onCommit: B,
788
- onClick: P((ge) => u.enableKeyboard && t(Me)(i(n), a.key), ["stop"])
789
- }, null, 8, ["row-id", "field", "value", "class", "onClick"])) : (r(), s("span", go, A(n[a.key] ?? "-"), 1))
834
+ onCommit: I,
835
+ onClick: Z((ke) => u.enableKeyboard && t(ze)(d(n), a.key), ["stop"])
836
+ }, null, 8, ["row-id", "field", "value", "class", "onClick"])) : (r(), s("span", Co, H(h(n, a.key) ?? "-"), 1))
790
837
  ];
791
838
  }, !0)
792
839
  ]),
@@ -795,56 +842,59 @@ const Jl = ["tabindex"], Ql = {
795
842
  ], 64))), 128))
796
843
  ], 512)
797
844
  ], 64)),
798
- t(Je) ? (r(), s("div", {
845
+ t(ll) ? (r(), s("div", {
799
846
  key: 2,
800
847
  class: "of-resize-indicator",
801
- style: k({ left: t(Qe) + "px" })
802
- }, null, 4)) : $("", !0),
803
- hl.value ? (r(), s("div", bo, [
804
- g("span", ko, A(t(Be).size) + " 条草稿", 1),
805
- g("button", {
848
+ style: w({ left: t(ol) + "px" })
849
+ }, null, 4)) : M("", !0),
850
+ Dl.value ? (r(), s("div", Do, [
851
+ c("span", xo, H(t(Ee).size) + " 条草稿", 1),
852
+ c("button", {
806
853
  class: "of-data-table-draft-btn of-data-table-draft-btn--commit",
807
- onClick: pl
854
+ onClick: Sl
808
855
  }, " 全部提交 "),
809
- g("button", {
856
+ c("button", {
810
857
  class: "of-data-table-draft-btn of-data-table-draft-btn--discard",
811
- onClick: wl
858
+ onClick: Rl
812
859
  }, " 全部放弃 ")
813
- ])) : $("", !0),
814
- Ie.value ? (r(), y(_l, {
860
+ ])) : M("", !0),
861
+ Le.value ? (r(), b(Nl, {
815
862
  key: 4,
816
- onClick: ml
817
- })) : $("", !0),
818
- u.enableFieldManagement ? (r(), y(t(Ne), {
863
+ onClick: xl
864
+ })) : M("", !0),
865
+ u.enableFieldManagement ? (r(), b(t(Ue), {
819
866
  key: 5,
820
- visible: w.value.visible,
821
- "col-key": w.value.colKey,
822
- "col-label": w.value.colLabel,
823
- "field-type": w.value.fieldType,
824
- x: w.value.x,
825
- y: w.value.y,
826
- onClose: o[11] || (o[11] = (e) => w.value.visible = !1),
827
- onRename: Cl,
828
- onChangeType: Dl,
829
- onSort: o[12] || (o[12] = (e, n) => t(O)(e)),
830
- onHide: xl,
831
- onDelete: Sl,
832
- onDuplicate: Rl
833
- }, null, 8, ["visible", "col-key", "col-label", "field-type", "x", "y"])) : $("", !0),
834
- (r(), y(Kl, { to: "body" }, [
835
- X.value ? (r(), s("div", {
836
- key: 0,
837
- class: "of-add-field-overlay",
838
- onClick: o[13] || (o[13] = P((e) => X.value = !1, ["self"]))
839
- }, [
840
- g("div", ho, [
841
- E(t(We), { onSelect: $l })
867
+ visible: D.value.visible,
868
+ "col-key": D.value.colKey,
869
+ "col-label": D.value.colLabel,
870
+ "field-type": D.value.fieldType,
871
+ x: D.value.x,
872
+ y: D.value.y,
873
+ onClose: o[16] || (o[16] = (e) => D.value.visible = !1),
874
+ onRename: $l,
875
+ onChangeType: Ml,
876
+ onSort: o[17] || (o[17] = (e, n) => t(O)(e)),
877
+ onHide: Fl,
878
+ onDelete: Tl,
879
+ onDuplicate: zl
880
+ }, null, 8, ["visible", "col-key", "col-label", "field-type", "x", "y"])) : M("", !0),
881
+ (r(), b(Ol, { to: "body" }, [
882
+ j.value ? (r(), s("div", So, [
883
+ c("button", {
884
+ type: "button",
885
+ class: "of-add-field-overlay__backdrop",
886
+ tabindex: "-1",
887
+ "aria-hidden": "true",
888
+ onClick: o[18] || (o[18] = (e) => j.value = !1)
889
+ }),
890
+ c("div", Ro, [
891
+ L(t(qe), { onSelect: Al })
842
892
  ])
843
- ])) : $("", !0)
893
+ ])) : M("", !0)
844
894
  ]))
845
- ], 40, Jl));
895
+ ], 544));
846
896
  }
847
897
  });
848
898
  export {
849
- jo as default
899
+ qo as default
850
900
  };