@aplus-frontend/ui 7.7.8 → 7.7.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/src/ag-grid/editable/form-item.vue.mjs +67 -66
- package/es/src/ag-grid/hooks/use-editable-form-item-api.d.ts +1 -0
- package/es/src/ag-grid/hooks/use-editable-form-item-api.mjs +98 -94
- package/es/src/ap-action/item-dropdown/index.vue.mjs +23 -21
- package/es/src/ap-action/item-popconfirm/index.vue.d.ts +1 -0
- package/es/src/ap-action/style/dropdown-item.mjs +7 -9
- package/es/src/ap-action/style/index.d.ts +3 -0
- package/es/src/ap-action/style/index.mjs +22 -26
- package/es/src/ap-field/style/textarea.mjs +10 -4
- package/es/src/ap-field/text-area/index.vue.mjs +24 -23
- package/es/src/ap-form/ap-form.vue2.mjs +27 -27
- package/es/src/ap-form/drawer-form/index.vue.d.ts +4 -4
- package/es/src/ap-form/interface.d.ts +2 -1
- package/es/src/ap-form/modal-form/index.vue.d.ts +4 -4
- package/es/src/ap-form/search-form/index.vue.d.ts +2 -2
- package/es/src/ap-form/style/item.mjs +13 -19
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +1 -1
- package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +1 -1
- package/es/src/check-card/style/index.mjs +39 -37
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/src/ag-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ag-grid/hooks/use-editable-form-item-api.d.ts +1 -0
- package/lib/src/ag-grid/hooks/use-editable-form-item-api.js +1 -1
- package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
- package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +1 -0
- package/lib/src/ap-action/style/dropdown-item.js +1 -1
- package/lib/src/ap-action/style/index.d.ts +3 -0
- package/lib/src/ap-action/style/index.js +1 -1
- package/lib/src/ap-field/style/textarea.js +1 -1
- package/lib/src/ap-field/text-area/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +4 -4
- package/lib/src/ap-form/interface.d.ts +2 -1
- package/lib/src/ap-form/modal-form/index.vue.d.ts +4 -4
- package/lib/src/ap-form/search-form/index.vue.d.ts +2 -2
- package/lib/src/ap-form/style/item.js +1 -1
- package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +1 -1
- package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +1 -1
- package/lib/src/check-card/style/index.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +3 -3
- package/es/src/check-card/group/style/css.d.ts +0 -1
- package/es/src/check-card/group/style/index.d.ts +0 -1
- package/lib/src/check-card/group/style/css.d.ts +0 -1
- package/lib/src/check-card/group/style/index.d.ts +0 -1
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { resetComponent as o } from "../../style/index.mjs";
|
|
2
|
-
import { genComponentStyleHook as
|
|
3
|
-
const s = (
|
|
2
|
+
import { genComponentStyleHook as n } from "../../utils/cssinjs/index.mjs";
|
|
3
|
+
const s = (i) => {
|
|
4
4
|
const {
|
|
5
|
-
componentCls:
|
|
5
|
+
componentCls: e,
|
|
6
6
|
checkCardDisabledOutlineColor: l,
|
|
7
|
-
checkCardIndicatorSize:
|
|
7
|
+
checkCardIndicatorSize: a,
|
|
8
8
|
checkCardOutlineWidth: r,
|
|
9
9
|
checkCardIndicatorOffset: d
|
|
10
|
-
} =
|
|
10
|
+
} = i, c = i.calc(a).mul(2).equal();
|
|
11
11
|
return {
|
|
12
|
-
[`${
|
|
13
|
-
...o(
|
|
14
|
-
borderRadius:
|
|
12
|
+
[`${e}`]: {
|
|
13
|
+
...o(i),
|
|
14
|
+
borderRadius: i.borderRadius,
|
|
15
15
|
position: "relative",
|
|
16
16
|
"&--disabled": {
|
|
17
|
-
backgroundColor:
|
|
17
|
+
backgroundColor: i.checkCardDisabledBg,
|
|
18
18
|
cursor: "not-allowed !important"
|
|
19
19
|
},
|
|
20
20
|
"&--bordered": {
|
|
21
|
-
outline: `${
|
|
21
|
+
outline: `${i.lineWidth} ${i.lineType} ${i.borderColorBase}`
|
|
22
22
|
},
|
|
23
|
-
[`&:hover:not(${
|
|
23
|
+
[`&:hover:not(${e}--disabled)`]: {
|
|
24
24
|
cursor: "pointer",
|
|
25
|
-
outline: `${
|
|
25
|
+
outline: `${i.lineWidth} ${i.lineType} ${i.colorPrimary}`
|
|
26
26
|
},
|
|
27
27
|
"&::after": {
|
|
28
28
|
content: '""',
|
|
@@ -32,22 +32,24 @@ const s = (e) => {
|
|
|
32
32
|
insetBlockStart: 0,
|
|
33
33
|
insetInlineEnd: 0,
|
|
34
34
|
clipPath: "polygon(100% 0, 100% 100%, 0 0)",
|
|
35
|
-
background:
|
|
36
|
-
borderRadius:
|
|
35
|
+
background: i.colorPrimary,
|
|
36
|
+
borderRadius: i.calc(i.borderRadius).add("2px").equal()
|
|
37
37
|
},
|
|
38
38
|
"&--checked": {
|
|
39
|
-
outline: `${r} ${
|
|
40
|
-
[`&:hover:not(${
|
|
41
|
-
outline: `${r} ${
|
|
39
|
+
outline: `${r} ${i.lineType} ${i.colorPrimary}`,
|
|
40
|
+
[`&:hover:not(${e}--disabled)`]: {
|
|
41
|
+
outline: `${r} ${i.lineType} ${i.colorPrimary}`
|
|
42
42
|
},
|
|
43
43
|
"&::after": {
|
|
44
|
-
width:
|
|
45
|
-
height:
|
|
44
|
+
width: c,
|
|
45
|
+
height: c,
|
|
46
46
|
insetBlockStart: d,
|
|
47
47
|
insetInlineEnd: d,
|
|
48
|
-
transition: "width
|
|
48
|
+
transition: ["width", "height", "inset"].map(
|
|
49
|
+
(t) => `${t} ${i.motionDurationSlow} cubic-bezier(0.645, 0.045, 0.355, 1)`
|
|
50
|
+
).join(", ")
|
|
49
51
|
},
|
|
50
|
-
[`&${
|
|
52
|
+
[`&${e}--disabled`]: {
|
|
51
53
|
outlineColor: l,
|
|
52
54
|
"&::after": {
|
|
53
55
|
backgroundColor: l
|
|
@@ -55,28 +57,28 @@ const s = (e) => {
|
|
|
55
57
|
}
|
|
56
58
|
},
|
|
57
59
|
"&--middle": {
|
|
58
|
-
padding:
|
|
60
|
+
padding: i.spaceLG
|
|
59
61
|
},
|
|
60
62
|
"&--small": {
|
|
61
|
-
padding: `${
|
|
63
|
+
padding: `${i.spaceSM} ${i.spaceLG}`
|
|
62
64
|
},
|
|
63
|
-
[`${
|
|
64
|
-
...o(
|
|
65
|
-
marginBottom:
|
|
66
|
-
color:
|
|
65
|
+
[`${e}__title`]: {
|
|
66
|
+
...o(i),
|
|
67
|
+
marginBottom: i.spaceXS,
|
|
68
|
+
color: i.textColor1,
|
|
67
69
|
fontWeight: "bold",
|
|
68
70
|
"&--disabled": {
|
|
69
|
-
color:
|
|
71
|
+
color: i.textColor4
|
|
70
72
|
}
|
|
71
73
|
},
|
|
72
|
-
[`${
|
|
73
|
-
...o(
|
|
74
|
-
color:
|
|
74
|
+
[`${e}__content`]: {
|
|
75
|
+
...o(i),
|
|
76
|
+
color: i.textColor1,
|
|
75
77
|
"&--disabled": {
|
|
76
|
-
color:
|
|
78
|
+
color: i.textColor4
|
|
77
79
|
}
|
|
78
80
|
},
|
|
79
|
-
[`${
|
|
81
|
+
[`${e}__checked-icon`]: {
|
|
80
82
|
position: "absolute",
|
|
81
83
|
top: 0,
|
|
82
84
|
right: 0,
|
|
@@ -84,15 +86,15 @@ const s = (e) => {
|
|
|
84
86
|
lineHeight: 1,
|
|
85
87
|
userSelect: "none",
|
|
86
88
|
"& > img": {
|
|
87
|
-
width:
|
|
89
|
+
width: i.calc(a).sub(r).equal(),
|
|
88
90
|
verticalAlign: "top"
|
|
89
91
|
}
|
|
90
92
|
}
|
|
91
93
|
}
|
|
92
94
|
};
|
|
93
|
-
},
|
|
95
|
+
}, p = n(
|
|
94
96
|
"CheckCard",
|
|
95
|
-
(
|
|
97
|
+
(i) => [s(i)],
|
|
96
98
|
{
|
|
97
99
|
checkCardDisabledBg: "#F9F9FA",
|
|
98
100
|
checkCardDisabledOutlineColor: "#E9EDF3",
|
|
@@ -102,5 +104,5 @@ const s = (e) => {
|
|
|
102
104
|
}
|
|
103
105
|
);
|
|
104
106
|
export {
|
|
105
|
-
|
|
107
|
+
p as default
|
|
106
108
|
};
|
package/es/src/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "7.7.
|
|
1
|
+
declare const _default: "7.7.10";
|
|
2
2
|
export default _default;
|
package/es/src/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("../../ap-form/index.js"),s=require("lodash-unified");require("../../config-provider/index.js");const M=require("../hooks/use-editable-columns.js");require("../index.vue2.js");const P=require("../hooks/use-editable-form-item-api.js"),k=require("../../ap-form/context.js"),H=require("../../ap-form/utils/get.js"),L=require("../utils.js"),O=require("../../ap-form/hooks/use-watch.js"),z=require("./utils.js"),G=require("../style/editable.js"),K=require("../../config-provider/hooks/use-namespace.js"),W=require("../../config-provider/hooks/use-global-config.js"),U=require("../index.vue.js"),$=e.defineComponent({name:"EditableGrid",__name:"form-item",props:{dropdownPrefixCls:{},bordered:{type:Boolean},locale:{},onResizeColumn:{},getPopupContainer:{},scroll:{},sortDirections:{},showSorterTooltip:{type:[Boolean,Object]},prefixCls:{},rowKey:{type:[String,Function],default:"key"},tableLayout:{},title:{},id:{},showHeader:{type:Boolean},components:{},customHeaderRow:{},direction:{},expandFixed:{type:[String,Boolean]},expandColumnWidth:{},expandedRowKeys:{},defaultExpandedRowKeys:{},expandedRowRender:{},expandRowByClick:{type:Boolean},expandIcon:{},onExpand:{},onExpandedRowsChange:{},defaultExpandAllRows:{type:Boolean},indentSize:{},expandIconColumnIndex:{},showExpandColumn:{type:Boolean},expandedRowClassName:{},childrenColumnName:{},rowExpandable:{},transformCellText:{},rowHoverable:{type:Boolean},rowSelection:{type:[Boolean,Object]},onLoadingChange:{},onShownColumnsChange:{},pagination:{type:[Boolean,Object],default:!1},searchFormWrapperStyle:{},tableWrapperStyle:{},wrapperStyle:{},tableStyle:{},adaptive:{type:Boolean},columnResizable:{type:Boolean,default:!1},loading:{type:Boolean,default:void 0},summary:{},rowHeight:{default:66},getRowHeight:{},advanceRenderer:{type:Boolean},browserTooltips:{type:Boolean},virtual:{type:[Boolean,Object],default:void 0},onRowClicked:{},onScrollEnd:{},rowClassName:{},rowClassRules:{},autoHeight:{type:Boolean},onUpdate:{},customRow:{},theme:{},columns:{},defaultValue:{},onChange:{},maxLength:{},onFieldChange:{},label:{},name:{},formItem:{}},setup(w,{expose:h}){const y=e.useSlots(),t=w,{b}=K.useNamespace("editable-aggrid"),C=G.default("editable-aggrid"),r=e.ref(),{internalInstance:u,model:R}=k.useInjectForm(),i=L.getShadowName(t.name);let c;e.onMounted(()=>{const o=t.formItem?.initialValue??H.getModelValue(e.unref(R),t.name);c=s.cloneDeep(o),S(o,"suffix",!0)});const l=e.ref([]),v=O.useWatch(t.name);e.watch(()=>v.value,o=>{s.isEqual(o,l.value)||m(o??c)},{deep:!0});const x=W.useGlobalConfig("valueTypeMap"),B=M.useGetEditableColumns(t,x,i),{add:_,addMultiple:q,__addMultiple:S,remove:I,removeByKey:E,getRowData:F,getRowsData:N,setRowData:T,clear:V,refreshRowIds:d}=P.useEditableFormItemApi(t,u,l,i);function j(){const o=r.value?._internalGridApi;if(!d.value?.length||!o)return;const a=d.value.map(n=>o.getRowNode(n)).filter(n=>!!n);o.refreshCells({rowNodes:a,force:!0}),d.value=[]}function m(o){l.value=o;const a=z.arrayToObject(o,t.rowKey);u?.setFieldValue(t.name,o),u?.setFieldValue(i,a)}function p(o,a){const n=o==="end"?l.value.length-1:o;r.value?.scrollToRow(n,a)}function A(o,a){r.value?.scrollToColumn(o,a)}return h({add:_,addMultiple:q,remove:I,removeByKey:E,getRowData:F,getRowsData:N,setRowData:T,clear:V,setTableData:m,scrollTo:p,scrollToRow:p,scrollToColumn:A}),(o,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(g.ApForm).FormItem,{hidden:"",name:o.name},null,8,["name"]),e.createVNode(e.unref(g.ApForm).FormItem,e.mergeProps(e.unref(s.omit)(o.formItem,"initialValue"),{label:o.label}),{default:e.withCtx(()=>[e.createVNode(U.default,e.mergeProps(e.unref(s.omit)(t,["name","maxLength","onChange","defaultValue","formItem"]),{ref_key:"tableRef",ref:r,class:[e.unref(b)(),e.unref(C)],size:"mini",columns:e.unref(B),"data-source":l.value,"search-form":!1,onUpdate:j}),e.createSlots({_:2},[e.renderList(y,(n,f)=>({name:f,fn:e.withCtx(D=>[e.renderSlot(o.$slots,f,e.normalizeProps(e.guardReactiveProps(D||{})))])}))]),1040,["class","columns","data-source"])]),_:3},16,["label"])],64))}});exports.default=$;
|
|
@@ -5,6 +5,7 @@ import { Key } from '@aplus-frontend/antdv/es/_util/type';
|
|
|
5
5
|
export declare const useEditableFormItemApi: <RecordType>(props: EditableAgGridProps<RecordType>, formApi: ApFormInternalInstance | undefined, tableData: Ref<RecordType[]>, shadowName: string) => {
|
|
6
6
|
add: (defaultValue?: Partial<RecordType>, insertIndex?: number) => void;
|
|
7
7
|
addMultiple: (list: number | Partial<RecordType>[], insetIn?: "prefix" | "suffix") => void;
|
|
8
|
+
__addMultiple: (list: number | Partial<RecordType>[], insetIn?: "prefix" | "suffix", overwriting?: boolean) => void;
|
|
8
9
|
remove: (data: RecordType | RecordType[]) => void;
|
|
9
10
|
removeByKey: (key: Key | Key[]) => void;
|
|
10
11
|
getRowData: (index: number) => RecordType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const F=require("vue");require("../../utils/index.js");const v=require("lodash-unified"),y=require("../editable/utils.js"),x=require("../../utils/is.js");let B=0;function V(){return`_ag_grid${B++}`}const S=(l,c,n,w)=>{const h=F.shallowRef([]);function I(i,f){const g=F.unref(n)?.length||0;if(x.isDef(l.maxLength)&&g>=l.maxLength||!i&&v.isFunction(l.rowKey))return;const t={...i||{[l.rowKey]:V()}};c?.setFieldValue(w,t,!1,(r,s)=>{const e=y.getRowKey(t,void 0,l.rowKey);r[s]?r[s][e]=t:r[s]={[e]:t},n.value?v.isUndefined(f)?n.value.push(t):(h.value=n.value.map((u,o)=>o<f?null:y.getRowKey(u,o,l.rowKey)).filter(Boolean),n.value.splice(f,0,t)):n.value=[t],c?.setFieldValue(l.name,t,!0,(u,o)=>{if(!u[o]){u[o]=[t];return}v.isUndefined(f)?u[o].push(t):u[o].splice(f,0,t)})})}function R(i,f="suffix",g=!1){if(!i)return;const t=F.unref(n)?.length||0,r=v.isNumber(i)?i:i.length;if(x.isDef(l.maxLength)&&t+r>l.maxLength||v.isNumber(i)&&v.isFunction(l.rowKey))return;const s=v.isNumber(i)?new Array(i).fill(0).map(()=>({[l.rowKey]:V()})):v.cloneDeep(i),e=y.arrayToObject(s,l.rowKey);c?.setFieldValue(w,e,!1,(u,o)=>{u[o]?Object.assign(u[o],e):u[o]=e,n.value?f==="suffix"?n.value.push(...s):(h.value=n.value.map((K,d)=>y.getRowKey(K,d,l.rowKey)),n.value.unshift(...s)):n.value=[...s],c?.setFieldValue(l.name,s,!0,(K,d)=>{if(!K[d]||g){K[d]=[...s];return}f==="suffix"?K[d].push(...s):K[d].unshift(...s)})})}function j(i,f="suffix"){R(i,f,!1)}function O(i){const f=v.isArray(i)?i:[i];c?.setFieldValue(w,void 0,!1,(g,t)=>{for(const e of f){const u=y.getRowKey(e,void 0,l.rowKey);delete g[t][u]}const r=n.value.filter(e=>!f.includes(e)),s=n.value.findIndex(e=>f.includes(e));h.value=n.value.map((e,u)=>u<=s?null:y.getRowKey(e,u,l.rowKey)).filter(Boolean),r.length?n.value=r:n.value.splice(0,n.value.length),c.setFieldValue(l.name,void 0,!0,(e,u)=>{e[u]=r})})}function T(i){const f=new Set(v.isArray(i)?i:[i]);f.size!==0&&c?.setFieldValue(w,void 0,!1,(g,t)=>{for(const e of f)delete g[t][e];const r=n.value.filter((e,u)=>!f.has(y.getRowKey(e,u,l.rowKey))),s=n.value.findIndex((e,u)=>f.has(y.getRowKey(e,u,l.rowKey)));h.value=n.value.map((e,u)=>u<=s?null:y.getRowKey(e,u,l.rowKey)).filter(Boolean),r.length?n.value=r:n.value.splice(0,n.value.length),c.setFieldValue(l.name,void 0,!0,(e,u)=>{e[u]=r})})}function k(i){return F.unref(n)?.[i]}function q(){return F.unref(n)}function L(i,f,g=!0){c?.setFieldValue?.(w,void 0,!1,(t,r)=>{const s=n.value.findIndex((u,o)=>i===o);if(!~s)return;const e=y.getRowKey(n.value[s],s,l.rowKey);if(e&&!(!t[r]||!t[r][e])){if(!g){const u=Object.keys(t[r][e]);for(const o of u)o!==l.rowKey&&delete t[r][e][o]}Object.assign(t[r][e],{...f})}})}function _(){c?.setFieldValue(w,{}),c?.setFieldValue(l.name,[])}return{add:I,addMultiple:j,__addMultiple:R,remove:O,removeByKey:T,getRowData:k,getRowsData:q,setRowData:L,clear:_,refreshRowIds:h}};exports.useEditableFormItemApi=S;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("@aplus-frontend/antdv");require("../item/index.vue.js");require("../item-modal/index.vue2.js");require("../item-popconfirm/index.vue2.js");const _=require("@aplus-frontend/icon");require("../../config-provider/index.js");const i=require("lodash-unified"),g=require("../style/dropdown-item.js"),k=require("../../config-provider/hooks/use-namespace.js"),c=require("../item/index.vue2.js"),v=require("../item-modal/index.vue.js"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("@aplus-frontend/antdv");require("../item/index.vue.js");require("../item-modal/index.vue2.js");require("../item-popconfirm/index.vue2.js");const _=require("@aplus-frontend/icon");require("../../config-provider/index.js");const i=require("lodash-unified"),g=require("../style/dropdown-item.js"),k=require("../../config-provider/hooks/use-namespace.js"),c=require("../item/index.vue2.js"),v=require("../item-modal/index.vue.js"),B=require("../item-popconfirm/index.vue.js"),y=e.defineComponent({name:"ApActionItemDropDown",__name:"index",props:{trigger:{default:()=>["hover"]},placement:{default:"bottomLeft"},actions:{default:()=>[]},showIcon:{type:Boolean,default:!0},text:{},color:{default:"primary"},disabled:{type:Boolean,default:!1},visible:{type:Boolean,default:!0},onClick:{},loading:{type:Boolean,default:!1},icon:{},iconFirst:{type:Boolean},tooltip:{}},setup(p){const a=p,n=e.ref(!1),{e:u,b:d}=k.useNamespace("action-item-dropdown"),s=g.default("action-item-dropdown"),f=e.computed(()=>a.actions.filter(t=>t.visible||i.isUndefined(t.visible)).map(t=>({...t,onAction:async o=>{try{await t.onAction?.(o)}finally{n.value=!1}}})));return(t,o)=>(e.openBlock(),e.createBlock(e.unref(l.Dropdown),{open:n.value,"onUpdate:open":o[0]||(o[0]=r=>n.value=r),trigger:t.trigger,placement:t.placement,class:e.normalizeClass(e.unref(s))},{overlay:e.withCtx(()=>[e.createVNode(e.unref(l.Menu),null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(r,m)=>(e.openBlock(),e.createBlock(e.unref(l.MenuItem),{key:m,class:e.normalizeClass([e.unref(s),e.unref(u)("item")])},{default:e.withCtx(()=>[r.modalProps?(e.openBlock(),e.createBlock(v.default,e.mergeProps({key:0,ref_for:!0},r),null,16)):r.popconfirmProps?(e.openBlock(),e.createBlock(B.default,e.mergeProps({key:1,ref_for:!0},r),null,16)):(e.openBlock(),e.createBlock(c.default,e.mergeProps({key:2,ref_for:!0},r),null,16))]),_:2},1032,["class"]))),128))]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(e.unref(d)())},[e.createVNode(c.default,e.normalizeProps(e.guardReactiveProps(e.unref(i.omit)(a,["actions","trigger","placement","text"]))),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(()=>t.text)))]),e.createElementVNode("span",{class:e.normalizeClass(e.unref(u)("icon"))},[t.showIcon?(e.openBlock(),e.createBlock(e.unref(_.IconApAdLineDown),{key:0})):e.createCommentVNode("",!0)],2)]),_:3},16)],2)]),_:3},8,["open","trigger","placement","class"]))}});exports.default=y;
|
|
@@ -310,6 +310,7 @@ declare const __VLS_component: DefineComponent<ApActionItemPopconfirmProps, {},
|
|
|
310
310
|
};
|
|
311
311
|
onConfirm: PropType<(e: MouseEvent) => void>;
|
|
312
312
|
onCancel: PropType<(e: MouseEvent) => void>;
|
|
313
|
+
onPopupClick: PropType<(e: MouseEvent) => void>;
|
|
313
314
|
trigger: PropType< TriggerType | TriggerType[]>;
|
|
314
315
|
open: {
|
|
315
316
|
type: BooleanConstructor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("../../utils/cssinjs/index.js"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("../../utils/cssinjs/index.js"),n=e=>{const{componentCls:t,namespace:o}=e,i=`.${o}-action-item`;return{[t]:{display:"inline-flex",flexDirection:"row",alignItems:"center","&__item":{[i]:{width:"100%"}},[`${t}__icon`]:{fontSize:e.fontSize,display:"inline-flex"}}}},c=l.genComponentStyleHook("ApAction.Dropdown",e=>[n(e)]);exports.default=c;exports.genActionDropdownItemStyle=n;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("../../style/index.js"),d=require("../../utils/cssinjs/index.js"),e=o=>{const{loadingOpacity:n,colorLink:r,colorSuccess:a,colorError:l,colorWarn:c,componentCls:i}=o;return{[i]:{display:"inline-flex",justifyContent:"center",alignItems:"center",whiteSpace:"nowrap",textAlign:"center",gap:o.spaceXS,cursor:"pointer",...s.resetComponent(o),[`&:not(${i}--disabled):hover`]:{opacity:.7},"&--primary":{color:r,[`&${i}--disabled`]:{color:o.colorLinkDisabled}},"&--success":{color:a,[`&${i}--disabled`]:{color:o.colorSuccessDisabled}},"&--error":{color:l,[`&${i}--disabled`]:{color:o.colorErrorDisabled}},"&--warn":{color:c,[`&${i}--disabled`]:{color:o.colorWarnDisabled}},"&--loading":{opacity:n,transition:`opacity ${o.motionDurationMid}`,cursor:"default",[`&${i}--disabled`]:{opacity:1}},"&--disabled":{cursor:"not-allowed"},[`${i}__icon-wrapper`]:{},"&--icon-first":{[`${i}__icon-wrapper`]:{paddingRight:0}},[`${i}-loading-icon`]:{display:"inline-block",lineHeight:0,transition:["width","opacity","margin"].map(t=>`${t} ${o.motionDurationSlow} ${o.apActionLoadingIconEase}`).join(",")},[`${i}-loading-icon-motion`]:{"&-enter-from":{marginInlineEnd:o.calc(o.spaceXS).mul(-1).equal()},"&-enter-to":{marginInlineEnd:0},"&-leave-from":{marginInlineEnd:0},"&-leave-to":{marginInlineEnd:o.calc(o.spaceXS).mul(-1).equal()}}}}},p=d.genComponentStyleHook("ApAction",o=>[e(o)],{loadingOpacity:.35,apActionLoadingIconEase:"cubic-bezier(0.645, 0.045, 0.355, 1)"},{skipUnit:["loadingOpacity"]});exports.default=p;exports.genActionItemStyle=e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=t=>{const{componentCls:e}=t;return{[`${e}-textarea--read`]:{whiteSpace:"pre-wrap",wordWrap:"break-word",wordBreak:"break-all"},[`${e}-textarea`]:{"&.ant-input-affix-wrapper-textarea-with-clear-btn .ant-input-clear-icon":{insetBlockStart:"9px"}}}};exports.genTextareaStyle=a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("lodash-unified");require("../../hooks/index.js");require("../../config-provider/index.js");const b=require("@aplus-frontend/antdv"),B=require("../hooks/use-default-placeholder.js"),I=require("../style/index.js"),g=require("../../hooks/useControllableValue.js"),q=require("../../config-provider/hooks/use-namespace.js"),C=e.defineComponent({name:"ApFieldTextArea",__name:"index",props:{mode:{default:"edit"},class:{},style:{},rows:{},autoSize:{type:[Boolean,Object]},onResize:{},onCompositionstart:{},onCompositionend:{},valueModifiers:{},size:{},value:{},name:{},type:{default:"text"},onFocus:{},onBlur:{},onChange:{},onInput:{},onKeydown:{},onKeyup:{},onMousedown:{},focused:{type:Boolean},hidden:{type:Boolean},disabled:{type:Boolean,default:void 0},prefixCls:{},id:{},readonly:{type:Boolean},autofocus:{type:Boolean},variant:{},autocomplete:{},placeholder:{},lazy:{type:Boolean,default:!0},maxlength:{},loading:{type:Boolean},bordered:{type:Boolean,default:!0},showCount:{type:[Boolean,Object]},htmlSize:{},onPressEnter:{},onMouseUp:{},onRawInput:{},"onUpdate:value":{},status:{},defaultValue:{},inputElement:{},triggerFocus:{},handleReset:{},clearIcon:{},allowClear:{type:Boolean,default:!0},emptyText:{default:"--"},beforeInput:{}},emits:["update:value"],setup(d,{expose:i,emit:c}){const o=e.shallowRef(),a=d,f=c,{value:n,updateValue:m}=g.useControllableValue(a,f),{b:y,m:v}=q.useNamespace("field-textarea"),u=I.default("field"),h=B.useDefaultPlaceholder("TextArea",a);function x(t){const l=t.target.value||"",r=a.beforeInput?a.beforeInput?.(l):l,s=o.value?.$el?.querySelector("textarea");s&&(s.value=r),m(r)}return i({focus:t=>{o.value?.focus(t)},blur:()=>{o.value?.blur()},resizableTextArea:e.computed(()=>o.value?.resizableTextArea)}),(t,l)=>t.mode==="read"?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass([e.unref(v)("read"),e.unref(u)])},e.toDisplayString(e.unref(p.isNil)(e.unref(n))||e.unref(n)===""?t.emptyText:e.unref(n)),3)):(e.openBlock(),e.createBlock(e.unref(b.Input).TextArea,e.mergeProps({key:1},e.unref(p.omit)(a,["onUpdate:value","value","beforeInput","emptyText"]),{ref_key:"textAreaRef",ref:o,placeholder:e.unref(h),value:e.unref(n),class:[e.unref(y)(),e.unref(u)],onInput:x}),null,16,["placeholder","value","class"]))}});exports.default=C;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("vue"),X=require("@aplus-frontend/antdv"),Y=require("./context.js"),l=require("lodash-unified"),Z=require("@vueuse/core"),b=require("./constant.js"),z=require("../utils/index.js"),ee=require("./utils/set.js"),p=require("./utils/params.js"),te=require("./provider/context.js"),w=require("./utils/get.js"),re=require("../utils/warning.js"),V=require("../utils/is.js"),ne=i.defineComponent({name:"ApForm",__name:"ap-form",props:{layout:{default:"horizontal"},labelCol:{},wrapperCol:{},colon:{type:Boolean,default:!0},labelAlign:{default:"right"},labelWrap:{type:Boolean},prefixCls:{},requiredMark:{},hideRequiredMark:{type:Boolean,default:!1},rules:{},validateMessages:{},validateOnRuleChange:{type:Boolean,default:!0},scrollToFirstError:{},onSubmit:{},name:{},validateTrigger:{default:"change"},size:{},disabled:{type:Boolean},onFieldsChange:{},onFinish:{},onFinishFailed:{},onValidate:{},variant:{},initialValues:{},onValuesChange:{},syncToUrl:{type:[Boolean,Function],default:!1},syncToUrlPriority:{type:Boolean}},setup(O,{expose:j}){const s=O;function v(e,t,r=!0,n){if(l.isArray(e)){let o=a;for(let f=0;f<e.length-1;f++)e[f]in o||(o[e[f]]={}),o=o[e[f]];n?n(o,e[e.length-1]):o[e[e.length-1]]=t}else n?n(a,e):a[e]=t;let c=l.isArray(e)?e[0]:e;if(r){const o={[c]:a[c]};T.triggerFormChange(s.name,o),s.onValuesChange?.(o,a,e)}m()}const u=i.shallowRef(),C=Z.useUrlSearchParams(z.getRouteType()),T=te.useInjectFormProvider(),B=re.useDevWarning("ApForm"),P=i.ref(s.syncToUrl?p.genParams(s.syncToUrl,C,"get"):{});let g=l.cloneDeep(
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("vue"),X=require("@aplus-frontend/antdv"),Y=require("./context.js"),l=require("lodash-unified"),Z=require("@vueuse/core"),b=require("./constant.js"),z=require("../utils/index.js"),ee=require("./utils/set.js"),p=require("./utils/params.js"),te=require("./provider/context.js"),w=require("./utils/get.js"),re=require("../utils/warning.js"),V=require("../utils/is.js"),ne=i.defineComponent({name:"ApForm",__name:"ap-form",props:{layout:{default:"horizontal"},labelCol:{},wrapperCol:{},colon:{type:Boolean,default:!0},labelAlign:{default:"right"},labelWrap:{type:Boolean},prefixCls:{},requiredMark:{},hideRequiredMark:{type:Boolean,default:!1},rules:{},validateMessages:{},validateOnRuleChange:{type:Boolean,default:!0},scrollToFirstError:{},onSubmit:{},name:{},validateTrigger:{default:"change"},size:{},disabled:{type:Boolean},onFieldsChange:{},onFinish:{},onFinishFailed:{},onValidate:{},variant:{},initialValues:{},onValuesChange:{},syncToUrl:{type:[Boolean,Function],default:!1},syncToUrlPriority:{type:Boolean}},setup(O,{expose:j}){const s=O;function v(e,t,r=!0,n){if(l.isArray(e)){let o=a;for(let f=0;f<e.length-1;f++)e[f]in o||(o[e[f]]={}),o=o[e[f]];n?n(o,e[e.length-1]):o[e[e.length-1]]=t}else n?n(a,e):a[e]=t;let c=l.isArray(e)?e[0]:e;if(r){const o={[c]:a[c]};T.triggerFormChange(s.name,o),s.onValuesChange?.(o,a,e)}m()}const u=i.shallowRef(),C=Z.useUrlSearchParams(z.getRouteType()),T=te.useInjectFormProvider(),B=re.useDevWarning("ApForm"),P=i.ref(s.syncToUrl?p.genParams(s.syncToUrl,C,"get"):{});let g=l.cloneDeep(R()),F={};const a=i.reactive(R());let h=[];function R(){const e=s.initialValues||{};return s.syncToUrlPriority?{...e,...i.unref(P)}:{...i.unref(P),...e}}function E(e){const t=y(e,F);T.triggerFormFinish(s.name,e),s.syncToUrl&&p.setToParams(C,p.genParams(s.syncToUrl,t,"set")),s.onFinish?.(t)}const N=async()=>{u.value?.resetFields(),await i.nextTick(()=>{Object.keys(a).forEach(e=>delete a[e]),Object.assign(a,g),m(),s.syncToUrl&&p.setToParams(C,p.genParams(s.syncToUrl,y(g,F),"set"))})},x=e=>{u.value?.clearValidate(e)},S=(e,t)=>u.value?.validateFields(e,t),D=async(e,t)=>{const r=await u.value?.validateFields(e,t);return y(r,F)},I=e=>e===!0?i.toRaw(a):u.value?.getFieldsValue(e),W=e=>{const t=I(e);return y(t,F)},$=(e,t)=>u.value?.validate(e,t),K=(e,t={})=>{u.value?.scrollToField(e,t)},L=e=>{Object.assign(a,e),m()},q=(e,t,r=!0,n)=>{v(e,t,r,n),m()};function A(e){return e(i.toRaw(a)),h.push(e),()=>{h=h.filter(t=>t!==e)}}function k(e,t){if(l.isArray(e)){let r=g;for(let n=0;n<e.length-1;n++)V.isDef(r[e[n]])||(r[e[n]]={}),r=r[e[n]];r[e[e.length-1]]=t}else g[e]=t}function G(e,t){if(!V.isDef(e)||!V.isDef(t))return;const r=w.getModelValue(g,t);if(l.isEqual(r,e))return;const n=w.getModelValue(i.unref(P),t);V.isDef(n)&&s.syncToUrlPriority||(v(t,e,!1),k(t,e))}function H(e,t){t&&(F=ee.default(F,[e].flat(1),t,!0))}function M({initialValue:e,name:t,transform:r}){G(e,t),H(t,r)}function U(){return g}function J(e){if(B(e===b.INTERNAL_FORM_INSTANCE_MARK,"usage","getInternalInstance should only used at internal"),e===b.INTERNAL_FORM_INSTANCE_MARK)return{registerField:M,registerWatch:A,setFieldValue:q,getInitialValues:U}}function m(){if(h.length){const e=i.toRaw(a);h.forEach(t=>{t(e)})}}function y(e,t){if(e==null)return;let r=l.isArray(e)?[]:{};return Object.keys(e).forEach(n=>{const c=e[n],o=t?.[n],f=l.isFunction(o)?o:o?.transformer,Q=l.isFunction(o)?!0:o?.flat;if(l.isFunction(f)){const d=f(c,{getFieldsValue:I});Q?l.isArray(d)&&l.isArray(r)?r=[...r,...d]:l.isPlainObject(d)&&l.isPlainObject(r)?r={...r,...d}:r[n]=d:r[n]=d}else if(l.isPlainObject(c)||l.isArray(c)){const d=y(c,o);r[n]=d}else r[n]=c}),r}const _={resetFields:N,clearValidate:x,validateFields:S,getFieldsValue:I,validate:$,scrollToField:K,setFieldsValue:L,setFieldValue:q,registerWatch:A,validateFieldsReturnTransformed:D,getFieldsValueTransformed:W,getInternalInstance:J};return i.watch(()=>s.name,e=>{e&&(T.registerForm(e,_),i.onWatcherCleanup(()=>{T.unregisterForm(s.name)}))},{immediate:!0}),Y.useProvideForm({model:i.computed(()=>a),updateModel:v,internalInstance:{registerWatch:A,registerField:M,setFieldValue:q,getInitialValues:U}}),j(_),(e,t)=>(i.openBlock(),i.createBlock(i.unref(X.Form),i.mergeProps({ref_key:"formRef",ref:u},i.unref(l.omit)(s,["initialValues","onValuesChange","onFinish","syncToUrl","syncToUrlPriority"]),{model:a,"data-form-name":e.name,onFinish:E}),{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default")]),_:3},16,["model","data-form-name"]))}});exports.default=ne;
|
|
@@ -829,7 +829,7 @@ declare function __VLS_template(): {
|
|
|
829
829
|
validateOnRuleChange: boolean;
|
|
830
830
|
validateTrigger: string | string[];
|
|
831
831
|
syncToUrl: boolean | ((values: Recordable, type: "get" | "set") => Recordable);
|
|
832
|
-
}> & Omit<Readonly< ApFormProps> & Readonly<{}>, "
|
|
832
|
+
}> & Omit<Readonly< ApFormProps> & Readonly<{}>, "getFieldsValue" | "setFieldsValue" | "setFieldValue" | "resetFields" | "clearValidate" | "validateFields" | "validate" | "scrollToField" | "getInternalInstance" | "validateFieldsReturnTransformed" | "getFieldsValueTransformed" | "registerWatch" | ("layout" | "colon" | "labelAlign" | "hideRequiredMark" | "validateOnRuleChange" | "validateTrigger" | "syncToUrl")> & ShallowUnwrapRef<{
|
|
833
833
|
setFieldsValue: (fields: Partial<any>) => void;
|
|
834
834
|
setFieldValue: (name: NamePath, value: any, triggerChange?: boolean, optimizeFn?: UpdateModelOptimizeFn) => void;
|
|
835
835
|
resetFields: () => Promise<void>;
|
|
@@ -852,13 +852,13 @@ declare function __VLS_template(): {
|
|
|
852
852
|
};
|
|
853
853
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
854
854
|
declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
|
|
855
|
-
|
|
855
|
+
getFieldsValue: (nameList?: true | InternalNamePath[]) => Partial<any> | undefined;
|
|
856
856
|
setFieldsValue: (fields: Partial<any>) => void;
|
|
857
857
|
setFieldValue: (name: NamePath, value: any, triggerChange?: boolean, optimizeFn?: UpdateModelOptimizeFn) => void;
|
|
858
858
|
resetFields: () => Promise<void>;
|
|
859
859
|
clearValidate: (name?: NamePath) => void;
|
|
860
860
|
validateFields: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<Partial<any>> | undefined;
|
|
861
|
-
|
|
861
|
+
validate: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<Partial<any>> | undefined;
|
|
862
862
|
scrollToField: (name: NamePath, options?: any) => void;
|
|
863
863
|
getInternalInstance: (mark: string) => ApFormInternalInstance | undefined;
|
|
864
864
|
validateFieldsReturnTransformed: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<Partial<any>> | undefined;
|
|
@@ -1792,7 +1792,7 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
|
|
|
1792
1792
|
validateOnRuleChange: boolean;
|
|
1793
1793
|
validateTrigger: string | string[];
|
|
1794
1794
|
syncToUrl: boolean | ((values: Recordable, type: "get" | "set") => Recordable);
|
|
1795
|
-
}> & Omit<Readonly< ApFormProps> & Readonly<{}>, "
|
|
1795
|
+
}> & Omit<Readonly< ApFormProps> & Readonly<{}>, "getFieldsValue" | "setFieldsValue" | "setFieldValue" | "resetFields" | "clearValidate" | "validateFields" | "validate" | "scrollToField" | "getInternalInstance" | "validateFieldsReturnTransformed" | "getFieldsValueTransformed" | "registerWatch" | ("layout" | "colon" | "labelAlign" | "hideRequiredMark" | "validateOnRuleChange" | "validateTrigger" | "syncToUrl")> & ShallowUnwrapRef<{
|
|
1796
1796
|
setFieldsValue: (fields: Partial<any>) => void;
|
|
1797
1797
|
setFieldValue: (name: NamePath, value: any, triggerChange?: boolean, optimizeFn?: UpdateModelOptimizeFn) => void;
|
|
1798
1798
|
resetFields: () => Promise<void>;
|
|
@@ -4,9 +4,10 @@ import { InternalNamePath, NamePath, ValidateOptions } from '@aplus-frontend/ant
|
|
|
4
4
|
import { LiteralUnion, Recordable } from '../type';
|
|
5
5
|
import { VNode } from 'vue';
|
|
6
6
|
import { BreakPointType } from './search-form/hooks/use-count-per-row';
|
|
7
|
+
import { ApFormInstance } from './provider/interface';
|
|
7
8
|
export type { ApFormChangeInfo, ApFormFinishInfo } from './provider/interface';
|
|
8
9
|
export type ApFormColProps = Omit<ColProps, 'prefixCls'>;
|
|
9
|
-
export type ApFormItemTransformFn = (value: any) => any;
|
|
10
|
+
export type ApFormItemTransformFn = (value: any, api?: Pick<ApFormInstance, 'getFieldsValue'>) => any;
|
|
10
11
|
export type ApFormItemTransformType = ApFormItemTransformFn | {
|
|
11
12
|
transformer: ApFormItemTransformFn;
|
|
12
13
|
/**
|
|
@@ -830,7 +830,7 @@ declare function __VLS_template(): {
|
|
|
830
830
|
validateOnRuleChange: boolean;
|
|
831
831
|
validateTrigger: string | string[];
|
|
832
832
|
syncToUrl: boolean | ((values: Recordable, type: "get" | "set") => Recordable);
|
|
833
|
-
}> & Omit<Readonly< ApFormProps> & Readonly<{}>, "
|
|
833
|
+
}> & Omit<Readonly< ApFormProps> & Readonly<{}>, "getFieldsValue" | "setFieldsValue" | "setFieldValue" | "resetFields" | "clearValidate" | "validateFields" | "validate" | "scrollToField" | "getInternalInstance" | "validateFieldsReturnTransformed" | "getFieldsValueTransformed" | "registerWatch" | ("layout" | "colon" | "labelAlign" | "hideRequiredMark" | "validateOnRuleChange" | "validateTrigger" | "syncToUrl")> & ShallowUnwrapRef<{
|
|
834
834
|
setFieldsValue: (fields: Partial<any>) => void;
|
|
835
835
|
setFieldValue: (name: NamePath, value: any, triggerChange?: boolean, optimizeFn?: UpdateModelOptimizeFn) => void;
|
|
836
836
|
resetFields: () => Promise<void>;
|
|
@@ -853,13 +853,13 @@ declare function __VLS_template(): {
|
|
|
853
853
|
};
|
|
854
854
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
855
855
|
declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
|
|
856
|
-
|
|
856
|
+
getFieldsValue: (nameList?: true | InternalNamePath[]) => Partial<any> | undefined;
|
|
857
857
|
setFieldsValue: (fields: Partial<any>) => void;
|
|
858
858
|
setFieldValue: (name: NamePath, value: any, triggerChange?: boolean, optimizeFn?: UpdateModelOptimizeFn) => void;
|
|
859
859
|
resetFields: () => Promise<void>;
|
|
860
860
|
clearValidate: (name?: NamePath) => void;
|
|
861
861
|
validateFields: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<Partial<any>> | undefined;
|
|
862
|
-
|
|
862
|
+
validate: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<Partial<any>> | undefined;
|
|
863
863
|
scrollToField: (name: NamePath, options?: any) => void;
|
|
864
864
|
getInternalInstance: (mark: string) => ApFormInternalInstance | undefined;
|
|
865
865
|
validateFieldsReturnTransformed: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<Partial<any>> | undefined;
|
|
@@ -2033,7 +2033,7 @@ declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
|
|
|
2033
2033
|
validateOnRuleChange: boolean;
|
|
2034
2034
|
validateTrigger: string | string[];
|
|
2035
2035
|
syncToUrl: boolean | ((values: Recordable, type: "get" | "set") => Recordable);
|
|
2036
|
-
}> & Omit<Readonly< ApFormProps> & Readonly<{}>, "
|
|
2036
|
+
}> & Omit<Readonly< ApFormProps> & Readonly<{}>, "getFieldsValue" | "setFieldsValue" | "setFieldValue" | "resetFields" | "clearValidate" | "validateFields" | "validate" | "scrollToField" | "getInternalInstance" | "validateFieldsReturnTransformed" | "getFieldsValueTransformed" | "registerWatch" | ("layout" | "colon" | "labelAlign" | "hideRequiredMark" | "validateOnRuleChange" | "validateTrigger" | "syncToUrl")> & ShallowUnwrapRef<{
|
|
2037
2037
|
setFieldsValue: (fields: Partial<any>) => void;
|
|
2038
2038
|
setFieldValue: (name: NamePath, value: any, triggerChange?: boolean, optimizeFn?: UpdateModelOptimizeFn) => void;
|
|
2039
2039
|
resetFields: () => Promise<void>;
|
|
@@ -829,7 +829,7 @@ declare function __VLS_template(): {
|
|
|
829
829
|
validateOnRuleChange: boolean;
|
|
830
830
|
validateTrigger: string | string[];
|
|
831
831
|
syncToUrl: boolean | ((values: Recordable, type: "get" | "set") => Recordable);
|
|
832
|
-
}> & Omit<Readonly< ApFormProps> & Readonly<{}>, "
|
|
832
|
+
}> & Omit<Readonly< ApFormProps> & Readonly<{}>, "getFieldsValue" | "setFieldsValue" | "setFieldValue" | "resetFields" | "clearValidate" | "validateFields" | "validate" | "scrollToField" | "getInternalInstance" | "validateFieldsReturnTransformed" | "getFieldsValueTransformed" | "registerWatch" | ("layout" | "colon" | "labelAlign" | "hideRequiredMark" | "validateOnRuleChange" | "validateTrigger" | "syncToUrl")> & ShallowUnwrapRef<{
|
|
833
833
|
setFieldsValue: (fields: Partial<any>) => void;
|
|
834
834
|
setFieldValue: (name: NamePath, value: any, triggerChange?: boolean, optimizeFn?: UpdateModelOptimizeFn) => void;
|
|
835
835
|
resetFields: () => Promise<void>;
|
|
@@ -1817,7 +1817,7 @@ declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
|
|
|
1817
1817
|
validateOnRuleChange: boolean;
|
|
1818
1818
|
validateTrigger: string | string[];
|
|
1819
1819
|
syncToUrl: boolean | ((values: Recordable, type: "get" | "set") => Recordable);
|
|
1820
|
-
}> & Omit<Readonly< ApFormProps> & Readonly<{}>, "
|
|
1820
|
+
}> & Omit<Readonly< ApFormProps> & Readonly<{}>, "getFieldsValue" | "setFieldsValue" | "setFieldValue" | "resetFields" | "clearValidate" | "validateFields" | "validate" | "scrollToField" | "getInternalInstance" | "validateFieldsReturnTransformed" | "getFieldsValueTransformed" | "registerWatch" | ("layout" | "colon" | "labelAlign" | "hideRequiredMark" | "validateOnRuleChange" | "validateTrigger" | "syncToUrl")> & ShallowUnwrapRef<{
|
|
1821
1821
|
setFieldsValue: (fields: Partial<any>) => void;
|
|
1822
1822
|
setFieldValue: (name: NamePath, value: any, triggerChange?: boolean, optimizeFn?: UpdateModelOptimizeFn) => void;
|
|
1823
1823
|
resetFields: () => Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../../utils/cssinjs/index.js"),i=n=>{const{componentCls:a,namespace:e}=n,r=`${a}--disabled`,t=n.calc(n.controlHeight).sub(n.calc(n.lineWidth).mul(2)).equal();return{[a]:{"&--bordered":{boxSizing:"border-box",border:`${n.lineWidth} ${n.lineType} ${n.borderColorBase}`,borderRadius:n.borderRadius,paddingInline:n.space,".ant-input-affix-wrapper":{padding:0},[`&:has(.${e}-batch-input-group):has(.ant-select)`]:{".ant-input-affix-wrapper":{paddingInlineEnd:n.space}},"&:has(textarea.ant-input)":{paddingInlineEnd:0,".ant-input":{paddingInlineStart:0}},[`&:has(div.${e}-batch-input-group .ant-input)`]:{paddingInlineEnd:n.space,".ant-input":{paddingInlineStart:0}},".ant-picker":{padding:0},".ant-form-item-control-input-content":{"& > .ant-input-group":{"& > .ant-picker-range:nth-child(1)":{".ant-picker-clear":{insetInlineEnd:0}}}},".ant-space-compact-block":{".ant-input":{paddingInlineStart:n.space}},".ant-select-selector":{borderWidth:"0 !important",boxShadow:"none !important",background:"unset !important"},".ant-select-single .ant-select-selector":{height:`${t} !important`},"input.ant-input-number-input":{paddingInlineStart:0},"&:has(.ant-input-number)":{paddingInlineEnd:0},"&:has(.ant-select)":{paddingInlineEnd:0,".ant-form-item-label > label":{paddingInlineEnd:n.spaceXS}},"div.ant-form-item-control":{flex:"1 1 0",minWidth:0},".ant-form-item-label > label":{paddingRight:n.spaceLG,height:t,"&::after":{margin:0}},".ant-form-item-control-input":{minHeight:t,".ant-select-single":{height:"unset"}},[`&:hover:not(${r})`]:{borderColor:n.hoverColorBase},"&:focus":{borderColor:n.activeColorBase,boxShadow:"0 0 0 2px rgba(5, 155, 255, 0.1)"},[`.${e}-batch-input-group-popover-input__popover`]:{width:"calc(100% + 12px)"}},"&--disabled":{cursor:"not-allowed",backgroundColor:n.colorBgDisabled,".ant-select-selector":{backgroundColor:"transparent !important"}},"&--focused":{borderColor:n.activeColorBase,boxShadow:"0 0 0 2px rgba(5, 155, 255, 0.1)"},".ant-form-show-help":{".ant-form-item-explain-error":{fontSize:n.fontSize,lineHeight:n.lineHeightSM}},".ant-col .ant-form-item-extra":{lineHeight:n.lineHeightLG,minHeight:"unset",marginBlockStart:n.spaceXS,marginBlockEnd:n.spaceLG},".ant-input-group":{".ant-picker:only-child":{width:"100%"},".ant-select + .ant-picker":{paddingInline:n.space,flex:1}}}}},l=o.genComponentStyleHook("ApForm",n=>[i(n)]);exports.default=l;exports.genApFormItemStyle=i;
|
|
@@ -820,7 +820,7 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
820
820
|
validateOnRuleChange: boolean;
|
|
821
821
|
validateTrigger: string | string[];
|
|
822
822
|
syncToUrl: boolean | ((values: Recordable, type: "get" | "set") => Recordable);
|
|
823
|
-
}> & Omit<Readonly<ApFormProps> & Readonly<{}>, "
|
|
823
|
+
}> & Omit<Readonly<ApFormProps> & Readonly<{}>, "getFieldsValue" | "setFieldsValue" | "setFieldValue" | "resetFields" | "clearValidate" | "validateFields" | "validate" | "scrollToField" | "getInternalInstance" | "validateFieldsReturnTransformed" | "getFieldsValueTransformed" | "registerWatch" | ("layout" | "colon" | "labelAlign" | "hideRequiredMark" | "validateOnRuleChange" | "validateTrigger" | "syncToUrl")> & ShallowUnwrapRef<{
|
|
824
824
|
setFieldsValue: (fields: Partial<any>) => void;
|
|
825
825
|
setFieldValue: (name: NamePath, value: any, triggerChange?: boolean, optimizeFn?: UpdateModelOptimizeFn) => void;
|
|
826
826
|
resetFields: () => Promise<void>;
|
|
@@ -821,7 +821,7 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
821
821
|
validateOnRuleChange: boolean;
|
|
822
822
|
validateTrigger: string | string[];
|
|
823
823
|
syncToUrl: boolean | ((values: Recordable, type: "get" | "set") => Recordable);
|
|
824
|
-
}> & Omit<Readonly< ApFormProps> & Readonly<{}>, "
|
|
824
|
+
}> & Omit<Readonly< ApFormProps> & Readonly<{}>, "getFieldsValue" | "setFieldsValue" | "setFieldValue" | "resetFields" | "clearValidate" | "validateFields" | "validate" | "scrollToField" | "getInternalInstance" | "validateFieldsReturnTransformed" | "getFieldsValueTransformed" | "registerWatch" | ("layout" | "colon" | "labelAlign" | "hideRequiredMark" | "validateOnRuleChange" | "validateTrigger" | "syncToUrl")> & ShallowUnwrapRef<{
|
|
825
825
|
setFieldsValue: (fields: Partial<any>) => void;
|
|
826
826
|
setFieldValue: (name: NamePath, value: any, triggerChange?: boolean, optimizeFn?: UpdateModelOptimizeFn) => void;
|
|
827
827
|
resetFields: () => Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../../style/index.js"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../../style/index.js"),n=require("../../utils/cssinjs/index.js"),s=e=>{const{componentCls:i,checkCardDisabledOutlineColor:l,checkCardIndicatorSize:t,checkCardOutlineWidth:r,checkCardIndicatorOffset:d}=e,a=e.calc(t).mul(2).equal();return{[`${i}`]:{...o.resetComponent(e),borderRadius:e.borderRadius,position:"relative","&--disabled":{backgroundColor:e.checkCardDisabledBg,cursor:"not-allowed !important"},"&--bordered":{outline:`${e.lineWidth} ${e.lineType} ${e.borderColorBase}`},[`&:hover:not(${i}--disabled)`]:{cursor:"pointer",outline:`${e.lineWidth} ${e.lineType} ${e.colorPrimary}`},"&::after":{content:'""',position:"absolute",width:0,height:0,insetBlockStart:0,insetInlineEnd:0,clipPath:"polygon(100% 0, 100% 100%, 0 0)",background:e.colorPrimary,borderRadius:e.calc(e.borderRadius).add("2px").equal()},"&--checked":{outline:`${r} ${e.lineType} ${e.colorPrimary}`,[`&:hover:not(${i}--disabled)`]:{outline:`${r} ${e.lineType} ${e.colorPrimary}`},"&::after":{width:a,height:a,insetBlockStart:d,insetInlineEnd:d,transition:["width","height","inset"].map(c=>`${c} ${e.motionDurationSlow} cubic-bezier(0.645, 0.045, 0.355, 1)`).join(", ")},[`&${i}--disabled`]:{outlineColor:l,"&::after":{backgroundColor:l}}},"&--middle":{padding:e.spaceLG},"&--small":{padding:`${e.spaceSM} ${e.spaceLG}`},[`${i}__title`]:{...o.resetComponent(e),marginBottom:e.spaceXS,color:e.textColor1,fontWeight:"bold","&--disabled":{color:e.textColor4}},[`${i}__content`]:{...o.resetComponent(e),color:e.textColor1,"&--disabled":{color:e.textColor4}},[`${i}__checked-icon`]:{position:"absolute",top:0,right:0,zIndex:1,lineHeight:1,userSelect:"none","& > img":{width:e.calc(t).sub(r).equal(),verticalAlign:"top"}}}}},u=n.genComponentStyleHook("CheckCard",e=>[s(e)],{checkCardDisabledBg:"#F9F9FA",checkCardDisabledOutlineColor:"#E9EDF3",checkCardIndicatorSize:14,checkCardOutlineWidth:2,checkCardIndicatorOffset:-2});exports.default=u;
|
package/lib/src/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "7.7.
|
|
1
|
+
declare const _default: "7.7.10";
|
|
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="7.7.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="7.7.10";exports.default=e;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aplus-frontend/ui",
|
|
3
|
-
"version": "7.7.
|
|
3
|
+
"version": "7.7.10",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -43,14 +43,14 @@
|
|
|
43
43
|
"@aplus-frontend/hooks": "1.0.7"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@aplus-frontend/antdv": "^1.3.
|
|
46
|
+
"@aplus-frontend/antdv": "^1.3.2",
|
|
47
47
|
"@aplus-frontend/icon": "^2.0.4",
|
|
48
48
|
"@aplus-frontend/oss": "^1.1.9",
|
|
49
49
|
"vue": "^3.5.21",
|
|
50
50
|
"vxe-table": "^4.13.37"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@aplus-frontend/antdv": "^1.3.
|
|
53
|
+
"@aplus-frontend/antdv": "^1.3.2",
|
|
54
54
|
"@aplus-frontend/icon": "^2.0.4",
|
|
55
55
|
"@aplus-frontend/oss": "^1.1.9",
|
|
56
56
|
"@emotion/serialize": "^1.3.3",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|