cnhis-design-vue 3.1.42-release.6 → 3.1.42-release.7
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/components/button-print/src/utils/print.js +1 -1
- package/es/components/classification/index.d.ts +12 -12
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +9 -9
- package/es/components/classification/src/components/set-classification/index.vue.js +1 -1
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +9 -9
- package/es/components/classification/src/components/table-modal/index.vue.js +1 -1
- package/es/components/classification/src/index.vue.d.ts +12 -12
- package/es/components/classification/src/index.vue.js +1 -1
- package/es/components/fabric-chart/index.d.ts +2 -2
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +2 -2
- package/es/components/form-config/index.d.ts +10 -10
- package/es/components/form-config/src/FormConfig.vue.d.ts +10 -10
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +5 -5
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +5 -5
- package/es/components/form-render/index.d.ts +5 -5
- package/es/components/form-render/src/FormRender.vue.d.ts +5 -5
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +5 -5
- package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +2 -2
- package/es/components/iho-table/index.d.ts +2 -0
- package/es/components/iho-table/src/IhoTable.vue.d.ts +2 -0
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +3 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useTriggerEvent.d.ts +0 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useTriggerEvent.js +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rowClickPlugin/index.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +4 -0
- package/es/components/info-header/index.d.ts +13 -13
- package/es/components/info-header/src/InfoHeader.vue.d.ts +13 -13
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +3 -3
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +3 -3
- package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.d.ts +2 -2
- package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.d.ts +1 -1
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +8 -8
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +5 -5
- package/es/components/scale-view/src/hooks/use-component.d.ts +1 -1
- package/es/components/select-label/index.d.ts +1 -1
- package/es/components/select-label/src/SelectLabel.vue.d.ts +1 -1
- package/es/components/select-person/index.d.ts +141 -0
- package/es/components/select-person/src/SearchMultiple.vue.d.ts +14 -8
- package/es/components/select-person/src/SearchMultiple.vue.js +1 -0
- package/es/components/select-person/src/SearchMultiple.vue2.js +1 -0
- package/es/components/select-person/src/SelectPerson.vue.d.ts +143 -2
- package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
- package/es/components/shortcut-setter/index.d.ts +5 -5
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +5 -5
- package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.d.ts +3 -3
- package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.js +1 -1
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +4 -4
- package/es/shared/package.json.js +1 -1
- package/es/shared/utils/index.js +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as l,computed as t,watch as
|
|
1
|
+
import{defineComponent as e,ref as l,computed as t,watch as a,openBlock as n,createBlock as u,unref as i,withCtx as o,createVNode as r,withKeys as c,createTextVNode as d,toDisplayString as s,withDirectives as v,vShow as h,createCommentVNode as p,mergeProps as f,createElementBlock as y,createElementVNode as k,Fragment as m,renderList as g}from"vue";import{NGrid as b,NGi as _,NSpace as w,NInputGroup as C,NInput as x,NButton as L,NCheckbox as S,NTree as j,NIcon as T,NTooltip as N}from"naive-ui";import{CloseCircleSharp as $}from"@vicons/ionicons5";import{filterTree as I,getExpandedKeys as D}from"./utils/index.js";import{cloneDeep as q}from"lodash-es";import B from"./SearchMultiple.vue.js";const K={key:0},P={class:"c-select-person__scroll",style:{height:"342px"}};var U=e({__name:"SelectPerson",props:{defaultList:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]},searchPlaceholder:{type:String,default:"输入关键字搜索"},searchButtonText:{type:String,default:"搜索"},wordbook:{type:Object,default:()=>({})},wordbookChild:{type:Object,default:()=>({})},showCount:{type:Boolean,default:!0},showClear:{type:Boolean,default:!0},multiple:{type:Boolean,default:!0},treeSetting:{type:Object,default:()=>({})},queryLoadChildData:{type:Function,default:void 0},queryTreeSearch:{type:Function,default:()=>Promise.resolve([])}},emits:["check","checkWithLevel"],setup(e,{emit:U}){const E=e,O=l(""),A=l(!1),F=l([]),W=l([]),M=l([]),R=l([]),z=l([]),G=l(!1),H=q(((J=E.data).forEach((e=>{var l;if(null==(l=e.children)?void 0:l.length){const l=ne(e.children,[]);e.innerItemsNum=l.length}})),ue(J,"")));var J;let Q=[];const V=t((()=>!!E.queryLoadChildData)),X=t((()=>{var e,l;return null!=(l=null==(e=null==E?void 0:E.treeSetting)?void 0:e.checkStrategy)?l:"child"}));function Y(e){e.disabled||e.children||!e.key||Q.push(e.key)}function Z(e){e.disabled||e.tempTitle||!e.key||Q.push(e.key)}async function ee(e){if(E.queryLoadChildData){const l=await E.queryLoadChildData(e);return l.children&&(l.children=l.children.map((e=>({...e,tempTitle:l.tempTitle?`${l.title}/${l.tempTitle}`:l.title})))),l}return e}function le(e){var l;(null==(l=e.children)?void 0:l.every((e=>e.disabled)))&&(e.disabled=!0)}function te({option:e}){var l;if((null==(l=e.children)?void 0:l.length)||V.value&&!(null==e?void 0:e.isLeaf)){const l=E.wordbook.user_count_obj&&e[E.wordbook.user_count_obj]||"",t=l?`(${l})`:"";return r("span",null,[`${e.title}${t}`])}return r(N,{trigger:"hover"},{default:()=>r("span",null,[e.title]),trigger:()=>r("span",null,[e.title])})}function ae(e){return e[E.wordbookChild.user_name_obj]||e[E.wordbook.parent_name_obj]||e.orgName||e.title||""}function ne(e,l){return e.forEach((e=>{var t;(null==(t=e.children)?void 0:t.length)?ne(e.children,l):l.push(e)})),l}function ue(e,l){return e&&0!==e.length?e.map((e=>{var t;const a=ae(e),n=l?`${a}/${l}`:a;return{...e,tempTitle:l,children:(null==(t=e.children)?void 0:t.length)?ue(null==e?void 0:e.children,n):[]}})):[]}async function ie(){G.value=!!O.value.trim(),V.value?M.value=await E.queryTreeSearch(O.value):M.value=I(H,O.value),W.value=M.value.length&&O.value?D(M.value):[]}function oe(){setTimeout((()=>{ie()}))}function re(e,l){var t,a;switch(null!=(a=null==(t=null==E?void 0:E.treeSetting)?void 0:t.checkStrategy)?a:"child"){case"child":!function(e,l){for(let t=0,a=e.length;t<a;t++){const a=e[t];if(!a.disabled&&(!a.children||a.isLeaf)&&(l&&!F.value.includes(a.key)&&F.value.push(a.key),!l)){const e=F.value.findIndex((e=>e===a.key));F.value.splice(e,1)}a.children&&re(a.children,l)}}(e,l);break;case"parent":!function(e,l){F.value=[];for(let t=0,a=e.length;t<a;t++){const a=e[t];if(!a.disabled&&!a.tempTitle&&(l&&!F.value.includes(a.key)&&F.value.push(a.key),!l)){const e=F.value.findIndex((e=>e===a.key));F.value.splice(e,1)}}}(e,l)}}function ce(e){re(M.value,e)}function de(e){var l;for(let t=0,a=e.length;t<a;t++){const a=e[t],n=z.value.map((e=>e.key));F.value.includes(a.key)&&!n.includes(a.key)&&R.value.push({key:a.key,name:a.title,parentName:a.tempTitle,innerItemsNum:a.innerItemsNum}),(null==(l=a.children)?void 0:l.length)&&de(a.children)}}function se(e){F.value=e}function ve(){F.value=[]}function he(e){F.value=e}return function e(l,t){var a,n,u,i;for(let o=0,r=l.length;o<r;o++){const r=l[o];switch(r.title=ae(r),r.parentNode=t,r.key||(r.key=r[E.wordbookChild.user_id_obj]||r[E.wordbook.parent_id_obj]||Date.now()),(null==(a=r.children)?void 0:a.length)?(e(r.children,r),le(r)):0===(null==(n=r.children)?void 0:n.length)&&Reflect.deleteProperty(r,"children"),null!=(i=null==(u=null==E?void 0:E.treeSetting)?void 0:u.checkStrategy)?i:"child"){case"child":Y(r);break;case"parent":Z(r)}}}(H,null),M.value=H,E.defaultList.length>0&&(V.value?(E.defaultList.forEach((e=>F.value.push(e.key))),R.value=q(E.defaultList),z.value=q(E.defaultList)):(E.defaultList.forEach((e=>F.value.push(e))),de(H))),a((()=>F),(e=>{R.value=z.value.filter((l=>e.value.includes(l.key))),e.value.length&&de(V.value?M.value:H),A.value=Q.every((e=>R.value.findIndex((l=>l.key===e))>-1));const l=R.value.filter((l=>e.value.includes(l.key)));U("check",e.value),U("checkWithLevel",l)}),{deep:!0}),(l,t)=>(n(),u(i(b),{cols:2,class:"c-select-person"},{default:o((()=>[r(i(_),null,{default:o((()=>[r(i(w),{vertical:"",style:{"padding-right":"12px","border-right":"1px solid #e8e8e8"}},{default:o((()=>[r(i(C),{style:{"margin-bottom":"12px"}},{default:o((()=>[r(i(x),{clearable:"",value:O.value,"onUpdate:value":t[0]||(t[0]=e=>O.value=e),placeholder:e.searchPlaceholder,onClear:oe,onKeyup:c(ie,["enter"])},null,8,["value","placeholder","onKeyup"]),r(i(L),{type:"primary",onClick:ie},{default:o((()=>[d(s(e.searchButtonText),1)])),_:1})])),_:1}),e.multiple&&!G.value?v((n(),u(i(S),{key:0,checked:A.value,"onUpdate:checked":[t[1]||(t[1]=e=>A.value=e),ce]},{default:o((()=>[d(" 全选 ")])),_:1},8,["checked"])),[[h,i(Q).length<1e3]]):p("v-if",!0),e.multiple&&G.value&&"parent"===i(X)?(n(),u(B,{key:1,treeData:M.value,checkedKeys:F.value,onNotifyCheck:he},null,8,["treeData","checkedKeys"])):(n(),u(i(j),f({key:2,"virtual-scroll":"",class:"c-select-person__scroll","checked-keys":F.value,"expanded-keys":W.value,"onUpdate:expanded-keys":t[2]||(t[2]=e=>W.value=e),checkable:e.multiple,cascade:"","allow-checking-not-loaded":"",selectable:!e.multiple,"selected-keys":F.value,"onUpdate:selected-keys":t[3]||(t[3]=e=>F.value=e),data:M.value,"check-strategy":"child","render-label":te},e.treeSetting,{"onUpdate:checkedKeys":se,onLoad:ee}),null,16,["checked-keys","expanded-keys","checkable","selectable","selected-keys","data"]))])),_:1})])),_:1}),r(i(_),null,{default:o((()=>[r(i(w),{vertical:"",style:{"padding-left":"12px"}},{default:o((()=>[r(i(w),{justify:"space-between",style:{"margin-bottom":"20px"}},{default:o((()=>[e.showCount?(n(),y("span",K,"已选择:"+s(R.value.length),1)):p("v-if",!0),e.showClear?(n(),y("span",{key:1,class:"c-select-person__clear-btn",onClick:ve},"清空")):p("v-if",!0)])),_:1}),k("div",P,[(n(!0),y(m,null,g(R.value,(e=>(n(),y("span",{class:"c-select-person__tag-item",key:e.key},[d(s(e.name)+" "+s(e.parentName?`(${e.parentName})`:e.innerItemsNum?`(${e.innerItemsNum})`:"")+" ",1),r(i(T),{class:"tag-close",component:i($),onClick:l=>function(e){F.value=F.value.filter((l=>l!==e.key))}(e)},null,8,["component","onClick"])])))),128))])])),_:1})])),_:1})])),_:1}))}});export{U as default};
|
|
@@ -1994,7 +1994,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1994
1994
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
1995
1995
|
onAnnotationChange?: ((...args: any[]) => any) | undefined;
|
|
1996
1996
|
}>>;
|
|
1997
|
-
emit: (event: "
|
|
1997
|
+
emit: (event: "scroll" | "formChange" | "annotationChange", ...args: any[]) => void;
|
|
1998
1998
|
cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
1999
1999
|
nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
|
|
2000
2000
|
formRenderRef: import("vue").Ref<HTMLElement | undefined>;
|
|
@@ -2164,14 +2164,14 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2164
2164
|
submit: <T>(onSubmit?: ((values: any) => void | Promise<T>) | undefined) => Promise<T>;
|
|
2165
2165
|
validator: import("@formily/core").FieldValidator;
|
|
2166
2166
|
pattern: import("@formily/core").FieldPatternTypes;
|
|
2167
|
-
form: import("@formily/core").Form<any>;
|
|
2168
2167
|
content: any;
|
|
2168
|
+
display: import("@formily/core").FieldDisplayTypes;
|
|
2169
|
+
hidden: boolean;
|
|
2170
|
+
form: import("@formily/core").Form<any>;
|
|
2169
2171
|
componentProps: Record<string, any>;
|
|
2170
2172
|
decoratorProps: Record<string, any>;
|
|
2171
|
-
display: import("@formily/core").FieldDisplayTypes;
|
|
2172
2173
|
description: string;
|
|
2173
2174
|
readOnly: boolean;
|
|
2174
|
-
hidden: boolean;
|
|
2175
2175
|
component: import("@formily/core").FieldComponent<any, any>;
|
|
2176
2176
|
decorator: import("@formily/core").FieldDecorator<any, any>;
|
|
2177
2177
|
validating: boolean;
|
|
@@ -2305,7 +2305,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2305
2305
|
readonly displayDirective: "if" | "show" | "show:lazy";
|
|
2306
2306
|
}>;
|
|
2307
2307
|
NTabs: any;
|
|
2308
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
2308
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange" | "annotationChange")[], "scroll" | "formChange" | "annotationChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
2309
2309
|
fieldList: {
|
|
2310
2310
|
type: import("vue").PropType<import("..").FieldItem[]>;
|
|
2311
2311
|
};
|
|
@@ -1996,7 +1996,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1996
1996
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
1997
1997
|
onAnnotationChange?: ((...args: any[]) => any) | undefined;
|
|
1998
1998
|
}>>;
|
|
1999
|
-
emit: (event: "
|
|
1999
|
+
emit: (event: "scroll" | "formChange" | "annotationChange", ...args: any[]) => void;
|
|
2000
2000
|
cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
2001
2001
|
nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
|
|
2002
2002
|
formRenderRef: import("vue").Ref<HTMLElement | undefined>;
|
|
@@ -2166,14 +2166,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2166
2166
|
submit: <T>(onSubmit?: ((values: any) => void | Promise<T>) | undefined) => Promise<T>;
|
|
2167
2167
|
validator: import("../../../../es/components/form-render").FieldValidator;
|
|
2168
2168
|
pattern: import("../../../../es/components/form-render").FieldPatternTypes;
|
|
2169
|
-
form: import("../../../../es/components/form-render").Form<any>;
|
|
2170
2169
|
content: any;
|
|
2170
|
+
display: import("../../../../es/components/form-render").FieldDisplayTypes;
|
|
2171
|
+
hidden: boolean;
|
|
2172
|
+
form: import("../../../../es/components/form-render").Form<any>;
|
|
2171
2173
|
componentProps: Record<string, any>;
|
|
2172
2174
|
decoratorProps: Record<string, any>;
|
|
2173
|
-
display: import("../../../../es/components/form-render").FieldDisplayTypes;
|
|
2174
2175
|
description: string;
|
|
2175
2176
|
readOnly: boolean;
|
|
2176
|
-
hidden: boolean;
|
|
2177
2177
|
component: import("../../../../es/components/form-render").FieldComponent<any, any>;
|
|
2178
2178
|
decorator: import("../../../../es/components/form-render").FieldDecorator<any, any>;
|
|
2179
2179
|
validating: boolean;
|
|
@@ -2307,7 +2307,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2307
2307
|
readonly displayDirective: "if" | "show" | "show:lazy";
|
|
2308
2308
|
}>;
|
|
2309
2309
|
NTabs: any;
|
|
2310
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
2310
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange" | "annotationChange")[], "scroll" | "formChange" | "annotationChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
2311
2311
|
fieldList: {
|
|
2312
2312
|
type: import("vue").PropType<FieldItem[]>;
|
|
2313
2313
|
};
|
package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6
6
|
};
|
|
7
7
|
value: {
|
|
8
8
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
9
|
-
default: string
|
|
9
|
+
default: string;
|
|
10
10
|
};
|
|
11
11
|
multiple: {
|
|
12
12
|
type: BooleanConstructor;
|
|
@@ -19,7 +19,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
19
19
|
};
|
|
20
20
|
value: {
|
|
21
21
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
22
|
-
default: string
|
|
22
|
+
default: string;
|
|
23
23
|
};
|
|
24
24
|
multiple: {
|
|
25
25
|
type: BooleanConstructor;
|
|
@@ -89,7 +89,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
89
89
|
};
|
|
90
90
|
value: {
|
|
91
91
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
92
|
-
default: string
|
|
92
|
+
default: string;
|
|
93
93
|
};
|
|
94
94
|
multiple: {
|
|
95
95
|
type: BooleanConstructor;
|
package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,computed as u,openBlock as l,createBlock as a,unref as r,mergeProps as t,withCtx as o,createElementBlock as v,Fragment as i,renderList as p}from"vue";import{NCheckboxGroup as n,NCheckbox as m}from"naive-ui";import s from"../../../../../../_virtual/plugin-vue_export-helper.js";var f=s(e({__name:"CheckboxGroup",props:{options:{type:[Array,String,Number]},value:{type:[Array,String,Number],default:
|
|
1
|
+
import{defineComponent as e,computed as u,openBlock as l,createBlock as a,unref as r,mergeProps as t,withCtx as o,createElementBlock as v,Fragment as i,renderList as p}from"vue";import{NCheckboxGroup as n,NCheckbox as m}from"naive-ui";import s from"../../../../../../_virtual/plugin-vue_export-helper.js";var f=s(e({__name:"CheckboxGroup",props:{options:{type:[Array,String,Number]},value:{type:[Array,String,Number],default:""},multiple:{type:Boolean,default:!1}},emits:["update:value"],setup(e,{emit:s}){const f=e,y=u({set(e){s("update:value",e)},get:()=>Array.isArray(f.value)?f.value:f.value?[f.value]:[]});function d(e){f.multiple||!Array.isArray(e)?y.value=e:y.value=function(e){return e.filter((e=>!y.value.includes(e)))}(e)[0]}return(u,s)=>(l(),a(r(n),t(u.$attrs,{value:r(y),"onUpdate:value":d}),{default:o((()=>[(l(!0),v(i,null,p(e.options,(e=>(l(),a(r(m),{key:e.value,value:e.value,label:e.label},null,8,["value","label"])))),128))])),_:1},16,["value"]))}}),[["__file","CheckboxGroup.vue"]]);export{f as default};
|
|
@@ -86,7 +86,7 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
86
86
|
};
|
|
87
87
|
value: {
|
|
88
88
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
89
|
-
default: string
|
|
89
|
+
default: string;
|
|
90
90
|
};
|
|
91
91
|
multiple: {
|
|
92
92
|
type: BooleanConstructor;
|
|
@@ -99,7 +99,7 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
99
99
|
};
|
|
100
100
|
value: {
|
|
101
101
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
102
|
-
default: string
|
|
102
|
+
default: string;
|
|
103
103
|
};
|
|
104
104
|
multiple: {
|
|
105
105
|
type: BooleanConstructor;
|
|
@@ -169,7 +169,7 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
169
169
|
};
|
|
170
170
|
value: {
|
|
171
171
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
172
|
-
default: string
|
|
172
|
+
default: string;
|
|
173
173
|
};
|
|
174
174
|
multiple: {
|
|
175
175
|
type: BooleanConstructor;
|
|
@@ -190,7 +190,7 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
190
190
|
valueFormat?: undefined;
|
|
191
191
|
};
|
|
192
192
|
style: {
|
|
193
|
-
|
|
193
|
+
'line-height': string;
|
|
194
194
|
};
|
|
195
195
|
handlerProps(props: any, { valueList, multiple }?: any): any;
|
|
196
196
|
setDefaultValue: (defaultValue: any) => any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e="@cnhis-design-vue/shared",i="3.1.42-beta.
|
|
1
|
+
var e="@cnhis-design-vue/shared",i="3.1.42-beta.74",s="index.ts",n={"naive-ui":"^2.30.0",vue:"^3.2.0"},a={"@vicons/ionicons5":"^0.12.0","lodash-es":"^4.17.21",moment:"^2.29.1","video.js":"^7.19.2","videojs-contrib-hls":"^5.15.0",viewerjs:"^1.10.5","xe-utils":"^3.5.4"},d={name:e,version:"3.1.42-beta.74",private:!0,main:"index.ts",peerDependencies:n,dependencies:a};export{d as default,a as dependencies,s as main,e as name,n as peerDependencies,i as version};
|
package/es/shared/utils/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useMemoize as t}from"@vueuse/core";import{isArray as e,isString as n,includes as r,isEmpty as o,negate as i,gt as c,gte as u,lt as s,lte as f,isObject as a,isNumber as x,isFunction as l}from"lodash-es";import{getCurrentInstance as d}from"vue";import m from"../package.json.js";function p(t,e,n="children",r){let o=!1;function i(){o=!0}!function t(e,n,r="children",c){r=y(r),e=y(e);for(let u=0;u<e.length;u++){if(n(e[u],i,c),o)return;for(let i=0;i<r.length;i++){const c=e[u][r[i]];if(Array.isArray(c)&&t(c,n,r,
|
|
1
|
+
import{useMemoize as t}from"@vueuse/core";import{isArray as e,isString as n,includes as r,isEmpty as o,negate as i,gt as c,gte as u,lt as s,lte as f,isObject as a,isNumber as x,isFunction as l}from"lodash-es";import{getCurrentInstance as d}from"vue";import m from"../package.json.js";function p(t,e,n="children",r){let o=!1;function i(){o=!0}!function t(e,n,r="children",c){r=y(r),e=y(e);for(let u=0;u<e.length;u++){if(n(e[u],i,c),o)return;for(let i=0;i<r.length;i++){const c=e[u][r[i]];if(Array.isArray(c)&&t(c,n,r,e[u]),o)return}}}(t,e,n,r)}function h(t,e,n=e.name,r){if(!n)throw new Error(`[CUI]: invalid component name for ${e}`);const{components:o={}}=t._context;o[n]||(!Reflect.get(t,"__cnhis_version")&&a(m)&&Reflect.set(t,"__cnhis_version",m.version),r?r():t.component(n,e))}function w(t){if(!n(t))return;const e=t.match(/[Hms:]+/);return e?e[0]:void 0}function y(t){return Array.isArray(t)?t:[t]}function v(){if(window.isSecureContext&&window.crypto)return`key${window.crypto.randomUUID()}`;return`key${"xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){const e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))}`}const $=t((function(t){return t?[...t].reduce(((t,e)=>/[a-z]/.test(e)?t+8:/[A-Z]/.test(e)?t+12:/\d/.test(e)?t+9:/\./.test(e)?t+4:/[\u4e00-\u9fa5]/.test(e)?t+15:/-/.test(e)?t+4:/[()]/.test(e)?t+14:/[)(]/.test(e)?t+5:/-/.test(e)?t+10:/%/.test(e)?t+14:/‰/.test(e)?t+16:t+6),0):0})),E=Object.seal(Object.create(null));function g(t,n){return function t(n,r){return a(n)?e(n)?n.map((e=>t(e,r))):Object.entries(n).reduce(((e,[n,o])=>(r.includes(n)||(a(o)&&!l(o)?e[n]=t(o,r):e[n]=o),e)),{}):n}(t,n)}function I(t){return Object.values(t).reduce(((t,e)=>Object.assign(t,e)),{})}function _(t,e){if(!t)return t;if(e(t))return t;let n=t.parentElement;for(;n&&!e(n);)n=n.parentElement;return n}function b(t,e="px"){if(x(t))return`${t}${e}`;if(n(t))return t.endsWith(e)?t:`${t}${e}`;throw new Error(`invalid width value ${t}, it need to be a string or number!`)}function j(t,e){return t.some((t=>e.includes(t)))}const L=t((t=>{try{return JSON.parse(t)}catch(t){return{}}}),{getKey:t=>t});function O(t,e){if(!a(t))return t;const n={...t};for(let t=0;t<e.length;t++)Reflect.deleteProperty(n,e[t]);return n}function S(t){if(!d())throw new Error(t||"can't use this hook out of setup environment")}const N={EQ:(t,e)=>`${t}`===e,NEQ:(t,e)=>`${t}`!==e,CL:(t,o)=>!(!e(t)&&!n(t))&&r(t,o),NC:(t,o)=>!e(t)&&!n(t)||!r(t,o),NULL:o,NOT_NULL:i(o),BIG:c,BIGEQ:u,LESS:s,LESSEQ:f};function A(t,e){return(N[e.con]||(()=>!1))(t,`${e.value}`)}function U(t,e=1){const[n,r,o,i,c]=t.match(/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i)||[];if(!n)return[255,255,255,e];const u=c&&parseInt(c,16)/255;return[parseInt(r,16),parseInt(o,16),parseInt(i,16),+(x(u)?u.toFixed(2):e)]}export{E as DMZ,y as arrayed,S as checkInSetupEnv,g as deepOmit,_ as findAncestor,w as generateTimeFormat,$ as getStringWidth,U as hex2rgba,A as isMatchLowCodeCondition,L as jsonParse,h as safeComponentRegister,I as separateMetaModule,O as shallowOmit,j as targetStringIncludes,p as traverse,v as uuidGenerator,b as widthAppend};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "3.1.42-release.
|
|
3
|
+
"version": "3.1.42-release.7",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "./es/components/index.js",
|
|
6
6
|
"main": "./es/components/index.js",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"iOS 7",
|
|
62
62
|
"last 3 iOS versions"
|
|
63
63
|
],
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "227e1e9425eade9041d966b298e20a9949f6aa2d"
|
|
65
65
|
}
|