@aplus-frontend/ui 6.21.1 → 6.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/es/index.mjs +160 -155
  2. package/es/src/ag-grid/components/body-cell/index.vue.d.ts +6 -0
  3. package/es/src/ag-grid/components/body-cell/index.vue.mjs +4 -0
  4. package/es/src/ag-grid/components/body-cell/index.vue2.mjs +27 -0
  5. package/es/src/ag-grid/components/header-cell/index.vue.d.ts +6 -0
  6. package/es/src/ag-grid/components/header-cell/index.vue.mjs +4 -0
  7. package/es/src/ag-grid/components/header-cell/index.vue2.mjs +65 -0
  8. package/es/src/ag-grid/context.d.ts +18 -0
  9. package/es/src/ag-grid/context.mjs +17 -0
  10. package/es/src/ag-grid/hooks/use-row-selection.d.ts +78 -0
  11. package/es/src/ag-grid/hooks/use-row-selection.mjs +98 -0
  12. package/es/src/ag-grid/index.d.ts +3 -0
  13. package/es/src/ag-grid/index.mjs +2 -0
  14. package/es/src/ag-grid/index.vue.d.ts +43 -0
  15. package/es/src/ag-grid/index.vue.mjs +512 -0
  16. package/es/src/ag-grid/index.vue2.mjs +4 -0
  17. package/es/src/ag-grid/interface.d.ts +296 -0
  18. package/es/src/ag-grid/interface.mjs +1 -0
  19. package/es/src/ag-grid/style/css.d.ts +0 -0
  20. package/es/src/ag-grid/style/css.js +1 -0
  21. package/es/src/ag-grid/style/index.d.ts +0 -0
  22. package/es/src/ag-grid/style/index.js +1 -0
  23. package/es/src/ag-grid/theme.d.ts +3 -0
  24. package/es/src/ag-grid/theme.mjs +25 -0
  25. package/es/src/ap-field/number/index.vue.mjs +25 -25
  26. package/es/src/ap-grid/index.vue.mjs +1 -1
  27. package/es/src/ap-grid/utils/col.d.ts +11 -0
  28. package/es/src/ap-grid/utils/col.mjs +99 -95
  29. package/es/src/ap-pro-card/components/card/index.vue2.mjs +112 -102
  30. package/es/src/ap-pro-card/components/operation/index.vue.d.ts +18 -0
  31. package/es/src/ap-pro-card/components/operation/index.vue.mjs +4 -0
  32. package/es/src/ap-pro-card/components/operation/index.vue2.mjs +20 -0
  33. package/es/src/ap-pro-card/components/statistic/index.vue.d.ts +51 -0
  34. package/es/src/ap-pro-card/components/statistic/index.vue.mjs +4 -0
  35. package/es/src/ap-pro-card/components/statistic/index.vue2.mjs +134 -0
  36. package/es/src/ap-pro-card/components/statistic-card/index.vue.d.ts +25 -0
  37. package/es/src/ap-pro-card/components/statistic-card/index.vue.mjs +4 -0
  38. package/es/src/ap-pro-card/components/statistic-card/index.vue2.mjs +116 -0
  39. package/es/src/ap-pro-card/index.d.ts +13 -3
  40. package/es/src/ap-pro-card/index.mjs +16 -4
  41. package/es/src/ap-pro-card/interface.d.ts +64 -0
  42. package/es/src/ap-table/utils.d.ts +1 -1
  43. package/es/src/ap-tag/ap-tag-group.vue.mjs +42 -42
  44. package/es/src/business/ap-label/group/ApLabelGroup.mjs +17 -15
  45. package/es/src/business/hooks/index.d.ts +1 -0
  46. package/es/src/business/hooks/index.mjs +8 -6
  47. package/es/src/business/hooks/usePageListAgGrid.d.ts +37 -0
  48. package/es/src/business/hooks/usePageListAgGrid.mjs +88 -0
  49. package/es/src/index.d.ts +1 -0
  50. package/es/src/index.mjs +296 -290
  51. package/es/src/version.d.ts +1 -1
  52. package/es/src/version.mjs +1 -1
  53. package/lib/index.js +1 -1
  54. package/lib/src/ag-grid/components/body-cell/index.vue.d.ts +6 -0
  55. package/lib/src/ag-grid/components/body-cell/index.vue.js +1 -0
  56. package/lib/src/ag-grid/components/body-cell/index.vue2.js +1 -0
  57. package/lib/src/ag-grid/components/header-cell/index.vue.d.ts +6 -0
  58. package/lib/src/ag-grid/components/header-cell/index.vue.js +1 -0
  59. package/lib/src/ag-grid/components/header-cell/index.vue2.js +1 -0
  60. package/lib/src/ag-grid/context.d.ts +18 -0
  61. package/lib/src/ag-grid/context.js +1 -0
  62. package/lib/src/ag-grid/hooks/use-row-selection.d.ts +78 -0
  63. package/lib/src/ag-grid/hooks/use-row-selection.js +1 -0
  64. package/lib/src/ag-grid/index.d.ts +3 -0
  65. package/lib/src/ag-grid/index.js +1 -0
  66. package/lib/src/ag-grid/index.vue.d.ts +43 -0
  67. package/lib/src/ag-grid/index.vue.js +1 -0
  68. package/lib/src/ag-grid/index.vue2.js +1 -0
  69. package/lib/src/ag-grid/interface.d.ts +296 -0
  70. package/lib/src/ag-grid/interface.js +1 -0
  71. package/lib/src/ag-grid/style/css.cjs +1 -0
  72. package/lib/src/ag-grid/style/css.d.ts +0 -0
  73. package/lib/src/ag-grid/style/index.cjs +1 -0
  74. package/lib/src/ag-grid/style/index.d.ts +0 -0
  75. package/lib/src/ag-grid/theme.d.ts +3 -0
  76. package/lib/src/ag-grid/theme.js +1 -0
  77. package/lib/src/ap-field/number/index.vue.js +1 -1
  78. package/lib/src/ap-grid/index.vue.js +1 -1
  79. package/lib/src/ap-grid/utils/col.d.ts +11 -0
  80. package/lib/src/ap-grid/utils/col.js +1 -1
  81. package/lib/src/ap-pro-card/components/card/index.vue2.js +1 -1
  82. package/lib/src/ap-pro-card/components/operation/index.vue.d.ts +18 -0
  83. package/lib/src/ap-pro-card/components/operation/index.vue.js +1 -0
  84. package/lib/src/ap-pro-card/components/operation/index.vue2.js +1 -0
  85. package/lib/src/ap-pro-card/components/statistic/index.vue.d.ts +51 -0
  86. package/lib/src/ap-pro-card/components/statistic/index.vue.js +1 -0
  87. package/lib/src/ap-pro-card/components/statistic/index.vue2.js +1 -0
  88. package/lib/src/ap-pro-card/components/statistic-card/index.vue.d.ts +25 -0
  89. package/lib/src/ap-pro-card/components/statistic-card/index.vue.js +1 -0
  90. package/lib/src/ap-pro-card/components/statistic-card/index.vue2.js +1 -0
  91. package/lib/src/ap-pro-card/index.d.ts +13 -3
  92. package/lib/src/ap-pro-card/index.js +1 -1
  93. package/lib/src/ap-pro-card/interface.d.ts +64 -0
  94. package/lib/src/ap-table/utils.d.ts +1 -1
  95. package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
  96. package/lib/src/business/ap-label/group/ApLabelGroup.js +1 -1
  97. package/lib/src/business/hooks/index.d.ts +1 -0
  98. package/lib/src/business/hooks/index.js +1 -1
  99. package/lib/src/business/hooks/usePageListAgGrid.d.ts +37 -0
  100. package/lib/src/business/hooks/usePageListAgGrid.js +1 -0
  101. package/lib/src/index.d.ts +1 -0
  102. package/lib/src/index.js +1 -1
  103. package/lib/src/version.d.ts +1 -1
  104. package/lib/src/version.js +1 -1
  105. package/package.json +3 -1
  106. package/theme/ag-grid/index.css +468 -0
  107. package/theme/ag-grid/index.less +25 -0
  108. package/theme/ap-button/ap-button.css +1 -1
  109. package/theme/ap-button/ap-button.less +1 -1
  110. package/theme/ap-grid/index.css +3 -0
  111. package/theme/ap-grid/index.less +3 -0
  112. package/theme/ap-pro-card/index.css +147 -0
  113. package/theme/ap-pro-card/index.less +147 -0
  114. package/theme/ap-tag/ap-tag.css +1 -1
  115. package/theme/ap-tag/ap-tag.less +1 -1
  116. package/theme/index.css +330 -5
  117. package/theme/index.less +1 -0
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 C } 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";
@@ -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 Co, langMap as go } 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,79 +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 gr } 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 Ct } 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 gp } 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 { useMessage as yp } from "./src/hooks/useMessage.mjs";
141
- import { useControllableValue as kp } from "./src/hooks/useControllableValue.mjs";
142
- import { useManualRef as Kp } from "./src/hooks/useManualRef.mjs";
143
- import { useThrottleRef as Up } from "./src/hooks/useThrottleRef.mjs";
144
- import { useFullScreen as _p } from "./src/hooks/useFullScreen.mjs";
145
- import { useResize as Wp } 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";
146
148
  const a = console.log;
147
149
  a(`APlus-UI version ${p}`);
148
150
  const l = {
@@ -155,29 +157,30 @@ const l = {
155
157
  };
156
158
  export {
157
159
  B as APConfigProvider,
160
+ Bp as AgGrid,
158
161
  Qo as ApActionButton,
159
162
  To as ApActionGroup,
160
163
  so as ApActionItem,
161
164
  Fo as ApActionItemDropdown,
162
165
  Ao as ApActionItemModal,
163
166
  no as ApActionItemPopconfirm,
164
- At as ApAppendix,
165
- ur as ApAttachment,
166
- ir as ApBatchAction,
167
- cr as ApBatchActionGroup,
167
+ ct as ApAppendix,
168
+ Ar as ApAttachment,
169
+ nr as ApBatchAction,
170
+ Fr as ApBatchActionGroup,
168
171
  qo as ApButton,
169
- Ir as ApButtonGroup,
170
- br as ApCard,
172
+ Tr as ApButtonGroup,
173
+ Cr as ApCard,
171
174
  Yo as ApConfirmButton,
172
- Gt as ApCopy,
173
- ep as ApDescriptions,
175
+ Rt as ApCopy,
176
+ tp as ApDescriptions,
174
177
  ko as ApDownLoadNeedNameKeyDefault,
175
178
  Ko as ApDownload,
176
- _t as ApDraggableGrid,
179
+ $t as ApDraggableGrid,
177
180
  er as ApDrawer,
178
- gr as ApExpandAlert,
179
- hr as ApExportGroup,
180
- Dr as ApExportGroupActionType,
181
+ Sr as ApExpandAlert,
182
+ Pr as ApExportGroup,
183
+ Gr as ApExportGroupActionType,
181
184
  Me as ApField,
182
185
  we as ApFieldCheckbox,
183
186
  Be as ApFieldDate,
@@ -198,7 +201,7 @@ export {
198
201
  Te as ApFormDependency,
199
202
  Se as ApFormDrawerForm,
200
203
  xe as ApFormItem,
201
- Tt as ApFormItemBatchInput,
204
+ bt as ApFormItemBatchInput,
202
205
  oe as ApFormItemCheckbox,
203
206
  $ as ApFormItemDate,
204
207
  H as ApFormItemDateRange,
@@ -217,104 +220,106 @@ export {
217
220
  Ee as ApFormProvider,
218
221
  ne as ApFormSearchForm,
219
222
  Ce as ApFormSet,
220
- bp as ApGrid,
221
- Nr as ApImage,
222
- yr as ApInputRadio,
223
- yt as ApKeepAlive,
224
- Mt as ApKeepAliveProps,
225
- kr as ApLabel,
226
- Br as ApLabelGroup,
227
- Vr as ApLadder,
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,
228
231
  jo as ApList,
229
232
  Wo as ApModal,
230
- st as ApNeedNameKeyDefault,
233
+ it as ApNeedNameKeyDefault,
231
234
  rr as ApProCard,
232
- St as ApProductInfo,
233
- Et as ApRadioGroup,
234
- zr as ApSelectLayout,
235
- Ct as ApSizeInput,
236
- $r as ApStatus,
237
- jr as ApStatusGroup,
238
- xt as ApSummary,
239
- qt as ApTable,
240
- 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,
241
245
  Ro as ApTag,
242
246
  Lo as ApTagGroup,
243
- hp as ApText,
244
- Rp as ApTextGroup,
245
- qr as ApTitle,
246
- pr as ApTransformDataHelper,
247
+ Ep as ApText,
248
+ Mp as ApTextGroup,
249
+ Jr as ApTitle,
250
+ ar as ApTransformDataHelper,
247
251
  yo as ApUpload,
248
- nt as ApUploadSingle,
249
- Wt as ApValueSelectCard,
250
- Pt as ApView,
251
- Ft as BatchInputGroup,
252
+ It as ApUploadSingle,
253
+ Ht as ApValueSelectCard,
254
+ Lt as ApView,
255
+ gt as BatchInputGroup,
252
256
  Uo as CheckCard,
253
257
  _o as CheckCardGroup,
254
258
  y as ConfigProvider,
255
259
  n as DEFAULT_NAMESPACE,
256
260
  c as DEFAULT_UIMODE,
257
261
  Co as DictCode,
258
- gp as EditableGrid,
259
- Dp as EditableGridFormItem,
260
- Qt as EditableTable,
261
- Yt as EditableTableFormItem,
262
- up as FullScreen,
263
- fp as InternalScrollBar,
264
- kt as LruCacher,
265
- Lp as Mask,
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,
266
270
  No as NeedNameKeyDefault,
267
- dp as Portal,
268
- cp as ROW_SELECTION_FIELD,
269
- ip as ResizeObserver,
270
- pp as ScrollBar,
271
- lp as ScrollView,
272
- 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,
273
277
  ho as WorkOrderModal,
274
278
  mo as adminToken,
275
279
  lo as aplusToken,
276
280
  S as buildLocaleContext,
277
281
  D as buildTranslator,
278
- pt as computedRecords,
282
+ mt as computedRecords,
279
283
  F as configProviderContextKey,
280
284
  A as configProviderProps,
281
- Lr as convertExportField,
285
+ Mr as convertExportField,
282
286
  Do as createWorkOrderModal,
283
287
  l as default,
284
288
  E as defaultNamespace,
285
- rp as ensureRangeValue,
286
- at as flattenColumns,
287
- Nt as forceStopTags,
288
- ft as formatDataIndex,
289
- mt as formatNumber,
289
+ ap as ensureRangeValue,
290
+ lt as flattenColumns,
291
+ wt as forceStopTags,
292
+ xt as formatDataIndex,
293
+ dt as formatNumber,
290
294
  w as globalConfigCached,
291
- Rr as handleExportDownload,
292
- Ut as isNameMatches,
295
+ Er as handleExportDownload,
296
+ zt as isNameMatches,
293
297
  T as keysOf,
294
- go as langMap,
298
+ bo as langMap,
295
299
  G as localeContextKey,
296
- Or as locales,
300
+ Ur as locales,
297
301
  L as namespaceContextKey,
298
302
  s as pathMap,
299
- b as provideGlobalConfig,
300
- Ip as toTreeArray,
303
+ g as provideGlobalConfig,
304
+ Cp as toTreeArray,
301
305
  h as translate,
302
- Kt as useApKeepAliveInject,
303
- kp as useControllableValue,
304
- _p as useFullScreen,
306
+ Vt as useApKeepAliveInject,
307
+ Vp as useControllableValue,
308
+ Hp as useFullScreen,
305
309
  M as useGetDerivedNamespace,
306
310
  C as useGlobalConfig,
307
- rt as useGridRefresh,
311
+ tt as useGridRefresh,
308
312
  P as useLocale,
309
- Kp as useManualRef,
310
- yp as useMessage,
313
+ zp as useManualRef,
314
+ Op as useMessage,
311
315
  N as useNamespace,
312
- et as usePageListApGrid,
313
- Qr as usePageListApTable,
314
- Wp as useResize,
315
- lr as useTableModal,
316
- jt as useTablePaging,
317
- Yr as useTableRefresh,
318
- dr as useTableSelectModal,
319
- Up 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
320
325
  };
@@ -0,0 +1,6 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ type __VLS_Props = {
3
+ params: any;
4
+ };
5
+ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
6
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import f from "./index.vue2.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,27 @@
1
+ import { defineComponent as a, createBlock as r, openBlock as n, resolveDynamicComponent as o, unref as m } from "vue";
2
+ import { contentCustom as p } from "../../../ap-grid/utils/col.mjs";
3
+ const t = /* @__PURE__ */ a({
4
+ __name: "index",
5
+ props: {
6
+ params: {}
7
+ },
8
+ setup(s) {
9
+ return (e, u) => (n(), r(o(
10
+ m(p)(
11
+ {
12
+ value: e.params.value,
13
+ text: e.params.value,
14
+ record: e.params.data,
15
+ column: e.params.column,
16
+ rowIndex: e.params.node.rowIndex,
17
+ pinned: e.params.node.rowPinned
18
+ },
19
+ e.params.column,
20
+ e.params.extraValueType
21
+ )
22
+ )));
23
+ }
24
+ });
25
+ export {
26
+ t as default
27
+ };
@@ -0,0 +1,6 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ type __VLS_Props = {
3
+ params: any;
4
+ };
5
+ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
6
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import f from "./index.vue2.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,65 @@
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
+ import "../../../config-provider/index.mjs";
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({
9
+ __name: "index",
10
+ props: {
11
+ params: {}
12
+ },
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";
17
+ }
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 });
33
+ }
34
+ return (t, o) => (c(), C("div", {
35
+ class: n([e(b)(), { sortable: s.value }, `align-${t.params.column.align || "left"}`]),
36
+ onClick: x
37
+ }, [
38
+ (c(), B(_(
39
+ e(z)(
40
+ t.params.column,
41
+ [
42
+ e(k)("table-header", "title"),
43
+ t.params.column.tooltip ? "" : e(I)("table-header", "title", "single")
44
+ ],
45
+ void 0,
46
+ e(T).colorTextTertiary
47
+ )
48
+ ))),
49
+ s.value ? (c(), C("span", {
50
+ key: 0,
51
+ class: n(e(l)("sort-wrapper"))
52
+ }, [
53
+ g(e(V), {
54
+ class: n({ [e(l)("sorter-up")]: !0, active: e(m)[u.value] === "asc" })
55
+ }, null, 8, ["class"]),
56
+ g(e(j), {
57
+ class: n({ [e(l)("sorter-down")]: !0, active: e(m)[u.value] === "desc" })
58
+ }, null, 8, ["class"])
59
+ ], 2)) : O("", !0)
60
+ ], 2));
61
+ }
62
+ });
63
+ export {
64
+ K as default
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
+ };
@@ -0,0 +1,78 @@
1
+ import { Ref } from 'vue';
2
+ import { ApTableProps } from '../../ap-table';
3
+ import { Recordable } from '../../type';
4
+ import { AgGridRowSelection } from '../interface';
5
+ import { Key } from '../../ap-table/components/interface';
6
+ export interface RowSelectionReturnType<RecordType = any> {
7
+ selectedRows: Ref<Partial<RecordType>[]>;
8
+ selectedRowKeys: Ref<Key[]>;
9
+ /**
10
+ * 选中某行
11
+ * @param item
12
+ * @returns
13
+ */
14
+ select: (item: RecordType) => void;
15
+ /**
16
+ * 取消选中某行
17
+ * @param item
18
+ * @returns
19
+ */
20
+ unSelect: (item: RecordType) => void;
21
+ /**
22
+ * 某行是否被选中
23
+ * @param item
24
+ * @returns
25
+ */
26
+ isSelected: (item: RecordType) => boolean;
27
+ /**
28
+ * 选中当前所有数据
29
+ * @returns
30
+ */
31
+ selectAll: () => void;
32
+ /**
33
+ * 取消选中当前所有数据
34
+ * @returns
35
+ */
36
+ unSelectAll: () => void;
37
+ /**
38
+ * 清空所有选中
39
+ * @returns
40
+ */
41
+ clearAll: () => void;
42
+ /**
43
+ * 切换某行的选中状态
44
+ * @param item
45
+ * @returns
46
+ */
47
+ toggleSelect: (item: RecordType) => void;
48
+ /**
49
+ * 多项选中
50
+ * @param items
51
+ * @returns
52
+ */
53
+ selectMulti: (items: RecordType[]) => void;
54
+ /**
55
+ * 多项反选
56
+ * @param items
57
+ * @returns
58
+ */
59
+ unSelectMulti: (items: RecordType[]) => void;
60
+ /**
61
+ * 通过key勾选多条数据
62
+ * @param keys
63
+ * @returns
64
+ */
65
+ selectMultiByKeys: (keys: (string | number)[]) => void;
66
+ }
67
+ type RowSelectionParams<T> = AgGridRowSelection<T> & {
68
+ /**
69
+ * 数据源(如果是后端分页,则表示当页数据,否则是全量数据)
70
+ */
71
+ dataSource: Ref<T[]>;
72
+ /**
73
+ * 同Table的rowkey
74
+ */
75
+ rowKey: ApTableProps['rowKey'];
76
+ };
77
+ declare const useGridRowSelection: <RecordType = Recordable>(props: RowSelectionParams<RecordType>) => RowSelectionReturnType<RecordType>;
78
+ export default useGridRowSelection;