cnhis-design-vue 3.2.7-beta.2 → 3.2.7-beta.21

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 (121) hide show
  1. package/es/components/button-print/index.d.ts +1 -0
  2. package/es/components/button-print/src/ButtonPrint.vue.d.ts +1 -0
  3. package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +1 -0
  4. package/es/components/button-print/src/components/NewPrintComponent.vue2.js +1 -1
  5. package/es/components/button-print/style/index.css +1 -1
  6. package/es/components/classification/index.d.ts +60 -5
  7. package/es/components/classification/src/components/search-filter/index.vue.d.ts +60 -5
  8. package/es/components/classification/src/components/set-classification/index.vue.d.ts +60 -5
  9. package/es/components/classification/src/index.vue.d.ts +60 -5
  10. package/es/components/date-picker/index.d.ts +13 -0
  11. package/es/components/date-picker/src/DatePicker.vue.d.ts +13 -0
  12. package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
  13. package/es/components/fabric-chart/src/constants/index.d.ts +3 -1
  14. package/es/components/fabric-chart/src/constants/index.js +1 -1
  15. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
  16. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.d.ts +8 -3
  17. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
  18. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.d.ts +9 -6
  19. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +1 -1
  20. package/es/components/fabric-chart/src/hooks/electrocardiogram/useMeasureInstrument.js +1 -1
  21. package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcess.js +1 -1
  22. package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcessChart.d.ts +0 -2
  23. package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcessChart.js +1 -1
  24. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.d.ts +8 -3
  25. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
  26. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
  27. package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
  28. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.d.ts +8 -3
  29. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  30. package/es/components/fabric-chart/src/hooks/useScaleColumn.d.ts +1 -1
  31. package/es/components/fabric-chart/src/hooks/useScaleColumn.js +1 -1
  32. package/es/components/fabric-chart/src/interface.d.ts +11 -1
  33. package/es/components/field-set/src/FieldColor.vue.d.ts +26 -0
  34. package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
  35. package/es/components/field-set/src/components/condition.vue.d.ts +13 -0
  36. package/es/components/field-set/src/components/edit-dialog.vue.d.ts +26 -0
  37. package/es/components/field-set/src/components/edit-filter.vue.d.ts +13 -0
  38. package/es/components/form-config/index.d.ts +6 -3
  39. package/es/components/form-config/src/FormConfig.vue.d.ts +6 -3
  40. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +6 -3
  41. package/es/components/form-config/src/components/FormConfigEdit.vue2.js +1 -1
  42. package/es/components/form-render/src/components/renderer/combination/tableCombination.js +1 -1
  43. package/es/components/form-render/src/components/renderer/formItem.js +1 -1
  44. package/es/components/form-render/src/components/tooltipMessage.vue2.js +1 -1
  45. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  46. package/es/components/form-render/src/hooks/useFormValidator.js +1 -1
  47. package/es/components/form-render/src/types/fieldItem.d.ts +3 -1
  48. package/es/components/form-render/src/types/index.d.ts +1 -1
  49. package/es/components/form-render/src/utils/business.js +1 -1
  50. package/es/components/form-render/src/utils/schema.d.ts +1 -1
  51. package/es/components/form-render/src/utils/schema.js +1 -1
  52. package/es/components/iho-chat/index.d.ts +236 -74
  53. package/es/components/iho-chat/src/Index.vue.d.ts +236 -74
  54. package/es/components/iho-chat/src/Index.vue2.js +1 -1
  55. package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +34 -13
  56. package/es/components/iho-chat/src/components/ChatAdd.vue2.js +1 -1
  57. package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +39 -14
  58. package/es/components/iho-chat/src/components/ChatFooter.vue2.js +1 -1
  59. package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +48 -14
  60. package/es/components/iho-chat/src/components/ChatHeader.vue2.js +1 -1
  61. package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +24 -4
  62. package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
  63. package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +13 -0
  64. package/es/components/iho-chat/src/components/ChatRecord.vue2.js +1 -1
  65. package/es/components/iho-chat/src/components/ChatSearch.vue.d.ts +3 -10
  66. package/es/components/iho-chat/src/components/ChatSearch.vue2.js +1 -1
  67. package/es/components/iho-chat/src/components/ContextMenu.d.ts +15 -2
  68. package/es/components/iho-chat/src/components/ContextMenu.js +1 -1
  69. package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +61 -24
  70. package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +1 -1
  71. package/es/components/iho-chat/src/components/Video.vue.d.ts +14 -2
  72. package/es/components/iho-chat/src/components/Video.vue2.js +1 -1
  73. package/es/components/iho-chat/src/hooks/useScrollLoading.d.ts +1 -1
  74. package/es/components/iho-chat/src/hooks/useScrollLoading.js +1 -1
  75. package/es/components/iho-chat/src/hooks/useSearchUserList.d.ts +11 -0
  76. package/es/components/iho-chat/src/hooks/useSearchUserList.js +1 -0
  77. package/es/components/iho-chat/src/hooks/useState.js +1 -1
  78. package/es/components/iho-chat/src/hooks/useVideo.d.ts +11 -0
  79. package/es/components/iho-chat/src/hooks/useVideo.js +1 -1
  80. package/es/components/iho-chat/src/types/index.d.ts +0 -1
  81. package/es/components/iho-chat/src/utils/index.js +1 -1
  82. package/es/components/iho-chat/style/index.css +1 -1
  83. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +13 -0
  84. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +13 -0
  85. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +20 -2
  86. package/es/components/index.css +1 -1
  87. package/es/components/shortcut-setter/index.d.ts +2 -1
  88. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +2 -1
  89. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +13 -0
  90. package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +13 -0
  91. package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +13 -0
  92. package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +13 -0
  93. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +47 -5
  94. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +13 -0
  95. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +13 -0
  96. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.d.ts +37 -19
  97. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue2.js +1 -1
  98. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +47 -5
  99. package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +1 -1
  100. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +47 -5
  101. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +13 -0
  102. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +13 -0
  103. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +13 -0
  104. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +13 -0
  105. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.d.ts +33 -18
  106. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +1 -1
  107. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.d.ts +13 -0
  108. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +1 -1
  109. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +69 -4
  110. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +69 -4
  111. package/es/components/table-filter/src/tool/transformData.js +1 -1
  112. package/es/components/table-filter/src/types/index.d.ts +1 -0
  113. package/es/components/time-line/index.d.ts +4 -4
  114. package/es/components/time-line/src/TimeLine.vue.d.ts +1 -1
  115. package/es/components/time-line/src/TimeLine.vue2.js +1 -1
  116. package/es/components/time-picker/index.d.ts +20 -2
  117. package/es/components/time-picker/src/TimePicker.vue.d.ts +21 -2
  118. package/es/components/time-picker/src/TimePicker.vue2.js +1 -1
  119. package/es/shared/package.json.js +1 -1
  120. package/es/shared/utils/business.js +1 -1
  121. package/package.json +2 -2
@@ -1,12 +1,30 @@
1
1
  import { SFCWithInstall } from '../../shared/types';
2
- declare const TimePicker: SFCWithInstall<import("vue").DefineComponent<{}, {
2
+ declare const TimePicker: SFCWithInstall<import("vue").DefineComponent<{
3
+ to: {
4
+ type: import("vue").PropType<string | false | HTMLElement>;
5
+ default: string;
6
+ };
7
+ }, {
3
8
  attrs: {
4
9
  [x: string]: unknown;
5
10
  };
11
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
12
+ to: {
13
+ type: import("vue").PropType<string | false | HTMLElement>;
14
+ default: string;
15
+ };
16
+ }>> & {}>>;
6
17
  timePickerRef: import("vue").Ref<import("../../shared/types").AnyObject | null>;
7
18
  formatRef: import("vue").ComputedRef<string>;
8
19
  focus: () => any;
9
20
  blur: () => any;
10
21
  NTimePicker: any;
11
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
22
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
23
+ to: {
24
+ type: import("vue").PropType<string | false | HTMLElement>;
25
+ default: string;
26
+ };
27
+ }>>, {
28
+ to: string | false | HTMLElement;
29
+ }>>;
12
30
  export default TimePicker;
@@ -1,12 +1,31 @@
1
+ import { PropType } from 'vue';
1
2
  import { AnyObject } from '../../../shared/types';
2
- declare const _default: import("vue").DefineComponent<{}, {
3
+ declare const _default: import("vue").DefineComponent<{
4
+ to: {
5
+ type: PropType<string | false | HTMLElement>;
6
+ default: string;
7
+ };
8
+ }, {
3
9
  attrs: {
4
10
  [x: string]: unknown;
5
11
  };
12
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
13
+ to: {
14
+ type: PropType<string | false | HTMLElement>;
15
+ default: string;
16
+ };
17
+ }>> & {}>>;
6
18
  timePickerRef: import("vue").Ref<AnyObject | null>;
7
19
  formatRef: import("vue").ComputedRef<string>;
8
20
  focus: () => any;
9
21
  blur: () => any;
10
22
  NTimePicker: any;
11
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
23
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
24
+ to: {
25
+ type: PropType<string | false | HTMLElement>;
26
+ default: string;
27
+ };
28
+ }>>, {
29
+ to: string | false | HTMLElement;
30
+ }>;
12
31
  export default _default;
@@ -1 +1 @@
1
- import{defineComponent as e,useAttrs as o,ref as r,computed as s,openBlock as t,createBlock as i,unref as m,createSlots as a,renderList as u,withCtx as f,renderSlot as n}from"vue";import{NTimePicker as p}from"naive-ui";import"../../../shared/utils/index.js";import{useDateTime as c}from"../../../shared/hooks/useDateTime.js";import"lodash-es";import"@vue/shared";import"@vueuse/shared";import"../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";var l=e({__name:"TimePicker",setup(e,{expose:l}){const h=o(),d=r(null),k=s((()=>Reflect.get(h,"format")?h.format:"HH:mm:ss")),{focus:v,blur:_}=c(d,{formatRef:k,attrs:h});return l({$timePicker:d,focus:v,blur:_}),(e,o)=>(t(),i(m(p),{ref_key:"timePickerRef",ref:d},a({_:2},[u(e.$slots,((o,r)=>({name:r,fn:f((()=>[n(e.$slots,r)]))})))]),1536))}});export{l as default};
1
+ import{defineComponent as e,useAttrs as o,ref as t,computed as r,openBlock as s,createBlock as i,unref as m,createSlots as a,renderList as u,withCtx as f,renderSlot as n}from"vue";import{NTimePicker as p}from"naive-ui";import"../../../shared/utils/index.js";import{useDateTime as l}from"../../../shared/hooks/useDateTime.js";import"lodash-es";import"@vue/shared";import"@vueuse/shared";import"../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";var c=e({__name:"TimePicker",props:{to:{type:[Object,String,Boolean],default:"body"}},setup(e,{expose:c}){const d=o(),h=t(null),k=r((()=>Reflect.get(d,"format")?d.format:"HH:mm:ss")),{focus:v,blur:b}=l(h,{formatRef:k,attrs:d});return c({$timePicker:h,focus:v,blur:b}),(o,t)=>(s(),i(m(p),{ref_key:"timePickerRef",ref:h,to:e.to},a({_:2},[u(o.$slots,((e,t)=>({name:t,fn:f((()=>[n(o.$slots,t)]))})))]),1032,["to"]))}});export{c as default};
@@ -1 +1 @@
1
- var e="@cnhis-design-vue/shared",i="3.2.7-beta.2",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.7-beta.2",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.7-beta.21",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.7-beta.21",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{Path as e}from"@formily/path";import{isArray as n,isString as t,includes as r,negate as a,isNumber as i,gt as o,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),!(!i(n)||Number.isNaN(n)||!i(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(o),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/gi,"||").replace(/AND/gi,"&&").replace(/[a-z]/gi,"").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 b(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 A=Object.freeze({SET_VALUE:function(e,{getter:n,setter:r}){if(!p(e))return;const{results:a=[],params:i=[],compareMap:o={}}=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}i.every((e=>e&&e.p_name&&E(n(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 I(e){return A[e]||s}function L(e,r,a){function o(e){return n(e)&&!!e.length}function l(e,n=!0){e.forEach((e=>{if(!e.operationalResult||!n&&null!=r(e.operationalResult))return;const o=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}`)(o);t(u)&&(u=+u),u=i(u)?isNaN(u)?"":u.toFixed(+e.operationalPrecision):"",a(e.operationalResult,u)}))}return{operationalFormHandler:function(n){if(!o(d(e)))return;const t=d(e).filter((e=>e.operationFormParam.includes(`table.${n}`)));t.length&&l(t)},triggerAllOperationalFormHandler:function(){o(d(e))&&l(d(e),!1)}}}function V(e,t,r){function a(e){return n(e)&&!!e.length}function o(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:i,precision:o="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(i){case"DAY":c=t.toFixed(+o);break;case"HOUR":c=n.toFixed(+o);break;case"MIN":c=e.toFixed(+o);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(!i(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&&o(t)},triggerAllDateOperationalFormHandler:function(){a(d(e))&&o(d(e),!1)}}}export{I as getBindEventSettingTrigger,V as getDateOperationalFormHandler,L as getOperationalFormHandler,h as isConditionsMatchSqlExpression,E as isMatchLowCodeCondition,v as isMatchLowCodeConditionsWithSqlExpression,b as isMatchNewLowCodeConditionsWithSqlExpression};
1
+ import{Path as e}from"@formily/path";import{isArray as n,isString as t,includes as r,negate as a,isNumber as i,gt as o,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.trim()&&(n=+n),t(r)&&r.trim()&&(r=+r),!(!i(n)||Number.isNaN(n)||!i(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(o),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/gi,"||").replace(/AND/gi,"&&").replace(/[a-z]/gi,"").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 b(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 A=Object.freeze({SET_VALUE:function(e,{getter:n,setter:r}){if(!p(e))return;const{results:a=[],params:i=[],compareMap:o={}}=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}i.every((e=>e&&e.p_name&&E(n(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 I(e){return A[e]||s}function L(e,r,a){function o(e){return n(e)&&!!e.length}function l(e,n=!0){e.forEach((e=>{if(!e.operationalResult||!n&&null!=r(e.operationalResult))return;const o=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}`)(o);t(u)&&(u=+u),u=i(u)?isNaN(u)?"":u.toFixed(+e.operationalPrecision):"",a(e.operationalResult,u)}))}return{operationalFormHandler:function(n){if(!o(d(e)))return;const t=d(e).filter((e=>e.operationFormParam.includes(`table.${n}`)));t.length&&l(t)},triggerAllOperationalFormHandler:function(){o(d(e))&&l(d(e),!1)}}}function V(e,t,r){function a(e){return n(e)&&!!e.length}function o(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:i,precision:o="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(i){case"DAY":c=t.toFixed(+o);break;case"HOUR":c=n.toFixed(+o);break;case"MIN":c=e.toFixed(+o);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(!i(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&&o(t)},triggerAllDateOperationalFormHandler:function(){a(d(e))&&o(d(e),!1)}}}export{I as getBindEventSettingTrigger,V as getDateOperationalFormHandler,L as getOperationalFormHandler,h as isConditionsMatchSqlExpression,E as isMatchLowCodeCondition,v as isMatchLowCodeConditionsWithSqlExpression,b as isMatchNewLowCodeConditionsWithSqlExpression};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "3.2.7-beta.2",
3
+ "version": "3.2.7-beta.21",
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": "f5fdb0841d42be319fd99cb2141e7dc2947170dd"
75
+ "gitHead": "d129857b420f66de76724d3cae3a6f039f6b9d96"
76
76
  }