@aplus-frontend/ui 6.22.0-beta.0 → 6.22.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/es/index.mjs +164 -161
  2. package/es/src/ag-grid/components/header-cell/index.vue2.mjs +42 -36
  3. package/es/src/ag-grid/context.d.ts +18 -0
  4. package/es/src/ag-grid/context.mjs +17 -0
  5. package/es/src/ag-grid/index.vue.d.ts +4 -2
  6. package/es/src/ag-grid/index.vue.mjs +337 -201
  7. package/es/src/ag-grid/interface.d.ts +109 -3
  8. package/es/src/ag-grid/theme.d.ts +3 -0
  9. package/es/src/ag-grid/theme.mjs +25 -0
  10. package/es/src/ap-field/number/index.vue.mjs +25 -25
  11. package/es/src/ap-grid/utils/col.d.ts +1 -1
  12. package/es/src/ap-grid/utils/col.mjs +29 -29
  13. package/es/src/ap-pro-card/components/card/index.vue2.mjs +108 -98
  14. package/es/src/ap-pro-card/components/divider/index.vue.d.ts +13 -0
  15. package/es/src/ap-pro-card/components/divider/index.vue.mjs +4 -0
  16. package/es/src/ap-pro-card/components/divider/index.vue2.mjs +29 -0
  17. package/es/src/ap-pro-card/components/operation/index.vue.d.ts +18 -0
  18. package/es/src/ap-pro-card/components/operation/index.vue.mjs +4 -0
  19. package/es/src/ap-pro-card/components/operation/index.vue2.mjs +20 -0
  20. package/es/src/ap-pro-card/components/statistic/index.vue.d.ts +51 -0
  21. package/es/src/ap-pro-card/components/statistic/index.vue.mjs +4 -0
  22. package/es/src/ap-pro-card/components/statistic/index.vue2.mjs +134 -0
  23. package/es/src/ap-pro-card/components/statistic-card/index.vue.d.ts +25 -0
  24. package/es/src/ap-pro-card/components/statistic-card/index.vue.mjs +4 -0
  25. package/es/src/ap-pro-card/components/statistic-card/index.vue2.mjs +116 -0
  26. package/es/src/ap-pro-card/components/title/index.vue.d.ts +23 -0
  27. package/es/src/ap-pro-card/components/title/index.vue.mjs +4 -0
  28. package/es/src/ap-pro-card/components/title/index.vue2.mjs +28 -0
  29. package/es/src/ap-pro-card/index.d.ts +20 -42
  30. package/es/src/ap-pro-card/index.mjs +22 -4
  31. package/es/src/ap-pro-card/interface.d.ts +66 -2
  32. package/es/src/ap-tag/ap-tag-group.vue.mjs +42 -42
  33. package/es/src/business/ap-label/group/ApLabelGroup.mjs +17 -15
  34. package/es/src/business/hooks/index.d.ts +1 -0
  35. package/es/src/business/hooks/index.mjs +8 -6
  36. package/es/src/business/hooks/usePageListAgGrid.d.ts +37 -0
  37. package/es/src/business/hooks/usePageListAgGrid.mjs +88 -0
  38. package/es/src/index.mjs +277 -274
  39. package/es/src/version.d.ts +1 -1
  40. package/es/src/version.mjs +1 -1
  41. package/lib/index.js +1 -1
  42. package/lib/src/ag-grid/components/header-cell/index.vue2.js +1 -1
  43. package/lib/src/ag-grid/context.d.ts +18 -0
  44. package/lib/src/ag-grid/context.js +1 -0
  45. package/lib/src/ag-grid/index.vue.d.ts +4 -2
  46. package/lib/src/ag-grid/index.vue.js +1 -1
  47. package/lib/src/ag-grid/interface.d.ts +109 -3
  48. package/lib/src/ag-grid/theme.d.ts +3 -0
  49. package/lib/src/ag-grid/theme.js +1 -0
  50. package/lib/src/ap-field/number/index.vue.js +1 -1
  51. package/lib/src/ap-grid/utils/col.d.ts +1 -1
  52. package/lib/src/ap-grid/utils/col.js +1 -1
  53. package/lib/src/ap-pro-card/components/card/index.vue2.js +1 -1
  54. package/lib/src/ap-pro-card/components/divider/index.vue.d.ts +13 -0
  55. package/lib/src/ap-pro-card/components/divider/index.vue.js +1 -0
  56. package/lib/src/ap-pro-card/components/divider/index.vue2.js +1 -0
  57. package/lib/src/ap-pro-card/components/operation/index.vue.d.ts +18 -0
  58. package/lib/src/ap-pro-card/components/operation/index.vue.js +1 -0
  59. package/lib/src/ap-pro-card/components/operation/index.vue2.js +1 -0
  60. package/lib/src/ap-pro-card/components/statistic/index.vue.d.ts +51 -0
  61. package/lib/src/ap-pro-card/components/statistic/index.vue.js +1 -0
  62. package/lib/src/ap-pro-card/components/statistic/index.vue2.js +1 -0
  63. package/lib/src/ap-pro-card/components/statistic-card/index.vue.d.ts +25 -0
  64. package/lib/src/ap-pro-card/components/statistic-card/index.vue.js +1 -0
  65. package/lib/src/ap-pro-card/components/statistic-card/index.vue2.js +1 -0
  66. package/lib/src/ap-pro-card/components/title/index.vue.d.ts +23 -0
  67. package/lib/src/ap-pro-card/components/title/index.vue.js +1 -0
  68. package/lib/src/ap-pro-card/components/title/index.vue2.js +1 -0
  69. package/lib/src/ap-pro-card/index.d.ts +20 -42
  70. package/lib/src/ap-pro-card/index.js +1 -1
  71. package/lib/src/ap-pro-card/interface.d.ts +66 -2
  72. package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
  73. package/lib/src/business/ap-label/group/ApLabelGroup.js +1 -1
  74. package/lib/src/business/hooks/index.d.ts +1 -0
  75. package/lib/src/business/hooks/index.js +1 -1
  76. package/lib/src/business/hooks/usePageListAgGrid.d.ts +37 -0
  77. package/lib/src/business/hooks/usePageListAgGrid.js +1 -0
  78. package/lib/src/index.js +1 -1
  79. package/lib/src/version.d.ts +1 -1
  80. package/lib/src/version.js +1 -1
  81. package/package.json +1 -1
  82. package/theme/ag-grid/index.css +470 -0
  83. package/theme/ag-grid/index.less +27 -0
  84. package/theme/ap-button/ap-button.css +1 -1
  85. package/theme/ap-button/ap-button.less +1 -1
  86. package/theme/ap-pro-card/index.css +199 -0
  87. package/theme/ap-pro-card/index.less +203 -0
  88. package/theme/ap-tag/ap-tag.css +1 -1
  89. package/theme/ap-tag/ap-tag.less +1 -1
  90. package/theme/index.css +220 -2
package/es/index.mjs CHANGED
@@ -4,7 +4,7 @@ import p from "./src/version.mjs";
4
4
  import "./src/hooks/index.mjs";
5
5
  import { configProviderProps as A } from "./src/config-provider/config-provider-props.mjs";
6
6
  import { DEFAULT_NAMESPACE as n, DEFAULT_UIMODE as c, configProviderContextKey as F } from "./src/config-provider/constants.mjs";
7
- import { keysOf as T, provideGlobalConfig as b, useGlobalConfig as g } from "./src/config-provider/hooks/use-global-config.mjs";
7
+ import { keysOf as T, provideGlobalConfig as g, useGlobalConfig as C } from "./src/config-provider/hooks/use-global-config.mjs";
8
8
  import { buildLocaleContext as S, buildTranslator as D, localeContextKey as G, translate as h, useLocale as P } from "./src/config-provider/hooks/use-locale.mjs";
9
9
  import { defaultNamespace as E, namespaceContextKey as L, useGetDerivedNamespace as M, useNamespace as N } from "./src/config-provider/hooks/use-namespace.mjs";
10
10
  import { ConfigProvider as y, globalConfigCached as w } from "./src/config-provider/config-provider.mjs";
@@ -27,7 +27,7 @@ import { default as Ae } from "./src/ap-form/list/index.vue.mjs";
27
27
  import { default as ne } from "./src/ap-form/search-form/index.vue.mjs";
28
28
  import { default as Fe } from "./src/ap-form/modal-form/index.vue.mjs";
29
29
  import { default as Te } from "./src/ap-form/dependency/index.vue.mjs";
30
- import { default as ge } from "./src/ap-form/set/index.vue.mjs";
30
+ import { default as Ce } from "./src/ap-form/set/index.vue.mjs";
31
31
  import { default as Se } from "./src/ap-form/drawer-form/index.vue.mjs";
32
32
  import { default as Ge } from "./src/ap-form/render/control.vue.mjs";
33
33
  import { default as Pe } from "./src/ap-form/render/item.vue.mjs";
@@ -53,7 +53,7 @@ import { default as Ao } from "./src/ap-action/item-modal/index.vue.mjs";
53
53
  import { default as no } from "./src/ap-action/item-popconfirm/index.vue.mjs";
54
54
  import { default as Fo } from "./src/ap-action/item-dropdown/index.vue.mjs";
55
55
  import { default as To } from "./src/ap-action/group/index.vue.mjs";
56
- import { DictCode as go, langMap as Co } from "./src/work-order-modal/interfaces.mjs";
56
+ import { DictCode as Co, langMap as bo } from "./src/work-order-modal/interfaces.mjs";
57
57
  import { createWorkOrderModal as Do } from "./src/work-order-modal/createWorkOrder.mjs";
58
58
  import { default as ho } from "./src/work-order-modal/work-order-modal.vue.mjs";
59
59
  import { default as Ro } from "./src/ap-tag/ap-tag.vue.mjs";
@@ -70,80 +70,81 @@ import { default as qo } from "./src/ap-button/ap-button.vue.mjs";
70
70
  import { default as Qo } from "./src/ap-button/ap-action-button.vue.mjs";
71
71
  import { default as Yo } from "./src/ap-button/ap-confirm-button.vue.mjs";
72
72
  import { ApDrawer as er } from "./src/ap-drawer/index.mjs";
73
- import { ApProCard as rr } from "./src/ap-pro-card/index.mjs";
74
- import { ApTransformDataHelper as pr } from "./src/utils/ap-trans-data/index.mjs";
75
- import { default as fr } from "./src/business/ap-table-modal/index.mjs";
76
- import { useTableModal as lr } from "./src/business/ap-table-modal/hooks/use-table-modal.mjs";
77
- import { useTableSelectModal as dr } from "./src/business/ap-table-modal/hooks/use-table-select-modal.mjs";
78
- import { ApAttachment as ur } from "./src/business/ap-attachment/index.mjs";
79
- import { ApBatchAction as ir } from "./src/business/ap-batch-action/index.mjs";
80
- import { ApBatchActionGroup as cr } from "./src/business/ap-batch-action-group/index.mjs";
81
- import { ApButtonGroup as Ir } from "./src/business/ap-button-group/index.mjs";
82
- import { ApCard as br } from "./src/business/ap-card/index.mjs";
83
- import { ApExpandAlert as Cr } from "./src/business/ap-expand-alert/index.mjs";
84
- import { ApExportGroupActionType as Dr } from "./src/business/ap-export-group/interface.mjs";
85
- import { ApExportGroup as hr } from "./src/business/ap-export-group/index.mjs";
86
- import { handleExportDownload as Rr } from "./src/business/ap-export-group/handleExportDownload.mjs";
87
- import { convertExportField as Lr } from "./src/business/ap-export-group/convertExportField.mjs";
88
- import { ApImage as Nr } from "./src/business/ap-image/index.mjs";
89
- import { ApInputRadio as yr } from "./src/business/ap-input-radio/index.mjs";
90
- import { ApLabel as kr, ApLabelGroup as Br } from "./src/business/ap-label/index.mjs";
91
- import { locales as Or } from "./src/business/ap-ladder/interface.mjs";
92
- import { ApLadder as Vr } from "./src/business/ap-ladder/index.mjs";
93
- import { ApSelectLayout as zr } from "./src/business/ap-select-layout/index.mjs";
94
- import { ApStatus as $r, ApStatusGroup as jr } from "./src/business/ap-status/index.mjs";
95
- import { ApTitle as qr } from "./src/business/ap-title/index.mjs";
96
- import { usePageListApTable as Qr } from "./src/business/hooks/usePageListApTable.mjs";
97
- import { useTableRefresh as Yr } from "./src/business/hooks/useTableRefresh.mjs";
98
- import { usePageListApGrid as et } from "./src/business/hooks/usePageListApGrid.mjs";
99
- import { useGridRefresh as rt } from "./src/business/hooks/useGridRefresh.mjs";
100
- import { computedRecords as pt, flattenColumns as at, formatDataIndex as ft, formatNumber as mt } from "./src/business/ap-summary/utils.mjs";
101
- import { ApSummary as xt } from "./src/business/ap-summary/index.mjs";
102
- import { ApNeedNameKeyDefault as st } from "./src/business/ap-appendix/interface.mjs";
103
- import { ApAppendix as At } from "./src/business/ap-appendix/index.mjs";
104
- import { default as nt } from "./src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs";
105
- import { default as Ft } from "./src/business/batch-input-group/index.vue.mjs";
106
- import { default as Tt } from "./src/business/batch-input-group/form-item.vue.mjs";
107
- import { ApSizeInput as gt } from "./src/business/ap-size-input/index.mjs";
108
- import { ApProductInfo as St } from "./src/business/ap-product-info/index.mjs";
109
- import { ApCopy as Gt } from "./src/business/ap-copy/index.mjs";
110
- import { ApView as Pt } from "./src/business/ap-view/index.mjs";
111
- import { ApRadioGroup as Et } from "./src/business/ap-radio-group/index.mjs";
112
- import { ApKeepAliveProps as Mt, forceStopTags as Nt } from "./src/business/ap-keep-alive/interface.mjs";
113
- import { ApKeepAlive as yt } from "./src/business/ap-keep-alive/index.mjs";
114
- import { LruCacher as kt } from "./src/business/ap-keep-alive/cacher/lru-cacher.mjs";
115
- import { useApKeepAliveInject as Kt } from "./src/business/ap-keep-alive/hook.mjs";
116
- import { matches as Ut } from "./src/business/ap-keep-alive/utils.mjs";
117
- import { ApDraggableGrid as _t } from "./src/business/ap-draggable-grid/index.mjs";
118
- import { ApValueSelectCard as Wt } from "./src/business/ap-value-select-card/index.mjs";
119
- import { useTablePaging as jt } from "./src/ap-table/hooks/use-table-paging.mjs";
120
- import { ApTable as qt } from "./src/ap-table/index.mjs";
121
- import { default as Qt } from "./src/editable-table/index.vue.mjs";
122
- import { default as Yt } from "./src/editable-table/form-item.vue.mjs";
123
- import { default as ep } from "./src/ap-descriptions/ap-descriptions.vue.mjs";
124
- import { ensureRangeValue as rp } from "./src/scroll-bar/utils/index.mjs";
125
- import { default as pp } from "./src/scroll-bar/index.vue.mjs";
126
- import { default as fp } from "./src/scroll-bar/internal.vue.mjs";
127
- import { default as lp } from "./src/scroll-view/index.vue.mjs";
128
- import { default as dp } from "./src/portal/index.vue.mjs";
129
- import { default as up } from "./src/full-screen/index.vue.mjs";
130
- import { default as ip } from "./src/resize-observer/index.vue.mjs";
131
- import { ROW_SELECTION_FIELD as cp } from "./src/ap-grid/constants.mjs";
132
- import { toTreeArray as Ip } from "./src/ap-grid/utils/to-tree-array.mjs";
133
- import { default as bp } from "./src/ap-grid/index.vue.mjs";
134
- import { default as Cp } from "./src/ap-grid/editable/index.vue.mjs";
135
- import { default as Dp } from "./src/ap-grid/editable/form-item.vue.mjs";
136
- import { default as hp } from "./src/text/index.vue.mjs";
137
- import { default as Rp } from "./src/text/group.vue.mjs";
138
- import { default as Lp } from "./src/mask/index.vue.mjs";
139
- import { Splitter as Np } from "./src/splitter/index.mjs";
140
- import { default as yp } from "./src/ag-grid/index.vue.mjs";
141
- import { useMessage as kp } from "./src/hooks/useMessage.mjs";
142
- import { useControllableValue as Kp } from "./src/hooks/useControllableValue.mjs";
143
- import { useManualRef as Up } from "./src/hooks/useManualRef.mjs";
144
- import { useThrottleRef as _p } from "./src/hooks/useThrottleRef.mjs";
145
- import { useFullScreen as Wp } from "./src/hooks/useFullScreen.mjs";
146
- import { useResize as jp } from "./src/hooks/useResize.mjs";
73
+ import { ApProCard as rr, ApStatisticCard as tr } from "./src/ap-pro-card/index.mjs";
74
+ import { ApTransformDataHelper as ar } from "./src/utils/ap-trans-data/index.mjs";
75
+ import { default as mr } from "./src/business/ap-table-modal/index.mjs";
76
+ import { useTableModal as xr } from "./src/business/ap-table-modal/hooks/use-table-modal.mjs";
77
+ import { useTableSelectModal as sr } from "./src/business/ap-table-modal/hooks/use-table-select-modal.mjs";
78
+ import { ApAttachment as Ar } from "./src/business/ap-attachment/index.mjs";
79
+ import { ApBatchAction as nr } from "./src/business/ap-batch-action/index.mjs";
80
+ import { ApBatchActionGroup as Fr } from "./src/business/ap-batch-action-group/index.mjs";
81
+ import { ApButtonGroup as Tr } from "./src/business/ap-button-group/index.mjs";
82
+ import { ApCard as Cr } from "./src/business/ap-card/index.mjs";
83
+ import { ApExpandAlert as Sr } from "./src/business/ap-expand-alert/index.mjs";
84
+ import { ApExportGroupActionType as Gr } from "./src/business/ap-export-group/interface.mjs";
85
+ import { ApExportGroup as Pr } from "./src/business/ap-export-group/index.mjs";
86
+ import { handleExportDownload as Er } from "./src/business/ap-export-group/handleExportDownload.mjs";
87
+ import { convertExportField as Mr } from "./src/business/ap-export-group/convertExportField.mjs";
88
+ import { ApImage as vr } from "./src/business/ap-image/index.mjs";
89
+ import { ApInputRadio as wr } from "./src/business/ap-input-radio/index.mjs";
90
+ import { ApLabel as Br, ApLabelGroup as Kr } from "./src/business/ap-label/index.mjs";
91
+ import { locales as Ur } from "./src/business/ap-ladder/interface.mjs";
92
+ import { ApLadder as _r } from "./src/business/ap-ladder/index.mjs";
93
+ import { ApSelectLayout as Wr } from "./src/business/ap-select-layout/index.mjs";
94
+ import { ApStatus as jr, ApStatusGroup as Hr } from "./src/business/ap-status/index.mjs";
95
+ import { ApTitle as Jr } from "./src/business/ap-title/index.mjs";
96
+ import { usePageListApTable as Xr } from "./src/business/hooks/usePageListApTable.mjs";
97
+ import { useTableRefresh as Zr } from "./src/business/hooks/useTableRefresh.mjs";
98
+ import { usePageListApGrid as ot } from "./src/business/hooks/usePageListApGrid.mjs";
99
+ import { useGridRefresh as tt } from "./src/business/hooks/useGridRefresh.mjs";
100
+ import { usePageListAgGrid as at } from "./src/business/hooks/usePageListAgGrid.mjs";
101
+ import { computedRecords as mt, flattenColumns as lt, formatDataIndex as xt, formatNumber as dt } from "./src/business/ap-summary/utils.mjs";
102
+ import { ApSummary as ut } from "./src/business/ap-summary/index.mjs";
103
+ import { ApNeedNameKeyDefault as it } from "./src/business/ap-appendix/interface.mjs";
104
+ import { ApAppendix as ct } from "./src/business/ap-appendix/index.mjs";
105
+ import { default as It } from "./src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs";
106
+ import { default as gt } from "./src/business/batch-input-group/index.vue.mjs";
107
+ import { default as bt } from "./src/business/batch-input-group/form-item.vue.mjs";
108
+ import { ApSizeInput as Dt } from "./src/business/ap-size-input/index.mjs";
109
+ import { ApProductInfo as ht } from "./src/business/ap-product-info/index.mjs";
110
+ import { ApCopy as Rt } from "./src/business/ap-copy/index.mjs";
111
+ import { ApView as Lt } from "./src/business/ap-view/index.mjs";
112
+ import { ApRadioGroup as Nt } from "./src/business/ap-radio-group/index.mjs";
113
+ import { ApKeepAliveProps as yt, forceStopTags as wt } from "./src/business/ap-keep-alive/interface.mjs";
114
+ import { ApKeepAlive as Bt } from "./src/business/ap-keep-alive/index.mjs";
115
+ import { LruCacher as Ot } from "./src/business/ap-keep-alive/cacher/lru-cacher.mjs";
116
+ import { useApKeepAliveInject as Vt } from "./src/business/ap-keep-alive/hook.mjs";
117
+ import { matches as zt } from "./src/business/ap-keep-alive/utils.mjs";
118
+ import { ApDraggableGrid as $t } from "./src/business/ap-draggable-grid/index.mjs";
119
+ import { ApValueSelectCard as Ht } from "./src/business/ap-value-select-card/index.mjs";
120
+ import { useTablePaging as Jt } from "./src/ap-table/hooks/use-table-paging.mjs";
121
+ import { ApTable as Xt } from "./src/ap-table/index.mjs";
122
+ import { default as Zt } from "./src/editable-table/index.vue.mjs";
123
+ import { default as op } from "./src/editable-table/form-item.vue.mjs";
124
+ import { default as tp } from "./src/ap-descriptions/ap-descriptions.vue.mjs";
125
+ import { ensureRangeValue as ap } from "./src/scroll-bar/utils/index.mjs";
126
+ import { default as mp } from "./src/scroll-bar/index.vue.mjs";
127
+ import { default as xp } from "./src/scroll-bar/internal.vue.mjs";
128
+ import { default as sp } from "./src/scroll-view/index.vue.mjs";
129
+ import { default as Ap } from "./src/portal/index.vue.mjs";
130
+ import { default as np } from "./src/full-screen/index.vue.mjs";
131
+ import { default as Fp } from "./src/resize-observer/index.vue.mjs";
132
+ import { ROW_SELECTION_FIELD as Tp } from "./src/ap-grid/constants.mjs";
133
+ import { toTreeArray as Cp } from "./src/ap-grid/utils/to-tree-array.mjs";
134
+ import { default as Sp } from "./src/ap-grid/index.vue.mjs";
135
+ import { default as Gp } from "./src/ap-grid/editable/index.vue.mjs";
136
+ import { default as Pp } from "./src/ap-grid/editable/form-item.vue.mjs";
137
+ import { default as Ep } from "./src/text/index.vue.mjs";
138
+ import { default as Mp } from "./src/text/group.vue.mjs";
139
+ import { default as vp } from "./src/mask/index.vue.mjs";
140
+ import { Splitter as wp } from "./src/splitter/index.mjs";
141
+ import { default as Bp } from "./src/ag-grid/index.vue.mjs";
142
+ import { useMessage as Op } from "./src/hooks/useMessage.mjs";
143
+ import { useControllableValue as Vp } from "./src/hooks/useControllableValue.mjs";
144
+ import { useManualRef as zp } from "./src/hooks/useManualRef.mjs";
145
+ import { useThrottleRef as $p } from "./src/hooks/useThrottleRef.mjs";
146
+ import { useFullScreen as Hp } from "./src/hooks/useFullScreen.mjs";
147
+ import { useResize as Jp } from "./src/hooks/useResize.mjs";
147
148
  const a = console.log;
148
149
  a(`APlus-UI version ${p}`);
149
150
  const l = {
@@ -156,30 +157,30 @@ const l = {
156
157
  };
157
158
  export {
158
159
  B as APConfigProvider,
159
- yp as AgGrid,
160
+ Bp as AgGrid,
160
161
  Qo as ApActionButton,
161
162
  To as ApActionGroup,
162
163
  so as ApActionItem,
163
164
  Fo as ApActionItemDropdown,
164
165
  Ao as ApActionItemModal,
165
166
  no as ApActionItemPopconfirm,
166
- At as ApAppendix,
167
- ur as ApAttachment,
168
- ir as ApBatchAction,
169
- cr as ApBatchActionGroup,
167
+ ct as ApAppendix,
168
+ Ar as ApAttachment,
169
+ nr as ApBatchAction,
170
+ Fr as ApBatchActionGroup,
170
171
  qo as ApButton,
171
- Ir as ApButtonGroup,
172
- br as ApCard,
172
+ Tr as ApButtonGroup,
173
+ Cr as ApCard,
173
174
  Yo as ApConfirmButton,
174
- Gt as ApCopy,
175
- ep as ApDescriptions,
175
+ Rt as ApCopy,
176
+ tp as ApDescriptions,
176
177
  ko as ApDownLoadNeedNameKeyDefault,
177
178
  Ko as ApDownload,
178
- _t as ApDraggableGrid,
179
+ $t as ApDraggableGrid,
179
180
  er as ApDrawer,
180
- Cr as ApExpandAlert,
181
- hr as ApExportGroup,
182
- Dr as ApExportGroupActionType,
181
+ Sr as ApExpandAlert,
182
+ Pr as ApExportGroup,
183
+ Gr as ApExportGroupActionType,
183
184
  Me as ApField,
184
185
  we as ApFieldCheckbox,
185
186
  Be as ApFieldDate,
@@ -200,7 +201,7 @@ export {
200
201
  Te as ApFormDependency,
201
202
  Se as ApFormDrawerForm,
202
203
  xe as ApFormItem,
203
- Tt as ApFormItemBatchInput,
204
+ bt as ApFormItemBatchInput,
204
205
  oe as ApFormItemCheckbox,
205
206
  $ as ApFormItemDate,
206
207
  H as ApFormItemDateRange,
@@ -218,105 +219,107 @@ export {
218
219
  Fe as ApFormModalForm,
219
220
  Ee as ApFormProvider,
220
221
  ne as ApFormSearchForm,
221
- ge as ApFormSet,
222
- bp as ApGrid,
223
- Nr as ApImage,
224
- yr as ApInputRadio,
225
- yt as ApKeepAlive,
226
- Mt as ApKeepAliveProps,
227
- kr as ApLabel,
228
- Br as ApLabelGroup,
229
- Vr as ApLadder,
222
+ Ce as ApFormSet,
223
+ Sp as ApGrid,
224
+ vr as ApImage,
225
+ wr as ApInputRadio,
226
+ Bt as ApKeepAlive,
227
+ yt as ApKeepAliveProps,
228
+ Br as ApLabel,
229
+ Kr as ApLabelGroup,
230
+ _r as ApLadder,
230
231
  jo as ApList,
231
232
  Wo as ApModal,
232
- st as ApNeedNameKeyDefault,
233
+ it as ApNeedNameKeyDefault,
233
234
  rr as ApProCard,
234
- St as ApProductInfo,
235
- Et as ApRadioGroup,
236
- zr as ApSelectLayout,
237
- gt as ApSizeInput,
238
- $r as ApStatus,
239
- jr as ApStatusGroup,
240
- xt as ApSummary,
241
- qt as ApTable,
242
- fr as ApTableModal,
235
+ ht as ApProductInfo,
236
+ Nt as ApRadioGroup,
237
+ Wr as ApSelectLayout,
238
+ Dt as ApSizeInput,
239
+ tr as ApStatisticCard,
240
+ jr as ApStatus,
241
+ Hr as ApStatusGroup,
242
+ ut as ApSummary,
243
+ Xt as ApTable,
244
+ mr as ApTableModal,
243
245
  Ro as ApTag,
244
246
  Lo as ApTagGroup,
245
- hp as ApText,
246
- Rp as ApTextGroup,
247
- qr as ApTitle,
248
- pr as ApTransformDataHelper,
247
+ Ep as ApText,
248
+ Mp as ApTextGroup,
249
+ Jr as ApTitle,
250
+ ar as ApTransformDataHelper,
249
251
  yo as ApUpload,
250
- nt as ApUploadSingle,
251
- Wt as ApValueSelectCard,
252
- Pt as ApView,
253
- Ft as BatchInputGroup,
252
+ It as ApUploadSingle,
253
+ Ht as ApValueSelectCard,
254
+ Lt as ApView,
255
+ gt as BatchInputGroup,
254
256
  Uo as CheckCard,
255
257
  _o as CheckCardGroup,
256
258
  y as ConfigProvider,
257
259
  n as DEFAULT_NAMESPACE,
258
260
  c as DEFAULT_UIMODE,
259
- go as DictCode,
260
- Cp as EditableGrid,
261
- Dp as EditableGridFormItem,
262
- Qt as EditableTable,
263
- Yt as EditableTableFormItem,
264
- up as FullScreen,
265
- fp as InternalScrollBar,
266
- kt as LruCacher,
267
- Lp as Mask,
261
+ Co as DictCode,
262
+ Gp as EditableGrid,
263
+ Pp as EditableGridFormItem,
264
+ Zt as EditableTable,
265
+ op as EditableTableFormItem,
266
+ np as FullScreen,
267
+ xp as InternalScrollBar,
268
+ Ot as LruCacher,
269
+ vp as Mask,
268
270
  No as NeedNameKeyDefault,
269
- dp as Portal,
270
- cp as ROW_SELECTION_FIELD,
271
- ip as ResizeObserver,
272
- pp as ScrollBar,
273
- lp as ScrollView,
274
- Np as Splitter,
271
+ Ap as Portal,
272
+ Tp as ROW_SELECTION_FIELD,
273
+ Fp as ResizeObserver,
274
+ mp as ScrollBar,
275
+ sp as ScrollView,
276
+ wp as Splitter,
275
277
  ho as WorkOrderModal,
276
278
  mo as adminToken,
277
279
  lo as aplusToken,
278
280
  S as buildLocaleContext,
279
281
  D as buildTranslator,
280
- pt as computedRecords,
282
+ mt as computedRecords,
281
283
  F as configProviderContextKey,
282
284
  A as configProviderProps,
283
- Lr as convertExportField,
285
+ Mr as convertExportField,
284
286
  Do as createWorkOrderModal,
285
287
  l as default,
286
288
  E as defaultNamespace,
287
- rp as ensureRangeValue,
288
- at as flattenColumns,
289
- Nt as forceStopTags,
290
- ft as formatDataIndex,
291
- mt as formatNumber,
289
+ ap as ensureRangeValue,
290
+ lt as flattenColumns,
291
+ wt as forceStopTags,
292
+ xt as formatDataIndex,
293
+ dt as formatNumber,
292
294
  w as globalConfigCached,
293
- Rr as handleExportDownload,
294
- Ut as isNameMatches,
295
+ Er as handleExportDownload,
296
+ zt as isNameMatches,
295
297
  T as keysOf,
296
- Co as langMap,
298
+ bo as langMap,
297
299
  G as localeContextKey,
298
- Or as locales,
300
+ Ur as locales,
299
301
  L as namespaceContextKey,
300
302
  s as pathMap,
301
- b as provideGlobalConfig,
302
- Ip as toTreeArray,
303
+ g as provideGlobalConfig,
304
+ Cp as toTreeArray,
303
305
  h as translate,
304
- Kt as useApKeepAliveInject,
305
- Kp as useControllableValue,
306
- Wp as useFullScreen,
306
+ Vt as useApKeepAliveInject,
307
+ Vp as useControllableValue,
308
+ Hp as useFullScreen,
307
309
  M as useGetDerivedNamespace,
308
- g as useGlobalConfig,
309
- rt as useGridRefresh,
310
+ C as useGlobalConfig,
311
+ tt as useGridRefresh,
310
312
  P as useLocale,
311
- Up as useManualRef,
312
- kp as useMessage,
313
+ zp as useManualRef,
314
+ Op as useMessage,
313
315
  N as useNamespace,
314
- et as usePageListApGrid,
315
- Qr as usePageListApTable,
316
- jp as useResize,
317
- lr as useTableModal,
318
- jt as useTablePaging,
319
- Yr as useTableRefresh,
320
- dr as useTableSelectModal,
321
- _p as useThrottleRef
316
+ at as usePageListAgGrid,
317
+ ot as usePageListApGrid,
318
+ Xr as usePageListApTable,
319
+ Jp as useResize,
320
+ xr as useTableModal,
321
+ Jt as useTablePaging,
322
+ Zr as useTableRefresh,
323
+ sr as useTableSelectModal,
324
+ $p as useThrottleRef
322
325
  };
@@ -1,59 +1,65 @@
1
- import { defineComponent as k, ref as C, computed as h, watch as T, createElementBlock as c, openBlock as n, normalizeClass as a, unref as e, createBlock as w, createCommentVNode as N, resolveDynamicComponent as y, createVNode as m } from "vue";
2
- import { useToken as B } from "@aplus-frontend/antdv/es/theme/internal";
3
- import { CaretUpOutlined as S, CaretDownOutlined as _ } from "@ant-design/icons-vue";
4
- import { getTableTitle as x } from "../../../ap-table/utils.mjs";
1
+ import { defineComponent as w, computed as f, createElementBlock as C, openBlock as c, normalizeClass as n, unref as e, createBlock as B, createCommentVNode as O, resolveDynamicComponent as _, createVNode as g } from "vue";
2
+ import { useToken as D } from "@aplus-frontend/antdv/es/theme/internal";
3
+ import { CaretUpOutlined as V, CaretDownOutlined as j } from "@ant-design/icons-vue";
4
+ import { getTableTitle as z } from "../../../ap-table/utils.mjs";
5
5
  import "../../../config-provider/index.mjs";
6
- import { useNamespace as i } from "../../../config-provider/hooks/use-namespace.mjs";
7
- const j = /* @__PURE__ */ k({
6
+ import { useInjectSorter as A } from "../../context.mjs";
7
+ import { useNamespace as S } from "../../../config-provider/hooks/use-namespace.mjs";
8
+ const K = /* @__PURE__ */ w({
8
9
  __name: "index",
9
10
  props: {
10
11
  params: {}
11
12
  },
12
- setup(u) {
13
- const o = u, { b: p, e: s } = i("ag-custom-header"), { be: d, bem: f } = i("ap-grid"), [, v] = B(), r = C(), l = h(() => o.params.column.sorter);
14
- function g(t) {
15
- if (!t)
16
- return "asc";
17
- if (t === "asc")
18
- return "desc";
13
+ setup(v) {
14
+ const r = v, { b, e: l } = S("ag-custom-header"), { be: k, bem: I } = S("ap-grid"), [, T] = D(), { sorter: m, setSorter: h } = A(), s = f(() => r.params.column.sorter);
15
+ function y(t) {
16
+ return t ? t === "asc" ? "desc" : null : "asc";
19
17
  }
20
- function b() {
21
- l.value && (r.value = g(o.params.column.getSort()));
18
+ const u = f(() => {
19
+ var t, o, a;
20
+ return (a = (o = (t = r.params) == null ? void 0 : t.column) == null ? void 0 : o.getColId) == null ? void 0 : a.call(o);
21
+ });
22
+ function x() {
23
+ if (!s.value)
24
+ return;
25
+ const o = r.params.column.getColId(), a = r.params.column.getSort(), p = y(a), i = r.params.api, N = i.getColumnState().map((d) => ({
26
+ ...d,
27
+ sort: d.colId === o ? p : null
28
+ }));
29
+ i.applyColumnState({
30
+ state: N,
31
+ applyOrder: !0
32
+ }), h({ [o]: p });
22
33
  }
23
- return T(
24
- () => r.value,
25
- (t) => {
26
- o.params.setSort(t);
27
- }
28
- ), (t, D) => (n(), c("div", {
29
- class: a([e(p)(), { sortable: l.value }, `align-${t.params.column.align || "left"}`]),
30
- onClick: b
34
+ return (t, o) => (c(), C("div", {
35
+ class: n([e(b)(), { sortable: s.value }, `align-${t.params.column.align || "left"}`]),
36
+ onClick: x
31
37
  }, [
32
- (n(), w(y(
33
- e(x)(
38
+ (c(), B(_(
39
+ e(z)(
34
40
  t.params.column,
35
41
  [
36
- e(d)("table-header", "title"),
37
- t.params.column.tooltip ? "" : e(f)("table-header", "title", "single")
42
+ e(k)("table-header", "title"),
43
+ t.params.column.tooltip ? "" : e(I)("table-header", "title", "single")
38
44
  ],
39
45
  void 0,
40
- e(v).colorTextTertiary
46
+ e(T).colorTextTertiary
41
47
  )
42
48
  ))),
43
- l.value ? (n(), c("span", {
49
+ s.value ? (c(), C("span", {
44
50
  key: 0,
45
- class: a(e(s)("sort-wrapper"))
51
+ class: n(e(l)("sort-wrapper"))
46
52
  }, [
47
- m(e(S), {
48
- class: a({ [e(s)("sorter-up")]: !0, active: r.value === "asc" })
53
+ g(e(V), {
54
+ class: n({ [e(l)("sorter-up")]: !0, active: e(m)[u.value] === "asc" })
49
55
  }, null, 8, ["class"]),
50
- m(e(_), {
51
- class: a({ [e(s)("sorter-down")]: !0, active: r.value === "desc" })
56
+ g(e(j), {
57
+ class: n({ [e(l)("sorter-down")]: !0, active: e(m)[u.value] === "desc" })
52
58
  }, null, 8, ["class"])
53
- ], 2)) : N("", !0)
59
+ ], 2)) : O("", !0)
54
60
  ], 2));
55
61
  }
56
62
  });
57
63
  export {
58
- j as default
64
+ K as default
59
65
  };
@@ -0,0 +1,18 @@
1
+ import { InjectionKey, Ref } from 'vue';
2
+ import { Recordable } from '../type';
3
+ type AgGridSorterContextProps = {
4
+ /**
5
+ * 表格的当前排序结果
6
+ */
7
+ sorter: Ref<Recordable>;
8
+ /**
9
+ * 更新表格的排序结果
10
+ * @param nextSorter
11
+ * @returns
12
+ */
13
+ setSorter: (nextSorter: Recordable) => void;
14
+ };
15
+ export declare const AgGridSorterContextKey: InjectionKey<AgGridSorterContextProps>;
16
+ export declare function useProvideSorter(state: AgGridSorterContextProps): void;
17
+ export declare function useInjectSorter(): AgGridSorterContextProps;
18
+ export {};
@@ -0,0 +1,17 @@
1
+ import { provide as t, inject as o, ref as n } from "vue";
2
+ const r = Symbol("formContextKey");
3
+ function c(e) {
4
+ t(r, e);
5
+ }
6
+ function f() {
7
+ return o(r, {
8
+ sorter: n({}),
9
+ setSorter: () => {
10
+ }
11
+ });
12
+ }
13
+ export {
14
+ r as AgGridSorterContextKey,
15
+ f as useInjectSorter,
16
+ c as useProvideSorter
17
+ };
@@ -1,8 +1,8 @@
1
- import { AgGridColumnType, AgGridProps } from './interface';
1
+ import { AgGridColumnType, AgGridExpose, AgGridProps } from './interface';
2
2
  import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
3
3
  declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
4
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & AgGridProps<RecordType> & Partial<{}>> & PublicProps;
5
- expose(exposed: ShallowUnwrapRef<{}>): void;
5
+ expose(exposed: ShallowUnwrapRef<AgGridExpose>): void;
6
6
  attrs: any;
7
7
  slots: Readonly<{
8
8
  /**
@@ -16,6 +16,7 @@ declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __V
16
16
  selectedRows: RecordType[];
17
17
  selectedRowKeys: (string | number)[];
18
18
  shownColumns: AgGridColumnType<RecordType>[];
19
+ clearAll: () => void;
19
20
  }) => any;
20
21
  }> & {
21
22
  /**
@@ -29,6 +30,7 @@ declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __V
29
30
  selectedRows: RecordType[];
30
31
  selectedRowKeys: (string | number)[];
31
32
  shownColumns: AgGridColumnType<RecordType>[];
33
+ clearAll: () => void;
32
34
  }) => any;
33
35
  };
34
36
  emit: {};