@aplus-frontend/ui 7.19.0-beta.1 → 7.19.0

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 (165) hide show
  1. package/es/src/ag-grid/context.mjs +1 -1
  2. package/es/src/ag-grid/editable/form-item.vue.d.ts +2 -4
  3. package/es/src/ag-grid/editable/form-item.vue.mjs +88 -77
  4. package/es/src/ag-grid/editable/index.vue.d.ts +2 -4
  5. package/es/src/ag-grid/editable/index.vue.mjs +9 -8
  6. package/es/src/ag-grid/editable/interface.d.ts +15 -1
  7. package/es/src/ag-grid/hooks/use-columns.mjs +31 -23
  8. package/es/src/ag-grid/hooks/use-pinned-row.mjs +2 -2
  9. package/es/src/ag-grid/index.vue.d.ts +2 -4
  10. package/es/src/ag-grid/index.vue.mjs +353 -335
  11. package/es/src/ag-grid/interface.d.ts +40 -1
  12. package/es/src/ag-grid/utils.d.ts +18 -0
  13. package/es/src/ag-grid/utils.mjs +39 -18
  14. package/es/src/ap-field/cascader/use-options.d.ts +4 -4
  15. package/es/src/ap-field/date/index.vue.d.ts +0 -1
  16. package/es/src/ap-field/date-range/index.vue.d.ts +0 -1
  17. package/es/src/ap-field/select/use-select-options.d.ts +2 -2
  18. package/es/src/ap-field/text/password.vue.d.ts +4 -4
  19. package/es/src/ap-field/tree-select/use-request.d.ts +4 -4
  20. package/es/src/ap-form/ap-form.vue.d.ts +1 -2
  21. package/es/src/ap-form/ap-form.vue2.mjs +63 -61
  22. package/es/src/ap-form/context.mjs +1 -1
  23. package/es/src/ap-form/drawer-form/index.vue.d.ts +3 -4
  24. package/es/src/ap-form/interface.d.ts +4 -0
  25. package/es/src/ap-form/item/index.vue.d.ts +6 -6
  26. package/es/src/ap-form/item-group/helper.mjs +2 -2
  27. package/es/src/ap-form/items/date/index.vue.d.ts +9 -11
  28. package/es/src/ap-form/items/date-range/index.vue.d.ts +13 -15
  29. package/es/src/ap-form/items/number/index.vue.d.ts +2 -3
  30. package/es/src/ap-form/items/select/index.vue.d.ts +8 -8
  31. package/es/src/ap-form/modal-form/index.vue.d.ts +3 -4
  32. package/es/src/ap-form/provider/context.mjs +1 -1
  33. package/es/src/ap-form/search-form/index.vue.d.ts +3 -4
  34. package/es/src/ap-grid/editable/form-item.vue.d.ts +2 -4
  35. package/es/src/ap-grid/editable/index.vue.d.ts +2 -4
  36. package/es/src/ap-grid/index.vue.d.ts +2 -4
  37. package/es/src/ap-grid/utils/table.mjs +2 -2
  38. package/es/src/ap-list/index.vue.d.ts +2 -4
  39. package/es/src/ap-modal/utils/confirm.d.ts +1 -1
  40. package/es/src/ap-pro-card/components/card/index.vue2.mjs +2 -2
  41. package/es/src/ap-table/ap-table.vue.d.ts +2 -4
  42. package/es/src/ap-table/components/setting/context.d.ts +1 -1
  43. package/es/src/ap-table/components/setting/context.mjs +1 -1
  44. package/es/src/ap-table/components/setting/modal/index.vue.mjs +127 -117
  45. package/es/src/ap-table/components/setting/sorter/context.mjs +1 -1
  46. package/es/src/ap-table/components/setting/template/edit-form.vue.d.ts +2 -3
  47. package/es/src/ap-table/constants.d.ts +20 -22
  48. package/es/src/ap-table/context.mjs +1 -1
  49. package/es/src/ap-table/hooks/use-table-paging-ng.mjs +9 -9
  50. package/es/src/ap-table/hooks/use-table-template-storage.d.ts +9 -9
  51. package/es/src/ap-table/hooks/use-table-template-storage.mjs +102 -95
  52. package/es/src/ap-table/utils.mjs +1 -1
  53. package/es/src/business/ag-grid-modal/hooks/use-ag-grid-instance.mjs +1 -1
  54. package/es/src/business/ap-batch-action-group/index.d.ts +3 -3
  55. package/es/src/business/ap-download/hooks/index.mjs +1 -1
  56. package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +1 -1
  57. package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue2.mjs +1 -3
  58. package/es/src/business/ap-draggable-grid/index.d.ts +1 -1
  59. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
  60. package/es/src/business/ap-keep-alive/hook.mjs +1 -1
  61. package/es/src/business/ap-keep-alive/utils.mjs +1 -1
  62. package/es/src/business/ap-select-layout/index.d.ts +2 -4
  63. package/es/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
  64. package/es/src/business/ap-table-modal/index.d.ts +17 -5
  65. package/es/src/business/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  66. package/es/src/business/ap-upload/components/MultipleFile.vue2.mjs +128 -112
  67. package/es/src/business/ap-value-select-card/index.vue.d.ts +2 -4
  68. package/es/src/business/ap-view/ap-view.vue.d.ts +1 -1
  69. package/es/src/business/ap-view/ap-view.vue2.mjs +87 -81
  70. package/es/src/business/ap-view/components/main-button-content.vue.d.ts +2 -3
  71. package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -3
  72. package/es/src/business/ap-view/hooks/use-send-to-url.d.ts +2 -0
  73. package/es/src/business/ap-view/hooks/use-send-to-url.mjs +46 -30
  74. package/es/src/business/ap-view/hooks/use-view-provide.mjs +1 -1
  75. package/es/src/business/ap-view/index.d.ts +3 -3
  76. package/es/src/business/ap-view/interface.d.ts +7 -1
  77. package/es/src/check-card/context.mjs +1 -1
  78. package/es/src/config-provider/constants.mjs +1 -1
  79. package/es/src/config-provider/hooks/use-locale.mjs +1 -1
  80. package/es/src/config-provider/hooks/use-namespace.d.ts +5 -1
  81. package/es/src/config-provider/hooks/use-namespace.mjs +1 -1
  82. package/es/src/config-provider/hooks/use-token.mjs +1 -1
  83. package/es/src/editable-table/form-item.vue.d.ts +2 -4
  84. package/es/src/editable-table/index.vue.d.ts +2 -4
  85. package/es/src/editable-table/utils.mjs +1 -1
  86. package/es/src/scroll-view/index.vue.d.ts +5 -5
  87. package/es/src/tests/wrapper.d.ts +4 -4
  88. package/es/src/text/context.mjs +1 -1
  89. package/es/src/time-ago/useTimeAgo.mjs +1 -1
  90. package/es/src/type.d.ts +1 -0
  91. package/es/src/utils/slot.mjs +1 -1
  92. package/es/src/version.d.ts +1 -1
  93. package/es/src/version.mjs +1 -1
  94. package/lib/src/ag-grid/editable/form-item.vue.d.ts +2 -4
  95. package/lib/src/ag-grid/editable/form-item.vue.js +1 -1
  96. package/lib/src/ag-grid/editable/index.vue.d.ts +2 -4
  97. package/lib/src/ag-grid/editable/index.vue.js +1 -1
  98. package/lib/src/ag-grid/editable/interface.d.ts +15 -1
  99. package/lib/src/ag-grid/hooks/use-columns.js +1 -1
  100. package/lib/src/ag-grid/hooks/use-pinned-row.js +1 -1
  101. package/lib/src/ag-grid/index.vue.d.ts +2 -4
  102. package/lib/src/ag-grid/index.vue.js +1 -1
  103. package/lib/src/ag-grid/interface.d.ts +40 -1
  104. package/lib/src/ag-grid/utils.d.ts +18 -0
  105. package/lib/src/ag-grid/utils.js +1 -1
  106. package/lib/src/ap-field/cascader/use-options.d.ts +4 -4
  107. package/lib/src/ap-field/date/index.vue.d.ts +0 -1
  108. package/lib/src/ap-field/date-range/index.vue.d.ts +0 -1
  109. package/lib/src/ap-field/select/use-select-options.d.ts +2 -2
  110. package/lib/src/ap-field/text/password.vue.d.ts +4 -4
  111. package/lib/src/ap-field/tree-select/use-request.d.ts +4 -4
  112. package/lib/src/ap-form/ap-form.vue.d.ts +1 -2
  113. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  114. package/lib/src/ap-form/drawer-form/index.vue.d.ts +3 -4
  115. package/lib/src/ap-form/interface.d.ts +4 -0
  116. package/lib/src/ap-form/item/index.vue.d.ts +6 -6
  117. package/lib/src/ap-form/items/date/index.vue.d.ts +9 -11
  118. package/lib/src/ap-form/items/date-range/index.vue.d.ts +13 -15
  119. package/lib/src/ap-form/items/number/index.vue.d.ts +2 -3
  120. package/lib/src/ap-form/items/select/index.vue.d.ts +8 -8
  121. package/lib/src/ap-form/modal-form/index.vue.d.ts +3 -4
  122. package/lib/src/ap-form/search-form/index.vue.d.ts +3 -4
  123. package/lib/src/ap-grid/editable/form-item.vue.d.ts +2 -4
  124. package/lib/src/ap-grid/editable/index.vue.d.ts +2 -4
  125. package/lib/src/ap-grid/index.vue.d.ts +2 -4
  126. package/lib/src/ap-grid/utils/table.js +1 -1
  127. package/lib/src/ap-list/index.vue.d.ts +2 -4
  128. package/lib/src/ap-modal/utils/confirm.d.ts +1 -1
  129. package/lib/src/ap-table/ap-table.vue.d.ts +2 -4
  130. package/lib/src/ap-table/components/setting/context.d.ts +1 -1
  131. package/lib/src/ap-table/components/setting/modal/index.vue.js +1 -1
  132. package/lib/src/ap-table/components/setting/template/edit-form.vue.d.ts +2 -3
  133. package/lib/src/ap-table/constants.d.ts +20 -22
  134. package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
  135. package/lib/src/ap-table/hooks/use-table-template-storage.d.ts +9 -9
  136. package/lib/src/ap-table/hooks/use-table-template-storage.js +1 -1
  137. package/lib/src/business/ap-batch-action-group/index.d.ts +3 -3
  138. package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +1 -1
  139. package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue2.js +1 -1
  140. package/lib/src/business/ap-draggable-grid/index.d.ts +1 -1
  141. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
  142. package/lib/src/business/ap-select-layout/index.d.ts +2 -4
  143. package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
  144. package/lib/src/business/ap-table-modal/index.d.ts +17 -5
  145. package/lib/src/business/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  146. package/lib/src/business/ap-upload/components/MultipleFile.vue2.js +1 -1
  147. package/lib/src/business/ap-value-select-card/index.vue.d.ts +2 -4
  148. package/lib/src/business/ap-view/ap-view.vue.d.ts +1 -1
  149. package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
  150. package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +2 -3
  151. package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -3
  152. package/lib/src/business/ap-view/hooks/use-send-to-url.d.ts +2 -0
  153. package/lib/src/business/ap-view/hooks/use-send-to-url.js +1 -1
  154. package/lib/src/business/ap-view/index.d.ts +3 -3
  155. package/lib/src/business/ap-view/interface.d.ts +7 -1
  156. package/lib/src/config-provider/hooks/use-namespace.d.ts +5 -1
  157. package/lib/src/editable-table/form-item.vue.d.ts +2 -4
  158. package/lib/src/editable-table/index.vue.d.ts +2 -4
  159. package/lib/src/scroll-view/index.vue.d.ts +5 -5
  160. package/lib/src/tests/wrapper.d.ts +4 -4
  161. package/lib/src/time-ago/useTimeAgo.js +1 -1
  162. package/lib/src/type.d.ts +1 -0
  163. package/lib/src/version.d.ts +1 -1
  164. package/lib/src/version.js +1 -1
  165. package/package.json +1 -1
@@ -1,41 +1,41 @@
1
- import { defineComponent as ho, useSlots as vo, ref as y, toRef as x, computed as n, unref as r, nextTick as A, watch as W, createElementBlock as H, openBlock as h, normalizeStyle as U, normalizeClass as v, createCommentVNode as ce, createElementVNode as T, createVNode as Ro, mergeProps as j, createSlots as bo, withCtx as me, Fragment as Mo, renderList as xo, createBlock as _, resolveDynamicComponent as Bo, renderSlot as pe } from "vue";
2
- import { AG_GRID_LOCALE_EN as Fo, AG_GRID_LOCALE_CN as Io } from "@ag-grid-community/locale";
3
- import { Pagination as ko } from "@aplus-frontend/antdv";
4
- import { useToken as Ao } from "@aplus-frontend/antdv/es/theme/internal";
5
- import { ModuleRegistry as To, ValidationModule as Eo, ColumnAutoSizeModule as No, PinnedRowModule as Do, RowAutoHeightModule as zo, RowStyleModule as Oo, CellSpanModule as Po, CellStyleModule as Ko, TooltipModule as Go, RowSelectionModule as Vo, LocaleModule as Lo, ValueCacheModule as Wo, GridStateModule as Ho, ColumnApiModule as Uo, RowApiModule as jo, CellApiModule as _o, RenderApiModule as $o, EventApiModule as qo, ScrollApiModule as Jo, ClientSideRowModelApiModule as Qo, ClientSideRowModelModule as Xo } from "ag-grid-community";
6
- import { AgGridVue as Yo } from "ag-grid-vue3";
7
- import { isUndefined as B, isFunction as E } from "lodash-unified";
8
- import { DEFAULT_ROW_SELECTION_CONFIG as fe, sizeReverseMap as Zo, sizeMap as et } from "../ap-grid/constants.mjs";
9
- import { useProvideApTable as ot } from "../ap-table/context.mjs";
10
- import { useTablePaging as tt } from "../ap-table/hooks/use-table-paging-ng.mjs";
11
- import { recursionApColumns as rt } from "../ap-table/utils.mjs";
1
+ import { defineComponent as xo, useSlots as Mo, ref as h, toRef as M, computed as i, unref as r, nextTick as A, watch as L, createElementBlock as U, openBlock as y, normalizeStyle as _, normalizeClass as v, createCommentVNode as pe, createElementVNode as T, createVNode as Fo, mergeProps as j, createSlots as ko, withCtx as fe, Fragment as Bo, renderList as Io, createBlock as $, resolveDynamicComponent as Ao, renderSlot as ge } from "vue";
2
+ import { AG_GRID_LOCALE_EN as To, AG_GRID_LOCALE_CN as Eo } from "@ag-grid-community/locale";
3
+ import { Pagination as No } from "@aplus-frontend/antdv";
4
+ import { useToken as Do } from "@aplus-frontend/antdv/es/theme/internal";
5
+ import { ModuleRegistry as Po, ValidationModule as zo, ColumnAutoSizeModule as Oo, PinnedRowModule as Vo, RowAutoHeightModule as Ko, RowStyleModule as Go, CellSpanModule as Wo, CellStyleModule as Ho, TooltipModule as Lo, RowSelectionModule as Uo, LocaleModule as _o, ValueCacheModule as jo, GridStateModule as $o, ColumnApiModule as qo, RowApiModule as Jo, CellApiModule as Qo, RenderApiModule as Xo, EventApiModule as Yo, ScrollApiModule as Zo, ClientSideRowModelApiModule as et, ClientSideRowModelModule as ot } from "ag-grid-community";
6
+ import { AgGridVue as tt } from "ag-grid-vue3";
7
+ import { isUndefined as F, isFunction as E, omit as rt } from "lodash-unified";
8
+ import { DEFAULT_ROW_SELECTION_CONFIG as we, sizeReverseMap as nt, sizeMap as lt } from "../ap-grid/constants.mjs";
9
+ import { useProvideApTable as at } from "../ap-table/context.mjs";
10
+ import { useTablePaging as st } from "../ap-table/hooks/use-table-paging-ng.mjs";
11
+ import { recursionApColumns as it } from "../ap-table/utils.mjs";
12
12
  import "../config-provider/index.mjs";
13
13
  import "../utils/index.mjs";
14
- import { retryUntil as lt } from "../utils/retry.mjs";
15
- import { getValidVNodeList as at } from "../utils/slot.mjs";
16
- import { ApForm as nt } from "../ap-form/index.mjs";
14
+ import { retryUntil as ut } from "../utils/retry.mjs";
15
+ import { getValidVNodeList as dt } from "../utils/slot.mjs";
16
+ import { ApForm as ct } from "../ap-form/index.mjs";
17
17
  import "./components/empty/index.vue.mjs";
18
18
  import "./components/loading/index.vue.mjs";
19
19
  import "./components/row/index.vue.mjs";
20
- import { useProvideSorter as st, useProvideExpandable as it } from "./context.mjs";
21
- import { useColumns as ut } from "./hooks/use-columns.mjs";
22
- import { useColumnsDef as dt } from "./hooks/use-columns-def.mjs";
23
- import { usePinnedRow as ct } from "./hooks/use-pinned-row.mjs";
24
- import mt from "./hooks/use-row-selection.mjs";
25
- import { useSearchForm as pt } from "./hooks/use-search-form.mjs";
26
- import ft from "./hooks/use-selection-col-def.mjs";
27
- import gt from "./hooks/use-virtual-config.mjs";
28
- import wt from "./style/index.mjs";
29
- import { useTheme as St } from "./theme.mjs";
30
- import { mergeProps as Ct } from "./utils.mjs";
31
- import { useNamespace as yt } from "../config-provider/hooks/use-namespace.mjs";
32
- import { useLocale as ht } from "../config-provider/hooks/use-locale.mjs";
33
- import { useGlobalConfig as vt } from "../config-provider/hooks/use-global-config.mjs";
34
- import { isDef as Rt } from "../utils/is.mjs";
35
- import bt from "./components/row/index.vue2.mjs";
36
- import Mt from "./components/loading/index.vue2.mjs";
37
- import xt from "./components/empty/index.vue2.mjs";
38
- const ur = /* @__PURE__ */ ho({
20
+ import { useProvideSorter as mt, useProvideExpandable as pt } from "./context.mjs";
21
+ import { useColumns as ft } from "./hooks/use-columns.mjs";
22
+ import { useColumnsDef as gt } from "./hooks/use-columns-def.mjs";
23
+ import { usePinnedRow as wt } from "./hooks/use-pinned-row.mjs";
24
+ import St from "./hooks/use-row-selection.mjs";
25
+ import { useSearchForm as Ct } from "./hooks/use-search-form.mjs";
26
+ import ht from "./hooks/use-selection-col-def.mjs";
27
+ import yt from "./hooks/use-virtual-config.mjs";
28
+ import vt from "./style/index.mjs";
29
+ import { useTheme as Rt } from "./theme.mjs";
30
+ import { runPipelineHooks as bt, runEffectHooks as q, mergeProps as xt } from "./utils.mjs";
31
+ import { useNamespace as Mt } from "../config-provider/hooks/use-namespace.mjs";
32
+ import { useLocale as Ft } from "../config-provider/hooks/use-locale.mjs";
33
+ import { useGlobalConfig as kt } from "../config-provider/hooks/use-global-config.mjs";
34
+ import { isDef as Bt } from "../utils/is.mjs";
35
+ import It from "./components/row/index.vue2.mjs";
36
+ import At from "./components/loading/index.vue2.mjs";
37
+ import Tt from "./components/empty/index.vue2.mjs";
38
+ const gr = /* @__PURE__ */ xo({
39
39
  name: "AgGrid",
40
40
  __name: "index",
41
41
  props: {
@@ -113,308 +113,312 @@ const ur = /* @__PURE__ */ ho({
113
113
  emptyComponent: {},
114
114
  emptyText: {},
115
115
  onColumnResized: {},
116
- animateRows: { type: Boolean, default: !0 }
116
+ animateRows: { type: Boolean, default: !0 },
117
+ plugins: { default: () => [] }
117
118
  },
118
- setup(ge, { expose: we }) {
119
- const Se = {
120
- "zh-cn": Io,
121
- en: Fo
119
+ setup(Se, { expose: Ce }) {
120
+ const he = {
121
+ "zh-cn": Eo,
122
+ en: To
122
123
  };
123
- To.registerModules([
124
- Eo,
125
- No,
126
- Do,
124
+ Po.registerModules([
127
125
  zo,
128
126
  Oo,
129
- Po,
127
+ Vo,
130
128
  Ko,
131
129
  Go,
132
- Vo,
133
- Lo,
134
130
  Wo,
135
131
  Ho,
132
+ Lo,
136
133
  Uo,
137
- jo,
138
134
  _o,
135
+ jo,
139
136
  $o,
140
137
  qo,
141
138
  Jo,
142
139
  Qo,
143
- Xo
140
+ Xo,
141
+ Yo,
142
+ Zo,
143
+ et,
144
+ ot
144
145
  ]);
145
- const o = ge, N = vo(), { e: D, b: d, be: Ce } = yt("ag-grid"), { lang: $ } = ht(), ye = wt("ag-grid"), R = y(o.size), he = St(
146
+ const t = Se, N = Mo(), { e: D, b: d, be: ye } = Mt("ag-grid"), { lang: J } = Ft(), ve = vt("ag-grid"), R = h(t.size), Re = Rt(
146
147
  R,
147
- x(o, "rowHeight"),
148
- x(o, "theme")
149
- ), ve = gt(x(o, "virtual")), { rowPinnedGridConfig: q, getRowPinnedCellClass: Re } = ct(
150
- x(o, "summary")
151
- ), be = vt("apGrid"), s = y(), [, Me] = Ao();
152
- let b = !!o.dataSource;
153
- const J = pt(o), {
148
+ M(t, "rowHeight"),
149
+ M(t, "theme")
150
+ ), be = yt(M(t, "virtual")), { rowPinnedGridConfig: Q, getRowPinnedCellClass: xe } = wt(
151
+ M(t, "summary")
152
+ ), Me = kt("apGrid"), s = h(), [, Fe] = Do();
153
+ let b = !!t.dataSource;
154
+ async function P(e, o = {}) {
155
+ const n = await bt(
156
+ t.plugins,
157
+ e,
158
+ (l) => l.beforeApplyColumnState?.bind(l)
159
+ );
160
+ s.value.applyColumnState({ state: n, ...o });
161
+ }
162
+ const X = Ct(t), {
154
163
  shownColumns: w,
155
- columns: Q,
156
- columnKeys: xe,
164
+ columns: Y,
165
+ columnKeys: ke,
157
166
  getTargetColumnByKey: Be,
158
- defaultSortOrder: F
159
- } = ut(o), { defaultColDef: Fe, columnDefs: Ie, gridWrapperRef: ke } = dt(
160
- Q,
161
- o,
162
- Re,
167
+ defaultSortOrder: k
168
+ } = ft(t), { defaultColDef: Ie, columnDefs: Ae, gridWrapperRef: Te } = gt(
169
+ Y,
170
+ t,
171
+ xe,
163
172
  N.headerCell
164
- ), Ae = {
173
+ ), Ee = {
165
174
  asc: "ascend",
166
175
  desc: "descend"
167
- }, X = {
176
+ }, Z = {
168
177
  ascend: "asc",
169
178
  descend: "desc"
170
179
  };
171
- function Te() {
172
- const e = F.value;
180
+ function Ne() {
181
+ const e = k.value;
173
182
  return e ? {
174
- [e.colKey]: X[e.order]
183
+ [e.colKey]: Z[e.order]
175
184
  } : {};
176
185
  }
177
- function Ee() {
178
- const e = Y.value, t = F.value;
179
- if (t && e.includes(t.field))
180
- return t;
186
+ function De() {
187
+ const e = ee.value, o = k.value;
188
+ if (o && e.includes(o.field))
189
+ return o;
181
190
  }
182
- const I = y(Te());
183
- st({
184
- sorter: I,
191
+ const B = h(Ne());
192
+ mt({
193
+ sorter: B,
185
194
  setSorter(e) {
186
- I.value = e;
195
+ B.value = e;
187
196
  }
188
197
  });
189
- function Ne() {
190
- const e = s.value.getColumns()?.filter((c) => c.getSort() != null), t = r(I) || {};
191
- let l = e?.[0];
192
- const u = Object.keys(t);
193
- if (u.length && u.every((c) => t[c] === null)) {
194
- const c = Object.keys(t)[0];
195
- c && (l = s.value?.getColumn(c));
198
+ function Pe() {
199
+ const e = s.value.getColumns()?.filter((c) => c.getSort() != null), o = r(B) || {};
200
+ let n = e?.[0];
201
+ const l = Object.keys(o);
202
+ if (l.length && l.every((c) => o[c] === null)) {
203
+ const c = Object.keys(o)[0];
204
+ c && (n = s.value?.getColumn(c));
196
205
  }
197
- if (!l)
206
+ if (!n)
198
207
  return;
199
- const i = l.getColDef(), f = l.getSort(), g = Be(i.colId);
200
- ee(void 0, void 0, {
201
- column: i,
202
- field: g?.field ?? i.field ?? i.colId,
203
- order: f ? Ae[f] : null
208
+ const u = n.getColDef(), f = n.getSort(), g = Be(u.colId);
209
+ te(void 0, void 0, {
210
+ column: u,
211
+ field: g?.field ?? u.field ?? u.colId,
212
+ order: f ? Ee[f] : null
204
213
  });
205
214
  }
206
- const Y = n(() => rt(r(w), (e) => {
215
+ const ee = i(() => it(r(w), (e) => {
207
216
  if (e.sorter === !0)
208
217
  return e.field ?? e.dataIndex ?? e.key;
209
- }).filter(Boolean)), De = () => {
210
- I.value = {};
218
+ }).filter(Boolean)), ze = () => {
219
+ B.value = {};
211
220
  const e = s.value;
212
221
  if (!e)
213
222
  return;
214
- const t = e.getColumnState()?.map((l) => ({ ...l, sort: null }));
215
- e.applyColumnState({ state: t });
216
- }, z = y({});
217
- it({ expandable: z });
218
- function ze(e) {
219
- const t = e.columnGroup;
220
- t && (z.value = {
223
+ const o = e.getColumnState()?.map((n) => ({ ...n, sort: null }));
224
+ P(o);
225
+ }, z = h({});
226
+ pt({ expandable: z });
227
+ function Oe(e) {
228
+ const o = e.columnGroup;
229
+ o && (z.value = {
221
230
  ...z.value,
222
- [t.getGroupId()]: t.isExpanded()
231
+ [o.getGroupId()]: o.isExpanded()
223
232
  });
224
233
  }
225
- const O = y(!0), Oe = n(() => Rt(o.manual) ? o.manual : at(N.searchFormExtra?.() || []).some((t) => t.type?.name === "ApView")), {
234
+ const O = h(!0), Ve = i(() => Bt(t.manual) ? t.manual : dt(N.searchFormExtra?.() || []).some((o) => o.type?.name === "ApView")), {
226
235
  formRef: S,
227
- submit: P,
236
+ submit: V,
228
237
  reset: K,
229
238
  data: m,
230
- tableProps: Z,
231
- handleTableChangeOptional: ee,
232
- submitWith: oe,
233
- refresh: te,
234
- getPaging: Pe,
235
- setPaging: Ke,
236
- setDataSource: Ge,
237
- getLastParams: Ve
238
- } = tt({
239
+ tableProps: oe,
240
+ handleTableChangeOptional: te,
241
+ submitWith: re,
242
+ refresh: ne,
243
+ getPaging: Ke,
244
+ setPaging: Ge,
245
+ setDataSource: We,
246
+ getLastParams: He
247
+ } = st({
239
248
  async request(e) {
240
- if (b = !1, C.value && !C.value.preserveSelectedRowKeys && B(o.dataSource) && !O.value && L(), O.value && (O.value = !1), !B(o.dataSource)) {
241
- const l = e.pageSize * (e.current - 1);
249
+ if (b = !1, C.value && !C.value.preserveSelectedRowKeys && F(t.dataSource) && !O.value && H(), O.value && (O.value = !1), !F(t.dataSource)) {
250
+ const n = e.pageSize * (e.current - 1);
242
251
  return {
243
- data: (o.pagination === !1 ? o.dataSource : o.dataSource.slice(l, l + e.pageSize)) || [],
244
- total: o.dataSource.length || 0
252
+ data: (t.pagination === !1 ? t.dataSource : t.dataSource.slice(n, n + e.pageSize)) || [],
253
+ total: t.dataSource.length || 0
245
254
  };
246
255
  }
247
- const t = await o.request?.(e);
256
+ const o = await t.request?.(e);
248
257
  return {
249
- data: t?.data || [],
250
- total: t?.total || 0
258
+ data: o?.data || [],
259
+ total: o?.total || 0
251
260
  };
252
261
  },
253
262
  namespace: "ap-grid",
254
- filterFields: y([]),
255
- params: x(o, "params"),
256
- defaultData: o.defaultData,
257
- manual: r(Oe),
258
- formatParams: o.beforeSearchSubmit,
259
- pagination: o.pagination,
260
- sortFields: Y,
261
- onClickReset: De,
262
- defaultSortOrder: Ee()
263
- }), C = n(() => {
264
- const e = o.rowSelection || be.value?.rowSelection;
263
+ filterFields: h([]),
264
+ params: M(t, "params"),
265
+ defaultData: t.defaultData,
266
+ manual: r(Ve),
267
+ formatParams: t.beforeSearchSubmit,
268
+ pagination: t.pagination,
269
+ sortFields: ee,
270
+ onClickReset: ze,
271
+ defaultSortOrder: De()
272
+ }), C = i(() => {
273
+ const e = t.rowSelection || Me.value?.rowSelection;
265
274
  if (e)
266
- return e === !0 ? fe : {
267
- ...fe,
275
+ return e === !0 ? we : {
276
+ ...we,
268
277
  ...e
269
278
  };
270
- }), Le = ft(o, w), We = n(
271
- () => B(o.dataSource) ? m.records : o.dataSource
279
+ }), Le = ht(t, w), Ue = i(
280
+ () => F(t.dataSource) ? m.records : t.dataSource
272
281
  ), {
273
- select: He,
274
- unSelect: Ue,
282
+ select: _e,
283
+ unSelect: je,
275
284
  selectedRows: G,
276
- selectedRowKeys: je,
277
- clearAll: _e,
278
- selectMultiByKeys: $e,
279
- selectMulti: qe,
280
- unSelectMulti: Je
281
- } = mt({
285
+ selectedRowKeys: $e,
286
+ clearAll: qe,
287
+ selectMultiByKeys: Je,
288
+ selectMulti: Qe,
289
+ unSelectMulti: Xe
290
+ } = St({
282
291
  ...C.value,
283
- dataSource: We,
284
- rowKey: o.rowKey
285
- }), Qe = {
292
+ dataSource: Ue,
293
+ rowKey: t.rowKey
294
+ }), Ye = {
286
295
  checkbox: "multiRow",
287
296
  radio: "singleRow"
288
- }, Xe = n(() => {
297
+ }, Ze = i(() => {
289
298
  const e = C.value;
290
299
  if (!e)
291
300
  return;
292
- const { type: t = "checkbox", disabled: l } = e;
301
+ const { type: o = "checkbox", disabled: n } = e;
293
302
  return {
294
- mode: Qe[t],
295
- isRowSelectable: (u) => l ? !l(u.data) : !0,
303
+ mode: Ye[o],
304
+ isRowSelectable: (l) => n ? !n(l.data) : !0,
296
305
  hideDisabledCheckboxes: e.hideDisabled ?? !1
297
306
  };
298
307
  });
299
- function V(e) {
300
- return E(o.rowKey) ? o.rowKey(e) : e[o.rowKey];
308
+ function W(e) {
309
+ return E(t.rowKey) ? t.rowKey(e) : e[t.rowKey];
301
310
  }
302
- const k = ({
311
+ const I = ({
303
312
  api: e = s.value
304
313
  }) => {
305
- if (o.onUpdate?.(), !C.value)
314
+ if (t.onUpdate?.(), !C.value)
306
315
  return;
307
- const t = G.value || [];
316
+ const o = G.value || [];
308
317
  b = !1;
309
- const l = [];
310
- e.forEachNode((u) => {
311
- const p = u.data, i = V(p), f = u.isSelected();
312
- t.find((g) => V(g) === i) ? !f && l.push(u) : f && u.setSelected(!1);
313
- }), e.setNodesSelected({ nodes: l, newValue: !0 }), setTimeout(() => {
318
+ const n = [];
319
+ e.forEachNode((l) => {
320
+ const p = l.data, u = W(p), f = l.isSelected();
321
+ o.find((g) => W(g) === u) ? !f && n.push(l) : f && l.setSelected(!1);
322
+ }), e.setNodesSelected({ nodes: n, newValue: !0 }), setTimeout(() => {
314
323
  b = !0;
315
324
  }, 0);
316
- }, Ye = (e) => {
317
- b && (e.node.isSelected() ? He(e.data) : Ue(e.data), E(C.value?.tooltip) && e.api.refreshCells({
325
+ }, eo = (e) => {
326
+ b && (e.node.isSelected() ? _e(e.data) : je(e.data), E(C.value?.tooltip) && e.api.refreshCells({
318
327
  rowNodes: [e.node],
319
328
  // todo: 取消硬编码
320
329
  columns: ["ag-Grid-SelectionColumn"],
321
330
  force: !0
322
331
  }));
323
- }, Ze = () => {
332
+ }, oo = () => {
324
333
  b = !0;
325
334
  const e = s.value;
326
- if (!e || !F.value)
335
+ if (!e || !k.value)
327
336
  return;
328
- const t = e.getColumnState(), { colKey: l, order: u } = F.value, p = t.map((i) => ({
329
- ...i,
330
- sort: i.colId === l ? X[u] : null
337
+ const o = e.getColumnState(), { colKey: n, order: l } = k.value, p = o.map((u) => ({
338
+ ...u,
339
+ sort: u.colId === n ? Z[l] : null
331
340
  }));
332
- e.applyColumnState({
333
- state: p
334
- });
335
- }, L = () => {
336
- _e(), s.value?.deselectAll();
341
+ P(p);
342
+ }, H = () => {
343
+ qe(), s.value?.deselectAll();
337
344
  };
338
- function eo(e) {
339
- $e(e), A(() => {
340
- k({});
345
+ function to(e) {
346
+ Je(e), A(() => {
347
+ I({});
341
348
  });
342
349
  }
343
- const oo = n(() => {
344
- const e = o.customRow;
350
+ const ro = i(() => {
351
+ const e = t.customRow;
345
352
  return e ? {
346
353
  isFullWidthRow: e.isCustomRow,
347
- fullWidthCellRenderer: bt,
354
+ fullWidthCellRenderer: It,
348
355
  fullWidthCellRendererParams: {
349
356
  render: e.render
350
357
  }
351
358
  } : {};
352
359
  });
353
- function to(e) {
354
- qe(e), A(() => {
355
- k({});
360
+ function no(e) {
361
+ Qe(e), A(() => {
362
+ I({});
356
363
  });
357
364
  }
358
- function ro(e) {
359
- Je(e), A(() => {
360
- k({});
365
+ function lo(e) {
366
+ Xe(e), A(() => {
367
+ I({});
361
368
  });
362
369
  }
363
- function re(e = !1) {
364
- const t = e ? "getFieldsValueTransformed" : "getFieldsValue";
365
- return S.value?.apForm?.[t]?.(!0);
370
+ function le(e = !1) {
371
+ const o = e ? "getFieldsValueTransformed" : "getFieldsValue";
372
+ return S.value?.apForm?.[o]?.(!0);
366
373
  }
367
- function le(e) {
374
+ function ae(e) {
368
375
  S.value?.apForm?.setFieldsValue?.(e);
369
376
  }
370
- function ae() {
377
+ function se() {
371
378
  return S.value?.getSorterItems() || [];
372
379
  }
373
- function ne(e) {
380
+ function ie(e) {
374
381
  S.value?.setSorterItems(e);
375
382
  }
376
- function se() {
383
+ function ue() {
377
384
  S.value?.resetSorterItems();
378
385
  }
379
- function ie(e) {
386
+ function de(e) {
380
387
  return e && String(e);
381
388
  }
382
- function lo(e) {
383
- const t = s.value;
384
- if (!t)
389
+ function ao(e) {
390
+ const o = s.value;
391
+ if (!o)
385
392
  return;
386
- const l = t.getColumnState() || [], u = e.map((a) => a.key ? String(a.key) : a.key).filter(Boolean), p = l.map((a) => {
387
- if (!xe.value.includes(a.colId))
393
+ const n = o.getColumnState() || [], l = e.map((a) => a.key ? String(a.key) : a.key).filter(Boolean), p = n.map((a) => {
394
+ if (!ke.value.includes(a.colId))
388
395
  return a;
389
- const M = !u.includes(a.colId), ue = {
396
+ const x = !l.includes(a.colId), ce = {
390
397
  ...a,
391
- hide: M
392
- }, de = e.find(
393
- (yo) => ie(yo.key) === a.colId
398
+ hide: x
399
+ }, me = e.find(
400
+ (bo) => de(bo.key) === a.colId
394
401
  );
395
- return de && (ue.pinned = de.fixed || null), ue;
396
- }), i = new Map(
397
- e.map((a, M) => [ie(a.key), M])
398
- ), f = p.filter((a) => i.has(a.colId)).sort(
399
- (a, M) => i.get(a.colId) - i.get(M.colId)
402
+ return me && (ce.pinned = me.fixed || null), ce;
403
+ }), u = new Map(
404
+ e.map((a, x) => [de(a.key), x])
405
+ ), f = p.filter((a) => u.has(a.colId)).sort(
406
+ (a, x) => u.get(a.colId) - u.get(x.colId)
400
407
  ), g = [];
401
408
  let c = 0;
402
409
  for (const a of p)
403
- i.has(a.colId) ? g.push(f[c++]) : g.push(a);
404
- t.applyColumnState({
405
- state: g,
406
- applyOrder: !0
407
- });
410
+ u.has(a.colId) ? g.push(f[c++]) : g.push(a);
411
+ P(g, { applyOrder: !0 });
408
412
  }
409
- ot({
410
- columns: n(() => w.value),
411
- columnsBackup: n(() => Q.value),
412
- size: n(() => et[R.value]),
413
+ at({
414
+ columns: i(() => w.value),
415
+ columnsBackup: i(() => Y.value),
416
+ size: i(() => lt[R.value]),
413
417
  updateColumns(e) {
414
- w.value = e, o.onShownColumnsChange?.(e), lt(
418
+ w.value = e, t.onShownColumnsChange?.(e), ut(
415
419
  () => s.value,
416
420
  () => {
417
- lo(e);
421
+ ao(e);
418
422
  },
419
423
  {
420
424
  interval: 17
@@ -422,223 +426,237 @@ const ur = /* @__PURE__ */ ho({
422
426
  );
423
427
  },
424
428
  updateSize(e) {
425
- R.value = Zo[e];
429
+ R.value = nt[e];
426
430
  },
427
- renderConfig: n(() => ({
428
- className: Ce("table-header", "title"),
429
- color: Me.value.colorTextTertiary
431
+ renderConfig: i(() => ({
432
+ className: ye("table-header", "title"),
433
+ color: Fe.value.colorTextTertiary
430
434
  })),
431
- dataSource: n(() => r(m).records),
432
- getSearchFormValues: re,
433
- setSearchFormValues: le,
434
- submit: P,
435
- submitWith: oe,
435
+ dataSource: i(() => r(m).records),
436
+ getSearchFormValues: le,
437
+ setSearchFormValues: ae,
438
+ submit: V,
439
+ submitWith: re,
436
440
  reset: K,
437
- refresh: te,
438
- getSearchFormSorterItems: ae,
439
- setSearchFormSorterItems: ne,
440
- resetSearchFormSorterItems: se,
441
- getLastParams: Ve
441
+ refresh: ne,
442
+ getSearchFormSorterItems: se,
443
+ setSearchFormSorterItems: ie,
444
+ resetSearchFormSorterItems: ue,
445
+ getLastParams: He
442
446
  });
443
- const ao = n(
444
- () => B(o.loading) ? m.loading : o.loading
445
- ), no = n(() => [
447
+ const so = i(
448
+ () => F(t.loading) ? m.loading : t.loading
449
+ ), io = i(() => [
446
450
  d(),
447
- o.card ? null : d("wrapper"),
451
+ t.card ? null : d("wrapper"),
448
452
  d("adaptive"),
449
453
  d(`size-${R.value}`),
450
- o.autoHeight && m.records.length ? d("auto-height") : null,
451
- ye.value
452
- ].filter(Boolean)), so = n(() => ({
454
+ t.autoHeight && m.records.length ? d("auto-height") : null,
455
+ ve.value
456
+ ].filter(Boolean)), uo = i(() => ({
453
457
  height: "100%",
454
- ...o.tableStyle || {}
455
- })), io = (e, t) => {
456
- ee({ current: e, pageSize: t });
458
+ ...t.tableStyle || {}
459
+ })), co = (e, o) => {
460
+ te({ current: e, pageSize: o });
457
461
  };
458
- function uo(e) {
459
- const t = e.data;
460
- return V(t);
462
+ function mo(e) {
463
+ const o = e.data;
464
+ return W(o);
461
465
  }
462
- function co(e, t) {
463
- (E(e) ? s.value?.ensureNodeVisible : s.value?.ensureIndexVisible)?.(e, t);
466
+ function po(e, o) {
467
+ (E(e) ? s.value?.ensureNodeVisible : s.value?.ensureIndexVisible)?.(e, o);
464
468
  }
465
- function mo(e, t) {
466
- s.value?.ensureColumnVisible(e, t);
469
+ function fo(e, o) {
470
+ s.value?.ensureColumnVisible(e, o);
467
471
  }
468
- function po(e) {
469
- o.onRowClicked?.(e.data, e.event);
472
+ function go(e) {
473
+ t.onRowClicked?.(e.data, e.event);
470
474
  }
471
- function fo(e) {
472
- o.onScrollEnd?.(e.direction);
475
+ function wo(e) {
476
+ t.onScrollEnd?.(e.direction);
473
477
  }
474
- function go(e) {
478
+ function So(e) {
475
479
  return s.value?.refreshCells(e);
476
480
  }
477
- function wo(e) {
481
+ function Co(e) {
478
482
  return s.value?.redrawRows(e);
479
483
  }
480
- function So({ finished: e, column: t }) {
481
- !e || !t || o.onColumnResized?.(t.getColId(), t.getActualWidth());
484
+ function ho({ finished: e, column: o }) {
485
+ !e || !o || (q(
486
+ t.plugins,
487
+ (n) => n.onColumnResized?.bind(n),
488
+ o.getColId(),
489
+ o.getActualWidth()
490
+ ), t.onColumnResized?.(o.getColId(), o.getActualWidth()));
482
491
  }
483
- const Co = (e) => {
484
- const t = [
485
- q.value.getRowClass?.(e)
492
+ const yo = (e) => {
493
+ const o = [
494
+ Q.value.getRowClass?.(e)
486
495
  ];
487
496
  if (!e.node.rowPinned) {
488
- const l = E(o.rowClassName) ? o.rowClassName(e.data, e.rowIndex) : o.rowClassName;
489
- t.push(l);
497
+ const n = E(t.rowClassName) ? t.rowClassName(e.data, e.rowIndex) : t.rowClassName;
498
+ o.push(n);
490
499
  }
491
- return t.flat().filter(Boolean);
500
+ return o.flat().filter(Boolean);
501
+ }, vo = ({ api: e }) => {
502
+ s.value = e, q(t.plugins, (o) => o.init?.bind(o), e);
503
+ }, Ro = (e, o, n) => {
504
+ q(
505
+ t.plugins,
506
+ (l) => l.searchParamsChange?.bind(this),
507
+ o
508
+ ), t.searchForm && t.searchForm.onValuesChange?.(e, o, n);
492
509
  };
493
- return W(
494
- () => o.dataSource,
510
+ return L(
511
+ () => t.dataSource,
495
512
  (e) => {
496
513
  A(() => {
497
- Ge(e, !0);
514
+ We(e, !0);
498
515
  });
499
516
  },
500
517
  { immediate: !0, deep: !0 }
501
- ), W(
502
- () => o.size,
518
+ ), L(
519
+ () => t.size,
503
520
  (e) => {
504
521
  R.value = e;
505
522
  }
506
- ), W(
523
+ ), L(
507
524
  () => r(m).loading,
508
525
  (e) => {
509
- o.onLoadingChange?.(e);
526
+ t.onLoadingChange?.(e);
510
527
  }
511
- ), we({
512
- submit: P,
528
+ ), Ce({
529
+ submit: V,
513
530
  reset: K,
514
- refresh: te,
515
- submitWith: oe,
516
- setSearchFormValues: le,
517
- getSearchFormValues: re,
531
+ refresh: ne,
532
+ submitWith: re,
533
+ setSearchFormValues: ae,
534
+ getSearchFormValues: le,
518
535
  getShowColumns: () => r(w),
519
536
  rowSelection: {
520
- selectedRows: n(() => G.value),
521
- setSelectedRowKeys: eo,
522
- setSelectedRows: to,
523
- clearAll: L,
524
- unSelectRows: ro
537
+ selectedRows: i(() => G.value),
538
+ setSelectedRowKeys: to,
539
+ setSelectedRows: no,
540
+ clearAll: H,
541
+ unSelectRows: lo
525
542
  },
526
- scrollToRow: co,
527
- scrollToColumn: mo,
543
+ scrollToRow: po,
544
+ scrollToColumn: fo,
528
545
  getDataSource: () => r(m.records),
529
- getPaging: Pe,
530
- setPaging: Ke,
531
- getSearchFormSorterItems: ae,
532
- setSearchFormSorterItems: ne,
533
- resetSearchFormSorterItems: se,
534
- refreshCells: go,
535
- redrawRows: wo,
536
- _internalGridApi: n(() => s.value)
537
- }), (e, t) => (h(), H("div", {
538
- class: v(no.value),
539
- style: U(e.wrapperStyle)
546
+ getPaging: Ke,
547
+ setPaging: Ge,
548
+ getSearchFormSorterItems: se,
549
+ setSearchFormSorterItems: ie,
550
+ resetSearchFormSorterItems: ue,
551
+ refreshCells: So,
552
+ redrawRows: Co,
553
+ _internalGridApi: i(() => s.value)
554
+ }), (e, o) => (y(), U("div", {
555
+ class: v(io.value),
556
+ style: _(e.wrapperStyle)
540
557
  }, [
541
- r(B)(e.dataSource) && e.searchForm !== !1 && r(J).length > 0 ? (h(), H("div", {
558
+ r(F)(e.dataSource) && e.searchForm !== !1 && r(X).length > 0 ? (y(), U("div", {
542
559
  key: 0,
543
560
  class: v(e.card ? r(D)("search-wrapper") : null),
544
- style: U(e.searchFormWrapperStyle)
561
+ style: _(e.searchFormWrapperStyle)
545
562
  }, [
546
- Ro(r(nt).SearchForm, j(e.searchForm || {}, {
563
+ Fo(r(ct).SearchForm, j(r(rt)(e.searchForm || {}, ["onValuesChange"]), {
547
564
  ref_key: "formRef",
548
565
  ref: S,
549
566
  "custom-reset": "",
550
- "submit-loading": r(Z).loading,
551
- onSubmit: r(P),
552
- onReset: r(K)
553
- }), bo({
554
- default: me(() => [
555
- (h(!0), H(Mo, null, xo(r(J), (l) => (h(), _(Bo(l.renderNode), {
556
- key: l.dataIndex
567
+ "submit-loading": r(oe).loading,
568
+ onSubmit: r(V),
569
+ onReset: r(K),
570
+ onValuesChange: Ro
571
+ }), ko({
572
+ default: fe(() => [
573
+ (y(!0), U(Bo, null, Io(r(X), (n) => (y(), $(Ao(n.renderNode), {
574
+ key: n.dataIndex
557
575
  }))), 128))
558
576
  ]),
559
577
  _: 2
560
578
  }, [
561
579
  N.searchFormExtra ? {
562
580
  name: "extra",
563
- fn: me(() => [
564
- pe(e.$slots, "searchFormExtra")
581
+ fn: fe(() => [
582
+ ge(e.$slots, "searchFormExtra")
565
583
  ]),
566
584
  key: "0"
567
585
  } : void 0
568
586
  ]), 1040, ["submit-loading", "onSubmit", "onReset"])
569
- ], 6)) : ce("", !0),
587
+ ], 6)) : pe("", !0),
570
588
  T("div", {
571
589
  class: v([r(D)("table-wrapper"), e.card ? r(D)("table-wrapper-card") : null]),
572
- style: U(e.tableWrapperStyle)
590
+ style: _(e.tableWrapperStyle)
573
591
  }, [
574
592
  T("div", {
575
593
  class: v(r(d)("header-wrapper"))
576
594
  }, [
577
- pe(e.$slots, "title", {
595
+ ge(e.$slots, "title", {
578
596
  selectedRows: r(G),
579
- selectedRowKeys: r(je),
597
+ selectedRowKeys: r($e),
580
598
  shownColumns: r(w),
581
- clearAll: L
599
+ clearAll: H
582
600
  })
583
601
  ], 2),
584
602
  T("div", {
585
603
  ref_key: "gridWrapperRef",
586
- ref: ke,
604
+ ref: Te,
587
605
  class: v(r(d)("grid-wrapper"))
588
606
  }, [
589
- (h(), _(r(Yo), j(
590
- r(Ct)(r(ve), r(q), oo.value),
607
+ (y(), $(r(tt), j(
608
+ r(xt)(r(be), r(Q), ro.value),
591
609
  {
592
- key: r($),
610
+ key: r(J),
593
611
  "animate-rows": e.animateRows,
594
- "get-row-class": Co,
595
- style: so.value,
612
+ "get-row-class": yo,
613
+ style: uo.value,
596
614
  "row-data": r(m).records,
597
- "column-defs": r(Ie),
598
- "default-col-def": r(Fe),
615
+ "column-defs": r(Ae),
616
+ "default-col-def": r(Ie),
599
617
  "suppress-loading-overlay": "",
600
- "row-selection": Xe.value,
618
+ "row-selection": Ze.value,
601
619
  "selection-column-def": r(Le),
602
- "get-row-id": uo,
603
- "get-row-height": o.getRowHeight,
604
- theme: r(he),
620
+ "get-row-id": mo,
621
+ "get-row-height": t.getRowHeight,
622
+ theme: r(Re),
605
623
  "tooltip-show-delay": 500,
606
624
  "enable-browser-tooltips": e.browserTooltips,
607
625
  "tooltip-interaction": "",
608
626
  "row-class-rules": e.rowClassRules,
609
- "no-rows-overlay-component": xt,
627
+ "no-rows-overlay-component": Tt,
610
628
  "no-rows-overlay-component-params": { emptyComponent: e.emptyComponent, emptyText: e.emptyText },
611
- "loading-overlay-component": Mt,
612
- loading: ao.value,
629
+ "loading-overlay-component": At,
630
+ loading: so.value,
613
631
  "suppress-cell-focus": "",
614
632
  "tab-to-next-cell": () => !1,
615
633
  "enable-cell-span": "",
616
634
  "dom-layout": e.autoHeight ? "autoHeight" : "normal",
617
- "locale-text": Se[r($)],
618
- onSortChanged: Ne,
619
- onGridReady: t[0] || (t[0] = (l) => s.value = l.api),
620
- onRowDataUpdated: k,
621
- onRowSelected: Ye,
622
- onFirstDataRendered: Ze,
623
- onRowClicked: po,
624
- onBodyScrollEnd: fo,
625
- onColumnResized: So,
626
- onColumnGroupOpened: ze
635
+ "locale-text": he[r(J)],
636
+ onSortChanged: Pe,
637
+ onGridReady: vo,
638
+ onRowDataUpdated: I,
639
+ onRowSelected: eo,
640
+ onFirstDataRendered: oo,
641
+ onRowClicked: go,
642
+ onBodyScrollEnd: wo,
643
+ onColumnResized: ho,
644
+ onColumnGroupOpened: Oe
627
645
  }
628
646
  ), null, 16, ["animate-rows", "style", "row-data", "column-defs", "default-col-def", "row-selection", "selection-column-def", "get-row-height", "theme", "enable-browser-tooltips", "row-class-rules", "no-rows-overlay-component-params", "loading", "dom-layout", "locale-text"]))
629
647
  ], 2),
630
648
  T("div", {
631
649
  class: v(r(d)("pagination-wrapper"))
632
650
  }, [
633
- e.pagination !== !1 ? (h(), _(r(ko), j({
651
+ e.pagination !== !1 ? (y(), $(r(No), j({
634
652
  key: 0,
635
653
  class: r(d)("pagination")
636
- }, r(Z).pagination, { onChange: io }), null, 16, ["class"])) : ce("", !0)
654
+ }, r(oe).pagination, { onChange: co }), null, 16, ["class"])) : pe("", !0)
637
655
  ], 2)
638
656
  ], 6)
639
657
  ], 6));
640
658
  }
641
659
  });
642
660
  export {
643
- ur as default
661
+ gr as default
644
662
  };