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