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