@farris/ui-vue 1.0.0-beta.2 → 1.0.0-beta.4

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 (246) hide show
  1. package/accordion/index.esm.js +93 -0
  2. package/accordion/index.umd.js +1 -0
  3. package/accordion/package.json +8 -0
  4. package/accordion/style.css +1 -0
  5. package/avatar/index.esm.js +94 -0
  6. package/avatar/index.umd.js +1 -0
  7. package/avatar/package.json +8 -0
  8. package/avatar/style.css +1 -0
  9. package/button/index.esm.js +206 -0
  10. package/button/index.umd.js +1 -0
  11. package/button/package.json +8 -0
  12. package/button-edit/index.esm.js +300 -0
  13. package/button-edit/index.umd.js +1 -0
  14. package/button-edit/package.json +8 -0
  15. package/checkbox/index.esm.js +97 -0
  16. package/checkbox/index.umd.js +1 -0
  17. package/checkbox/package.json +8 -0
  18. package/combo-list/index.esm.js +457 -0
  19. package/combo-list/index.umd.js +1 -0
  20. package/combo-list/package.json +8 -0
  21. package/data-grid/index.esm.js +1535 -0
  22. package/data-grid/index.umd.js +1 -0
  23. package/data-grid/package.json +8 -0
  24. package/data-grid/style.css +1 -0
  25. package/date-picker/index.esm.js +1479 -0
  26. package/date-picker/index.umd.js +1 -0
  27. package/date-picker/package.json +8 -0
  28. package/date-picker/style.css +1 -0
  29. package/{src/index.esm.js → farris.all.esm.js} +1 -2
  30. package/farris.all.umd.js +1 -0
  31. package/list-view/index.esm.js +144 -0
  32. package/list-view/index.umd.js +1 -0
  33. package/list-view/package.json +8 -0
  34. package/list-view/style.css +1 -0
  35. package/message-box/index.esm.js +499 -0
  36. package/message-box/index.umd.js +1 -0
  37. package/message-box/package.json +8 -0
  38. package/modal/index.esm.js +165 -0
  39. package/modal/index.umd.js +1 -0
  40. package/modal/package.json +8 -0
  41. package/notify/index.esm.js +187 -0
  42. package/notify/index.umd.js +1 -0
  43. package/notify/package.json +8 -0
  44. package/notify/style.css +1 -0
  45. package/package.json +6 -5
  46. package/pagination/index.esm.js +334 -0
  47. package/pagination/index.umd.js +1 -0
  48. package/pagination/package.json +8 -0
  49. package/pagination/style.css +1 -0
  50. package/popover/index.esm.js +83 -0
  51. package/popover/index.umd.js +1 -0
  52. package/popover/package.json +8 -0
  53. package/popover/style.css +1 -0
  54. package/radio-group/index.esm.js +79 -0
  55. package/radio-group/index.umd.js +1 -0
  56. package/radio-group/package.json +8 -0
  57. package/section/index.esm.js +70 -0
  58. package/section/index.umd.js +1 -0
  59. package/section/package.json +8 -0
  60. package/switch/index.esm.js +78 -0
  61. package/switch/index.umd.js +1 -0
  62. package/switch/package.json +8 -0
  63. package/tabs/index.esm.js +385 -0
  64. package/tabs/index.umd.js +1 -0
  65. package/tabs/package.json +8 -0
  66. package/tabs/style.css +1 -0
  67. package/text/index.esm.js +33 -0
  68. package/text/index.umd.js +1 -0
  69. package/text/package.json +8 -0
  70. package/tooltip/index.esm.js +195 -0
  71. package/tooltip/index.umd.js +1 -0
  72. package/tooltip/package.json +8 -0
  73. package/tooltip/style.css +1 -0
  74. package/types/accordion/index.d.ts +25 -0
  75. package/types/accordion/src/accordion.component.d.ts +70 -0
  76. package/types/accordion/src/accordion.props.d.ts +50 -0
  77. package/types/accordion/src/components/accordion-item.component.d.ts +38 -0
  78. package/types/accordion/src/components/accordion-item.props.d.ts +34 -0
  79. package/types/avatar/index.d.ts +23 -0
  80. package/types/avatar/src/avatar.component.d.ts +109 -0
  81. package/types/avatar/src/avatar.props.d.ts +96 -0
  82. package/types/avatar/src/composition/types.d.ts +31 -0
  83. package/types/avatar/src/composition/use-image.d.ts +19 -0
  84. package/types/button/index.d.ts +24 -0
  85. package/types/button/src/button-group.component.d.ts +106 -0
  86. package/types/button/src/button-group.props.d.ts +106 -0
  87. package/types/button/src/button.component.d.ts +34 -0
  88. package/types/button/src/button.props.d.ts +47 -0
  89. package/types/button/src/composition/types-group.d.ts +24 -0
  90. package/types/button/src/composition/types.d.ts +24 -0
  91. package/types/button/src/composition/use-button-group.d.ts +19 -0
  92. package/types/button/src/composition/use-button.d.ts +19 -0
  93. package/types/button-edit/index.d.ts +23 -0
  94. package/types/button-edit/src/button-edit.props.d.ts +135 -0
  95. package/types/button-edit/src/composition/types.d.ts +118 -0
  96. package/types/button-edit/src/composition/use-button.d.ts +19 -0
  97. package/types/button-edit/src/composition/use-clear.d.ts +19 -0
  98. package/types/button-edit/src/composition/use-text-box.d.ts +19 -0
  99. package/types/checkbox/index.d.ts +23 -0
  100. package/types/checkbox/src/checkbox-group.component.d.ts +148 -0
  101. package/types/checkbox/src/checkbox-group.props.d.ts +123 -0
  102. package/types/checkbox/src/composition/types.d.ts +46 -0
  103. package/types/checkbox/src/composition/use-checkbox-group.d.ts +19 -0
  104. package/types/combo-list/index.d.ts +25 -0
  105. package/types/combo-list/src/combo-list.props.d.ts +290 -0
  106. package/types/combo-list/src/components/option.component.d.ts +39 -0
  107. package/types/combo-list/src/components/options.component.d.ts +10 -0
  108. package/types/combo-list/src/composition/index.d.ts +18 -0
  109. package/types/combo-list/src/composition/use-combo-list.d.ts +30 -0
  110. package/types/combo-list/src/composition/use-option.d.ts +19 -0
  111. package/types/combo-list/src/composition/use-options.d.ts +2 -0
  112. package/types/combo-list/src/composition/use-panel.d.ts +8 -0
  113. package/types/combo-list/src/const.d.ts +40 -0
  114. package/types/combo-list/src/types.d.ts +186 -0
  115. package/types/data-grid/index.d.ts +23 -0
  116. package/types/data-grid/src/components/data/data-area.component.d.ts +21 -0
  117. package/types/data-grid/src/components/editors/date-picker.component.d.ts +2 -0
  118. package/types/data-grid/src/components/editors/text-area-editor.component.d.ts +2 -0
  119. package/types/data-grid/src/components/editors/text-editor.component.d.ts +17 -0
  120. package/types/data-grid/src/components/header/data-grid-header.component.d.ts +22 -0
  121. package/types/data-grid/src/components/pagination/data-grid-pagination.component.d.ts +5 -0
  122. package/types/data-grid/src/components/scrollbar/horizontal-scrollbar.component.d.ts +21 -0
  123. package/types/data-grid/src/components/scrollbar/vertical-scrollbar.component.d.ts +21 -0
  124. package/types/data-grid/src/components/sidebar/data-grid-sidebar.component.d.ts +21 -0
  125. package/types/data-grid/src/components/summary/data-grid-summary.component.d.ts +5 -0
  126. package/types/data-grid/src/composition/types.d.ts +175 -0
  127. package/types/data-grid/src/composition/use-column.d.ts +17 -0
  128. package/types/data-grid/src/composition/use-data-view.d.ts +19 -0
  129. package/types/data-grid/src/composition/use-edit.d.ts +18 -0
  130. package/types/data-grid/src/composition/use-fit-column.d.ts +20 -0
  131. package/types/data-grid/src/composition/use-group-column.d.ts +22 -0
  132. package/types/data-grid/src/composition/use-group-data.d.ts +3 -0
  133. package/types/data-grid/src/composition/use-positon-style.d.ts +20 -0
  134. package/types/data-grid/src/composition/use-resize.d.ts +20 -0
  135. package/types/data-grid/src/composition/use-row.d.ts +3 -0
  136. package/types/data-grid/src/composition/use-sidebar.d.ts +3 -0
  137. package/types/data-grid/src/composition/use-virtual-scroll.d.ts +20 -0
  138. package/types/data-grid/src/composition/use-visual-data.d.ts +19 -0
  139. package/types/data-grid/src/data-grid.component.d.ts +278 -0
  140. package/types/data-grid/src/data-grid.props.d.ts +650 -0
  141. package/types/date-picker/index.d.ts +28 -0
  142. package/types/date-picker/src/components/calendar/calendar.component.d.ts +166 -0
  143. package/types/date-picker/src/components/calendar/calendar.props.d.ts +94 -0
  144. package/types/date-picker/src/components/calendar-navbar/calendar-navbar.component.d.ts +138 -0
  145. package/types/date-picker/src/components/calendar-navbar/calendar-navbar.props.d.ts +81 -0
  146. package/types/date-picker/src/components/date-picker-container/date-picker-container.component.d.ts +626 -0
  147. package/types/date-picker/src/components/date-picker-container/date-picker-container.props.d.ts +306 -0
  148. package/types/date-picker/src/components/month/month.component.d.ts +86 -0
  149. package/types/date-picker/src/components/month/month.props.d.ts +57 -0
  150. package/types/date-picker/src/components/year/year.component.d.ts +86 -0
  151. package/types/date-picker/src/components/year/year.props.d.ts +57 -0
  152. package/types/date-picker/src/composition/types.d.ts +102 -0
  153. package/types/date-picker/src/composition/use-calendar.d.ts +2 -0
  154. package/types/date-picker/src/composition/use-compare.d.ts +2 -0
  155. package/types/date-picker/src/composition/use-date.d.ts +2 -0
  156. package/types/date-picker/src/composition/use-disable-date.d.ts +18 -0
  157. package/types/date-picker/src/composition/use-disable-month.d.ts +2 -0
  158. package/types/date-picker/src/composition/use-event.d.ts +45 -0
  159. package/types/date-picker/src/composition/use-mark.d.ts +2 -0
  160. package/types/date-picker/src/composition/use-month.d.ts +2 -0
  161. package/types/date-picker/src/composition/use-number.d.ts +2 -0
  162. package/types/date-picker/src/composition/use-year.d.ts +2 -0
  163. package/types/date-picker/src/date-picker.props.d.ts +168 -0
  164. package/types/date-picker/src/types/calendar.d.ts +30 -0
  165. package/types/date-picker/src/types/common.d.ts +42 -0
  166. package/types/date-picker/src/types/date-model.d.ts +38 -0
  167. package/types/date-picker/src/types/month.d.ts +48 -0
  168. package/types/date-picker/src/types/year.d.ts +24 -0
  169. package/types/index.d.ts +20 -0
  170. package/types/list-view/index.d.ts +23 -0
  171. package/types/list-view/src/components/list-view-checkbox.component.d.ts +32 -0
  172. package/types/list-view/src/components/list-view-checkbox.props.d.ts +31 -0
  173. package/types/list-view/src/list-view.props.d.ts +44 -0
  174. package/types/message-box/index.d.ts +24 -0
  175. package/types/message-box/src/composition/types.d.ts +18 -0
  176. package/types/message-box/src/composition/use-copy.d.ts +18 -0
  177. package/types/message-box/src/message-box.component.d.ts +72 -0
  178. package/types/message-box/src/message-box.props.d.ts +52 -0
  179. package/types/modal/index.d.ts +23 -0
  180. package/types/modal/src/modal.component.d.ts +104 -0
  181. package/types/modal/src/modal.props.d.ts +72 -0
  182. package/types/notify/index.d.ts +26 -0
  183. package/types/notify/src/components/toast.component.d.ts +21 -0
  184. package/types/notify/src/components/toast.props.d.ts +27 -0
  185. package/types/notify/src/notify.props.d.ts +99 -0
  186. package/types/number-range/index.d.ts +23 -0
  187. package/types/number-range/src/composition/types.d.ts +52 -0
  188. package/types/number-range/src/composition/use-data.d.ts +19 -0
  189. package/types/number-range/src/composition/use-util.d.ts +19 -0
  190. package/types/number-range/src/number-range.component.d.ts +247 -0
  191. package/types/number-range/src/number-range.props.d.ts +216 -0
  192. package/types/number-spinner/index.d.ts +23 -0
  193. package/types/number-spinner/src/composition/types.d.ts +52 -0
  194. package/types/number-spinner/src/composition/use-data.d.ts +19 -0
  195. package/types/number-spinner/src/composition/use-util.d.ts +19 -0
  196. package/types/number-spinner/src/number-spinner.component.d.ts +202 -0
  197. package/types/number-spinner/src/number-spinner.props.d.ts +181 -0
  198. package/types/overlay/src/overlay.component.d.ts +20 -0
  199. package/types/overlay/src/overlay.props.d.ts +26 -0
  200. package/types/pagination/index.d.ts +23 -0
  201. package/types/pagination/src/components/buttons/goto-buttons.component.d.ts +19 -0
  202. package/types/pagination/src/components/buttons/next-buttons.component.d.ts +20 -0
  203. package/types/pagination/src/components/buttons/previous-buttons.component.d.ts +20 -0
  204. package/types/pagination/src/components/pages/page-info.component.d.ts +19 -0
  205. package/types/pagination/src/components/pages/page-list.component.d.ts +19 -0
  206. package/types/pagination/src/components/pages/page-number.component.d.ts +20 -0
  207. package/types/pagination/src/composition/types.d.ts +24 -0
  208. package/types/pagination/src/composition/use-pages.d.ts +18 -0
  209. package/types/pagination/src/pagination.components.d.ts +41 -0
  210. package/types/pagination/src/pagination.props.d.ts +36 -0
  211. package/types/popover/index.d.ts +24 -0
  212. package/types/popover/src/popover.component.d.ts +26 -0
  213. package/types/popover/src/popover.directive.d.ts +5 -0
  214. package/types/popover/src/popover.props.d.ts +30 -0
  215. package/types/radio-group/index.d.ts +23 -0
  216. package/types/radio-group/src/composition/change-radio.d.ts +19 -0
  217. package/types/radio-group/src/composition/types.d.ts +42 -0
  218. package/types/radio-group/src/radio-group.component.d.ts +91 -0
  219. package/types/radio-group/src/radio-group.props.d.ts +87 -0
  220. package/types/section/index.d.ts +23 -0
  221. package/types/section/src/section.component.d.ts +187 -0
  222. package/types/section/src/section.props.d.ts +117 -0
  223. package/types/switch/index.d.ts +23 -0
  224. package/types/switch/src/switch.component.d.ts +66 -0
  225. package/types/switch/src/switch.props.d.ts +52 -0
  226. package/types/tabs/index.d.ts +25 -0
  227. package/types/tabs/src/components/tab-page.component.d.ts +101 -0
  228. package/types/tabs/src/components/tab-page.props.d.ts +63 -0
  229. package/types/tabs/src/composition/types.d.ts +35 -0
  230. package/types/tabs/src/composition/use-tabs.d.ts +18 -0
  231. package/types/tabs/src/tabs.component.d.ts +149 -0
  232. package/types/tabs/src/tabs.props.d.ts +86 -0
  233. package/types/text/index.d.ts +23 -0
  234. package/types/text/src/text.component.d.ts +14 -0
  235. package/types/text/src/text.props.d.ts +26 -0
  236. package/types/tooltip/index.d.ts +24 -0
  237. package/types/tooltip/src/composition/types.d.ts +45 -0
  238. package/types/tooltip/src/composition/use-adjust-placement.d.ts +20 -0
  239. package/types/tooltip/src/composition/use-adjust-position.d.ts +6 -0
  240. package/types/tooltip/src/composition/use-calculate-position.d.ts +21 -0
  241. package/types/tooltip/src/composition/use-relative.d.ts +19 -0
  242. package/types/tooltip/src/composition/use-tooltip-position.d.ts +22 -0
  243. package/types/tooltip/src/tooltip.component.d.ts +56 -0
  244. package/types/tooltip/src/tooltip.props.d.ts +45 -0
  245. package/src/index.umd.js +0 -1
  246. /package/{src/style.css → style.css} +0 -0
@@ -0,0 +1,1535 @@
1
+ import { ref as D, watch as ce, computed as R, createVNode as S, resolveComponent as ye, Fragment as we, createTextVNode as be, defineComponent as Ce, onMounted as Se, nextTick as xe, onUnmounted as We } from "vue";
2
+ const qe = {
3
+ enable: { type: Boolean, default: !0 },
4
+ index: { type: Number, default: 1 },
5
+ mode: { type: String, default: "server" },
6
+ showGoto: { type: Boolean, default: !1 },
7
+ showIndex: { type: Boolean, default: !0 },
8
+ showLimits: { type: Boolean, default: !1 },
9
+ showPageInfo: { type: Boolean, default: !0 },
10
+ size: { type: Number, default: 20 },
11
+ sizeLimits: { type: Array, default: [10, 20, 30, 50, 100] },
12
+ total: { type: Number, default: 0 }
13
+ }, Ue = {
14
+ enable: { type: Boolean, default: !1 },
15
+ fields: { type: Array, default: [] },
16
+ mode: { type: String, default: "client" },
17
+ multiSort: { type: Boolean, default: !1 }
18
+ }, Je = {
19
+ customGroupRow: { type: Function, default: () => {
20
+ } },
21
+ customGroupRowStyle: { type: Function, default: () => {
22
+ } },
23
+ customSummaryStyle: { type: Function, default: () => {
24
+ } },
25
+ enable: { type: Boolean, default: !1 },
26
+ groupColSpan: { type: Number, default: 1 },
27
+ groupFields: { type: Array, default: [] },
28
+ showGroupedColumn: { type: Boolean, default: !0 },
29
+ showGroupPanel: { type: Boolean, default: !1 },
30
+ showSummary: { type: Boolean, default: !1 },
31
+ summaryPosition: { type: String, default: "separate" }
32
+ }, Qe = {
33
+ enable: { type: Boolean, default: !1 },
34
+ filterStyle: { type: String, default: "filter-column" },
35
+ mode: { type: String, default: "server" },
36
+ showSummary: { type: Boolean, default: !0 }
37
+ }, Ze = {
38
+ wrapHeadings: { type: Boolean, default: !1 }
39
+ }, Ie = {
40
+ enable: { type: Boolean, default: !1 },
41
+ heading: { type: String, default: "\u5E8F\u53F7" },
42
+ width: { type: Number, default: 36 }
43
+ }, et = {
44
+ customRowStyle: { type: Function, default: () => {
45
+ } },
46
+ disable: { type: Function, default: () => {
47
+ } },
48
+ height: { type: Number, default: 28 },
49
+ showHovering: { type: Boolean, default: !0 },
50
+ wrapContent: { type: Boolean, default: !1 }
51
+ }, tt = {
52
+ enable: { type: Boolean, default: !1 },
53
+ customSummaryStyle: { type: Function, default: () => {
54
+ } },
55
+ groupFields: { type: Array, default: [] },
56
+ mode: { type: String, default: "client" },
57
+ position: { type: String, default: "bottom" }
58
+ }, at = {
59
+ fitColumns: { type: Boolean, default: !1 },
60
+ fitMode: { type: String, default: "average" },
61
+ groups: { type: Array, defaut: [] },
62
+ reorderColumn: { type: Boolean, default: !1 },
63
+ resizeColumn: { type: Boolean, default: !0 },
64
+ resizeColumnOnDoubleClick: { type: Boolean, default: !0 }
65
+ }, lt = {
66
+ checkOnSelect: { type: Boolean, default: !1 },
67
+ clearSelectionOnEmpty: { type: Boolean, default: !0 },
68
+ customSelectionItem: { type: Function, default: () => {
69
+ } },
70
+ enabelSelectRow: { type: Boolean, default: !0 },
71
+ keepSelectingOnClick: { type: Boolean, default: !0 },
72
+ keepSelectingOnPaging: { type: Boolean, default: !0 },
73
+ multiSelect: { type: Boolean, default: !1 },
74
+ focusSelection: { type: String, default: "current" },
75
+ selectOnCheck: { type: Boolean, default: !1 },
76
+ showCheckbox: { type: Boolean, default: !1 },
77
+ showSelectAll: { type: Boolean, default: !1 },
78
+ showSelection: { type: Boolean, default: !1 }
79
+ }, nt = {
80
+ selectOnEditing: { type: Boolean, default: !1 },
81
+ editMode: { type: String, default: "cell" }
82
+ }, Oe = {
83
+ columns: { type: Array, default: [] },
84
+ columnOption: { type: Object },
85
+ data: { type: Array, default: [] },
86
+ disable: { type: Boolean, default: !1 },
87
+ editable: { type: Boolean, default: !1 },
88
+ editOption: { type: Object },
89
+ filter: { type: Object },
90
+ fit: { type: Boolean, default: !1 },
91
+ group: { type: Object },
92
+ header: { type: Object },
93
+ height: { type: Number, default: 300 },
94
+ id: { type: String, default: "" },
95
+ idField: { type: String, default: "id", require: !0 },
96
+ mergeCell: { type: Boolean, default: !1 },
97
+ pagination: { type: Object },
98
+ rowNumber: { type: Object },
99
+ rowOption: { type: Object },
100
+ selection: { type: Object },
101
+ showBorder: { type: Boolean, default: !1 },
102
+ showFooter: { type: Boolean, default: !1 },
103
+ showHeader: { type: Boolean, default: !0 },
104
+ showOptions: { type: Boolean, default: !1 },
105
+ showScrollBar: { type: String, default: "auto" },
106
+ showStripe: { type: Boolean, default: !0 },
107
+ sort: { type: Object },
108
+ summary: { type: Object },
109
+ virtualized: { type: Boolean, default: !1 },
110
+ width: { type: Number, default: 800 }
111
+ };
112
+ var q = /* @__PURE__ */ ((t) => (t[t.readonly = 0] = "readonly", t[t.editable = 1] = "editable", t[t.editing = 2] = "editing", t))(q || {}), ee = /* @__PURE__ */ ((t) => (t[t.data = 0] = "data", t[t.group = 1] = "group", t[t.summary = 2] = "summary", t))(ee || {});
113
+ function He(t, g, d, m, O, w, B) {
114
+ var G, f;
115
+ const j = D(t.mergeCell), h = D(t.rowOption), M = ((G = h.value) == null ? void 0 : G.height) || 28, c = ((f = h.value) == null ? void 0 : f.wrapContent) || !1, r = D(O - 1 + w), b = D(0);
116
+ function n(_, H, x) {
117
+ const F = H && H.data[x];
118
+ if (F && F.data === _.data) {
119
+ const p = F && F.spannedBy || F;
120
+ p.rowSpan++, p.spanned = p.spanned || [], p.spanned.push(_), _.colSpan = 0, _.rowSpan = 0, _.spannedBy = p;
121
+ }
122
+ }
123
+ function u(_, H, x, F, W, p) {
124
+ const e = _.__fv_data_index__, l = {
125
+ index: F,
126
+ dataIndex: e,
127
+ top: W,
128
+ layer: -1,
129
+ type: ee.data,
130
+ pre: H,
131
+ data: {},
132
+ setRef: (i) => {
133
+ l.ref = i;
134
+ }
135
+ };
136
+ if (!c) {
137
+ l.height = M, _.__fv_data_height__ = l.height;
138
+ const i = l.pre;
139
+ if (i) {
140
+ const v = (i.__fv_data_position__ || 0) + (i.__fv_data_height__ || 0);
141
+ l.top = v, _.__fv_data_position__ = v;
142
+ }
143
+ }
144
+ return p.forEach((i, v) => {
145
+ const s = {
146
+ colSpan: 1,
147
+ rowSpan: 1,
148
+ index: v,
149
+ field: i.field,
150
+ mode: i.readonly ? q.readonly : q.editable,
151
+ data: _[i.field],
152
+ parent: l,
153
+ getEditor($) {
154
+ return B.getEditor($, i);
155
+ },
156
+ setRef: ($) => {
157
+ if (c && $) {
158
+ const P = s.parent;
159
+ s.cellHeight !== $.offsetHeight && (s.cellHeight = $.offsetHeight), s.cellHeight && s.cellHeight > (P.height || 0) && (P.height = s.cellHeight, _.__fv_data_height__ = P.height);
160
+ const C = P.pre;
161
+ if (C) {
162
+ const z = (C.__fv_data_position__ || 0) + (C.__fv_data_height__ || 0);
163
+ P.top = z, _.__fv_data_position__ = z;
164
+ }
165
+ }
166
+ },
167
+ update: ($) => {
168
+ $ !== void 0 && (_[i.field] = $, s.data = _[i.field]);
169
+ }
170
+ };
171
+ j.value && n(s, x, i.field), l.data[i.field] = s;
172
+ }), l;
173
+ }
174
+ function o(_, H, x, F) {
175
+ const { dataView: W } = m, p = [], e = F ? Date.now().toString() : "";
176
+ for (let l = _, i = 0; l < H; l++, i++) {
177
+ const v = W.value[l], s = W.value[l - 1] || x, $ = p[i - 1], P = s ? (s.__fv_data_position__ || 0) + (s.__fv_data_height__ || 0) : 0, C = v.__fv_data_grid_group_row__ ? d.renderGroupRow(v, s, l, P, g.value) : v.__fv_data_grid_group_summary__ ? d.renderSummaryRow(v, s, l, P, g.value) : u(v, s, $, l, P, g.value);
178
+ C.refreshKey = e, p.push(C);
179
+ }
180
+ return b.value = p[0].index, r.value = p[p.length - 1].index, p;
181
+ }
182
+ function a(_, H, x) {
183
+ const F = H.groupField || "", { groupValue: W } = H;
184
+ m[_](F, W);
185
+ const { dataView: p } = m, e = x[0].index, l = Math.min(e + O + w + 1, p.value.length);
186
+ return o(e, l);
187
+ }
188
+ return { getVisualData: o, maxVisibleRowIndex: r, minVisibleRowIndex: b, toggleGroupRow: a };
189
+ }
190
+ function $e(t, g) {
191
+ var b;
192
+ const d = ((b = t.rowOption) == null ? void 0 : b.height) || 28, m = D(g.value.primaryColumnsWidth);
193
+ function O(n) {
194
+ const u = {};
195
+ return n.reduce(
196
+ (o, a, G) => {
197
+ const f = G < n.length - 1 ? n[G + 1] : null;
198
+ return G === 0 && (o[a.field] = { left: 0, width: 0 }), o[a.field].width = a.actualWidth || 0, f && (o[f.field] = {
199
+ left: o[a.field].left + (a.actualWidth || 0),
200
+ width: 0
201
+ }), o;
202
+ },
203
+ u
204
+ ), u;
205
+ }
206
+ function w(n, u, o) {
207
+ const a = d * (o + 1), f = u[n.field].left - a + u[n.field].width, _ = n.parent.height ? `${n.parent.height}px` : "";
208
+ return {
209
+ left: `${a}px`,
210
+ width: `${f}px`,
211
+ height: `${_}`
212
+ };
213
+ }
214
+ function B(n, u, o) {
215
+ return {
216
+ right: "0px",
217
+ height: `${n.parent.height ? `${n.parent.height}px` : ""}`
218
+ };
219
+ }
220
+ function j(n, u) {
221
+ const o = n.parent.height ? `${n.parent.height}px` : "";
222
+ return {
223
+ left: `${u[n.field].left}px`,
224
+ width: `${u[n.field].width}px`,
225
+ height: `${o}`
226
+ };
227
+ }
228
+ function h(n, u, o) {
229
+ const G = (u.spanned || []).reduce((_, H) => _ + (H.parent.height || 0), 0) + (n.height || 0);
230
+ return {
231
+ top: `${n.top}px`,
232
+ left: `${o[u.field].left}px`,
233
+ width: `${o[u.field].width}px`,
234
+ height: `${G}px`,
235
+ padding: `calc(${G / 2}px - 1rem) 0`
236
+ };
237
+ }
238
+ function M(n, u) {
239
+ return `${n.type}_r_${n.index}_c_${u}_${n.refreshKey || ""}`;
240
+ }
241
+ function c(n) {
242
+ return `${n.type}_r_${n.index}_${n.refreshKey || ""}`;
243
+ }
244
+ function r(n) {
245
+ const u = n.height ? `${n.height}px` : "";
246
+ return {
247
+ top: `${n.top}px`,
248
+ width: `${m.value}px`,
249
+ height: `${u}`
250
+ };
251
+ }
252
+ return ce(g, () => {
253
+ m.value = g.value.primaryColumnsWidth;
254
+ }), {
255
+ calculateCellPositionInRow: O,
256
+ cellKey: M,
257
+ cellPosition: j,
258
+ groupCellPosition: w,
259
+ rowKey: c,
260
+ rowPosition: r,
261
+ rowSpanCellPosition: h,
262
+ summaryCellPosition: B
263
+ };
264
+ }
265
+ function De(t, g, d, m, O, w, B, j) {
266
+ var K;
267
+ const { dataView: h } = g, { getVisualData: M, maxVisibleRowIndex: c, minVisibleRowIndex: r } = O, b = D(m.value.primaryColumnsWidth), n = D(m.value.leftColumnsWidth), u = D(m.value.rightColumnsWidth), o = ((K = t.rowOption) == null ? void 0 : K.height) || 28, a = D(0), G = D(0);
268
+ let f = 0, _ = w - 1;
269
+ const H = D(0), x = D(0), F = D(0), W = o * w, p = R(() => h.value.length * o), e = R(() => h.value.length > w + B ? Math.floor((w + B) / h.value.length * x.value) : x.value), l = R(() => Math.floor(F.value / b.value * H.value)), i = 0, v = 0, s = R(() => H.value - (n.value + b.value + u.value + j.value));
270
+ function $() {
271
+ const E = c.value < h.value.length ? h.value[c.value] : h.value[h.value.length - 1];
272
+ return (E.__fv_data_position__ || 0) + (E.__fv_data_height__ || 0) + Math.max(h.value.length - 1 - c.value, 0) * o;
273
+ }
274
+ function P(E) {
275
+ const V = h.value.find((X) => X.__fv_data_position__ > E);
276
+ return V ? V.__fv_index__ - 1 : 0;
277
+ }
278
+ function C(E) {
279
+ const V = Math.max(f - B, 0), X = Math.min(_ + B + 1, h.value.length), U = h.value[V - 1], de = M(V, X, U, E);
280
+ de.length && (d.value = [...de]);
281
+ }
282
+ function z(E) {
283
+ let V = a.value + E;
284
+ V > i && (V = i);
285
+ const X = V > i, U = $(), de = U > x.value;
286
+ de && V < x.value - U && (V = x.value - U), (!de || X) && (V = i), a.value !== V && (a.value = V, f = P(Math.abs(a.value)), _ = f + w, (f < r.value || _ > c.value - B / 2) && C());
287
+ }
288
+ function N(E) {
289
+ let V = G.value + E;
290
+ V > v && (V = v), V < s.value && (V = s.value), G.value !== V && (G.value = V);
291
+ }
292
+ ce(F, () => {
293
+ N(0);
294
+ }), ce(m, () => {
295
+ b.value = m.value.primaryColumnsWidth, n.value = m.value.leftColumnsWidth, u.value = m.value.rightColumnsWidth;
296
+ });
297
+ function L(E) {
298
+ E.preventDefault(), E.stopPropagation();
299
+ const V = (E.wheelDeltaY || E.deltaY) / 10, X = (E.wheelDeltaX || E.deltaX) / 10;
300
+ z(V), N(X);
301
+ }
302
+ const Y = R(() => ({
303
+ height: `${h.value.length * o}px`,
304
+ width: `${n.value}px`,
305
+ transform: `translateY(${a.value}px)`
306
+ })), J = R(() => ({
307
+ transform: `translateY(${a.value}px)`
308
+ })), Q = R(() => ({
309
+ height: `${h.value.length * o}px`,
310
+ width: `${b.value}px`,
311
+ transform: `translate(${G.value}px, ${a.value}px)`
312
+ })), te = R(() => ({
313
+ transform: `translate(${G.value}px, ${a.value}px)`
314
+ })), oe = R(() => ({
315
+ height: `${h.value.length * o}px`,
316
+ width: `${u.value}px`,
317
+ transform: `translateY(${a.value}px)`
318
+ })), ae = R(() => ({
319
+ transform: `translateY(${a.value}px)`
320
+ })), le = R(() => ({
321
+ height: `${h.value.length * o}px`,
322
+ width: `${j.value}px`,
323
+ transform: `translateY(${a.value}px)`
324
+ })), ne = R(() => ({
325
+ width: `${n.value}px`
326
+ })), fe = R(() => ({
327
+ transform: `translateX(${G.value}px)`
328
+ })), he = R(() => ({
329
+ width: `${u.value}px`
330
+ })), ve = R(() => {
331
+ const E = $();
332
+ return a.value / (x.value - E) * (x.value - e.value);
333
+ }), pe = R(() => ({
334
+ height: `${e.value}px`,
335
+ top: `${ve.value}px`
336
+ })), se = R(() => G.value / s.value * (H.value - l.value)), ue = R(() => ({
337
+ width: `${l.value}px`,
338
+ left: `${se.value}px`
339
+ })), ie = D(!1), Z = D(-1), I = D(-1);
340
+ let re;
341
+ function y(E) {
342
+ if (ie.value && I.value !== -1) {
343
+ const V = I.value - E.pageX, X = H.value - l.value;
344
+ if (Math.abs(V) <= X) {
345
+ const U = V / (F.value - l.value) * (b.value - F.value);
346
+ N(U), I.value = E.pageX;
347
+ }
348
+ }
349
+ }
350
+ function A(E) {
351
+ if (ie.value && Z.value !== -1) {
352
+ const V = Z.value - E.pageY, X = W - e.value;
353
+ if (Math.abs(V) <= X) {
354
+ const U = V / (W - e.value) * (p.value - W);
355
+ z(U), Z.value = E.pageY;
356
+ }
357
+ }
358
+ }
359
+ function k(E) {
360
+ ie.value = !1, Z.value = -1, I.value = -1, document.removeEventListener("mouseup", k), re && (re.removeEventListener("mousemove", y), re.removeEventListener("mousemove", A)), document.body.style.userSelect = "";
361
+ }
362
+ function T(E, V, X) {
363
+ ie.value = !0;
364
+ const U = X === "horizontal" ? y : A;
365
+ X === "vertical" && (Z.value = E.pageY), X === "horizontal" && (I.value = E.pageX), V.value && (V.value.addEventListener("mousemove", U), re = V.value, document.addEventListener("mouseup", k), document.body.style.userSelect = "none");
366
+ }
367
+ return {
368
+ onMouseDownScrollThumb: T,
369
+ onWheel: L,
370
+ dataGridWidth: H,
371
+ gridDataStyle: Q,
372
+ gridHeaderColumnsStyle: fe,
373
+ gridMergedDataStyle: te,
374
+ gridSideStyle: le,
375
+ viewPortWidth: F,
376
+ viewPortHeight: x,
377
+ horizontalScrollThumbStyle: ue,
378
+ leftFixedGridDataStyle: Y,
379
+ leftFixedGridHeaderColumnsStyle: ne,
380
+ leftFixedGridMergedDataStyle: J,
381
+ reCalculateVisualDataRows: C,
382
+ rightFixedGridDataStyle: oe,
383
+ rightFixedGridHeaderColumnsStyle: he,
384
+ rightFixedGridMergedDataStyle: ae,
385
+ verticalScrollThumbStyle: pe
386
+ };
387
+ }
388
+ function Ge(t) {
389
+ const g = D(t.idField), d = D(-1), m = D("");
390
+ function O(h) {
391
+ return {
392
+ "fv-grid-row": h.type === ee.data,
393
+ "fv-grid-group-row": h.type === ee.group,
394
+ "fv-grid-summary-row": h.type === ee.summary,
395
+ "fv-grid-row-hover": h.index === d.value,
396
+ "fv-grid-row-selected": h.data[g.value].data === m.value,
397
+ "fv-grid-row-odd": h.dataIndex % 2 > 0,
398
+ "fv-grid-row-even": h.dataIndex % 2 === 0
399
+ };
400
+ }
401
+ function w(h, M) {
402
+ m.value = M.data[g.value].data;
403
+ }
404
+ function B(h, M) {
405
+ d.value = M.index;
406
+ }
407
+ function j(h) {
408
+ return {
409
+ "fv-grid-sidebar-row": !0,
410
+ "fv-grid-sidebar-row-hover": h.index === d.value,
411
+ "fv-grid-sidebar-row-selected": h.data[g.value].data === m.value,
412
+ "fv-grid-sidebar-row-odd": h.dataIndex % 2 > 0,
413
+ "fv-grid-sidebar-row-even": h.dataIndex % 2 === 0
414
+ };
415
+ }
416
+ return { gridRowClass: O, onClickRow: w, onMouseoverRow: B, sidebarRowClass: j };
417
+ }
418
+ function je(t) {
419
+ const d = D({
420
+ defaultColumnWidth: 120,
421
+ headerDepth: 1,
422
+ leftColumns: [],
423
+ leftColumnsWidth: 0,
424
+ leftHeaderColumns: [],
425
+ primaryColumns: [],
426
+ primaryColumnsWidth: 0,
427
+ primaryHeaderColumns: [],
428
+ rightColumns: [],
429
+ rightColumnsWidth: 0,
430
+ rightHeaderColumns: [],
431
+ summaryColumns: []
432
+ }), m = D(t.summary), O = R(() => {
433
+ const h = m.value;
434
+ return (h == null ? void 0 : h.groupFields) || [];
435
+ });
436
+ function w(h) {
437
+ const M = /* @__PURE__ */ new Map();
438
+ return O.value && O.value.reduce((c, r) => (c.set(r, !0), c), M), h.reduce((c, r) => (r.fixed === "left" ? (d.value.leftColumns.push(r), d.value.leftColumnsWidth += r.actualWidth || 120) : r.fixed === "right" ? (d.value.rightColumns.push(r), d.value.rightColumnsWidth += r.actualWidth || 120) : (d.value.primaryColumns.push(r), d.value.primaryColumnsWidth += r.actualWidth || 120), M.has(r.field) && d.value.summaryColumns.push(r), c), d), d;
439
+ }
440
+ w(t.columns);
441
+ const B = R(() => d.value.leftColumns.length > 0), j = R(() => d.value.rightColumns.length > 0);
442
+ return { columnContext: d, hasLeftFixedColumn: B, hasRightFixedColumn: j };
443
+ }
444
+ function Fe(t, g) {
445
+ var M;
446
+ const d = D((M = t.columnOption) == null ? void 0 : M.groups);
447
+ function m(c, r, b, n, u) {
448
+ const o = {
449
+ actualWidth: 0,
450
+ children: [],
451
+ depth: 1,
452
+ field: c.field,
453
+ layer: 1,
454
+ left: 0,
455
+ parent: b,
456
+ resizable: !1,
457
+ title: c.title || ""
458
+ }, a = n || o;
459
+ if (c.group) {
460
+ let G = 1;
461
+ c.group.reduce((f, _) => {
462
+ if (typeof _ == "string") {
463
+ const H = r.get(_);
464
+ H && (u.fieldToRootMap.set(_, a), f.actualWidth += H.actualWidth, f.children.push(H));
465
+ } else {
466
+ const H = m(_, r, f, a, u);
467
+ G = Math.max(G, H.depth), f.actualWidth += H.actualWidth, f.children.push(H);
468
+ }
469
+ return f;
470
+ }, o), o.depth += G;
471
+ }
472
+ return g.value.headerDepth = Math.max(g.value.headerDepth, o.depth), o;
473
+ }
474
+ function O(c) {
475
+ const r = {
476
+ groupedCells: /* @__PURE__ */ new Map(),
477
+ fieldToRootMap: /* @__PURE__ */ new Map()
478
+ };
479
+ return d.value && d.value.reduce((b, n) => {
480
+ const u = m(n, c, null, null, r);
481
+ return b.groupedCells.set(n.field, u), b;
482
+ }, r), r;
483
+ }
484
+ function w(c) {
485
+ if (!c || c.length === 0)
486
+ return 0;
487
+ const r = c[0];
488
+ return r.children && r.children.length > 0 && (r.left = w(r.children)), r.left;
489
+ }
490
+ function B(c, r) {
491
+ const b = g.value.headerDepth;
492
+ c.forEach((n) => {
493
+ n.layer = r ? r.layer + 1 : 1;
494
+ const u = n.children && n.children.length === 0;
495
+ n.depth = u ? b - (n.layer - 1) : 1, n.left = u ? n.left : w(n.children), n.children && B(n.children, n);
496
+ });
497
+ }
498
+ function j(c, r) {
499
+ const b = /* @__PURE__ */ new Map();
500
+ return c.forEach((n) => {
501
+ const u = r.fieldToRootMap.get(n.field), o = u != null;
502
+ o && !b.has(u.field) && b.set(u.field, u), o || b.set(n.field, n);
503
+ }), B(Array.from(b.values())), b;
504
+ }
505
+ function h(c) {
506
+ let r = /* @__PURE__ */ new Map(), b = 0;
507
+ if (c.reduce((n, u) => (n.set(u.field, {
508
+ actualWidth: u.actualWidth || 0,
509
+ children: [],
510
+ depth: 1,
511
+ layer: 1,
512
+ left: b,
513
+ field: u.field,
514
+ parent: null,
515
+ resizable: u.resizable || !1,
516
+ title: u.title
517
+ }), b += u.actualWidth || 0, n), r), d.value) {
518
+ const n = O(r);
519
+ r = j(r, n);
520
+ }
521
+ return r;
522
+ }
523
+ return { getGridHeaderCells: h };
524
+ }
525
+ function Be(t, g) {
526
+ var H, x, F, W, p;
527
+ const { getGridHeaderCells: d } = Fe(t, g), m = 120, O = 32, w = D(((H = t.rowNumber) == null ? void 0 : H.enable) || !1), B = D(((x = t.selection) == null ? void 0 : x.multiSelect) || !1), j = D(
528
+ 0 + (w.value && ((F = t.rowNumber) == null ? void 0 : F.width) || 0) + (B.value ? O : 0)
529
+ ), h = D(((W = t.columnOption) == null ? void 0 : W.fitColumns) || !1), M = D(h.value && ((p = t.columnOption) == null ? void 0 : p.fitMode) || "none");
530
+ function c(e, l, i) {
531
+ const v = parseInt(e.width, 10) / 100;
532
+ return i * v;
533
+ }
534
+ function r(e, l, i) {
535
+ return typeof e.width == "string" ? c(e, l, i) : e.width || m;
536
+ }
537
+ function b(e, l) {
538
+ const i = [], v = [];
539
+ let s = 0;
540
+ e.value.primaryColumns.forEach((C) => {
541
+ typeof C.width == "string" ? v.push(C) : (C.width = C.width || m, s += C.width, i.push(C));
542
+ });
543
+ const $ = l * (i.length / e.value.primaryColumns.length);
544
+ i.forEach((C) => {
545
+ const z = $ * (C.width / s);
546
+ C.actualWidth = z, e.value.primaryColumnsWidth += C.actualWidth;
547
+ });
548
+ const P = l - $;
549
+ v.forEach((C) => {
550
+ const z = c(C, e.value, P);
551
+ C.actualWidth = z, e.value.primaryColumnsWidth += C.actualWidth;
552
+ });
553
+ }
554
+ function n(e, l) {
555
+ const i = l / (e.value.primaryColumns.length || 1);
556
+ e.value.primaryColumns.forEach((v) => {
557
+ v.actualWidth = i, e.value.primaryColumnsWidth += v.actualWidth;
558
+ });
559
+ }
560
+ function u(e, l) {
561
+ const i = [], v = [], s = /* @__PURE__ */ new WeakMap();
562
+ let $ = 0, P = 0;
563
+ if (e.value.primaryColumns.forEach((z) => {
564
+ if (typeof z.width == "string") {
565
+ const N = c(z, e.value, l);
566
+ s.set(z, N), $ += N, v.push(z);
567
+ } else
568
+ z.width = z.width || m, P += z.width, i.push(z);
569
+ }), l - $ > P) {
570
+ const z = l - $;
571
+ v.forEach((N) => {
572
+ N.actualWidth = s.get(N) || m, e.value.primaryColumnsWidth += N.actualWidth;
573
+ }), i.forEach((N) => {
574
+ N.actualWidth = z * (N.width / P), e.value.primaryColumnsWidth += N.actualWidth;
575
+ });
576
+ } else
577
+ b(e, l);
578
+ }
579
+ function o(e, l) {
580
+ e.value.primaryColumns.forEach((i) => {
581
+ i.actualWidth = r(i, e.value, l), e.value.primaryColumnsWidth += i.actualWidth;
582
+ });
583
+ }
584
+ const a = {
585
+ average: n,
586
+ expand: u,
587
+ none: o,
588
+ percentage: b
589
+ };
590
+ function G(e) {
591
+ e.value.leftHeaderColumns = Array.from(d(e.value.leftColumns).values()), e.value.primaryHeaderColumns = Array.from(d(e.value.primaryColumns).values()), e.value.rightHeaderColumns = Array.from(d(e.value.rightColumns).values());
592
+ }
593
+ function f(e) {
594
+ e.value.leftColumnsWidth = 0, e.value.primaryColumnsWidth = 0, e.value.rightColumnsWidth = 0, e.value.leftColumns.forEach((l) => {
595
+ e.value.leftColumnsWidth += l.actualWidth || 0;
596
+ }), e.value.primaryColumns.forEach((l) => {
597
+ e.value.primaryColumnsWidth += l.actualWidth || 0;
598
+ }), e.value.rightColumns.forEach((l) => {
599
+ e.value.rightColumnsWidth += l.actualWidth || 0;
600
+ }), e.value = Object.assign({}, e.value);
601
+ }
602
+ function _(e, l, i) {
603
+ if (l) {
604
+ e.value.leftColumnsWidth = 0, e.value.primaryColumnsWidth = 0, e.value.rightColumnsWidth = 0;
605
+ const v = l.clientWidth - j.value;
606
+ e.value.leftColumns.forEach((P) => {
607
+ P.actualWidth = r(P, e.value, v), e.value.leftColumnsWidth += P.actualWidth;
608
+ }), e.value.rightColumns.forEach((P) => {
609
+ P.actualWidth = r(P, e.value, v), e.value.rightColumnsWidth += P.actualWidth;
610
+ });
611
+ const s = v - e.value.leftColumnsWidth - e.value.rightColumnsWidth, $ = a[M.value];
612
+ $ && $(e, s), i.value = s, G(e), e.value = Object.assign({}, e.value);
613
+ }
614
+ }
615
+ return { calculateColumnHeaders: G, calculateColumnsSize: _, calculateColumnsWidth: f };
616
+ }
617
+ function Me(t) {
618
+ var M, c, r;
619
+ const d = D(((M = t.rowNumber) == null ? void 0 : M.enable) || !1), m = D(((c = t.selection) == null ? void 0 : c.showCheckbox) || !1), O = D(d.value && ((r = t.rowNumber) == null ? void 0 : r.width) || 0), w = D(m.value ? 50 : 0), B = R(() => w.value + O.value);
620
+ function j(b) {
621
+ return {
622
+ top: `${b.top}px`,
623
+ width: `${B.value}px`,
624
+ height: `${b.height || ""}px`
625
+ };
626
+ }
627
+ const h = R(() => ({
628
+ width: `${B.value}px`
629
+ }));
630
+ return { showRowCheckbox: m, showRowNumer: d, sidebarCellPosition: j, sidebarCornerCellStyle: h, sidebarWidth: B };
631
+ }
632
+ function me(t) {
633
+ const g = D(t.idField), d = D(t.summary), m = D(t.group), O = R(() => {
634
+ const a = d.value;
635
+ return (a == null ? void 0 : a.groupFields) || [];
636
+ }), w = R(() => {
637
+ const a = d.value;
638
+ return a && a.enable && a.groupFields && a.groupFields.length > 0;
639
+ }), B = R(() => {
640
+ const a = m.value;
641
+ return a && a.showSummary;
642
+ }), j = /* @__PURE__ */ new Map();
643
+ let h = [], M = "";
644
+ function c(a, G, f, _) {
645
+ const H = _[f];
646
+ H && (G.reduce((x, F, W) => {
647
+ const p = F[H];
648
+ let e = x.get(p);
649
+ if (!e) {
650
+ const l = O.value.reduce((i, v) => (i.set(v, 0), i), /* @__PURE__ */ new Map());
651
+ e = { field: H, value: p, layer: f, details: [], groupSummaries: l }, x.set(p, e);
652
+ }
653
+ return O.value && O.value.forEach((l) => {
654
+ if (e) {
655
+ const i = e.groupSummaries.get(l) || 0;
656
+ e.groupSummaries.set(l, i + F[l]);
657
+ }
658
+ }), e.details.push(F), x;
659
+ }, a), f < _.length - 1 && a.forEach((x, F) => {
660
+ x.nestGroup = /* @__PURE__ */ new Map(), c(x.nestGroup, x.details, f + 1, _), x.details = [];
661
+ }));
662
+ }
663
+ function r(a) {
664
+ const G = [];
665
+ return a.forEach((f) => {
666
+ const _ = {
667
+ __fv_data_grid_group_collapse__: !1,
668
+ __fv_data_grid_group_field__: f.field,
669
+ __fv_data_grid_group_layer__: f.layer,
670
+ __fv_data_grid_group_row__: !0,
671
+ __fv_data_grid_group_value__: f.value
672
+ };
673
+ let H = 0;
674
+ if (G.push(_), f.nestGroup) {
675
+ const x = r(f.nestGroup);
676
+ G.push(...x), H += x.length;
677
+ }
678
+ if (f.details && f.details.length && (G.push(...f.details), H += f.details.length), B.value) {
679
+ const x = {
680
+ __fv_data_grid_group_field__: f.field,
681
+ __fv_data_grid_group_layer__: f.layer,
682
+ __fv_data_grid_group_summary__: !0
683
+ };
684
+ x[g.value] = `summary_of_${f.field}_${f.value}`, x[f.field] = Array.from(f.groupSummaries.entries()).reduce(
685
+ (F, [W, p]) => `${F} ${W} total:${p} `,
686
+ ""
687
+ ), G.push(x);
688
+ }
689
+ f.groupSummaries && f.groupSummaries.size && f.groupSummaries.forEach((x, F) => {
690
+ _[F] = x;
691
+ }), _[g.value] = `group_of_${f.field}_${f.value}`, _[f.field] = `${f.field}:${f.value} (${H})`;
692
+ }), G.forEach((f, _) => {
693
+ f.__fv_data_index__ = _;
694
+ }), G;
695
+ }
696
+ function b(a, G) {
697
+ if (!a || a.length === 0)
698
+ return G;
699
+ const f = a.join(",");
700
+ return f !== M && (j.clear(), h = [], M = f, c(j, G, 0, a), h = r(j)), h;
701
+ }
702
+ function n(a, G, f, _, H) {
703
+ const x = a.__fv_data_grid_group_collapse__, F = a.__fv_data_grid_group_field__, W = a.__fv_data_grid_group_value__, p = a.__fv_data_index__, e = a.__fv_data_grid_group_layer__, l = {
704
+ collapse: x,
705
+ data: {},
706
+ dataIndex: p,
707
+ groupField: F,
708
+ groupValue: W,
709
+ layer: e,
710
+ index: f,
711
+ pre: G,
712
+ top: _,
713
+ type: ee.group,
714
+ setRef: (s) => {
715
+ l.ref = s;
716
+ }
717
+ }, i = {
718
+ colSpan: 0,
719
+ rowSpan: 0,
720
+ index: -1,
721
+ field: g.value,
722
+ data: a[g.value],
723
+ parent: l,
724
+ mode: q.readonly,
725
+ getEditor: (s) => s.data,
726
+ setRef: (s) => {
727
+ if (s) {
728
+ const $ = i.parent;
729
+ i.cellHeight !== s.offsetHeight && (i.cellHeight = s.offsetHeight), i.cellHeight && i.cellHeight > ($.height || 0) && ($.height = i.cellHeight, a.__fv_data_height__ = $.height);
730
+ const P = $.pre;
731
+ if (P) {
732
+ const C = (P.__fv_data_position__ || 0) + (P.__fv_data_height__ || 0);
733
+ $.top = C, a.__fv_data_position__ = C;
734
+ }
735
+ }
736
+ },
737
+ update: () => {
738
+ }
739
+ };
740
+ l.data[g.value] = i;
741
+ const v = {
742
+ colSpan: H.length,
743
+ rowSpan: 1,
744
+ index: 1,
745
+ field: F,
746
+ data: a[F],
747
+ parent: l,
748
+ mode: q.readonly,
749
+ getEditor: (s) => s.data,
750
+ setRef: (s) => {
751
+ if (s) {
752
+ const $ = v.parent;
753
+ v.cellHeight !== s.offsetHeight && (v.cellHeight = s.offsetHeight), v.cellHeight && v.cellHeight > ($.height || 0) && ($.height = v.cellHeight, a.__fv_data_height__ = $.height);
754
+ const P = $.pre;
755
+ if (P) {
756
+ const C = (P.__fv_data_position__ || 0) + (P.__fv_data_height__ || 0);
757
+ $.top = C, a.__fv_data_position__ = C;
758
+ }
759
+ }
760
+ },
761
+ update: () => {
762
+ }
763
+ };
764
+ if (l.data[F] = v, w.value) {
765
+ let s = v.colSpan;
766
+ const $ = O.value.reduce((P, C) => (P.set(C, !0), P), /* @__PURE__ */ new Map());
767
+ H.reduce((P, C, z) => {
768
+ if ($.has(C.field)) {
769
+ const N = {
770
+ colSpan: 1,
771
+ rowSpan: 1,
772
+ index: z,
773
+ field: C.field,
774
+ data: a[C.field],
775
+ parent: l,
776
+ mode: q.readonly,
777
+ getEditor: (L) => L.data,
778
+ setRef: (L) => {
779
+ if (L) {
780
+ const Y = N.parent;
781
+ N.cellHeight !== L.offsetHeight && (N.cellHeight = L.offsetHeight), N.cellHeight && N.cellHeight > (Y.height || 0) && (Y.height = N.cellHeight, a.__fv_data_height__ = Y.height);
782
+ const J = Y.pre;
783
+ if (J) {
784
+ const Q = (J.__fv_data_position__ || 0) + (J.__fv_data_height__ || 0);
785
+ Y.top = Q, a.__fv_data_position__ = Q;
786
+ }
787
+ }
788
+ },
789
+ update: () => {
790
+ }
791
+ };
792
+ l.data[C.field] = N, s - 1 > z && (s = z);
793
+ }
794
+ return P;
795
+ }, l), v.colSpan = s;
796
+ }
797
+ return l;
798
+ }
799
+ function u(a, G, f, _, H) {
800
+ const x = a.__fv_data_grid_group_field__, F = a.__fv_data_index__, W = a.__fv_data_grid_group_layer__, p = {
801
+ data: {},
802
+ dataIndex: F,
803
+ groupField: x,
804
+ groupValue: null,
805
+ layer: W,
806
+ index: f,
807
+ pre: G,
808
+ top: _,
809
+ type: ee.summary,
810
+ setRef: (i) => {
811
+ p.ref = i;
812
+ }
813
+ }, e = {
814
+ colSpan: 0,
815
+ rowSpan: 0,
816
+ index: -1,
817
+ field: g.value,
818
+ data: a[g.value],
819
+ parent: p,
820
+ mode: q.readonly,
821
+ getEditor: (i) => i.data,
822
+ setRef: (i) => {
823
+ if (i) {
824
+ const v = e.parent;
825
+ e.cellHeight !== i.offsetHeight && (e.cellHeight = i.offsetHeight), e.cellHeight && e.cellHeight > (v.height || 0) && (v.height = e.cellHeight, a.__fv_data_height__ = v.height);
826
+ const s = v.pre;
827
+ if (s) {
828
+ const $ = (s.__fv_data_position__ || 0) + (s.__fv_data_height__ || 0);
829
+ v.top = $, a.__fv_data_position__ = $;
830
+ }
831
+ }
832
+ },
833
+ update: () => {
834
+ }
835
+ };
836
+ p.data[g.value] = e;
837
+ const l = {
838
+ colSpan: H.length,
839
+ rowSpan: 1,
840
+ index: 1,
841
+ field: x,
842
+ data: a[x],
843
+ parent: p,
844
+ mode: q.readonly,
845
+ getEditor: (i) => i.data,
846
+ setRef: (i) => {
847
+ if (i) {
848
+ const v = l.parent;
849
+ l.cellHeight !== i.offsetHeight && (l.cellHeight = i.offsetHeight), l.cellHeight && l.cellHeight > (v.height || 0) && (v.height = l.cellHeight, a.__fv_data_height__ = v.height);
850
+ const s = v.pre;
851
+ if (s) {
852
+ const $ = (s.__fv_data_position__ || 0) + (s.__fv_data_height__ || 0);
853
+ v.top = $, a.__fv_data_position__ = $;
854
+ }
855
+ }
856
+ },
857
+ update: () => {
858
+ }
859
+ };
860
+ return p.data[x] = l, p;
861
+ }
862
+ function o(a) {
863
+ return {
864
+ "f-icon": !0,
865
+ "f-icon-arrow-chevron-down": !0,
866
+ "fv-grid-group-row-icon-collapse": a.collapse
867
+ };
868
+ }
869
+ return { collpaseGroupIconClass: o, renderGroupedData: b, renderGroupRow: n, renderSummaryRow: u };
870
+ }
871
+ function Pe(t) {
872
+ var x, F;
873
+ const g = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map(), m = D(((x = t.group) == null ? void 0 : x.groupFields) || []), O = D(((F = t.group) == null ? void 0 : F.enable) || !1), w = D(t.data), B = me(t), j = D(t.summary), h = R(() => {
874
+ const W = j.value;
875
+ return (W == null ? void 0 : W.groupFields) || [];
876
+ }), M = h.value.reduce((W, p) => (W.set(p, 0), W), /* @__PURE__ */ new Map()), c = R(() => w.value.length), r = D(t.pagination), b = R(() => {
877
+ var W;
878
+ return ((W = r.value) == null ? void 0 : W.size) || w.value.length;
879
+ }), n = D(1);
880
+ function u() {
881
+ let W = w.value;
882
+ O.value && (W = B.renderGroupedData(m.value, w.value));
883
+ const p = (n.value - 1) * b.value, e = Math.min(p + b.value, c.value);
884
+ let l = 0;
885
+ const i = [];
886
+ for (let v = p; v < e; v++) {
887
+ const s = W[v];
888
+ s.__fv_data_grid_group_row__ ? (l = 0, s.__fv_data_index__ = "") : s.__fv_data_grid_group_summary__ ? s.__fv_data_index__ = "" : (l++, s.__fv_data_index__ = l), s.__fv_index__ = v, h.value.forEach(($) => {
889
+ const P = M.get($) || 0;
890
+ M.set($, P + s[$]);
891
+ }), i.push(s);
892
+ }
893
+ return i;
894
+ }
895
+ const o = D(u());
896
+ function a(W, p = !1) {
897
+ const e = p ? u() : o.value;
898
+ return o.value = e.filter((l, i) => W.reduce((v, s) => v && s(l), !0)).map((l, i) => {
899
+ if (l.__fv_data_grid_group_row__) {
900
+ const v = `group_of_${l.__fv_data_grid_group_field__}_${l.__fv_data_grid_group_value__}`;
901
+ l.__fv_data_grid_group_collapse__ = !!g.get(v);
902
+ }
903
+ return l.__fv_index__ = i, l;
904
+ }), o.value;
905
+ }
906
+ function G(W, p) {
907
+ const e = `group_of_${W}_${p}`;
908
+ g.set(e, !0);
909
+ const l = (i) => i[W] !== p;
910
+ return d.set(`collapse_${W}_${p}`, l), a(Array.from(d.values()));
911
+ }
912
+ function f(W, p) {
913
+ const e = `group_of_${W}_${p}`;
914
+ return g.set(e, !1), d.delete(`collapse_${W}_${p}`), a(Array.from(d.values()), !0);
915
+ }
916
+ function _(W, p, e) {
917
+ return (W && W.length ? o.value.filter((i, v) => W.reduce((s, $) => s && $(i), !0)) : o.value).slice(p, e);
918
+ }
919
+ function H(W) {
920
+ if (W * b.value < c.value) {
921
+ n.value = W;
922
+ const e = u();
923
+ o.value = e;
924
+ }
925
+ }
926
+ return { collapse: G, dataView: o, expand: f, getRange: _, navigatePageTo: H, summaries: M, totalItems: c };
927
+ }
928
+ function Ee(t) {
929
+ return S(ye("f-date-picker"), {
930
+ modelValue: t.data,
931
+ onDatePicked: (g) => t.update(g)
932
+ }, null);
933
+ }
934
+ function ke(t) {
935
+ const g = R(() => ({
936
+ height: "100%",
937
+ resize: "none"
938
+ }));
939
+ return S("textarea", {
940
+ class: "form-control",
941
+ name: "text-area-cell-editor",
942
+ onInput: (d) => {
943
+ var m;
944
+ return t.update((m = d.target) == null ? void 0 : m.value);
945
+ },
946
+ style: g.value,
947
+ title: t.data,
948
+ value: t.data
949
+ }, null);
950
+ }
951
+ function ge(t) {
952
+ return S("input", {
953
+ class: "form-control",
954
+ name: "text-cell-editor",
955
+ title: t.data,
956
+ type: "text",
957
+ value: t.data,
958
+ onChange: (g) => {
959
+ var d;
960
+ return t.update((d = g.target) == null ? void 0 : d.value);
961
+ }
962
+ }, null);
963
+ }
964
+ function Re(t) {
965
+ var c;
966
+ const g = D(t.editable), d = D(((c = t.rowOption) == null ? void 0 : c.wrapContent) || !1);
967
+ ce(
968
+ () => t.editable,
969
+ () => {
970
+ g.value = t.editable;
971
+ }
972
+ );
973
+ const m = /* @__PURE__ */ new Map([
974
+ ["boolean", "checkbox"],
975
+ ["datetime", "date-picker"],
976
+ ["number", "text-editor"],
977
+ ["string", "text-editor"],
978
+ ["text", "text-area"]
979
+ ]), O = /* @__PURE__ */ new Map([
980
+ ["checkbox", ge],
981
+ ["date-picker", Ee],
982
+ ["text-editor", ge],
983
+ ["text-area", ke]
984
+ ]);
985
+ let w;
986
+ function B(r) {
987
+ r.mode = q.editing, w = r;
988
+ }
989
+ function j(r) {
990
+ r.mode = q.editable;
991
+ }
992
+ function h(r, b) {
993
+ g.value && b.mode === q.editable && w !== b && (w && j(w), B(b));
994
+ }
995
+ function M(r, b) {
996
+ const n = b.dataType;
997
+ let u = b.editor || m.get(n) || "text-editor";
998
+ !d.value && u === "text-area" && (u = "text-editor");
999
+ const o = O.get(u);
1000
+ return o ? o(r) : r.data;
1001
+ }
1002
+ return { getEditor: M, onClickCell: h };
1003
+ }
1004
+ function ze(t, g, d, m, O, w, B, j, h, M) {
1005
+ const {
1006
+ calculateCellPositionInRow: c,
1007
+ cellKey: r,
1008
+ cellPosition: b,
1009
+ rowKey: n,
1010
+ rowPosition: u,
1011
+ rowSpanCellPosition: o,
1012
+ groupCellPosition: a,
1013
+ summaryCellPosition: G
1014
+ } = d, {
1015
+ collpaseGroupIconClass: f
1016
+ } = w, {
1017
+ gridRowClass: _,
1018
+ onClickRow: H,
1019
+ onMouseoverRow: x
1020
+ } = B, {
1021
+ onClickCell: F
1022
+ } = O, {
1023
+ toggleGroupRow: W
1024
+ } = j, {
1025
+ columnContext: p,
1026
+ hasLeftFixedColumn: e,
1027
+ hasRightFixedColumn: l
1028
+ } = m, {
1029
+ onMouseDownScrollThumb: i,
1030
+ onWheel: v,
1031
+ dataGridWidth: s,
1032
+ gridDataStyle: $,
1033
+ gridMergedDataStyle: P,
1034
+ gridSideStyle: C,
1035
+ viewPortHeight: z,
1036
+ viewPortWidth: N,
1037
+ horizontalScrollThumbStyle: L,
1038
+ leftFixedGridDataStyle: Y,
1039
+ leftFixedGridMergedDataStyle: J,
1040
+ rightFixedGridDataStyle: Q,
1041
+ rightFixedGridMergedDataStyle: te,
1042
+ verticalScrollThumbStyle: oe
1043
+ } = h;
1044
+ function ae(y, A) {
1045
+ A.collapse = !A.collapse, M.value = W(A.collapse ? "collapse" : "expand", A, M.value);
1046
+ }
1047
+ function le(y, A) {
1048
+ const k = [];
1049
+ if (y.groupField && A[y.groupField]) {
1050
+ for (let K = 0; K <= y.layer; K++)
1051
+ k.push(S("div", {
1052
+ class: "fv-grid-group-row-icon",
1053
+ onClick: (E) => ae(E, y)
1054
+ }, [S("span", {
1055
+ class: f(y)
1056
+ }, null)]));
1057
+ const T = y.data[y.groupField];
1058
+ k.push(S("div", {
1059
+ ref: T.setRef,
1060
+ key: r(y, y.layer + 1),
1061
+ class: "fv-grid-cell",
1062
+ style: a(T, A, y.layer)
1063
+ }, [T.data])), Object.values(y.data).filter((K) => K.field !== y.groupField && K.colSpan !== 0).forEach((K) => {
1064
+ k.push(S("div", {
1065
+ ref: K.setRef,
1066
+ key: r(y, K.index),
1067
+ class: "fv-grid-cell",
1068
+ style: b(K, A)
1069
+ }, [K.data]));
1070
+ });
1071
+ }
1072
+ return k;
1073
+ }
1074
+ function ne(y, A) {
1075
+ return y.layer > -1 && S("div", {
1076
+ ref: y.setRef,
1077
+ key: n(y),
1078
+ class: _(y),
1079
+ style: u(y),
1080
+ onClick: (k) => H(k, y),
1081
+ onMouseover: (k) => x(k, y)
1082
+ }, [le(y, A)]);
1083
+ }
1084
+ function fe(y, A) {
1085
+ const k = [];
1086
+ if (y.groupField && A[y.groupField]) {
1087
+ const T = y.data[y.groupField];
1088
+ k.push(S("div", {
1089
+ ref: T.setRef,
1090
+ key: r(y, y.layer + 1),
1091
+ class: "fv-grid-cell",
1092
+ style: G(T, A, y.layer)
1093
+ }, [T.data]));
1094
+ }
1095
+ return k;
1096
+ }
1097
+ function he(y, A) {
1098
+ return y.layer > -1 && S("div", {
1099
+ ref: y.setRef,
1100
+ key: n(y),
1101
+ class: _(y),
1102
+ style: u(y),
1103
+ onClick: (k) => H(k, y),
1104
+ onMouseover: (k) => x(k, y)
1105
+ }, [fe(y, A)]);
1106
+ }
1107
+ function ve(y, A) {
1108
+ return S("div", {
1109
+ ref: y.setRef,
1110
+ key: n(y),
1111
+ class: _(y),
1112
+ style: u(y),
1113
+ onClick: (k) => H(k, y),
1114
+ onMouseover: (k) => x(k, y)
1115
+ }, [Object.values(y.data).filter((k) => A[k.field] && k.rowSpan === 1).map((k) => S("div", {
1116
+ ref: k.setRef,
1117
+ key: r(y, k.index),
1118
+ class: "fv-grid-cell",
1119
+ style: b(k, A),
1120
+ onClick: (T) => F(T, k)
1121
+ }, [k.mode === q.editing ? k.getEditor(k) : k.data]))]);
1122
+ }
1123
+ const pe = [ve, ne, he];
1124
+ function se(y, A) {
1125
+ const k = c(y);
1126
+ return M.value.map((T) => pe[T.type](T, k));
1127
+ }
1128
+ function ue(y) {
1129
+ const A = c(y);
1130
+ return M.value.map((k) => Object.values(k.data).filter((T) => A[T.field] && T.rowSpan > 1).map((T) => S("div", {
1131
+ key: r(k, T.index),
1132
+ class: "fv-grid-cell fv-grid-merged-cell",
1133
+ style: o(k, T, A)
1134
+ }, [T.data])));
1135
+ }
1136
+ function ie() {
1137
+ return S("div", {
1138
+ class: "fv-grid-content-left-fixed"
1139
+ }, [S("div", {
1140
+ class: "fv-grid-data",
1141
+ style: Y.value
1142
+ }, [se(p.value.leftColumns)]), S("div", {
1143
+ class: "fv-grid-merge-date",
1144
+ style: J.value
1145
+ }, [ue(p.value.leftColumns)])]);
1146
+ }
1147
+ function Z() {
1148
+ return S("div", {
1149
+ ref: g,
1150
+ class: "fv-grid-content-primary"
1151
+ }, [S("div", {
1152
+ class: "fv-grid-data",
1153
+ style: $.value
1154
+ }, [se(p.value.primaryColumns)]), S("div", {
1155
+ class: "fv-grid-merge-date",
1156
+ style: P.value
1157
+ }, [ue(p.value.primaryColumns)])]);
1158
+ }
1159
+ function I() {
1160
+ return S("div", {
1161
+ class: "fv-grid-content-right-fixed"
1162
+ }, [S("div", {
1163
+ class: "fv-grid-data",
1164
+ style: Q.value
1165
+ }, [se(p.value.rightColumns)]), S("div", {
1166
+ class: "fv-grid-merge-date",
1167
+ style: te.value
1168
+ }, [ue(p.value.rightColumns)])]);
1169
+ }
1170
+ function re() {
1171
+ const y = [];
1172
+ return e.value && y.push(ie()), y.push(Z()), l.value && y.push(I()), y;
1173
+ }
1174
+ return {
1175
+ renderDataArea: re
1176
+ };
1177
+ }
1178
+ function Ve(t, g, d, m) {
1179
+ const O = D(-1), w = D(0), B = D(!1);
1180
+ let j = "";
1181
+ const h = R(() => ({
1182
+ display: B.value ? "block" : "none",
1183
+ left: `${w.value}px`
1184
+ })), M = R(() => ({
1185
+ display: B.value ? "block" : "none"
1186
+ }));
1187
+ function c(n) {
1188
+ w.value = n.clientX - n.target.parentElement.offsetLeft;
1189
+ }
1190
+ function r(n) {
1191
+ const u = g.value.primaryColumns.find((o) => o.field === j) || g.value.leftColumns.find((o) => o.field === j) || g.value.rightColumns.find((o) => o.field === j);
1192
+ if (u) {
1193
+ const o = n.clientX - n.target.parentElement.offsetLeft;
1194
+ u.actualWidth = (u.actualWidth || 0) + (o - O.value), d.calculateColumnHeaders(g), d.calculateColumnsWidth(g);
1195
+ }
1196
+ w.value = 0, B.value = !1, m.reCalculateVisualDataRows(), document.removeEventListener("mousemove", c), document.body.style.userSelect = "", j = "";
1197
+ }
1198
+ function b(n, u) {
1199
+ j = u, B.value = !0;
1200
+ const o = n.path.find((a) => a.className.split(" ")[0] === "fv-grid");
1201
+ w.value = n.clientX - o.offsetLeft, O.value = n.clientX - o.offsetLeft, document.addEventListener("mousemove", c), document.addEventListener("mouseup", r), document.body.style.userSelect = "none";
1202
+ }
1203
+ return { onClickColumnResizeBar: b, resizeHandleStyle: h, resizeOverlayStyle: M };
1204
+ }
1205
+ function Ne(t, g, d, m, O, w, B) {
1206
+ const {
1207
+ showRowCheckbox: j,
1208
+ showRowNumer: h,
1209
+ sidebarCornerCellStyle: M
1210
+ } = O, {
1211
+ columnContext: c,
1212
+ hasLeftFixedColumn: r,
1213
+ hasRightFixedColumn: b
1214
+ } = d, {
1215
+ onClickColumnResizeBar: n,
1216
+ resizeHandleStyle: u,
1217
+ resizeOverlayStyle: o
1218
+ } = Ve(t, c, m, w), {
1219
+ gridHeaderColumnsStyle: a,
1220
+ leftFixedGridHeaderColumnsStyle: G,
1221
+ rightFixedGridHeaderColumnsStyle: f
1222
+ } = w, _ = c.value.defaultColumnWidth, H = 32, x = /* @__PURE__ */ new Map([[0, 0]]);
1223
+ function F(C, z) {
1224
+ const N = x.get(z) || 0, L = {
1225
+ height: `${C.depth * H}px`,
1226
+ left: `${C.left}px`,
1227
+ top: `${(C.layer - 1) * H}px`,
1228
+ width: `${C.actualWidth}px`
1229
+ };
1230
+ return c.value.headerDepth > 1 && (L["line-height"] = `${C.depth * H}px`), x.set(z + 1, N + (C.actualWidth || _)), L;
1231
+ }
1232
+ const W = R(() => ({
1233
+ "fv-grid-header": !0,
1234
+ "fv-grid-header-group-columns": c.value.headerDepth > 1
1235
+ })), p = R(() => ({
1236
+ height: `${c.value.headerDepth * H}px`
1237
+ }));
1238
+ function e(C, z) {
1239
+ return S("div", {
1240
+ class: "fv-grid-header-cell",
1241
+ style: F(C, z)
1242
+ }, [C.title, C.resizable && S("span", {
1243
+ class: "fv-column-resize-bar",
1244
+ onMousedown: (N) => n(N, C.field)
1245
+ }, null)]);
1246
+ }
1247
+ function l(C) {
1248
+ return C.map((z, N) => {
1249
+ const L = [];
1250
+ if (L.push(e(z, N)), z.children && z.children.length) {
1251
+ const Y = l(z.children);
1252
+ L.push(...Y);
1253
+ }
1254
+ return L;
1255
+ });
1256
+ }
1257
+ function i() {
1258
+ return S("div", {
1259
+ class: "fv-grid-header-left-fixed"
1260
+ }, [S("div", {
1261
+ class: "fv-grid-header-columns",
1262
+ style: G.value
1263
+ }, [l(c.value.leftHeaderColumns)])]);
1264
+ }
1265
+ function v() {
1266
+ return S("div", {
1267
+ class: "fv-grid-header-right-fixed"
1268
+ }, [S("div", {
1269
+ class: "fv-grid-header-columns",
1270
+ style: f.value
1271
+ }, [l(c.value.rightHeaderColumns)])]);
1272
+ }
1273
+ function s() {
1274
+ var C;
1275
+ return S("div", {
1276
+ class: "fv-grid-header-corner",
1277
+ style: M.value
1278
+ }, [j.value && S("div", {
1279
+ class: "custom-control custom-checkbox f-checkradio-single fv-grid-sidebar-row-checkbox"
1280
+ }, [S("input", {
1281
+ id: "sidebar_checkall",
1282
+ title: "sidebar_checkall",
1283
+ type: "checkbox",
1284
+ class: "custom-control-input"
1285
+ }, null), S("label", {
1286
+ class: "custom-control-label",
1287
+ for: "sidebar_checkall"
1288
+ }, null)]), h.value && ((C = t.rowNumber) == null ? void 0 : C.heading)]);
1289
+ }
1290
+ function $() {
1291
+ return S("div", {
1292
+ class: W.value,
1293
+ style: p.value
1294
+ }, [(j.value || h.value) && s(), r.value && i(), S("div", {
1295
+ class: "fv-grid-header-primary"
1296
+ }, [S("div", {
1297
+ class: "fv-grid-header-columns",
1298
+ style: a.value
1299
+ }, [l(c.value.primaryHeaderColumns)])]), b.value && v()]);
1300
+ }
1301
+ function P() {
1302
+ return S(we, null, [S("div", {
1303
+ class: "fv-datagrid-resize-overlay",
1304
+ style: o.value
1305
+ }, null), S("div", {
1306
+ class: "fv-datagrid-resize-proxy",
1307
+ style: u.value
1308
+ }, null)]);
1309
+ }
1310
+ return {
1311
+ renderGridHeader: $,
1312
+ renderGridColumnResizeOverlay: P
1313
+ };
1314
+ }
1315
+ function Ae(t, g) {
1316
+ const d = R(() => 1e4);
1317
+ function m(w) {
1318
+ g.navigatePageTo(w);
1319
+ }
1320
+ function O() {
1321
+ return S("div", {
1322
+ class: "fv-datagrid-pagination"
1323
+ }, [S(ye("f-pagination"), {
1324
+ mode: "default",
1325
+ totalItems: d.value,
1326
+ onPageIndexChanged: m
1327
+ }, null)]);
1328
+ }
1329
+ return {
1330
+ renderDataGridPagination: O
1331
+ };
1332
+ }
1333
+ function Te(t, g, d, m) {
1334
+ const {
1335
+ onMouseoverRow: O,
1336
+ sidebarRowClass: w
1337
+ } = g, {
1338
+ showRowCheckbox: B,
1339
+ showRowNumer: j,
1340
+ sidebarCellPosition: h,
1341
+ sidebarWidth: M
1342
+ } = d, {
1343
+ gridSideStyle: c
1344
+ } = m;
1345
+ function r(o) {
1346
+ return S("div", {
1347
+ class: "custom-control custom-checkbox f-checkradio-single fv-grid-sidebar-row-checkbox"
1348
+ }, [S("input", {
1349
+ id: `${o.dataIndex}`,
1350
+ title: `${o.dataIndex}`,
1351
+ type: "checkbox",
1352
+ class: "custom-control-input"
1353
+ }, null), S("label", {
1354
+ class: "custom-control-label",
1355
+ for: `${o.dataIndex}`
1356
+ }, null)]);
1357
+ }
1358
+ function b(o) {
1359
+ return S("div", {
1360
+ class: "fv-grid-sidebar-row-number",
1361
+ onMouseover: (a) => O(a, o)
1362
+ }, [o.dataIndex]);
1363
+ }
1364
+ function n(o) {
1365
+ return (B.value || j.value) && o.value.map((a) => S("div", {
1366
+ class: w(a),
1367
+ style: h(a)
1368
+ }, [B.value && r(a), j.value && b(a)]));
1369
+ }
1370
+ function u(o) {
1371
+ return S("div", {
1372
+ class: "fv-grid-content-side"
1373
+ }, [S("div", {
1374
+ class: "fv-grid-side",
1375
+ style: c.value
1376
+ }, [n(o)])]);
1377
+ }
1378
+ return {
1379
+ renderDataGridSidebar: u
1380
+ };
1381
+ }
1382
+ function Le(t, g, d) {
1383
+ const {
1384
+ columnContext: m
1385
+ } = d, O = D(t.summary), w = R(() => {
1386
+ const j = O.value;
1387
+ return j && j.enable && j.groupFields && j.groupFields.length > 0;
1388
+ });
1389
+ function B() {
1390
+ return w.value && S("div", {
1391
+ class: "fv-datagrid-summary"
1392
+ }, [S("div", {
1393
+ class: "fv-datagird-summary-panel"
1394
+ }, [S("span", {
1395
+ class: "fv-datagrid-summary-title"
1396
+ }, [be("\u5F53\u9875\u5408\u8BA1")]), S("div", {
1397
+ class: "fv-datagrid-summary-content"
1398
+ }, [m.value.summaryColumns.map((j) => S("div", {
1399
+ class: "fv-datagrid-summary-field"
1400
+ }, [S("span", {
1401
+ class: "fv-datagrid-summary-field-title"
1402
+ }, [`${j.title}:`]), S("span", {
1403
+ class: "fv-datagrid-summary-field-value"
1404
+ }, [g.summaries.get(j.field)])]))])])]);
1405
+ }
1406
+ return {
1407
+ renderDataGridSummery: B
1408
+ };
1409
+ }
1410
+ function Xe(t, g, d) {
1411
+ const {
1412
+ horizontalScrollThumbStyle: m,
1413
+ onMouseDownScrollThumb: O
1414
+ } = d;
1415
+ function w() {
1416
+ return S("div", {
1417
+ class: "fv-grid-horizontal-scroll"
1418
+ }, [S("div", {
1419
+ class: "fv-grid-horizontal-scroll-thumb",
1420
+ style: m.value,
1421
+ onMousedown: (B) => O(B, g, "horizontal")
1422
+ }, null)]);
1423
+ }
1424
+ return {
1425
+ renderHorizontalScrollbar: w
1426
+ };
1427
+ }
1428
+ function Ye(t, g, d) {
1429
+ const {
1430
+ verticalScrollThumbStyle: m,
1431
+ onMouseDownScrollThumb: O
1432
+ } = d;
1433
+ function w() {
1434
+ return S("div", {
1435
+ class: "fv-grid-vertical-scroll"
1436
+ }, [S("div", {
1437
+ class: "fv-grid-vertical-scroll-thumb",
1438
+ style: m.value,
1439
+ onMousedown: (B) => O(B, g, "vertical")
1440
+ }, null)]);
1441
+ }
1442
+ return {
1443
+ renderVerticalScrollbar: w
1444
+ };
1445
+ }
1446
+ const _e = Ce({
1447
+ name: "FDataGrid",
1448
+ props: Oe,
1449
+ emits: [],
1450
+ setup(t) {
1451
+ var te;
1452
+ const g = D(t.columns), d = 20, m = 0, O = D(), w = D(), B = D(t.showStripe), j = D(!1), h = D(((te = t.rowOption) == null ? void 0 : te.wrapContent) || !1), M = Pe(t), c = je(t), {
1453
+ columnContext: r
1454
+ } = c, b = Be(t, r), {
1455
+ calculateColumnsSize: n
1456
+ } = b, u = me(t), o = Re(t), a = He(t, g, u, M, d, m, o), {
1457
+ getVisualData: G
1458
+ } = a, f = $e(t, r), _ = Me(t), {
1459
+ sidebarWidth: H
1460
+ } = _, x = D(G(0, d + m)), F = De(t, M, x, r, a, d, m, H), {
1461
+ onWheel: W,
1462
+ dataGridWidth: p,
1463
+ viewPortHeight: e,
1464
+ viewPortWidth: l
1465
+ } = F, i = Ge(t), v = R(() => ({
1466
+ "fv-grid": !0,
1467
+ "fv-datagrid-strip": B.value
1468
+ })), s = R(() => ({
1469
+ "fv-grid-content": !0,
1470
+ "fv-grid-content-hover": j.value,
1471
+ "fv-grid-wrap-content": h.value
1472
+ })), {
1473
+ renderDataArea: $
1474
+ } = ze(t, w, f, c, o, u, i, a, F, x), {
1475
+ renderGridHeader: P,
1476
+ renderGridColumnResizeOverlay: C
1477
+ } = Ne(t, O, c, b, _, F), {
1478
+ renderDataGridPagination: z
1479
+ } = Ae(t, M), {
1480
+ renderDataGridSidebar: N
1481
+ } = Te(t, i, _, F), {
1482
+ renderDataGridSummery: L
1483
+ } = Le(t, M, c), {
1484
+ renderHorizontalScrollbar: Y
1485
+ } = Xe(t, O, F), {
1486
+ renderVerticalScrollbar: J
1487
+ } = Ye(t, O, F);
1488
+ function Q(oe) {
1489
+ var ae, le, ne;
1490
+ e.value = ((ae = w.value) == null ? void 0 : ae.clientHeight) || 0, l.value = ((le = w.value) == null ? void 0 : le.clientWidth) || 0, p.value = ((ne = O.value) == null ? void 0 : ne.clientWidth) || 0;
1491
+ }
1492
+ return Se(() => {
1493
+ O.value && (window.addEventListener("resize", Q), n(r, O.value, l), xe(() => {
1494
+ O.value && (p.value = O.value.clientWidth), w.value && (l.value = w.value.clientWidth, e.value = w.value.clientHeight);
1495
+ }));
1496
+ }), We(() => {
1497
+ window.removeEventListener("resize", Q);
1498
+ }), ce(l, () => {
1499
+ O.value && n(r, O.value, l);
1500
+ }), () => S("div", {
1501
+ class: v.value,
1502
+ style: "height:600px",
1503
+ onWheel: W
1504
+ }, [P(), S("div", {
1505
+ ref: O,
1506
+ class: s.value,
1507
+ onMouseover: () => {
1508
+ j.value = !0;
1509
+ },
1510
+ onMouseleave: () => {
1511
+ j.value = !1;
1512
+ }
1513
+ }, [N(x), $(), Y(), J()]), L(), z(), C()]);
1514
+ }
1515
+ }), it = {
1516
+ install(t) {
1517
+ t.component(_e.name, _e);
1518
+ }
1519
+ };
1520
+ export {
1521
+ _e as FDataGrid,
1522
+ at as columnOptions,
1523
+ Oe as dataGridProps,
1524
+ it as default,
1525
+ nt as editOptions,
1526
+ Qe as filterOptions,
1527
+ Je as groupOptions,
1528
+ Ze as headerOptions,
1529
+ qe as paginationOptions,
1530
+ Ie as rowNumberOptions,
1531
+ et as rowOptions,
1532
+ lt as selectionOptions,
1533
+ Ue as sortOptions,
1534
+ tt as summaryOptions
1535
+ };