cnhis-design-vue 3.1.54-beta.2 → 3.1.54-beta.20
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.
- package/README.md +87 -87
- package/es/components/body-select/src/hooks/renderCanvas.js +1 -1
- package/es/components/body-select/src/index.vue2.js +1 -1
- package/es/components/button-print/index.d.ts +13 -0
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +16 -1
- package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
- package/es/components/callback/src/components/render/popupMaps.d.ts +54 -14
- package/es/components/chat-sdk/index.d.ts +2 -0
- package/es/components/chat-sdk/index.js +1 -0
- package/es/components/chat-sdk/src/chatSDK.d.ts +7 -0
- package/es/components/chat-sdk/src/chatSDK.js +1 -0
- package/es/components/expand-field/src/components/form.vue2.js +1 -1
- package/es/components/fabric-chart/index.d.ts +1 -0
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +1 -0
- package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
- package/es/components/fabric-chart/src/constants/index.d.ts +1 -0
- package/es/components/fabric-chart/src/constants/index.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/hooks/useDetailEvent.d.ts +18 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/hooks/useDetailEvent.js +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.js +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.d.ts +5 -0
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useMeasureInstrument.js +1 -1
- package/es/components/fabric-chart/src/hooks/index.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useLeft.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useOther.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/useCumputedPoint.d.ts +10 -4
- package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -1
- package/es/components/form-config/index.d.ts +90 -66
- package/es/components/form-config/src/FormConfig.vue.d.ts +91 -67
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +26 -14
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +38 -26
- package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +12 -12
- package/es/components/form-config/src/constants/index.d.ts +4 -4
- package/es/components/form-config/src/types/index.d.ts +3 -3
- package/es/components/form-render/index.d.ts +26 -14
- package/es/components/form-render/index.js +1 -1
- package/es/components/form-render/src/FormRender.vue.d.ts +27 -15
- package/es/components/form-render/src/FormRender.vue2.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +26 -14
- package/es/components/form-render/src/components/renderer/date.js +1 -1
- package/es/components/form-render/src/components/renderer/formItem.js +1 -1
- package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
- package/es/components/form-render/src/components/renderer/select.js +1 -1
- package/es/components/form-render/src/hooks/index.d.ts +20 -9
- package/es/components/form-render/src/hooks/index.js +1 -1
- package/es/components/form-render/src/hooks/useBusinessBinding.d.ts +1 -1
- package/es/components/form-render/src/hooks/useBusinessBinding.js +1 -1
- package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +4 -4
- package/es/components/form-render/src/hooks/useFieldVisitor.js +1 -1
- package/es/components/form-render/src/hooks/useFormEvent.d.ts +12 -3
- package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
- package/es/components/form-render/src/hooks/useFormItemDeps.d.ts +1 -1
- package/es/components/form-render/src/hooks/useFormItemDeps.js +1 -1
- package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +2 -2
- package/es/components/form-render/src/hooks/useLowCodeReactions.d.ts +2 -2
- package/es/components/form-render/src/hooks/useOperationalForm.d.ts +7 -5
- package/es/components/form-render/src/hooks/useOperationalForm.js +1 -1
- package/es/components/form-render/src/hooks/useWordbookSetting.d.ts +13 -4
- package/es/components/form-render/src/hooks/useWordbookSetting.js +1 -1
- package/es/components/form-render/src/types/fieldItem.d.ts +3 -3
- package/es/components/form-render/src/types/index.d.ts +6 -6
- package/es/components/iho-table/index.d.ts +28 -0
- package/es/components/iho-table/src/IhoTable.vue.d.ts +28 -0
- package/es/components/iho-table/src/plugins/bindEventSettingPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/operationalFormPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +8 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +7 -5
- package/es/components/index.d.ts +1 -0
- package/es/components/index.js +1 -1
- package/es/components/info-header/index.d.ts +62 -38
- package/es/components/info-header/src/InfoHeader.vue.d.ts +62 -38
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +2 -2
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +2 -2
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +28 -16
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +26 -14
- 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/select-person/src/SearchMultiple.vue.d.ts +6 -0
- package/es/components/shortcut-setter/index.d.ts +28 -16
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +28 -16
- package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +0 -3
- package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +1 -1
- package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
- package/es/env.d.ts +25 -25
- 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/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/hooks/useLevelSearchCascader.d.ts +2 -2
- package/es/shared/package.json.js +1 -1
- package/es/shared/types/business.d.ts +61 -53
- package/es/shared/utils/business.d.ts +11 -7
- package/es/shared/utils/business.js +1 -1
- package/es/shared/utils/index.js +1 -1
- package/package.json +2 -2
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/constants/index.d.ts +0 -2
- package/es/components/fabric-chart/src/hooks/electrocardiogram/constants/index.js +0 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
- package/es/shared/utils/fabricjs/index.d.ts +0 -6823
- package/es/shared/utils/tapable/index.d.ts +0 -139
|
@@ -1,27 +1,4 @@
|
|
|
1
1
|
import { AnyObject } from '../../../es/shared/types/index';
|
|
2
|
-
export declare type LOW_CODE_VALUE_RELATION = 'EQ' | 'NEQ' | 'CL' | 'NC' | 'NULL' | 'NOT_NULL' | 'BIG' | 'BIGEQ' | 'LESS' | 'LESSEQ';
|
|
3
|
-
export declare type LOW_CODE_EVENT_TYPE = 'SET_VALUE' | 'REPEAT_VALIDATE' | 'IS_SHOW_FIELD' | 'SQLSAVE' | 'API';
|
|
4
|
-
export declare type BindEventSettingItem = {
|
|
5
|
-
event_type: LOW_CODE_EVENT_TYPE;
|
|
6
|
-
event_field?: string;
|
|
7
|
-
params?: {
|
|
8
|
-
p_value?: string;
|
|
9
|
-
p_name: string;
|
|
10
|
-
p_select: LOW_CODE_VALUE_RELATION;
|
|
11
|
-
}[];
|
|
12
|
-
results?: {
|
|
13
|
-
p_value: string;
|
|
14
|
-
p_name: string;
|
|
15
|
-
}[];
|
|
16
|
-
compareMap?: Partial<Record<LOW_CODE_VALUE_RELATION, (v1: any, v2: any) => boolean>>;
|
|
17
|
-
[K: string]: unknown;
|
|
18
|
-
};
|
|
19
|
-
export declare type FormOperationalConfig = {
|
|
20
|
-
operationFormParam: string[];
|
|
21
|
-
operationalRule: string;
|
|
22
|
-
operationalPrecision: string;
|
|
23
|
-
operationalResult: string;
|
|
24
|
-
};
|
|
25
2
|
export declare type IFlexibleType = {
|
|
26
3
|
el: HTMLBaseElement;
|
|
27
4
|
mode: string;
|
|
@@ -29,14 +6,68 @@ export declare type IFlexibleType = {
|
|
|
29
6
|
onEnd: (result: any) => void;
|
|
30
7
|
onStart?: (result: any) => void;
|
|
31
8
|
};
|
|
32
|
-
export declare namespace
|
|
33
|
-
type
|
|
34
|
-
|
|
9
|
+
export declare namespace LowCodeTypes {
|
|
10
|
+
type VALUE_RELATION = 'EQ' | 'NEQ' | 'CL' | 'NC' | 'NULL' | 'NOT_NULL' | 'BIG' | 'BIGEQ' | 'LESS' | 'LESSEQ';
|
|
11
|
+
type EVENT_TYPE = 'SET_VALUE' | 'REPEAT_VALIDATE' | 'IS_SHOW_FIELD' | 'SQLSAVE' | 'API';
|
|
12
|
+
type BindEventSettingItem = {
|
|
13
|
+
event_type: EVENT_TYPE;
|
|
14
|
+
event_field?: string;
|
|
15
|
+
params?: {
|
|
16
|
+
p_value?: string;
|
|
17
|
+
p_name: string;
|
|
18
|
+
p_select: VALUE_RELATION;
|
|
19
|
+
}[];
|
|
20
|
+
results?: {
|
|
21
|
+
p_value: string;
|
|
22
|
+
p_name: string;
|
|
23
|
+
}[];
|
|
24
|
+
compareMap?: Partial<Record<VALUE_RELATION, (v1: any, v2: any) => boolean>>;
|
|
25
|
+
[K: string]: unknown;
|
|
26
|
+
};
|
|
27
|
+
type wordbook = Partial<{
|
|
28
|
+
level_num: number;
|
|
29
|
+
id: string;
|
|
30
|
+
name: string;
|
|
31
|
+
render_key: string[];
|
|
32
|
+
search_key: string[];
|
|
33
|
+
value_key: string;
|
|
34
|
+
queryParams: string[];
|
|
35
|
+
primary_key: string;
|
|
36
|
+
type: string;
|
|
37
|
+
level_key: string;
|
|
38
|
+
link_key: string;
|
|
39
|
+
link_key_split: string;
|
|
40
|
+
show_key: string[] | string;
|
|
41
|
+
conObj: AnyObject[];
|
|
42
|
+
conObjFirstLevel: AnyObject[];
|
|
43
|
+
setting: Partial<{
|
|
44
|
+
cascading: {
|
|
45
|
+
'form.name': string;
|
|
46
|
+
value: string;
|
|
47
|
+
}[];
|
|
48
|
+
}>;
|
|
49
|
+
}>;
|
|
50
|
+
type operationalConfig = {
|
|
51
|
+
operationFormParam: string[];
|
|
52
|
+
operationalRule: string;
|
|
53
|
+
operationalPrecision: string;
|
|
54
|
+
operationalResult: string;
|
|
55
|
+
};
|
|
56
|
+
type dateOperationalConfig = {
|
|
57
|
+
scene: 'DIFF' | 'CALC';
|
|
58
|
+
precision: string;
|
|
59
|
+
diffValUnit: 'DAY' | 'MIN' | 'HOUR' | 'DHM';
|
|
60
|
+
diffValField: string;
|
|
61
|
+
startDateField: string;
|
|
62
|
+
endDateField: string;
|
|
63
|
+
};
|
|
64
|
+
type reactionsConObj = {
|
|
65
|
+
con: VALUE_RELATION;
|
|
35
66
|
field_key: string;
|
|
36
67
|
value: unknown;
|
|
37
68
|
};
|
|
38
|
-
type
|
|
39
|
-
conObj:
|
|
69
|
+
type reactionsConfig = {
|
|
70
|
+
conObj: reactionsConObj[];
|
|
40
71
|
} & Partial<{
|
|
41
72
|
compareMap: BindEventSettingItem['compareMap'];
|
|
42
73
|
sqlExpression: string;
|
|
@@ -46,30 +77,7 @@ export declare namespace FormLowCodeReactions {
|
|
|
46
77
|
notRequiredField: string[];
|
|
47
78
|
enabledField: string[];
|
|
48
79
|
disabledField: string[];
|
|
49
|
-
__oppositeBindField:
|
|
50
|
-
__oppositeTargetField:
|
|
80
|
+
__oppositeBindField: reactionsConfig;
|
|
81
|
+
__oppositeTargetField: reactionsConfig;
|
|
51
82
|
}>;
|
|
52
83
|
}
|
|
53
|
-
export declare type FormWordbook = Partial<{
|
|
54
|
-
level_num: number;
|
|
55
|
-
id: string;
|
|
56
|
-
name: string;
|
|
57
|
-
render_key: string[];
|
|
58
|
-
search_key: string[];
|
|
59
|
-
value_key: string;
|
|
60
|
-
queryParams: string[];
|
|
61
|
-
primary_key: string;
|
|
62
|
-
type: string;
|
|
63
|
-
level_key: string;
|
|
64
|
-
link_key: string;
|
|
65
|
-
link_key_split: string;
|
|
66
|
-
show_key: string[] | string;
|
|
67
|
-
conObj: AnyObject[];
|
|
68
|
-
conObjFirstLevel: AnyObject[];
|
|
69
|
-
setting: Partial<{
|
|
70
|
-
cascading: {
|
|
71
|
-
'form.name': string;
|
|
72
|
-
value: string;
|
|
73
|
-
}[];
|
|
74
|
-
}>;
|
|
75
|
-
}>;
|
|
@@ -1,17 +1,21 @@
|
|
|
1
|
-
import { AnyObject,
|
|
1
|
+
import { AnyObject, LowCodeTypes } from '../../../es/shared/types';
|
|
2
2
|
import { MaybeRef } from '@vueuse/core';
|
|
3
3
|
export declare function isMatchLowCodeCondition(value: unknown, condition: {
|
|
4
|
-
con:
|
|
4
|
+
con: LowCodeTypes.VALUE_RELATION;
|
|
5
5
|
value: unknown;
|
|
6
|
-
}, overwriteCompareMap?: BindEventSettingItem['compareMap']): boolean;
|
|
7
|
-
export declare function isMatchLowCodeConditionsWithSqlExpression(formData: AnyObject, config:
|
|
8
|
-
declare function handleFieldTriggerSetValue(bindEventSetting: BindEventSettingItem, { getter, setter }: {
|
|
6
|
+
}, overwriteCompareMap?: LowCodeTypes.BindEventSettingItem['compareMap']): boolean;
|
|
7
|
+
export declare function isMatchLowCodeConditionsWithSqlExpression(formData: AnyObject, config: LowCodeTypes.reactionsConfig): any;
|
|
8
|
+
declare function handleFieldTriggerSetValue(bindEventSetting: LowCodeTypes.BindEventSettingItem, { getter, setter }: {
|
|
9
9
|
setter: (key: string, value: unknown) => void;
|
|
10
10
|
getter: (key: string) => unknown;
|
|
11
11
|
}): void;
|
|
12
|
-
export declare function getBindEventSettingTrigger(key:
|
|
13
|
-
export declare function getOperationalFormHandler(operationalForm: MaybeRef<
|
|
12
|
+
export declare function getBindEventSettingTrigger(key: LowCodeTypes.EVENT_TYPE): typeof handleFieldTriggerSetValue;
|
|
13
|
+
export declare function getOperationalFormHandler(operationalForm: MaybeRef<LowCodeTypes.operationalConfig[] | undefined>, getter: (field: string) => unknown, setter: (field: string, value: unknown) => void): {
|
|
14
14
|
operationalFormHandler: (field: string) => void;
|
|
15
15
|
triggerAllOperationalFormHandler: () => void;
|
|
16
16
|
};
|
|
17
|
+
export declare function getDateOperationalFormHandler(dateOperationalForm: MaybeRef<LowCodeTypes.dateOperationalConfig[] | undefined>, getter: (field: string) => unknown, setter: (field: string, value: unknown) => void): {
|
|
18
|
+
dateOperationalFormHandler: (field: string) => void;
|
|
19
|
+
triggerAllDateOperationalFormHandler: () => void;
|
|
20
|
+
};
|
|
17
21
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Path as e}from"@formily/path";import{isArray as
|
|
1
|
+
import{Path as e}from"@formily/path";import{isArray as n,isString as t,includes as r,negate as a,gt as o,gte as i,isNumber as l,lt as c,lte as f,noop as u,isObject as s}from"lodash-es";import{unref as d}from"vue";import{add as p,differenceInMilliseconds as m}from"date-fns";function F(e){return null==e||""==e}const E={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:F,NOT_NULL:a(F),BIG:o,BIGEQ:i,LESS:(e,n)=>!!(l(e)||t(e)&&e)&&c(e,n),LESSEQ:(e,n)=>!!(l(e)||t(e)&&e)&&f(e,n)};function D(e,n,t={}){return(t[n.con]||E[n.con]||(()=>!1))(e,`${n.value}`)}function g(r,a){if(!n(a.conObj))return!1;if(!a.sqlExpression||!t(a.sqlExpression))return a.conObj.every((n=>D(e.getIn(r,n.field_key),n,a.compareMap)));const o=a.conObj.map((n=>D(e.getIn(r,n.field_key),n,a.compareMap)));try{return new Function("return "+a.sqlExpression.replace(/OR/g,"||").replace(/AND/g,"&&").replace(/[a-zA-Z]/g,"").replace(/\d+/g,(e=>o[+e-1]?"true":"false")))()}catch(e){return console.error("表达式错误=>",a.sqlExpression),!1}}const h=Object.freeze({SET_VALUE:function(e,{getter:n,setter:r}){if(!s(e))return;const{results:a=[],params:o=[],compareMap:i={}}=e;if(!a.length)return;function l(e){var r;if(!t(e))return e;const a=e.trim().match(/^\$\{([a-zA-Z\d\s]+)}$/);return a?n(null==(r=a[1])?void 0:r.trim()):e}o.every((e=>e&&e.p_name&&D(n(e.p_name),{con:e.p_select,value:l(e.p_value)},i)))&&a.forEach((e=>r(e.p_name,l(e.p_value))))},REPEAT_VALIDATE:u,IS_SHOW_FIELD:u,SQLSAVE:u,API:u});function A(e){return h[e]||u}function N(e,r,a){function o(e){return n(e)&&!!e.length}function i(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)),{}),i=e.operationalRule.replace(/\${(.+?)}/g,"$1");let c=new Function("table",`return ${i}`)(o);t(c)&&(c=+c),c=l(c)?isNaN(c)?"":c.toFixed(+e.operationalPrecision):"",a(e.operationalResult,c)}))}return{operationalFormHandler:function(n){if(!o(d(e)))return;const t=d(e).filter((e=>e.operationFormParam.includes(`table.${n}`)));t.length&&i(t)},triggerAllOperationalFormHandler:function(){o(d(e))&&i(d(e),!1)}}}function _(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:o,precision:i="0"}){const l=t(e),c=t(n);if(l&&c){const e=m(new Date(c),new Date(l))/1e3/60,n=e/60,t=n/24;let f="";switch(o){case"DAY":f=t.toFixed(+i);break;case"HOUR":f=n.toFixed(+i);break;case"MIN":f=e.toFixed(+i);break;case"DHM":f=`${Math.floor(t)}天${Math.floor(n%24)}小时${Math.floor(e%60)}分钟`;break}r(a,f)}else r(a,null)}(e):"CALC"===e.scene&&function(e){const n=+e.diffValField;if(!l(n)||Number.isNaN(n))return;const a=t(e.endDateField);if(a){const t=p(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{A as getBindEventSettingTrigger,_ as getDateOperationalFormHandler,N as getOperationalFormHandler,D as isMatchLowCodeCondition,g as isMatchLowCodeConditionsWithSqlExpression};
|
package/es/shared/utils/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getCurrentInstance as t,defineComponent as e,provide as n,createVNode as r}from"vue";import{useMemoize as o}from"@vueuse/core";import{isString as i,isObject as u,isNumber as s,isArray as c,isFunction as f}from"lodash-es";import a from"../package.json.js";export{getBindEventSettingTrigger,getOperationalFormHandler,isMatchLowCodeCondition,isMatchLowCodeConditionsWithSqlExpression}from"./business.js";function l(t,e,n="children",r){let o=!1;function i(){o=!0}!function t(e,n,r="children",u){r=x(r),e=x(e);for(let s=0;s<e.length;s++){if(n(e[s],i,u),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]),o)return}}}(t,e,n,r)}function d(t,e,n=e.name,r){if(!n)throw new Error(`[CUI]: invalid component name for ${e}`);const{components:o={}}=t._context;o[n]||(!Reflect.get(t,"__cnhis_version")&&u(a)&&Reflect.set(t,"__cnhis_version",a.version),r?r():t.component(n,e))}function p(t){if(!i(t))return;const e=t.match(/[Hms:]+/);return e?e[0]:void 0}function x(t){return Array.isArray(t)?t:[t]}function m(){return`key${"xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){const e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))}`}const h=o((function(t){if(!t)return 0;let e="";return[...t].reduce(((t,n)=>{const r=e;return e=n,/[a-z]/.test(n)?t+8.05:/[A-Z]/.test(n)?t+9.13:/\d/.test(n)?t+8.9:/[.,]/.test(n)?t+4.03:/[)(]/.test(n)?t+5.17:/[\u4e00-\u9fa5():,。]/.test(n)?t+13.95:/[-+]/.test(n)?t+7.51:/[/\\]/.test(n)?t+4.11:/%/.test(n)?t+12.68:/‰/.test(n)?t+17.75:" "===n?" "===r?t:t+4:t+6}),0)})),g=Object.seal(Object.create(null));function v(t,e){return function t(e,n){return u(e)?c(e)?e.map((e=>t(e,n))):Object.entries(e).reduce(((e,[r,o])=>(n.includes(r)||(u(o)&&!f(o)?e[r]=t(o,n):e[r]=o),e)),{}):e}(t,e)}function y(t){return Object.values(t).reduce(((t,e)=>Object.assign(t,e)),{})}function
|
|
1
|
+
import{getCurrentInstance as t,defineComponent as e,provide as n,createVNode as r}from"vue";import{useMemoize as o}from"@vueuse/core";import{isString as i,isObject as u,isNumber as s,isArray as c,isFunction as f}from"lodash-es";import a from"../package.json.js";export{getBindEventSettingTrigger,getDateOperationalFormHandler,getOperationalFormHandler,isMatchLowCodeCondition,isMatchLowCodeConditionsWithSqlExpression}from"./business.js";function l(t,e,n="children",r){let o=!1;function i(){o=!0}!function t(e,n,r="children",u){r=x(r),e=x(e);for(let s=0;s<e.length;s++){if(n(e[s],i,u),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]),o)return}}}(t,e,n,r)}function d(t,e,n=e.name,r){if(!n)throw new Error(`[CUI]: invalid component name for ${e}`);const{components:o={}}=t._context;o[n]||(!Reflect.get(t,"__cnhis_version")&&u(a)&&Reflect.set(t,"__cnhis_version",a.version),r?r():t.component(n,e))}function p(t){if(!i(t))return;const e=t.match(/[Hms:]+/);return e?e[0]:void 0}function x(t){return Array.isArray(t)?t:[t]}function m(){return`key${"xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){const e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))}`}const h=o((function(t){if(!t)return 0;let e="";return[...t].reduce(((t,n)=>{const r=e;return e=n,/[a-z]/.test(n)?t+8.05:/[A-Z]/.test(n)?t+9.13:/\d/.test(n)?t+8.9:/[.,]/.test(n)?t+4.03:/[)(]/.test(n)?t+5.17:/[\u4e00-\u9fa5():,。]/.test(n)?t+13.95:/[-+]/.test(n)?t+7.51:/[/\\]/.test(n)?t+4.11:/%/.test(n)?t+12.68:/‰/.test(n)?t+17.75:" "===n?" "===r?t:t+4:t+6}),0)})),g=Object.seal(Object.create(null));function v(t,e){return function t(e,n){return u(e)?c(e)?e.map((e=>t(e,n))):Object.entries(e).reduce(((e,[r,o])=>(n.includes(r)||(u(o)&&!f(o)?e[r]=t(o,n):e[r]=o),e)),{}):e}(t,e)}function y(t){return Object.values(t).reduce(((t,e)=>Object.assign(t,e)),{})}function O(t,e){if(!t)return t;if(e(t))return t;let n=t.parentElement;for(;n&&!e(n);)n=n.parentElement;return n}function b(t,e="px"){if(s(t))return`${t}${e}`;if(i(t))return t.endsWith(e)?t:`${t}${e}`;throw new Error(`invalid width value ${t}, it need to be a string or number!`)}const j=o((t=>{try{return JSON.parse(t)}catch(t){return{}}}),{getKey:t=>t});function w(t,e){if(!u(t))return t;const n={...t};for(let t=0;t<e.length;t++)Reflect.deleteProperty(n,e[t]);return n}function E(e){if(!t())throw new Error(e||"can't use this hook out of setup environment")}function $(t,e=1){const[n,r,o,i,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 c=u&&parseInt(u,16)/255;return[parseInt(r,16),parseInt(o,16),parseInt(i,16),+(s(c)?c.toFixed(2):e)]}function _(t){return e({setup(e,{slots:o}){let i=(null==t?void 0:t.parent)&&Reflect.get(t.parent,"provides");const 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 S=o((function(t,e){return!(!i(e)||!i(t))&&e.split(",").some((e=>e.trim().includes(t)))}),{getKey:(...t)=>t.reduce(((t,e)=>String(t)+"_"+String(e)),"")});export{g as DMZ,x as arrayed,E as checkInSetupEnv,_ as createProviderWrapper,v as deepOmit,O as findAncestor,p as generateTimeFormat,h as getStringWidth,$ as hex2rgba,j as jsonParse,S as keywordMatcher,d as safeComponentRegister,y as separateMetaModule,w as shallowOmit,l as traverse,m as uuidGenerator,b as widthAppend};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "3.1.54-beta.
|
|
3
|
+
"version": "3.1.54-beta.20",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "./es/components/index.js",
|
|
6
6
|
"main": "./es/components/index.js",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"iOS 7",
|
|
64
64
|
"last 3 iOS versions"
|
|
65
65
|
],
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "efcd34990718e823030e0b5f162aee01ba332887"
|
|
67
67
|
}
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
declare module 'bpmn-js/lib/Viewer';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
declare module 'bpmn-js/lib/features/modeling';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
declare module 'diagram-js/lib/navigation/movecanvas';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const o=370,t=.1;export{o as DETAIL_RADIUS,t as POLYLINE_BASIC_SCALE};
|
|
@@ -1,86 +0,0 @@
|
|
|
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;
|