cnhis-design-vue 3.2.4-beta.6 → 3.2.4-beta.7
Sign up to get free protection for your applications and to get access to all the features.
- package/es/components/biunique-chat/index.d.ts +2 -0
- package/es/components/biunique-chat/src/Index.vue.d.ts +2 -0
- package/es/components/biunique-chat/src/components/ChatHeader.vue2.js +1 -1
- package/es/components/biunique-chat/src/components/ChatSearch.vue.d.ts +2 -0
- package/es/components/biunique-chat/src/components/ChatSearch.vue2.js +1 -1
- package/es/components/biunique-chat/src/components/ChatSet.vue2.js +1 -1
- package/es/components/biunique-chat/src/components/MessageTemplate.vue2.js +1 -1
- package/es/components/biunique-chat/src/components/SiderList.vue2.js +1 -1
- package/es/components/biunique-chat/style/index.css +1 -1
- package/es/components/form-config/index.d.ts +7 -0
- package/es/components/form-config/src/FormConfig.vue.d.ts +7 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +3 -0
- package/es/components/form-render/src/components/renderer/formItem.js +1 -1
- package/es/components/form-render/src/types/fieldItem.d.ts +1 -0
- package/es/components/index.css +1 -1
- package/es/components/shortcut-setter/index.d.ts +1 -0
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +1 -0
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
@@ -440,6 +440,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
440
440
|
linebarWidth?: string | undefined;
|
441
441
|
linebarDirection?: "horizontal" | "vertical" | undefined;
|
442
442
|
linebarTextDirection?: "horizontal" | "vertical" | undefined;
|
443
|
+
labelColor?: string | undefined;
|
443
444
|
fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
|
444
445
|
content?: string | import("../../../components/form-render").FormRenderer | Record<string, import("../../../components/form-render").FormRenderer> | undefined;
|
445
446
|
lazyRequest?: boolean | undefined;
|
@@ -2195,6 +2196,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
2195
2196
|
linebarWidth?: string | undefined;
|
2196
2197
|
linebarDirection?: "horizontal" | "vertical" | undefined;
|
2197
2198
|
linebarTextDirection?: "horizontal" | "vertical" | undefined;
|
2199
|
+
labelColor?: string | undefined;
|
2198
2200
|
fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
|
2199
2201
|
content?: string | import("../../../components/form-render").FormRenderer | Record<string, import("../../../components/form-render").FormRenderer> | undefined;
|
2200
2202
|
lazyRequest?: boolean | undefined;
|
@@ -3998,6 +4000,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
3998
4000
|
linebarWidth?: string | undefined;
|
3999
4001
|
linebarDirection?: "horizontal" | "vertical" | undefined;
|
4000
4002
|
linebarTextDirection?: "horizontal" | "vertical" | undefined;
|
4003
|
+
labelColor?: string | undefined;
|
4001
4004
|
fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
|
4002
4005
|
content?: string | import("../../../components/form-render").FormRenderer | Record<string, import("../../../components/form-render").FormRenderer> | undefined;
|
4003
4006
|
lazyRequest?: boolean | undefined;
|
@@ -5753,6 +5756,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
5753
5756
|
linebarWidth?: string | undefined;
|
5754
5757
|
linebarDirection?: "horizontal" | "vertical" | undefined;
|
5755
5758
|
linebarTextDirection?: "horizontal" | "vertical" | undefined;
|
5759
|
+
labelColor?: string | undefined;
|
5756
5760
|
fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
|
5757
5761
|
content?: string | import("../../../components/form-render").FormRenderer | Record<string, import("../../../components/form-render").FormRenderer> | undefined;
|
5758
5762
|
lazyRequest?: boolean | undefined;
|
@@ -8870,6 +8874,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
8870
8874
|
linebarWidth?: string | undefined;
|
8871
8875
|
linebarDirection?: "horizontal" | "vertical" | undefined;
|
8872
8876
|
linebarTextDirection?: "horizontal" | "vertical" | undefined;
|
8877
|
+
labelColor?: string | undefined;
|
8873
8878
|
fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
|
8874
8879
|
content?: string | import("../../../components/form-render").FormRenderer | Record<string, import("../../../components/form-render").FormRenderer> | undefined;
|
8875
8880
|
lazyRequest?: boolean | undefined;
|
@@ -10636,6 +10641,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
10636
10641
|
linebarWidth?: string | undefined;
|
10637
10642
|
linebarDirection?: "horizontal" | "vertical" | undefined;
|
10638
10643
|
linebarTextDirection?: "horizontal" | "vertical" | undefined;
|
10644
|
+
labelColor?: string | undefined;
|
10639
10645
|
fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
|
10640
10646
|
content?: string | import("../../../components/form-render").FormRenderer | Record<string, import("../../../components/form-render").FormRenderer> | undefined;
|
10641
10647
|
lazyRequest?: boolean | undefined;
|
@@ -12375,6 +12381,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
12375
12381
|
linebarWidth?: string | undefined;
|
12376
12382
|
linebarDirection?: "horizontal" | "vertical" | undefined;
|
12377
12383
|
linebarTextDirection?: "horizontal" | "vertical" | undefined;
|
12384
|
+
labelColor?: string | undefined;
|
12378
12385
|
fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
|
12379
12386
|
content?: string | import("../../../components/form-render").FormRenderer | Record<string, import("../../../components/form-render").FormRenderer> | undefined;
|
12380
12387
|
lazyRequest?: boolean | undefined;
|
@@ -393,6 +393,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
393
393
|
linebarWidth?: string | undefined;
|
394
394
|
linebarDirection?: "horizontal" | "vertical" | undefined;
|
395
395
|
linebarTextDirection?: "horizontal" | "vertical" | undefined;
|
396
|
+
labelColor?: string | undefined;
|
396
397
|
fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
|
397
398
|
content?: string | import("../../../../components/form-render").FormRenderer | Record<string, import("../../../../components/form-render").FormRenderer> | undefined;
|
398
399
|
lazyRequest?: boolean | undefined;
|
@@ -2159,6 +2160,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
2159
2160
|
linebarWidth?: string | undefined;
|
2160
2161
|
linebarDirection?: "horizontal" | "vertical" | undefined;
|
2161
2162
|
linebarTextDirection?: "horizontal" | "vertical" | undefined;
|
2163
|
+
labelColor?: string | undefined;
|
2162
2164
|
fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
|
2163
2165
|
content?: string | import("../../../../components/form-render").FormRenderer | Record<string, import("../../../../components/form-render").FormRenderer> | undefined;
|
2164
2166
|
lazyRequest?: boolean | undefined;
|
@@ -3898,6 +3900,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
3898
3900
|
linebarWidth?: string | undefined;
|
3899
3901
|
linebarDirection?: "horizontal" | "vertical" | undefined;
|
3900
3902
|
linebarTextDirection?: "horizontal" | "vertical" | undefined;
|
3903
|
+
labelColor?: string | undefined;
|
3901
3904
|
fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
|
3902
3905
|
content?: string | import("../../../../components/form-render").FormRenderer | Record<string, import("../../../../components/form-render").FormRenderer> | undefined;
|
3903
3906
|
lazyRequest?: boolean | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,inject as l,computed as r,ref as t,onUnmounted as o,createVNode as n,mergeProps as a,unref as i}from"vue";import{arrayed as u,widthAppend as s}from"../../../../../shared/utils/index.js";import{isVoidField as d}from"@formily/core";import{observe as m,autorun as f}from"@formily/reactive";import{connect as v,mapProps as
|
1
|
+
import{defineComponent as e,inject as l,computed as r,ref as t,onUnmounted as o,createVNode as n,mergeProps as a,unref as i}from"vue";import{arrayed as u,widthAppend as s}from"../../../../../shared/utils/index.js";import{isVoidField as d}from"@formily/core";import{observe as m,autorun as f}from"@formily/reactive";import{connect as v,mapProps as c}from"@formily/vue";import{useDebounceFn as p}from"@vueuse/core";import{isString as b,isArray as y,isObject as _,isNumber as h,isFunction as g,uniq as I}from"lodash-es";import{NFormItem as x}from"naive-ui";import F from"../../../../annotation-edit/index.js";import"../../../index.js";import j from"../tooltipMessage.vue.js";import{InjectionFormUUID as k,InjectionFormGraph as R,InjectionAnnotation as M,InjectionAnnotationShortcuts as L,InjectionFormGlobalProps as S,InjectionFormGlobalEmit as q}from"../../constants/index.js";import{useComplexOptionsSpan as E}from"../../hooks/useComplexOptions.js";import{validateMessageParser as K,editorUnescape as N}from"../../utils/index.js";import{dotEscape as O,createFieldAddressId as W}from"../../utils/schema.js";import{useFormField as A}from"../../hooks/useFormField.js";const C=v(e({name:"FormRenderItem",props:{label:String,propertyKey:String,remark:String,span:{type:Number,default:6},suffixFields:{type:Array},labelRender:Function,annotation:{},fieldItem:{type:Object}},setup(e,{slots:u,attrs:v}){const{field:c,fieldKey:K,fieldAddress:C}=A(),T=l(k),P=r((()=>O(`${T}-${C.value}`))),V=t(!1);if(d(c.value)&&y(e.suffixFields)){const r=l(R);o(m(r,p((()=>{d(c.value)&&y(e.suffixFields)&&(V.value=e.suffixFields.some((e=>{const l=c.value.form.query(e).take();return l&&Reflect.get(l,"required")})))}),100)))}else o(f((()=>{V.value=Reflect.get(c.value,"required")})));const $=l(M),w=r({get(){var l,r;return null!=(r=null==(l=$.value)?void 0:l[e.propertyKey])?r:""},set(l){$.value={property:e.propertyKey,value:l}}}),B=l(L);const H=r((()=>{var l;const r={color:null==(l=e.fieldItem)?void 0:l.labelColor};return _(v.labelStyle)&&Object.assign(r,v.labelStyle),r})),U=r((()=>$.value&&!1!==e.annotation)),z=r((()=>e.label&&" "!==e.label)),D=r((()=>{let l=0;return U.value&&(l+=18),e.remark&&(l+=18),l})),G=l(S,{}),J=r((()=>{var l;const r=null==(l=e.fieldItem)?void 0:l.bordered;return null==r?G.bordered:r})),Q=l("n-form",{}),X=r((()=>{var e,l,r,t;if("left"!==(null!=(l=v.labelPlacement)?l:null==(e=Q.props)?void 0:e.labelPlacement))return"";let o=null!=(t=v.labelWidth)?t:null==(r=Q.props)?void 0:r.labelWidth;return o&&"auto"!==o?(o=parseInt(o+""),isNaN(o)||!h(o)?"":s(o-12-D.value-(V.value?11:0))):""})),Y=r((()=>g(e.labelRender)?"":b(e.label)?e.label:""));function Z(){return z.value?n("section",{class:"form-render__formItemLabel"},[n("span",{class:"form-render__formItemLabel--text",style:{marginRight:s(D.value),maxWidth:X.value},title:Y.value},[g(e.labelRender)?e.labelRender(e.label):e.label]),D.value?n("section",{class:"form-render__formItemLabel--operation"},[e.remark?n("div",{class:"form-render__formItemLabel--tooltip"},[n(j,{message:e.remark},null)]):null,U.value?n(F,{class:"form-render__formItemLabel--annotation",modelValue:w.value,"onUpdate:modelValue":e=>w.value=e,shortcuts:i(B)},null):null]):null]):null}const{getSpan:ee}=E();function le(){var l,r,t;const o=null==(l=e.fieldItem)?void 0:l.editor_title;return b(o)&&o?n("section",{style:"display:flex;flex-direction:column;gap:4px"},[null==(t=u.default)?void 0:t.call(u),n("div",{innerHTML:N(o)},null)]):null==(r=u.default)?void 0:r.call(u)}const re=l(S),te=l(q);function oe(){const e=[c.value.path+""];return c.value.form.query("*").forEach((l=>{(l.address+"").includes(c.value.address+"")&&((l.path+"").includes(c.value.path+"")||e.push(l.path+""))})),e}const ne=r({get:()=>!(!(null==re?void 0:re.selectMode)||!y(null==re?void 0:re.selectedFields))&&re.selectedFields.includes(c.value.path+""),set(e){if(!y(null==re?void 0:re.selectedFields))return;let l=[...re.selectedFields];e?(l.push(...oe()),l=I(l)):oe().forEach((e=>{const r=l.indexOf(e);r>-1&&l.splice(r,1)})),null==te||te("update:selectedFields",l)}}),ae=r((()=>(null==re?void 0:re.selectMode)&&!(c.value.parent&&"LINEBAR"!==c.value.parent.componentType)));function ie(){(null==re?void 0:re.selectMode)&&(ne.value=!ne.value)}return()=>{return n(x,a({class:["form-render__formItem",{"form-render--no-border":!J.value,"form-render--underline":"underline"===J.value,"form-render__formItemMask":ae.value,"form-render__formItemMask--selected":ae.value&&ne.value}],style:{"--form-item-column":"inner"===(null==(l=e.fieldItem)?void 0:l.childWidthMode)?e.span:ee(T,c.value.address,!1)+e.span},labelStyle:H.value},{id:P.value,uuid:T,onClick:ie,"widget-type":c.value.componentType,"field-key":O(K.value),"field-address":W(C.value),required:V.value}),{...u,default:le,label:Z});var l}}}),c({title:"label"},((e,l)=>{const r=d(l)?void 0:u(l.selfErrors).length?function(e,l){if(!b(l.defined_error_msg)||!l.defined_error_msg)return e.map((e=>K(e,l))).join(",");return K(l.defined_error_msg,l)}(u(l.selfErrors),e.fieldItem):void 0;return{...e,fieldItem:void 0,feedback:r,"validation-status":r?"error":void 0}})));export{C as FORM_ITEM};
|
@@ -132,6 +132,7 @@ export declare type FieldItem = {
|
|
132
132
|
linebarWidth: string;
|
133
133
|
linebarDirection: 'horizontal' | 'vertical';
|
134
134
|
linebarTextDirection: 'horizontal' | 'vertical';
|
135
|
+
labelColor: string;
|
135
136
|
fieldType: SchemaTypes;
|
136
137
|
content: string | FormRenderer | Record<string, FormRenderer>;
|
137
138
|
lazyRequest: boolean;
|