cnhis-design-vue 3.2.9-beta.19 → 3.2.9-beta.22

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 (36) hide show
  1. package/es/components/base-search/index.d.ts +2 -0
  2. package/es/components/base-search/src/index.vue.d.ts +2 -0
  3. package/es/components/field-set/src/FieldColor.vue.d.ts +1 -1
  4. package/es/components/field-set/src/FieldFilter.vue.d.ts +1 -1
  5. package/es/components/field-set/src/FieldSet.vue.d.ts +2 -2
  6. package/es/components/field-set/src/components/table-row.vue.d.ts +1 -1
  7. package/es/components/field-set/src/components/table-row.vue2.js +1 -1
  8. package/es/components/iho-chat/index.d.ts +245 -1
  9. package/es/components/iho-chat/src/Index.vue.d.ts +245 -1
  10. package/es/components/iho-chat/src/Index.vue2.js +1 -1
  11. package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +1 -0
  12. package/es/components/iho-chat/src/components/ChatAdd.vue2.js +1 -1
  13. package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +121 -1
  14. package/es/components/iho-chat/src/components/ChatFile.vue2.js +1 -1
  15. package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +1 -0
  16. package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +122 -1
  17. package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +120 -0
  18. package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
  19. package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +1 -0
  20. package/es/components/iho-chat/src/components/ContextMenu.js +1 -1
  21. package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +1 -0
  22. package/es/components/iho-chat/src/hooks/useSession.js +1 -1
  23. package/es/components/iho-chat/src/hooks/useState.d.ts +5 -0
  24. package/es/components/iho-chat/src/hooks/useState.js +1 -1
  25. package/es/components/iho-chat/src/utils/chatSock.js +1 -1
  26. package/es/components/iho-chat/style/index.css +1 -1
  27. package/es/components/index.css +1 -1
  28. package/es/components/quick-search/index.d.ts +3 -0
  29. package/es/components/quick-search/src/index.vue.d.ts +3 -0
  30. package/es/components/table-filter/src/hooks/useAdvanced.d.ts +1 -0
  31. package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
  32. package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
  33. package/es/components/table-filter/src/types/index.d.ts +2 -0
  34. package/es/shared/package.json.js +1 -1
  35. package/es/shared/utils/index.js +1 -1
  36. package/package.json +2 -2
@@ -71,6 +71,7 @@ declare const CQuickSearch: SFCWithInstall<import("vue").DefineComponent<{
71
71
  placeholder: string | undefined;
72
72
  advanceColWidth: number | null | undefined;
73
73
  accurateSearch: any;
74
+ extendKey: string;
74
75
  }[];
75
76
  getCacheDef: (item: import("..").ISearchType, cacheList: string[]) => string | string[];
76
77
  transformParams: (paramsList: any[]) => any;
@@ -130,6 +131,7 @@ declare const CQuickSearch: SFCWithInstall<import("vue").DefineComponent<{
130
131
  alias?: string | undefined;
131
132
  accurateSearch?: any;
132
133
  isAccurateSearchVal?: boolean | undefined;
134
+ extendKey?: string | undefined;
133
135
  }[]>;
134
136
  parentNames: import("vue").Ref<{
135
137
  disabled: boolean;
@@ -174,6 +176,7 @@ declare const CQuickSearch: SFCWithInstall<import("vue").DefineComponent<{
174
176
  alias?: string | undefined;
175
177
  accurateSearch?: any;
176
178
  isAccurateSearchVal?: boolean | undefined;
179
+ extendKey?: string | undefined;
177
180
  }[];
178
181
  getMergeConObj: () => import("..").ISearchParamsType[];
179
182
  getConObjParams: () => import("..").ISearchParamsType[];
@@ -73,6 +73,7 @@ declare const _default: import("vue").DefineComponent<{
73
73
  placeholder: string | undefined;
74
74
  advanceColWidth: number | null | undefined;
75
75
  accurateSearch: any;
76
+ extendKey: string;
76
77
  }[];
77
78
  getCacheDef: (item: ISearchType, cacheList: string[]) => string | string[];
78
79
  transformParams: (paramsList: any[]) => any;
@@ -132,6 +133,7 @@ declare const _default: import("vue").DefineComponent<{
132
133
  alias?: string | undefined;
133
134
  accurateSearch?: any;
134
135
  isAccurateSearchVal?: boolean | undefined;
136
+ extendKey?: string | undefined;
135
137
  }[]>;
136
138
  parentNames: import("vue").Ref<{
137
139
  disabled: boolean;
@@ -176,6 +178,7 @@ declare const _default: import("vue").DefineComponent<{
176
178
  alias?: string | undefined;
177
179
  accurateSearch?: any;
178
180
  isAccurateSearchVal?: boolean | undefined;
181
+ extendKey?: string | undefined;
179
182
  }[];
180
183
  getMergeConObj: () => ISearchParamsType[];
181
184
  getConObjParams: () => ISearchParamsType[];
@@ -40,6 +40,7 @@ export default function useAdvanced(): {
40
40
  placeholder: string | undefined;
41
41
  advanceColWidth: number | null | undefined;
42
42
  accurateSearch: any;
43
+ extendKey: string;
43
44
  }[];
44
45
  getCacheDef: (item: ISearchType, cacheList: string[]) => string | string[];
45
46
  transformClassifyChild: (conObjList: any, searchFieldList: any[]) => any;
@@ -1 +1 @@
1
- import{WidgetOptionEnums as e,WidgetTypeEnums as i,selectModeEnums as t,WidgetValEnums as n}from"../types/enums.js";import{isString as l}from"lodash-es";import{formatDateRangeInfo as a,presetValToTimestamp as o}from"../components/render-widget/helpers/presetValToTimestamp.js";import{DatePresetValEnums as r}from"../components/render-widget/enums.js";const u={[e.RADIO]:"0",[e.MULTIPLE]:"1",[e.ALL]:"0",[e.SELECT_TIME]:"1",[e.PAST_TIME]:"2",[e.FUTURE_TIME]:"3"};function E(){return{transformData:function(n,l){return n.map((n=>{var a,o,r;const{optionInfo:E={list:[],manualMapping:!0,dynamicOptionInfo:{},showWholeOption:!1,showMode:"DROPDOWN"},type:s,defaultValue:T,optionType:c,filterExplicit:p,rangeFilter:d,componentProps:m}=n,f={},v={title:(L=n).title,alias:L.customTitle,isShowSearch:L.isShowSearch?1:0,filterExplicit:L.filterExplicit?1:0,explicitRequired:L.explicitRequired?1:0,advanceOptionSetting:L.optionType?u[L.optionType]:"",placeholder:L.remark,advanceColWidth:L.width,accurateSearch:L.accurateSearch?L.accurateSearch:{}};var L;let S,g,C=s;p?(S=s!==i.SELECT&&s!==i.SELECTTREE||c!==e.MULTIPLE?null==(a=null==T?void 0:T.valueList)?void 0:a[0]:null==T?void 0:T.valueList,g=null==T?void 0:T.unit,s===i.LABEL&&(C="SELECTLABEL",S=null==T?void 0:T.valueList),s===i.DATE&&(C="DATE_OUT"),s===i.DATE_TIME&&(C="DATETIME_OUT"),s===i.SELECT&&(null==E?void 0:E.manualMapping)&&(null==E?void 0:E.showMode)==t.TILE&&(C="CHECKBOX_GROUP")):s===i.SELECT&&(null==E?void 0:E.list)&&(null==E?void 0:E.list.length)<10&&(C="CHECKBOX_GROUP"),d&&(s===i.INPUT_NUMBER&&(C="INPUTNUMBER_RANGE"),s===i.DATE&&(C=p?"DATE_RANGE_OUT":"DATE_RANGE_INNER"),s===i.DATE_TIME&&(C=p?"DATETIME_RANGE_OUT":"DATETIME_RANGE_INNER")),s===i.SELECT&&!1===(null==E?void 0:E.manualMapping)&&(C=i.SELECTDYNAMIC);const h={isRender:!0,widgetType:C,originType:s,valueList:s===i.SELECTTREE?null==E?void 0:E.list:null==(o=null==E?void 0:E.list)?void 0:o.map((({name:e,value:i})=>({value:i,label:e}))),defaultValue:S,defValueUnit:g,optionSetting:c,multiple:c===e.MULTIPLE||C===i.SELECTLABEL,manualMapping:null==E?void 0:E.manualMapping,showWholeOption:null==E?void 0:E.showWholeOption,dynamicOptionInfo:null==E?void 0:E.dynamicOptionInfo,classifyStr:null==T?void 0:T.classifyStr,linkageFieldKeys:null!=(r=null==T?void 0:T.linkageFieldKeys)?r:[]};return{...v,fieldType:n.dataType,columnName:n.name,settingObj:f,setting:JSON.stringify(f),widgetCfg:h,rangeFilter:d,componentProps:m,unit:null!=g?g:"",isAccurateSearchVal:!1,_extendData:null!=l?l:{}}}))},getCacheDef:function(e,t){const{widgetType:n,widgetCfg:l}=e;return[i.SELECT,i.CHECKBOX_GROUP,i.SELECTDYNAMIC].includes(n)&&l.multiple?t:t[0]},transformClassifyChild:function(e,t){const n={};return e&&e.length>0&&e.forEach((e=>{const l=e.field_key;n[l]="";const u=t.find((e=>e.name===l));if(u){if(e.value){const t=Array.isArray(e.value)&&u.type===i.SELECT?e.value:e.value.toString();n[l]=t}if(e.unit&&e.unit!==r.CUSTOM){let t="";u.type===i.DATE&&(t=u.rangeFilter?a(e.unit,"YYYY-MM-DD",u.optionType):o(e.unit,"YYYY-MM-DD")),u.type===i.DATE_TIME&&(t=u.rangeFilter?a(e.unit,"YYYY-MM-DD HH:mm:ss",u.optionType):o(e.unit,"YYYY-MM-DD HH:mm:ss")),n[l]=t}}})),n},transformParams:function(e){const t={},a=[i.SELECT,i.SELECTDYNAMIC,i.CHECKBOX_GROUP,i.SELECTTREE];return e&&e.length>0&&e.forEach((e=>{let i="";const o=e.field_key;e.value&&(i=a.includes(e.widgetType)||e.value&&e.value.length>1?e.value.map((e=>l(e)&&e.includes("&")?e.split("&")[1]:e)):e.value.toString()),Array.isArray(i)&&i.length>0&&i.includes(n.WHOLE)||(Object.keys(e).includes("isAccurateSearch")&&(t[e.accurateSearchKey]=e.isAccurateSearch?1:0),t[o]=i)})),t}}}export{E as default};
1
+ import{WidgetOptionEnums as e,WidgetTypeEnums as t,selectModeEnums as n,WidgetValEnums as i}from"../types/enums.js";import{isString as l}from"lodash-es";import{formatDateRangeInfo as a,presetValToTimestamp as o}from"../components/render-widget/helpers/presetValToTimestamp.js";import{DatePresetValEnums as u}from"../components/render-widget/enums.js";const r={[e.RADIO]:"0",[e.MULTIPLE]:"1",[e.ALL]:"0",[e.SELECT_TIME]:"1",[e.PAST_TIME]:"2",[e.FUTURE_TIME]:"3"};function E(){return{transformData:function(i,l){return i.map((i=>{var a,o,u;const{optionInfo:E={list:[],manualMapping:!0,dynamicOptionInfo:{},showWholeOption:!1,showMode:"DROPDOWN"},type:s,defaultValue:c,optionType:d,filterExplicit:p,rangeFilter:T,componentProps:m}=i,f={},y=function(e){var t;return{title:e.title,alias:e.customTitle,isShowSearch:e.isShowSearch?1:0,filterExplicit:e.filterExplicit?1:0,explicitRequired:e.explicitRequired?1:0,advanceOptionSetting:e.optionType?r[e.optionType]:"",placeholder:e.remark,advanceColWidth:e.width,accurateSearch:e.accurateSearch?e.accurateSearch:{},extendKey:null!=(t=e.extendKey)?t:""}}(i);let v,S,L=s;p?(v=s!==t.SELECT&&s!==t.SELECTTREE||d!==e.MULTIPLE?null==(a=null==c?void 0:c.valueList)?void 0:a[0]:null==c?void 0:c.valueList,S=null==c?void 0:c.unit,s===t.LABEL&&(L="SELECTLABEL",v=null==c?void 0:c.valueList),s===t.DATE&&(L="DATE_OUT"),s===t.DATE_TIME&&(L="DATETIME_OUT"),s===t.SELECT&&(null==E?void 0:E.manualMapping)&&(null==E?void 0:E.showMode)==n.TILE&&(L="CHECKBOX_GROUP")):s===t.SELECT&&(null==E?void 0:E.list)&&(null==E?void 0:E.list.length)<10&&(L="CHECKBOX_GROUP"),T&&(s===t.INPUT_NUMBER&&(L="INPUTNUMBER_RANGE"),s===t.DATE&&(L=p?"DATE_RANGE_OUT":"DATE_RANGE_INNER"),s===t.DATE_TIME&&(L=p?"DATETIME_RANGE_OUT":"DATETIME_RANGE_INNER")),s===t.SELECT&&!1===(null==E?void 0:E.manualMapping)&&(L=t.SELECTDYNAMIC);const g={isRender:!0,widgetType:L,originType:s,valueList:s===t.SELECTTREE?null==E?void 0:E.list:null==(o=null==E?void 0:E.list)?void 0:o.map((({name:e,value:t})=>({value:t,label:e}))),defaultValue:v,defValueUnit:S,optionSetting:d,multiple:d===e.MULTIPLE||L===t.SELECTLABEL,manualMapping:null==E?void 0:E.manualMapping,showWholeOption:null==E?void 0:E.showWholeOption,dynamicOptionInfo:null==E?void 0:E.dynamicOptionInfo,classifyStr:null==c?void 0:c.classifyStr,linkageFieldKeys:null!=(u=null==c?void 0:c.linkageFieldKeys)?u:[]};return{...y,fieldType:i.dataType,columnName:i.name,settingObj:f,setting:JSON.stringify(f),widgetCfg:g,rangeFilter:T,componentProps:m,unit:null!=S?S:"",isAccurateSearchVal:!1,_extendData:null!=l?l:{}}}))},getCacheDef:function(e,n){const{widgetType:i,widgetCfg:l}=e;return[t.SELECT,t.CHECKBOX_GROUP,t.SELECTDYNAMIC].includes(i)&&l.multiple?n:n[0]},transformClassifyChild:function(e,n){const i={};return e&&e.length>0&&e.forEach((e=>{const l=e.field_key;i[l]="";const r=n.find((e=>e.name===l));if(r){if(e.value){const n=Array.isArray(e.value)&&r.type===t.SELECT?e.value:e.value.toString();i[l]=n}if(e.unit&&e.unit!==u.CUSTOM){let n="";r.type===t.DATE&&(n=r.rangeFilter?a(e.unit,"YYYY-MM-DD",r.optionType):o(e.unit,"YYYY-MM-DD")),r.type===t.DATE_TIME&&(n=r.rangeFilter?a(e.unit,"YYYY-MM-DD HH:mm:ss",r.optionType):o(e.unit,"YYYY-MM-DD HH:mm:ss")),i[l]=n}}})),i},transformParams:function(e){const n={},a=[t.SELECT,t.SELECTDYNAMIC,t.CHECKBOX_GROUP,t.SELECTTREE];return e&&e.length>0&&(new Set(e.map((e=>e.extendKey))),e.forEach((e=>{let t="";const o=e.field_key;e.value&&(t=a.includes(e.widgetType)||e.value&&e.value.length>1?e.value.map((e=>l(e)&&e.includes("&")?e.split("&")[1]:e)):e.value.toString()),Array.isArray(t)&&t.length>0&&t.includes(i.WHOLE)||(Object.keys(e).includes("isAccurateSearch")&&(n[e.accurateSearchKey]=e.isAccurateSearch?1:0),(null==e?void 0:e.extendKey)?(n[e.extendKey]||(n[e.extendKey]={}),n[e.extendKey][o]=t):n[o]=t)}))),n}}}export{E as default};
@@ -1 +1 @@
1
- import{WidgetCfgMaps as e}from"../components/render-widget/widgetCfgMaps.js";import{WidgetTypeEnums as t,WidgetOptionEnums as n}from"../types/enums.js";const r=[t.CHECKBOX_GROUP,t.DATE,t.DATE_TIME,t.DATE_RANGE_INNER,t.DATETIME_RANGE_INNER,t.LABEL];function i(){function i(e){var t;return null==(t=e.widgetCfg)?void 0:t.isRender}async function u(t){const{widgetType:r,defaultValue:i,defValueUnit:u,optionSetting:a,multiple:c}=t.widgetCfg||{},l=e.get(r);let o;if(l){const{setDefaultValue:e}=l;e&&(o=await e(i,u,{optSetting:null!=a?a:n.ALL,multiple:c,_cfg:t}))}return o}return{isRender:i,getDefValByRenderWidget:u,initRenderWidgetCfg:async function(e){const t=i(e);if(!t)return t;const{widgetType:n}=e.widgetCfg||{};return e._frontId||(e._frontId="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))),e.isRender=t,e.widgetType=n,e.con="EQ",r.includes(n)&&(e._isBlock=!0),1==e.filterExplicit&&(e.value=await u(e)),t},getRenderSearchConObj:function(e){if(!i(e))return null;const{columnName:t,con:n,value:r,widgetType:u,unit:a=""}=e,c=Array.isArray(r)?r:r?[r]:[],l={widgetType:u,field_key:t,con:n,value:c.length>0?c:null,unit:a};return e.accurateSearch.switchEnable&&(l.isAccurateSearch=e.isAccurateSearchVal,l.accurateSearchKey=e.accurateSearch.searchKey),l},getDefValByRenderConObj:function(e,n){if(!i(n))return null;const{widgetType:r,multiple:u}=n.widgetCfg||{},{value:a}=e;return r!==t.SELECT&&r!==t.CHECKBOX_GROUP||!u?Array.isArray(a)?a[0]:a:Array.isArray(a)?a:a?[a]:[]},isExistDefValByRenderWidget:function(e){const{defaultValue:t,defValueUnit:n}=e.widgetCfg||{};return!(!t&&!n)},resetRenderWidgetValue:function(e){const t=i(e);return t?(e.value=null,e.unit="",t):t}}}export{i as default};
1
+ import{WidgetCfgMaps as e}from"../components/render-widget/widgetCfgMaps.js";import{WidgetTypeEnums as t,WidgetOptionEnums as n}from"../types/enums.js";const r=[t.CHECKBOX_GROUP,t.DATE,t.DATE_TIME,t.DATE_RANGE_INNER,t.DATETIME_RANGE_INNER,t.LABEL];function i(){function i(e){var t;return null==(t=e.widgetCfg)?void 0:t.isRender}async function u(t){const{widgetType:r,defaultValue:i,defValueUnit:u,optionSetting:a,multiple:l}=t.widgetCfg||{},c=e.get(r);let d;if(c){const{setDefaultValue:e}=c;e&&(d=await e(i,u,{optSetting:null!=a?a:n.ALL,multiple:l,_cfg:t}))}return d}return{isRender:i,getDefValByRenderWidget:u,initRenderWidgetCfg:async function(e){const t=i(e);if(!t)return t;const{widgetType:n}=e.widgetCfg||{};return e._frontId||(e._frontId="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))),e.isRender=t,e.widgetType=n,e.con="EQ",r.includes(n)&&(e._isBlock=!0),1==e.filterExplicit&&(e.value=await u(e)),t},getRenderSearchConObj:function(e){if(!i(e))return null;const{columnName:t,con:n,value:r,widgetType:u,unit:a=""}=e,l=Array.isArray(r)?r:r?[r]:[],c={widgetType:u,field_key:t,con:n,value:l.length>0?l:null,unit:a};return e.accurateSearch.switchEnable&&(c.isAccurateSearch=e.isAccurateSearchVal,c.accurateSearchKey=e.accurateSearch.searchKey),(null==e?void 0:e.extendKey)&&(c.extendKey=e.extendKey),c},getDefValByRenderConObj:function(e,n){if(!i(n))return null;const{widgetType:r,multiple:u}=n.widgetCfg||{},{value:a}=e;return r!==t.SELECT&&r!==t.CHECKBOX_GROUP||!u?Array.isArray(a)?a[0]:a:Array.isArray(a)?a:a?[a]:[]},isExistDefValByRenderWidget:function(e){const{defaultValue:t,defValueUnit:n}=e.widgetCfg||{};return!(!t&&!n)},resetRenderWidgetValue:function(e){const t=i(e);return t?(e.value=null,e.unit="",t):t}}}export{i as default};
@@ -26,6 +26,7 @@ export type ISearchType = {
26
26
  alias?: string;
27
27
  accurateSearch?: any;
28
28
  isAccurateSearchVal?: boolean;
29
+ extendKey?: string;
29
30
  };
30
31
  export type IFilterItemType = {
31
32
  con: string;
@@ -144,6 +145,7 @@ export type IApiServerType = {
144
145
  keyword?: boolean;
145
146
  accurateSearch?: any;
146
147
  componentProps?: any;
148
+ extendKey?: string;
147
149
  };
148
150
  export type dynamicOptionInfoType = {
149
151
  filterKeys: string[];
@@ -1 +1 @@
1
- var e="@cnhis-design-vue/shared",i="3.2.9-beta.19",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.2.9-beta.19",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};
1
+ var e="@cnhis-design-vue/shared",i="3.2.9-beta.22",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.2.9-beta.22",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};
@@ -1 +1 @@
1
- import{getCurrentInstance as n,defineComponent as t,provide as e,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(n,t,e="children",r){let o=!1;function i(){o=!0}!function n(t,e,r="children",u,c=0){r=m(r),t=m(t);for(let s=0;s<t.length;s++){if(e(t[s],i,u,c),o)return;for(let i=0;i<r.length;i++){const u=t[s][r[i]];if(Array.isArray(u)&&n(u,e,r,t[s],c+1),o)return}}}(n,t,e,r,0)}function d(n,t,e=t.name,r){if(!e)throw new Error(`[CUI]: invalid component name for ${t}`);const{components:i={}}=n._context;i[e]||(!Reflect.get(n,"__cnhis_version")&&o(a)&&Reflect.set(n,"__cnhis_version",a.version),r?r():n.component(e,t))}function p(n){if(!u(n))return;const t=n.match(/[Hms:]+/);return t?t[0]:void 0}function m(n){return Array.isArray(n)?n:[n]}function h(){return`key${"xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(n){const t=16*Math.random()|0;return("x"==n?t:3&t|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,";":13.95,"、":13.95,",":13.95,"。":13.95},g=/\d/,v=/[\u4e00-\u9fa5():,。]/;function w(n){return x[n]?x[n]:g.test(n)?8.9:v.test(n)?13.95:void 0}const y=i((function(n){if(!n)return 0;let t="";return[...n].reduce(((n,e)=>{const r=t;return t=e," "===e?" "===r?n:n+4:n+(w(e)||6)}),0)})),E=Object.seal(Object.create(null));function O(n,t){return function n(t,e){return o(t)?s(t)?t.map((t=>n(t,e))):Object.entries(t).reduce(((t,[r,i])=>(e.includes(r)||(o(i)&&!f(i)?t[r]=n(i,e):t[r]=i),t)),{}):t}(n,t)}function b(n){return Object.values(n).reduce(((n,t)=>Object.assign(n,t)),{})}function j(n,t){if(!n)return n;if(t(n))return n;let e=n.parentElement;for(;e&&!t(e);)e=e.parentElement;return e}function C(n,t="px"){if(c(n))return`${n}${t}`;if(!n)return"";if(u(n))return n.endsWith(t)?n:`${n}${t}`;throw new Error(`invalid width value ${n}, it need to be a string or number!`)}function S(n,t){return n.some((n=>t.includes(n)))}const M=i((n=>{try{return JSON.parse(n)}catch(n){return{}}}),{getKey:n=>n});function $(n,t){if(!o(n))return n;const e={...n};for(let n=0;n<t.length;n++)Reflect.deleteProperty(e,t[n]);return e}function _(t){if(!n())throw new Error(t||"can't use this hook out of setup environment")}function I(n,t=1){const[e,r,o,i,u]=n.match(/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i)||[];if(!e)return[255,255,255,t];const s=u&&parseInt(u,16)/255;return[parseInt(r,16),parseInt(o,16),parseInt(i,16),+(c(s)?s.toFixed(2):t)]}function A(n){return t({setup(t,{slots:o}){let i=(null==n?void 0:n.parent)&&Reflect.get(n.parent,"provides");const u=[];for(;i;)Object.entries(i).forEach((([n,t])=>{u.includes(n)||(u.push(n),e(n,t))})),i=Object.getPrototypeOf(i);return()=>{var n;return r("div",null,[null==(n=o.default)?void 0:n.call(o)])}}})}const H=i((function(n,t){return!(!u(t)||!u(n))&&t.split(",").some((t=>t.trim().includes(n)))}),{getKey:(...n)=>n.reduce(((n,t)=>String(n)+"_"+String(t)),"")});function L(n){try{return n instanceof HTMLElement}catch(t){return o(n)&&1===n.nodeType&&o(n.style)&&o(n.ownerDocument)}}function N(n){let t=0;return function n(e,r=0){e.forEach((e=>{e.children?n(e.children,r+1):t=Math.max(t,r)}))}(n),t}function R(n,t){var e;(null==(e=null==window?void 0:window.$CMonitor)?void 0:e.notify)&&window.$CMonitor.notify({message:JSON.stringify(n),businessName:t||"SDK"})}export{E as DMZ,m as arrayed,_ as checkInSetupEnv,A as createProviderWrapper,O as deepOmit,R as encapBrowserLog,j as findAncestor,p as generateTimeFormat,N as getArrDepth,w as getCharWidth,y 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,h as uuidGenerator,C as widthAppend};
1
+ import{getCurrentInstance as n,defineComponent as t,provide as e,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(n,t,e="children",r){let o=!1;function i(){o=!0}!function n(t,e,r="children",u,c=0){r=p(r),t=p(t);for(let s=0;s<t.length;s++){if(e(t[s],i,u,c),o)return;for(let i=0;i<r.length;i++){const u=t[s][r[i]];if(Array.isArray(u)&&n(u,e,r,t[s],c+1),o)return}}}(n,t,e,r,0)}function d(n,t,e=t.name,r){if(!e)throw new Error(`[CUI]: invalid component name for ${t}`);const{components:i={}}=n._context;i[e]||(!Reflect.get(n,"__cnhis_version")&&o(a)&&Reflect.set(n,"__cnhis_version",a.version),r?r():n.component(e,t))}function m(n){if(!u(n))return;const t=n.match(/[Hms:]+/);return t?t[0]:void 0}function p(n){return Array.isArray(n)?n:[n]}function h(){return`key${"xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(n){const t=16*Math.random()|0;return("x"==n?t:3&t|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,";":13.95,"、":13.95,",":13.95,"。":13.95},g=/\d/,v=/[\u4e00-\u9fa5():,。]/;function w(n){return x[n]?x[n]:g.test(n)?8.9:v.test(n)?13.95:void 0}const y=i((function(n){if(!n)return 0;let t="";return[...n].reduce(((n,e)=>{const r=t;return t=e," "===e?" "===r?n:n+4:n+(w(e)||6)}),0)})),E=Object.seal(Object.create(null));function O(n,t){return function n(t,e){return o(t)?s(t)?t.map((t=>n(t,e))):Object.entries(t).reduce(((t,[r,i])=>(e.includes(r)||(o(i)&&!f(i)?t[r]=n(i,e):t[r]=i),t)),{}):t}(n,t)}function b(n){return Object.values(n).reduce(((n,t)=>Object.assign(n,t)),{})}function j(n,t){if(!n)return n;if(t(n))return n;let e=n.parentElement;for(;e&&!t(e);)e=e.parentElement;return e}function C(n,t="px"){if(c(n))return`${n}${t}`;if(!n)return"";if(u(n))return n.endsWith(t)?n:`${n}${t}`;throw new Error(`invalid width value ${n}, it need to be a string or number!`)}function S(n,t){return n.some((n=>t.includes(n)))}const M=i((n=>{try{return JSON.parse(n)}catch(n){return{}}}),{getKey:n=>n});function $(n,t){if(!o(n))return n;const e={...n};for(let n=0;n<t.length;n++)Reflect.deleteProperty(e,t[n]);return e}function _(t){if(!n())throw new Error(t||"can't use this hook out of setup environment")}function I(n,t=1){const[e,r,o,i,u]=n.match(/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i)||[];if(!e)return[255,255,255,t];const s=u&&parseInt(u,16)/255;return[parseInt(r,16),parseInt(o,16),parseInt(i,16),+(c(s)?s.toFixed(2):t)]}function A(n){return t({setup(t,{slots:o}){let i=(null==n?void 0:n.parent)&&Reflect.get(n.parent,"provides");const u=[];for(;i;)Object.entries(i).forEach((([n,t])=>{u.includes(n)||(u.push(n),e(n,t))})),i=Object.getPrototypeOf(i);return()=>{var n;return r("div",null,[null==(n=o.default)?void 0:n.call(o)])}}})}const H=i((function(n,t){return!(!u(t)||!u(n))&&t.split(",").some((t=>t.trim().includes(n)))}),{getKey:(...n)=>n.reduce(((n,t)=>String(n)+"_"+String(t)),"")});function L(n){try{return n instanceof HTMLElement}catch(t){return o(n)&&1===n.nodeType&&o(n.style)&&o(n.ownerDocument)}}function N(n){let t=0;return function n(e,r=0){e.forEach((e=>{e.children?n(e.children,r+1):t=Math.max(t,r)}))}(n),t}function R(n,t){var e;(null==(e=null==window?void 0:window.$CMonitor)?void 0:e.notify)&&window.$CMonitor.notify({name:"custom_info",message:JSON.stringify(n),businessName:t||"SDK"})}export{E as DMZ,p as arrayed,_ as checkInSetupEnv,A as createProviderWrapper,O as deepOmit,R as encapBrowserLog,j as findAncestor,m as generateTimeFormat,N as getArrDepth,w as getCharWidth,y 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,h 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.9-beta.19",
3
+ "version": "3.2.9-beta.22",
4
4
  "license": "ISC",
5
5
  "module": "./es/components/index.js",
6
6
  "main": "./es/components/index.js",
@@ -72,5 +72,5 @@
72
72
  "iOS 7",
73
73
  "last 3 iOS versions"
74
74
  ],
75
- "gitHead": "0ca08de96e0c5037d401d5b9518ec9c5313e5f32"
75
+ "gitHead": "abe241e1015bf91bfa7fab4499314d942520cd1e"
76
76
  }