@aplus-frontend/ui 6.28.0 → 6.28.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/src/ag-grid/hooks/use-columns-def.mjs +28 -24
- package/es/src/ag-grid/hooks/use-pinned-row.mjs +12 -7
- package/es/src/ag-grid/hooks/use-selection-col-def.mjs +12 -11
- package/es/src/ag-grid/interface.d.ts +1 -1
- package/es/src/ag-grid/renderer/select.d.ts +4 -1
- package/es/src/ag-grid/renderer/select.mjs +11 -7
- package/es/src/ag-grid/theme.mjs +11 -9
- package/es/src/ap-field/tree-select/index.vue.d.ts +20 -0
- package/es/src/ap-field/tree-select/index.vue.mjs +15 -14
- package/es/src/ap-field/tree-select/read.vue2.mjs +1 -0
- package/es/src/ap-form/items/tree-select/index.vue.d.ts +22 -0
- package/es/src/ap-table/constants.d.ts +11 -0
- package/es/src/ap-table/utils.mjs +51 -42
- package/es/src/business/ap-summary/interface.d.ts +3 -1
- package/es/src/business/ap-summary/utils.mjs +14 -11
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/src/ag-grid/hooks/use-columns-def.js +1 -1
- package/lib/src/ag-grid/hooks/use-pinned-row.js +1 -1
- package/lib/src/ag-grid/hooks/use-selection-col-def.js +1 -1
- package/lib/src/ag-grid/interface.d.ts +1 -1
- package/lib/src/ag-grid/renderer/select.d.ts +4 -1
- package/lib/src/ag-grid/renderer/select.js +1 -1
- package/lib/src/ag-grid/theme.js +1 -1
- package/lib/src/ap-field/tree-select/index.vue.d.ts +20 -0
- package/lib/src/ap-field/tree-select/index.vue.js +1 -1
- package/lib/src/ap-field/tree-select/read.vue2.js +1 -1
- package/lib/src/ap-form/items/tree-select/index.vue.d.ts +22 -0
- package/lib/src/ap-table/constants.d.ts +11 -0
- package/lib/src/ap-table/utils.js +1 -1
- package/lib/src/business/ap-summary/interface.d.ts +3 -1
- package/lib/src/business/ap-summary/utils.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +3 -3
- package/theme/ag-grid/index.css +3 -0
- package/theme/ap-form/ap-form-item.css +3 -0
- package/theme/ap-form/ap-form-item.less +3 -0
- package/theme/ap-form/index.css +3 -0
- package/theme/ap-form/search-form.css +3 -0
- package/theme/ap-grid/index.css +3 -0
- package/theme/ap-table/ap-table.css +3 -0
- package/theme/ap-table-modal/index.css +3 -0
- package/theme/ap-value-select-card/index.css +3 -0
- package/theme/ap-value-select-card/index.less +3 -0
- package/theme/editable-table/index.css +3 -0
- package/theme/index.css +6 -0
|
@@ -2,7 +2,8 @@ import { ColumnsType } from '@aplus-frontend/antdv/es/table';
|
|
|
2
2
|
import { AlignType, DataIndex, Key } from '@aplus-frontend/antdv/es/vc-table/interface';
|
|
3
3
|
import { ApColumnType } from '../../ap-table';
|
|
4
4
|
import { ApGridColumnType } from '../../ap-grid';
|
|
5
|
-
|
|
5
|
+
import { AgGridColumnType } from '../../ag-grid';
|
|
6
|
+
export type SummaryColumnType = ApColumnType[] | ApGridColumnType[] | AgGridColumnType[] | ColumnsType | any[];
|
|
6
7
|
export type ValueType = {
|
|
7
8
|
[key in string]: any;
|
|
8
9
|
};
|
|
@@ -40,4 +41,5 @@ export interface ComputedRecordParams<T> {
|
|
|
40
41
|
* 排出 在 columns 和 configList中相同key 的配置项
|
|
41
42
|
*/
|
|
42
43
|
exclude?: Key[];
|
|
44
|
+
valueTypeExtension?: string[];
|
|
43
45
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("lodash-unified"),d=require("@aplus-frontend/utils"),m=t=>t?.children&&t?.children?.length>0?r.flatten(t.children?.map(e=>m(e))):[t],
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("lodash-unified"),d=require("@aplus-frontend/utils"),m=t=>t?.children&&t?.children?.length>0?r.flatten(t.children?.map(e=>m(e))):[t],y=t=>r.flatten(t?.map(e=>m(e))),a=t=>Object.prototype.toString.call(t)==="[object Array]"?t.map(e=>String(e)).join("."):t??"",x=(t,e,c)=>c?d.toThousand(t,e):d.toFixed(t,e);function C(t){const{records:e,columns:c,configList:s,exclude:i,valueTypeExtension:g}=t;if(!e||e?.length===0)return{};let o=y(c)?.filter(n=>n.valueType==="number"||g?.includes(n.valueType))?.map(n=>({key:n.key||"",dataIndex:n.dataIndex}));s&&s?.length>0&&(o=r.uniqBy(o?.concat(s),"key")),i&&i.length>0&&(o=o.filter(n=>!i.includes(n.key)));const h={};return e?.reduce((n,f)=>(o.forEach(u=>{if(!r.isNil(r.get(f,a(u.dataIndex||u.key)))){const l=u.dataIndex||u.key,p=r.get(n,a(l))||0,b=r.get(f,a(l))||0,k=d.addNumber(p,b)?.toNumber();r.set(n,l,+k)}}),n),h)}exports.computedRecords=C;exports.flattenColumns=y;exports.formatDataIndex=a;exports.formatNumber=x;
|
package/lib/src/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "6.28.
|
|
1
|
+
declare const _default: "6.28.2";
|
|
2
2
|
export default _default;
|
package/lib/src/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="6.28.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="6.28.2";exports.default=e;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aplus-frontend/ui",
|
|
3
|
-
"version": "6.28.
|
|
3
|
+
"version": "6.28.2",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
"@aplus-frontend/hooks": "1.0.7"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"@aplus-frontend/antdv": "^1.2.
|
|
44
|
+
"@aplus-frontend/antdv": "^1.2.6",
|
|
45
45
|
"@aplus-frontend/icon": "^1.2.6",
|
|
46
46
|
"@aplus-frontend/oss": "^1.1.2",
|
|
47
47
|
"vue": "^3.5.17",
|
|
48
48
|
"vxe-table": "^4.13.37"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@aplus-frontend/antdv": "^1.2.
|
|
51
|
+
"@aplus-frontend/antdv": "^1.2.6",
|
|
52
52
|
"@aplus-frontend/icon": "^1.2.6",
|
|
53
53
|
"@aplus-frontend/oss": "^1.1.2",
|
|
54
54
|
"@types/sortablejs": "^1.15.8",
|
package/theme/ag-grid/index.css
CHANGED
|
@@ -146,6 +146,9 @@
|
|
|
146
146
|
.aplus-ap-form-item--bordered .ant-form-item-control-input {
|
|
147
147
|
min-height: 30px;
|
|
148
148
|
}
|
|
149
|
+
.aplus-ap-form-item--bordered .ant-form-item-control-input .ant-select-single {
|
|
150
|
+
height: unset;
|
|
151
|
+
}
|
|
149
152
|
.aplus-ap-form-item--bordered:hover {
|
|
150
153
|
border-color: var(--ap-hover-color-base);
|
|
151
154
|
}
|
|
@@ -101,6 +101,9 @@
|
|
|
101
101
|
.aplus-ap-form-item--bordered .ant-form-item-control-input {
|
|
102
102
|
min-height: 30px;
|
|
103
103
|
}
|
|
104
|
+
.aplus-ap-form-item--bordered .ant-form-item-control-input .ant-select-single {
|
|
105
|
+
height: unset;
|
|
106
|
+
}
|
|
104
107
|
.aplus-ap-form-item--bordered:hover {
|
|
105
108
|
border-color: var(--ap-hover-color-base);
|
|
106
109
|
}
|
package/theme/ap-form/index.css
CHANGED
|
@@ -110,6 +110,9 @@
|
|
|
110
110
|
.aplus-ap-form-item--bordered .ant-form-item-control-input {
|
|
111
111
|
min-height: 30px;
|
|
112
112
|
}
|
|
113
|
+
.aplus-ap-form-item--bordered .ant-form-item-control-input .ant-select-single {
|
|
114
|
+
height: unset;
|
|
115
|
+
}
|
|
113
116
|
.aplus-ap-form-item--bordered:hover {
|
|
114
117
|
border-color: var(--ap-hover-color-base);
|
|
115
118
|
}
|
|
@@ -101,6 +101,9 @@
|
|
|
101
101
|
.aplus-ap-form-item--bordered .ant-form-item-control-input {
|
|
102
102
|
min-height: 30px;
|
|
103
103
|
}
|
|
104
|
+
.aplus-ap-form-item--bordered .ant-form-item-control-input .ant-select-single {
|
|
105
|
+
height: unset;
|
|
106
|
+
}
|
|
104
107
|
.aplus-ap-form-item--bordered:hover {
|
|
105
108
|
border-color: var(--ap-hover-color-base);
|
|
106
109
|
}
|
package/theme/ap-grid/index.css
CHANGED
|
@@ -110,6 +110,9 @@
|
|
|
110
110
|
.aplus-ap-form-item--bordered .ant-form-item-control-input {
|
|
111
111
|
min-height: 30px;
|
|
112
112
|
}
|
|
113
|
+
.aplus-ap-form-item--bordered .ant-form-item-control-input .ant-select-single {
|
|
114
|
+
height: unset;
|
|
115
|
+
}
|
|
113
116
|
.aplus-ap-form-item--bordered:hover {
|
|
114
117
|
border-color: var(--ap-hover-color-base);
|
|
115
118
|
}
|
|
@@ -303,6 +303,9 @@
|
|
|
303
303
|
.aplus-ap-form-item--bordered .ant-form-item-control-input {
|
|
304
304
|
min-height: 30px;
|
|
305
305
|
}
|
|
306
|
+
.aplus-ap-form-item--bordered .ant-form-item-control-input .ant-select-single {
|
|
307
|
+
height: unset;
|
|
308
|
+
}
|
|
306
309
|
.aplus-ap-form-item--bordered:hover {
|
|
307
310
|
border-color: var(--ap-hover-color-base);
|
|
308
311
|
}
|
|
@@ -303,6 +303,9 @@
|
|
|
303
303
|
.aplus-ap-form-item--bordered .ant-form-item-control-input {
|
|
304
304
|
min-height: 30px;
|
|
305
305
|
}
|
|
306
|
+
.aplus-ap-form-item--bordered .ant-form-item-control-input .ant-select-single {
|
|
307
|
+
height: unset;
|
|
308
|
+
}
|
|
306
309
|
.aplus-ap-form-item--bordered:hover {
|
|
307
310
|
border-color: var(--ap-hover-color-base);
|
|
308
311
|
}
|
|
@@ -110,6 +110,9 @@
|
|
|
110
110
|
.aplus-ap-form-item--bordered .ant-form-item-control-input {
|
|
111
111
|
min-height: 30px;
|
|
112
112
|
}
|
|
113
|
+
.aplus-ap-form-item--bordered .ant-form-item-control-input .ant-select-single {
|
|
114
|
+
height: unset;
|
|
115
|
+
}
|
|
113
116
|
.aplus-ap-form-item--bordered:hover {
|
|
114
117
|
border-color: var(--ap-hover-color-base);
|
|
115
118
|
}
|
package/theme/index.css
CHANGED
|
@@ -1140,6 +1140,9 @@
|
|
|
1140
1140
|
.aplus-ap-form-item--bordered .ant-form-item-control-input {
|
|
1141
1141
|
min-height: 30px;
|
|
1142
1142
|
}
|
|
1143
|
+
.aplus-ap-form-item--bordered .ant-form-item-control-input .ant-select-single {
|
|
1144
|
+
height: unset;
|
|
1145
|
+
}
|
|
1143
1146
|
.aplus-ap-form-item--bordered:hover {
|
|
1144
1147
|
border-color: var(--ap-hover-color-base);
|
|
1145
1148
|
}
|
|
@@ -4500,6 +4503,9 @@ div.aplus-ap-info-layout-admin__header-shadow.aplus-ap-info-layout-admin__sticky
|
|
|
4500
4503
|
.aplus-ap-value-select-card--admin .aplus-ap-value-select-card-title {
|
|
4501
4504
|
color: #666;
|
|
4502
4505
|
}
|
|
4506
|
+
.aplus-ap-value-select-card--admin .aplus-ap-value-select-card-title-icon {
|
|
4507
|
+
color: #BFBFBF;
|
|
4508
|
+
}
|
|
4503
4509
|
.aplus-pro-card {
|
|
4504
4510
|
position: relative;
|
|
4505
4511
|
display: flex;
|