@aplus-frontend/ui 7.0.0 → 7.1.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 (156) hide show
  1. package/es/index.mjs +108 -106
  2. package/es/src/ag-grid/style/custom-header.mjs +1 -1
  3. package/es/src/ag-grid/style/index.mjs +0 -1
  4. package/es/src/ap-action/item-dropdown/index.vue.mjs +12 -12
  5. package/es/src/ap-descriptions/ap-descriptions.vue.mjs +39 -39
  6. package/es/src/ap-descriptions/style/index.mjs +16 -43
  7. package/es/src/ap-download/ap-download.vue.mjs +43 -43
  8. package/es/src/ap-download/hooks/useStyle.d.ts +1 -1
  9. package/es/src/ap-download/hooks/useStyle.mjs +17 -14
  10. package/es/src/ap-download/style/index.mjs +6 -13
  11. package/es/src/ap-form/modal-form/index.vue.mjs +59 -60
  12. package/es/src/ap-form/style/item.mjs +5 -4
  13. package/es/src/ap-form/style/modal-form.mjs +11 -12
  14. package/es/src/ap-form/style/search-form-sorter.mjs +31 -27
  15. package/es/src/ap-form/style/token.d.ts +8 -0
  16. package/es/src/ap-grid/style/index.mjs +3 -3
  17. package/es/src/ap-pro-card/style/statistic.mjs +3 -3
  18. package/es/src/ap-pro-card/style/token.mjs +1 -1
  19. package/es/src/ap-table/style/index.mjs +2 -2
  20. package/es/src/ap-table/style/setting.mjs +2 -2
  21. package/es/src/ap-tag/ap-tag-group.vue.mjs +61 -61
  22. package/es/src/ap-tag/ap-tag.vue.mjs +19 -20
  23. package/es/src/ap-tag/style/group.mjs +2 -8
  24. package/es/src/ap-tag/style/index.mjs +14 -23
  25. package/es/src/ap-upload/apUpload.vue.mjs +42 -41
  26. package/es/src/ap-upload/components/MultipleFile.vue2.mjs +60 -61
  27. package/es/src/ap-upload/components/Picture.vue2.mjs +90 -91
  28. package/es/src/ap-upload/components/SingleFile.vue2.mjs +72 -72
  29. package/es/src/ap-upload/style/multiple-file.mjs +13 -40
  30. package/es/src/ap-upload/style/picture.mjs +12 -30
  31. package/es/src/ap-upload/style/single-file.mjs +5 -16
  32. package/es/src/business/ag-grid-modal/interface.d.ts +1 -1
  33. package/es/src/business/ag-grid-modal/wrapper/index.vue.d.ts +6 -2
  34. package/es/src/business/ag-grid-modal/wrapper/index.vue2.mjs +29 -12
  35. package/es/src/business/ap-appendix/style/index.mjs +1 -1
  36. package/es/src/business/ap-attachment/ApAttachment.mjs +42 -39
  37. package/es/src/business/ap-copy/style/index.mjs +1 -1
  38. package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +45 -46
  39. package/es/src/business/ap-ladder/ApLadder.mjs +20 -22
  40. package/es/src/business/ap-ladder/style/index.mjs +11 -39
  41. package/es/src/business/ap-product-info/ApProductInfo.mjs +21 -22
  42. package/es/src/business/ap-product-info/style/index.mjs +8 -24
  43. package/es/src/business/ap-radio-group/style/index.mjs +1 -1
  44. package/es/src/business/ap-size-input/ApSizeInput.d.ts +20 -4
  45. package/es/src/business/ap-size-input/ApSizeInput.mjs +37 -40
  46. package/es/src/business/ap-size-input/constans.d.ts +10 -2
  47. package/es/src/business/ap-size-input/constans.mjs +9 -1
  48. package/es/src/business/ap-size-input/form-item.vue.d.ts +13 -0
  49. package/es/src/business/ap-size-input/form-item.vue.mjs +65 -0
  50. package/es/src/business/ap-size-input/form-item.vue2.mjs +4 -0
  51. package/es/src/business/ap-size-input/index.d.ts +33 -8
  52. package/es/src/business/ap-size-input/index.mjs +3 -2
  53. package/es/src/business/ap-size-input/interface.d.ts +7 -0
  54. package/es/src/business/ap-size-input/style/index.mjs +2 -1
  55. package/es/src/business/ap-table-modal/hooks/use-table-modal.mjs +18 -19
  56. package/es/src/business/ap-table-modal/modal-title.vue2.mjs +13 -13
  57. package/es/src/business/ap-title/style/index.mjs +1 -1
  58. package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +38 -37
  59. package/es/src/business/ap-value-select-card/index.vue2.mjs +36 -37
  60. package/es/src/business/ap-value-select-card/style/index.mjs +7 -29
  61. package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +61 -64
  62. package/es/src/business/ap-view/style/index.mjs +1 -1
  63. package/es/src/business/batch-input-group/style/index.mjs +1 -1
  64. package/es/src/check-card/style/index.mjs +46 -51
  65. package/es/src/config-provider/hooks/use-token.d.ts +2 -2
  66. package/es/src/design-token/constants.mjs +4 -2
  67. package/es/src/design-token/interface.d.ts +39 -19
  68. package/es/src/index.mjs +95 -93
  69. package/es/src/scroll-bar/style/index.mjs +12 -12
  70. package/es/src/splitter/style/index.mjs +6 -6
  71. package/es/src/style/index.mjs +1 -1
  72. package/es/src/text/style/index.mjs +1 -1
  73. package/es/src/utils/cssinjs/TokenUtil.d.ts +11 -0
  74. package/es/src/utils/cssinjs/TokenUtil.mjs +26 -0
  75. package/es/src/utils/cssinjs/index.d.ts +1 -1
  76. package/es/src/utils/cssinjs/index.mjs +51 -50
  77. package/es/src/version.d.ts +1 -1
  78. package/es/src/version.mjs +1 -1
  79. package/lib/index.js +1 -1
  80. package/lib/src/ag-grid/style/custom-header.js +1 -1
  81. package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
  82. package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
  83. package/lib/src/ap-descriptions/style/index.js +1 -1
  84. package/lib/src/ap-download/ap-download.vue.js +1 -1
  85. package/lib/src/ap-download/hooks/useStyle.d.ts +1 -1
  86. package/lib/src/ap-download/hooks/useStyle.js +1 -1
  87. package/lib/src/ap-download/style/index.js +1 -1
  88. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  89. package/lib/src/ap-form/style/item.js +1 -1
  90. package/lib/src/ap-form/style/modal-form.js +1 -1
  91. package/lib/src/ap-form/style/search-form-sorter.js +1 -1
  92. package/lib/src/ap-form/style/token.d.ts +8 -0
  93. package/lib/src/ap-grid/style/index.js +1 -1
  94. package/lib/src/ap-pro-card/style/statistic.js +1 -1
  95. package/lib/src/ap-pro-card/style/token.js +1 -1
  96. package/lib/src/ap-table/style/index.js +1 -1
  97. package/lib/src/ap-table/style/setting.js +1 -1
  98. package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
  99. package/lib/src/ap-tag/ap-tag.vue.js +1 -1
  100. package/lib/src/ap-tag/style/group.js +1 -1
  101. package/lib/src/ap-tag/style/index.js +1 -1
  102. package/lib/src/ap-upload/apUpload.vue.js +1 -1
  103. package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
  104. package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
  105. package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
  106. package/lib/src/ap-upload/style/multiple-file.js +1 -1
  107. package/lib/src/ap-upload/style/picture.js +1 -1
  108. package/lib/src/ap-upload/style/single-file.js +1 -1
  109. package/lib/src/business/ag-grid-modal/interface.d.ts +1 -1
  110. package/lib/src/business/ag-grid-modal/wrapper/index.vue.d.ts +6 -2
  111. package/lib/src/business/ag-grid-modal/wrapper/index.vue2.js +1 -1
  112. package/lib/src/business/ap-appendix/style/index.js +1 -1
  113. package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
  114. package/lib/src/business/ap-copy/style/index.js +1 -1
  115. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
  116. package/lib/src/business/ap-ladder/ApLadder.js +1 -1
  117. package/lib/src/business/ap-ladder/style/index.js +1 -1
  118. package/lib/src/business/ap-product-info/ApProductInfo.js +1 -1
  119. package/lib/src/business/ap-product-info/style/index.js +1 -1
  120. package/lib/src/business/ap-radio-group/style/index.js +1 -1
  121. package/lib/src/business/ap-size-input/ApSizeInput.d.ts +20 -4
  122. package/lib/src/business/ap-size-input/ApSizeInput.js +1 -1
  123. package/lib/src/business/ap-size-input/constans.d.ts +10 -2
  124. package/lib/src/business/ap-size-input/constans.js +1 -1
  125. package/lib/src/business/ap-size-input/form-item.vue.d.ts +13 -0
  126. package/lib/src/business/ap-size-input/form-item.vue.js +1 -0
  127. package/lib/src/business/ap-size-input/form-item.vue2.js +1 -0
  128. package/lib/src/business/ap-size-input/index.d.ts +33 -8
  129. package/lib/src/business/ap-size-input/index.js +1 -1
  130. package/lib/src/business/ap-size-input/interface.d.ts +7 -0
  131. package/lib/src/business/ap-size-input/style/index.js +1 -1
  132. package/lib/src/business/ap-table-modal/hooks/use-table-modal.js +1 -1
  133. package/lib/src/business/ap-table-modal/modal-title.vue2.js +1 -1
  134. package/lib/src/business/ap-title/style/index.js +1 -1
  135. package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.js +1 -1
  136. package/lib/src/business/ap-value-select-card/index.vue2.js +1 -1
  137. package/lib/src/business/ap-value-select-card/style/index.js +1 -1
  138. package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
  139. package/lib/src/business/ap-view/style/index.js +1 -1
  140. package/lib/src/business/batch-input-group/style/index.js +1 -1
  141. package/lib/src/check-card/style/index.js +1 -1
  142. package/lib/src/config-provider/hooks/use-token.d.ts +2 -2
  143. package/lib/src/design-token/constants.js +1 -1
  144. package/lib/src/design-token/interface.d.ts +39 -19
  145. package/lib/src/index.js +1 -1
  146. package/lib/src/scroll-bar/style/index.js +1 -1
  147. package/lib/src/splitter/style/index.js +1 -1
  148. package/lib/src/style/index.js +1 -1
  149. package/lib/src/text/style/index.js +1 -1
  150. package/lib/src/utils/cssinjs/TokenUtil.d.ts +11 -0
  151. package/lib/src/utils/cssinjs/TokenUtil.js +1 -0
  152. package/lib/src/utils/cssinjs/index.d.ts +1 -1
  153. package/lib/src/utils/cssinjs/index.js +1 -1
  154. package/lib/src/version.d.ts +1 -1
  155. package/lib/src/version.js +1 -1
  156. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { ActionToken } from '../ap-action/style';
2
- import { Recordable } from '../type';
2
+ import { Recordable, RecursivePartial } from '../type';
3
3
  import { CSSInterpolation, CSSObject } from '@emotion/serialize';
4
4
  import { CheckCardToken } from '../check-card/style';
5
5
  import { ApFormToken } from '../ap-form/style/token';
@@ -12,6 +12,8 @@ import { AgGridToken } from '../ag-grid/style';
12
12
  import { BatchInputGroupToken } from '../business/batch-input-group/style';
13
13
  import { ApRadioGroupToken } from '../business/ap-radio-group/style';
14
14
  import { ApGridToken } from '../ap-grid/style';
15
+ import { TokenUtil } from '../utils/cssinjs/TokenUtil';
16
+ /** 基础token */
15
17
  export type BaseToken = {
16
18
  /**
17
19
  * 基础边框色
@@ -101,6 +103,14 @@ export type BaseToken = {
101
103
  * 背景禁用色
102
104
  */
103
105
  colorBgDisabled: string;
106
+ /**
107
+ * 布局背景色
108
+ */
109
+ colorBgLayout: string;
110
+ /**
111
+ * 控件背景色(一般同主系,但是更浅,适用块选中效果)
112
+ */
113
+ colorBgControl: string;
104
114
  fontSizeXL: number;
105
115
  fontSizeLG: number;
106
116
  fontSize: number;
@@ -127,30 +137,40 @@ export type BaseToken = {
127
137
  */
128
138
  lineClamp: number;
129
139
  };
140
+ /** 组件token */
141
+ export type ComponentsToken = {
142
+ ApAction: ActionToken;
143
+ CheckCard: CheckCardToken;
144
+ ApForm: ApFormToken;
145
+ ApList: ApListToken;
146
+ Scrollbar: ScrollbarToken;
147
+ Mask: MaskToken;
148
+ Splitter: SplitterToken;
149
+ ProCard: ProCardToken;
150
+ StatisticsCard: ProCardToken;
151
+ AgGrid: AgGridToken;
152
+ BatchInputGroup: BatchInputGroupToken;
153
+ ApRadioGroup: ApRadioGroupToken;
154
+ ApGrid: ApGridToken;
155
+ };
156
+ /** 全量token */
130
157
  export type FullToken = BaseToken & {
131
- components: {
132
- ApAction: ActionToken;
133
- CheckCard: CheckCardToken;
134
- ApForm: ApFormToken;
135
- ApList: ApListToken;
136
- Scrollbar: ScrollbarToken;
137
- Mask: MaskToken;
138
- Splitter: SplitterToken;
139
- ProCard: ProCardToken;
140
- StatisticsCard: ProCardToken;
141
- AgGrid: AgGridToken;
142
- BatchInputGroup: BatchInputGroupToken;
143
- ApRadioGroup: ApRadioGroupToken;
144
- ApGrid: ApGridToken;
145
- };
158
+ components: ComponentsToken;
146
159
  };
160
+ /** 上下文token(基础token+部分组件token) */
161
+ export type ContextToken = BaseToken & RecursivePartial<{
162
+ components: ComponentsToken;
163
+ }>;
147
164
  export type TokenWithComponentCls<Token> = Token & {
148
165
  componentCls: string;
149
166
  namespace: string;
150
167
  };
168
+ export type TokenWithUtil<Token> = TokenWithComponentCls<Token> & {
169
+ calc: (cssVar: any) => InstanceType<typeof TokenUtil>;
170
+ };
151
171
  export type CssVarToken<Token = Recordable> = {
152
172
  [key in keyof Token]: Token[key] | string;
153
173
  };
154
- export type GenStyleFunc<Token = object> = (token: TokenWithComponentCls<Token & BaseToken>) => CSSInterpolation;
155
- export type StyleMixin<Token = object> = (token: TokenWithComponentCls<Token & BaseToken>) => CSSObject;
156
- export type GenStyleCallback<Token> = (token: TokenWithComponentCls<Token>, rawToken: TokenWithComponentCls<Token>) => CSSInterpolation[];
174
+ export type GenStyleFunc<Token = object> = (token: TokenWithUtil<Token & BaseToken>) => CSSInterpolation;
175
+ export type StyleMixin<Token = object> = (token: TokenWithUtil<Token & BaseToken>) => CSSObject;
176
+ export type GenStyleCallback<Token> = (calc: TokenWithUtil<Token>, rawToken: TokenWithComponentCls<Token>) => CSSInterpolation[];
package/es/src/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { APConfigProvider as T } from "./config-provider/index.mjs";
2
- import { ApForm as b } from "./ap-form/index.mjs";
2
+ import { ApForm as S } from "./ap-form/index.mjs";
3
3
  import { ApField as G, ApFieldRead as C } from "./ap-field/index.mjs";
4
4
  import { adminToken as h, aplusToken as E } from "./design-token/index.mjs";
5
5
  import { ApActionItem as L } from "./ap-action/index.mjs";
@@ -31,12 +31,12 @@ import { DEFAULT_NAMESPACE as W, DEFAULT_UIMODE as q, configProviderContextKey a
31
31
  import { keysOf as X, provideGlobalConfig as Y, useGlobalConfig as Z } from "./config-provider/hooks/use-global-config.mjs";
32
32
  import { buildLocaleContext as ee, buildTranslator as oe, localeContextKey as re, translate as te, useLocale as pe } from "./config-provider/hooks/use-locale.mjs";
33
33
  import { defaultNamespace as me, namespaceContextKey as fe, useGetDerivedNamespace as le, useNamespace as de } from "./config-provider/hooks/use-namespace.mjs";
34
- import { ConfigProvider as Ae, globalConfigCached as ue } from "./config-provider/config-provider.mjs";
34
+ import { ConfigProvider as ue, globalConfigCached as Ae } from "./config-provider/config-provider.mjs";
35
35
  import { ApFormItemText as ie } from "./ap-form/items/text/index.mjs";
36
36
  import { default as ce } from "./ap-form/items/text-area/index.vue.mjs";
37
37
  import { default as Ie } from "./ap-form/items/number/index.vue.mjs";
38
38
  import { default as ge } from "./ap-form/items/date/index.vue.mjs";
39
- import { default as Se } from "./ap-form/items/date-range/index.vue.mjs";
39
+ import { default as be } from "./ap-form/items/date-range/index.vue.mjs";
40
40
  import { default as Ce } from "./ap-form/items/radio/index.vue.mjs";
41
41
  import { default as he } from "./ap-form/items/select/index.vue.mjs";
42
42
  import { default as Pe } from "./ap-form/items/switch/index.vue.mjs";
@@ -57,12 +57,12 @@ import { default as ro } from "./ap-form/provider/index.vue.mjs";
57
57
  import { ApFieldText as po } from "./ap-field/text/index.mjs";
58
58
  import { default as mo } from "./ap-field/checkbox/index.vue.mjs";
59
59
  import { default as lo } from "./ap-field/date/index.vue.mjs";
60
- import { default as Ao } from "./ap-field/number/index.vue.mjs";
60
+ import { default as uo } from "./ap-field/number/index.vue.mjs";
61
61
  import { default as so } from "./ap-field/radio/index.vue.mjs";
62
62
  import { default as no } from "./ap-field/switch/index.vue.mjs";
63
63
  import { default as Fo } from "./ap-field/text-area/index.vue.mjs";
64
64
  import { default as To } from "./ap-field/date-range/index.vue.mjs";
65
- import { default as bo } from "./ap-field/select/index.vue.mjs";
65
+ import { default as So } from "./ap-field/select/index.vue.mjs";
66
66
  import { default as Go } from "./ap-field/text/password.vue.mjs";
67
67
  import { default as Do } from "./ap-field/slider/index.vue.mjs";
68
68
  import { default as Eo } from "./ap-field/segmented/index.vue.mjs";
@@ -84,12 +84,12 @@ import { default as tr } from "./ap-button/ap-button.vue.mjs";
84
84
  import { default as ar } from "./ap-button/ap-action-button.vue.mjs";
85
85
  import { default as fr } from "./ap-button/ap-confirm-button.vue.mjs";
86
86
  import { ApTransformDataHelper as dr } from "./utils/ap-trans-data/index.mjs";
87
- import { default as Ar } from "./business/ap-table-modal/index.mjs";
87
+ import { default as ur } from "./business/ap-table-modal/index.mjs";
88
88
  import { useTableModal as sr } from "./business/ap-table-modal/hooks/use-table-modal.mjs";
89
89
  import { useTableSelectModal as nr } from "./business/ap-table-modal/hooks/use-table-select-modal.mjs";
90
90
  import { ApAttachment as Fr } from "./business/ap-attachment/index.mjs";
91
91
  import { ApBatchAction as Tr } from "./business/ap-batch-action/index.mjs";
92
- import { ApBatchActionGroup as br } from "./business/ap-batch-action-group/index.mjs";
92
+ import { ApBatchActionGroup as Sr } from "./business/ap-batch-action-group/index.mjs";
93
93
  import { ApButtonGroup as Gr } from "./business/ap-button-group/index.mjs";
94
94
  import { ApCard as Dr } from "./business/ap-card/index.mjs";
95
95
  import { ApExpandAlert as Er } from "./business/ap-expand-alert/index.mjs";
@@ -110,53 +110,54 @@ import { useTableRefresh as tt } from "./business/hooks/useTableRefresh.mjs";
110
110
  import { usePageListApGrid as at } from "./business/hooks/usePageListApGrid.mjs";
111
111
  import { useGridRefresh as ft } from "./business/hooks/useGridRefresh.mjs";
112
112
  import { usePageListAgGrid as dt } from "./business/hooks/usePageListAgGrid.mjs";
113
- import { computedRecords as At, flattenColumns as ut, formatDataIndex as st, formatNumber as it } from "./business/ap-summary/utils.mjs";
113
+ import { computedRecords as ut, flattenColumns as At, formatDataIndex as st, formatNumber as it } from "./business/ap-summary/utils.mjs";
114
114
  import { ApSummary as ct } from "./business/ap-summary/index.mjs";
115
115
  import { ApNeedNameKeyDefault as It } from "./business/ap-appendix/interface.mjs";
116
116
  import { ApAppendix as gt } from "./business/ap-appendix/index.mjs";
117
- import { default as St } from "./business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs";
117
+ import { default as bt } from "./business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs";
118
118
  import { default as Ct } from "./business/batch-input-group/index.vue.mjs";
119
119
  import { default as ht } from "./business/batch-input-group/form-item.vue.mjs";
120
120
  import { ApSizeInput as Pt } from "./business/ap-size-input/index.mjs";
121
- import { ApProductInfo as Rt } from "./business/ap-product-info/index.mjs";
122
- import { ApCopy as yt } from "./business/ap-copy/index.mjs";
123
- import { ApView as wt } from "./business/ap-view/index.mjs";
124
- import { ApRadioGroup as Bt } from "./business/ap-radio-group/index.mjs";
125
- import { ApKeepAliveProps as kt, forceStopTags as Ot } from "./business/ap-keep-alive/interface.mjs";
126
- import { ApKeepAlive as Vt } from "./business/ap-keep-alive/index.mjs";
127
- import { LruCacher as zt } from "./business/ap-keep-alive/cacher/lru-cacher.mjs";
128
- import { useApKeepAliveInject as Ht } from "./business/ap-keep-alive/hook.mjs";
129
- import { matches as qt } from "./business/ap-keep-alive/utils.mjs";
130
- import { ApDraggableGrid as Qt } from "./business/ap-draggable-grid/index.mjs";
131
- import { ApValueSelectCard as Yt } from "./business/ap-value-select-card/index.mjs";
132
- import { useAgGridModal as $t } from "./business/ag-grid-modal/hooks/use-ag-grid-modal.mjs";
133
- import { useAgGridSelectModal as op } from "./business/ag-grid-modal/hooks/use-ag-grid-select-modal.mjs";
134
- import { ApSelectedItems as tp } from "./business/ag-grid-modal/selected-items/index.mjs";
135
- import { useTablePaging as ap } from "./ap-table/hooks/use-table-paging.mjs";
136
- import { default as fp } from "./editable-table/index.vue.mjs";
137
- import { default as dp } from "./editable-table/form-item.vue.mjs";
138
- import { default as Ap } from "./ap-descriptions/ap-descriptions.vue.mjs";
139
- import { ensureRangeValue as sp } from "./scroll-bar/utils/index.mjs";
140
- import { default as np } from "./scroll-bar/index.vue.mjs";
141
- import { default as Fp } from "./scroll-bar/internal.vue.mjs";
142
- import { default as Tp } from "./scroll-view/index.vue.mjs";
143
- import { default as bp } from "./portal/index.vue.mjs";
144
- import { default as Gp } from "./full-screen/index.vue.mjs";
145
- import { default as Dp } from "./resize-observer/index.vue.mjs";
146
- import { ROW_SELECTION_FIELD as Ep } from "./ap-grid/constants.mjs";
147
- import { toTreeArray as Lp } from "./ap-grid/utils/to-tree-array.mjs";
148
- import { default as Np } from "./ap-grid/index.vue.mjs";
149
- import { default as vp } from "./ap-grid/editable/index.vue.mjs";
150
- import { default as Mp } from "./ap-grid/editable/form-item.vue.mjs";
151
- import { default as Kp } from "./text/index.vue.mjs";
152
- import { default as Op } from "./text/group.vue.mjs";
153
- import { default as Vp } from "./mask/index.vue.mjs";
154
- import { default as zp } from "./ag-grid/index.vue.mjs";
155
- import { default as Hp } from "./ag-grid/editable/index.vue.mjs";
156
- import { default as qp } from "./ag-grid/editable/form-item.vue.mjs";
121
+ import { default as Rt } from "./business/ap-size-input/form-item.vue.mjs";
122
+ import { ApProductInfo as yt } from "./business/ap-product-info/index.mjs";
123
+ import { ApCopy as wt } from "./business/ap-copy/index.mjs";
124
+ import { ApView as Bt } from "./business/ap-view/index.mjs";
125
+ import { ApRadioGroup as kt } from "./business/ap-radio-group/index.mjs";
126
+ import { ApKeepAliveProps as Ut, forceStopTags as Vt } from "./business/ap-keep-alive/interface.mjs";
127
+ import { ApKeepAlive as zt } from "./business/ap-keep-alive/index.mjs";
128
+ import { LruCacher as Ht } from "./business/ap-keep-alive/cacher/lru-cacher.mjs";
129
+ import { useApKeepAliveInject as qt } from "./business/ap-keep-alive/hook.mjs";
130
+ import { matches as Qt } from "./business/ap-keep-alive/utils.mjs";
131
+ import { ApDraggableGrid as Yt } from "./business/ap-draggable-grid/index.mjs";
132
+ import { ApValueSelectCard as $t } from "./business/ap-value-select-card/index.mjs";
133
+ import { useAgGridModal as op } from "./business/ag-grid-modal/hooks/use-ag-grid-modal.mjs";
134
+ import { useAgGridSelectModal as tp } from "./business/ag-grid-modal/hooks/use-ag-grid-select-modal.mjs";
135
+ import { ApSelectedItems as ap } from "./business/ag-grid-modal/selected-items/index.mjs";
136
+ import { useTablePaging as fp } from "./ap-table/hooks/use-table-paging.mjs";
137
+ import { default as dp } from "./editable-table/index.vue.mjs";
138
+ import { default as up } from "./editable-table/form-item.vue.mjs";
139
+ import { default as sp } from "./ap-descriptions/ap-descriptions.vue.mjs";
140
+ import { ensureRangeValue as np } from "./scroll-bar/utils/index.mjs";
141
+ import { default as Fp } from "./scroll-bar/index.vue.mjs";
142
+ import { default as Tp } from "./scroll-bar/internal.vue.mjs";
143
+ import { default as Sp } from "./scroll-view/index.vue.mjs";
144
+ import { default as Gp } from "./portal/index.vue.mjs";
145
+ import { default as Dp } from "./full-screen/index.vue.mjs";
146
+ import { default as Ep } from "./resize-observer/index.vue.mjs";
147
+ import { ROW_SELECTION_FIELD as Lp } from "./ap-grid/constants.mjs";
148
+ import { toTreeArray as Np } from "./ap-grid/utils/to-tree-array.mjs";
149
+ import { default as vp } from "./ap-grid/index.vue.mjs";
150
+ import { default as Mp } from "./ap-grid/editable/index.vue.mjs";
151
+ import { default as Kp } from "./ap-grid/editable/form-item.vue.mjs";
152
+ import { default as Op } from "./text/index.vue.mjs";
153
+ import { default as Vp } from "./text/group.vue.mjs";
154
+ import { default as zp } from "./mask/index.vue.mjs";
155
+ import { default as Hp } from "./ag-grid/index.vue.mjs";
156
+ import { default as qp } from "./ag-grid/editable/index.vue.mjs";
157
+ import { default as Qp } from "./ag-grid/editable/form-item.vue.mjs";
157
158
  export {
158
159
  T as APConfigProvider,
159
- zp as AgGrid,
160
+ Hp as AgGrid,
160
161
  ar as ApActionButton,
161
162
  Oo as ApActionGroup,
162
163
  L as ApActionItem,
@@ -166,16 +167,16 @@ export {
166
167
  gt as ApAppendix,
167
168
  Fr as ApAttachment,
168
169
  Tr as ApBatchAction,
169
- br as ApBatchActionGroup,
170
+ Sr as ApBatchActionGroup,
170
171
  tr as ApButton,
171
172
  Gr as ApButtonGroup,
172
173
  Dr as ApCard,
173
174
  fr as ApConfirmButton,
174
- yt as ApCopy,
175
- Ap as ApDescriptions,
175
+ wt as ApCopy,
176
+ sp as ApDescriptions,
176
177
  Qo as ApDownLoadNeedNameKeyDefault,
177
178
  Yo as ApDownload,
178
- Qt as ApDraggableGrid,
179
+ Yt as ApDraggableGrid,
179
180
  M as ApDrawer,
180
181
  Er as ApExpandAlert,
181
182
  Nr as ApExportGroup,
@@ -184,19 +185,19 @@ export {
184
185
  mo as ApFieldCheckbox,
185
186
  lo as ApFieldDate,
186
187
  To as ApFieldDateRange,
187
- Ao as ApFieldNumber,
188
+ uo as ApFieldNumber,
188
189
  Go as ApFieldPassword,
189
190
  so as ApFieldRadio,
190
191
  Lo as ApFieldRate,
191
192
  C as ApFieldRead,
192
193
  Eo as ApFieldSegmented,
193
- bo as ApFieldSelect,
194
+ So as ApFieldSelect,
194
195
  Do as ApFieldSlider,
195
196
  no as ApFieldSwitch,
196
197
  po as ApFieldText,
197
198
  Fo as ApFieldTextArea,
198
199
  No as ApFieldTreeSelect,
199
- b as ApForm,
200
+ S as ApForm,
200
201
  Ze as ApFormControlRender,
201
202
  We as ApFormDependency,
202
203
  Xe as ApFormDrawerForm,
@@ -204,12 +205,13 @@ export {
204
205
  ht as ApFormItemBatchInput,
205
206
  Re as ApFormItemCheckbox,
206
207
  ge as ApFormItemDate,
207
- Se as ApFormItemDateRange,
208
+ be as ApFormItemDateRange,
208
209
  ke as ApFormItemGroup,
209
210
  Ie as ApFormItemNumber,
210
211
  Ce as ApFormItemRadio,
211
212
  eo as ApFormItemRender,
212
213
  he as ApFormItemSelect,
214
+ Rt as ApFormItemSizeInput,
213
215
  Pe as ApFormItemSwitch,
214
216
  ie as ApFormItemText,
215
217
  ce as ApFormItemTextArea,
@@ -220,11 +222,11 @@ export {
220
222
  ro as ApFormProvider,
221
223
  _e as ApFormSearchForm,
222
224
  Je as ApFormSet,
223
- Np as ApGrid,
225
+ vp as ApGrid,
224
226
  Kr as ApImage,
225
227
  Or as ApInputRadio,
226
- Vt as ApKeepAlive,
227
- kt as ApKeepAliveProps,
228
+ zt as ApKeepAlive,
229
+ Ut as ApKeepAliveProps,
228
230
  Vr as ApLabel,
229
231
  _r as ApLabelGroup,
230
232
  Wr as ApLadder,
@@ -232,77 +234,77 @@ export {
232
234
  v as ApModal,
233
235
  It as ApNeedNameKeyDefault,
234
236
  K as ApProCard,
235
- Rt as ApProductInfo,
236
- Bt as ApRadioGroup,
237
+ yt as ApProductInfo,
238
+ kt as ApRadioGroup,
237
239
  Jr as ApSelectLayout,
238
- tp as ApSelectedItems,
240
+ ap as ApSelectedItems,
239
241
  Pt as ApSizeInput,
240
242
  k as ApStatisticCard,
241
243
  Xr as ApStatus,
242
244
  Yr as ApStatusGroup,
243
245
  ct as ApSummary,
244
246
  U as ApTable,
245
- Ar as ApTableModal,
247
+ ur as ApTableModal,
246
248
  Vo as ApTag,
247
249
  zo as ApTagGroup,
248
- Kp as ApText,
249
- Op as ApTextGroup,
250
+ Op as ApText,
251
+ Vp as ApTextGroup,
250
252
  $r as ApTitle,
251
253
  dr as ApTransformDataHelper,
252
254
  qo as ApUpload,
253
- St as ApUploadSingle,
254
- Yt as ApValueSelectCard,
255
- wt as ApView,
255
+ bt as ApUploadSingle,
256
+ $t as ApValueSelectCard,
257
+ Bt as ApView,
256
258
  Ct as BatchInputGroup,
257
259
  N as CheckCard,
258
260
  $o as CheckCardGroup,
259
- Ae as ConfigProvider,
261
+ ue as ConfigProvider,
260
262
  W as DEFAULT_NAMESPACE,
261
263
  q as DEFAULT_UIMODE,
262
- Hp as EditableAgGrid,
263
- qp as EditableAgGridFormItem,
264
- vp as EditableGrid,
265
- Mp as EditableGridFormItem,
266
- fp as EditableTable,
267
- dp as EditableTableFormItem,
268
- Gp as FullScreen,
269
- Fp as InternalScrollBar,
270
- zt as LruCacher,
271
- Vp as Mask,
264
+ qp as EditableAgGrid,
265
+ Qp as EditableAgGridFormItem,
266
+ Mp as EditableGrid,
267
+ Kp as EditableGridFormItem,
268
+ dp as EditableTable,
269
+ up as EditableTableFormItem,
270
+ Dp as FullScreen,
271
+ Tp as InternalScrollBar,
272
+ Ht as LruCacher,
273
+ zp as Mask,
272
274
  Ho as NeedNameKeyDefault,
273
- bp as Portal,
274
- Ep as ROW_SELECTION_FIELD,
275
- Dp as ResizeObserver,
276
- np as ScrollBar,
277
- Tp as ScrollView,
275
+ Gp as Portal,
276
+ Lp as ROW_SELECTION_FIELD,
277
+ Ep as ResizeObserver,
278
+ Fp as ScrollBar,
279
+ Sp as ScrollView,
278
280
  _ as Splitter,
279
281
  h as adminToken,
280
282
  E as aplusToken,
281
283
  ee as buildLocaleContext,
282
284
  oe as buildTranslator,
283
- At as computedRecords,
285
+ ut as computedRecords,
284
286
  J as configProviderContextKey,
285
287
  j as configProviderProps,
286
288
  Mr as convertExportField,
287
289
  me as defaultNamespace,
288
- sp as ensureRangeValue,
289
- ut as flattenColumns,
290
- Ot as forceStopTags,
290
+ np as ensureRangeValue,
291
+ At as flattenColumns,
292
+ Vt as forceStopTags,
291
293
  st as formatDataIndex,
292
294
  it as formatNumber,
293
- ue as globalConfigCached,
295
+ Ae as globalConfigCached,
294
296
  vr as handleExportDownload,
295
- qt as isNameMatches,
297
+ Qt as isNameMatches,
296
298
  X as keysOf,
297
299
  re as localeContextKey,
298
300
  jr as locales,
299
301
  fe as namespaceContextKey,
300
302
  Y as provideGlobalConfig,
301
- Lp as toTreeArray,
303
+ Np as toTreeArray,
302
304
  te as translate,
303
- $t as useAgGridModal,
304
- op as useAgGridSelectModal,
305
- Ht as useApKeepAliveInject,
305
+ op as useAgGridModal,
306
+ tp as useAgGridSelectModal,
307
+ qt as useApKeepAliveInject,
306
308
  le as useGetDerivedNamespace,
307
309
  Z as useGlobalConfig,
308
310
  ft as useGridRefresh,
@@ -312,7 +314,7 @@ export {
312
314
  at as usePageListApGrid,
313
315
  ot as usePageListApTable,
314
316
  sr as useTableModal,
315
- ap as useTablePaging,
317
+ fp as useTablePaging,
316
318
  tt as useTableRefresh,
317
319
  nr as useTableSelectModal
318
320
  };
@@ -1,8 +1,8 @@
1
- import { genComponentStyleHook as a } from "../../utils/cssinjs/index.mjs";
2
- const e = (r) => {
3
- const { componentCls: t, scrollBarTrackWidth: l, scrollBarBarWidth: o } = r;
1
+ import { genComponentStyleHook as t } from "../../utils/cssinjs/index.mjs";
2
+ const c = (r) => {
3
+ const { componentCls: a, scrollBarTrackWidth: l, scrollBarBarWidth: o } = r;
4
4
  return {
5
- [t]: {
5
+ [a]: {
6
6
  position: "relative",
7
7
  "&--horizontal": {
8
8
  width: "100%",
@@ -12,7 +12,7 @@ const e = (r) => {
12
12
  width: l,
13
13
  height: "100%"
14
14
  },
15
- [`${t}__track`]: {
15
+ [`${a}__track`]: {
16
16
  position: "absolute",
17
17
  width: "100%",
18
18
  height: "100%",
@@ -29,7 +29,7 @@ const e = (r) => {
29
29
  backgroundColor: "transparent"
30
30
  }
31
31
  },
32
- [`${t}__bar`]: {
32
+ [`${a}__bar`]: {
33
33
  position: "absolute",
34
34
  borderRadius: o,
35
35
  backgroundColor: r.scrollBarBarColor,
@@ -40,18 +40,18 @@ const e = (r) => {
40
40
  },
41
41
  "&--horizontal": {
42
42
  height: o,
43
- top: `calc(${l} / 2 - ${o} / 2)`
43
+ top: r.calc(l).div(2).sub(r.calc(o).div(2)).equal()
44
44
  },
45
45
  "&--vertical": {
46
46
  width: o,
47
- left: `calc(${l} / 2 - ${o} / 2)`
47
+ left: r.calc(l).div(2).sub(r.calc(o).div(2)).equal()
48
48
  }
49
49
  }
50
50
  }
51
51
  };
52
- }, n = a(
52
+ }, e = t(
53
53
  "Scrollbar",
54
- (r) => [e(r)],
54
+ (r) => [c(r)],
55
55
  {
56
56
  scrollBarBarColor: "#c7c8cc",
57
57
  scrollBarTrackColor: "#F2F2F2",
@@ -61,6 +61,6 @@ const e = (r) => {
61
61
  }
62
62
  );
63
63
  export {
64
- n as default,
65
- e as genScrollbarStyle
64
+ e as default,
65
+ c as genScrollbarStyle
66
66
  };
@@ -19,7 +19,7 @@ const t = () => ({
19
19
  boxSizing: "border-box",
20
20
  margin: 0,
21
21
  padding: 0,
22
- color: r.textColor2,
22
+ color: r.textColor1,
23
23
  fontSize: r.fontSize,
24
24
  lineHeight: r.lineHeight,
25
25
  listStyle: "none",
@@ -79,7 +79,7 @@ const t = () => ({
79
79
  background: "rgba(0,0,0,0.04)",
80
80
  fontSize: r.fontSizeSM,
81
81
  borderRadius: "2px",
82
- color: r.textColor2,
82
+ color: r.textColor1,
83
83
  cursor: "pointer",
84
84
  opacity: 0,
85
85
  display: "flex",
@@ -140,11 +140,11 @@ const t = () => ({
140
140
  height: "24px",
141
141
  "&-start": {
142
142
  left: "auto",
143
- right: `calc(${r.splitterTriggerSize} / 2)`,
143
+ right: r.calc(r.splitterTriggerSize).div(2).equal(),
144
144
  transform: "translateY(-50%)"
145
145
  },
146
146
  "&-end": {
147
- left: `calc(${r.splitterTriggerSize} / 2)`,
147
+ left: r.calc(r.splitterTriggerSize).div(2).equal(),
148
148
  right: "auto",
149
149
  transform: "translateY(-50%)"
150
150
  }
@@ -182,11 +182,11 @@ const t = () => ({
182
182
  width: "24px",
183
183
  "&-start": {
184
184
  top: "auto",
185
- bottom: `calc(${r.splitterTriggerSize} / 2)`,
185
+ bottom: r.calc(r.splitterTriggerSize).div(2).equal(),
186
186
  transform: "translateX(-50%)"
187
187
  },
188
188
  "&-end": {
189
- top: `calc(${r.splitterTriggerSize} / 2)`,
189
+ top: r.calc(r.splitterTriggerSize).div(2).equal(),
190
190
  bottom: "auto",
191
191
  transform: "translateX(-50%)"
192
192
  }
@@ -2,7 +2,7 @@ const o = (r) => ({
2
2
  boxSizing: "border-box",
3
3
  margin: 0,
4
4
  padding: 0,
5
- color: r.textColor2,
5
+ color: r.textColor1,
6
6
  fontSize: r.fontSize,
7
7
  fontFamily: "inherit",
8
8
  lineHeight: r.lineHeight,
@@ -45,7 +45,7 @@ const l = {
45
45
  }
46
46
  },
47
47
  "span.ant-typography": {
48
- color: n.textColor2
48
+ color: n.textColor1
49
49
  },
50
50
  "span.ant-typography.ant-typography-secondary": {
51
51
  color: e
@@ -0,0 +1,11 @@
1
+ export declare class TokenUtil {
2
+ private result;
3
+ private lowPriority?;
4
+ constructor(cssVar: string);
5
+ add(cssVar: string | number | TokenUtil): this;
6
+ sub(cssVar: string | number | TokenUtil): this;
7
+ mul(cssVar: string | number | TokenUtil): this;
8
+ div(cssVar: string | number | TokenUtil): this;
9
+ getResult(): string;
10
+ equal(): string;
11
+ }
@@ -0,0 +1,26 @@
1
+ class s {
2
+ constructor(t) {
3
+ this.result = "", this.result = t;
4
+ }
5
+ add(t) {
6
+ return t instanceof s ? this.result = `${this.result} + ${t.getResult()}` : this.result = `${this.result} + ${t}`, this.lowPriority = !0, this;
7
+ }
8
+ sub(t) {
9
+ return console.log("cssVar", t), t instanceof s ? this.result = `${this.result} - ${t.getResult()}` : this.result = `${this.result} - ${t}`, this.lowPriority = !0, this;
10
+ }
11
+ mul(t) {
12
+ return this.lowPriority && (this.result = `(${this.result})`), t instanceof s ? this.result = `${this.result} * ${t.getResult()}` : this.result = `${this.result} * ${t}`, this.lowPriority = !1, this;
13
+ }
14
+ div(t) {
15
+ return this.lowPriority && (this.result = `(${this.result})`), t instanceof s ? this.result = `${this.result} / ${t.getResult()}` : this.result = `${this.result} / ${t}`, this.lowPriority = !1, this;
16
+ }
17
+ getResult() {
18
+ return this.lowPriority ? `(${this.result})` : this.result;
19
+ }
20
+ equal() {
21
+ return typeof this.lowPriority < "u" ? `calc(${this.result})` : this.result;
22
+ }
23
+ }
24
+ export {
25
+ s as TokenUtil
26
+ };
@@ -1,4 +1,4 @@
1
1
  import { BaseToken, GenStyleCallback } from '../../design-token/interface';
2
2
  import { GeneraterOption } from './utils';
3
3
  import { ComputedRef } from 'vue';
4
- export declare function genComponentStyleHook<ComponentToken>(componentName: string, cb: GenStyleCallback<BaseToken & ComponentToken>, componentToken?: Partial<ComponentToken>, option?: GeneraterOption): (prefixCls: string) => ComputedRef<string>;
4
+ export declare function genComponentStyleHook<ComponentToken>(componentName: string, cb: GenStyleCallback<BaseToken & ComponentToken>, componentToken?: Partial<ComponentToken> | ((token: BaseToken & Partial<ComponentToken>) => Partial<ComponentToken>), option?: GeneraterOption): (prefixCls: string) => ComputedRef<string>;