@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.
- package/es/src/ag-grid/context.mjs +1 -1
- package/es/src/ag-grid/editable/form-item.vue.d.ts +2 -4
- package/es/src/ag-grid/editable/form-item.vue.mjs +88 -77
- package/es/src/ag-grid/editable/index.vue.d.ts +2 -4
- package/es/src/ag-grid/editable/index.vue.mjs +9 -8
- package/es/src/ag-grid/editable/interface.d.ts +15 -1
- package/es/src/ag-grid/hooks/use-columns.mjs +31 -23
- package/es/src/ag-grid/hooks/use-pinned-row.mjs +2 -2
- package/es/src/ag-grid/index.vue.d.ts +2 -4
- package/es/src/ag-grid/index.vue.mjs +353 -335
- package/es/src/ag-grid/interface.d.ts +40 -1
- package/es/src/ag-grid/utils.d.ts +18 -0
- package/es/src/ag-grid/utils.mjs +39 -18
- package/es/src/ap-field/cascader/use-options.d.ts +4 -4
- package/es/src/ap-field/date/index.vue.d.ts +0 -1
- package/es/src/ap-field/date-range/index.vue.d.ts +0 -1
- package/es/src/ap-field/select/use-select-options.d.ts +2 -2
- package/es/src/ap-field/text/password.vue.d.ts +4 -4
- package/es/src/ap-field/tree-select/use-request.d.ts +4 -4
- package/es/src/ap-form/ap-form.vue.d.ts +1 -2
- package/es/src/ap-form/ap-form.vue2.mjs +63 -61
- package/es/src/ap-form/context.mjs +1 -1
- package/es/src/ap-form/drawer-form/index.vue.d.ts +3 -4
- package/es/src/ap-form/interface.d.ts +4 -0
- package/es/src/ap-form/item/index.vue.d.ts +6 -6
- package/es/src/ap-form/item-group/helper.mjs +2 -2
- package/es/src/ap-form/items/date/index.vue.d.ts +9 -11
- package/es/src/ap-form/items/date-range/index.vue.d.ts +13 -15
- package/es/src/ap-form/items/number/index.vue.d.ts +2 -3
- package/es/src/ap-form/items/select/index.vue.d.ts +8 -8
- package/es/src/ap-form/modal-form/index.vue.d.ts +3 -4
- package/es/src/ap-form/provider/context.mjs +1 -1
- package/es/src/ap-form/search-form/index.vue.d.ts +3 -4
- package/es/src/ap-grid/editable/form-item.vue.d.ts +2 -4
- package/es/src/ap-grid/editable/index.vue.d.ts +2 -4
- package/es/src/ap-grid/index.vue.d.ts +2 -4
- package/es/src/ap-grid/utils/table.mjs +2 -2
- package/es/src/ap-list/index.vue.d.ts +2 -4
- package/es/src/ap-modal/utils/confirm.d.ts +1 -1
- package/es/src/ap-pro-card/components/card/index.vue2.mjs +2 -2
- package/es/src/ap-table/ap-table.vue.d.ts +2 -4
- package/es/src/ap-table/components/setting/context.d.ts +1 -1
- package/es/src/ap-table/components/setting/context.mjs +1 -1
- package/es/src/ap-table/components/setting/modal/index.vue.mjs +127 -117
- package/es/src/ap-table/components/setting/sorter/context.mjs +1 -1
- package/es/src/ap-table/components/setting/template/edit-form.vue.d.ts +2 -3
- package/es/src/ap-table/constants.d.ts +20 -22
- package/es/src/ap-table/context.mjs +1 -1
- package/es/src/ap-table/hooks/use-table-paging-ng.mjs +9 -9
- package/es/src/ap-table/hooks/use-table-template-storage.d.ts +9 -9
- package/es/src/ap-table/hooks/use-table-template-storage.mjs +102 -95
- package/es/src/ap-table/utils.mjs +1 -1
- package/es/src/business/ag-grid-modal/hooks/use-ag-grid-instance.mjs +1 -1
- package/es/src/business/ap-batch-action-group/index.d.ts +3 -3
- package/es/src/business/ap-download/hooks/index.mjs +1 -1
- package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +1 -1
- package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue2.mjs +1 -3
- package/es/src/business/ap-draggable-grid/index.d.ts +1 -1
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
- package/es/src/business/ap-keep-alive/hook.mjs +1 -1
- package/es/src/business/ap-keep-alive/utils.mjs +1 -1
- package/es/src/business/ap-select-layout/index.d.ts +2 -4
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
- package/es/src/business/ap-table-modal/index.d.ts +17 -5
- package/es/src/business/ap-upload/components/MultipleFile.vue.d.ts +1 -1
- package/es/src/business/ap-upload/components/MultipleFile.vue2.mjs +128 -112
- package/es/src/business/ap-value-select-card/index.vue.d.ts +2 -4
- package/es/src/business/ap-view/ap-view.vue.d.ts +1 -1
- package/es/src/business/ap-view/ap-view.vue2.mjs +87 -81
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +2 -3
- package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -3
- package/es/src/business/ap-view/hooks/use-send-to-url.d.ts +2 -0
- package/es/src/business/ap-view/hooks/use-send-to-url.mjs +46 -30
- package/es/src/business/ap-view/hooks/use-view-provide.mjs +1 -1
- package/es/src/business/ap-view/index.d.ts +3 -3
- package/es/src/business/ap-view/interface.d.ts +7 -1
- package/es/src/check-card/context.mjs +1 -1
- package/es/src/config-provider/constants.mjs +1 -1
- package/es/src/config-provider/hooks/use-locale.mjs +1 -1
- package/es/src/config-provider/hooks/use-namespace.d.ts +5 -1
- package/es/src/config-provider/hooks/use-namespace.mjs +1 -1
- package/es/src/config-provider/hooks/use-token.mjs +1 -1
- package/es/src/editable-table/form-item.vue.d.ts +2 -4
- package/es/src/editable-table/index.vue.d.ts +2 -4
- package/es/src/editable-table/utils.mjs +1 -1
- package/es/src/scroll-view/index.vue.d.ts +5 -5
- package/es/src/tests/wrapper.d.ts +4 -4
- package/es/src/text/context.mjs +1 -1
- package/es/src/time-ago/useTimeAgo.mjs +1 -1
- package/es/src/type.d.ts +1 -0
- package/es/src/utils/slot.mjs +1 -1
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/src/ag-grid/editable/form-item.vue.d.ts +2 -4
- package/lib/src/ag-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ag-grid/editable/index.vue.d.ts +2 -4
- package/lib/src/ag-grid/editable/index.vue.js +1 -1
- package/lib/src/ag-grid/editable/interface.d.ts +15 -1
- package/lib/src/ag-grid/hooks/use-columns.js +1 -1
- package/lib/src/ag-grid/hooks/use-pinned-row.js +1 -1
- package/lib/src/ag-grid/index.vue.d.ts +2 -4
- package/lib/src/ag-grid/index.vue.js +1 -1
- package/lib/src/ag-grid/interface.d.ts +40 -1
- package/lib/src/ag-grid/utils.d.ts +18 -0
- package/lib/src/ag-grid/utils.js +1 -1
- package/lib/src/ap-field/cascader/use-options.d.ts +4 -4
- package/lib/src/ap-field/date/index.vue.d.ts +0 -1
- package/lib/src/ap-field/date-range/index.vue.d.ts +0 -1
- package/lib/src/ap-field/select/use-select-options.d.ts +2 -2
- package/lib/src/ap-field/text/password.vue.d.ts +4 -4
- package/lib/src/ap-field/tree-select/use-request.d.ts +4 -4
- package/lib/src/ap-form/ap-form.vue.d.ts +1 -2
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +3 -4
- package/lib/src/ap-form/interface.d.ts +4 -0
- package/lib/src/ap-form/item/index.vue.d.ts +6 -6
- package/lib/src/ap-form/items/date/index.vue.d.ts +9 -11
- package/lib/src/ap-form/items/date-range/index.vue.d.ts +13 -15
- package/lib/src/ap-form/items/number/index.vue.d.ts +2 -3
- package/lib/src/ap-form/items/select/index.vue.d.ts +8 -8
- package/lib/src/ap-form/modal-form/index.vue.d.ts +3 -4
- package/lib/src/ap-form/search-form/index.vue.d.ts +3 -4
- package/lib/src/ap-grid/editable/form-item.vue.d.ts +2 -4
- package/lib/src/ap-grid/editable/index.vue.d.ts +2 -4
- package/lib/src/ap-grid/index.vue.d.ts +2 -4
- package/lib/src/ap-grid/utils/table.js +1 -1
- package/lib/src/ap-list/index.vue.d.ts +2 -4
- package/lib/src/ap-modal/utils/confirm.d.ts +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +2 -4
- package/lib/src/ap-table/components/setting/context.d.ts +1 -1
- package/lib/src/ap-table/components/setting/modal/index.vue.js +1 -1
- package/lib/src/ap-table/components/setting/template/edit-form.vue.d.ts +2 -3
- package/lib/src/ap-table/constants.d.ts +20 -22
- package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
- package/lib/src/ap-table/hooks/use-table-template-storage.d.ts +9 -9
- package/lib/src/ap-table/hooks/use-table-template-storage.js +1 -1
- package/lib/src/business/ap-batch-action-group/index.d.ts +3 -3
- package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +1 -1
- package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue2.js +1 -1
- package/lib/src/business/ap-draggable-grid/index.d.ts +1 -1
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
- package/lib/src/business/ap-select-layout/index.d.ts +2 -4
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
- package/lib/src/business/ap-table-modal/index.d.ts +17 -5
- package/lib/src/business/ap-upload/components/MultipleFile.vue.d.ts +1 -1
- package/lib/src/business/ap-upload/components/MultipleFile.vue2.js +1 -1
- package/lib/src/business/ap-value-select-card/index.vue.d.ts +2 -4
- package/lib/src/business/ap-view/ap-view.vue.d.ts +1 -1
- package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
- package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +2 -3
- package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -3
- package/lib/src/business/ap-view/hooks/use-send-to-url.d.ts +2 -0
- package/lib/src/business/ap-view/hooks/use-send-to-url.js +1 -1
- package/lib/src/business/ap-view/index.d.ts +3 -3
- package/lib/src/business/ap-view/interface.d.ts +7 -1
- package/lib/src/config-provider/hooks/use-namespace.d.ts +5 -1
- package/lib/src/editable-table/form-item.vue.d.ts +2 -4
- package/lib/src/editable-table/index.vue.d.ts +2 -4
- package/lib/src/scroll-view/index.vue.d.ts +5 -5
- package/lib/src/tests/wrapper.d.ts +4 -4
- package/lib/src/time-ago/useTimeAgo.js +1 -1
- package/lib/src/type.d.ts +1 -0
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +1 -1
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { AG_GRID_LOCALE_EN as
|
|
3
|
-
import { Pagination as
|
|
4
|
-
import { useToken as
|
|
5
|
-
import { ModuleRegistry as
|
|
6
|
-
import { AgGridVue as
|
|
7
|
-
import { isUndefined as
|
|
8
|
-
import { DEFAULT_ROW_SELECTION_CONFIG as
|
|
9
|
-
import { useProvideApTable as
|
|
10
|
-
import { useTablePaging as
|
|
11
|
-
import { recursionApColumns as
|
|
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
|
|
15
|
-
import { getValidVNodeList as
|
|
16
|
-
import { ApForm as
|
|
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
|
|
21
|
-
import { useColumns as
|
|
22
|
-
import { useColumnsDef as
|
|
23
|
-
import { usePinnedRow as
|
|
24
|
-
import
|
|
25
|
-
import { useSearchForm as
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import { useTheme as
|
|
30
|
-
import { mergeProps as
|
|
31
|
-
import { useNamespace as
|
|
32
|
-
import { useLocale as
|
|
33
|
-
import { useGlobalConfig as
|
|
34
|
-
import { isDef as
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
const
|
|
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(
|
|
119
|
-
const
|
|
120
|
-
"zh-cn":
|
|
121
|
-
en:
|
|
119
|
+
setup(Se, { expose: Ce }) {
|
|
120
|
+
const he = {
|
|
121
|
+
"zh-cn": Eo,
|
|
122
|
+
en: To
|
|
122
123
|
};
|
|
123
|
-
|
|
124
|
-
Eo,
|
|
125
|
-
No,
|
|
126
|
-
Do,
|
|
124
|
+
Po.registerModules([
|
|
127
125
|
zo,
|
|
128
126
|
Oo,
|
|
129
|
-
|
|
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
|
|
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
|
-
|
|
148
|
-
|
|
149
|
-
),
|
|
150
|
-
|
|
151
|
-
),
|
|
152
|
-
let b = !!
|
|
153
|
-
|
|
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:
|
|
156
|
-
columnKeys:
|
|
164
|
+
columns: Y,
|
|
165
|
+
columnKeys: ke,
|
|
157
166
|
getTargetColumnByKey: Be,
|
|
158
|
-
defaultSortOrder:
|
|
159
|
-
} =
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
167
|
+
defaultSortOrder: k
|
|
168
|
+
} = ft(t), { defaultColDef: Ie, columnDefs: Ae, gridWrapperRef: Te } = gt(
|
|
169
|
+
Y,
|
|
170
|
+
t,
|
|
171
|
+
xe,
|
|
163
172
|
N.headerCell
|
|
164
|
-
),
|
|
173
|
+
), Ee = {
|
|
165
174
|
asc: "ascend",
|
|
166
175
|
desc: "descend"
|
|
167
|
-
},
|
|
176
|
+
}, Z = {
|
|
168
177
|
ascend: "asc",
|
|
169
178
|
descend: "desc"
|
|
170
179
|
};
|
|
171
|
-
function
|
|
172
|
-
const e =
|
|
180
|
+
function Ne() {
|
|
181
|
+
const e = k.value;
|
|
173
182
|
return e ? {
|
|
174
|
-
[e.colKey]:
|
|
183
|
+
[e.colKey]: Z[e.order]
|
|
175
184
|
} : {};
|
|
176
185
|
}
|
|
177
|
-
function
|
|
178
|
-
const e =
|
|
179
|
-
if (
|
|
180
|
-
return
|
|
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
|
|
183
|
-
|
|
184
|
-
sorter:
|
|
191
|
+
const B = h(Ne());
|
|
192
|
+
mt({
|
|
193
|
+
sorter: B,
|
|
185
194
|
setSorter(e) {
|
|
186
|
-
|
|
195
|
+
B.value = e;
|
|
187
196
|
}
|
|
188
197
|
});
|
|
189
|
-
function
|
|
190
|
-
const e = s.value.getColumns()?.filter((c) => c.getSort() != null),
|
|
191
|
-
let
|
|
192
|
-
const
|
|
193
|
-
if (
|
|
194
|
-
const c = Object.keys(
|
|
195
|
-
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 (!
|
|
206
|
+
if (!n)
|
|
198
207
|
return;
|
|
199
|
-
const
|
|
200
|
-
|
|
201
|
-
column:
|
|
202
|
-
field: g?.field ??
|
|
203
|
-
order: f ?
|
|
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
|
|
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)),
|
|
210
|
-
|
|
218
|
+
}).filter(Boolean)), ze = () => {
|
|
219
|
+
B.value = {};
|
|
211
220
|
const e = s.value;
|
|
212
221
|
if (!e)
|
|
213
222
|
return;
|
|
214
|
-
const
|
|
215
|
-
|
|
216
|
-
}, z =
|
|
217
|
-
|
|
218
|
-
function
|
|
219
|
-
const
|
|
220
|
-
|
|
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
|
-
[
|
|
231
|
+
[o.getGroupId()]: o.isExpanded()
|
|
223
232
|
});
|
|
224
233
|
}
|
|
225
|
-
const O =
|
|
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:
|
|
236
|
+
submit: V,
|
|
228
237
|
reset: K,
|
|
229
238
|
data: m,
|
|
230
|
-
tableProps:
|
|
231
|
-
handleTableChangeOptional:
|
|
232
|
-
submitWith:
|
|
233
|
-
refresh:
|
|
234
|
-
getPaging:
|
|
235
|
-
setPaging:
|
|
236
|
-
setDataSource:
|
|
237
|
-
getLastParams:
|
|
238
|
-
} =
|
|
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 &&
|
|
241
|
-
const
|
|
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: (
|
|
244
|
-
total:
|
|
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
|
|
256
|
+
const o = await t.request?.(e);
|
|
248
257
|
return {
|
|
249
|
-
data:
|
|
250
|
-
total:
|
|
258
|
+
data: o?.data || [],
|
|
259
|
+
total: o?.total || 0
|
|
251
260
|
};
|
|
252
261
|
},
|
|
253
262
|
namespace: "ap-grid",
|
|
254
|
-
filterFields:
|
|
255
|
-
params:
|
|
256
|
-
defaultData:
|
|
257
|
-
manual: r(
|
|
258
|
-
formatParams:
|
|
259
|
-
pagination:
|
|
260
|
-
sortFields:
|
|
261
|
-
onClickReset:
|
|
262
|
-
defaultSortOrder:
|
|
263
|
-
}), C =
|
|
264
|
-
const e =
|
|
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 ?
|
|
267
|
-
...
|
|
275
|
+
return e === !0 ? we : {
|
|
276
|
+
...we,
|
|
268
277
|
...e
|
|
269
278
|
};
|
|
270
|
-
}), Le =
|
|
271
|
-
() =>
|
|
279
|
+
}), Le = ht(t, w), Ue = i(
|
|
280
|
+
() => F(t.dataSource) ? m.records : t.dataSource
|
|
272
281
|
), {
|
|
273
|
-
select:
|
|
274
|
-
unSelect:
|
|
282
|
+
select: _e,
|
|
283
|
+
unSelect: je,
|
|
275
284
|
selectedRows: G,
|
|
276
|
-
selectedRowKeys:
|
|
277
|
-
clearAll:
|
|
278
|
-
selectMultiByKeys:
|
|
279
|
-
selectMulti:
|
|
280
|
-
unSelectMulti:
|
|
281
|
-
} =
|
|
285
|
+
selectedRowKeys: $e,
|
|
286
|
+
clearAll: qe,
|
|
287
|
+
selectMultiByKeys: Je,
|
|
288
|
+
selectMulti: Qe,
|
|
289
|
+
unSelectMulti: Xe
|
|
290
|
+
} = St({
|
|
282
291
|
...C.value,
|
|
283
|
-
dataSource:
|
|
284
|
-
rowKey:
|
|
285
|
-
}),
|
|
292
|
+
dataSource: Ue,
|
|
293
|
+
rowKey: t.rowKey
|
|
294
|
+
}), Ye = {
|
|
286
295
|
checkbox: "multiRow",
|
|
287
296
|
radio: "singleRow"
|
|
288
|
-
},
|
|
297
|
+
}, Ze = i(() => {
|
|
289
298
|
const e = C.value;
|
|
290
299
|
if (!e)
|
|
291
300
|
return;
|
|
292
|
-
const { type:
|
|
301
|
+
const { type: o = "checkbox", disabled: n } = e;
|
|
293
302
|
return {
|
|
294
|
-
mode:
|
|
295
|
-
isRowSelectable: (
|
|
303
|
+
mode: Ye[o],
|
|
304
|
+
isRowSelectable: (l) => n ? !n(l.data) : !0,
|
|
296
305
|
hideDisabledCheckboxes: e.hideDisabled ?? !1
|
|
297
306
|
};
|
|
298
307
|
});
|
|
299
|
-
function
|
|
300
|
-
return E(
|
|
308
|
+
function W(e) {
|
|
309
|
+
return E(t.rowKey) ? t.rowKey(e) : e[t.rowKey];
|
|
301
310
|
}
|
|
302
|
-
const
|
|
311
|
+
const I = ({
|
|
303
312
|
api: e = s.value
|
|
304
313
|
}) => {
|
|
305
|
-
if (
|
|
314
|
+
if (t.onUpdate?.(), !C.value)
|
|
306
315
|
return;
|
|
307
|
-
const
|
|
316
|
+
const o = G.value || [];
|
|
308
317
|
b = !1;
|
|
309
|
-
const
|
|
310
|
-
e.forEachNode((
|
|
311
|
-
const p =
|
|
312
|
-
|
|
313
|
-
}), e.setNodesSelected({ nodes:
|
|
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
|
-
},
|
|
317
|
-
b && (e.node.isSelected() ?
|
|
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
|
-
},
|
|
332
|
+
}, oo = () => {
|
|
324
333
|
b = !0;
|
|
325
334
|
const e = s.value;
|
|
326
|
-
if (!e || !
|
|
335
|
+
if (!e || !k.value)
|
|
327
336
|
return;
|
|
328
|
-
const
|
|
329
|
-
...
|
|
330
|
-
sort:
|
|
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
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
}, L = () => {
|
|
336
|
-
_e(), s.value?.deselectAll();
|
|
341
|
+
P(p);
|
|
342
|
+
}, H = () => {
|
|
343
|
+
qe(), s.value?.deselectAll();
|
|
337
344
|
};
|
|
338
|
-
function
|
|
339
|
-
|
|
340
|
-
|
|
345
|
+
function to(e) {
|
|
346
|
+
Je(e), A(() => {
|
|
347
|
+
I({});
|
|
341
348
|
});
|
|
342
349
|
}
|
|
343
|
-
const
|
|
344
|
-
const e =
|
|
350
|
+
const ro = i(() => {
|
|
351
|
+
const e = t.customRow;
|
|
345
352
|
return e ? {
|
|
346
353
|
isFullWidthRow: e.isCustomRow,
|
|
347
|
-
fullWidthCellRenderer:
|
|
354
|
+
fullWidthCellRenderer: It,
|
|
348
355
|
fullWidthCellRendererParams: {
|
|
349
356
|
render: e.render
|
|
350
357
|
}
|
|
351
358
|
} : {};
|
|
352
359
|
});
|
|
353
|
-
function
|
|
354
|
-
|
|
355
|
-
|
|
360
|
+
function no(e) {
|
|
361
|
+
Qe(e), A(() => {
|
|
362
|
+
I({});
|
|
356
363
|
});
|
|
357
364
|
}
|
|
358
|
-
function
|
|
359
|
-
|
|
360
|
-
|
|
365
|
+
function lo(e) {
|
|
366
|
+
Xe(e), A(() => {
|
|
367
|
+
I({});
|
|
361
368
|
});
|
|
362
369
|
}
|
|
363
|
-
function
|
|
364
|
-
const
|
|
365
|
-
return S.value?.apForm?.[
|
|
370
|
+
function le(e = !1) {
|
|
371
|
+
const o = e ? "getFieldsValueTransformed" : "getFieldsValue";
|
|
372
|
+
return S.value?.apForm?.[o]?.(!0);
|
|
366
373
|
}
|
|
367
|
-
function
|
|
374
|
+
function ae(e) {
|
|
368
375
|
S.value?.apForm?.setFieldsValue?.(e);
|
|
369
376
|
}
|
|
370
|
-
function
|
|
377
|
+
function se() {
|
|
371
378
|
return S.value?.getSorterItems() || [];
|
|
372
379
|
}
|
|
373
|
-
function
|
|
380
|
+
function ie(e) {
|
|
374
381
|
S.value?.setSorterItems(e);
|
|
375
382
|
}
|
|
376
|
-
function
|
|
383
|
+
function ue() {
|
|
377
384
|
S.value?.resetSorterItems();
|
|
378
385
|
}
|
|
379
|
-
function
|
|
386
|
+
function de(e) {
|
|
380
387
|
return e && String(e);
|
|
381
388
|
}
|
|
382
|
-
function
|
|
383
|
-
const
|
|
384
|
-
if (!
|
|
389
|
+
function ao(e) {
|
|
390
|
+
const o = s.value;
|
|
391
|
+
if (!o)
|
|
385
392
|
return;
|
|
386
|
-
const
|
|
387
|
-
if (!
|
|
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
|
|
396
|
+
const x = !l.includes(a.colId), ce = {
|
|
390
397
|
...a,
|
|
391
|
-
hide:
|
|
392
|
-
},
|
|
393
|
-
(
|
|
398
|
+
hide: x
|
|
399
|
+
}, me = e.find(
|
|
400
|
+
(bo) => de(bo.key) === a.colId
|
|
394
401
|
);
|
|
395
|
-
return
|
|
396
|
-
}),
|
|
397
|
-
e.map((a,
|
|
398
|
-
), f = p.filter((a) =>
|
|
399
|
-
(a,
|
|
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
|
-
|
|
404
|
-
|
|
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
|
-
|
|
410
|
-
columns:
|
|
411
|
-
columnsBackup:
|
|
412
|
-
size:
|
|
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,
|
|
418
|
+
w.value = e, t.onShownColumnsChange?.(e), ut(
|
|
415
419
|
() => s.value,
|
|
416
420
|
() => {
|
|
417
|
-
|
|
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 =
|
|
429
|
+
R.value = nt[e];
|
|
426
430
|
},
|
|
427
|
-
renderConfig:
|
|
428
|
-
className:
|
|
429
|
-
color:
|
|
431
|
+
renderConfig: i(() => ({
|
|
432
|
+
className: ye("table-header", "title"),
|
|
433
|
+
color: Fe.value.colorTextTertiary
|
|
430
434
|
})),
|
|
431
|
-
dataSource:
|
|
432
|
-
getSearchFormValues:
|
|
433
|
-
setSearchFormValues:
|
|
434
|
-
submit:
|
|
435
|
-
submitWith:
|
|
435
|
+
dataSource: i(() => r(m).records),
|
|
436
|
+
getSearchFormValues: le,
|
|
437
|
+
setSearchFormValues: ae,
|
|
438
|
+
submit: V,
|
|
439
|
+
submitWith: re,
|
|
436
440
|
reset: K,
|
|
437
|
-
refresh:
|
|
438
|
-
getSearchFormSorterItems:
|
|
439
|
-
setSearchFormSorterItems:
|
|
440
|
-
resetSearchFormSorterItems:
|
|
441
|
-
getLastParams:
|
|
441
|
+
refresh: ne,
|
|
442
|
+
getSearchFormSorterItems: se,
|
|
443
|
+
setSearchFormSorterItems: ie,
|
|
444
|
+
resetSearchFormSorterItems: ue,
|
|
445
|
+
getLastParams: He
|
|
442
446
|
});
|
|
443
|
-
const
|
|
444
|
-
() =>
|
|
445
|
-
),
|
|
447
|
+
const so = i(
|
|
448
|
+
() => F(t.loading) ? m.loading : t.loading
|
|
449
|
+
), io = i(() => [
|
|
446
450
|
d(),
|
|
447
|
-
|
|
451
|
+
t.card ? null : d("wrapper"),
|
|
448
452
|
d("adaptive"),
|
|
449
453
|
d(`size-${R.value}`),
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
].filter(Boolean)),
|
|
454
|
+
t.autoHeight && m.records.length ? d("auto-height") : null,
|
|
455
|
+
ve.value
|
|
456
|
+
].filter(Boolean)), uo = i(() => ({
|
|
453
457
|
height: "100%",
|
|
454
|
-
...
|
|
455
|
-
})),
|
|
456
|
-
|
|
458
|
+
...t.tableStyle || {}
|
|
459
|
+
})), co = (e, o) => {
|
|
460
|
+
te({ current: e, pageSize: o });
|
|
457
461
|
};
|
|
458
|
-
function
|
|
459
|
-
const
|
|
460
|
-
return
|
|
462
|
+
function mo(e) {
|
|
463
|
+
const o = e.data;
|
|
464
|
+
return W(o);
|
|
461
465
|
}
|
|
462
|
-
function
|
|
463
|
-
(E(e) ? s.value?.ensureNodeVisible : s.value?.ensureIndexVisible)?.(e,
|
|
466
|
+
function po(e, o) {
|
|
467
|
+
(E(e) ? s.value?.ensureNodeVisible : s.value?.ensureIndexVisible)?.(e, o);
|
|
464
468
|
}
|
|
465
|
-
function
|
|
466
|
-
s.value?.ensureColumnVisible(e,
|
|
469
|
+
function fo(e, o) {
|
|
470
|
+
s.value?.ensureColumnVisible(e, o);
|
|
467
471
|
}
|
|
468
|
-
function
|
|
469
|
-
|
|
472
|
+
function go(e) {
|
|
473
|
+
t.onRowClicked?.(e.data, e.event);
|
|
470
474
|
}
|
|
471
|
-
function
|
|
472
|
-
|
|
475
|
+
function wo(e) {
|
|
476
|
+
t.onScrollEnd?.(e.direction);
|
|
473
477
|
}
|
|
474
|
-
function
|
|
478
|
+
function So(e) {
|
|
475
479
|
return s.value?.refreshCells(e);
|
|
476
480
|
}
|
|
477
|
-
function
|
|
481
|
+
function Co(e) {
|
|
478
482
|
return s.value?.redrawRows(e);
|
|
479
483
|
}
|
|
480
|
-
function
|
|
481
|
-
!e || !
|
|
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
|
|
484
|
-
const
|
|
485
|
-
|
|
492
|
+
const yo = (e) => {
|
|
493
|
+
const o = [
|
|
494
|
+
Q.value.getRowClass?.(e)
|
|
486
495
|
];
|
|
487
496
|
if (!e.node.rowPinned) {
|
|
488
|
-
const
|
|
489
|
-
|
|
497
|
+
const n = E(t.rowClassName) ? t.rowClassName(e.data, e.rowIndex) : t.rowClassName;
|
|
498
|
+
o.push(n);
|
|
490
499
|
}
|
|
491
|
-
return
|
|
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
|
|
494
|
-
() =>
|
|
510
|
+
return L(
|
|
511
|
+
() => t.dataSource,
|
|
495
512
|
(e) => {
|
|
496
513
|
A(() => {
|
|
497
|
-
|
|
514
|
+
We(e, !0);
|
|
498
515
|
});
|
|
499
516
|
},
|
|
500
517
|
{ immediate: !0, deep: !0 }
|
|
501
|
-
),
|
|
502
|
-
() =>
|
|
518
|
+
), L(
|
|
519
|
+
() => t.size,
|
|
503
520
|
(e) => {
|
|
504
521
|
R.value = e;
|
|
505
522
|
}
|
|
506
|
-
),
|
|
523
|
+
), L(
|
|
507
524
|
() => r(m).loading,
|
|
508
525
|
(e) => {
|
|
509
|
-
|
|
526
|
+
t.onLoadingChange?.(e);
|
|
510
527
|
}
|
|
511
|
-
),
|
|
512
|
-
submit:
|
|
528
|
+
), Ce({
|
|
529
|
+
submit: V,
|
|
513
530
|
reset: K,
|
|
514
|
-
refresh:
|
|
515
|
-
submitWith:
|
|
516
|
-
setSearchFormValues:
|
|
517
|
-
getSearchFormValues:
|
|
531
|
+
refresh: ne,
|
|
532
|
+
submitWith: re,
|
|
533
|
+
setSearchFormValues: ae,
|
|
534
|
+
getSearchFormValues: le,
|
|
518
535
|
getShowColumns: () => r(w),
|
|
519
536
|
rowSelection: {
|
|
520
|
-
selectedRows:
|
|
521
|
-
setSelectedRowKeys:
|
|
522
|
-
setSelectedRows:
|
|
523
|
-
clearAll:
|
|
524
|
-
unSelectRows:
|
|
537
|
+
selectedRows: i(() => G.value),
|
|
538
|
+
setSelectedRowKeys: to,
|
|
539
|
+
setSelectedRows: no,
|
|
540
|
+
clearAll: H,
|
|
541
|
+
unSelectRows: lo
|
|
525
542
|
},
|
|
526
|
-
scrollToRow:
|
|
527
|
-
scrollToColumn:
|
|
543
|
+
scrollToRow: po,
|
|
544
|
+
scrollToColumn: fo,
|
|
528
545
|
getDataSource: () => r(m.records),
|
|
529
|
-
getPaging:
|
|
530
|
-
setPaging:
|
|
531
|
-
getSearchFormSorterItems:
|
|
532
|
-
setSearchFormSorterItems:
|
|
533
|
-
resetSearchFormSorterItems:
|
|
534
|
-
refreshCells:
|
|
535
|
-
redrawRows:
|
|
536
|
-
_internalGridApi:
|
|
537
|
-
}), (e,
|
|
538
|
-
class: v(
|
|
539
|
-
style:
|
|
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(
|
|
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:
|
|
561
|
+
style: _(e.searchFormWrapperStyle)
|
|
545
562
|
}, [
|
|
546
|
-
|
|
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(
|
|
551
|
-
onSubmit: r(
|
|
552
|
-
onReset: r(K)
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
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:
|
|
564
|
-
|
|
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)) :
|
|
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:
|
|
590
|
+
style: _(e.tableWrapperStyle)
|
|
573
591
|
}, [
|
|
574
592
|
T("div", {
|
|
575
593
|
class: v(r(d)("header-wrapper"))
|
|
576
594
|
}, [
|
|
577
|
-
|
|
595
|
+
ge(e.$slots, "title", {
|
|
578
596
|
selectedRows: r(G),
|
|
579
|
-
selectedRowKeys: r(
|
|
597
|
+
selectedRowKeys: r($e),
|
|
580
598
|
shownColumns: r(w),
|
|
581
|
-
clearAll:
|
|
599
|
+
clearAll: H
|
|
582
600
|
})
|
|
583
601
|
], 2),
|
|
584
602
|
T("div", {
|
|
585
603
|
ref_key: "gridWrapperRef",
|
|
586
|
-
ref:
|
|
604
|
+
ref: Te,
|
|
587
605
|
class: v(r(d)("grid-wrapper"))
|
|
588
606
|
}, [
|
|
589
|
-
(
|
|
590
|
-
r(
|
|
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":
|
|
595
|
-
style:
|
|
612
|
+
"get-row-class": yo,
|
|
613
|
+
style: uo.value,
|
|
596
614
|
"row-data": r(m).records,
|
|
597
|
-
"column-defs": r(
|
|
598
|
-
"default-col-def": r(
|
|
615
|
+
"column-defs": r(Ae),
|
|
616
|
+
"default-col-def": r(Ie),
|
|
599
617
|
"suppress-loading-overlay": "",
|
|
600
|
-
"row-selection":
|
|
618
|
+
"row-selection": Ze.value,
|
|
601
619
|
"selection-column-def": r(Le),
|
|
602
|
-
"get-row-id":
|
|
603
|
-
"get-row-height":
|
|
604
|
-
theme: r(
|
|
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":
|
|
627
|
+
"no-rows-overlay-component": Tt,
|
|
610
628
|
"no-rows-overlay-component-params": { emptyComponent: e.emptyComponent, emptyText: e.emptyText },
|
|
611
|
-
"loading-overlay-component":
|
|
612
|
-
loading:
|
|
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":
|
|
618
|
-
onSortChanged:
|
|
619
|
-
onGridReady:
|
|
620
|
-
onRowDataUpdated:
|
|
621
|
-
onRowSelected:
|
|
622
|
-
onFirstDataRendered:
|
|
623
|
-
onRowClicked:
|
|
624
|
-
onBodyScrollEnd:
|
|
625
|
-
onColumnResized:
|
|
626
|
-
onColumnGroupOpened:
|
|
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 ? (
|
|
651
|
+
e.pagination !== !1 ? (y(), $(r(No), j({
|
|
634
652
|
key: 0,
|
|
635
653
|
class: r(d)("pagination")
|
|
636
|
-
}, r(
|
|
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
|
-
|
|
661
|
+
gr as default
|
|
644
662
|
};
|