cnhis-design-vue 3.1.57-beta.6 → 3.1.57-beta.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.
Files changed (44) hide show
  1. package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
  2. package/es/components/button-print/style/index.css +1 -1
  3. package/es/components/callback/src/components/render/popupMaps.d.ts +14 -5
  4. package/es/components/classification/src/components/table-modal/index.vue.d.ts +0 -3
  5. package/es/components/classification/src/index.vue.d.ts +0 -3
  6. package/es/components/field-set/src/FieldColor.vue.d.ts +1 -1
  7. package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
  8. package/es/components/field-set/src/components/Row.vue.d.ts +1 -1
  9. package/es/components/form-config/index.d.ts +42 -24
  10. package/es/components/form-config/src/FormConfig.vue.d.ts +42 -24
  11. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +14 -5
  12. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +17 -8
  13. package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +8 -8
  14. package/es/components/form-config/src/constants/index.d.ts +1 -1
  15. package/es/components/form-config/src/types/index.d.ts +2 -2
  16. package/es/components/form-render/index.d.ts +14 -5
  17. package/es/components/form-render/index.js +1 -1
  18. package/es/components/form-render/src/FormRender.vue.d.ts +14 -5
  19. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  20. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +14 -5
  21. package/es/components/form-render/src/components/renderer/switch.js +1 -1
  22. package/es/components/form-render/src/hooks/index.d.ts +1 -0
  23. package/es/components/form-render/src/hooks/index.js +1 -1
  24. package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +2 -2
  25. package/es/components/form-render/src/hooks/useLowCodeReactions.d.ts +1 -1
  26. package/es/components/form-render/src/hooks/useNewLowCodeReactions.d.ts +6 -0
  27. package/es/components/form-render/src/hooks/useNewLowCodeReactions.js +1 -0
  28. package/es/components/form-render/src/types/index.d.ts +1 -1
  29. package/es/components/index.css +1 -1
  30. package/es/components/index.js +1 -1
  31. package/es/components/info-header/index.d.ts +33 -15
  32. package/es/components/info-header/src/InfoHeader.vue.d.ts +33 -15
  33. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +1 -1
  34. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +1 -1
  35. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +15 -6
  36. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +14 -5
  37. package/es/components/shortcut-setter/index.d.ts +14 -5
  38. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +14 -5
  39. package/es/shared/package.json.js +1 -1
  40. package/es/shared/types/business.d.ts +23 -3
  41. package/es/shared/utils/business.d.ts +2 -1
  42. package/es/shared/utils/business.js +1 -1
  43. package/es/shared/utils/index.js +1 -1
  44. package/package.json +2 -2
@@ -66,7 +66,7 @@ export declare namespace LowCodeTypes {
66
66
  field_key: string;
67
67
  value: unknown;
68
68
  };
69
- type reactionsConfig = {
69
+ type reactionConfig = {
70
70
  conObj: reactionsConObj[];
71
71
  } & Partial<{
72
72
  compareMap: BindEventSettingItem['compareMap'];
@@ -78,9 +78,29 @@ export declare namespace LowCodeTypes {
78
78
  notRequiredField: string[];
79
79
  enabledField: string[];
80
80
  disabledField: string[];
81
- __oppositeBindField: reactionsConfig;
82
- __oppositeTargetField: reactionsConfig;
81
+ __oppositeBindField: reactionConfig;
82
+ __oppositeTargetField: reactionConfig;
83
83
  }>;
84
+ type reactionActionType = 'show' | 'hide' | 'required' | 'notRequired' | 'enabled' | 'disabled';
85
+ type reactionAction = {
86
+ action: reactionActionType;
87
+ fields: string[];
88
+ actionConfig?: Partial<{
89
+ restoreDefault: boolean;
90
+ restoreEmpty: boolean;
91
+ }>;
92
+ };
93
+ type newReactionConfig = {
94
+ conditions: {
95
+ field: string;
96
+ type: VALUE_RELATION;
97
+ valueType?: 'const' | 'field';
98
+ value?: any;
99
+ }[];
100
+ compareMap?: BindEventSettingItem['compareMap'];
101
+ sqlExpression?: string;
102
+ actions: reactionAction[];
103
+ };
84
104
  type switchProperty = {
85
105
  value?: any;
86
106
  describe?: string;
@@ -5,7 +5,8 @@ export declare function isMatchLowCodeCondition(value: unknown, condition: {
5
5
  value: unknown;
6
6
  }, overwriteCompareMap?: LowCodeTypes.BindEventSettingItem['compareMap']): boolean;
7
7
  export declare function isConditionsMatchSqlExpression(conditions: boolean[], sqlExpression?: string): any;
8
- export declare function isMatchLowCodeConditionsWithSqlExpression(formData: AnyObject, config: LowCodeTypes.reactionsConfig): any;
8
+ export declare function isMatchLowCodeConditionsWithSqlExpression(formData: AnyObject, config: LowCodeTypes.reactionConfig): any;
9
+ export declare function isMatchNewLowCodeConditionsWithSqlExpression(formData: AnyObject, config: LowCodeTypes.newReactionConfig): any;
9
10
  declare function handleFieldTriggerSetValue(bindEventSetting: LowCodeTypes.BindEventSettingItem, { getter, setter }: {
10
11
  setter: (key: string, value: unknown) => void;
11
12
  getter: (key: string) => unknown;
@@ -1 +1 @@
1
- import{Path as e}from"@formily/path";import{isArray as t,isString as n,includes as r,negate as a,isNumber as i,gt as o,gte as l,lt as c,lte as u,identity as f,noop as s,isObject as d}from"lodash-es";import{unref as p}from"vue";import{add as m,differenceInMilliseconds as F}from"date-fns";function D(e){return null==e||""==e}function N(e){return(t,r)=>(n(t)&&(t=+t),n(r)&&(r=+r),!(!i(t)||Number.isNaN(t)||!i(r)||Number.isNaN(r))&&e(t,r))}const h={EQ:(e,t)=>`${e}`===t,NEQ:(e,t)=>`${e}`!==t,CL:(e,a)=>!(!t(e)&&!n(e))&&r(e,a),NC:(e,a)=>!t(e)&&!n(e)||!r(e,a),NULL:D,NOT_NULL:a(D),BIG:N(o),BIGEQ:N(l),LESS:N(c),LESSEQ:N(u)};function E(e,t,n={}){return(n[t.con]||h[t.con]||(()=>!1))(e,`${t.value}`)}function g(e,t){if(!t||!n(t))return e.every(f);try{return new Function("return "+t.replace(/OR/g,"||").replace(/AND/g,"&&").replace(/[a-zA-Z]/g,"").replace(/\d+/g,(t=>e[+t-1]?"true":"false")))()}catch(e){return console.error("表达式错误=>",t),!1}}function A(n,r){if(!t(r.conObj))return!1;return g(r.conObj.map((t=>E(e.getIn(n,t.field_key),t,r.compareMap))),r.sqlExpression)}const b=Object.freeze({SET_VALUE:function(e,{getter:t,setter:r}){if(!d(e))return;const{results:a=[],params:i=[],compareMap:o={}}=e;if(!a.length)return;function l(e){var r;if(!n(e))return e;const a=e.trim().match(/^\$\{([a-zA-Z\d\s]+)}$/);return a?t(null==(r=a[1])?void 0:r.trim()):e}i.every((e=>e&&e.p_name&&E(t(e.p_name),{con:e.p_select,value:l(e.p_value)},o)))&&a.forEach((e=>r(e.p_name,l(e.p_value))))},REPEAT_VALIDATE:s,IS_SHOW_FIELD:s,SQLSAVE:s,API:s});function L(e){return b[e]||s}function V(e,r,a){function o(e){return t(e)&&!!e.length}function l(e,t=!0){e.forEach((e=>{if(!e.operationalResult||!t&&null!=r(e.operationalResult))return;const o=e.operationFormParam.reduce(((e,t)=>(e[t=t.replace(/^table\./,"")]=+r(t),e)),{}),l=e.operationalRule.replace(/\${(.+?)}/g,"$1");let c=new Function("table",`return ${l}`)(o);n(c)&&(c=+c),c=i(c)?isNaN(c)?"":c.toFixed(+e.operationalPrecision):"",a(e.operationalResult,c)}))}return{operationalFormHandler:function(t){if(!o(p(e)))return;const n=p(e).filter((e=>e.operationFormParam.includes(`table.${t}`)));n.length&&l(n)},triggerAllOperationalFormHandler:function(){o(p(e))&&l(p(e),!1)}}}function $(e,n,r){function a(e){return t(e)&&!!e.length}function o(e,t=!0){e.forEach((e=>{e.diffValField&&e.diffValUnit&&e.scene&&(t||null==n(e.diffValField))&&("DIFF"===e.scene?function({startDateField:e,endDateField:t,diffValField:a,diffValUnit:i,precision:o="0"}){const l=n(e),c=n(t);if(l&&c){const e=F(new Date(c),new Date(l))/1e3/60,t=e/60,n=t/24;let u="";switch(i){case"DAY":u=n.toFixed(+o);break;case"HOUR":u=t.toFixed(+o);break;case"MIN":u=e.toFixed(+o);break;case"DHM":u=`${Math.floor(n)}天${Math.floor(t%24)}小时${Math.floor(e%60)}分钟`;break}r(a,u)}else r(a,null)}(e):"CALC"===e.scene&&function(e){const t=+e.diffValField;if(!i(t)||Number.isNaN(t))return;const a=n(e.endDateField);if(a){const n=m(new Date(a),{days:"DAY"===e.diffValUnit?t:0,hours:"HOUR"===e.diffValUnit?t:0,minutes:"MIN"===e.diffValUnit?t:0});r(e.startDateField,n)}else r(e.startDateField,null)}(e))}))}return{dateOperationalFormHandler:function(t){if(!a(p(e)))return;const n=p(e).filter((e=>"DIFF"===e.scene&&e.startDateField===t||e.endDateField===t));n.length&&o(n)},triggerAllDateOperationalFormHandler:function(){a(p(e))&&o(p(e),!1)}}}export{L as getBindEventSettingTrigger,$ as getDateOperationalFormHandler,V as getOperationalFormHandler,g as isConditionsMatchSqlExpression,E as isMatchLowCodeCondition,A as isMatchLowCodeConditionsWithSqlExpression};
1
+ import{Path as e}from"@formily/path";import{isArray as n,isString as t,includes as r,negate as a,isNumber as o,gt as i,gte as l,lt as u,lte as c,identity as f,noop as s,isObject as p}from"lodash-es";import{unref as d}from"vue";import{add as m,differenceInMilliseconds as F}from"date-fns";function D(e){return null==e||""==e}function N(e){return(n,r)=>(t(n)&&(n=+n),t(r)&&(r=+r),!(!o(n)||Number.isNaN(n)||!o(r)||Number.isNaN(r))&&e(n,r))}const g={EQ:(e,n)=>`${e}`===n,NEQ:(e,n)=>`${e}`!==n,CL:(e,a)=>!(!n(e)&&!t(e))&&r(e,a),NC:(e,a)=>!n(e)&&!t(e)||!r(e,a),NULL:D,NOT_NULL:a(D),BIG:N(i),BIGEQ:N(l),LESS:N(u),LESSEQ:N(c)};function E(e,n,t={}){return(t[n.con]||g[n.con]||(()=>!1))(e,`${n.value}`)}function h(e,n){if(!n||!t(n))return e.every(f);try{return new Function("return "+n.replace(/OR/g,"||").replace(/AND/g,"&&").replace(/[a-zA-Z]/g,"").replace(/\d+/g,(n=>e[+n-1]?"true":"false")))()}catch(e){return console.error("表达式错误=>",n),!1}}function v(t,r){if(!n(r.conObj))return!1;return h(r.conObj.map((n=>E(e.getIn(t,n.field_key),n,r.compareMap))),r.sqlExpression)}function A(t,r){if(!n(r.conditions))return!1;return h(r.conditions.map((n=>{const a=e.getIn(t,n.field);return"field"===n.valueType?E(a,{con:n.type,value:e.getIn(t,n.value)},r.compareMap):E(a,{con:n.type,value:n.value},r.compareMap)})),r.sqlExpression)}const b=Object.freeze({SET_VALUE:function(e,{getter:n,setter:r}){if(!p(e))return;const{results:a=[],params:o=[],compareMap:i={}}=e;if(!a.length)return;function l(e){var r;if(!t(e))return e;const a=e.trim().match(/^\$\{([a-zA-Z\d\s]+)}$/);return a?n(null==(r=a[1])?void 0:r.trim()):e}o.every((e=>e&&e.p_name&&E(n(e.p_name),{con:e.p_select,value:l(e.p_value)},i)))&&a.forEach((e=>r(e.p_name,l(e.p_value))))},REPEAT_VALIDATE:s,IS_SHOW_FIELD:s,SQLSAVE:s,API:s});function I(e){return b[e]||s}function L(e,r,a){function i(e){return n(e)&&!!e.length}function l(e,n=!0){e.forEach((e=>{if(!e.operationalResult||!n&&null!=r(e.operationalResult))return;const i=e.operationFormParam.reduce(((e,n)=>(e[n=n.replace(/^table\./,"")]=+r(n),e)),{}),l=e.operationalRule.replace(/\${(.+?)}/g,"$1");let u=new Function("table",`return ${l}`)(i);t(u)&&(u=+u),u=o(u)?isNaN(u)?"":u.toFixed(+e.operationalPrecision):"",a(e.operationalResult,u)}))}return{operationalFormHandler:function(n){if(!i(d(e)))return;const t=d(e).filter((e=>e.operationFormParam.includes(`table.${n}`)));t.length&&l(t)},triggerAllOperationalFormHandler:function(){i(d(e))&&l(d(e),!1)}}}function V(e,t,r){function a(e){return n(e)&&!!e.length}function i(e,n=!0){e.forEach((e=>{e.diffValField&&e.diffValUnit&&e.scene&&(n||null==t(e.diffValField))&&("DIFF"===e.scene?function({startDateField:e,endDateField:n,diffValField:a,diffValUnit:o,precision:i="0"}){const l=t(e),u=t(n);if(l&&u){const e=F(new Date(u),new Date(l))/1e3/60,n=e/60,t=n/24;let c="";switch(o){case"DAY":c=t.toFixed(+i);break;case"HOUR":c=n.toFixed(+i);break;case"MIN":c=e.toFixed(+i);break;case"DHM":c=`${Math.floor(t)}天${Math.floor(n%24)}小时${Math.floor(e%60)}分钟`;break}r(a,c)}else r(a,null)}(e):"CALC"===e.scene&&function(e){const n=+e.diffValField;if(!o(n)||Number.isNaN(n))return;const a=t(e.endDateField);if(a){const t=m(new Date(a),{days:"DAY"===e.diffValUnit?n:0,hours:"HOUR"===e.diffValUnit?n:0,minutes:"MIN"===e.diffValUnit?n:0});r(e.startDateField,t)}else r(e.startDateField,null)}(e))}))}return{dateOperationalFormHandler:function(n){if(!a(d(e)))return;const t=d(e).filter((e=>"DIFF"===e.scene&&e.startDateField===n||e.endDateField===n));t.length&&i(t)},triggerAllDateOperationalFormHandler:function(){a(d(e))&&i(d(e),!1)}}}export{I as getBindEventSettingTrigger,V as getDateOperationalFormHandler,L as getOperationalFormHandler,h as isConditionsMatchSqlExpression,E as isMatchLowCodeCondition,v as isMatchLowCodeConditionsWithSqlExpression,A as isMatchNewLowCodeConditionsWithSqlExpression};
@@ -1 +1 @@
1
- import{getCurrentInstance as t,defineComponent as e,provide as n,createVNode as r}from"vue";import{useMemoize as o}from"@vueuse/core";import{isString as i,isObject as s,isNumber as u,isArray as c,isFunction as f}from"lodash-es";import a from"../package.json.js";export{getBindEventSettingTrigger,getDateOperationalFormHandler,getOperationalFormHandler,isConditionsMatchSqlExpression,isMatchLowCodeCondition,isMatchLowCodeConditionsWithSqlExpression}from"./business.js";function l(t,e,n="children",r){let o=!1;function i(){o=!0}!function t(e,n,r="children",s){r=x(r),e=x(e);for(let u=0;u<e.length;u++){if(n(e[u],i,s),o)return;for(let i=0;i<r.length;i++){const s=e[u][r[i]];if(Array.isArray(s)&&t(s,n,r,e[u]),o)return}}}(t,e,n,r)}function d(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")&&s(a)&&Reflect.set(t,"__cnhis_version",a.version),r?r():t.component(n,e))}function p(t){if(!i(t))return;const e=t.match(/[Hms:]+/);return e?e[0]:void 0}function x(t){return Array.isArray(t)?t:[t]}function m(){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 h=o((function(t){if(!t)return 0;let e="";return[...t].reduce(((t,n)=>{const r=e;return e=n,/[a-z]/.test(n)?t+8.05:/[A-Z]/.test(n)?t+9.13:/\d/.test(n)?t+8.9:/[.,]/.test(n)?t+4.03:/[)(]/.test(n)?t+5.17:/[\u4e00-\u9fa5():,。]/.test(n)?t+13.95:/[-+]/.test(n)?t+7.51:/[/\\]/.test(n)?t+4.11:/%/.test(n)?t+12.68:/‰/.test(n)?t+17.75:" "===n?" "===r?t:t+4:t+6}),0)})),g=Object.seal(Object.create(null));function v(t,e){return function t(e,n){return s(e)?c(e)?e.map((e=>t(e,n))):Object.entries(e).reduce(((e,[r,o])=>(n.includes(r)||(s(o)&&!f(o)?e[r]=t(o,n):e[r]=o),e)),{}):e}(t,e)}function y(t){return Object.values(t).reduce(((t,e)=>Object.assign(t,e)),{})}function O(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(u(t))return`${t}${e}`;if(i(t))return t.endsWith(e)?t:`${t}${e}`;throw new Error(`invalid width value ${t}, it need to be a string or number!`)}const j=o((t=>{try{return JSON.parse(t)}catch(t){return{}}}),{getKey:t=>t});function w(t,e){if(!s(t))return t;const n={...t};for(let t=0;t<e.length;t++)Reflect.deleteProperty(n,e[t]);return n}function E(e){if(!t())throw new Error(e||"can't use this hook out of setup environment")}function $(t,e=1){const[n,r,o,i,s]=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 c=s&&parseInt(s,16)/255;return[parseInt(r,16),parseInt(o,16),parseInt(i,16),+(u(c)?c.toFixed(2):e)]}function _(t){return e({setup(e,{slots:o}){let i=(null==t?void 0:t.parent)&&Reflect.get(t.parent,"provides");const s=[];for(;i;)Object.entries(i).forEach((([t,e])=>{s.includes(t)||(s.push(t),n(t,e))})),i=Object.getPrototypeOf(i);return()=>{var t;return r("div",null,[null==(t=o.default)?void 0:t.call(o)])}}})}const S=o((function(t,e){return!(!i(e)||!i(t))&&e.split(",").some((e=>e.trim().includes(t)))}),{getKey:(...t)=>t.reduce(((t,e)=>String(t)+"_"+String(e)),"")});export{g as DMZ,x as arrayed,E as checkInSetupEnv,_ as createProviderWrapper,v as deepOmit,O as findAncestor,p as generateTimeFormat,h as getStringWidth,$ as hex2rgba,j as jsonParse,S as keywordMatcher,d as safeComponentRegister,y as separateMetaModule,w as shallowOmit,l as traverse,m as uuidGenerator,b as widthAppend};
1
+ import{getCurrentInstance as t,defineComponent as e,provide as n,createVNode as r}from"vue";import{useMemoize as o}from"@vueuse/core";import{isString as i,isObject as s,isNumber as u,isArray as c,isFunction as a}from"lodash-es";import f from"../package.json.js";export{getBindEventSettingTrigger,getDateOperationalFormHandler,getOperationalFormHandler,isConditionsMatchSqlExpression,isMatchLowCodeCondition,isMatchLowCodeConditionsWithSqlExpression,isMatchNewLowCodeConditionsWithSqlExpression}from"./business.js";function l(t,e,n="children",r){let o=!1;function i(){o=!0}!function t(e,n,r="children",s){r=x(r),e=x(e);for(let u=0;u<e.length;u++){if(n(e[u],i,s),o)return;for(let i=0;i<r.length;i++){const s=e[u][r[i]];if(Array.isArray(s)&&t(s,n,r,e[u]),o)return}}}(t,e,n,r)}function d(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")&&s(f)&&Reflect.set(t,"__cnhis_version",f.version),r?r():t.component(n,e))}function p(t){if(!i(t))return;const e=t.match(/[Hms:]+/);return e?e[0]:void 0}function x(t){return Array.isArray(t)?t:[t]}function h(){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 m=o((function(t){if(!t)return 0;let e="";return[...t].reduce(((t,n)=>{const r=e;return e=n,/[a-z]/.test(n)?t+8.05:/[A-Z]/.test(n)?t+9.13:/\d/.test(n)?t+8.9:/[.,]/.test(n)?t+4.03:/[)(]/.test(n)?t+5.17:/[\u4e00-\u9fa5():,。]/.test(n)?t+13.95:/[-+]/.test(n)?t+7.51:/[/\\]/.test(n)?t+4.11:/%/.test(n)?t+12.68:/‰/.test(n)?t+17.75:" "===n?" "===r?t:t+4:t+6}),0)})),g=Object.seal(Object.create(null));function v(t,e){return function t(e,n){return s(e)?c(e)?e.map((e=>t(e,n))):Object.entries(e).reduce(((e,[r,o])=>(n.includes(r)||(s(o)&&!a(o)?e[r]=t(o,n):e[r]=o),e)),{}):e}(t,e)}function y(t){return Object.values(t).reduce(((t,e)=>Object.assign(t,e)),{})}function w(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 O(t,e="px"){if(u(t))return`${t}${e}`;if(i(t))return t.endsWith(e)?t:`${t}${e}`;throw new Error(`invalid width value ${t}, it need to be a string or number!`)}const b=o((t=>{try{return JSON.parse(t)}catch(t){return{}}}),{getKey:t=>t});function j(t,e){if(!s(t))return t;const n={...t};for(let t=0;t<e.length;t++)Reflect.deleteProperty(n,e[t]);return n}function E(e){if(!t())throw new Error(e||"can't use this hook out of setup environment")}function C(t,e=1){const[n,r,o,i,s]=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 c=s&&parseInt(s,16)/255;return[parseInt(r,16),parseInt(o,16),parseInt(i,16),+(u(c)?c.toFixed(2):e)]}function S(t){return e({setup(e,{slots:o}){let i=(null==t?void 0:t.parent)&&Reflect.get(t.parent,"provides");const s=[];for(;i;)Object.entries(i).forEach((([t,e])=>{s.includes(t)||(s.push(t),n(t,e))})),i=Object.getPrototypeOf(i);return()=>{var t;return r("div",null,[null==(t=o.default)?void 0:t.call(o)])}}})}const $=o((function(t,e){return!(!i(e)||!i(t))&&e.split(",").some((e=>e.trim().includes(t)))}),{getKey:(...t)=>t.reduce(((t,e)=>String(t)+"_"+String(e)),"")});export{g as DMZ,x as arrayed,E as checkInSetupEnv,S as createProviderWrapper,v as deepOmit,w as findAncestor,p as generateTimeFormat,m as getStringWidth,C as hex2rgba,b as jsonParse,$ as keywordMatcher,d as safeComponentRegister,y as separateMetaModule,j as shallowOmit,l as traverse,h as uuidGenerator,O as widthAppend};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "3.1.57-beta.6",
3
+ "version": "3.1.57-beta.7",
4
4
  "license": "ISC",
5
5
  "module": "./es/components/index.js",
6
6
  "main": "./es/components/index.js",
@@ -64,5 +64,5 @@
64
64
  "iOS 7",
65
65
  "last 3 iOS versions"
66
66
  ],
67
- "gitHead": "3825f1302f667469fe0752dfb779e8e610d59dc7"
67
+ "gitHead": "cb5ffa19a1bece6f9fec06c41926903bbbffdeae"
68
68
  }