cnhis-design-vue 3.2.4-release.2 → 3.2.4-release.4

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 (103) hide show
  1. package/es/components/biunique-chat/index.d.ts +9 -6
  2. package/es/components/biunique-chat/src/Index.vue.d.ts +9 -6
  3. package/es/components/biunique-chat/src/Index.vue2.js +1 -1
  4. package/es/components/biunique-chat/src/api/index.d.ts +1 -0
  5. package/es/components/biunique-chat/src/api/index.js +1 -1
  6. package/es/components/biunique-chat/src/components/ChatHeader.vue.d.ts +2 -2
  7. package/es/components/biunique-chat/src/components/ChatHeader.vue2.js +1 -1
  8. package/es/components/biunique-chat/src/components/ChatMain.vue.d.ts +2 -1
  9. package/es/components/biunique-chat/src/components/ChatMain.vue2.js +1 -1
  10. package/es/components/biunique-chat/src/components/ChatSearch.vue.d.ts +3 -1
  11. package/es/components/biunique-chat/src/components/ChatSearch.vue2.js +1 -1
  12. package/es/components/biunique-chat/src/components/ChatSet.vue.d.ts +1 -1
  13. package/es/components/biunique-chat/src/components/ChatSet.vue2.js +1 -1
  14. package/es/components/biunique-chat/src/components/MessageTemplate.vue2.js +1 -1
  15. package/es/components/biunique-chat/src/components/PersonProfile.vue.d.ts +1 -1
  16. package/es/components/biunique-chat/src/components/SiderList.vue.d.ts +1 -1
  17. package/es/components/biunique-chat/src/components/SiderList.vue2.js +1 -1
  18. package/es/components/biunique-chat/src/hooks/useSession.d.ts +1 -1
  19. package/es/components/biunique-chat/src/hooks/useSession.js +1 -1
  20. package/es/components/biunique-chat/style/index.css +1 -1
  21. package/es/components/callback/src/components/render/popupMaps.d.ts +15 -0
  22. package/es/components/form-config/index.d.ts +43 -0
  23. package/es/components/form-config/src/FormConfig.vue.d.ts +43 -0
  24. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +15 -0
  25. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +21 -0
  26. package/es/components/form-render/index.d.ts +15 -0
  27. package/es/components/form-render/src/FormRender.vue.d.ts +15 -0
  28. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  29. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +15 -0
  30. package/es/components/form-render/src/components/renderer/formItem.d.ts +14 -0
  31. package/es/components/form-render/src/components/renderer/formItem.js +1 -1
  32. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -0
  33. package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -0
  34. package/es/components/form-render/src/constants/index.d.ts +2 -1
  35. package/es/components/form-render/src/constants/index.js +1 -1
  36. package/es/components/form-render/src/hooks/useComplexOptions.js +1 -1
  37. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  38. package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +2 -0
  39. package/es/components/form-render/src/hooks/useFieldNormalize.js +1 -1
  40. package/es/components/form-render/src/types/fieldItem.d.ts +1 -0
  41. package/es/components/form-render/src/types/index.d.ts +1 -0
  42. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue2.js +1 -1
  43. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -1
  44. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separateUtils.js +1 -1
  45. package/es/components/iho-table/src/types/index.d.ts +1 -0
  46. package/es/components/index.css +1 -1
  47. package/es/components/index.d.ts +2 -1
  48. package/es/components/index.js +1 -1
  49. package/es/components/info-header/index.d.ts +35 -0
  50. package/es/components/info-header/src/InfoHeader.vue.d.ts +35 -0
  51. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +1 -0
  52. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +1 -0
  53. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +16 -0
  54. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +15 -0
  55. package/es/components/shortcut-setter/index.d.ts +16 -0
  56. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +16 -0
  57. package/es/components/tooth-bitmap/index.d.ts +42 -0
  58. package/es/components/tooth-bitmap/index.js +1 -0
  59. package/es/components/tooth-bitmap/src/ToothBitmap.vue.d.ts +42 -0
  60. package/es/components/tooth-bitmap/src/ToothBitmap.vue.js +1 -0
  61. package/es/components/tooth-bitmap/src/ToothBitmap.vue2.js +1 -0
  62. package/es/components/tooth-bitmap/style/index.css +1 -0
  63. package/es/shared/assets/img/tooth/l-b-1.png.js +1 -0
  64. package/es/shared/assets/img/tooth/l-b-2.png.js +1 -0
  65. package/es/shared/assets/img/tooth/l-b-3.png.js +1 -0
  66. package/es/shared/assets/img/tooth/l-b-4.png.js +1 -0
  67. package/es/shared/assets/img/tooth/l-b-5.png.js +1 -0
  68. package/es/shared/assets/img/tooth/l-b-6.png.js +1 -0
  69. package/es/shared/assets/img/tooth/l-b-7.png.js +1 -0
  70. package/es/shared/assets/img/tooth/l-b-8.png.js +1 -0
  71. package/es/shared/assets/img/tooth/l-t-1.png.js +1 -0
  72. package/es/shared/assets/img/tooth/l-t-2.png.js +1 -0
  73. package/es/shared/assets/img/tooth/l-t-3.png.js +1 -0
  74. package/es/shared/assets/img/tooth/l-t-4.png.js +1 -0
  75. package/es/shared/assets/img/tooth/l-t-5.png.js +1 -0
  76. package/es/shared/assets/img/tooth/l-t-6.png.js +1 -0
  77. package/es/shared/assets/img/tooth/l-t-7.png.js +1 -0
  78. package/es/shared/assets/img/tooth/l-t-8.png.js +1 -0
  79. package/es/shared/assets/img/tooth/r-b-1.png.js +1 -0
  80. package/es/shared/assets/img/tooth/r-b-2.png.js +1 -0
  81. package/es/shared/assets/img/tooth/r-b-3.png.js +1 -0
  82. package/es/shared/assets/img/tooth/r-b-4.png.js +1 -0
  83. package/es/shared/assets/img/tooth/r-b-5.png.js +1 -0
  84. package/es/shared/assets/img/tooth/r-b-6.png.js +1 -0
  85. package/es/shared/assets/img/tooth/r-b-7.png.js +1 -0
  86. package/es/shared/assets/img/tooth/r-b-8.png.js +1 -0
  87. package/es/shared/assets/img/tooth/r-t-1.png.js +1 -0
  88. package/es/shared/assets/img/tooth/r-t-2.png.js +1 -0
  89. package/es/shared/assets/img/tooth/r-t-3.png.js +1 -0
  90. package/es/shared/assets/img/tooth/r-t-4.png.js +1 -0
  91. package/es/shared/assets/img/tooth/r-t-5.png.js +1 -0
  92. package/es/shared/assets/img/tooth/r-t-6.png.js +1 -0
  93. package/es/shared/assets/img/tooth/r-t-7.png.js +1 -0
  94. package/es/shared/assets/img/tooth/r-t-8.png.js +1 -0
  95. package/es/shared/hooks/useAsyncQueue/index.d.ts +1 -1
  96. package/es/shared/hooks/useFormRequest/index.d.ts +1 -0
  97. package/es/shared/hooks/useFormRequest/index.js +1 -1
  98. package/es/shared/hooks/useFormRequest/types.d.ts +2 -0
  99. package/es/shared/hooks/useLevelSearchCascader.js +1 -1
  100. package/es/shared/package.json.js +1 -1
  101. package/es/shared/utils/index.d.ts +1 -0
  102. package/es/shared/utils/index.js +1 -1
  103. package/package.json +2 -2
@@ -1 +1 @@
1
- import"../utils/index.js";import{isEqual as e,noop as r,isString as t,isNumber as n,isEmpty as o,isFunction as a,cloneDeep as i,omit as l,isArray as u}from"lodash-es";import"naive-ui";import{computed as s,ref as c,watch as d,unref as v}from"vue";import"@vueuse/core";import"date-fns";import{useFormRequest as p}from"./useFormRequest/index.js";import"@vueuse/shared";import"./selectHooks/useSearchContent.js";import"@vicons/ionicons5";function h(h,y,{asyncQueue:f,fieldKey:m,getRequestPayload:k=r}){const g=s({get:()=>h.value,set(r){e(r,h.value)||y("update:value",r)}}),w=c(!1),b=c([]),O=s((()=>{var e,r,t;return null!=(t=null==(r=null==(e=h.wordbook)?void 0:e.show_key)?void 0:r[0])?t:h.labelField})),_=s((()=>{var e,r;return null!=(r=null==(e=h.wordbook)?void 0:e.value_key)?r:h.valueField})),L=s((()=>{var e,r;return null==(r=null==(e=h.wordbook)?void 0:e.render_key)?void 0:r[0]})),j=s((()=>{var e;return(null==(e=h.wordbook)?void 0:e.level_num)||1/0})),C=function(e,r,t){return{transformListToChildren(e){if(!e.length)return[];const r=[(e=i(e))[0]];let t=e[0];for(let r=1;r<e.length;r++){const n=e[r];n&&(t.children=[n],n.parent=t,t=n)}return[e,r]},getNodeDepth(e){let r=1,t=e.parent;for(;t;)r++,t=t.parent;return r},enrichChildOption(e,r,t){return{...e,parent:r,isLeaf:this.getNodeDepth(r)+1>=t}},enrichKeywordOption:(e,n)=>(e.__keyword=!!n,e.isLeaf=!!n,n&&t.value&&e[t.value]&&(e[r.value]=e[t.value]),e),sortOptionWithIdList:(r,t)=>t.map((t=>r.find((r=>r[e.value]===t)))),generateOptionWithIdList(r,t,n){let o=r[0];return{options:t.reduce(((e,t,i)=>{const l=a(r,t);return 0===i?(o=l,[l]):(Object.assign(l,{parent:o,isLeaf:i+1>=n}),o.children=[l],o=l,e)}),[]),lastOption:o};function a(r,t){return r.find((r=>r[e.value]===t))}},parseLinkFromString2List:e=>e.split("_").filter((e=>e)),isClickNodeCheckbox:e=>e&&!e.__keyword&&e.isLeaf,createConfigObject:(r,t,n)=>t?r.conObj||[]:n?[{con:"EQ",is_compare_field:!1,field_key:r.level_key,value:n[e.value]}]:r.conObjFirstLevel||[],createOptionValue(e){const r=[];let t=e;for(;t;)r.unshift(l(t,["parent","isLeaf","__keyword","children"])),t=t.parent;return r},shouldInitOptionList:(r,t,n)=>u(r)&&!o(r)&&r.every((r=>r[e.value]))&&!t&&!n}}(_,O,L),{getSearchRequestInfo:K}=p(),I=c(150),R=c();async function x(e,r,i=!0){var l,u;if(I.value=r&&(null==(l=R.value)?void 0:l.getWidth())||150,C.shouldInitOptionList(g.value,e,r)){const[e,r]=C.transformListToChildren(g.value),t=e[Math.max(0,e.length-2)];if(g.value.length>1){b.value=r;const t=e[Math.max(0,e.length-2)];return await x(t,void 0,!1),t}if(null==(u=b.value)?void 0:u.length)return t}try{return C.isClickNodeCheckbox(e)?s(e):e?e.__keyword?async function(){var r;if(!t(e.id_link))return Promise.reject();const a=C.parseLinkFromString2List(e.id_link);n(j.value)&&j.value!==1/0&&a.splice(j.value);const i=await async function(e){if(!K().primaryKeyUrl)return[];try{return await f.addAsync(r(h.wordbook,h.autograph,e,v(m)))}catch(e){t(e)&&console.error(e)}function r(e,r,t,n){const o=K();return{key:n,params:{autograph:r,tableId:e.id,primaryKeyValue:t.join(","),page:1},...o,url:o.primaryKeyUrl,cache:h.requestCache,payload:{field:{},labelKey:O.value,valueKey:_.value}}}}(a);if(!i)return Promise.reject();const{lastOption:l,options:u}=C.generateOptionWithIdList(i,a,j.value);if(u.length<j.value&&(await x(l),o(l.children)))return g.value=C.sortOptionWithIdList(i,a),w.value=!1,Promise.reject();return b.value=u,null==(r=R.value)||r.setCursor(l),l}():async function(){const r=await f.addAsync(c(h.wordbook,h.autograph,e,v(m)));if(!r.length)return i?s(e):Promise.reject();e.children=r.map((r=>C.enrichChildOption(r,e,j.value)))}():async function(){var t;const n=await f.addAsync(c(h.wordbook,h.autograph,e,v(m)));b.value=n.map((e=>C.enrichKeywordOption(e,r))),r&&(null==(t=R.value)||t.setCursor(b.value[0]))}()}catch(e){t(e)&&console.error(e)}function s(e){return g.value=C.createOptionValue(e),w.value=!1,Promise.reject()}function c(e,n,o,i){const l={autograph:()=>n,wordbookId:"id",wordbookType:"type",fieldKeys:()=>e.search_key?JSON.stringify(e.search_key):void 0,conObj:()=>JSON.stringify(C.createConfigObject(e,r,o)),primaryKey:"primary_key",levelKey:"level_key",keyword:()=>r,page:()=>1},u=Object.entries(l).reduce(((r,[n,o])=>(r[n]=t(o)?e[o]:a(o)?o():void 0,r)),{});return{...K(),params:u,key:i,cache:h.requestCache,payload:{...k(),labelKey:O.value,valueKey:_.value}}}}return d((()=>h.wordbook),((r,t)=>{e(r,t)||(b.value=[],r&&(g.value||!h.lazyRequest)&&x())}),{immediate:!0}),{valueRef:g,labelKey:O,valueKey:_,optionsRef:b,showRef:w,fetchData:x,menuWidth:I,searchCascaderRef:R}}export{h as useLevelSearchCascader};
1
+ import"../utils/index.js";import{isEqual as e,noop as t,isString as r,isNumber as n,isEmpty as i,isFunction as o,cloneDeep as a,omit as l,isArray as u}from"lodash-es";import"naive-ui";import{computed as s,ref as c,watch as d,unref as v}from"vue";import"@vueuse/core";import"date-fns";import{useFormRequest as p}from"./useFormRequest/index.js";import"@vueuse/shared";import"./selectHooks/useSearchContent.js";import"@vicons/ionicons5";function h(h,y,{asyncQueue:f,fieldKey:m,getRequestPayload:k=t}){const g=s({get:()=>h.value,set(t){e(t,h.value)||y("update:value",t)}}),w=c(!1),_=c([]),b=s((()=>{var e,t,r;return null!=(r=null==(t=null==(e=h.wordbook)?void 0:e.show_key)?void 0:t[0])?r:h.labelField})),O=s((()=>{var e,t;return null!=(t=null==(e=h.wordbook)?void 0:e.value_key)?t:h.valueField})),L=s((()=>{var e,t;return null==(t=null==(e=h.wordbook)?void 0:e.render_key)?void 0:t[0]})),j=s((()=>{var e;return(null==(e=h.wordbook)?void 0:e.level_num)||1/0})),C=function(e,t,r){return{transformListToChildren(e){if(!e.length)return[];const t=[(e=a(e))[0]];let r=e[0];for(let t=1;t<e.length;t++){const n=e[t];n&&(r.children=[n],n.parent=r,r=n)}return[e,t]},getNodeDepth(e){let t=1,r=e.parent;for(;r;)t++,r=r.parent;return t},enrichChildOption(e,t,r){return{...e,parent:t,isLeaf:this.getNodeDepth(t)+1>=r}},enrichKeywordOption:(e,n)=>(e.__keyword=!!n,e.isLeaf=!!n,n&&r.value&&e[r.value]&&(e[t.value]=e[r.value]),e),sortOptionWithIdList:(t,r)=>r.map((r=>t.find((t=>t[e.value]===r)))),generateOptionWithIdList(t,r,n){let i=t[0];return{options:r.reduce(((e,r,a)=>{const l=o(t,r);return 0===a?(i=l,[l]):(Object.assign(l,{parent:i,isLeaf:a+1>=n}),i.children=[l],i=l,e)}),[]),lastOption:i};function o(t,r){return t.find((t=>t[e.value]===r))}},parseLinkFromString2List:e=>e.split("_").filter((e=>e)),isClickNodeCheckbox:e=>e&&!e.__keyword&&e.isLeaf,createConfigObject:(t,r,n)=>r?t.conObj||[]:n?[{con:"EQ",is_compare_field:!1,field_key:t.level_key,value:n[e.value]}]:t.conObjFirstLevel||[],createOptionValue(e){const t=[];let r=e;for(;r;)t.unshift(l(r,["parent","isLeaf","__keyword","children"])),r=r.parent;return t},shouldInitOptionList:(t,r,n)=>u(t)&&!i(t)&&t.every((t=>t[e.value]))&&!r&&!n}}(O,b,L),{getSearchRequestInfo:K}=p(),I=c(150),R=c();async function x(e,t,a=!0){var l,u;if(I.value=t&&(null==(l=R.value)?void 0:l.getWidth())||150,C.shouldInitOptionList(g.value,e,t)){const[e,t]=C.transformListToChildren(g.value),r=e[Math.max(0,e.length-2)];if(g.value.length>1){_.value=t;const r=e[Math.max(0,e.length-2)];return await x(r,void 0,!1),r}if(null==(u=_.value)?void 0:u.length)return r}try{return C.isClickNodeCheckbox(e)?s(e):e?e.__keyword?async function(){var t;if(!r(e.id_link))return Promise.reject(`id_link isn't string "${e.id_link}"`);const o=C.parseLinkFromString2List(e.id_link);n(j.value)&&j.value!==1/0&&o.splice(j.value);const a=await async function(e){if(!K().primaryKeyUrl)return[];try{return await f.addAsync(t(h.wordbook,h.autograph,e,v(m)))}catch(e){r(e)&&console.error(e)}function t(e,t,r,n){const i=K();return{key:n,params:{autograph:t,tableId:e.id,primaryKeyValue:r.join(","),page:1},...i,url:i.primaryKeyUrl,cache:h.requestCache,payload:{field:{},labelKey:b.value,valueKey:O.value}}}}(o);if(!a)return Promise.reject("fetchPrimaryKeyValue failed");const{lastOption:l,options:u}=C.generateOptionWithIdList(a,o,j.value);if(u.length<j.value&&(await x(l),i(l.children)))return g.value=C.sortOptionWithIdList(a,o),w.value=!1,Promise.reject("lastOption.children is empty");return _.value=u,null==(t=R.value)||t.setCursor(l),l}():async function(){const t=await f.addAsync(c(h.wordbook,h.autograph,e,v(m)));if(!t.length)return a?s(e):Promise.reject("childrenList is empty");e.children=t.map((t=>C.enrichChildOption(t,e,j.value)))}():async function(){var r;const n=await f.addAsync(c(h.wordbook,h.autograph,e,v(m)));_.value=n.map((e=>C.enrichKeywordOption(e,t))),t&&(null==(r=R.value)||r.setCursor(_.value[0]))}()}catch(e){r(e)&&console.error(e)}function s(e){return g.value=C.createOptionValue(e),w.value=!1,Promise.reject("update value success, no need to continue")}function c(e,n,i,a){const l={autograph:()=>n,wordbookId:"id",wordbookType:"type",fieldKeys:()=>e.search_key?JSON.stringify(e.search_key):void 0,conObj:()=>JSON.stringify(C.createConfigObject(e,t,i)),primaryKey:"primary_key",levelKey:"level_key",keyword:()=>t,page:()=>1},u=Object.entries(l).reduce(((t,[n,i])=>(t[n]=r(i)?e[i]:o(i)?i():void 0,t)),{});return{...K(),params:u,key:a,cache:h.requestCache,payload:{...k(),labelKey:b.value,valueKey:O.value}}}}return d((()=>h.wordbook),((t,r)=>{e(t,r)||(_.value=[],t&&(g.value||!h.lazyRequest)&&x())}),{immediate:!0}),{valueRef:g,labelKey:b,valueKey:O,optionsRef:_,showRef:w,fetchData:x,menuWidth:I,searchCascaderRef:R}}export{h as useLevelSearchCascader};
@@ -1 +1 @@
1
- var e="@cnhis-design-vue/shared",s="3.2.4-release.2",i="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.2.4-release.2",private:!0,main:"index.ts",peerDependencies:n,dependencies:a};export{d as default,a as dependencies,i as main,e as name,n as peerDependencies,s as version};
1
+ var e="@cnhis-design-vue/shared",s="3.2.4-release.4",i="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.2.4-release.4",private:!0,main:"index.ts",peerDependencies:n,dependencies:a};export{d as default,a as dependencies,i as main,e as name,n as peerDependencies,s as version};
@@ -6,6 +6,7 @@ export declare function safeComponentRegister(app: App, component: Component, cN
6
6
  export declare function generateTimeFormat(format: string): string | undefined;
7
7
  export declare function arrayed<T>(maybeArray: T): T extends Array<any> ? T : [T];
8
8
  export declare function uuidGenerator(): string;
9
+ export declare function getCharWidth(char: string): any;
9
10
  export declare const getStringWidth: import("@vueuse/core").UseMemoizedFn<number, [str: string]>;
10
11
  export declare const DMZ: AnyObject;
11
12
  export declare function deepOmit<T extends AnyObject>(target: T, keys: Array<keyof T>): any;
@@ -1 +1 @@
1
- import{getCurrentInstance as t,defineComponent as e,provide as n,createVNode as r}from"vue";import{isObject as o}from"@vue/shared";import{useMemoize as i}from"@vueuse/core";import{isString as c,isNumber as u,isArray as s,isFunction as f}from"lodash-es";import a 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",c,u=0){r=h(r),e=h(e);for(let s=0;s<e.length;s++){if(n(e[s],i,c,u),o)return;for(let i=0;i<r.length;i++){const c=e[s][r[i]];if(Array.isArray(c)&&t(c,n,r,e[s],u+1),o)return}}}(t,e,n,r,0)}function d(t,e,n=e.name,r){if(!n)throw new Error(`[CUI]: invalid component name for ${e}`);const{components:i={}}=t._context;i[n]||(!Reflect.get(t,"__cnhis_version")&&o(a)&&Reflect.set(t,"__cnhis_version",a.version),r?r():t.component(n,e))}function p(t){if(!c(t))return;const e=t.match(/[Hms:]+/);return e?e[0]:void 0}function h(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 x={a:7.7,b:8.6,c:7.7,d:8.6,e:7.7,f:5,g:8.6,h:8.2,i:3.3,j:3.3,k:7.6,l:3.5,m:12.1,n:8.2,o:8.2,p:8.6,q:8.6,r:5.4,s:7.1,t:5,u:8.2,v:7.6,w:10.9,x:7.3,y:7.6,z:7.6,A:9.43,B:9.33,C:9.93,D:10,E:8.27,F:8.1,G:10.4,H:10.4,I:3.7,J:7.5,K:9.2,L:7.9,M:12.4,N:10.4,O:10.8,P:8.9,Q:10.8,R:9.1,S:8.8,T:8.9,U:10.4,V:9.4,W:13.5,X:9.4,Y:9.1,Z:9.1,".":4.03,",":4.03,"(":5.17,")":5.17,"-":7.51,"+":7.51,"/":4.11,"\\":4.11,"%":12.68,"‰":17.75},g=/\d/,v=/[\u4e00-\u9fa5():,。]/;const y=i((function(t){if(!t)return 0;let e="";return[...t].reduce(((t,n)=>{const r=e;return e=n," "===n?" "===r?t:t+4:t+(function(t){return x[t]?x[t]:g.test(t)?8.9:v.test(t)?13.95:void 0}(n)||6)}),0)})),w=Object.seal(Object.create(null));function E(t,e){return function t(e,n){return o(e)?s(e)?e.map((e=>t(e,n))):Object.entries(e).reduce(((e,[r,i])=>(n.includes(r)||(o(i)&&!f(i)?e[r]=t(i,n):e[r]=i),e)),{}):e}(t,e)}function O(t){return Object.values(t).reduce(((t,e)=>Object.assign(t,e)),{})}function b(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 j(t,e="px"){if(u(t))return`${t}${e}`;if(c(t))return t.endsWith(e)?t:`${t}${e}`;throw new Error(`invalid width value ${t}, it need to be a string or number!`)}function C(t,e){return t.some((t=>e.includes(t)))}const S=i((t=>{try{return JSON.parse(t)}catch(t){return{}}}),{getKey:t=>t});function M(t,e){if(!o(t))return t;const n={...t};for(let t=0;t<e.length;t++)Reflect.deleteProperty(n,e[t]);return n}function $(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,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 s=c&&parseInt(c,16)/255;return[parseInt(r,16),parseInt(o,16),parseInt(i,16),+(u(s)?s.toFixed(2):e)]}function I(t){return e({setup(e,{slots:o}){let i=(null==t?void 0:t.parent)&&Reflect.get(t.parent,"provides");const c=[];for(;i;)Object.entries(i).forEach((([t,e])=>{c.includes(t)||(c.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 A=i((function(t,e){return!(!c(e)||!c(t))&&e.split(",").some((e=>e.trim().includes(t)))}),{getKey:(...t)=>t.reduce(((t,e)=>String(t)+"_"+String(e)),"")});function H(t){try{return t instanceof HTMLElement}catch(e){return o(t)&&1===t.nodeType&&o(t.style)&&o(t.ownerDocument)}}function L(t){let e=0;return function t(n,r=0){n.forEach((n=>{n.children?t(n.children,r+1):e=Math.max(e,r)}))}(t),e}export{w as DMZ,h as arrayed,$ as checkInSetupEnv,I as createProviderWrapper,E as deepOmit,b as findAncestor,p as generateTimeFormat,L as getArrDepth,y as getStringWidth,_ as hex2rgba,H as isHTMLElement,S as jsonParse,A as keywordMatcher,d as safeComponentRegister,O as separateMetaModule,M as shallowOmit,C as targetStringIncludes,l as traverse,m as uuidGenerator,j as widthAppend};
1
+ import{getCurrentInstance as t,defineComponent as e,provide as n,createVNode as r}from"vue";import{isObject as o}from"@vue/shared";import{useMemoize as i}from"@vueuse/core";import{isString as u,isNumber as c,isArray as s,isFunction as f}from"lodash-es";import a 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",u,c=0){r=h(r),e=h(e);for(let s=0;s<e.length;s++){if(n(e[s],i,u,c),o)return;for(let i=0;i<r.length;i++){const u=e[s][r[i]];if(Array.isArray(u)&&t(u,n,r,e[s],c+1),o)return}}}(t,e,n,r,0)}function d(t,e,n=e.name,r){if(!n)throw new Error(`[CUI]: invalid component name for ${e}`);const{components:i={}}=t._context;i[n]||(!Reflect.get(t,"__cnhis_version")&&o(a)&&Reflect.set(t,"__cnhis_version",a.version),r?r():t.component(n,e))}function p(t){if(!u(t))return;const e=t.match(/[Hms:]+/);return e?e[0]:void 0}function h(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 x={a:7.7,b:8.6,c:7.7,d:8.6,e:7.7,f:5,g:8.6,h:8.2,i:3.3,j:3.3,k:7.6,l:3.5,m:12.1,n:8.2,o:8.2,p:8.6,q:8.6,r:5.4,s:7.1,t:5,u:8.2,v:7.6,w:10.9,x:7.3,y:7.6,z:7.6,A:9.43,B:9.33,C:9.93,D:10,E:8.27,F:8.1,G:10.4,H:10.4,I:3.7,J:7.5,K:9.2,L:7.9,M:12.4,N:10.4,O:10.8,P:8.9,Q:10.8,R:9.1,S:8.8,T:8.9,U:10.4,V:9.4,W:13.5,X:9.4,Y:9.1,Z:9.1,".":4.03,",":4.03,"(":5.17,")":5.17,"-":7.51,"+":7.51,"/":4.11,"\\":4.11,"%":12.68,"‰":17.75},g=/\d/,v=/[\u4e00-\u9fa5():,。]/;function y(t){return x[t]?x[t]:g.test(t)?8.9:v.test(t)?13.95:void 0}const w=i((function(t){if(!t)return 0;let e="";return[...t].reduce(((t,n)=>{const r=e;return e=n," "===n?" "===r?t:t+4:t+(y(n)||6)}),0)})),E=Object.seal(Object.create(null));function O(t,e){return function t(e,n){return o(e)?s(e)?e.map((e=>t(e,n))):Object.entries(e).reduce(((e,[r,i])=>(n.includes(r)||(o(i)&&!f(i)?e[r]=t(i,n):e[r]=i),e)),{}):e}(t,e)}function b(t){return Object.values(t).reduce(((t,e)=>Object.assign(t,e)),{})}function j(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 C(t,e="px"){if(!t)return"";if(c(t))return`${t}${e}`;if(u(t))return t.endsWith(e)?t:`${t}${e}`;throw new Error(`invalid width value ${t}, it need to be a string or number!`)}function S(t,e){return t.some((t=>e.includes(t)))}const M=i((t=>{try{return JSON.parse(t)}catch(t){return{}}}),{getKey:t=>t});function $(t,e){if(!o(t))return t;const n={...t};for(let t=0;t<e.length;t++)Reflect.deleteProperty(n,e[t]);return n}function _(e){if(!t())throw new Error(e||"can't use this hook out of setup environment")}function I(t,e=1){const[n,r,o,i,u]=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 s=u&&parseInt(u,16)/255;return[parseInt(r,16),parseInt(o,16),parseInt(i,16),+(c(s)?s.toFixed(2):e)]}function A(t){return e({setup(e,{slots:o}){let i=(null==t?void 0:t.parent)&&Reflect.get(t.parent,"provides");const u=[];for(;i;)Object.entries(i).forEach((([t,e])=>{u.includes(t)||(u.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 H=i((function(t,e){return!(!u(e)||!u(t))&&e.split(",").some((e=>e.trim().includes(t)))}),{getKey:(...t)=>t.reduce(((t,e)=>String(t)+"_"+String(e)),"")});function L(t){try{return t instanceof HTMLElement}catch(e){return o(t)&&1===t.nodeType&&o(t.style)&&o(t.ownerDocument)}}function R(t){let e=0;return function t(n,r=0){n.forEach((n=>{n.children?t(n.children,r+1):e=Math.max(e,r)}))}(t),e}export{E as DMZ,h as arrayed,_ as checkInSetupEnv,A as createProviderWrapper,O as deepOmit,j as findAncestor,p as generateTimeFormat,R as getArrDepth,y as getCharWidth,w as getStringWidth,I as hex2rgba,L as isHTMLElement,M as jsonParse,H as keywordMatcher,d as safeComponentRegister,b as separateMetaModule,$ as shallowOmit,S as targetStringIncludes,l as traverse,m as uuidGenerator,C as widthAppend};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "3.2.4-release.2",
3
+ "version": "3.2.4-release.4",
4
4
  "license": "ISC",
5
5
  "module": "./es/components/index.js",
6
6
  "main": "./es/components/index.js",
@@ -71,5 +71,5 @@
71
71
  "iOS 7",
72
72
  "last 3 iOS versions"
73
73
  ],
74
- "gitHead": "0bf22ca7805636106ebd76d7fc2d6484a0e03d13"
74
+ "gitHead": "b76380b8f73014115d103d4f27ff2f75fafe822b"
75
75
  }