cnhis-design-vue 3.2.7-beta.6 → 3.2.7-beta.7
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +87 -87
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +0 -3
- package/es/components/field-set/src/FieldColor.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldFilter.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldSet.vue.d.ts +2 -2
- package/es/components/field-set/src/components/Row.vue.d.ts +1 -1
- package/es/components/form-config/index.d.ts +3 -3
- package/es/components/form-config/src/FormConfig.vue.d.ts +3 -3
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +3 -3
- package/es/components/form-render/src/hooks/useFormValidator.js +1 -1
- package/es/components/form-render/src/types/fieldItem.d.ts +2 -1
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +1 -1
- package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
- package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
- package/es/components/shortcut-setter/index.d.ts +1 -1
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +1 -1
- package/es/env.d.ts +25 -25
- package/es/shared/assets/img/defaultCover/10review_successful.png.js +1 -1
- package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
- package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -1
- package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
- package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
- package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
- package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
- package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
- package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
- package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
- package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
- package/es/shared/assets/img/failure.png.js +1 -1
- package/es/shared/assets/img/no-permission.png.js +1 -1
- package/es/shared/assets/img/nodata.png.js +1 -1
- package/es/shared/assets/img/notfound.png.js +1 -1
- package/es/shared/assets/img/qr.png.js +1 -1
- package/es/shared/assets/img/success.png.js +1 -1
- package/es/shared/assets/img/table_style_2.png.js +1 -1
- package/es/shared/assets/img/video.png.js +1 -1
- package/es/shared/assets/img/video_default_cover.png.js +1 -1
- package/es/shared/assets/img/xb_big.png.js +1 -1
- package/es/shared/assets/img/xb_small.png.js +1 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
- package/es/shared/package.json.js +1 -1
- package/es/shared/utils/business.js +1 -1
- package/es/shared/utils/fabricjs/index.d.ts +6823 -0
- package/es/shared/utils/tapable/index.d.ts +139 -0
- package/package.json +2 -2
@@ -1 +1 @@
|
|
1
|
-
var A="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE0AAABNBAMAAAARJ/SDAAAABGdBTUEAALGPC/
|
1
|
+
var A="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE0AAABNBAMAAAARJ/SDAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAkUExURdTU1M3NzaKgoNLS0svLy/7+/q2srPTy8r26uuXk5IWBgWBbXJSY7MEAAAAFdFJOU/4B+61hFV6AswAABF5JREFUSMd9lk1v20YQhjewY5M5ybB/QMAWQqOT3PSSm2T74lsvmzVvgYCyTHoRXLBb5kQYMM34REBWafoUGAiKUJciR/HPdWb2Q/xQPCaEJfn4nd3Z4c6wg7adnY4Z23l9Nm0/HrDW7dFrt2SMuWW588sT3ClRZG65M/0eN7EUkfl0OzfOWdvy423cpIsBOO1zh32MsUWPO3LNtFhOl7rZ7XJjDXXtuM0przld2zwb7g37jrnHTW6QN5wmGZm++7PJNeQya01BxdHs8g6W6WeLDWflnLQrpwWJO2pgYZjCD2CpDdSu4Qbag5OmQUoWBmn2zu6e4YzbNAgQCfEXfpKGY+SOdGwdIMAQDEA4DI3jO8UNdOiyNGhbYoKgOO3WCbtctnGM3CbAbTC0S3mGnJ6egzGbeTOyIJgNMTja8x1yenqIhcnVUJHeT5nm1ASBOzduw9CNBICeN/SSpbhP1aaAiDsF7o11u885/xWwmfcORvw+3OQCcHq1WfoJX/JL1Iu4Ak2snw0YLENPT730gXvF1dBO8G7ADk0+3cAbCeyVN7qGkURBdEy51eAA8cuC8wdvtOSiLHGyZiHATfRy33OtdznylmrEuc3CCTvXy7jm2v56fIzM+D7VCyYuRw40RIyTeqs4CVPgF3ohwJnwAVZICfQFcbFE0A8TFeix5jKIbBw7bgx6FXC+ZEkccWECMzbJcgNyV9V6f6n8Fv9Uq1cgaHfYcNfc//vTH6v/Cn5ZVUtRvHxRrSE0TrY5AGg7nnP/Y7JafSv4A3Lzr7d1fRNBpFtyDkRZPlR1vSbu2p+v67r+PYIFtznIgfihJu62qn6znB+2DrsEN+0jvPom+aiqvog5jGtMoL3WQiBsEGW3dN4v/Sr58C8vUigRGPWYOB0/F58I3CgRXXyN9z5zfMBp++4b3D4+iaSUwL4tYmdIlBRwK3zNYR4UEHkBmIwinsO2zOAeb+H/hMxtHiDHpTJeSOCe6/9DcK64ieI0FgnHGT1CQpt7Lucq/zCfC+MH9F7U9apaWi6S8SbvgYsM59/W65d2GkLpLeh7Y4U0L0B4/iGE3BbWb6m+twMVF0ETxxjCOiifSR385Or7xfPAxXWhUajjfYpxBJOLIooLnQfnyNkvp2NCxrk+X/AUL8hjD4I/mh4z5x8Iiq1yIrbnHx1ExXbPkqKnztMDlTG4tx2DmJKcPp9xgqzsgxCpuGyc93RAu0UXRDWSM/VDnaguKIoGiWEu82Y9Uo4JxC2J8EIrSl2oOvXSLYtCWotj0x3t9upvWcayICYuy7JXf22P4ySAKmP2ZFn0+gMnxWKVJI6DFSzs9wdasFMHw0YD0+xfnKAJplRXO/0LCXbLKgkuev2VE/QsMXLNfm2vz4X9fu3gMN3C7WzpJ0+C4TCYBUNVqGl4Nd3Wn54EHmJ4KXY23d7vngQzb4iGNd1rYt3+GbxB9cWSHgQ/TJ/ox38GEkSDwHuqH0fyFMS8H886jwf/A5lgp0GtGiGIAAAAAElFTkSuQmCC";export{A as default};
|
@@ -1 +1 @@
|
|
1
|
-
var A="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABABAMAAABYR2ztAAAABGdBTUEAALGPC/
|
1
|
+
var A="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABABAMAAABYR2ztAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAhUExURZaVlaGhobu6uaGhoZiYmP38/PDv78nJydnX16elpWFcXXsIKpUAAAAFdFJOU/4B/m60BfvgjgAAA2hJREFUSMdtljtv2zAQgBkncCxNMewfUKhoZW1R0aVbghYougYg42xFALHMZmioqE5BAEv0JqhBIm1Blxb+lb0jqadziGxS9/leJI8h854sPl4Q8uVz2H9H+mqHgDik6CMdsLgoiBXnJDwEFqTVo5VwDCzISMIRcDEGTobAeTEGnOM+sOicj52QAwdFYa09dsCyS7D0/MQLzPyyBb61aj/RknYmSC8CxwOdn8RJ3IsCgXOr930v9mPf9xvg2AKNHtRe7MVx7DUxGcCGWHoeqPHP9wL7m0sNGA8T0BhBpGh9kMaDbAGUhkDA5DBRqg/ItMmDzM/0aKVUHgSBV3pl4HkrlRsTRwDoEBwpcyC8AMVLlFKpDYKYMoIHGdEfdVmW9SqiIlcPtpjEhFApFVFK7+qgrOCbCqmMj5As9GCVZ/ie1XWw1QOl3mjXIVmaJBXVktalGazlxqwo0Uk4CgwwHoGPZ0o5RxM7kwb5pGPMIQIGz00NIXA0YaP8TXSWp9YDvXIqO1rnJk+id9szeOACfnntPIEpHK2V2dwGqLYYdxaBhRnoleIwLwxgCr2lInX/cHpFKsoe3BdgTZ5WsIor130f3ZAZFf4vdwbApndIFGW3zn4/jb6TUyocd/8Xyt0DJhkAewTuyYQKGIG39a4DqqgBNsSJhLvf/4M3phAEFxPLz6VKM0oSEvFYSQiSiqJJ08GFxIexim+2DEf4YBCPCMw0wKOIXmcifYeTCIk7bQFKPY1wgSLO4FPEU5wgTde61LBYTxGIfpnnQQ2lBBYmjOvFguV+gsJyzhint+7Ly5SiHteeF7jcSw3gO3DBNntICYY40cAlbrkKaIZu4F3sUx0kTNAFbDnYtDOwYANnYmuSAGtM6E0L297hnI4EE+e3etvjwfmpsxoKxHxvDs4Z+jgwATXBUh/Zw5sdEpzv7OHF43+KZRoY4NoAaRvIig9soH7TNpClPt28h8BQ7LoWNCctwTkzXyLtNTHbIVZZxq1kKhi0QdtIoUcIwTMhmvbSNlLbin0/kVLleRLHQXdldM28hDYcY5/FZl0MmzleB07SSIxPe+e0F8pzMpA3wwsFrqShPkmHV9J8/nUEJI/ja1EO9Xl4cLHKvFPLPHzlavZVo1dx+Orl/kEqKbFWb1+93PX9j1Ua/nvwH1oZqoXVsU68AAAAAElFTkSuQmCC";export{A as default};
|
@@ -0,0 +1,86 @@
|
|
1
|
+
declare const draggableComponent: import('vue').DefineComponent<
|
2
|
+
{
|
3
|
+
list: {
|
4
|
+
type: ArrayConstructor;
|
5
|
+
required: boolean;
|
6
|
+
default: any;
|
7
|
+
};
|
8
|
+
modelValue: {
|
9
|
+
type: ArrayConstructor;
|
10
|
+
required: boolean;
|
11
|
+
default: any;
|
12
|
+
};
|
13
|
+
itemKey: {
|
14
|
+
type: (FunctionConstructor | StringConstructor)[];
|
15
|
+
required: boolean;
|
16
|
+
};
|
17
|
+
clone: {
|
18
|
+
type: FunctionConstructor;
|
19
|
+
default: (original: any) => any;
|
20
|
+
};
|
21
|
+
tag: {
|
22
|
+
type: StringConstructor;
|
23
|
+
default: string;
|
24
|
+
};
|
25
|
+
move: {
|
26
|
+
type: FunctionConstructor;
|
27
|
+
default: any;
|
28
|
+
};
|
29
|
+
componentData: {
|
30
|
+
type: ObjectConstructor;
|
31
|
+
required: boolean;
|
32
|
+
default: any;
|
33
|
+
};
|
34
|
+
},
|
35
|
+
unknown,
|
36
|
+
{
|
37
|
+
error: boolean;
|
38
|
+
},
|
39
|
+
{
|
40
|
+
realList(): any;
|
41
|
+
getKey(): any;
|
42
|
+
},
|
43
|
+
{
|
44
|
+
getUnderlyingVm(domElement: any): any;
|
45
|
+
getUnderlyingPotencialDraggableComponent(htmElement: any): any;
|
46
|
+
emitChanges(evt: any): void;
|
47
|
+
alterList(onList: any): void;
|
48
|
+
spliceList(): void;
|
49
|
+
updatePosition(oldIndex: any, newIndex: any): void;
|
50
|
+
getRelatedContextFromMoveEvent({ to, related }: { to: any; related: any }): any;
|
51
|
+
getVmIndexFromDomIndex(domIndex: any): any;
|
52
|
+
onDragStart(evt: any): void;
|
53
|
+
onDragAdd(evt: any): void;
|
54
|
+
onDragRemove(evt: any): void;
|
55
|
+
onDragUpdate(evt: any): void;
|
56
|
+
computeFutureIndex(relatedContext: any, evt: any): any;
|
57
|
+
onDragMove(evt: any, originalEvent: any): any;
|
58
|
+
onDragEnd(): void;
|
59
|
+
},
|
60
|
+
import('vue').ComponentOptionsMixin,
|
61
|
+
import('vue').ComponentOptionsMixin,
|
62
|
+
any[],
|
63
|
+
any,
|
64
|
+
import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps,
|
65
|
+
Readonly<
|
66
|
+
{
|
67
|
+
move: Function;
|
68
|
+
tag: string;
|
69
|
+
clone: Function;
|
70
|
+
list: unknown[];
|
71
|
+
modelValue: unknown[];
|
72
|
+
componentData: Record<string, any>;
|
73
|
+
} & {
|
74
|
+
itemKey?: string | Function;
|
75
|
+
}
|
76
|
+
>,
|
77
|
+
{
|
78
|
+
move: Function;
|
79
|
+
tag: string;
|
80
|
+
clone: Function;
|
81
|
+
list: unknown[];
|
82
|
+
modelValue: unknown[];
|
83
|
+
componentData: Record<string, any>;
|
84
|
+
}
|
85
|
+
>;
|
86
|
+
export default draggableComponent;
|
@@ -1 +1 @@
|
|
1
|
-
var e="@cnhis-design-vue/shared",i="3.2.7-beta.
|
1
|
+
var e="@cnhis-design-vue/shared",i="3.2.7-beta.7",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.7",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};
|